PageSourceSearch

https://playingforchange.com/_next/static/chunks/835.f9671bca51fb3eb4.js

js playingforchange.com collected 2026-10-02 04:33:43 UTC 298,185 bytes, 1 lines download raw bytes

vendor: 8,842 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[835],{59585:function(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(1),o=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}();Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([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}])}))}])},28250:function(t,e,n){"use strict";n.d(e,{ZA:function(){return i},kX:function(){return u},oY:function(){return r}});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*(2-Math.pow(2,-10*(t-1)))}}),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(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*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(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}}),Back:Object.freeze({In:function(t){var e=1.70158;return 1===t?1:t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return 0===t?0:--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+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}}}}),o=function(){return performance.now()},i=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,o=e;r<o.length;r++){var i=o[r];null===(t=i._group)||void 0===t||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,r=t;n<r.length;n++){var o=r[n];o._group=void 0,delete this._tweens[o.getId()],delete this._tweensAddedDuringUpdate[o.getId()]}},t.prototype.allStopped=function(){return this.getAll().every((function(t){return!t.isPlaying()}))},t.prototype.update=function(t,e){void 0===t&&(t=o()),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 i=this._tweens[n[r]],a=!e;i&&!1===i.update(t,a)&&!e&&this.remove(i)}n=Object.keys(this._tweensAddedDuringUpdate)}},t}(),a={Linear:function(t,e){var n=t.length-1,r=n*e,o=Math.floor(r),i=a.Utils.Linear;return e<0?i(t[0],t[1],r):e>1?i(t[n],t[n-1],n-r):i(t[o],t[o+1>n?n:o+1],r-o)},Bezier:function(t,e){for(var n=0,r=t.length-1,o=Math.pow,i=a.Utils.Bernstein,s=0;s<=r;
1s++)n+=o(1-e,r-s)*o(e,s)*t[s]*i(r,s);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,o=Math.floor(r),i=a.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(o=Math.floor(r=n*(1+e))),i(t[(o-1+n)%n],t[o],t[(o+1)%n],t[(o+2)%n],r-o)):e<0?t[0]-(i(t[0],t[0],t[1],t[1],-r)-t[0]):e>1?t[n]-(i(t[n],t[n],t[n-1],t[n-1],r-n)-t[n]):i(t[o?o-1:0],t[o],t[n<o+1?n:o+1],t[n<o+2?n:o+2],r-o)},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,o){var i=.5*(n-t),a=.5*(r-e),s=o*o;return(2*e-2*n+i+a)*(o*s)+(-3*e+3*n-2*i-a)*s+i*o+e}}},s=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),l=new i,u=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=s.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=l,l.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 new 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=o()),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 i in this._valuesEnd)r[i]=this._valuesEnd[i];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,o){for(var i in n){var a=t[i],s=Array.isArray(a),l=s?"array":typeof a,u=!s&&Array.isArray(n[i]);if("undefined"!==l&&"function"!==l){if(u){if(0===(g=n[i]).length)continue;for(var c=[a],h=0,f=g.length;h<f;h+=1){var p=this._handleRelativeValue(a,g[h]);if(isNaN(p)){u=!1,console.warn("Found invalid interpolation list. Skipping.");break}c.push(p)}u&&(n[i]=c)}if("object"!==l&&!s||!a||u)("undefined"===typeof e[i]||o)&&(e[i]=a),s||(e[i]*=1),r[i]=u?n[i].slice().reverse():e[i]||0;else{e[i]=s?[]:{};var d=a;for(var m in d)e[i][m]=d[m];r[i]=s?[]:{};var g=n[i];if(!this._isDynamic){var y={};for(var m in g)y[m]=g[m];n[i]=g=y}this._setupProperties(d,e[i],g,r[i],o)}}}},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):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=o()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=t),this},t.prototype.resume=function(t){return void 0===t&&(t=o()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this):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),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)||void 0===t||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,i,a=this;if(void 0===e&&(e=o()),void 0===n&&(n=t.autoStartOnUpdate),this._isPaused)return!0;
1if(!this._goToEnd&&!this._isPlaying){if(!n)return!1;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 s=e-this._startTime,l=this._duration+(null!==(r=this._repeatDelayTime)&&void 0!==r?r:this._delayTime),u=this._duration+this._repeat*l,c=function(){if(0===a._duration)return 1;if(s>u)return 1;var t=Math.trunc(s/l),e=s-t*l,n=Math.min(e/a._duration,1);return 0===n&&s===a._duration?1:n}(),h=this._easingFunction(c);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,h),this._onUpdateCallback&&this._onUpdateCallback(this._object,c),0===this._duration||s>=this._duration){if(this._repeat>0){var f=Math.min(Math.trunc((s-this._duration)/l)+1,this._repeat);for(i in isFinite(this._repeat)&&(this._repeat-=f),this._valuesStartRepeat)this._yoyo||"string"!==typeof this._valuesEnd[i]||(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=l*f,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,d=this._chainedTweens.length;p<d;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(t,e,n,r){for(var o in n)if(void 0!==e[o]){var i=e[o]||0,a=n[o],s=Array.isArray(t[o]),l=Array.isArray(a);!s&&l?t[o]=this._interpolationFunction(a,r):"object"===typeof a&&a?this._updateProperties(t[o],i,a,r):"number"===typeof(a=this._handleRelativeValue(i,a))&&(t[o]=i+(a-i)*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];this._valuesStartRepeat[t]="string"===typeof n?this._valuesStartRepeat[t]+parseFloat(n):this._valuesEnd[t],this._valuesEnd[t]=e},t.autoStartOnUpdate=!1,t}(),c=(s.nextId,l);c.getAll.bind(c),c.removeAll.bind(c),c.add.bind(c),c.remove.bind(c),c.update.bind(c)},48710:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=function(t){return"function"===typeof t?t:"string"===typeof t?function(e){return e[t]}:function(e){return t}}},266:function(t,e,n){"use strict";n.d(e,{dU:function(){return r}});class r{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const o=e[r],i=t+o,a=Math.abs(t)<Math.abs(o)?t-(i-o):o-(i-t);a&&(e[n++]=a),t=i}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,o=this._n,i=0;if(o>0){for(i=t[--o];o>0&&(e=i,n=t[--o],i=e+n,r=n-(i-e),!r););o>0&&(r<0&&t[o-1]<0||r>0&&t[o-1]>0)&&(n=2*r,e=i+n,n==e-i&&(i=e))}return i}}},18776:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}n.d(e,{Z:function(){return r}})},72255:function(t,e,n){"use strict";function r(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let o of t)(o=+e(o,++r,t))&&(n+=o)}return n}n.d(e,{Z:function(){return r}})},70755:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r,o,i,a,s=n(266),l=n(35432),u=n(56957),c=n(29378),h={sphere:u.Z,point:u.Z,lineStart:function(){h.point=p,h.lineEnd=f},lineEnd:u.Z,polygonStart:u.Z,polygonEnd:u.Z};function f(){h.point=h.lineEnd=u.Z}function p(t,e){t*=l.uR,e*=l.uR,o=t,i=(0,l.O$)(e),a=(0,l.mC)(e),h.point=d}function d(t,e){t*=l.uR,e*=l.uR;var n=(0,l.O$)(e),s=(0,l.mC)(e),u=(0,l.Wn)(t-o),c=(0,l.mC)(u),h=s*(0,l.O$)(u),f=a*n-i*s*c,p=i*n+a*s*c;r.add((0,l.fv)((0,l._b)(h*h+f*f),p)),o=t,i=n,a=s}var m=[null,null],g={type:"LineString",coordinates:m};function y(t,e){return m[0]=t,m[1]=e,function(t){return r=new s.dU,(0,c.Z)(t,h),
1+r}(g)}},30646:function(t,e,n){"use strict";function r(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}n.d(e,{e:function(){return s}});var o=n(35432);function i(t,e,n){var i=r(t,e-o.Ho,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function a(t,e,n){var i=r(t,e-o.Ho,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function s(){return function(){var t,e,n,s,l,u,c,h,f,p,d,m,g=10,y=g,v=90,b=360,_=2.5;function w(){return{type:"MultiLineString",coordinates:x()}}function x(){return r((0,o.mD)(s/v)*v,n,v).map(d).concat(r((0,o.mD)(h/b)*b,c,b).map(m)).concat(r((0,o.mD)(e/g)*g,t,g).filter((function(t){return(0,o.Wn)(t%v)>o.Ho})).map(f)).concat(r((0,o.mD)(u/y)*y,l,y).filter((function(t){return(0,o.Wn)(t%b)>o.Ho})).map(p))}return w.lines=function(){return x().map((function(t){return{type:"LineString",coordinates:t}}))},w.outline=function(){return{type:"Polygon",coordinates:[d(s).concat(m(c).slice(1),d(n).reverse().slice(1),m(h).reverse().slice(1))]}},w.extent=function(t){return arguments.length?w.extentMajor(t).extentMinor(t):w.extentMinor()},w.extentMajor=function(t){return arguments.length?(s=+t[0][0],n=+t[1][0],h=+t[0][1],c=+t[1][1],s>n&&(t=s,s=n,n=t),h>c&&(t=h,h=c,c=t),w.precision(_)):[[s,h],[n,c]]},w.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],u=+n[0][1],l=+n[1][1],e>t&&(n=e,e=t,t=n),u>l&&(n=u,u=l,l=n),w.precision(_)):[[e,u],[t,l]]},w.step=function(t){return arguments.length?w.stepMajor(t).stepMinor(t):w.stepMinor()},w.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],w):[v,b]},w.stepMinor=function(t){return arguments.length?(g=+t[0],y=+t[1],w):[g,y]},w.precision=function(r){return arguments.length?(_=+r,f=i(u,l,90),p=a(e,t,_),d=i(h,c,90),m=a(s,n,_),w):_},w.extentMajor([[-180,-90+o.Ho],[180,90-o.Ho]]).extentMinor([[-180,-80-o.Ho],[180,80+o.Ho]])}()()}},66116:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(35432);function o(t,e){var n=t[0]*r.uR,o=t[1]*r.uR,i=e[0]*r.uR,a=e[1]*r.uR,s=(0,r.mC)(o),l=(0,r.O$)(o),u=(0,r.mC)(a),c=(0,r.O$)(a),h=s*(0,r.mC)(n),f=s*(0,r.O$)(n),p=u*(0,r.mC)(i),d=u*(0,r.O$)(i),m=2*(0,r.ZR)((0,r._b)((0,r.Jy)(a-o)+s*u*(0,r.Jy)(i-n))),g=(0,r.O$)(m),y=m?function(t){var e=(0,r.O$)(t*=m)/g,n=(0,r.O$)(m-t)/g,o=n*h+e*p,i=n*f+e*d,a=n*l+e*c;return[(0,r.fv)(i,o)*r.RW,(0,r.fv)(a,(0,r._b)(o*o+i*i))*r.RW]}:function(){return[n*r.RW,o*r.RW]};return y.distance=m,y}},35432:function(t,e,n){"use strict";n.d(e,{BZ:function(){return l},Ho:function(){return r},Jy:function(){return H},Kh:function(){return S},O$:function(){return b},OR:function(){return x},Qq:function(){return g},RW:function(){return u},Wn:function(){return h},Xx:function(){return _},ZR:function(){return P},_b:function(){return w},_m:function(){return y},aW:function(){return o},cM:function(){return v},fv:function(){return p},mC:function(){return d},mD:function(){return m},ou:function(){return a},pi:function(){return i},pu:function(){return s},uR:function(){return c},z4:function(){return f}});var r=1e-6,o=1e-12,i=Math.PI,a=i/2,s=i/4,l=2*i,u=180/i,c=i/180,h=Math.abs,f=Math.atan,p=Math.atan2,d=Math.cos,m=Math.ceil,g=Math.exp,y=(Math.floor,Math.hypot),v=Math.log,b=(Math.pow,Math.sin),_=Math.sign||function(t){return t>0?1:t<0?-1:0},w=Math.sqrt,x=Math.tan;function S(t){return t>1?0:t<-1?i:Math.acos(t)}function P(t){return t>1?a:t<-1?-a:Math.asin(t)}function H(t){return(t=b(t/2))*t}},56957:function(t,e,n){"use strict";function r(){}n.d(e,{Z:function(){return r}})},29378:function(t,e,n){"use strict";function r(t,e){t&&i.hasOwnProperty(t.type)&&i[t.type](t,e)}n.d(e,{Z:function(){return l}});var o={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,o=-1,i=n.length;++o<i;)r(n[o].geometry,e)}},i={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,o=n.length;++r<o;)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,o=n.length;++r<o;)a(n[r],e,0)},Polygon:function(t,e){s(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)s(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,o=-1,i=n.length;++o<i;)r(n[o],e)}};function a(t,e,n){var r,o=-1,i=t.length-n;for(e.lineStart();++o<i;)r=t[o],e.point(r[0],r[1],r[2]);e.lineEnd()}function s(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}function l(t,e){t&&o.hasOwnProperty(t.type)?o[t.type](t,e):r(t,e)}},14767:function(t,e,n){"use strict";function r(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+
1Math.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,{Z:function(){return r}})},92625:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(68977),o=n(9443),i=n(94182);function a(){var t,e=0,n=1,s=1,l=[.5],u=[0,1];function c(e){return null!=e&&e<=e?u[(0,r.ZP)(l,e,0,s)]:t}function h(){var t=-1;for(l=new Array(s);++t<s;)l[t]=((t+1)*n-(t-s)*e)/(s+1);return c}return c.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,h()):[e,n]},c.range=function(t){return arguments.length?(s=(u=Array.from(t)).length-1,h()):u.slice()},c.invertExtent=function(t){var r=u.indexOf(t);return r<0?[NaN,NaN]:r<1?[e,l[0]]:r>=s?[l[s-1],n]:[l[r-1],l[r]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return l.slice()},c.copy=function(){return a().domain([e,n]).range(u).unknown(t)},i.o.apply((0,o.Q)(c),arguments)}},89558:function(t,e,n){"use strict";n.d(e,{Z:function(){return _}});var r=n(48710);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}function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function a(t,e){return t.get(i(t,e))}function s(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function l(t,e,n){return t.set(i(t,e),n),n}function u(t,e,n){return e&&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,f(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(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 new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function p(t,e){if(t){if("string"==typeof t)return o(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)?o(t,e):void 0}}var d=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,_=function(){return u((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,d,new Map),s(this,m,new Map),s(this,g,(function(t){return t})),s(this,y,(function(){return{}})),s(this,v,(function(){})),s(this,b,(function(){}))}),[{key:"getObj",value:function(t){return a(d,this).get(a(g,this).call(this,t))}},{key:"getData",value:function(t){return a(m,this).get(t)}},{key:"entries",value:function(){return h(a(m,this).entries()).map((function(t){var e=c(t,2),n=e[0];return[e[1],n]}))}},{key:"id",value:function(t){return l(g,this,(0,r.Z)(t)),this}},{key:"onCreateObj",value:function(t){return l(y,this,t),this}}
vendor: 7,785 bytes, line 1
1,{key:"onUpdateObj",value:function(t){return l(v,this,t),this}},{key:"onRemoveObj",value:function(t){return l(b,this,t),this}},{key:"digest",value:function(t){var e=this;t.filter((function(t){return!a(d,e).has(a(g,e).call(e,t))})).forEach((function(t){var n=a(y,e).call(e,t);a(d,e).set(a(g,e).call(e,t),n),a(m,e).set(n,t)}));var n=new Map(t.map((function(t){return[a(g,e).call(e,t),t]})));return a(d,this).forEach((function(t,r){n.has(r)?a(v,e).call(e,t,n.get(r)):(a(b,e).call(e,t,r),a(d,e).delete(r),a(m,e).delete(t))})),this}},{key:"clear",value:function(){return this.digest([]),this}}])}()},70442:function(t,e,n){"use strict";function r(t,e,n=2){const r=e&&e.length,i=r?e[0]*n:t.length;let s=o(t,0,i,n,!0);const l=[];if(!s||s.next===s.prev)return l;let u,c,p;if(r&&(s=function(t,e,n,r){const i=[];for(let a=0,s=e.length;a<s;a++){const n=o(t,e[a]*r,a<s-1?e[a+1]*r:t.length,r,!1);n===n.next&&(n.steiner=!0),i.push(m(n))}i.sort(h);for(let o=0;o<i.length;o++)n=f(i[o],n);return n}(t,e,s,n)),t.length>80*n){u=1/0,c=1/0;let e=-1/0,r=-1/0;for(let o=n;o<i;o+=n){const n=t[o],i=t[o+1];n<u&&(u=n),i<c&&(c=i),n>e&&(e=n),i>r&&(r=i)}p=Math.max(e-u,r-c),p=0!==p?32767/p:0}return a(s,l,n,u,c,p,0),l}function o(t,e,n,r,o){let i;if(o===O(t,e,n,r)>0)for(let a=e;a<n;a+=r)i=M(a/r|0,t[a],t[a+1],i);else for(let a=n-r;a>=e;a-=r)i=M(a/r|0,t[a],t[a+1],i);return i&&_(i,i.next)&&(E(i),i=i.next),i}function i(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!_(r,r.next)&&0!==b(r.prev,r,r.next))r=r.next;else{if(E(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function a(t,e,n,r,o,h,f){if(!t)return;!f&&h&&function(t,e,n,r){let o=t;do{0===o.z&&(o.z=d(o.x,o.y,e,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){let e,n=1;do{let r,o=t;t=null;let i=null;for(e=0;o;){e++;let a=o,s=0;for(let t=0;t<n&&(s++,a=a.nextZ,a);t++);let l=n;for(;s>0||l>0&&a;)0!==s&&(0===l||!a||o.z<=a.z)?(r=o,o=o.nextZ,s--):(r=a,a=a.nextZ,l--),i?i.nextZ=r:t=r,r.prevZ=i,i=r;o=a}i.nextZ=null,n*=2}while(e>1)}(o)}(t,r,o,h);let p=t;for(;t.prev!==t.next;){const d=t.prev,m=t.next;if(h?l(t,r,o,h):s(t))e.push(d.i,t.i,m.i),E(t),t=m.next,p=m.next;else if((t=m)===p){f?1===f?a(t=u(i(t),e),e,n,r,o,h,2):2===f&&c(t,e,n,r,o,h):a(i(t),e,n,r,o,h,1);break}}}function s(t){const e=t.prev,n=t,r=t.next;if(b(e,n,r)>=0)return!1;const o=e.x,i=n.x,a=r.x,s=e.y,l=n.y,u=r.y,c=Math.min(o,i,a),h=Math.min(s,l,u),f=Math.max(o,i,a),p=Math.max(s,l,u);let d=r.next;for(;d!==e;){if(d.x>=c&&d.x<=f&&d.y>=h&&d.y<=p&&y(o,s,i,l,a,u,d.x,d.y)&&b(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function l(t,e,n,r){const o=t.prev,i=t,a=t.next;if(b(o,i,a)>=0)return!1;const s=o.x,l=i.x,u=a.x,c=o.y,h=i.y,f=a.y,p=Math.min(s,l,u),m=Math.min(c,h,f),g=Math.max(s,l,u),v=Math.max(c,h,f),_=d(p,m,e,n,r),w=d(g,v,e,n,r);let x=t.prevZ,S=t.nextZ;for(;x&&x.z>=_&&S&&S.z<=w;){if(x.x>=p&&x.x<=g&&x.y>=m&&x.y<=v&&x!==o&&x!==a&&y(s,c,l,h,u,f,x.x,x.y)&&b(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,S.x>=p&&S.x<=g&&S.y>=m&&S.y<=v&&S!==o&&S!==a&&y(s,c,l,h,u,f,S.x,S.y)&&b(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;x&&x.z>=_;){if(x.x>=p&&x.x<=g&&x.y>=m&&x.y<=v&&x!==o&&x!==a&&y(s,c,l,h,u,f,x.x,x.y)&&b(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;S&&S.z<=w;){if(S.x>=p&&S.x<=g&&S.y>=m&&S.y<=v&&S!==o&&S!==a&&y(s,c,l,h,u,f,S.x,S.y)&&b(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function u(t,e){let n=t;do{const r=n.prev,o=n.next.next;!_(r,o)&&w(r,n,n.next,o)&&P(r,o)&&P(o,r)&&(e.push(r.i,n.i,o.i),E(n),E(n.next),n=t=o),n=n.next}while(n!==t);return i(n)}function c(t,e,n,r,o,s){let l=t;do{let t=l.next.next;for(;t!==l.prev;){if(l.i!==t.i&&v(l,t)){let u=H(l,t);return l=i(l,l.next),u=i(u,u.next),a(l,e,n,r,o,s,0),void a(u,e,n,r,o,s,0)}t=t.next}l=l.next}while(l!==t)}function h(t,e){let n=t.x-e.x;if(0===n&&(n=t.y-e.y,0===n)){n=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)}return n}function f(t,e){const n=function(t,e){let n=e;const r=t.x,o=t.y;let i,a=-1/0;if(_(t,n))return n;do{if(_(t,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){const t=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>a&&(a=t,i=n.x<n.next.x?n:n.next,t===r))return i}n=n.next}while(n!==e);if(!i)return null;const s=i,l=i.x,u=i.y;let c=1/0;n=i;do{if(r>=n.x&&n.x>=l&&r!==n.x&&g(o<u?r:a,o,l,u,o<u?a:r,o,n.x,n.y)){const e=Math.abs(o-n.y)/(r-n.x);P(n,t)&&(e<c||e===c&&(n.x>i.x||n.x===i.x&&p(i,n)))&&(i=n,c=e)}n=n.next}while(n!==s);return i}(t,e);if(!n)return e;const r=H(n,t);return i(r,r.next),i(n,n.next)}function p(t,e){return b(t.prev,t,e.prev)<0&&b(e.next,t,t.next)<0}function d(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function m(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}function g(t,e,n,r,o,i,a,s){return(o-a)*(e-s)>=(t-a)*(i-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(i-s)>=(o-a)*(r-s)}function y(t,e,n,r,o,i,a,s){return!(t===a&&e===s)&&g(t,e,n,r,o,i,a,s)}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(P(t,e)&&P(e,t)&&function(t,e){let n=t,r=!1;const o=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!==n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(b(t.prev,t,e.prev)||b(t,e.prev,e))||_(t,e)&&b(t.prev,t,t.next)>0&&b(e.prev,e,e.next)>0)}function b(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function _(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){const o=S(b(t,e,n)),i=S(b(t,e,r)),a=S(b(n,r,t)),s=S(b(n,r,e));return o!==i&&a!==s||(!(0!==o||!x(t,n,e))||(!(0!==i||!x(t,r,e))||(!(0!==a||!x(n,t,r))||!(0!==s||!x(n,e,r)))))}function x(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 S(t){return t>0?1:t<0?-1:0}function P(t,e){return b(t.prev,t,t.next)<0?b(t,e,t.next)>=0&&b(t,t.prev,e)>=0:b(t,e,t.prev)<0||b(t,t.next,e)<0}function H(t,e){const n=T(t.i,t.x,t.y),r=T(e.i,e.x,e.y),o=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function M(t,e,n,r){const o=T(t,e,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function E(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)}function T(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function O(t,e,n,r){let o=0;for(let i=e,a=n-r;i<n;i+=r)o+=(t[a]-t[i])*(t[i+1]+t[a+1]),a=i;return o}function k(t){const e=[],n=[],r=t[0][0].length;let o=0,i=0;for(const a of t){for(const t of a)for(let n=0;n<r;n++)e.push(t[n]);i&&(o+=i,n.push(o)),i=a.length}return{vertices:e,holes:n,dimensions:r}}n.d(e,{ZP:function(){return r},xH:function(){return k}})},43780:function(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 o(t,e){if(null==t)return{};var n,r,o=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 i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function i(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(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 new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function l(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,{Z:function(){return u}});var u=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],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=(e instanceof Array?e.length?e:[void 0]:[e]).map((function(t){return{keyAccessor:t,isProp:!(t instanceof Function)}})),u=t.reduce((function(t,e){var r=t,i=e;return l.forEach((function(t,e){var a,u=t.keyAccessor;if(t.isProp){var c=i,h=c[u],f=o(c,[u].map(s));a=h,i=f}else a=u(i,e);e+1<l.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):n?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(i)):r[a]=i})),t}),{});n instanceof Function&&function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;r===l.length?Object.keys(e).forEach((function(t){return e[t]=n(e[t])})):Object.values(e).forEach((function(e){return t(e,r+1)}))}(u);var c=u;return r&&(c=[],function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===l.length?c.push({keys:n,vals:e}):Object.entries(e).forEach((function(e){var r=i(e,2),o=r[0],s=r[1];return t(s,[].concat(a(n),[o]))}))}(u),e instanceof Array&&0===e.length&&1===c.length&&(c[0].keys=[])),c}},36386:function(t,e,n){"use strict";n.d(e,{Z:function(){return S}});var r=n(77226),o=n(66092),i=function(){return o.Z.Date.now()},a=/\s/;var s=function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e},l=/^\s+/;var u=function(t){return t?t.slice(0,s(t)+1).replace(l,""):t},c=n(72714),h=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt;var m=function(t){if("number"==typeof t)return t;if((0,c.Z)(t))return NaN;if((0,r.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,r.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=u(t);var n=f.test(t);return n||p.test(t)?d(t.slice(2),n?2:8):h.test(t)?NaN:+t},g=Math.max,y=Math.min;var v=function(t,e,n){var o,a,s,l,u,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var n=o,r=a;return o=a=void 0,h=e,l=t.apply(r,n)}function b(t){return h=t,u=setTimeout(w,e),f?v(t):l}function _(t){var n=t-c;return void 0===c||n>=e||n<0||p&&t-h>=s}function w(){var t=i();if(_(t))return x(t);u=setTimeout(w,function(t){var n=e-(t-c);return p?y(n,s-(t-h)):n}(t))}function x(t){return u=void 0,d&&o?v(t):(o=a=void 0,l)}function S(){var t=i(),n=_(t);if(o=arguments,a=this,c=t,n){if(void 0===u)return b(c);if(p)return clearTimeout(u),u=setTimeout(w,e),v(c)}return void 0===u&&(u=setTimeout(w,e)),l}return e=m(e)||0,(0,r.Z)(n)&&(f=!!n.leading,s=(p="maxWait"in n)?g(m(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d),S.cancel=function(){void 0!==u&&clearTimeout(u),h=0,o=c=a=u=void 0},S.flush=function(){return void 0===u?l:x(i())},S};function b(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 _(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function w(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(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)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=_((function t(e,n){var r=n.default,o=void 0===r?null:r,i=n.triggerUpdate,a=void 0===i||i,s=n.onChange,l=void 0===s?function(t,e){}:s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.defaultVal=o,this.triggerUpdate=a,this.onChange=l}));function S(t){var e=t.stateInit,n=void 0===e?function(){return{}}:e,r=t.props,o=void 0===r?{}:r,i=t.methods,a=void 0===i?{}:i,s=t.aliases,l=void 0===s?{}:s,u=t.init,c=void 0===u?function(){}:u,h=t.update,f=void 0===h?function(){}:h,p=Object.keys(o).map((function(t){return new x(t,o[t])}));return function t(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=!!(this instanceof t?this.constructor:void 0),s=i?r.shift():void 0,u=r[0],h=void 0===u?{}:u,d=Object.assign({},n instanceof Function?n(h):n,{initialised:!1}),m={};function g(t){return y(t,h),b(),g}var y=function(t,e){c.call(g,t,d,e),d.initialised=!0},b=v((function(){d.initialised&&(f.call(g,d,m),m={})}),1);return p.forEach((function(t){g[t.name]=function(t){var e=t.name,n=t.triggerUpdate,r=void 0!==n&&n,o=t.onChange,i=void 0===o?function(t,e){}:o,a=t.defaultVal,s=void 0===a?null:a;return function(t){var n=d[e];if(!arguments.length)return n;var o=void 0===t?s:t;return d[e]=o,i.call(g,o,d,n),!m.hasOwnProperty(e)&&(m[e]=n),r&&b(),g}}(t)})),Object.keys(a).forEach((function(t){g[t]=function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=a[t]).call.apply(e,[g,d].concat(r))}})),Object.entries(l).forEach((function(t){var e=w(t,2),n=e[0],r=e[1];return g[n]=g[r]})),g.resetProps=function(){return p.forEach((function(t){g[t.name](t.defaultVal)})),g},g.resetProps(),d._rerender=b,i&&s&&g(s),g}}},72887:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return fr}});var r=n(67294);function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.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)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(t,e){var n=new Set(e);return Object.assign.apply(Object,[{}].concat(a(Object.entries(t).filter((function(t){var e=i(t,1)[0];return!n.has(e)})).map((function(t){var e=i(t,2);return o({},e[0],e[1])})))))};function c(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 h(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.useEffect,n=(0,r.useRef)(),o=(0,r.useRef)(!1),i=(0,r.useRef)(!1),a=(0,r.useState)(0),s=h(a,2);s[0];var l=s[1];o.current&&(i.current=!0),e((function(){return o.current||(n.current=t(),o.current=!0),l((function(t){return t+1})),function(){i.current&&n.current&&n.current()}}),[])}var m=n(74250),g=n(81764),y=n(22569),v=n(99477),b=n(83926);const _={type:"change"},w={type:"start"},x={type:"end"},S=1e-6,P=-1,H=0,M=1,E=2,T=3,O=4,k=new m.FM8,A=new m.FM8,C=new m.Pa4,j=new m.Pa4,R=new m.Pa4,D=new m._fP,L=new m.Pa4,I=new m.Pa4,z=new m.Pa4,U=new m.Pa4;class F extends m.ZXd{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:m.RsA.ROTATE,MIDDLE:m.RsA.DOLLY,RIGHT:m.RsA.PAN},this.target=new m.Pa4,this.state=P,this.keyState=P,this._lastPosition=new m.Pa4,this._lastZoom=1,this._touchZoomDistanceStart=0,this._touchZoomDistanceEnd=0,this._lastAngle=0,this._eye=new m.Pa4,this._movePrev=new m.FM8,this._moveCurr=new m.FM8,this._lastAxis=new m.Pa4,this._zoomStart=new m.FM8,this._zoomEnd=new m.FM8,this._panStart=new m.FM8,this._panEnd=new m.FM8,this._pointers=[],this._pointerPositions={},this._onPointerMove=N.bind(this),this._onPointerDown=B.bind(this),this._onPointerUp=Z.bind(this),this._onPointerCancel=W.bind(this),this._onContextMenu=K.bind(this),this._onMouseWheel=q.bind(this),this._onKeyDown=V.bind(this),this._onKeyUp=G.bind(this),this._onTouchStart=Q.bind(this),this._onTouchMove=J.bind(this),this._onTouchEnd=tt.bind(this),this._onMouseDown=$.bind(this),this._onMouseMove=Y.bind(this),this._onMouseUp=X.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(){const 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)>S&&(this.dispatchEvent(_),this._lastPosition.copy(this.object.position))):this.object.isOrthographicCamera?(this.object.lookAt(this.target),(this._lastPosition.distanceToSquared(this.object.position)>S||this._lastZoom!==this.object.zoom)&&(this.dispatchEvent(_),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type.")}reset(){this.state=P,this.keyState=P,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(_),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom}_panCamera(){if(A.copy(this._panEnd).sub(this._panStart),A.lengthSq()){if(this.object.isOrthographicCamera){const 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;A.x*=t,A.y*=e}A.multiplyScalar(this._eye.length()*this.panSpeed),j.copy(this._eye).cross(this.object.up).setLength(A.x),j.add(C.copy(this.object.up).setLength(A.y)),this.object.position.add(j),this.target.add(j),this.staticMoving?this._panStart.copy(this._panEnd):this._panStart.add(A.subVectors(this._panEnd,this._panStart).multiplyScalar(this.dynamicDampingFactor))}}_rotateCamera(){U.set(this._moveCurr.x-this._movePrev.x,this._moveCurr.y-this._movePrev.y,0);let t=U.length();t?(this._eye.copy(this.object.position).sub(this.target),L.copy(this._eye).normalize(),I.copy(this.object.up).normalize(),z.crossVectors(I,L).normalize(),I.setLength(this._moveCurr.y-this._movePrev.y),z.setLength(this._moveCurr.x-this._movePrev.x),U.copy(I.add(z)),R.crossVectors(U,this._eye).normalize(),t*=this.rotateSpeed,D.setFromAxisAngle(R,t),this._eye.applyQuaternion(D),this.object.up.applyQuaternion(D),this._lastAxis.copy(R),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===O?(t=this._touchZoomDistanceStart/this._touchZoomDistanceEnd,this._touchZoomDistanceStart=this._touchZoomDistanceEnd,this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=m.M8C.clamp(this.object.zoom/t,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(t=1+(this._zoomEnd.y-this._zoomStart.y)*this.zoomSpeed,1!==t&&t>0&&(this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=m.M8C.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 k.set((t-this.screen.left)/this.screen.width,(e-this.screen.top)/this.screen.height),k}_getMouseOnCircle(t,e){return k.set((t-.5*this.screen.width-this.screen.left)/(.5*this.screen.width),(this.screen.height+2*(this.screen.top-e))/this.screen.width),k}_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 m.FM8,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const 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 N(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function Z(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchEnd(t):this._onMouseUp(),this._removePointer(t),
vendor: 4,368 bytes, line 1
10===this._pointers.length&&(this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp)))}function W(t){this._removePointer(t)}function G(){!1!==this.enabled&&(this.keyState=P,window.addEventListener("keydown",this._onKeyDown))}function V(t){!1!==this.enabled&&(window.removeEventListener("keydown",this._onKeyDown),this.keyState===P&&(t.code!==this.keys[H]||this.noRotate?t.code!==this.keys[M]||this.noZoom?t.code!==this.keys[E]||this.noPan||(this.keyState=E):this.keyState=M:this.keyState=H))}function $(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 m.RsA.DOLLY:this.state=M;break;case m.RsA.ROTATE:this.state=H;break;case m.RsA.PAN:this.state=E;break;default:this.state=P}const n=this.keyState!==P?this.keyState:this.state;n!==H||this.noRotate?n!==M||this.noZoom?n!==E||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(w)}function Y(t){const e=this.keyState!==P?this.keyState:this.state;e!==H||this.noRotate?e!==M||this.noZoom?e!==E||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 X(){this.state=P,this.dispatchEvent(x)}function q(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(w),this.dispatchEvent(x)}}function K(t){!1!==this.enabled&&t.preventDefault()}function Q(t){if(this._trackPointer(t),1===this._pointers.length)this.state=T,this._moveCurr.copy(this._getMouseOnCircle(this._pointers[0].pageX,this._pointers[0].pageY)),this._movePrev.copy(this._moveCurr);else{this.state=O;const 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);const 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(w)}function J(t){if(this._trackPointer(t),1===this._pointers.length)this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY));else{const e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y;this._touchZoomDistanceEnd=Math.sqrt(n*n+r*r);const o=(t.pageX+e.x)/2,i=(t.pageY+e.y)/2;this._panEnd.copy(this._getMouseOnScreen(o,i))}}function tt(t){switch(this._pointers.length){case 0:this.state=P;break;case 1:this.state=T,this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr);break;case 2:this.state=O;for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId!==t.pointerId){const t=this._pointerPositions[this._pointers[e].pointerId];this._moveCurr.copy(this._getMouseOnCircle(t.x,t.y)),this._movePrev.copy(this._moveCurr);break}}this.dispatchEvent(x)}const et={type:"change"},nt={type:"start"},rt={type:"end"},ot=new m.zHn,it=new m.JOQ,at=Math.cos(70*m.M8C.DEG2RAD),st=new m.Pa4,lt=2*Math.PI,ut=-1,ct=0,ht=1,ft=2,pt=3,dt=4,mt=5,gt=6,yt=1e-6;class vt extends m.ZXd{constructor(t,e=null){super(t,e),this.state=ut,this.target=new m.Pa4,this.cursor=new m.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LE
1FT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:m.RsA.ROTATE,MIDDLE:m.RsA.DOLLY,RIGHT:m.RsA.PAN},this.touches={ONE:m.QmN.ROTATE,TWO:m.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new m.Pa4,this._lastQuaternion=new m._fP,this._lastTargetPosition=new m.Pa4,this._quat=(new m._fP).setFromUnitVectors(t.up,new m.Pa4(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new m.$V,this._sphericalDelta=new m.$V,this._scale=1,this._panOffset=new m.Pa4,this._rotateStart=new m.FM8,this._rotateEnd=new m.FM8,this._rotateDelta=new m.FM8,this._panStart=new m.FM8,this._panEnd=new m.FM8,this._panDelta=new m.FM8,this._dollyStart=new m.FM8,this._dollyEnd=new m.FM8,this._dollyDelta=new m.FM8,this._dollyDirection=new m.Pa4,this._mouse=new m.FM8,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=_t.bind(this),this._onPointerDown=bt.bind(this),this._onPointerUp=wt.bind(this),this._onContextMenu=Tt.bind(this),this._onMouseWheel=Pt.bind(this),this._onKeyDown=Ht.bind(this),this._onTouchStart=Mt.bind(this),this._onTouchMove=Et.bind(this),this._onMouseDown=xt.bind(this),this._onMouseMove=St.bind(this),this._interceptControlDown=Ot.bind(this),this._interceptControlUp=kt.bind(this),null!==this.domElement&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1});this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents();this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){null!==this._domElementKeyEvents&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(et),this.update(),this.state=ut}update(t=null){const e=this.object.position;st.copy(e).sub(this.target),st.applyQuaternion(this._quat),this._spherical.setFromVector3(st),this.autoRotate&&this.state===ut&&this._rotateLeft(this._getAutoRotationAngle(t)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,r=this.maxAzimuthAngle;isFinite(n)&&isFinite(r)&&(n<-Math.PI?n+=lt:n>Math.PI&&(n-=lt),r<-Math.PI?r+=lt:r>Math.PI&&(r-=lt),this._spherical.theta=n<=r?Math.max(n,Math.min(r,this._spherical.theta)):this._spherical.theta>(n+r)/2?Math.max(n,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),!0===this.enableDamping?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let o=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radiu
vendor: 13,207 bytes, line 1
1s=this._clampDistance(this._spherical.radius);else{const t=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),o=t!=this._spherical.radius}if(st.setFromSpherical(this._spherical),st.applyQuaternion(this._quatInverse),e.copy(this.target).add(st),this.object.lookAt(this.target),!0===this.enableDamping?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let t=null;if(this.object.isPerspectiveCamera){const e=st.length();t=this._clampDistance(e*this._scale);const n=e-t;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),o=!!n}else if(this.object.isOrthographicCamera){const e=new m.Pa4(this._mouse.x,this._mouse.y,0);e.unproject(this.object);const n=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),o=n!==this.object.zoom;const r=new m.Pa4(this._mouse.x,this._mouse.y,0);r.unproject(this.object),this.object.position.sub(r).add(e),this.object.updateMatrixWorld(),t=st.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;null!==t&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(t).add(this.object.position):(ot.origin.copy(this.object.position),ot.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(ot.direction))<at?this.object.lookAt(this.target):(it.setFromNormalAndCoplanarPoint(this.object.up,this.target),ot.intersectPlane(it,this.target))))}else if(this.object.isOrthographicCamera){const t=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),t!==this.object.zoom&&(this.object.updateProjectionMatrix(),o=!0)}return this._scale=1,this._performCursorZoom=!1,!!(o||this._lastPosition.distanceToSquared(this.object.position)>yt||8*(1-this._lastQuaternion.dot(this.object.quaternion))>yt||this._lastTargetPosition.distanceToSquared(this.target)>yt)&&(this.dispatchEvent(et),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0)}_getAutoRotationAngle(t){return null!==t?lt/60*this.autoRotateSpeed*t:lt/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(.01*t);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){st.setFromMatrixColumn(e,0),st.multiplyScalar(-t),this._panOffset.add(st)}_panUp(t,e){!0===this.screenSpacePanning?st.setFromMatrixColumn(e,1):(st.setFromMatrixColumn(e,0),st.crossVectors(this.object.up,st)),st.multiplyScalar(t),this._panOffset.add(st)}_pan(t,e){const n=this.domElement;if(this.object.isPerspectiveCamera){const r=this.object.position;st.copy(r).sub(this.target);let o=st.length();o*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*o/n.clientHeight,this.object.matrix),this._panUp(2*e*o/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const n=this.domElement.getBoundingClientRect(),r=t-n.left,o=e-n.top,i=n.width,a=n.height;this._mouse.x=r/i*2-1,this._mouse.y=-o/a*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(lt*this._rotateDelta.x/e.clientHeight),this._rotateUp(lt*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(lt*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-lt*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(lt*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-lt*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(1===this._pointers.length)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._rotateStart.set(n,r)}}_handleTouchStartPan(t){if(1===this._pointers.length)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._panStart.set(n,r)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y,o=Math.sqrt(n*n+r*r);this._dollyStart.set(0,o)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(1==this._pointers.length)this._rotateEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(lt*this._rotateDelta.x/e.clientHeight),this._rotateUp(lt*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(1===this._pointers.length)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._panEnd.set(n,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y,o=Math.sqrt(n*n+r*r);this._dollyEnd.set(0,o),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const i=.5*(t.pageX+e.x),a=.5*(t.pageY+e.y);this._updateZoomParameters(i,a)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return void this._pointers.splice(e,1)}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];void 0===e&&(e=new m.FM8,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,n={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100}return t.ctrlKey&&!this._controlActive&&(n.deltaY*=10),n}}function bt(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._isTrackingPointer(t)||(this._addPointer(t),"touch"===t.pointerType?this._onTouchStart(t):this._onMouseDown(t)))}function _t(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function wt(t){switch(this._removePointer(t),this._pointers.length){case 0:this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(rt),this.state=ut;break;case 1:const e=this._pointers[0],n=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:n.x,pageY:n.y})}}function xt(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 m.RsA.DOLLY:if(!1===this.enableZoom)return;this._handleMouseDownDolly(t),this.state=ht;break;case m.RsA.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=ft}else{if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=ct}break;case m.RsA.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=ct}else{if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=ft}break;default:this.state=ut}this.state!==ut&&this.dispatchEvent(nt)}function St(t){switch(this.state){case ct:if(!1===this.enableRotate)return;this._handleMouseMoveRotate(t);break;case ht:if(!1===this.enableZoom)return;this._handleMouseMoveDolly(t);break;case ft:if(!1===this.enablePan)return;this._handleMouseMovePan(t)}}function Pt(t){!1!==this.enabled&&!1!==this.enableZoom&&this.state===ut&&(t.preventDefault(),this.dispatchEvent(nt),this._handleMouseWheel(this._customWheelEvent(t)),this.dispatchEvent(rt))}function Ht(t){!1!==this.enabled&&this._handleKeyDown(t)}function Mt(t){switch(this._trackPointer(t),this._pointers.length){case 1:switch(this.touches.ONE){case m.QmN.ROTATE:if(!1===this.enableRotate)return;this._handleTouchStartRotate(t),this.state=pt;break;case m.QmN.PAN:if(!1===this.enablePan)return;this._handleTouchStartPan(t),this.state=dt;break;default:this.state=ut}break;case 2:switch(this.touches.TWO){case m.QmN.DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchStartDollyPan(t),this.state=mt;break;case m.QmN.DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchStartDollyRotate(t),this.state=gt;break;default:this.state=ut}break;default:this.state=ut}this.state!==ut&&this.dispatchEvent(nt)}function Et(t){switch(this._trackPointer(t),this.state){case pt:if(!1===this.enableRotate)return;this._handleTouchMoveRotate(t),this.update();break;case dt:if(!1===this.enablePan)return;this._handleTouchMovePan(t),this.update();break;case mt:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchMoveDollyPan(t),this.update();break;case gt:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchMoveDollyRotate(t),this.update();break;default:this.state=ut}}function Tt(t){!1!==this.enabled&&t.preventDefault()}
vendor: 11,904 bytes, line 1
1function Ot(t){if("Control"===t.key){this._controlActive=!0;this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0})}}function kt(t){if("Control"===t.key){this._controlActive=!1;this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0})}}const At={type:"change"},Ct=1e-6,jt=new m._fP;class Rt extends m.ZXd{constructor(t,e=null){super(t,e),this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1,this._moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this._moveVector=new m.Pa4(0,0,0),this._rotationVector=new m.Pa4(0,0,0),this._lastQuaternion=new m._fP,this._lastPosition=new m.Pa4,this._status=0,this._onKeyDown=Dt.bind(this),this._onKeyUp=Lt.bind(this),this._onPointerMove=zt.bind(this),this._onPointerDown=It.bind(this),this._onPointerUp=Ut.bind(this),this._onPointerCancel=Ft.bind(this),this._onContextMenu=Bt.bind(this),null!==e&&this.connect(e)}connect(t){super.connect(t),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointerup",this._onPointerUp),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("contextmenu",this._onContextMenu)}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("contextmenu",this._onContextMenu)}dispose(){this.disconnect()}update(t){if(!1===this.enabled)return;const e=this.object,n=t*this.movementSpeed,r=t*this.rollSpeed;e.translateX(this._moveVector.x*n),e.translateY(this._moveVector.y*n),e.translateZ(this._moveVector.z*n),jt.set(this._rotationVector.x*r,this._rotationVector.y*r,this._rotationVector.z*r,1).normalize(),e.quaternion.multiply(jt),(this._lastPosition.distanceToSquared(e.position)>Ct||8*(1-this._lastQuaternion.dot(e.quaternion))>Ct)&&(this.dispatchEvent(At),this._lastQuaternion.copy(e.quaternion),this._lastPosition.copy(e.position))}_updateMovementVector(){const t=this._moveState.forward||this.autoForward&&!this._moveState.back?1:0;this._moveVector.x=-this._moveState.left+this._moveState.right,this._moveVector.y=-this._moveState.down+this._moveState.up,this._moveVector.z=-t+this._moveState.back}_updateRotationVector(){this._rotationVector.x=-this._moveState.pitchDown+this._moveState.pitchUp,this._rotationVector.y=-this._moveState.yawRight+this._moveState.yawLeft,this._rotationVector.z=-this._moveState.rollRight+this._moveState.rollLeft}_getContainerDimensions(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}}}function Dt(t){if(!t.altKey&&!1!==this.enabled){switch(t.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this._moveState.forward=1;break;case"KeyS":this._moveState.back=1;break;case"KeyA":this._moveState.left=1;break;case"KeyD":this._moveState.right=1;break;case"KeyR":this._moveState.up=1;break;case"KeyF":this._moveState.down=1;break;case"ArrowUp":this._moveState.pitchUp=1;break;case"ArrowDown":this._moveState.pitchDown=1;break;case"ArrowLeft":this._moveState.yawLeft=1;break;case"ArrowRight":this._moveState.yawRight=1;break;case"KeyQ":this._moveState.rollLeft=1;break;case"KeyE":this._moveState.rollRight=1}this._updateMovementVector(),this._updateRotationVector()}}function Lt(t){if(!1!==this.enabled){switch(t.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this._moveState.forward=0;break;case"KeyS":this._moveState.back=0;break;case"KeyA":this._moveState.left=0;break;case"KeyD":this._moveState.right=0;break;case"KeyR":this._moveState.up=0;break;case"KeyF":this._moveState.down=0;break;case"ArrowUp":this._moveState.pitchUp=0;break;case"ArrowDown":this._moveState.pitchDown=0;break;case"ArrowLeft":this._moveState.yawLeft=0;break;case"ArrowRight":this._moveState.yawRight=0;break;case"KeyQ":this._moveState.rollLeft=0;break;case"KeyE":this._moveState.rollRight=0}this._updateMovementVector(),this._updateRotationVector()}}function It(t){if(!1!==this.enabled)if(this.dragToLook)this._status++;else{switch(t.button){case 0:this._moveState.forward=1;break;case 2:this._moveState.back=1}this._updateMovementVector()}}function zt(t){if(!1!==this.enabled&&(!this.dragToLook||this._status>0)){const e=this._getContainerDimensions(),n=e.size[0]/2,r=e.size[1]/2;this._moveState.yawLeft=-(t.pageX-e.offset[0]-n)/n,this._moveState.pitchDown=(t.pageY-e.offset[1]-r)/r,this._updateRotationVector()}}function Ut(t){if(!1!==this.enabled){if(this.dragToLook)this._status--,this._moveState.yawLeft=this._moveState.pitchDown=0;else{switch(t.button){case 0:this._moveState.forward=0;break;case 2:this._moveState.back=0}this._updateMovementVector()}this._updateRotationVector()}}function Ft(){!1!==this.enabled&&(this.dragToLook?(this._status=0,this._moveState.yawLeft=this._moveState.pitchDown=0):(this._moveState.forward=0,this._moveState.back=0,this._updateMovementVector()),this._updateRotationVector())}function Bt(t){!1!==this.enabled&&t.preventDefault()}const Nt={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\n\t\t}"};class Zt{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}const Wt=new m.iKG(-1,1,1,-1,0,1);class Gt extends m.u9r{constructor(){super(),this.setAttribute("position",new m.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new m.a$l([0,2,0,0,2,0],2))}}const Vt=new Gt;class $t{constructor(t){this._mesh=new m.Kj0(Vt,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,Wt)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}class Yt extends Zt{constructor(t,e="tDiffuse"){super(),this.textureID=e,this.uniforms=null,this.material=null,t instanceof m.jyz?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=m.rDY.clone(t.uniforms),this.material=new m.jyz({name:void 0!==t.name?t.name:"unspecified",defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this._fsQuad=new $t(this.material)}render(t,e,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this._fsQuad.material=this.material,this.renderToScreen?(t.setRenderTarget(null),this._fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),this._fsQuad.render(t))}dispose(){this.material.dispose(),this._fsQuad.dispose()}}class Xt extends Zt{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,n){const r=t.getContext(),o=t.state;let i,a;o.buffers.color.setMask(!1),o.buffers.depth.setMask(!1),o.buffers.color.setLocked(!0),o.buffers.depth.setLocked(!0),this.inverse?(i=0,a=1):(i=1,a=0),o.buffers.stencil.setTest(!0),o.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),o.buffers.stencil.setFunc(r.ALWAYS,i,4294967295),o.buffers.stencil.setClear(a),o.buffers.stencil.setLocked(!0),t.setRenderTarget(n),this.clear&&t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(e),this.clear&&t.clear(),t.render(this.scene,this.camera),o.buffers.color.setLocked(!1),o.buffers.depth.setLocked(!1),o.buffers.color.setMask(!0),o.buffers.depth.setMask(!0),o.buffers.stencil.setLocked(!1),o.buffers.stencil.setFunc(r.EQUAL,1,4294967295),o.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),o.buffers.stencil.setLocked(!0)}}class qt extends Zt{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}class Kt{constructor(t,e){if(this.renderer=t,this._pixelRatio=t.getPixelRatio(),void 0===e){const n=t.getSize(new m.FM8);this._width=n.width,this._height=n.height,(e=new m.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:m.cLu})).texture.name="EffectComposer.rt1"}else this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new Yt(Nt),this.copyPass.material.blending=m.jFi,this.clock=new m.SUY}swapBuffers(){const t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}addPass(t){this.passes.push(t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(t,e){this.passes.splice(e,0,t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(t){const e=this.passes.indexOf(t);-1!==e&&this.passes.splice(e,1)}isLastEnabledPass(t){for(let e=t+1;e<this.passes.length;e++)if(this.passes[e].enabled)return!1;return!0}render(t){void 0===t&&(t=this.clock.getDelta());const e=this.renderer.getRenderTarget();let n=!1;for(let r=0,o=this.passes.length;r<o;r++){const e=this.passes[r];if(!1!==e.enabled){if(e.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(r),e.render(this.renderer,this.writeBuffer,this.readBuffer,t,n),e.needsSwap){if(n){const e=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(e.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,t),n.setFunc(e.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==Xt&&(e instanceof Xt?n=!0:e instanceof qt&&(n=!1))}}this.renderer.setRenderTarget(e)}reset(t){if(void 0===t){const e=this.renderer.getSize(new m.FM8);this._pixelRatio=this.renderer.getPixelRatio(),this._width=e.width,this._height=e.height,(t=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(t,e){this._width=t,this._height=e;const n=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(n,r),this.renderTarget2.setSize(n,r);for(let o=0;o<this.passes.length;o++)this.passes[o].setSize(n,r)}setPixelRatio(t){this._pixelRatio=t,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class Qt extends Zt{constructor(t,e,n=null,r=null,o=null){super(),this.scene=t,this.camera=e,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=o,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new m.Ilk}render(t,e,n){const r=t.autoClear;let o,i;t.autoClear=!1,null!==this.overrideMaterial&&(i=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),null!==this.clearColor&&(t.getClearColor(this._oldClearColor),t.setClearColor(this.clearColor,t.getClearAlpha())),null!==this.clearAlpha&&
1(o=t.getClearAlpha(),t.setClearAlpha(this.clearAlpha)),1==this.clearDepth&&t.clearDepth(),t.setRenderTarget(this.renderToScreen?null:n),!0===this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),t.render(this.scene,this.camera),null!==this.clearColor&&t.setClearColor(this._oldClearColor),null!==this.clearAlpha&&t.setClearAlpha(o),null!==this.overrideMaterial&&(this.scene.overrideMaterial=i),t.autoClear=r}}var Jt=n(87462),te=n(97326),ee=n(89611);var ne=n(61120);function re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(re=function(){return!!t})()}function oe(t,e,n){if(re())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&(0,ee.Z)(o,n.prototype),o}function ie(t){var e="function"==typeof Map?new Map:void 0;return ie=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch($e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return oe(t,arguments,(0,ne.Z)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,ee.Z)(n,t)},ie(t)}var ae=function(t){function e(e){var n;return n=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this,(0,te.Z)(n)}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,ee.Z)(t,e)}(e,t),e}(ie(Error));function se(t,e){return t.substr(-e.length)===e}var le=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function ue(t){return"string"!==typeof t?t:t.match(le)?parseFloat(t):t}var ce=function(t){return function(e,n){void 0===n&&(n="16px");var r=e,o=n;if("string"===typeof e){if(!se(e,"px"))throw new ae(69,t,e);r=ue(e)}if("string"===typeof n){if(!se(n,"px"))throw new ae(70,t,n);o=ue(n)}if("string"===typeof r)throw new ae(71,e,t);if("string"===typeof o)throw new ae(72,n,t);return""+r/o+t}};ce("em");ce("rem");function he(t){return Math.round(255*t)}function fe(t,e,n){return he(t)+","+he(e)+","+he(n)}function pe(t,e,n,r){if(void 0===r&&(r=fe),0===e)return r(n,n,n);var o=(t%360+360)%360/60,i=(1-Math.abs(2*n-1))*e,a=i*(1-Math.abs(o%2-1)),s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);var c=n-i/2;return r(s+c,l+c,u+c)}var de={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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
10",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:"639",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"};var me=/^#[a-fA-F0-9]{6}$/,ge=/^#[a-fA-F0-9]{8}$/,ye=/^#[a-fA-F0-9]{3}$/,ve=/^#[a-fA-F0-9]{4}$/,be=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,_e=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,we=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,xe=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Se(t){if("string"!==typeof t)throw new ae(3);var e=function(t){if("string"!==typeof t)return t;var e=t.toLowerCase();return de[e]?"#"+de[e]:t}(t);if(e.match(me))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(ge)){var n=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alph
vendor: 1,110 bytes, line 1
1a:n}}if(e.match(ye))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(ve)){var r=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:r}}var o=be.exec(e);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=_e.exec(e.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=we.exec(e);if(a){var s="rgb("+pe(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=be.exec(s);if(!l)throw new ae(4,e,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=xe.exec(e.substring(0,50));if(u){var c="rgb("+pe(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",h=be.exec(c);if(!h)throw new ae(4,e,c);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alph
1a:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new ae(5)}function Pe(t){return function(t){var e,n=t.red/255,r=t.green/255,o=t.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==t.alpha?{hue:0,saturation:0,lightness:s,alpha:t.alpha}:{hue:0,saturation:0,lightness:s};var l=i-a,u=s>.5?l/(2-i-a):l/(i+a);switch(i){case n:e=(r-o)/l+(r<o?6:0);break;case r:e=(o-n)/l+2;break;default:e=(n-r)/l+4}return e*=60,void 0!==t.alpha?{hue:e,saturation:u,lightness:s,alpha:t.alpha}:{hue:e,saturation:u,lightness:s}}(Se(t))}var He=function(t){return 7===t.length&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t};function Me(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function Ee(t){return Me(Math.round(255*t))}function Te(t,e,n){return He("#"+Ee(t)+Ee(e)+Ee(n))}function Oe(t,e,n){return pe(t,e,n,Te)}function ke(t,e,n){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n)return Oe(t,e,n);if("object"===typeof t&&void 0===e&&void 0===n)return Oe(t.hue,t.saturation,t.lightness);throw new ae(1)}function Ae(t,e,n,r){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n&&"number"===typeof r)return r>=1?Oe(t,e,n):"rgba("+pe(t,e,n)+","+r+")";if("object"===typeof t&&void 0===e&&void 0===n&&void 0===r)return t.alpha>=1?Oe(t.hue,t.saturation,t.lightness):"rgba("+pe(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new ae(2)}function Ce(t,e,n){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n)return He("#"+Me(t)+Me(e)+Me(n));if("object"===typeof t&&void 0===e&&void 0===n)return He("#"+Me(t.red)+Me(t.green)+Me(t.blue));throw new ae(6)}function je(t,e,n,r){if("string"===typeof t&&"number"===typeof e){var o=Se(t);return"rgba("+o.red+","+o.green+","+o.blue+","+e+")"}if("number"===typeof t&&"number"===typeof e&&"number"===typeof n&&"number"===typeof r)return r>=1?Ce(t,e,n):"rgba("+t+","+e+","+n+","+r+")";if("object"===typeof t&&void 0===e&&void 0===n&&void 0===r)return t.alpha>=1?Ce(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new ae(7)}function Re(t){if("object"!==typeof t)throw new ae(8);if(function(t){return"number"===typeof t.red&&"number"===typeof t.green&&"number"===typeof t.blue&&"number"===typeof t.alpha}(t))return je(t);if(function(t){return"number"===typeof t.red&&"number"===typeof t.green&&"number"===typeof t.blue&&("number"!==typeof t.alpha||"undefined"===typeof t.alpha)}(t))return Ce(t);if(function(t){return"number"===typeof t.hue&&"number"===typeof t.saturation&&"number"===typeof t.lightness&&"number"===typeof t.alpha}(t))return Ae(t);if(function(t){return"number"===typeof t.hue&&"number"===typeof t.saturation&&"number"===typeof t.lightness&&("number"!==typeof t.alpha||"undefined"===typeof t.alpha)}(t))return ke(t);throw new ae(8)}function De(t,e,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=e?t.apply(this,r):De(t,e,r)}}function Le(t){return De(t,t.length,[])}Le((function(t,e){if("transparent"===e)return e;var n=Pe(e);return Re((0,Jt.Z)({},n,{hue:n.hue+parseFloat(t)}))}));function Ie(t,e,n){return Math.max(t,Math.min(e,n))}Le((function(t,e){if("transparent"===e)return e;var n=Pe(e);return Re((0,Jt.Z)({},n,{lightness:Ie(0,1,n.lightness-parseFloat(t))}))}));Le((function(t,e){if("transparent"===e)return e;var n=Pe(e);return Re((0,Jt.Z)({},n,{saturation:Ie(0,1,n.saturation-parseFloat(t))}))}));Le((function(t,e){if("transparent"===e)return e;var n=Pe(e);return Re((0,Jt.Z)({},n,{lightness:Ie(0,1,n.lightness+parseFloat(t))}))}));var ze=Le((function(t,e,n){if("transparent"===e)return n;if("transparent"===n)return e;if(0===t)return n;var r=Se(e),o=(0,Jt.Z)({},r,{alpha:"number"===typeof r.alpha?r.alpha:1}),i=Se(n),a=(0,Jt.Z)({},i,{alpha:"number"===typeof i.alpha?i.alpha:1}),s=o.alpha-a.alpha,l=2*parseFloat(t)-1,u=((l*s===-1?l:l+s)/(1+l*s)+1)/2,c=1-u;return je({red:Math.floor(o.red*u+a.red*c),green:Math.floor(o.green*u+a.green*c),blue:Math.floor(o.blue*u+a.blue*c),alpha:o.alpha*parseFloat(t)+a.alpha*(1-parseFloat(t))})})),Ue=ze;var Fe=Le((function(t,e){if("transparent"===e)return e;
1var n=Se(e),r="number"===typeof n.alpha?n.alpha:1;return je((0,Jt.Z)({},n,{alpha:Ie(0,1,(100*r+100*parseFloat(t))/100)}))}));Le((function(t,e){if("transparent"===e)return e;var n=Pe(e);return Re((0,Jt.Z)({},n,{saturation:Ie(0,1,n.saturation+parseFloat(t))}))}));Le((function(t,e){return"transparent"===e?e:Re((0,Jt.Z)({},Pe(e),{hue:parseFloat(t)}))}));Le((function(t,e){return"transparent"===e?e:Re((0,Jt.Z)({},Pe(e),{lightness:parseFloat(t)}))}));Le((function(t,e){return"transparent"===e?e:Re((0,Jt.Z)({},Pe(e),{saturation:parseFloat(t)}))}));Le((function(t,e){return"transparent"===e?e:Ue(parseFloat(t),"rgb(0, 0, 0)",e)}));Le((function(t,e){return"transparent"===e?e:Ue(parseFloat(t),"rgb(255, 255, 255)",e)}));Le((function(t,e){if("transparent"===e)return e;var n=Se(e),r="number"===typeof n.alpha?n.alpha:1;return je((0,Jt.Z)({},n,{alpha:Ie(0,1,+(100*r-100*parseFloat(t)).toFixed(2)/100)}))}));var Be=n(28250),Ne=n(48710),Ze=n(36386),We=n(21680);function Ge(t){return"string"===typeof t?new We.Y1([[document.querySelector(t)]],[document.documentElement]):new We.Y1([[t]],We.Jz)}function Ve(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var $e,Ye,Xe,qe,Ke,Qe,Je,tn,en,nn,rn,on,an={},sn=[],ln=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,un=Array.isArray;function cn(t,e){for(var n in e)t[n]=e[n];return t}function hn(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function fn(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++Xe:o,__i:-1,__u:0};return null==o&&null!=Ye.vnode&&Ye.vnode(i),i}function pn(t){return t.children}function dn(t,e){this.props=t,this.context=e}function mn(t,e){if(null==e)return t.__?mn(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?mn(t):null}function gn(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return gn(t)}}function yn(t){(!t.__d&&(t.__d=!0)&&Ke.push(t)&&!vn.__r++||Qe!=Ye.debounceRendering)&&((Qe=Ye.debounceRendering)||Je)(vn)}function vn(){for(var t,e,n,r,o,i,a,s=1;Ke.length;)Ke.length>s&&Ke.sort(tn),t=Ke.shift(),s=Ke.length,t.__d&&(n=void 0,o=(r=(e=t).__v).__e,i=[],a=[],e.__P&&((n=cn({},r)).__v=r.__v+1,Ye.vnode&&Ye.vnode(n),Mn(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[o]:null,i,null==o?mn(r):o,!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,En(i,n,a),n.__e!=o&&gn(n)));vn.__r=0}function bn(t,e,n,r,o,i,a,s,l,u,c){var h,f,p,d,m,g,y=r&&r.__k||sn,v=e.length;for(l=_n(n,e,y,l,v),h=0;h<v;h++)null!=(p=n.__k[h])&&(f=-1==p.__i?an:y[p.__i]||an,p.__i=h,g=Mn(t,p,f,o,i,a,s,l,u,c),d=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&kn(f.ref,null,p),c.push(p.ref,p.__c||d,p)),null==m&&null!=d&&(m=d),4&p.__u||f.__k===p.__k?l=wn(p,l,t):"function"==typeof p.type&&void 0!==g?l=g:d&&(l=d.nextSibling),p.__u&=-7);return n.__e=m,l}function _n(t,e,n,r,o){var i,a,s,l,u,c=n.length,h=c,f=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(a=e[i])&&"boolean"!=typeof a&&"function"!=typeof a?(l=i+f,(a=t.__k[i]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?fn(null,a,null,null,null):un(a)?fn(pn,{children:a},null,null,null):null==a.constructor&&a.__b>0?fn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,-1!=(u=a.__i=xn(a,n,l,h))&&(h--,(s=n[u])&&(s.__u|=2)),null==s||null==s.__v?(-1==u&&(o>c?f--:o<c&&f++),"function"!=typeof a.type&&(a.__u|=4)):u!=l&&(u==l-1?f--:u==l+1?f++:(u>l?f--:f++,a.__u|=4))):t.__k[i]=null;if(h)for(i=0;i<c;i++)null!=(s=n[i])&&0==(2&s.__u)&&(s.__e==r&&(r=mn(s)),An(s,s));return r}function wn(t,e,n){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=wn(r[o],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=mn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function xn(t,e,n,r){var o,i,a=t.key,s=t.type,l=e[n];
1if(null===l&&null==t.key||l&&a==l.key&&s==l.type&&0==(2&l.__u))return n;if(r>(null!=l&&0==(2&l.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<e.length;){if(o>=0){if((l=e[o])&&0==(2&l.__u)&&a==l.key&&s==l.type)return o;o--}if(i<e.length){if((l=e[i])&&0==(2&l.__u)&&a==l.key&&s==l.type)return i;i++}}return-1}function Sn(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||ln.test(e)?n:n+"px"}function Pn(t,e,n,r,o){var i;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Sn(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||Sn(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(en,"$1")),e=e.toLowerCase()in t||"onFocusOut"==e||"onFocusIn"==e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=nn,t.addEventListener(e,i?on:rn,i)):t.removeEventListener(e,i?on:rn,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function Hn(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=nn++;else if(e.t<n.u)return;return n(Ye.event?Ye.event(e):e)}}}function Mn(t,e,n,r,o,i,a,s,l,u){var c,h,f,p,d,m,g,y,v,b,_,w,x,S,P,H,M,E=e.type;if(null!=e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=e.__e=n.__e]),(c=Ye.__b)&&c(e);t:if("function"==typeof E)try{if(y=e.props,v="prototype"in E&&E.prototype.render,b=(c=E.contextType)&&r[c.__c],_=c?b?b.props.value:c.__:r,n.__c?g=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new E(y,_):(e.__c=h=new dn(y,_),h.constructor=E,h.render=Cn),b&&b.sub(h),h.props=y,h.state||(h.state={}),h.context=_,h.__n=r,f=h.__d=!0,h.__h=[],h._sb=[]),v&&null==h.__s&&(h.__s=h.state),v&&null!=E.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=cn({},h.__s)),cn(h.__s,E.getDerivedStateFromProps(y,h.__s))),p=h.props,d=h.state,h.__v=e,f)v&&null==E.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),v&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(v&&null==E.getDerivedStateFromProps&&y!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,_),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,_)||e.__v==n.__v){for(e.__v!=n.__v&&(h.props=y,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some((function(t){t&&(t.__=e)})),w=0;w<h._sb.length;w++)h.__h.push(h._sb[w]);h._sb=[],h.__h.length&&a.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,_),v&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,d,m)}))}if(h.context=_,h.props=y,h.__P=t,h.__e=!1,x=Ye.__r,S=0,v){for(h.state=h.__s,h.__d=!1,x&&x(e),c=h.render(h.props,h.state,h.context),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[]}else do{h.__d=!1,x&&x(e),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++S<25);h.state=h.__s,null!=h.getChildContext&&(r=cn(cn({},r),h.getChildContext())),v&&!f&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(p,d)),H=c,null!=c&&c.type===pn&&null==c.key&&(H=Tn(c.props.children)),s=bn(t,un(H)?H:[H],e,n,r,o,i,a,s,l,u),h.base=e.__e,e.__u&=-161,h.__h.length&&a.push(h),g&&(h.__E=h.__=null)}catch(t){if(e.__v=null,l||null!=i)if(t.then){for(e.__u|=l?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,e.__e=s}else for(M=i.length;M--;)hn(i[M]);else e.__e=n.__e,e.__k=n.__k;Ye.__e(t,e,n)}else null==i&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=On(n.__e,e,n,r,o,i,a,l,u);return(c=Ye.diffed)&&c(e),128&e.__u?void 0:s}function En(t,e,n){for(var r=0;r<n.length;r++)kn(n[r],n[++r],n[++r]);Ye.__c&&Ye.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){Ye.__e(t,e.__v)}}))}function Tn(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:un(t)?t.map(Tn):cn({},t)}function On(t,e,n,r,o,i,a,s,l){var u,c,h,f,p,d,m,g=n.props,y=e.props,v=e.type;if("svg"==v?o="http://www.w3.org/2000/svg":"math"==v?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;
vendor: 4,168 bytes, line 1
1u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!v&&(v?p.localName==v:3==p.nodeType)){t=p,i[u]=null;break}if(null==t){if(null==v)return document.createTextNode(y);t=document.createElementNS(o,v,y.is&&y),s&&(Ye.__m&&Ye.__m(e,i),s=!1),i=null}if(null==v)g===y||s&&t.data==y||(t.data=y);else{if(i=i&&$e.call(t.childNodes),g=n.props||an,!s&&null!=i)for(g={},u=0;u<t.attributes.length;u++)g[(p=t.attributes[u]).name]=p.value;for(u in g)if(p=g[u],"children"==u);else if("dangerouslySetInnerHTML"==u)h=p;else if(!(u in y)){if("value"==u&&"defaultValue"in y||"checked"==u&&"defaultChecked"in y)continue;Pn(t,u,null,p,o)}for(u in y)p=y[u],"children"==u?f=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?d=p:"checked"==u?m=p:s&&"function"!=typeof p||g[u]===p||Pn(t,u,p,g[u],o);if(c)s||h&&(c.__html==h.__html||c.__html==t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(h&&(t.innerHTML=""),bn("template"==e.type?t.content:t,un(f)?f:[f],e,n,r,"foreignObject"==v?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&mn(n,0),s,l),null!=i)for(u=i.length;u--;)hn(i[u]);s||(u="value","progress"==v&&null==d?t.removeAttribute("value"):null!=d&&(d!==t[u]||"progress"==v&&!d||"option"==v&&d!=g[u])&&Pn(t,u,d,g[u],o),u="checked",null!=m&&m!=t[u]&&Pn(t,u,m,g[u],o))}return t}function kn(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){Ye.__e(t,n)}}function An(t,e,n){var r,o;if(Ye.unmount&&Ye.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||kn(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){Ye.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&An(r[o],e,n||"function"!=typeof t.type);n||hn(t.__e),t.__c=t.__=t.__e=void 0}function Cn(t,e,n){return this.constructor(t,n)}function jn(t,e,n){var r,o,i,a;e==document&&(e=document.documentElement),Ye.__&&Ye.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],a=[],Mn(e,t=(!r&&n||e).__k=function(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?$e.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)null==a[i]&&(a[i]=t.defaultProps[i]);return fn(t,a,r,o,null)}(pn,null,[t]),o||an,an,e.namespaceURI,!r&&n?[n]:o?null:e.firstChild?$e.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r,a),En(i,t,a)}function Rn(t,e,n){var r,o,i,a,s=cn({},t.props);for(i in t.type&&t.type.defaultProps&&(a=t.type.defaultProps),e)"key"==i?r=e[i]:"ref"==i?o=e[i]:s[i]=null==e[i]&&null!=a?a[i]:e[i];return arguments.length>2&&(s.children=arguments.length>3?$e.call(arguments,2):n),fn(t.type,s,r||t.key,o||t.ref,null)}function Dn(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 Ln(t,e,n){return(e=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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function In(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zn(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Dn(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)?Dn(t,e):void 0}}
vendor: 1,180 bytes, line 1
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(t){return Un="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},Un(t)}$e=sn.slice,Ye={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},Xe=0,qe=function(t){return null!=t&&null==t.constructor},dn.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=cn({},this.state),"function"==typeof t&&(t=t(cn({},n),this.props)),t&&cn(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),yn(this))},dn.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),yn(this))},dn.prototype.render=pn,Ke=[],Je="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,tn=function(t,e){return t.__v.__b-e.__v.__b},vn.__r=0,en=/(PointerCapture)$|Capture$/i,nn=0,rn=Hn(!1),on=Hn(!0);var Fn=function(t){if("object"!==Un(t))return t;var e,n=Rn(t);n.props&&(n.props=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?In(Object(n),!0).forEach((function(e){Ln(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n.props),null!==n&&void 0!==n&&null!==(e=n.props)&&void 0!==e&&e.children&&(n.props.children=Array.isArray(n.props.children)?n.props.children.map(Fn):Fn(n.props.children)));return n};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".float-tooltip-kap {\n  position: absolute;\n  width: max-content; /* prevent shrinking near right edge */\n  max-width: max(50%, 150px);\n  padding: 3px 5px;\n  border-radius: 3px;\n  font: 12px sans-serif;\n  color: #eee;\n  background: rgba(0,0,0,0.6);\n  pointer-events: none;\n}\n");var Bn=(0,Ze.Z)({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.style,o=void 0===r?{}:r,i=!!t&&"object"===Un(t)&&!!t.node&&"function"===typeof t.node,a=Ge(i?t.node():t);"static"===a.style("position")&&a.style("position","relative"),e.tooltipEl=a.append("div").attr("class","float-tooltip-kap"),Object.entries(o).forEach((function(t){var n=zn(t,2),r=n[0],o=n[1];return e.tooltipEl.style(r,o)})),e.tooltipEl.style("left","-10000px").style("display","none");var s="tooltip-".concat(Math.round(1e12*Math.random()));e.mouseInside=!1,a.on("mousemove.".concat(s),(function(t){e.mouseInside=!0;var n=Ve(t),r=a.node(),o=r.offsetWidth,i=r.offsetHeight,s=[null===e.offsetX||void 0===e.offsetX?"-".concat(n[0]/o*100,"%"):"number"===typeof e.offsetX?"calc(-50% + ".concat(e.offsetX,"px)"):e.offsetX,null===e.offsetY||void 0===e.offsetY?i>130&&i-n[1]<100?"calc(-100% - 6px)":"21px":"number"===typeof e.offsetY?e.offsetY<0?"calc(-100% - ".concat(Math.abs(e.offsetY),"px)"):"".concat(e.offsetY,"px"):e.offsetY];e.tooltipEl.style("left",n[0]+"px").style("top",n[1]+"px").style("transform","translate(".concat(s.join(","),")")),e.content&&e.tooltipEl.style("display","inline")})),a.on("mouseover.".concat(s),(function(){e.mouseInside=!0,e.content&&e.tooltipEl.style("display","inline")})),a.on("mouseout.".concat(s),(function(){e.mouseInside=!1,e.tooltipEl.style("display","none")}))},update:function(t){var e,n;t.tooltipEl.style("display",t.content&&t.mouseInside?"inline":"none"),t.content?t.content instanceof HTMLElement?(t.tooltipEl.text(""),t.tooltipEl.append((function(){return t.content}))):"string"===typeof t.content?t.tooltipEl.html(t.content):!function(t){return qe(Rn(t))}(t.content)?(t.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",t.content,t.content.toString())):(t.tooltipEl.text(""),e=t.content,delete(n=t.tooltipEl.node()).__k,jn(Fn(e),n)):t.tooltipEl.text("")}});function Nn(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 Zn(t,e,n){return(e=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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wn(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||Vn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(t){return function(t){if(Array.isArray(t))return Nn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Vn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(t,e){if(t){if("string"==typeof t)return Nn(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)?Nn(t,e):void 0}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".scene-nav-info {\n  position: absolute;\n  bottom: 5px;\n  width: 100%;\n  text-align: center;\n  color: slategrey;\n  opacity: 0.7;\n  font-size: 10px;\n  font-family: sans-serif;\n  pointer-events: none;\n  user-select: none;\n}\n\n.scene-container canvas:focus {\n  outline: none;\n}");var $n=window.THREE?window.THREE:{WebGLRenderer:v.CP7,Scene:m.xsS,PerspectiveCamera:m.cPb,Raycaster:m.iMs,SRGBColorSpace:m.KI_,TextureLoader:m.dpR,Vector2:m.FM8,Vector3:m.Pa4,Box3:m.ZzF,Color:m.Ilk,Mesh:m.Kj0,SphereGeometry:m.xo$,MeshBasicMaterial:m.vBJ,BackSide:m._Li,Clock:m.SUY},Yn=(0,Ze.Z)({props:{width:{default:window.innerWidth,onChange:function(t,e,n){isNaN(t)&&(e.width=n)}},height:{default:window.innerHeight,onChange:function(t,e,n){isNaN(t)&&(e.height=n)}},viewOffset:{default:[0,0]},backgroundColor:{default:"#000011"},backgroundImageUrl:{},onBackgroundImageLoaded:{},showNavInfo:{default:!0},skyRadius:{default:5e4},objects:{default:[]},lights:{default:[]},enablePointerInteraction:{default:!0,onChange:function(t,e){e.hoverObj=null,e.tooltip&&e.tooltip.content(null)},triggerUpdate:!1},pointerRaycasterThrottleMs:{default:50,triggerUpdate:!1},lineHoverPrecision:{default:1,triggerUpdate:!1},pointsHoverPrecision:{default:1,triggerUpdate:!1},hoverOrderComparator:{triggerUpdate:!1},hoverFilter:{default:function(){return!0},triggerUpdate:!1},tooltipContent:{triggerUpdate:!1},hoverDuringDrag:{default:!1,triggerUpdate:!1},clickAfterDrag:{default:!1,triggerUpdate:!1},onHover:{default:function(){},triggerUpdate:!1},onClick:{default:function(){},triggerUpdate:!1},onRightClick:{triggerUpdate:!1}},methods:{tick:function(t){if(t.initialised){t.controls.update&&t.controls.update(Math.min(1,t.clock.getDelta())),t.postProcessingComposer?t.postProcessingComposer.render():t.renderer.render(t.scene,t.camera),t.extraRenderers.forEach((function(e){return e.render(t.scene,t.camera)}));var e=+new Date;if(t.enablePointerInteraction&&e-t.lastRaycasterCheck>=t.pointerRaycasterThrottleMs){t.lastRaycasterCheck=e;var n=null;if(t.hoverDuringDrag||!t.isPointerDragging){var r=this.intersectingObjects(t.pointerPos.x,t.pointerPos.y);t.hoverOrderComparator&&r.sort((function(e,n){return t.hoverOrderComparator(e.object,n.object)}));var o=r.find((function(e){return t.hoverFilter(e.object)}))||null;n=o?o.object:null,t.intersection=o||null}n!==t.hoverObj&&(t.onHover(n,t.hoverObj,t.intersection),t.tooltip.content(n&&(0,Ne.Z)(t.tooltipContent)(n,t.intersection)||null),t.hoverObj=n)}t.tweenGroup.update()}return this},getPointerPos:function(t){var e=t.pointerPos;return{x:e.x,y:e.y}},cameraPosition:function(t,e,n,r){var o=t.camera;if(e&&t.initialised){var i=e,a=n||{x:0,y:0,z:0};if(r){var s=Object.assign({},o.position),l=h();t.tweenGroup.add(new Be.kX(s).to(i,r).easing(Be.oY.Quadratic.Out).onUpdate(u).start()),t.tweenGroup.add(new Be.kX(l).to(a,r/3).easing(Be.oY.Quadratic.Out).onUpdate(c).start())}else u(i),c(a);return this}return Object.assign({},o.position,{lookAt:h()});function u(t){var e=t.x,n=t.y,r=t.z;void 0!==e&&(o.position.x=e),void 0!==n&&(o.position.y=n),void 0!==r&&(o.position.z=r)}function c(e){var n=new $n.Vector3(e.x,e.y,e.z);t.controls.target?t.controls.target=n:o.lookAt(n)}function h(){return Object.assign(new $n.Vector3(0,0,-1e3).applyQuaternion(o.quaternion).add(o.position))}},zoomToFit: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]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return this.fitToBbox(this.getBbox.apply(this,o),e,n)},fitToBbox:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=t.camera;if(e){var i=new $n.Vector3(0,0,0),a=2*Math.max.apply(Math,Gn(Object.entries(e).map((function(t){var e=Wn(t,2),n=e[0],r=e[1];return Math.max.apply(Math,Gn(r.map((function(t){return Math.abs(i[n]-t)}))))})))),s=(1-2*r/t.height)*o.fov,l=a/Math.atan(s*Math.PI/180),u=l/o.aspect,c=Math.max(l,u);if(c>0){var h=i.clone().sub(o.position).normalize().multiplyScalar(-c);this.cameraPosition(h,i,n)}}return this},getBbox:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new $n.Box3(new $n.Vector3(0,0,0),new $n.Vector3(0,0,0)),r=t.objects.filter(e);return r.length?(r.forEach((function(t){return n.expandByObject(t)})),Object.assign.apply(Object,Gn(["x","y","z"].map((function(t){return Zn({},t,[n.min[t],n.max[t]])}))))):null},getScreenCoords:function(t,e,n,r){var o=new $n.Vector3(e,n,r);return o.project(this.camera()),{x:(o.x+1)*t.width/2,y:-(o.y-1)*t.height/2}},getSceneCoords:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=new $n.Vector2(e/t.width*2-1,-n/t.height*2+1),i=new $n.Raycaster;
1return i.setFromCamera(o,t.camera),Object.assign({},i.ray.at(r,new $n.Vector3))},intersectingObjects:function(t,e,n){var r=new $n.Vector2(e/t.width*2-1,-n/t.height*2+1),o=new $n.Raycaster;return o.params.Line.threshold=t.lineHoverPrecision,o.params.Points.threshold=t.pointsHoverPrecision,o.setFromCamera(r,t.camera),o.intersectObjects(t.objects,!0)},renderer:function(t){return t.renderer},scene:function(t){return t.scene},camera:function(t){return t.camera},postProcessingComposer:function(t){return t.postProcessingComposer},controls:function(t){return t.controls},tbControls:function(t){return t.controls}},stateInit:function(){return{scene:new $n.Scene,camera:new $n.PerspectiveCamera,clock:new $n.Clock,tweenGroup:new Be.ZA,lastRaycasterCheck:0}},init:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,o=void 0===r?"trackball":r,i=n.useWebGPU,a=void 0!==i&&i,s=n.rendererConfig,l=void 0===s?{}:s,u=n.extraRenderers,c=void 0===u?[]:u,h=n.waitForLoadComplete,f=void 0===h||h;t.innerHTML="",t.appendChild(e.container=document.createElement("div")),e.container.className="scene-container",e.container.style.position="relative",e.container.appendChild(e.navInfo=document.createElement("div")),e.navInfo.className="scene-nav-info",e.navInfo.textContent={orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"}[o]||"",e.navInfo.style.display=e.showNavInfo?null:"none",e.tooltip=new Bn(e.container),e.pointerPos=new $n.Vector2,e.pointerPos.x=-2,e.pointerPos.y=-2,["pointermove","pointerdown"].forEach((function(t){return e.container.addEventListener(t,(function(n){if("pointerdown"===t&&(e.isPointerPressed=!0),!e.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||e.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(t){return Math.abs(t)>1})))&&(e.isPointerDragging=!0),e.enablePointerInteraction){var r=function(t){var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}}(e.container);e.pointerPos.x=n.pageX-r.left,e.pointerPos.y=n.pageY-r.top}}),{passive:!0})})),e.container.addEventListener("pointerup",(function(t){e.isPointerPressed=!1,e.isPointerDragging&&(e.isPointerDragging=!1,!e.clickAfterDrag)||requestAnimationFrame((function(){0===t.button&&e.onClick(e.hoverObj||null,t,e.intersection),2===t.button&&e.onRightClick&&e.onRightClick(e.hoverObj||null,t,e.intersection)}))}),{passive:!0,capture:!0}),e.container.addEventListener("contextmenu",(function(t){e.onRightClick&&t.preventDefault()})),e.renderer=new(a?b.p9q:$n.WebGLRenderer)(Object.assign({antialias:!0,alpha:!0},l)),e.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),e.container.appendChild(e.renderer.domElement),e.extraRenderers=c,e.extraRenderers.forEach((function(t){t.domElement.style.position="absolute",t.domElement.style.top="0px",t.domElement.style.pointerEvents="none",e.container.appendChild(t.domElement)})),e.postProcessingComposer=new Kt(e.renderer),e.postProcessingComposer.addPass(new Qt(e.scene,e.camera)),e.controls=new{trackball:F,orbit:vt,fly:Rt}[o](e.camera,e.renderer.domElement),"fly"===o&&(e.controls.movementSpeed=300,e.controls.rollSpeed=Math.PI/6,e.controls.dragToLook=!0),"trackball"!==o&&"orbit"!==o||(e.controls.minDistance=.1,e.controls.maxDistance=e.skyRadius,e.controls.addEventListener("start",(function(){e.controlsEngaged=!0})),e.controls.addEventListener("change",(function(){e.controlsEngaged&&(e.controlsDragging=!0)})),e.controls.addEventListener("end",(function(){e.controlsEngaged=!1,e.controlsDragging=!1}))),[e.renderer,e.postProcessingComposer].concat(Gn(e.extraRenderers)).forEach((function(t){return t.setSize(e.width,e.height)})),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix(),e.camera.position.z=1e3,e.scene.add(e.skysphere=new $n.Mesh),e.skysphere.visible=!1,e.loadComplete=e.scene.visible=!f,window.scene=e.scene},update:function(t,e){if(t.width&&t.height&&(e.hasOwnProperty("width")||e.hasOwnProperty("height"))){var n,r=t.width,o=t.height;t.container.style.width="".concat(r,"px"),t.container.style.height="".concat(o,"px"),[t.renderer,t.postProcessingComposer].concat(Gn(t.extraRenderers)).forEac
1h((function(t){return t.setSize(r,o)})),t.camera.aspect=r/o;var i=t.viewOffset.slice(0,2);i.some((function(t){return t}))&&(n=t.camera).setViewOffset.apply(n,[r,o].concat(Gn(i),[r,o])),t.camera.updateProjectionMatrix()}if(e.hasOwnProperty("viewOffset")){var a,s=t.width,l=t.height,u=t.viewOffset.slice(0,2);u.some((function(t){return t}))?(a=t.camera).setViewOffset.apply(a,[s,l].concat(Gn(u),[s,l])):t.camera.clearViewOffset()}if(e.hasOwnProperty("skyRadius")&&t.skyRadius&&(t.controls.hasOwnProperty("maxDistance")&&e.skyRadius&&(t.controls.maxDistance=Math.min(t.controls.maxDistance,t.skyRadius)),t.camera.far=2.5*t.skyRadius,t.camera.updateProjectionMatrix(),t.skysphere.geometry=new $n.SphereGeometry(t.skyRadius)),e.hasOwnProperty("backgroundColor")){var c=Se(t.backgroundColor).alpha;void 0===c&&(c=1),t.renderer.setClearColor(new $n.Color(Fe(1,t.backgroundColor)),c)}function h(){t.loadComplete=t.scene.visible=!0}e.hasOwnProperty("backgroundImageUrl")&&(t.backgroundImageUrl?(new $n.TextureLoader).load(t.backgroundImageUrl,(function(e){e.colorSpace=$n.SRGBColorSpace,t.skysphere.material=new $n.MeshBasicMaterial({map:e,side:$n.BackSide}),t.skysphere.visible=!0,t.onBackgroundImageLoaded&&setTimeout(t.onBackgroundImageLoaded),!t.loadComplete&&h()})):(t.skysphere.visible=!1,t.skysphere.material.map=null,!t.loadComplete&&h())),e.hasOwnProperty("showNavInfo")&&(t.navInfo.style.display=t.showNavInfo?null:"none"),e.hasOwnProperty("lights")&&((e.lights||[]).forEach((function(e){return t.scene.remove(e)})),t.lights.forEach((function(e){return t.scene.add(e)}))),e.hasOwnProperty("objects")&&((e.objects||[]).forEach((function(e){return t.scene.remove(e)})),t.objects.forEach((function(e){return t.scene.add(e)})))}});function Xn(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 qn(t,e,n){return(e=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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(n),!0).forEach((function(e){qn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jn(t){return function(t){if(Array.isArray(t))return Xn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Xn(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)?Xn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){var n=new e;return n._destructor&&n._destructor(),{linkProp:function(e){return{default:n[e](),onChange:function(n,r){r[t][e](n)},triggerUpdate:!1}},linkMethod:function(e){return function(n){for(var r=n[t],o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=r[e].apply(r,i);return s===r?this:s}}}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".scene-container .clickable {\n  cursor: pointer;\n}");
1var er=["rendererConfig","waitForGlobeReady"],nr=Qn(Qn({},window.THREE?window.THREE:{AmbientLight:m.Mig,DirectionalLight:m.Ox3,Vector2:m.FM8,REVISION:m.UZH}),{},{CSS2DRenderer:g.M}),rr=tr("globe",y.Z),or=Object.assign.apply(Object,Jn(["globeImageUrl","bumpImageUrl","globeTileEngineUrl","globeTileEngineMaxLevel","showGlobe","showGraticules","showAtmosphere","atmosphereColor","atmosphereAltitude","onGlobeReady","pointsData","pointLat","pointLng","pointColor","pointAltitude","pointRadius","pointResolution","pointsMerge","pointsTransitionDuration","arcsData","arcStartLat","arcStartLng","arcEndLat","arcEndLng","arcColor","arcAltitude","arcAltitudeAutoScale","arcStroke","arcCurveResolution","arcCircularResolution","arcDashLength","arcDashGap","arcDashInitialGap","arcDashAnimateTime","arcsTransitionDuration","polygonsData","polygonGeoJsonGeometry","polygonCapColor","polygonCapMaterial","polygonSideColor","polygonSideMaterial","polygonStrokeColor","polygonAltitude","polygonCapCurvatureResolution","polygonsTransitionDuration","pathsData","pathPoints","pathPointLat","pathPointLng","pathPointAlt","pathResolution","pathColor","pathStroke","pathDashLength","pathDashGap","pathDashInitialGap","pathDashAnimateTime","pathTransitionDuration","heatmapsData","heatmapPoints","heatmapPointLat","heatmapPointLng","heatmapPointWeight","heatmapBandwidth","heatmapColorFn","heatmapColorSaturation","heatmapBaseAltitude","heatmapTopAltitude","heatmapsTransitionDuration","hexBinPointsData","hexBinPointLat","hexBinPointLng","hexBinPointWeight","hexBinResolution","hexMargin","hexTopCurvatureResolution","hexTopColor","hexSideColor","hexAltitude","hexBinMerge","hexTransitionDuration","hexPolygonsData","hexPolygonGeoJsonGeometry","hexPolygonColor","hexPolygonAltitude","hexPolygonResolution","hexPolygonMargin","hexPolygonUseDots","hexPolygonCurvatureResolution","hexPolygonDotResolution","hexPolygonsTransitionDuration","tilesData","tileLat","tileLng","tileAltitude","tileWidth","tileHeight","tileUseGlobeProjection","tileMaterial","tileCurvatureResolution","tilesTransitionDuration","particlesData","particlesList","particleLat","particleLng","particleAltitude","particlesSize","particlesSizeAttenuation","particlesColor","particlesTexture","ringsData","ringLat","ringLng","ringAltitude","ringColor","ringResolution","ringMaxRadius","ringPropagationSpeed","ringRepeatPeriod","labelsData","labelLat","labelLng","labelAltitude","labelRotation","labelText","labelSize","labelTypeFace","labelColor","labelResolution","labelIncludeDot","labelDotRadius","labelDotOrientation","labelsTransitionDuration","htmlElementsData","htmlLat","htmlLng","htmlAltitude","htmlElement","htmlElementVisibilityModifier","htmlTransitionDuration","objectsData","objectLat","objectLng","objectAltitude","objectRotation","objectFacesSurface","objectThreeObject","customLayerData","customThreeObject","customThreeObjectUpdate"].map((function(t){return qn({},t,rr.linkProp(t))})))),ir=Object.assign.apply(Object,Jn(["globeMaterial","getGlobeRadius","getCoords","toGeoCoords"].map((function(t){return qn({},t,rr.linkMethod(t))})))),ar=tr("renderObjs",Yn),sr=Object.assign.apply(Object,Jn(["width","height","backgroundColor","backgroundImageUrl","enablePointerInteraction"].map((function(t){return qn({},t,ar.linkProp(t))})))),lr=Object.assign.apply(Object,Jn(["lights","postProcessingComposer"].map((function(t){return qn({},t,ar.linkMethod(t))})))),ur=(0,Ze.Z)({props:Qn(Qn({onZoom:{triggerUpdate:!1},onGlobeClick:{triggerUpdate:!1},onGlobeRightClick:{triggerUpdate:!1},pointLabel:{default:"name",triggerUpdate:!1},onPointClick:{triggerUpdate:!1},onPointRightClick:{triggerUpdate:!1},onPointHover:{triggerUpdate:!1},arcLabel:{default:"name",triggerUpdate:!1},onArcClick:{triggerUpdate:!1},onArcRightClick:{triggerUpdate:!1},onArcHover:{triggerUpdate:!1},polygonLabel:{default:"name",triggerUpdate:!1},onPolygonClick:{triggerUpdate:!1},onPolygonRightClick:{triggerUpdate:!1},onPolygonHover:{triggerUpdate:!1},pathLabel:{default:"name",triggerUpdate:!1},onPathClick:{triggerUpdate:!1},onPathRightClick:{triggerUpdate:!1},onPathHover:{triggerUpdate:!1},onHeatmapClick:{triggerUpdate:!1},onHeatmapRightClick:{triggerUpdate:!1},onHeatmapHover:{triggerUpdate:!1},hexLabel:{triggerUpdate:!1},onHexClick:{triggerUpdate:!1},onHexRightClick:{triggerUpdate:!1},onHexHover:{triggerUpdate:!1},hexPolygonLabel:{triggerUpdate:!1},onHexPolygonClick:{triggerUpdate:!1},onHexPolygonRightClick:{triggerUpdate:!1},onHexPolygonHover:{triggerUpdate:!1},tileLabel:{default:"name",triggerUpdate:!1},onTileClick:{triggerUpdate:!1},onTileRightClick:{triggerUpdate:!1},onTileHover:{triggerUpdate:!1},particleLabel:{default:"name",triggerUpdate:!1},onParticleClick:{triggerUpdate:!1},onParticleRightClick:{triggerUpdate:!1},onParticleHover:{triggerUpdate:!1},labelLabel:{triggerUpdate:!1},onLabelClick:{triggerUpdate:!1},onLabelRightClick:{triggerUpdate:!1},onLabelHover:{triggerUpdate:!1},objectLabel:{default:"name",triggerUpdate:!1},onObjectClick:{triggerUpdate:!1},onObjectRightClick:{triggerUpdate:!1},onObjectHover:{triggerUpdate:!1},customLayerLabel:{default:"name",triggerUpdate:!1},onCustomLayerClick:{triggerUpdate:!1},onCustomLayerRightClick:{triggerUpdate:!1},onCustomLayerHover:{triggerUpdate:!1},pointerEventsFilter:{default:function(){return!0},triggerUpdate:!1},lineHoverPrecision:{default:.2,triggerUpdate:!1,onChange:function(t,e){e.renderObjs.lineHoverPrecision(t),e.renderObjs.pointsHoverPrecision(t)}},globeOffset:{default:[0,0],triggerUpdate:!1,onChange:function(t,e){return Array.isArray(t)&&2===t.length&&e.renderObjs.viewOffset(t.map((function(t){return-t})))}}},or),sr),methods:Qn(Qn({pauseAnimation:function(t){var e;return null!==t.animationFrameRequestId&&(cancelAnimationFrame(t.animationFrameRequestId),t.animationFrameRequestId=null),null===(e=t.globe)||void 0===e||e.pauseAnimation(),this},resumeAnimation:function(t){var e;return null===t.animationFrameRequestId&&this._animationCycle(),null===(e=t.globe)||void 0===e||e.resumeAnimation(),this},_animationCycle:function(t){t.renderObjs.tick(),t.tweenGroup.update(),t.animationFrameRequestId=requestAnimationFrame(this._animationCycle)}
1,pointOfView:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=i();if(void 0===e.lat&&void 0===e.lng&&void 0===e.altitude)return r;var o=Object.assign({},r,e);if(["lat","lng","altitude"].forEach((function(t){return o[t]=+o[t]})),n){for(;r.lng-o.lng>180;)r.lng-=360;for(;r.lng-o.lng<-180;)r.lng+=360;t.tweenGroup.add(new Be.kX(r).to(o,n).easing(Be.oY.Cubic.InOut).onUpdate(a).start())}else a(o);return this;function i(){return t.globe.toGeoCoords(t.renderObjs.cameraPosition())}function a(e){var n=e.lat,r=e.lng,o=e.altitude;t.renderObjs.cameraPosition(t.globe.getCoords(n,r,o)),t.globe.setPointOfView(t.renderObjs.camera())}},getScreenCoords:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(e=t.globe).getCoords.apply(e,r);return t.renderObjs.getScreenCoords(i.x,i.y,i.z)},toGlobeCoords:function(t,e,n){var r=t.renderObjs.intersectingObjects(e,n).find((function(t){return"globe"===(t.object.__globeObjType||t.object.parent.__globeObjType)}));if(!r)return null;var o=t.globe.toGeoCoords(r.point);return{lat:o.lat,lng:o.lng}},scene:function(t){return t.renderObjs.scene()},camera:function(t){return t.renderObjs.camera()},renderer:function(t){return t.renderObjs.renderer()},controls:function(t){return t.renderObjs.controls()},_destructor:function(t){t.globe._destructor(),this.pauseAnimation(),this.pointsData([]),this.arcsData([]),this.polygonsData([]),this.pathsData([]),this.heatmapsData([]),this.hexBinPointsData([]),this.hexPolygonsData([]),this.tilesData([]),this.particlesData([]),this.labelsData([]),this.htmlElementsData([]),this.objectsData([]),this.customLayerData([])}},ir),lr),stateInit:function(t){var e=t.rendererConfig,n=t.waitForGlobeReady,r=void 0===n||n,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,er),i=new y.Z(Qn({waitForGlobeReady:r},o));return{globe:i,renderObjs:Yn({controlType:"orbit",rendererConfig:e,waitForLoadComplete:r,extraRenderers:[new nr.CSS2DRenderer]}).skyRadius(500*i.getGlobeRadius()).showNavInfo(!1).objects([i]).lights([new nr.AmbientLight(13421772,Math.PI),new nr.DirectionalLight(16777215,.6*Math.PI)]),tweenGroup:new Be.ZA}},init:function(t,e){var n=this;t.innerHTML="",t.appendChild(e.container=document.createElement("div")),e.container.style.position="relative";var r=document.createElement("div");e.container.appendChild(r),e.renderObjs(r),e.globe.rendererSize(e.renderObjs.renderer().getSize(new nr.Vector2)),this.pointOfView({altitude:2.5});var o=e.globe.getGlobeRadius(),i=e.renderObjs.controls();e.renderObjs.camera().near=.05,i.minDistance=o+Math.max(.001,1.1*e.renderObjs.camera().near),i.maxDistance=100*o,i.enablePan=!1,i.enableDamping=!0,i.dampingFactor=.1,i.rotateSpeed=.3,i.zoomSpeed=.3,i.zoomToCursor=!0,i.addEventListener("change",(function(){i.target.setScalar(0);var t=n.pointOfView();i.rotateSpeed=.3*t.altitude,i.zoomSpeed=.5*Math.sqrt(t.altitude),e.globe.setPointOfVie
1w(e.renderObjs.camera()),e.onZoom&&e.onZoom(t)}));var a=function(t){for(var e=t;e&&!e.hasOwnProperty("__globeObjType");)e=e.parent;return e},s={point:function(t){return t},arc:function(t){return t},polygon:function(t){return t.data},path:function(t){return t},heatmap:function(t){return t},hexbin:function(t){return t},hexPolygon:function(t){return t},tile:function(t){return t},particles:function(t,e){return!e||!e.hasOwnProperty("index")||t.length<=e.index?t:t[e.index]},label:function(t){return t},object:function(t){return t},custom:function(t){return t}};nr.REVISION<155&&(e.renderObjs.renderer().useLegacyLights=!1),e.renderObjs.hoverFilter((function(t){var n=a(t);if(!n)return!1;var r=n.__globeObjType;if("globe"!==r&&!s.hasOwnProperty(r))return!1;var o=s.hasOwnProperty(r)&&n.__data?s[r](n.__data):null;return(!["points","hexBinPoints"].some((function(t){return t===r}))||!Array.isArray(o))&&e.pointerEventsFilter(n,o)})).tooltipContent((function(t,n){var r={point:e.pointLabel,arc:e.arcLabel,polygon:e.polygonLabel,path:e.pathLabel,hexbin:e.hexLabel,hexPolygon:e.hexPolygonLabel,tile:e.tileLabel,particles:e.particleLabel,label:e.labelLabel,object:e.objectLabel,custom:e.customLayerLabel},o=a(t),i=o&&o.__globeObjType;return o&&i&&r.hasOwnProperty(i)&&s.hasOwnProperty(i)&&(0,Ne.Z)(r[i])(s[i](o.__data,n))||""})).onHover((function(t,n,r){var o={point:e.onPointHover,arc:e.onArcHover,polygon:e.onPolygonHover,path:e.onPathHover,heatmap:e.onHeatmapHover,hexbin:e.onHexHover,hexPolygon:e.onHexPolygonHover,tile:e.onTileHover,particles:e.onParticleHover,label:e.onLabelHover,object:e.onObjectHover,custom:e.onCustomLayerHover},i={globe:e.onGlobeClick,point:e.onPointClick,arc:e.onArcClick,polygon:e.onPolygonClick,path:e.onPathClick,heatmap:e.onHeatmapClick,hexbin:e.onHexClick,hexPolygon:e.onHexPolygonClick,tile:e.onTileClick,particles:e.onParticleClick,label:e.onLabelClick,object:e.onObjectClick,custom:e.onCustomLayerClick},l=a(t);if(l&&!o.hasOwnProperty(l.__globeObjType)&&(l=null),l!==e.hoverObj){var u=e.hoverObj?e.hoverObj.__globeObjType:null,c=e.hoverData,h=l?l.__globeObjType:null,f=l?s[h](l.__data,r):null;u&&u!==h&&o[u]&&o[u](null,c||null),h&&o[h]&&o[h](f,u===h?c:null),e.renderObjs.renderer().domElement.classList[h&&i[h]?"add":"remove"]("clickable"),e.hoverObj=l,e.hoverData=f}})).onClick((function(t,r,o){if(t){var i={globe:e.onGlobeClick,point:e.onPointClick,arc:e.onArcClick,polygon:e.onPolygonClick,path:e.onPathClick,heatmap:e.onHeatmapClick,hexbin:e.onHexClick,hexPolygon:e.onHexPolygonClick,tile:e.onTileClick,particles:e.onParticleClick,label:e.onLabelClick,object:e.onObjectClick,custom:e.onCustomLayerClick},l=a(t),u=l.__globeObjType;if(l&&i.hasOwnProperty(u)&&i[u]){var c=[r],h=null!==o&&void 0!==o&&o.isVector3?o:null===o||void 0===o?void 0:o.point;if("globe"===u){var f=n.toGeoCoords(h),p=f.lat,d=f.lng;c.unshift({lat:p,lng:d})}else c.push(n.toGeoCoords(h));s.hasOwnProperty(u)&&c.unshift(s[u](l.__data,o)),i[u].apply(i,c)}}})).onRightClick((function(t,r,o){if(t){var i={globe:e.onGlobeRightClick,point:e.onPointRightClick,arc:e.onArcRightClick,polygon:e.onPolygonRightClick,path:e.onPathRightClick,heatmap:e.onHeatmapRightClick,hexbin:e.onHexRightClick,hexPolygon:e.onHexPolygonRightClick,tile:e.onTileRightClick,particles:e.onParticleRightClick,label:e.onLabelRightClick,object:e.onObjectRightClick,custom:e.onCustomLayerRightClick},l=a(t),u=l.__globeObjType;if(l&&i.hasOwnProperty(u)&&i[u]){var c=[r],h=null!==o&&void 0!==o&&o.isVector3?o:null===o||void 0===o?void 0:o.point;if("globe"===u){var f=n.toGeoCoords(h),p=f.lat,d=f.lng;c.unshift({lat:p,lng:d})}else c.push(n.toGeoCoords(h));s.hasOwnProperty(u)&&c.unshift(s[u](l.__data,o)),i[u].apply(i,c)}}})),this._animationCycle()}}),cr=n(45697),hr={width:cr.number,height:cr.number,globeOffset:cr.arrayOf(cr.number),backgroundColor:cr.string,backgroundImageUrl:cr.string,globeImageUrl:cr.string,bumpImageUrl:cr.string,globeTileEngineUrl:cr.func,showGlobe:cr.bool,showGraticules:cr.bool,showAtmosphere:cr.bool,atmosphereColor:cr.string,atmosphereAltitude:cr.number,globeMaterial:cr.object,onGlobeReady:cr.func,onGlobeClick:cr.func,onGlobeRightClick:cr.func,pointsData:cr.arrayOf(cr.object),pointLat:cr.oneOfType([cr.number,cr.string,cr.func]),pointLng:cr.oneOfType([cr.number,cr.string,cr.func]),pointColor:cr.oneOfType([cr.string,cr.func]),pointAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),pointRadius:cr.oneOfType([cr.number,cr.string,cr.func]),pointResolution:cr.number,pointsMerge:cr.bool,pointsTransitionDuration:cr.number,pointLabel:cr.oneOfType([cr.string,cr.func]),onPointClick:cr.func,onPointRightClick:cr.func,onPointHover:cr.func,arcsData:cr.arrayOf(cr.object),arcStartLat:cr.oneOfType([cr.number,cr.string,cr.func]),arcStartLng:cr.oneOfType([cr.number,cr.string,cr.func]),arcEndLat:cr.oneOfType([cr.number,cr.string,cr.func]),arcEndLng:cr.oneOfType([cr.number,cr.string,cr.func]),arcColor:cr.oneOfType([cr.string,cr.arrayOf(cr.string),cr.func]),arcAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),arcAltitudeAutoScale:cr.oneOfType([cr.number,cr.string,cr.func]),arcStroke:cr.oneOfType([cr.number,cr.string,cr.func]),arcCurveResolution:cr.number,arcCircularResolution:cr.number,arcDashLength:cr.oneOfType([cr.number,cr.string,cr.func]),arcDashGap:cr.oneOfType([cr.number,cr.string,cr.func]),arcDashInitialGap:cr.oneOfType([cr.number,cr.string,cr.func]),arcDashAnimateTime:cr.oneOfType([cr.number,cr.string,cr.func]),arcsTransitionDuration:cr.number,arcLabel:cr.oneOfType([cr.string,cr.func]),onArcClick:cr.func,onArcRightClick:cr.func,onArcHover:cr.func,polygonsData:cr.arrayOf(cr.object),polygonGeoJsonGeometry:cr.oneOfType([cr.string,cr.func]),polygonCapColor:cr.oneOfType([cr.string,cr.func]),polygonCapMaterial:cr.oneOfType([cr.object,cr.string,cr.func]),polygonSideColor:cr.oneOfType([cr.string,cr.func]),polygonSideMaterial:cr.oneOfType([cr.object,cr.string,cr.func]),polygonStrokeColor:cr.oneOfType([cr.string,cr.func]),polygonAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),polygonCapCurvatureResolution:cr.oneOfType([cr.number,cr.string,cr.func]),polygonsTransitionDuration:cr.number,polygonLabel:cr.oneOfType([cr.string,cr.func]),onPolygonClick:cr.func,onPolygonRightClick:cr.func,onPolygonHover:cr.func,pathsData:cr.array,pathPoints:cr.oneOfType([cr.array,cr.string,cr.func]),pathPointLat:cr.oneOfType([cr.number,cr.string,cr.func]),pathPointLng:cr.oneOfType([cr.number,cr.string,cr.func]),pathPointAlt:cr.oneOfType([cr.number,cr.string,cr.func]),pathResolution:cr.number,pathColor:cr.oneOfType([cr.string,cr.arrayOf(cr.string),cr.func]),pathStroke:cr.oneOfType([cr.number,cr.string,cr.func]),pathDashLength:cr.oneOfType([cr.number,cr.string,cr.func]),pathDashGap:cr.oneOfType([cr.number,cr.string,cr.func]),pathDashInitialGap:cr.oneOfType([cr.number,cr.string,cr.func]),pathDashAnimateTime:cr.oneOfType([cr.number,cr.string,cr.func]),pathTransitionDuration:cr.number,pathLabel:cr.oneOfType([cr.string,cr.func]),onPathClick:cr.func,onPathRightClick:cr.func,onPathHover:cr.func,heatmapsData:cr.array,heatmapPoints:cr.oneOfType([cr.array,cr.string,cr.func]),heatmapPointLat:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapPointLng:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapPointWeight:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapBandwidth:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapColorFn:cr.oneOfType([cr.string,cr.func]),heatmapColorSaturation:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapBaseAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapTopAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),heatmapsTransitionDuration:cr.number,onHeatmapClick:cr.func,onHeatmapRightClick:cr.func,onHeatmapHover:cr.func,hexBinPointsData:cr.arrayOf(cr.object),hexBinPointLat:cr.oneOfType([cr.number,cr.string,cr.func]),hexBinPointLng:cr.oneOfType([cr.number,cr.string,cr.func]),hexBinPointWeight:cr.oneOfType([cr.number,cr.string,cr.func]),hexBinRes
1olution:cr.number,hexMargin:cr.oneOfType([cr.number,cr.func]),hexTopColor:cr.func,hexSideColor:cr.func,hexAltitude:cr.oneOfType([cr.number,cr.func]),hexTopCurvatureResolution:cr.number,hexBinMerge:cr.bool,hexTransitionDuration:cr.number,hexLabel:cr.oneOfType([cr.string,cr.func]),onHexClick:cr.func,onHexRightClick:cr.func,onHexHover:cr.func,hexPolygonsData:cr.arrayOf(cr.object),hexPolygonGeoJsonGeometry:cr.oneOfType([cr.string,cr.func]),hexPolygonColor:cr.oneOfType([cr.string,cr.func]),hexPolygonAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),hexPolygonResolution:cr.oneOfType([cr.number,cr.string,cr.func]),hexPolygonMargin:cr.oneOfType([cr.number,cr.string,cr.func]),hexPolygonUseDots:cr.oneOfType([cr.bool,cr.string,cr.func]),hexPolygonCurvatureResolution:cr.oneOfType([cr.number,cr.string,cr.func]),hexPolygonDotResolution:cr.oneOfType([cr.number,cr.string,cr.func]),hexPolygonsTransitionDuration:cr.number,hexPolygonLabel:cr.oneOfType([cr.string,cr.func]),onHexPolygonClick:cr.func,onHexPolygonRightClick:cr.func,onHexPolygonHover:cr.func,tilesData:cr.arrayOf(cr.object),tileLat:cr.oneOfType([cr.number,cr.string,cr.func]),tileLng:cr.oneOfType([cr.number,cr.string,cr.func]),tileAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),tileWidth:cr.oneOfType([cr.number,cr.string,cr.func]),tileHeight:cr.oneOfType([cr.number,cr.string,cr.func]),tileUseGlobeProjection:cr.oneOfType([cr.bool,cr.string,cr.func]),tileMaterial:cr.oneOfType([cr.object,cr.string,cr.func]),tileCurvatureResolution:cr.oneOfType([cr.number,cr.string,cr.func]),tilesTransitionDuration:cr.number,tileLabel:cr.oneOfType([cr.string,cr.func]),onTileClick:cr.func,onTileRightClick:cr.func,onTileHover:cr.func,particlesData:cr.arrayOf(cr.object),particlesList:cr.oneOfType([cr.string,cr.func]),particleLat:cr.oneOfType([cr.number,cr.string,cr.func]),particleLng:cr.oneOfType([cr.number,cr.string,cr.func]),particleAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),particlesSize:cr.oneOfType([cr.number,cr.string,cr.func]),particlesSizeAttenuation:cr.oneOfType([cr.bool,cr.string,cr.func]),particlesColor:cr.oneOfType([cr.string,cr.func]),particlesTexture:cr.oneOfType([cr.string,cr.func]),particleLabel:cr.oneOfType([cr.string,cr.func]),onParticleClick:cr.func,onParticleRightClick:cr.func,onParticleHover:cr.func,ringsData:cr.arrayOf(cr.object),ringLat:cr.oneOfType([cr.number,cr.string,cr.func]),ringLng:cr.oneOfType([cr.number,cr.string,cr.func]),ringAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),ringColor:cr.oneOfType([cr.string,cr.arrayOf(cr.string),cr.func]),ringResolution:cr.number,ringMaxRadius:cr.oneOfType([cr.number,cr.string,cr.func]),ringPropagationSpeed:cr.oneOfType([cr.number,cr.string,cr.func]),ringRepeatPeriod:cr.oneOfType([cr.number,cr.string,cr.func]),labelsData:cr.arrayOf(cr.object),labelLat:cr.oneOfType([cr.number,cr.string,cr.func]),labelLng:cr.oneOfType([cr.number,cr.string,cr.func]),labelAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),labelRotation:cr.oneOfType([cr.number,cr.string,cr.func]),labelText:cr.oneOfType([cr.string,cr.func]),labelSize:cr.oneOfType([cr.number,cr.string,cr.func]),labelTypeFace:cr.object,labelColor:cr.oneOfType([cr.string,cr.func]),labelResolution:cr.number,labelIncludeDot:cr.oneOfType([cr.bool,cr.string,cr.func]),labelDotRadius:cr.oneOfType([cr.number,cr.string,cr.func]),labelDotOrientation:cr.oneOfType([cr.string,cr.func]),labelsTransitionDuration:cr.number,labelLabel:cr.oneOfType([cr.string,cr.func]),onLabelClick:cr.func,onLabelRightClick:cr.func,onLabelHover:cr.func,htmlElementsData:cr.arrayOf(cr.object),htmlLat:cr.oneOfType([cr.number,cr.string,cr.func]),htmlLng:cr.oneOfType([cr.number,cr.string,cr.func]),htmlAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),htmlElement:cr.oneOfType([cr.string,cr.func]),htmlElementVisibilityModifier:cr.func,htmlTransitionDuration:cr.number,objectsData:cr.arrayOf(cr.object),objectLat:cr.oneOfType([cr.number,cr.string,cr.func]),objectLng:cr.oneOfType([cr.number,cr.string,cr.func]),objectAltitude:cr.oneOfType([cr.number,cr.string,cr.func]),objectRotation:cr.oneOfType([cr.shape({x:cr.number,y:cr.number,z:cr.number}),cr.string,cr.func]),objectFacesSurface:cr.oneOfType([cr.bool,cr.string,cr.func]),objectThreeOb
1ject:cr.oneOfType([cr.object,cr.string,cr.func]),objectLabel:cr.oneOfType([cr.string,cr.func]),onObjectClick:cr.func,onObjectRightClick:cr.func,onObjectHover:cr.func,customLayerData:cr.arrayOf(cr.object),customThreeObject:cr.oneOfType([cr.object,cr.string,cr.func]),customThreeObjectUpdate:cr.oneOfType([cr.string,cr.func]),customLayerLabel:cr.oneOfType([cr.string,cr.func]),onCustomLayerClick:cr.func,onCustomLayerRightClick:cr.func,onCustomLayerHover:cr.func,enablePointerInteraction:cr.bool,pointerEventsFilter:cr.func,lineHoverPrecision:cr.number,onZoom:cr.func},fr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.wrapperElementType,o=void 0===n?"div":n,i=e.nodeMapper,a=void 0===i?function(t){return t}:i,s=e.methodNames,l=void 0===s?[]:s,c=e.initPropNames,h=void 0===c?[]:c;return(0,r.forwardRef)((function(e,n){var i=(0,r.useRef)(),s=(0,r.useMemo)((function(){var n=Object.fromEntries(h.filter((function(t){return e.hasOwnProperty(t)})).map((function(t){return[t,e[t]]})));return t(n)}),[]);d((function(){s(a(i.current))}),r.useLayoutEffect),d((function(){return s._destructor instanceof Function?s._destructor:void 0}));var c=(0,r.useCallback)((function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return s[t]instanceof Function?s[t].apply(s,n):void 0}),[s]),p=(0,r.useRef)({});return Object.keys(u(e,[].concat(f(l),f(h)))).filter((function(t){return p.current[t]!==e[t]})).forEach((function(t){return c(t,e[t])})),p.current=e,(0,r.useImperativeHandle)(n,(function(){return Object.fromEntries(l.map((function(t){return[t,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.apply(void 0,[t].concat(n))}]})))}),[c]),r.createElement(o,{ref:i})}))}(ur,{methodNames:["pauseAnimation","resumeAnimation","pointOfView","lights","scene","camera","renderer","postProcessingComposer","controls","getGlobeRadius","getCoords","getScreenCoords","toGeoCoords","toGlobeCoords"],initPropNames:["animateIn","waitForGlobeReady","rendererConfig"]});fr.displayName="Globe",fr.propTypes=hr},2833:function(t,e,n){"use strict";n.d(e,{Z:function(){return Un}});var r=n(74250);function o(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function i(t,e){let n=0,r=0;if(void 0===e)for(let o of t)null!=o&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function a(t,e){let n,r;if(void 0===e)for(const o of t)null!=o&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}var s=n(70442);const l=134217729;function u(t,e,n,r,o){let i,a,s,l,u=e[0],c=r[0],h=0,f=0;c>u===c>-u?(i=u,u=e[++h]):(i=c,c=r[++f]);let p=0;if(h<t&&f<n)for(c>u===c>-u?(a=u+i,s=i-(a-u),u=e[++h]):(a=c+i,s=i-(a-c),c=r[++f]),i=a,0!==s&&(o[p++]=s);h<t&&f<n;)c>u===c>-u?(a=i+u,l=a-i,s=i-(a-l)+(u-l),u=e[++h]):(a=i+c,l=a-i,s=i-(a-l)+(c-l),c=r[++f]),i=a,0!==s&&(o[p++]=s);for(;h<t;)a=i+u,l=a-i,s=i-(a-l)+(u-l),u=e[++h],i=a,0!==s&&(o[p++]=s);for(;f<n;)a=i+c,l=a-i,s=i-(a-l)+(c-l),c=r[++f],i=a,0!==s&&(o[p++]=s);return 0===i&&0!==p||(o[p++]=i),p}function c(t){return new Float64Array(t)}const h=c(4),f=c(8),p=c(12),d=c(16),m=c(4);function g(t,e,n,r,o,i){const a=(e-i)*(n-o),s=(t-o)*(r-i),c=a-s,g=Math.abs(a+s);return Math.abs(c)>=33306690738754716e-32*g?c:-function(t,e,n,r,o,i,a){let s,c,g,y,v,b,_,w,x,S,P,H,M,E,T,O,k,A;const C=t-o,j=n-o,R=e-i,D=r-i;E=C*D,b=l*C,_=b-(b-C),w=C-_,b=l*D,x=b-(b-D),S=D-x,T=w*S-(E-_*x-w*x-_*S),O=R*j,b=l*R,_=b-(b-R),w=R-_,b=l*j,x=b-(b-j),S=j-x,k=w*S-(O-_*x-w*x-_*S),P=T-k,v=T-P,h[0]=T-(P+v)+(v-k),H=E+P,v=H-E,M=E-(H-v)+(P-v),P=M-O,v=M-P,h[1]=M-(P+v)+(v-O),A=H+P,v=A-H,h[2]=H-(A-v)+(P-v),h[3]=A;let L=function(t,e){let n=e[0];for(let r=1;r<t;r++)n+=e[r];return n}(4,h),I=22204460492503146e-32*a;if(L>=I||-L>=I)return L;if(v=t-C,s=t-(C+v)+(v-o),v=n-j,g=n-(j+v)+(v-o),v=e-R,c=e-(R+v)+(v-i),v=r-D,y=r-(D+v)+(v-i),0===s&&0===c&&0===g&&0===y)return L;if(I=11093356479670487e-47*a+33306690738754706e-32*Math.abs(L),L+=C*y+D*s-(R*g+j*c),L>=I||-L>=I)return L;E=s*D,b=l*s,_=b-(b-s),w=s-_,b=l*D,x=b-(b-D),S=D-x,T=w*S-(E-_*x-w*x-_*S),O=c*j,b=l*c,_=b-(b-c),w=c-_,b=l*j,x=b-(b-j),S=j-x,k=w*S-(O-_*x-w*x-_*S),P=T-k,v=T-P,m[0]=T-(P+v)+(v-k),H=E+P,v=H-E,M=E-(H-v)+(P-v),P=M-O,v=M-P,m[1]=M-(P+v)+(v-O),A=H+P,v=A-H,m[2]=H-(A-v)+(P-v),m[3]=A;const z=u(4,h,4,m,f);E=C*y,b=l*C,_=b-(b-C),w=C-_,b=l*y,x=b-(b-y),S=y-x,T=w*S-(E-_*x-w*x-_*S),O=R*g,b=l*R,_=b-(b-R),w=R-_,b=l*g,x=b-(b-g),S=g-x,k=w*S-(O-_*x-w*x-_*S),P=T-k,v=T-P,m[0]=T-(P+v)+(v-k),H=E+P,v=H-E,M=E-(H-v)+(P-v),P=M-O,v=M-P,m[1]=M-(P+v)+(v-O),A=H+P,v=A-H,m[2]=H-(A-v)+(P-v),m[3]=A;const U=u(z,f,4,m,p);E=s*y,b=l*s,_=b-(b-s),w=s-_,b=l*y,x=b-(b-y),S=y-x,T=w*S-(E-_*x-w*x-_*S),O=c*g,b=l*c,_=b-(b-c),w=c-_,b=l*g,x=b-(b-g),S=g-x,k=w*S-(O-_*x-w*x-_*S),P=T-k,v=T-P,m[0]=T-(P+v)+(v-k),H=E+P,v=H-E,M=E-(H-v)+(P-v),P=M-O,v=M-P,m[1]=M-(P+v)+(v-O),A=H+P,v=A-H,m[2]=H-(A-v)+(P-v),m[3]=A;const F=u(U,p,4,m,d);return d[F-1]}(t,e,n,r,o,i,g)}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(8),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);const y=Math.pow(2,-52),v=new Uint32Array(512);class b{static from(t,e=H,n=M){const r=t.length,o=new Float64Array(2*r);for(let i=0;i<r;i++){const r=t[i];o[2*i]=e(r),o[2*i+1]=n(r)}return new b(o)}constructor(t){const e=t.length>>1;if(e>0&&"number"!==typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const 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.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:o}=this,i=t.length>>1;let a=1/0,s=1/0,l=-1/0,u=-1/0;for(let g=0;g<i;g++){const e=t[2*g],n=t[2*g+1];
vendor: 4,082 bytes, line 1
1e<a&&(a=e),n<s&&(s=n),e>l&&(l=e),n>u&&(u=n),this._ids[g]=g}const c=(a+l)/2,h=(s+u)/2;let f,p,d;for(let g=0,y=1/0;g<i;g++){const e=_(c,h,t[2*g],t[2*g+1]);e<y&&(f=g,y=e)}const m=t[2*f],v=t[2*f+1];for(let g=0,y=1/0;g<i;g++){if(g===f)continue;const e=_(m,v,t[2*g],t[2*g+1]);e<y&&e>0&&(p=g,y=e)}let b=t[2*p],w=t[2*p+1],P=1/0;for(let g=0;g<i;g++){if(g===f||g===p)continue;const e=x(m,v,b,w,t[2*g],t[2*g+1]);e<P&&(d=g,P=e)}let H=t[2*d],M=t[2*d+1];if(P===1/0){for(let r=0;r<i;r++)this._dists[r]=t[2*r]-t[0]||t[2*r+1]-t[1];S(this._ids,this._dists,0,i-1);const e=new Uint32Array(i);let n=0;for(let t=0,r=-1/0;t<i;t++){const o=this._ids[t],i=this._dists[o];i>r&&(e[n++]=o,r=i)}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(g(m,v,b,w,H,M)<0){const t=p,e=b,n=w;p=d,b=H,w=M,d=t,H=e,M=n}const E=function(t,e,n,r,o,i){const a=n-t,s=r-e,l=o-t,u=i-e,c=a*a+s*s,h=l*l+u*u,f=.5/(a*u-s*l);return{x:t+(u*c-s*h)*f,y:e+(a*h-l*c)*f}}(m,v,b,w,H,M);this._cx=E.x,this._cy=E.y;for(let g=0;g<i;g++)this._dists[g]=_(t[2*g],t[2*g+1],E.x,E.y);S(this._ids,this._dists,0,i-1),this._hullStart=f;let T=3;n[f]=e[d]=p,n[p]=e[f]=d,n[d]=e[p]=f,r[f]=0,r[p]=1,r[d]=2,o.fill(-1),o[this._hashKey(m,v)]=f,o[this._hashKey(b,w)]=p,o[this._hashKey(H,M)]=d,this.trianglesLen=0,this._addTriangle(f,p,d,-1,-1,-1);for(let _,x,S=0;S<this._ids.length;S++){const i=this._ids[S],a=t[2*i],s=t[2*i+1];if(S>0&&Math.abs(a-_)<=y&&Math.abs(s-x)<=y)continue;if(_=a,x=s,i===f||i===p||i===d)continue;let l=0;for(let t=0,e=this._hashKey(a,s);t<this._hashSize&&(l=o[(e+t)%this._hashSize],-1===l||l===n[l]);t++);l=e[l];let u,c=l;for(;u=n[c],g(a,s,t[2*c],t[2*c+1],t[2*u],t[2*u+1])>=0;)if(c=u,c===l){c=-1;break}if(-1===c)continue;let h=this._addTriangle(c,i,n[c],-1,-1,r[c]);r[i]=this._legalize(h+2),r[c]=h,T++;let m=n[c];for(;u=n[m],g(a,s,t[2*m],t[2*m+1],t[2*u],t[2*u+1])<0;)h=this._addTriangle(m,i,u,r[i],-1,r[m]),r[i]=this._legalize(h+2),n[m]=m,T--,m=u;if(c===l)for(;u=e[c],g(a,s,t[2*u],t[2*u+1],t[2*c],t[2*c+1])<0;)h=this._addTriangle(u,i,c,-1,r[c],r[u]),this._legalize(h+2),r[u]=h,n[c]=c,T--,c=u;this._hullStart=e[i]=c,n[c]=e[m]=i,n[i]=m,o[this._hashKey(a,s)]=i,o[this._hashKey(t[2*c],t[2*c+1])]=c}this.hull=new Uint32Array(T);for(let g=0,y=this._hullStart;g<T;g++)this.hull[g]=y,y=n[y];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){const 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){const{_triangles:e,_halfedges:n,coords:r}=this;let o=0,i=0;for(;;){const a=n[t],s=t-t%3;if(i=s+(t+2)%3,-1===a){if(0===o)break;t=v[--o];continue}const l=a-a%3,u=s+(t+1)%3,c=l+(a+2)%3,h=e[i],f=e[t],p=e[u],d=e[c];if(w(r[2*h],r[2*h+1],r[2*f],r[2*f+1],r[2*p],r[2*p+1],r[2*d],r[2*d+1])){e[t]=d,e[a]=h;const r=n[c];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===c){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[i]),this._link(i,c);const s=l+(a+1)%3;o<v.length&&(v[o++]=s)}else{if(0===o)break;t=v[--o]}}return i}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,o,i){const 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,o),this._link(a+2,i),this.trianglesLen+=3,a}}function _(t,e,n,r){const o=t-n,i=e-r;return o*o+i*i}function w(t,e,n,r,o,i,a,s){const l=t-a,u=e-s,c=n-a,h=r-s,f=o-a,p=i-s,d=c*c+h*h,m=f*f+p*p;return l*(h*m-d*p)-u*(c*m-d*f)+(l*l+u*u)*(c*p-h*f)<0}function x(t,e,n,r,o,i){const a=n-t,s=r-e,l=o-t,u=i-e,c=a*a+s*s,h=l*l+u*u,f=.5/(a*u-s*l),p=(u*c-s*h)*f,d=(a*h-l*c)*f;return p*p+d*d}function S(t,e,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const r=t[o],i=e[r];let a=o-1;for(;a>=n&&e[t[a]]>i;)t[a+1]=t[a--];t[a+1]=r}else{let o=n+1,i=r;P(t,n+r>>1,o),e[t[n]]>e[t[r]]&&P(t,n,r),e[t[o]]>e[t[r]]&&P(t,o,r),e[t[n]]>e[t[o]]&&P(t,n,o);const a=t[o],s=e[a];for(;;){do{o++}while(e[t[o]]<s);do{i--}while(e[t[i]]>s);if(i<o)break;P(t,o,i)}
1t[n+1]=t[i],t[i]=a,r-o+1>=i-n?(S(t,e,o,r),S(t,e,n,i-1)):(S(t,e,n,i-1),S(t,e,o,r))}}function P(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function H(t){return t[0]}function M(t){return t[1]}function E(t,e){var n,r,o,i,a,s,l,u,c,h=0,f=t[0],p=t[1],d=e.length;for(n=0;n<d;n++){r=0;var m=e[n],y=m.length-1;if((u=m[0])[0]!==m[y][0]&&u[1]!==m[y][1])throw new Error("First and last coordinates in a ring must be the same");for(i=u[0]-f,a=u[1]-p;r<y;r++){if(s=(c=m[r+1])[0]-f,l=c[1]-p,0===a&&0===l){if(s<=0&&i>=0||i<=0&&s>=0)return 0}else if(l>=0&&a<=0||l<=0&&a>=0){if(0===(o=g(i,s,a,l,0,0)))return 0;(o>0&&l>0&&a<=0||o<0&&l<=0&&a>0)&&h++}u=c,a=l,i=s}}return h%2!==0}var T,O,k,A,C,j=function(t,e,n={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const r=function(t){if(!t)throw new 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 new Error("coord must be GeoJSON Point or an Array of numbers")}(t),o="Feature"===(i=e).type?i.geometry:i;var i;const a=o.type,s=e.bbox;let l=o.coordinates;if(s&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,s))return!1;"Polygon"===a&&(l=[l]);let u=!1;for(var c=0;c<l.length;++c){const t=E(r,l[c]);if(0===t)return!n.ignoreBoundary;t&&(u=!0)}return u},R=n(266),D=n(35432),L=n(56957),I=new R.dU,z=new R.dU,U={point:L.Z,lineStart:L.Z,lineEnd:L.Z,polygonStart:function(){I=new R.dU,U.lineStart=F,U.lineEnd=B},polygonEnd:function(){var t=+I;z.add(t<0?D.BZ+t:t),this.lineStart=this.lineEnd=this.point=L.Z},sphere:function(){z.add(D.BZ)}};function F(){U.point=N}function B(){Z(T,O)}function N(t,e){U.point=Z,T=t,O=e,t*=D.uR,e*=D.uR,k=t,A=(0,D.mC)(e=e/2+D.pu),C=(0,D.O$)(e)}function Z(t,e){t*=D.uR,e=(e*=D.uR)/2+D.pu;var n=t-k,r=n>=0?1:-1,o=r*n,i=(0,D.mC)(e),a=(0,D.O$)(e),s=C*a,l=A*i+s*(0,D.mC)(o),u=s*r*(0,D.O$)(o);I.add((0,D.fv)(u,l)),k=t,A=i,C=a}function W(t){return[(0,D.fv)(t[1],t[0]),(0,D.ZR)(t[2])]}function G(t){var e=t[0],n=t[1],r=(0,D.mC)(n);return[r*(0,D.mC)(e),r*(0,D.O$)(e),(0,D.O$)(n)]}function V(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function $(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 Y(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function X(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function q(t){var e=(0,D._b)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var K,Q,J,tt,et,nt,rt,ot,it,at,st,lt=n(29378),ut={point:ct,lineStart:ft,lineEnd:pt,polygonStart:function(){ut.point=dt,ut.lineStart=mt,ut.lineEnd=gt,it=new R.dU,U.polygonStart()},polygonEnd:function(){U.polygonEnd(),ut.point=ct,ut.lineStart=ft,ut.lineEnd=pt,I<0?(K=-(J=180),Q=-(tt=90)):it>D.Ho?tt=90:it<-D.Ho&&(Q=-90),st[0]=K,st[1]=J},sphere:function(){K=-(J=180),Q=-(tt=90)}};function ct(t,e){at.push(st=[K=t,J=t]),e<Q&&(Q=e),e>tt&&(tt=e)}function ht(t,e){var n=G([t*D.uR,e*D.uR]);if(ot){var r=$(ot,n),o=$([r[1],-r[0],0],r);q(o),o=W(o);var i,a=t-et,s=a>0?1:-1,l=o[0]*D.RW*s,u=(0,D.Wn)(a)>180;u^(s*et<l&&l<s*t)?(i=o[1]*D.RW)>tt&&(tt=i):u^(s*et<(l=(l+360)%360-180)&&l<s*t)?(i=-o[1]*D.RW)<Q&&(Q=i):(e<Q&&(Q=e),e>tt&&(tt=e)),u?t<et?yt(K,t)>yt(K,J)&&(J=t):yt(t,J)>yt(K,J)&&(K=t):J>=K?(t<K&&(K=t),t>J&&(J=t)):t>et?yt(K,t)>yt(K,J)&&(J=t):yt(t,J)>yt(K,J)&&(K=t)}else at.push(st=[K=t,J=t]);e<Q&&(Q=e),e>tt&&(tt=e),ot=n,et=t}function ft(){ut.point=ht}function pt(){st[0]=K,st[1]=J,ut.point=ct,ot=null}function dt(t,e){if(ot){var n=t-et;it.add((0,D.Wn)(n)>180?n+(n>0?360:-360):n)}else nt=t,rt=e;U.point(t,e),ht(t,e)}function mt(){U.lineStart()}function gt(){dt(nt,rt),U.lineEnd(),(0,D.Wn)(it)>D.Ho&&(K=-(J=180)),st[0]=K,st[1]=J,ot=null}function yt(t,e){return(e-=t)<0?e+360:e}function vt(t,e){return t[0]-e[0]}function bt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function _t(t){var e,n,r,o,i,a,s;if(tt=J=-(K=Q=1/0),at=[],(0,lt.Z)(t,ut),n=at.length){for(at.sort(vt),e=1,i=[r=at[0]];e<n;++e)bt(r,(o=at[e])[0])||bt(r,o[1])?(yt(r[0],o[1])>yt(r[0],r[1])&&(r[1]=o[1]),yt(o[0],r[1])>yt(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,e=0,r=i[n=i.length-1];e<=n;r=o,++e)o=i[e],(s=yt(r[1],o[0]))>a&&(a=s,K=o[0],J=r[1])}return at=st=null,K===1/0||Q===1/0?[[NaN,NaN],[NaN,NaN]]:[[K,Q],[J,tt]]}var wt=n(70755),xt=n(66116);function St(t){return(0,D.Wn)(t[0])<=D.pi?t[0]:(0,D.Xx)(t[0])*(((0,D.Wn)(t[0])+D.pi)%D.BZ-D.pi)}function Pt(t,e){var n=St(e),r=e[1],o=(0,D.O$)(r),i=[(0,D.O$)(n),-(0,D.mC)(n),0],a=0,s=0,l=new R.dU;1===o?r=D.ou+D.Ho:-1===o&&(r=-D.ou-D.Ho);for(var u=0,c=t.length;u<c;
1++u)if(f=(h=t[u]).length)for(var h,f,p=h[f-1],d=St(p),m=p[1]/2+D.pu,g=(0,D.O$)(m),y=(0,D.mC)(m),v=0;v<f;++v,d=_,g=x,y=S,p=b){var b=h[v],_=St(b),w=b[1]/2+D.pu,x=(0,D.O$)(w),S=(0,D.mC)(w),P=_-d,H=P>=0?1:-1,M=H*P,E=M>D.pi,T=g*x;if(l.add((0,D.fv)(T*H*(0,D.O$)(M),y*S+T*(0,D.mC)(M))),a+=E?P+H*D.BZ:P,E^d>=n^_>=n){var O=$(G(p),G(b));q(O);var k=$(i,O);q(k);var A=(E^P>=0?-1:1)*(0,D.ZR)(k[2]);(r>A||r===A&&(O[0]||O[1]))&&(s+=E^P>=0?1:-1)}}return(a<-D.Ho||a<D.Ho&&l<-D.aW)^1&s}var Ht,Mt,Et,Tt,Ot,kt,At,Ct,jt,Rt,Dt,Lt,It,zt,Ut,Ft,Bt={Feature:function(t,e){return Zt(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)if(Zt(n[r].geometry,e))return!0;return!1}},Nt={Sphere:function(){return!0},Point:function(t,e){return Wt(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(Wt(n[r],e))return!0;return!1},LineString:function(t,e){return Gt(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(Gt(n[r],e))return!0;return!1},Polygon:function(t,e){return Vt(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)if(Vt(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)if(Zt(n[r],e))return!0;return!1}};function Zt(t,e){return!(!t||!Nt.hasOwnProperty(t.type))&&Nt[t.type](t,e)}function Wt(t,e){return 0===(0,wt.Z)(t,e)}function Gt(t,e){for(var n,r,o,i=0,a=t.length;i<a;i++){if(0===(r=(0,wt.Z)(t[i],e)))return!0;if(i>0&&(o=(0,wt.Z)(t[i],t[i-1]))>0&&n<=o&&r<=o&&(n+r-o)*(1-Math.pow((n-r)/o,2))<D.aW*o)return!0;n=r}return!1}function Vt(t,e){return!!Pt(t.map($t),Yt(e))}function $t(t){return(t=t.map(Yt)).pop(),t}function Yt(t){return[t[0]*D.uR,t[1]*D.uR]}function Xt(t,e){return(t&&Bt.hasOwnProperty(t.type)?Bt[t.type]:Zt)(t,e)}var qt={sphere:L.Z,point:Kt,lineStart:Jt,lineEnd:ne,polygonStart:function(){qt.lineStart=re,qt.lineEnd=oe},polygonEnd:function(){qt.lineStart=Jt,qt.lineEnd=ne}};function Kt(t,e){t*=D.uR,e*=D.uR;var n=(0,D.mC)(e);Qt(n*(0,D.mC)(t),n*(0,D.O$)(t),(0,D.O$)(e))}function Qt(t,e,n){++Ht,Et+=(t-Et)/Ht,Tt+=(e-Tt)/Ht,Ot+=(n-Ot)/Ht}function Jt(){qt.point=te}function te(t,e){t*=D.uR,e*=D.uR;var n=(0,D.mC)(e);zt=n*(0,D.mC)(t),Ut=n*(0,D.O$)(t),Ft=(0,D.O$)(e),qt.point=ee,Qt(zt,Ut,Ft)}function ee(t,e){t*=D.uR,e*=D.uR;var n=(0,D.mC)(e),r=n*(0,D.mC)(t),o=n*(0,D.O$)(t),i=(0,D.O$)(e),a=(0,D.fv)((0,D._b)((a=Ut*i-Ft*o)*a+(a=Ft*r-zt*i)*a+(a=zt*o-Ut*r)*a),zt*r+Ut*o+Ft*i);Mt+=a,kt+=a*(zt+(zt=r)),At+=a*(Ut+(Ut=o)),Ct+=a*(Ft+(Ft=i)),Qt(zt,Ut,Ft)}function ne(){qt.point=Kt}function re(){qt.point=ie}function oe(){ae(Lt,It),qt.point=Kt}function ie(t,e){Lt=t,It=e,t*=D.uR,e*=D.uR,qt.point=ae;var n=(0,D.mC)(e);zt=n*(0,D.mC)(t),Ut=n*(0,D.O$)(t),Ft=(0,D.O$)(e),Qt(zt,Ut,Ft)}function ae(t,e){t*=D.uR,e*=D.uR;var n=(0,D.mC)(e),r=n*(0,D.mC)(t),o=n*(0,D.O$)(t),i=(0,D.O$)(e),a=Ut*i-Ft*o,s=Ft*r-zt*i,l=zt*o-Ut*r,u=(0,D._m)(a,s,l),c=(0,D.ZR)(u),h=u&&-c/u;jt.add(h*a),Rt.add(h*s),Dt.add(h*l),Mt+=c,kt+=c*(zt+(zt=r)),At+=c*(Ut+(Ut=o)),Ct+=c*(Ft+(Ft=i)),Qt(zt,Ut,Ft)}function se(t){Ht=Mt=Et=Tt=Ot=kt=At=Ct=0,jt=new R.dU,Rt=new R.dU,Dt=new R.dU,(0,lt.Z)(t,qt);var e=+jt,n=+Rt,r=+Dt,o=(0,D._m)(e,n,r);return o<D.aW&&(e=kt,n=At,r=Ct,Mt<D.Ho&&(e=Et,n=Tt,r=Ot),(o=(0,D._m)(e,n,r))<D.aW)?[NaN,NaN]:[(0,D.fv)(n,e)*D.RW,(0,D.ZR)(r/o)*D.RW]}const le=1e-6;class ue{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){const r=(t=+t)+(n=+n),o=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${o}`:(Math.abs(this._x1-r)>le||Math.abs(this._y1-o)>le)&&(this._+="L"+r+","+o),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=o}`)}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 ce{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 he{constructor(t,[e,n,r,o]=[0,0,960,500]){if(!((r=+r)>=(e=+e))||!((o=+o)>=(n=+n)))throw new 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=o,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this;let o,i;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let d,m,g=0,y=0,v=n.length;g<v;g+=3,y+=2){const r=2*n[g],s=2*n[g+1],l=2*n[g+2],u=t[r],c=t[r+1],h=t[s],f=t[s+1],p=t[l],v=t[l+1],b=h-u,_=f-c,w=p-u,x=v-c,S=2*(b*x-_*w);
vendor: 8,276 bytes, line 1
1if(Math.abs(S)<1e-9){if(void 0===o){o=i=0;for(const n of e)o+=t[2*n],i+=t[2*n+1];o/=e.length,i/=e.length}const n=1e9*Math.sign((o-u)*x-(i-c)*w);d=(u+p)/2-n*x,m=(c+v)/2+n*w}else{const t=1/S,e=b*b+_*_,n=w*w+x*x;d=u+(x*e-_*n)*t,m=c+(b*n-w*e)*t}a[y]=d,a[y+1]=m}let s,l,u,c=e[e.length-1],h=4*c,f=t[2*c],p=t[2*c+1];r.fill(0);for(let d=0;d<e.length;++d)c=e[d],s=h,l=f,u=p,h=4*c,f=t[2*c],p=t[2*c+1],r[s+2]=r[h]=u-p,r[s+3]=r[h+1]=f-l}render(t){const e=null==t?t=new ue:void 0,{delaunay:{halfedges:n,inedges:r,hull:o},circumcenters:i,vectors:a}=this;if(o.length<=1)return null;for(let u=0,c=n.length;u<c;++u){const e=n[u];if(e<u)continue;const r=2*Math.floor(u/3),o=2*Math.floor(e/3),a=i[r],s=i[r+1],l=i[o],c=i[o+1];this._renderSegment(a,s,l,c,t)}let s,l=o[o.length-1];for(let u=0;u<o.length;++u){s=l,l=o[u];const e=2*Math.floor(r[l]/3),n=i[e],c=i[e+1],h=4*s,f=this._project(n,c,a[h+2],a[h+3]);f&&this._renderSegment(n,c,f[0],f[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new ue:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new ue:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let o=r.length;for(;r[0]===r[o-2]&&r[1]===r[o-1]&&o>1;)o-=2;for(let i=2;i<o;i+=2)r[i]===r[i-2]&&r[i+1]===r[i-1]||e.lineTo(r[i],r[i+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new ce;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,o){let i;const a=this._regioncode(t,e),s=this._regioncode(n,r);0===a&&0===s?(o.moveTo(t,e),o.lineTo(n,r)):(i=this._clipSegment(t,e,n,r,a,s))&&(o.moveTo(i[0],i[1]),o.lineTo(i[2],i[3]))}contains(t,e,n){return(e=+e)===e&&(n=+n)===n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let r=0,o=e.length;r<o;r+=2)for(let i=0,a=t.length;i<a;i+=2)if(e[r]===t[i]&&e[r+1]===t[i+1]&&e[(r+2)%o]===t[(i+a-2)%a]&&e[(r+3)%o]===t[(i+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:o}}=this,i=n[t];if(-1===i)return null;const a=[];let s=i;do{const n=Math.floor(s/3);if(a.push(e[2*n],e[2*n+1]),s=s%3===2?s-2:s+1,o[s]!==t)break;s=r[s]}while(s!==i&&-1!==s);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];const e=this._cell(t);if(null===e)return null;const{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){const n=e.length;let r,o,i,a,s=null,l=e[n-2],u=e[n-1],c=this._regioncode(l,u),h=0;for(let f=0;f<n;f+=2)if(r=l,o=u,l=e[f],u=e[f+1],i=c,c=this._regioncode(l,u),0===i&&0===c)a=h,h=0,s?s.push(l,u):s=[l,u];else{let e,n,f,p,d;if(0===i){if(null===(e=this._clipSegment(r,o,l,u,i,c)))continue;[n,f,p,d]=e}else{if(null===(e=this._clipSegment(l,u,r,o,c,i)))continue;[p,d,n,f]=e,a=h,h=this._edgecode(n,f),a&&h&&this._edge(t,a,h,s,s.length),s?s.push(n,f):s=[n,f]}a=h,h=this._edgecode(p,d),a&&h&&this._edge(t,a,h,s,s.length),s?s.push(p,d):s=[p,d]}if(s)a=h,h=this._edgecode(s[0],s[1]),a&&h&&this._edge(t,a,h,s,s.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 s}_clipSegment(t,e,n,r,o,i){const a=o<i;for(a&&([t,e,n,r,o,i]=[n,r,t,e,i,o]);;){if(0===o&&0===i)return a?[n,r,t,e]:[t,e,n,r];if(o&i)return null;let s,l,u=o||i;8&u?(s=t+(n-t)*(this.ymax-e)/(r-e),l=this.ymax):4&u?(s=t+(n-t)*(this.ymin-e)/(r-e),l=this.ymin):2&u?(l=e+(r-e)*(this.xmax-t)/(n-t),s=this.xmax):(l=e+(r-e)*(this.xmin-t)/(n-t),s=this.xmin),o?(t=s,e=l,o=this._regioncode(t,e)):(n=s,r=l,i=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,o,i){let a,s=Array.from(e);if((a=this._project(s[0],s[1],n,r))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],o,i))&&s.push(a[0],a[1]),s=this._clipFinite(t,s))for(let l,u=0,c=s.length,h=this._edgecode(s[c-2],s[c-1]);u<c;u+=2)l=h,h=this._edgecode(s[u],s[u+1]),l&&h&&(u=this._edge(t,l,h,s,u),c=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,e,n,r,o){for(;e!==n;){let n,i;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,i=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,i=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,i=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,i=this.ymin}r[o]===n&&r[o+1]===i||!this.contains(t,n,i)||(r.splice(o,0,n,i),o+=2)}return o}_project(t,e,n,r){let o,i,a,s=1/0;if(r<0){if(e<=this.ymin)return null;(o=(this.ymin-e)/r)<s&&(a=this.ymin,i=t+(s=o)*n)}else if(r>0){if(e>=this.ymax)return null;(o=(this.ymax-e)/r)<s&&(a=this.ymax,i=t+(s=o)*n)}if(n>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/n)<s&&(i=this.xmax,a=e+(s=o)*r)}else if(n<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/n)<s&&(i=this.xmin,a=e+(s=o)*r)}return[i,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const 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}}const fe=2*Math.PI,pe=Math.pow;function de(t){return t[0]}function me(t){return t[1]}function ge(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class ye{static from(t,e=de,n=me,r){return new ye("length"in t?function(t,e,n,r){const o=t.length,i=new Float64Array(2*o);for(let a=0;a<o;++a){const o=t[a];i[2*a]=e.call(r,o,a,t),i[2*a+1]=n.call(r,o,a,t)}return i}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let o=0;for(const i of t)yield e.call(r,i,o,t),yield n.call(r,i,o,t),++o}(t,e,n,r)))}constructor(t){this._delaunator=new b(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(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let r=0;r<e.length;r+=3){const t=2*e[r],o=2*e[r+1],i=2*e[r+2];if((n[i]-n[t])*(n[o+1]-n[t+1])-(n[o]-n[t])*(n[i+1]-n[t+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]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],o=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let i=0,a=e.length/2;i<a;++i){const t=ge(e[2*i],e[2*i+1],o);e[2*i]=t[0],e[2*i+1]=t[1]}this._delaunator=new b(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,i=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let s=0,l=n.length;s<l;++s){const t=o[s%3===2?s-2:s+1];-1!==n[s]&&-1!==i[t]||(i[t]=s)}for(let s=0,l=r.length;s<l;++s)a[r[s]]=s;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],i[r[0]]=1,2===r.length&&(i[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new he(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:o,triangles:i,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const s=e[t];if(-1===s)return;let l=s,u=-1;do{if(yield u=i[l],l=l%3===2?l-2:l+1,i[l]!==t)return;if(l=o[l],-1===l){const e=n[(r[t]+1)%n.length];return void(e!==u&&(yield e))}}while(l!==s)}find(t,e,n=0){if((t=+t)!==t||(e=+e)!==e)return-1;const r=n;let o;for(;(o=this._step(n,t,e))>=0&&o!==n&&o!==r;)n=o;return o}_step(t,e,n){const{inedges:r,hull:o,_hullIndex:i,halfedges:a,triangles:s,points:l}=this;if(-1===r[t]||!l.length)return(t+1)%(l.length>>1);let u=t,c=pe(e-l[2*t],2)+pe(n-l[2*t+1],2);const h=r[t];let f=h;do{let r=s[f];const h=pe(e-l[2*r],2)+pe(n-l[2*r+1],2);
1if(h<c&&(c=h,u=r),f=f%3===2?f-2:f+1,s[f]!==t)break;if(f=a[f],-1===f){if(f=o[(i[t]+1)%o.length],f!==r&&pe(e-l[2*f],2)+pe(n-l[2*f+1],2)<c)return f;break}}while(f!==h);return u}render(t){const e=null==t?t=new ue:void 0,{points:n,halfedges:r,triangles:o}=this;for(let i=0,a=r.length;i<a;++i){const e=r[i];if(e<i)continue;const a=2*o[i],s=2*o[e];t.moveTo(n[a],n[a+1]),t.lineTo(n[s],n[s+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;const n=null==t?t=new ue:void 0,{points:r}=this;for(let o=0,i=r.length;o<i;o+=2){const n=r[o],i=r[o+1];t.moveTo(n+e,i),t.arc(n,i,e,0,fe)}return n&&n.value()}renderHull(t){const e=null==t?t=new ue:void 0,{hull:n,points:r}=this,o=2*n[0],i=n.length;t.moveTo(r[o],r[o+1]);for(let a=1;a<i;++a){const e=2*n[a];t.lineTo(r[e],r[e+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new ce;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new ue:void 0,{points:r,triangles:o}=this,i=2*o[t*=3],a=2*o[t+1],s=2*o[t+2];return e.moveTo(r[i],r[i+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[s],r[s+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new ce;return this.renderTriangle(t,e),e.value()}}function ve(t,e){function n(n,r){return n=t(n,r),e(n[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 be(t,e){return(0,D.Wn)(t)>D.pi&&(t-=Math.round(t/D.BZ)*D.BZ),[t,e]}function _e(t,e,n){return(t%=D.BZ)?e||n?ve(xe(t),Se(e,n)):xe(t):e||n?Se(e,n):be}function we(t){return function(e,n){return e+=t,(0,D.Wn)(e)>D.pi&&(e-=Math.round(e/D.BZ)*D.BZ),[e,n]}}function xe(t){var e=we(t);return e.invert=we(-t),e}function Se(t,e){var n=(0,D.mC)(t),r=(0,D.O$)(t),o=(0,D.mC)(e),i=(0,D.O$)(e);function a(t,e){var a=(0,D.mC)(e),s=(0,D.mC)(t)*a,l=(0,D.O$)(t)*a,u=(0,D.O$)(e),c=u*n+s*r;return[(0,D.fv)(l*o-c*i,s*n-u*r),(0,D.ZR)(c*o+l*i)]}return a.invert=function(t,e){var a=(0,D.mC)(e),s=(0,D.mC)(t)*a,l=(0,D.O$)(t)*a,u=(0,D.O$)(e),c=u*o-l*i;return[(0,D.fv)(l*o+u*i,s*n+c*r),(0,D.ZR)(c*n-s*r)]},a}function Pe(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:L.Z,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function He(t,e){return(0,D.Wn)(t[0]-e[0])<D.Ho&&(0,D.Wn)(t[1]-e[1])<D.Ho}function Me(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 Ee(t,e,n,r,o){var i,a,s=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(He(r,a)){if(!r[2]&&!a[2]){for(o.lineStart(),i=0;i<e;++i)o.point((r=t[i])[0],r[1]);return void o.lineEnd()}a[0]+=2*D.Ho}s.push(n=new Me(r,t,null,!0)),l.push(n.o=new Me(r,null,n,!1)),s.push(n=new Me(a,t,null,!1)),l.push(n.o=new Me(a,null,n,!0))}})),s.length){for(l.sort(e),Te(s),Te(l),i=0,a=l.length;i<a;++i)l[i].e=n=!n;for(var u,c,h=s[0];;){for(var f=h,p=!0;f.v;)if((f=f.n)===h)return;u=f.z,o.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(i=0,a=u.length;i<a;++i)o.point((c=u[i])[0],c[1]);else r(f.x,f.n.x,1,o);f=f.n}else{if(p)for(u=f.p.z,i=u.length-1;i>=0;--i)o.point((c=u[i])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);o.lineEnd()}}}function Te(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r<e;)o.n=n=t[r],n.p=o,o=n;o.n=n=t[0],n.p=o}}function Oe(t,e,n,r){return function(i){var a,s,l,u=e(i),c=Pe(),h=e(c),f=!1,p={point:d,lineStart:g,lineEnd:y,polygonStart:function(){p.point=v,p.lineStart=b,p.lineEnd=_,s=[],a=[]},polygonEnd:function(){p.point=d,p.lineStart=g,p.lineEnd=y,s=o(s);var t=Pt(a,r);s.length?(f||(i.polygonStart(),f=!0),Ee(s,Ae,t,n,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),s=a=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 m(t,e){u.point(t,e)}function g(){p.point=m,u.lineStart()}function y(){p.point=d,u.lineEnd()}function v(t,e){l.push([t,e]),h.point(t,e)}function b(){h.lineStart(),l=[]}function _(){v(l[0][0],l[0][1]),h.lineEnd();var t,e,n,r,o=h.clean(),u=c.result(),p=u.length;if(l.pop(),a.push(l),l=null,p)if(1&o){if((e=(n=u[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else p>1&&2&o&&u.push(u.pop().concat(u.shift())),s.push(u.filter(ke))}return p}}function ke(t){return t.length>1}function Ae(t,e){return((t=t.x)[0]<0?t[1]-D.ou-D.Ho:D.ou-t[1])-((e=e.x)[0]<0?e[1]-D.ou-D.Ho:D.ou-e[1])}be.invert=be;var Ce=Oe((function(){return!0}),(function(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,a){var s=i>0?D.pi:-D.pi,l=(0,D.Wn)(i-n);
1(0,D.Wn)(l-D.pi)<D.Ho?(t.point(n,r=(r+a)/2>0?D.ou:-D.ou),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(i,r),e=0):o!==s&&l>=D.pi&&((0,D.Wn)(n-o)<D.Ho&&(n-=o*D.Ho),(0,D.Wn)(i-s)<D.Ho&&(i-=s*D.Ho),r=function(t,e,n,r){var o,i,a=(0,D.O$)(t-n);return(0,D.Wn)(a)>D.Ho?(0,D.z4)(((0,D.O$)(e)*(i=(0,D.mC)(r))*(0,D.O$)(n)-(0,D.O$)(r)*(o=(0,D.mC)(e))*(0,D.O$)(t))/(o*i*a)):(e+r)/2}(n,r,i,a),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=i,r=a),o=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var o;if(null==t)o=n*D.ou,r.point(-D.pi,o),r.point(0,o),r.point(D.pi,o),r.point(D.pi,0),r.point(D.pi,-o),r.point(0,-o),r.point(-D.pi,-o),r.point(-D.pi,0),r.point(-D.pi,o);else if((0,D.Wn)(t[0]-e[0])>D.Ho){var i=t[0]<e[0]?D.pi:-D.pi;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(e[0],e[1])}),[-D.pi,-D.ou]);function je(t,e,n,r,o,i){if(n){var a=(0,D.mC)(e),s=(0,D.O$)(e),l=r*n;null==o?(o=e+r*D.BZ,i=e-l/2):(o=Re(a,o),i=Re(a,i),(r>0?o<i:o>i)&&(o+=r*D.BZ));for(var u,c=o;r>0?c>i:c<i;c-=l)u=W([a,-s*(0,D.mC)(c),-s*(0,D.O$)(c)]),t.point(u[0],u[1])}}function Re(t,e){(e=G(e))[0]-=t,q(e);var n=(0,D.Kh)(-e[1]);return((-e[2]<0?-n:n)+D.BZ-D.Ho)%D.BZ}function De(t){var e=(0,D.mC)(t),n=2*D.uR,r=e>0,o=(0,D.Wn)(e)>D.Ho;function i(t,n){return(0,D.mC)(t)*(0,D.mC)(n)>e}function a(t,n,r){var o=[1,0,0],i=$(G(t),G(n)),a=V(i,i),s=i[0],l=a-s*s;if(!l)return!r&&t;var u=e*a/l,c=-e*s/l,h=$(o,i),f=X(o,u);Y(f,X(i,c));var p=h,d=V(f,p),m=V(p,p),g=d*d-m*(V(f,f)-1);if(!(g<0)){var y=(0,D._b)(g),v=X(p,(-d-y)/m);if(Y(v,f),v=W(v),!r)return v;var b,_=t[0],w=n[0],x=t[1],S=n[1];w<_&&(b=_,_=w,w=b);var P=w-_,H=(0,D.Wn)(P-D.pi)<D.Ho;if(!H&&S<x&&(b=x,x=S,S=b),H||P<D.Ho?H?x+S>0^v[1]<((0,D.Wn)(v[0]-_)<D.Ho?x:S):x<=v[1]&&v[1]<=S:P>D.pi^(_<=v[0]&&v[0]<=w)){var M=X(p,(-d+y)/m);return Y(M,f),[v,W(M)]}}}function s(e,n){var o=r?t:D.pi-t,i=0;return e<-o?i|=1:e>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return Oe(i,(function(t){var e,n,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,f){var p,d=[h,f],m=i(h,f),g=r?m?0:s(h,f):m?s(h+(h<0?D.pi:-D.pi),f):0;if(!e&&(u=l=m)&&t.lineStart(),m!==l&&(!(p=a(e,d))||He(e,p)||He(d,p))&&(d[2]=1),m!==l)c=0,m?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1],2),t.lineEnd()),e=p;else if(o&&e&&r^m){var y;g&n||!(y=a(d,e,!0))||(c=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&&He(e,d)||t.point(d[0],d[1]),e=d,l=m,n=g},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return c|(u&&l)<<1}}}),(function(e,r,o,i){je(i,t,n,o,e,r)}),r?[0,-t]:[-D.pi,t-D.pi])}var Le=1e9,Ie=-Le;function ze(t,e,n,r){function i(o,i){return t<=o&&o<=n&&e<=i&&i<=r}function a(o,i,a,l){var c=0,h=0;if(null==o||(c=s(o,a))!==(h=s(i,a))||u(o,i)<0^a>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+a+4)%4)!==h);else l.point(i[0],i[1])}function s(r,o){return(0,D.Wn)(r[0]-t)<D.Ho?o>0?0:3:(0,D.Wn)(r[0]-n)<D.Ho?o>0?2:1:(0,D.Wn)(r[1]-e)<D.Ho?o>0?1:0:o>0?3:2}function l(t,e){return u(t.x,e.x)}function u(t,e){var n=s(t,1),r=s(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(s){var u,c,h,f,p,d,m,g,y,v,b,_=s,w=Pe(),x={point:S,lineStart:function(){x.point=P,c&&c.push(h=[]);v=!0,y=!1,m=g=NaN},lineEnd:function(){u&&(P(f,p),d&&y&&w.rejoin(),u.push(w.result()));x.point=S,y&&_.lineEnd()},polygonStart:function(){_=w,u=[],c=[],b=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,o=c.length;n<o;++n)for(var i,a,s=c[n],l=1,u=s.length,h=s[0],f=h[0],p=h[1];l<u;++l)i=f,a=p,f=(h=s[l])[0],p=h[1],a<=r?p>r&&(f-i)*(r-a)>(p-a)*(t-i)&&++e:p<=r&&(f-i)*(r-a)<(p-a)*(t-i)&&--e;return e}(),n=b&&e,i=(u=o(u)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),a(null,null,1,s),s.lineEnd()),i&&Ee(u,l,e,a,s),s.polygonEnd());_=s,u=c=h=null}};function S(t,e){i(t,e)&&_.point(t,e)}function P(o,a){var s=i(o,a);if(c&&h.push([o,a]),v)f=o,p=a,d=s,v=!1,s&&(_.lineStart(),_.point(o,a));else if(s&&y)_.point(o,a);else{var l=[m=Math.max(Ie,Math.min(Le,m)),g=Math.max(Ie,Math.min(Le,g))],u=[o=Math.max(Ie,Math.min(Le,o)),a=Math.max(Ie,Math.min(Le,a))];!function(t,e,n,r,o,i){var a,s=t[0],l=t[1],u=0,c=1,h=e[0]-s,f=e[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<u)return;a<c&&(c=a)}else if(h>0){if(a>c)return;a>u&&(u=a)}if(a=o-s,h||!(a<0)){if(a/=h,h<0){if(a>c)return;a>u&&(u=a)}else if(h>0){if(a<u)return;a<c&&(c=a)}if(a=r-l,f||!(a>0)){if(a/=f,f<0){if(a<u)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>u&&(u=a)}if(a=i-l,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>u&&(u=a)}else if(f>0){if(a<u)return;a<c&&(c=a)}return u>0&&(t[0]=s+u*h,t[1]=l+u*f),c<1&&(e[0]=s+c*h,e[1]=l+c*f),!0}}}}}(l,u,t,e,n,r)?s&&(_.lineStart(),_.point(o,a),b=!1):(y||(_.lineStart(),_.point(l[0],l[1])),_.point(u[0],u[1]),s||_.lineEnd(),b=!1)}m=o,g=a,y=s}return x}}var Ue=t=>t;function Fe(t){return function(e){var n=new Be;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Be(){}Be.prototype={constructor:Be,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 Ne=1/0,Ze=Ne,We=-Ne,Ge=We,Ve={point:function(t,e){t<Ne&&(Ne=t);t>We&&(We=t);e<Ze&&(Ze=e);e>Ge&&(Ge=e)},lineStart:L.Z,lineEnd:L.Z,polygonStart:L.Z,polygonEnd:L.Z,result:function(){var t=[[Ne,Ze],[We,Ge]];return We=Ge=-(Ze=Ne=1/0),t}};var $e=Ve;function Ye(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),(0,lt.Z)(n,t.stream($e)),e($e.result()),null!=r&&t.clipExtent(r),t}function Xe(t,e,n){return Ye(t,(function(n){var r=e[1][0]-e[0][0],o=e[1][1]-e[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+e[0][0]+(r-i*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(o-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,s])}),n)}var qe=(0,D.mC)(30*D.uR);function Ke(t,e){return+e?function(t,e){function n(r,o,i,a,s,l,u,c,h,f,p,d,m,g){var y=u-r,v=c-o,b=y*y+v*v;if(b>4*e&&m--){var _=a+f,w=s+p,x=l+d,S=(0,D._b)(_*_+w*w+x*x),P=(0,D.ZR)(x/=S),H=(0,D.Wn)((0,D.Wn)(x)-1)<D.Ho||(0,D.Wn)(i-h)<D.Ho?(i+h)/2:(0,D.fv)(w,_),M=t(H,P),E=M[0],T=M[1],O=E-r,k=T-o,A=v*O-y*k;(A*A/b>e||(0,D.Wn)((y*O+v*k)/b-.5)>.3||a*f+s*p+l*d<qe)&&(n(r,o,i,a,s,l,E,T,H,_/=S,w/=S,x,m,g),g.point(E,T),n(E,T,H,_,w,x,u,c,h,f,p,d,m,g))}}return function(e){var r,o,i,a,s,l,u,c,h,f,p,d,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(){c=NaN,m.point=v,e.lineStart()}function v(r,o){var i=G([r,o]),a=t(r,o);n(c,h,u,f,p,d,c=a[0],h=a[1],u=r,f=i[0],p=i[1],d=i[2],16,e),e.point(c,h)}function b(){m.point=g,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=x}function w(t,e){v(r=t,e),o=c,i=h,a=f,s=p,l=d,m.point=v}function x(){n(c,h,u,f,p,d,o,i,r,a,s,l,16,e),m.lineEnd=b,b()}return m}}(t,e):function(t){return Fe({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var Qe=Fe({point:function(t,e){this.stream.point(t*D.uR,e*D.uR)}});
1function Je(t,e,n,r,o,i){if(!i)return function(t,e,n,r,o){function i(i,a){return[e+t*(i*=r),n-t*(a*=o)]}return i.invert=function(i,a){return[(i-e)/t*r,(n-a)/t*o]},i}(t,e,n,r,o);var a=(0,D.mC)(i),s=(0,D.O$)(i),l=a*t,u=s*t,c=a/t,h=s/t,f=(s*n-a*e)/t,p=(s*e+a*n)/t;function d(t,i){return[l*(t*=r)-u*(i*=o)+e,n-u*t-l*i]}return d.invert=function(t,e){return[r*(c*t-h*e+f),o*(p-h*t-c*e)]},d}function tn(t){return function(t){var e,n,r,o,i,a,s,l,u,c,h=150,f=480,p=250,d=0,m=0,g=0,y=0,v=0,b=0,_=1,w=1,x=null,S=Ce,P=null,H=Ue,M=.5;function E(t){return l(t[0]*D.uR,t[1]*D.uR)}function T(t){return(t=l.invert(t[0],t[1]))&&[t[0]*D.RW,t[1]*D.RW]}function O(){var t=Je(h,0,0,_,w,b).apply(null,e(d,m)),r=Je(h,f-t[0],p-t[1],_,w,b);return n=_e(g,y,v),s=ve(e,r),l=ve(n,s),a=Ke(s,M),k()}function k(){return u=c=null,E}return E.stream=function(t){return u&&c===t?u:u=Qe(function(t){return Fe({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(S(a(H(c=t)))))},E.preclip=function(t){return arguments.length?(S=t,x=void 0,k()):S},E.postclip=function(t){return arguments.length?(H=t,P=r=o=i=null,k()):H},E.clipAngle=function(t){return arguments.length?(S=+t?De(x=t*D.uR):(x=null,Ce),k()):x*D.RW},E.clipExtent=function(t){return arguments.length?(H=null==t?(P=r=o=i=null,Ue):ze(P=+t[0][0],r=+t[0][1],o=+t[1][0],i=+t[1][1]),k()):null==P?null:[[P,r],[o,i]]},E.scale=function(t){return arguments.length?(h=+t,O()):h},E.translate=function(t){return arguments.length?(f=+t[0],p=+t[1],O()):[f,p]},E.center=function(t){return arguments.length?(d=t[0]%360*D.uR,m=t[1]%360*D.uR,O()):[d*D.RW,m*D.RW]},E.rotate=function(t){return arguments.length?(g=t[0]%360*D.uR,y=t[1]%360*D.uR,v=t.length>2?t[2]%360*D.uR:0,O()):[g*D.RW,y*D.RW,v*D.RW]},E.angle=function(t){return arguments.length?(b=t%360*D.uR,O()):b*D.RW},E.reflectX=function(t){return arguments.length?(_=t?-1:1,O()):_<0},E.reflectY=function(t){return arguments.length?(w=t?-1:1,O()):w<0},E.precision=function(t){return arguments.length?(a=Ke(s,M=t*t),k()):(0,D._b)(M)},E.fitExtent=function(t,e){return Xe(E,t,e)},E.fitSize=function(t,e){return function(t,e,n){return Xe(t,[[0,0],e],n)}(E,t,e)},E.fitWidth=function(t,e){return function(t,e,n){return Ye(t,(function(n){var r=+e,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];t.scale(150*o).translate([i,a])}),n)}(E,t,e)},E.fitHeight=function(t,e){return function(t,e,n){return Ye(t,(function(n){var r=+e,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([i,a])}),n)}(E,t,e)},function(){return e=t.apply(this,arguments),E.invert=e.invert&&T,O()}}((function(){return t}))()}function en(t,e){var n=(0,D.mC)(e),r=1+(0,D.mC)(t)*n;return[n*(0,D.O$)(t)/r,(0,D.O$)(e)/r]}function nn(){return tn(en).scale(250).clipAngle(142)}en.invert=function(t){return function(e,n){var r=(0,D._b)(e*e+n*n),o=t(r),i=(0,D.O$)(o),a=(0,D.mC)(o);return[(0,D.fv)(e*i,r*a),(0,D.ZR)(r&&n*i/r)]}}((function(t){return 2*(0,D.z4)(t)}));const rn=Math.PI,on=rn/2,an=180/rn,sn=rn/180,ln=(Math.abs,Math.atan,Math.atan2),un=Math.cos,cn=(Math.ceil,Math.exp,Math.floor,Math.log,Math.max),hn=Math.min,fn=(Math.pow,Math.sin),pn=Math.sign||function(t){return t>0?1:t<0?-1:0},dn=Math.sqrt;Math.tan;function mn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function gn(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 yn(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function vn(t){var e=dn(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function bn(t){return[ln(t[1],t[0])*an,(e=cn(-1,hn(1,t[2])),(e>1?on:e<-1?-on:Math.asin(e))*an)];var e}function _n(t){const e=t[0]*sn,n=t[1]*sn,r=un(n);return[r*un(e),r*fn(e),fn(n)]}function wn(t){return mn((t=t.map((t=>_n(t))))[0],gn(t[2],t[1]))}function xn(t){const e=function(t){if(t.length<2)return{};let e=0;for(;isNaN(t[e][0]+t[e][1])&&e++<t.length;);const n=function(t){function e(e){return(e=t(e[0]*D.uR,e[1]*D.uR))[0]*=D.RW,e[1]*=D.RW,e}return t=_e(t[0]*D.uR,t[1]*D.uR,t.length>2?t[2]*D.uR:0),e.invert=function(e){return(e=t.invert(e[0]*D.uR,e[1]*D.uR))[0]*=D.RW,e[1]*=D.RW,e},e}(t[e]),r=nn().translate([0,0]).scale(1).rotate(n.invert([180,0]));t=t.map(r);const o=[];let i=1;for(let f=0,p=t.length;f<p;f++){let e=t[f][0]**2+t[f][1]**2;!isFinite(e)||e>1e32?o.push(f):e>i&&(i=e)}const a=1e6*dn(i);o.forEach((e=>t[e]=[a,0])),t.push([0,a]),t.push([-a,0]),t.push([0,-a]);const s=ye.from(t);s.projection=r;const{triangles:l,halfedges:u,inedges:c}=s,h=[];for(let f=0,p=u.length;f<p;f++)if(u[f]<0){const t=f%3==2?f-2:f+1,n=f%3==0?f+2:f-1,r=u[t],o=u[n];u[r]=o,u[o]=r,u[t]=u[n]=-1,l[f]=l[t]=l[n]=e,c[l[r]]=r%3==0?r+2:r-1,c[l[o]]=o%3==0?o+2:o-1,h.push(Math.min(f,t,n)),f+=2-f%3}else l[f]>t.length-3-1&&(l[f]=e);return s}(t),n=function(t){const{triangles:e}=t;if(!e)return[];const n=[];for(let r=0,o=e.length/3;r<o;r++){const t=e[3*r],o=e[3*r+1],i=e[3*r+2];t!==o&&o!==i&&n.push([t,i,o])}return n}(e),r=function(t,e){const n=new Set;return 2===e.length?[[0,1]]:(t.forEach((t=>{if(t[0]!==t[1]&&!(wn(t.map((t=>e[t])))<0))for(let e,r=0;r<3;r++)e=(r+1)%3,n.add(a([t[r],t[e]]).join("-"))})),Array.from(n,(t=>t.split("-").map(Number))))}(n,t),o=function(t,e){const n=[];t.forEach((t=>{for(let e=0;e<3;e++){const r=t[e],o=t[(e+1)%3];n[r]=n[r]||[],n[r].push(o)}})),0===t.length&&(2===e?(n[0]=[1],n[1]=[0]):1===e&&(n[0]=[]));return n}(n,t.length),i=function(t,e){function n(t,e){let n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o}return function(r,o,i){void 0===i&&(i=0);let a,s,l=i;const u=_n([r,o]);
1do{a=i,i=null,s=n(u,_n(e[a])),t[a].forEach((t=>{let r=n(u,_n(e[t]));if(r<s)return s=r,i=t,void(l=t)}))}while(null!==i);return l}}(o,t),s=function(t,e){return t.map((t=>{const n=t.map((t=>e[t])).map(_n);return bn(vn(yn(yn(gn(n[1],n[0]),gn(n[2],n[1])),gn(n[0],n[2]))))}))}(n,t),{polygons:l,centers:u}=function(t,e,n){const r=[],o=t.slice();if(0===e.length){if(n.length<2)return{polygons:r,centers:o};if(2===n.length){const t=_n(n[0]),e=_n(n[1]),a=vn(yn(t,e)),s=vn(gn(t,e)),l=gn(a,s),u=[a,gn(a,l),gn(gn(a,l),l),gn(gn(gn(a,l),l),l)].map(bn).map(i);return r.push(u),r.push(u.slice().reverse()),{polygons:r,centers:o}}}e.forEach(((t,e)=>{for(let n=0;n<3;n++){const o=t[n],i=t[(n+1)%3],a=t[(n+2)%3];r[o]=r[o]||[],r[o].push([i,a,e,[o,i,a]])}}));function i(t){let n=-1;return o.slice(e.length,1/0).forEach(((r,o)=>{r[0]===t[0]&&r[1]===t[1]&&(n=o+e.length)})),n<0&&(n=o.length,o.push(t)),n}return{polygons:r.map((t=>{const e=[t[0][2]];let r=t[0][1];for(let n=1;n<t.length;n++)for(let o=0;o<t.length;o++)if(t[o][0]==r){r=t[o][1],e.push(t[o][2]);break}if(e.length>2)return e;if(2==e.length){const r=Sn(n[t[0][3][0]],n[t[0][3][1]],o[e[0]]),a=Sn(n[t[0][3][2]],n[t[0][3][0]],o[e[0]]),s=i(r),l=i(a);return[e[0],l,e[1],s]}})),centers:o}}(s,n,t),c=function(t){const 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}(l),h=function(t,e){const n=new Set,r=[];t.map((t=>{if(!(wn(t.map((t=>e[t>e.length?0:t])))>1e-12))for(let e=0;e<3;e++){let r=[t[e],t[(e+1)%3]],o=`${r[0]}-${r[1]}`;n.has(o)?n.delete(o):n.add(`${r[1]}-${r[0]}`)}}));const o=new Map;let i;if(n.forEach((t=>{t=t.split("-").map(Number),o.set(t[0],t[1]),i=t[0]})),void 0===i)return r;let a=i;do{r.push(a);let t=o.get(a);o.set(a,-1),a=t}while(a>-1&&a!==i);return r}(n,t),f=function(t,e){return function(n){const r=new Map,o=new Map;return t.forEach(((t,e)=>{const i=t.join("-");r.set(i,n[e]),o.set(i,!0)})),e.forEach((t=>{let e=0,n=-1;for(let o=0;o<3;o++){let i=a([t[o],t[(o+1)%3]]).join("-");r.get(i)>e&&(e=r.get(i),n=i)}o.set(n,!1)})),t.map((t=>o.get(t.join("-"))))}}(r,n);return{delaunay:e,edges:r,triangles:n,centers:u,neighbors:o,polygons:l,mesh:c,hull:h,urquhart:f,find:i}}function Sn(t,e,n){t=_n(t),e=_n(e),n=_n(n);const r=pn(mn(gn(e,t),n));return bn(vn(yn(t,e)).map((t=>r*t)))}function Pn(t){const 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){const 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=xn(e.points)}return e};return e._vx=function(t){return"object"==typeof t&&"type"in t?se(t)[0]:0 in t?t[0]:void 0},e._vy=function(t){return"object"==typeof t&&"type"in t?se(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;const 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=>wn(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;const n=e.delaunay.edges.map((t=>(0,wt.Z)(e.points[t[0]],e.points[t[1]]))),r=e.delaunay.urquhart(n);return{type:"FeatureCollection",features:e.delaunay.edges.map(((t,o)=>({type:"Feature",properties:{source:e.valid[t[0]],target:e.valid[t[1]],length:n[o],urquhart:!!r[o]},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;const{centers:n,polygons:r}=e.delaunay,o=[];for(const e of r)if(e)for(let t=e.length,r=e[t-1],i=e[0],a=0;a<t;r=i,i=e[++a])i>r&&o.push([n[r],n[i]]);return{type:"MultiLineString",coordinates:o}},e._found=void 0,e.find=function(t,n,r){if(e._found=e.delaunay.find(t,n,e._found),!r||(0,wt.Z)([t,n],e.points[e._found])<r)return e._found},e.hull=function(t){void 0!==t&&e(t);const 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}var Hn=n(9443);function Mn(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 En(t,e,n){return e=Tn(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,On()?Reflect.construct(e,[],Tn(t).constructor):e.apply(t,n))}
1function Tn(t){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tn(t)}function On(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(On=function(){return!!t})()}function kn(t,e){return kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kn(t,e)}function An(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||jn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(t){return function(t){if(Array.isArray(t))return Mn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||jn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jn(t,e){if(t){if("string"==typeof t)return Mn(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)?Mn(t,e):void 0}}function Rn(t,e){return t.map((function(t){var n,r=[];return t.forEach((function(t){if(n){var o=180*(0,wt.Z)(t,n)/Math.PI;if(o>e)for(var i=(0,xt.Z)(n,t),a=1/Math.ceil(o/e),s=a;s<1;)r.push(i(s)),s+=a}r.push(n=t)})),r}))}function Dn(t,e){var n={type:"Polygon",coordinates:t},r=An(_t(n),2),o=An(r[0],2),i=o[0],a=o[1],s=An(r[1],2),l=s[0],u=s[1];if(Math.min(Math.abs(l-i),Math.abs(u-a))<e)return[];var c=i>l||u>=89||a<=-89;return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minLng,r=e.maxLng,o=e.minLat,i=e.maxLat,a=Math.round(Math.pow(360/t,2)/Math.PI),s=(1+Math.sqrt(5))/2,l=function(t){return t/s*360%360-180},u=function(t){return Math.acos(2*t/a-1)/Math.PI*180-90},c=function(t){return a*(Math.cos((t+90)*Math.PI/180)+1)/2},h=[void 0!==i?Math.ceil(c(i)):0,void 0!==o?Math.floor(c(o)):a-1],f=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},p=[],d=h[0];d<=h[1];d++){var m=l(d);f(m)&&p.push([m,u(d)])}return p}(e,{minLng:i,maxLng:l,minLat:a,maxLat:u}).filter((function(t){return Ln(t,n,c)}))}function Ln(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?Xt(e,t):j(t,e)}var In=window.THREE?window.THREE:{BufferGeometry:r.u9r,Float32BufferAttribute:r.a$l},zn=(new In.BufferGeometry).setAttribute?"setAttribute":"addAttribute",Un=function(t){function e(t,n,r,l,u,c,h){var f;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(f=En(this,e)).type="ConicPolygonGeometry",f.parameters={polygonGeoJson:t,bottomHeight:n,topHeight:r,closedBottom:l,closedTop:u,includeSides:c,curvatureResolution:h},n=n||0,r=r||1,l=void 0===l||l,u=void 0===u||u,c=void 0===c||c;var p=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).resolution,n=void 0===e?1/0:e,r=Rn(t,n),l=o(r),u=Dn(t,n),c=[].concat(Cn(l),Cn(u)),h={type:"Polygon",coordinates:t},f=An(_t(h),2),p=An(f[0],2),d=p[0],m=p[1],g=An(f[1],2),y=g[0],v=g[1],_=d>y||v>=89||m<=-89,w=[];if(_){var x=Pn(c).triangles(),S=new Map(c.map((function(t,e){var n=An(t,2),r=n[0],o=n[1];return["".concat(r,"-").concat(o),e]})));x.features.forEach((function(t){var e,n=t.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach((function(t){var e=An(t,2),n=e[0],o=e[1],i="".concat(n,"-").concat(o);S.has(i)&&r.push(S.get(i))})),3===r.length){if(r.some((function(t){return t<l.length}))&&!Ln(t.properties.circumcenter,h,_))return;(e=w).push.apply(e,r)}}))}else if(u.length)for(var P=b.from(c),H=function(t){var e,n=[2,1,0].map((function(e){return P.triangles[t+e]})),r=n.map((function(t){return c[t]}));if(n.some((function(t){return t<l.length}))&&!Ln([0,1].map((function(t){return i(r,(function(e){return e[t]}))}
1)),h,_))return 1;(e=w).push.apply(e,Cn(n))},M=0,E=P.triangles.length;M<E;M+=3)H(M);else{var T=(0,s.xH)(r),O=T.vertices,k=T.holes,A=void 0===k?[]:k;w=(0,s.ZP)(O,A,2)}var C=(0,Hn.Z)(a(c,(function(t){return t[0]})),[0,1]),j=(0,Hn.Z)(a(c,(function(t){return t[1]})),[0,1]),R=c.map((function(t){var e=An(t,2),n=e[0],r=e[1];return[C(n),j(r)]}));return{contour:r,triangles:{points:c,indices:w,uvs:R}}}(t,{resolution:h=h||5}),d=p.contour,m=p.triangles,g=o(m.uvs),y=[],v=[],_=[],w=0,x=function(t){var e=Math.round(y.length/3),n=_.length;y=y.concat(t.vertices),v=v.concat(t.uvs),_=_.concat(e?t.indices.map((function(t){return t+e})):t.indices),f.addGroup(n,_.length-n,w++)};function S(t,e){var n="function"===typeof e?e:function(){return e},r=t.map((function(t){return t.map((function(t){var e=An(t,2),r=e[0],o=e[1];return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,o=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(o),n*Math.cos(r),n*Math.sin(r)*Math.sin(o)]}(o,r,n(r,o))}))}));return(0,s.xH)(r)}function P(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{indices:e?m.indices:m.indices.slice().reverse(),vertices:S([m.points],t).vertices,uvs:g}}return c&&x(function(){for(var t=S(d,n),e=t.vertices,i=t.holes,a=S(d,r).vertices,s=o([a,e]),l=Math.round(a.length/3),u=new Set(i),c=0,h=[],f=0;f<l;f++){var p=f+1;if(p===l)p=c;else if(u.has(p)){var m=p;p=c,c=m}h.push(f,f+l,p+l),h.push(p+l,p,f)}for(var g=[],y=1;y>=0;y--)for(var v=0;v<l;v+=1)g.push(v/(l-1),y);return{indices:h,vertices:s,uvs:g}}()),l&&x(P(n,!1)),u&&x(P(r,!0)),f.setIndex(_),f[zn]("position",new In.Float32BufferAttribute(y,3)),f[zn]("uv",new In.Float32BufferAttribute(v,2)),f.computeVertexNormals(),f}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kn(t,e)}(e,t),n=e,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(In.BufferGeometry)},10433:function(t,e,n){"use strict";n.d(e,{Z:function(){return _}});var r=n(74250),o=n(70442),i=n(70755),a=n(66116),s=n(68063);function l(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 u(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,[],h(t).constructor):e.apply(t,n))}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function d(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return l(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)?l(t,e):void 0}}var y=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 o=180*(0,i.Z)(t,r)/Math.PI;if(o>e)for(var l=(0,a.Z)(r,t),u=r.length>2||t.length>2?(0,s.Z)(r[2]||0,t[2]||0):null,c=u?function(t){return[].concat(m(l(t)),[u(t)])}:l,h=1/Math.ceil(o/e),f=h;f<1;)n.push(c(f)),f+=h}n.push(r=t)})),n},v="undefined"!==typeof window&&window.THREE?window.THREE:{BufferGeometry:r.u9r,Float32BufferAttribute:r.a$l},b=(new v.BufferGeometry).setAttribute?"setAttribute":"addAttribute",_=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;c(this,e),(n=u(this,e)).type="GeoJsonGeometry",n.parameters={geoJson:t,radius:r,resolution:i};var a=({Point:f,MultiPoint:p,LineString:m,MultiLineString:g,Polygon:_,MultiPolygon:x}[t.type]||function(){return[]})(t.coordinates,r),s=[],l=[],h=0;function f(t,e){return[{vertices:S(t[1],t[0],e+(t[2]||0)),indices:[]}]}function p(t,e){var n={vertices:[],indices:[]};return t.map((function(t){return f(t,e)}
vendor: 11,461 bytes, line 1
1)).forEach((function(t){var e=d(t,1)[0];w(n,e)})),[n]}function m(t,e){for(var n=y(t,i).map((function(t){var n=d(t,3),r=n[0],o=n[1],i=n[2];return S(o,r,e+(void 0===i?0:i))})),r=(0,o.xH)([n]).vertices,a=Math.round(r.length/3),s=[],l=1;l<a;l++)s.push(l-1,l);return[{vertices:r,indices:s}]}function g(t,e){var n={vertices:[],indices:[]};return t.map((function(t){return m(t,e)})).forEach((function(t){var e=d(t,1)[0];w(n,e)})),[n]}function _(t,e){for(var n=t.map((function(t){return y(t,i).map((function(t){var n=d(t,3),r=n[0],o=n[1],i=n[2];return S(o,r,e+(void 0===i?0:i))}))})),r=(0,o.xH)(n),a=r.vertices,s=r.holes,l=s[0]||1/0,u=a.slice(0,3*l),c=a.slice(3*l),h=new Set(s),f=Math.round(a.length/3),p=[],m=[],g=1;g<f;g++)h.has(g)||(g<l?p.push(g-1,g):m.push(g-1-l,g-l));var v=[{indices:p,vertices:u}];return s.length&&v.push({indices:m,vertices:c}),v}function x(t,e){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};t.map((function(t){return _(t,e)})).forEach((function(t){var e=d(t,2),o=e[0],i=e[1];w(n,o),i&&w(r,i)}));var o=[n];return r.vertices.length&&o.push(r),o}return a.forEach((function(t){var e=s.length;w({indices:s,vertices:l},t),n.addGroup(e,s.length-e,h++)})),s.length&&n.setIndex(s),l.length&&n[b]("position",new v.Float32BufferAttribute(l,3)),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(v.BufferGeometry);function w(t,e){var n=Math.round(t.vertices.length/3);x(t.vertices,e.vertices),x(t.indices,e.indices.map((function(t){return t+n})))}function x(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;t.push(o)}}catch(i){r.e(i)}finally{r.f()}}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,o=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(o),n*Math.cos(r),n*Math.sin(r)*Math.sin(o)]}},43246:function(t,e,n){"use strict";n.d(e,{Z:function(){return tt}});var r=n(74250);function o(t,e,n,r,o){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var i,a,s,l,u,c,h,f,p,d,m,g,y=t._root,v={data:o},b=t._x0,_=t._y0,w=t._z0,x=t._x1,S=t._y1,P=t._z1;if(!y)return t._root=v,t;for(;y.length;)if((f=e>=(a=(b+x)/2))?b=a:x=a,(p=n>=(s=(_+S)/2))?_=s:S=s,(d=r>=(l=(w+P)/2))?w=l:P=l,i=y,!(y=y[m=d<<2|p<<1|f]))return i[m]=v,t;if(u=+t._x.call(null,y.data),c=+t._y.call(null,y.data),h=+t._z.call(null,y.data),e===u&&n===c&&r===h)return v.next=y,i?i[m]=v:t._root=v,t;do{i=i?i[m]=new Array(8):t._root=new Array(8),(f=e>=(a=(b+x)/2))?b=a:x=a,(p=n>=(s=(_+S)/2))?_=s:S=s,(d=r>=(l=(w+P)/2))?w=l:P=l}while((m=d<<2|p<<1|f)===(g=(h>=l)<<2|(c>=s)<<1|u>=a));return i[g]=y,i[m]=v,t}function i(t,e,n,r,o,i,a){this.node=t,this.x0=e,this.y0=n,this.z0=r,this.x1=o,this.y1=i,this.z1=a}const a=(t,e,n,r,o,i)=>Math.sqrt((t-r)**2+(e-o)**2+(n-i)**2);function s(t){return t[0]}function l(t){return t[1]}function u(t){return t[2]}function c(t,e,n,r){var o=new h(null==e?s:e,null==n?l:n,null==r?u:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?o:o.addAll(t)}function h(t,e,n,r,o,i,a,s,l){this._x=t,this._y=e,this._z=n,this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=l,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 p=c.prototype=h.prototype;p.copy=function(){var t,e,n=new h(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=new Array(8)}];r=t.pop();)for(var o=0;o<8;++o)(e=r.source[o])&&(e.length?t.push({source:e,target:r.target[o]=new Array(8)}):r.target[o]=f(e));return n},p.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t),r=+this._z.call(null,t);return o(this.cover(e,n,r),e,n,r,t)},p.addAll=function(t){Array.isArray(t)||(t=Array.from(t));const e=t.length,n=new Float64Array(e),r=new Float64Array(e),i=new Float64Array(e);let a=1/0,s=1/0,l=1/0,u=-1/0,c=-1/0,h=-1/0;for(let o,f,p,d,m=0;m<e;++m)isNaN(f=+this._x.call(null,o=t[m]))||isNaN(p=+this._y.call(null,o))||isNaN(d=+this._z.call(null,o))||(n[m]=f,r[m]=p,i[m]=d,f<a&&(a=f),f>u&&(u=f),p<s&&(s=p),p>c&&(c=p),d<l&&(l=d),d>h&&(h=d));if(a>u||s>c||l>h)return this;this.cover(a,s,l).cover(u,c,h);for(let f=0;f<e;++f)o(this,n[f],r[f],i[f],t[f]);return this},p.cover=function(t,e,n){if(isNaN(t=+t)||isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,i=this._z0,a=this._x1,s=this._y1,l=this._z1;if(isNaN(r))a=(r=Math.floor(t))+1,s=(o=Math.floor(e))+1,l=(i=Math.floor(n))+1;else{for(var u,c,h=a-r||1,f=this._root;r>t||t>=a||o>e||e>=s||i>n||n>=l;)switch(c=(n<i)<<2|(e<o)<<1|t<r,(u=new Array(8))[c]=f,f=u,h*=2,c){case 0:a=r+h,s=o+h,l=i+h;break;case 1:r=a-h,s=o+h,l=i+h;break;case 2:a=r+h,o=s-h,l=i+h;break;case 3:r=a-h,o=s-h,l=i+h;break;case 4:a=r+h,s=o+h,i=l-h;break;case 5:r=a-h,s=o+h,i=l-h;break;case 6:a=r+h,o=s-h,i=l-h;break;case 7:r=a-h,o=s-h,i=l-h}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=l,this},p.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},p.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1],+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]]},p.find=function(t,e,n,r){var o,a,s,l,u,c,h,f,p,d=this._x0,m=this._y0,g=this._z0,y=this._x1,v=this._y1,b=this._z1,_=[],w=this._root;for(w&&_.push(new i(w,d,m,g,y,v,b)),null==r?r=1/0:(d=t-r,m=e-r,g=n-r,y=t+r,v=e+r,b=n+r,r*=r);f=_.pop();)if(!(!(w=f.node)||(a=f.x0)>y||(s=f.y0)>v||(l=f.z0)>b||(u=f.x1)<d||(c=f.y1)<m||(h=f.z1)<g))if(w.length){var x=(a+u)/2,S=(s+c)/2,P=(l+h)/2;_.push(new i(w[7],x,S,P,u,c,h),new i(w[6],a,S,P,x,c,h),new i(w[5],x,s,P,u,S,h),new i(w[4],a,s,P,x,S,h),new i(w[3],x,S,l,u,c,P),new i(w[2],a,S,l,x,c,P),new i(w[1],x,s,l,u,S,P),new i(w[0],a,s,l,x,S,P)),(p=(n>=P)<<2|(e>=S)<<1|t>=x)&&(f=_[_.length-1],_[_.length-1]=_[_.length-1-p],_[_.length-1-p]=f)}else{var H=t-+this._x.call(null,w.data),M=e-+this._y.call(null,w.data),E=n-+this._z.call(null,w.data),T=H*H+M*M+E*E;if(T<r){var O=Math.sqrt(r=T);d=t-O,m=e-O,g=n-O,y=t+O,v=e+O,b=n+O,o=w.data}}return o},p.findAllWithinRadius=function(t,e,n,r){const o=[],i=t-r,s=e-r,l=n-r,u=t+r,c=e+r,h=n+r;return this.visit(((f,p,d,m,g,y,v)=>{if(!f.length)do{const i=f.data;a(t,e,n,this._x(i),this._y(i),this._z(i))<=r&&o.push(i)}while(f=f.next);return p>u||d>c||m>h||g<i||y<s||v<l})),o},p.remove=function(t){if(isNaN(i=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t))||isNaN(s=+this._z.call(null,t)))return this;var e,n,r,o,i,a,s,l,u,c,h,f,p,d,m,g=this._root,y=this._x0,v=this._y0,b=this._z0,_=this._x1,w=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((h=i>=(l=(y+_)/2))?y=l:_=l,(f=a>=(u=(v+w)/2))?v=u:w=u,(p=s>=(c=(b+x)/2))?b=c:x=c,e=g,!(g=g[d=p<<2|f<<1|h]))return this;if(!g.length)break;(e[d+1&7]||e[d+2&7]||e[d+3&7]||e[d+4&7]||e[d+5&7]||e[d+6&7]||e[d+7&7])&&(n=e,m=d)}for(;g.data!==t;)if(r=g,!(g=g.next))return this;return(o=g.next)&&delete g.next,r?(o?r.next=o:delete r.next,this):e?(o?e[d]=o:delete e[d],(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):(this._root=o,this)},p.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},p.root=function(){return this._root},p.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},p.visit=function(t){var e,n,r,o,a,s,l,u,c=[],h=this._root;for(h&&c.push(new i(h,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=c.pop();)if(!t(h=e.node,r=e.x0,o=e.y0,a=e.z0,s=e.x1,l=e.y1,u=e.z1)&&h.length){var f=(r+s)/2,p=(o+l)/2,d=(a+u)/2;(n=h[7])&&c.push(new i(n,f,p,d,s,l,u)),(n=h[6])&&c.push(new i(n,r,p,d,f,l,u)),(n=h[5])&&c.push(new i(n,f,o,d,s,p,u)),(n=h[4])&&c.push(new i(n,r,o,d,f,p,u)),(n=h[3])&&c.push(new i(n,f,p,a,s,l,d)),(n=h[2])&&c.push(new i(n,r,p,a,f,l,d)),(n=h[1])&&c.push(new i(n,f,o,a,s,p,d)),(n=h[0])&&c.push(new i(n,r,o,a,f,p,d))}return this},p.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=n.pop();){var o=e.node;if(o.length){var a,s=e.x0,l=e.y0,u=e.z0,c=e.x1,h=e.y1,f=e.z1,p=(s+c)/2,d=(l+h)/2,m=(u+f)/2;(a=o[0])&&n.push(new i(a,s,l,u,p,d,m)),(a=o[1])&&n.push(new i(a,p,l,u,c,d,m)),(a=o[2])&&n.push(new i(a,s,d,u,p,h,m)),(a=o[3])&&n.push(new i(a,p,d,u,c,h,m)),(a=o[4])&&n.push(new i(a,s,l,m,p,d,f)),(a=o[5])&&n.push(new i(a,p,l,m,c,d,f)),(a=o[6])&&n.push(new i(a,s,d,m,p,h,f)),(a=o[7])&&n.push(new i(a,p,d,m,c,h,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},p.x=function(t){return arguments.length?(this._x=t,this):this._x},p.y=function(t){return arguments.length?(this._y=t,this):this._y},p.z=function(t){return arguments.length?(this._z=t,this):this._z};var d=n(9443),m=n(35432);function g(t,e){return[t,(0,m.cM)((0,m.OR)((m.ou+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 new TypeError("Private element is not present on this object")}function b(t,e,n){return e=T(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,[],T(t).constructor):e.apply(t,n))}function _(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){return t.get(v(t,e))}function S(t,e,n){_(t,e),e.set(t,n)}function P(t,e,n){return t.set(v(t,e),n),n}function H(t,e){_(t,e),e.add(t)}function M(t,e,n){return 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,j(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function E(t,e,n){return(e=j(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}
1function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function A(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,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||R(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(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)||R(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(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 new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function R(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.z4)((0,m.Qq)(e))-m.ou]};var D=function(t){t instanceof Array?t.forEach(D):(t.map&&t.map.dispose(),t.dispose())},L=function(t){t.geometry&&t.geometry.dispose(),t.material&&D(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(L)},I=function(t){if(t&&t.children)for(;t.children.length;){var e=t.children[0];t.remove(e),L(e)}};function z(t,e,n){var r=(90-t)*Math.PI/180,o=(90-e)*Math.PI/180;return{x:n*Math.sin(r)*Math.cos(o),y:n*Math.cos(r),z:n*Math.sin(r)*Math.sin(o)}}function U(t){return t*Math.PI/180}var F=function(t){return 1-(g(0,(.5-t)*Math.PI)[1]/Math.PI+1)/2},B=function(t){return Math.max(0,Math.min(1,F(t)))},N=function(t){return.5-g.invert(0,(2*(1-t)-1)*Math.PI)[1]/Math.PI},Z=function(t,e,n,r){var o=Math.pow(2,t),i=Math.max(0,Math.min(o-1,Math.floor((n+180)*o/360))),a=(90-r)/180;return e&&(a=Math.max(0,Math.min(1,F(a)))),[i,Math.floor(a*o)]},W=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,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=[],s=Math.pow(2,t),l=360/s,u=180/s,c=void 0===o?s-1:o,h=void 0===i?s-1:i,f=n,p=Math.min(s-1,c);f<=p;f++)for(var d=r,m=Math.min(s-1,h);d<=m;d++){var g=d,y=u;if(e){g=0===d?d:N(d/s)*s;var v=d+1===s?d+1:N((d+1)/s)*s;y=180*(v-g)/s}var b=(f+.5)*l-180,_=90-(180*g/s+y/2),w=y;a.push({x:f,y:d,lng:b,lat:_,latLen:w})}return a},G=new WeakMap,V=new WeakMap,$=new WeakMap,Y=new WeakMap,X=new WeakMap,q=new WeakMap,K=new WeakMap,Q=new WeakMap,J=new WeakSet,tt=function(t){function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.tileUrl,a=o.minLevel,s=void 0===a?0:a,l=o.maxLevel,u=void 0===l?17:l,c=o.mercatorProjection,h=void 0===c||c;return w(this,e),H(n=b(this,e),J),S(n,G,void 0),S(n,V,void 0),S(n,$,void 0),S(n,Y,void 0),S(n,X,{}),S(n,q,void 0),S(n,K,void 0),S(n,Q,void 0),E(n,"minLevel",void 0),E(n,"maxLevel",void 0),E(n,"thresholds",C(new Array(30)).map((function(t,e){return 8/Math.pow(2,e)}))),E(n,"curvatureResolution",5),E(n,"tileMargin",0),E(n,"clearTiles",(function(){Object.values(x(X,n)).forEach((function(t){t.forEach((function(t){t.obj&&(n.remove(t.obj),I(t.obj),delete t.obj)}))})),P(X,n,{})})),P(G,n,t),n.tileUrl=i,P(V,n,h),n.minLevel=s,n.maxLevel=u,n.level=0,n.add(P(Q,n,new r.Kj0(new r.xo$(.99*x(G,n),180,90),new r.vBJ({color:0})))),x(Q,n).visible=!1,x(Q,n).material.polygonOffset=!0,x(Q,n).material.polygonOffsetUnits=3,x(Q,n).material.polygonOffsetFactor=1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(e,t),M(e,[{key:"tileUrl",get:function(){return x($,this)},set:function(t){P($,this,t),this.updatePov(x(K,this))}},{key:"level",get:function(){return x(Y,this)},set:function(t){var e=this;x(X,this)[t]||v(J,this,et).call(this,t);var n=x(Y,this);
1if(P(Y,this,t),t!==n&&void 0!==n){if(x(Q,this).visible=t>0,x(X,this)[t].forEach((function(t){return t.obj&&(t.obj.material.depthWrite=!0)})),n<t&&x(X,this)[n].forEach((function(t){return t.obj&&(t.obj.material.depthWrite=!1)})),n>t)for(var r=t+1;r<=n;r++)x(X,this)[r]&&x(X,this)[r].forEach((function(t){t.obj&&(e.remove(t.obj),I(t.obj),delete t.obj)}));v(J,this,nt).call(this)}}},{key:"updatePov",value:function(t){var e,n=this;if(t&&t instanceof r.V1s&&(P(K,this,t),P(q,this,(function(o){if(!o.hullPnts){var i=360/Math.pow(2,n.level),a=o.lng,s=o.lat,l=o.latLen,u=a-i/2,c=a+i/2,h=s-l/2,f=s+l/2;o.hullPnts=[[s,a],[h,u],[f,u],[h,c],[f,c]].map((function(t){var e=A(t,2);return z(e[0],e[1],x(G,n))})).map((function(t){var e=t.x,n=t.y,o=t.z;return new r.Pa4(e,n,o)}))}return e||(e=new r.iWj,t.updateMatrix(),t.updateMatrixWorld(),e.setFromProjectionMatrix((new r.yGw).multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse))),o.hullPnts.some((function(t){return e.containsPoint(t.clone().applyMatrix4(n.matrixWorld))}))})),this.tileUrl)){var o=(t.position.clone().distanceTo(this.getWorldPosition(new r.Pa4))-x(G,this))/x(G,this),i=this.thresholds.findIndex((function(t){return t&&t<=o}));this.level=Math.min(this.maxLevel,Math.max(this.minLevel,i<0?this.thresholds.length:i)),v(J,this,nt).call(this)}}}])}(r.ZAu);function et(t){var e=this;if(t>7)x(X,this)[t]=[];else{var n=x(X,this)[t]=W(t,x(V,this));n.forEach((function(t){return t.centroid=z(t.lat,t.lng,x(G,e))})),n.octree=c().x((function(t){return t.centroid.x})).y((function(t){return t.centroid.y})).z((function(t){return t.centroid.z})).addAll(n)}}function nt(){var t=this;if(this.tileUrl&&void 0!==this.level&&x(X,this).hasOwnProperty(this.level)&&(x(q,this)||!(this.level>6))){var e=x(X,this)[this.level];if(x(K,this)){var n=this.worldToLocal(x(K,this).position.clone());if(e.octree){var o,i=this.worldToLocal(x(K,this).position.clone()),a=3*(i.length()-x(G,this));e=(o=e.octree).findAllWithinRadius.apply(o,C(i).concat([a]))}else{var s=function(t){var e=t.x,n=t.y,r=t.z,o=Math.sqrt(e*e+n*n+r*r),i=Math.acos(n/o),a=Math.atan2(r,e);return{lat:90-180*i/Math.PI,lng:90-180*a/Math.PI-(a<-Math.PI/2?360:0),r:o}}(n),l=90*(s.r/x(G,this)-1),u=l/Math.cos(U(s.lat)),c=[s.lng-u,s.lng+u],h=[s.lat+l,s.lat-l],f=A(Z(this.level,x(V,this),c[0],h[0]),2),p=f[0],m=f[1],g=A(Z(this.level,x(V,this),c[1],h[1]),2),y=g[0],v=g[1];!e.record&&(e.record={});var b=e.record;if(b.hasOwnProperty("".concat(Math.round((p+y)/2),"_").concat(Math.round((m+v)/2)))){for(var _=[],w=p;w<=y;w++)for(var S=m;S<=v;S++){var P="".concat(w,"_").concat(S);b.hasOwnProperty(P)||(b[P]=W(this.level,x(V,this),w,S,w,S)[0],e.push(b[P])),_.push(b[P])}e=_}else e=W(this.level,x(V,this),p,m,y,v).map((function(t){var n="".concat(t.x,"_").concat(t.y);return b.hasOwnProperty(n)?b[n]:(b[n]=t,e.push(t),t)}))}}e.filter((function(t){return!t.obj})).filter(x(q,this)||function(){return!0}).forEach((function(e){var n=e.x,o=e.y,i=e.lng,a=e.lat,s=e.latLen,l=360/Math.pow(2,t.level);if(!e.obj){var u=l*(1-t.tileMargin),c=s*(1-t.tileMargin),h=U(i),f=U(-a),p=new r.Kj0(new r.xo$(x(G,t),Math.ceil(u/t.curvatureResolution),Math.ceil(c/t.curvatureResolution),U(90-u/2)+h,U(u),U(90-c/2)+f,U(c)),new r.YBo);if(x(V,t)){var m=A([a+s/2,a-s/2].map((function(t){return.5-t/180})),2),g=m[0],y=m[1];!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,d.Z)().domain([1,0]).range([e,n]).clamp(!0),o=(0,d.Z)().domain([B(e),B(n)]).range([1,0]).clamp(!0),i=function(t){return o(B(r(t)))},a=t.array,s=0,l=a.length;s<l;s+=2)a[s+1]=i(a[s+1]);t.needsUpdate=!0}(p.geometry.attributes.uv,g,y)}e.obj=p}e.loading||(e.loading=!0,(new r.dpR).load(t.tileUrl(n,o,t.level),(function(n){var o=e.obj;o&&(n.colorSpace=r.KI_,o.material.map=n,o.material.color=null,o.material.needsUpdate=!0,t.add(o)),e.loading=!1})))}))}}},13184:function(t,e,n){"use strict";n.d(e,{Fn:function(){return o},If:function(){return i},O$l:function(){return p},Qqt:function(){return u},V7B:function(){return h},ZRM:function(){return s},_b3:function(){return d},e5:function(){return g},fzv:function(){return c},mCk:function(){return l},rNP:function(){return a},tOc:function(){return m},tkI:function(){return f}});var r=n(83926);r.oHn.BRDF_GGX,r.oHn.BRDF_Lambert,r.oHn.BasicShadowFilter,r.oHn.Break,r.oHn.Continue,r.oHn.DFGApprox,r.oHn.D_GGX,r.oHn.Discard,r.oHn.EPSILON,r.oHn.F_Schlick;const o=r.oHn.Fn,i=(r.oHn.INFINITY,r.oHn.If),a=(r.oHn.Switch,r.oHn.Loop),s=(r.oHn.NodeShaderStage,r.oHn.NodeType,r.oHn.NodeUpdateType,r.oHn.NodeAccess,r.o
1Hn.PCFShadowFilter,r.oHn.PCFSoftShadowFilter,r.oHn.PI,r.oHn.PI2,r.oHn.Return,r.oHn.Schlick_to_F0,r.oHn.ScriptableNodeResources,r.oHn.ShaderNode,r.oHn.TBNViewMatrix,r.oHn.VSMShadowFilter,r.oHn.V_GGX_SmithCorrelated,r.oHn.abs,r.oHn.acesFilmicToneMapping,r.oHn.acos,r.oHn.add,r.oHn.addNodeElement,r.oHn.agxToneMapping,r.oHn.all,r.oHn.alphaT,r.oHn.and,r.oHn.anisotropy,r.oHn.anisotropyB,r.oHn.anisotropyT,r.oHn.any,r.oHn.append,r.oHn.array,r.oHn.arrayBuffer,r.oHn.asin),l=(r.oHn.assign,r.oHn.atan,r.oHn.atan2,r.oHn.atomicAdd,r.oHn.atomicAnd,r.oHn.atomicFunc,r.oHn.atomicMax,r.oHn.atomicMin,r.oHn.atomicOr,r.oHn.atomicStore,r.oHn.atomicSub,r.oHn.atomicXor,r.oHn.atomicLoad,r.oHn.attenuationColor,r.oHn.attenuationDistance,r.oHn.attribute,r.oHn.attributeArray,r.oHn.backgroundBlurriness,r.oHn.backgroundIntensity,r.oHn.backgroundRotation,r.oHn.batch,r.oHn.billboarding,r.oHn.bitAnd,r.oHn.bitNot,r.oHn.bitOr,r.oHn.bitXor,r.oHn.bitangentGeometry,r.oHn.bitangentLocal,r.oHn.bitangentView,r.oHn.bitangentWorld,r.oHn.bitcast,r.oHn.blendBurn,r.oHn.blendColor,r.oHn.blendDodge,r.oHn.blendOverlay,r.oHn.blendScreen,r.oHn.blur,r.oHn.bool,r.oHn.buffer,r.oHn.bufferAttribute,r.oHn.bumpMap,r.oHn.burn,r.oHn.bvec2,r.oHn.bvec3,r.oHn.bvec4,r.oHn.bypass,r.oHn.cache,r.oHn.call,r.oHn.cameraFar,r.oHn.cameraIndex,r.oHn.cameraNear,r.oHn.cameraNormalMatrix,r.oHn.cameraPosition,r.oHn.cameraProjectionMatrix,r.oHn.cameraProjectionMatrixInverse,r.oHn.cameraViewMatrix,r.oHn.cameraWorldMatrix,r.oHn.cbrt,r.oHn.cdl,r.oHn.ceil,r.oHn.checker,r.oHn.cineonToneMapping,r.oHn.clamp,r.oHn.clearcoat,r.oHn.clearcoatRoughness,r.oHn.code,r.oHn.color,r.oHn.colorSpaceToWorking,r.oHn.colorToDirection,r.oHn.compute,r.oHn.computeSkinning,r.oHn.cond,r.oHn.Const,r.oHn.context,r.oHn.convert,r.oHn.convertColorSpace,r.oHn.convertToTexture,r.oHn.cos),u=(r.oHn.cross,r.oHn.cubeTexture,r.oHn.dFdx,r.oHn.dFdy,r.oHn.dashSize,r.oHn.debug,r.oHn.decrement,r.oHn.decrementBefore,r.oHn.defaultBuildStages,r.oHn.defaultShaderStages,r.oHn.defined,r.oHn.degrees,r.oHn.deltaTime,r.oHn.densityFog,r.oHn.densityFogFactor,r.oHn.depth,r.oHn.depthPass,r.oHn.difference,r.oHn.diffuseColor,r.oHn.directPointLight,r.oHn.directionToColor,r.oHn.dispersion,r.oHn.distance,r.oHn.div,r.oHn.dodge,r.oHn.dot,r.oHn.drawIndex,r.oHn.dynamicBufferAttribute,r.oHn.element,r.oHn.emissive,r.oHn.equal,r.oHn.equals,r.oHn.equirectUV,r.oHn.exp),c=(r.oHn.exp2,r.oHn.expression,r.oHn.faceDirection,r.oHn.faceForward,r.oHn.faceforward,r.oHn.float),h=(r.oHn.floor,r.oHn.fog,r.oHn.fract,r.oHn.frameGroup,r.oHn.frameId,r.oHn.frontFacing,r.oHn.fwidth,r.oHn.gain,r.oHn.gapSize,r.oHn.getConstNodeType,r.oHn.getCurrentStack,r.oHn.getDirection,r.oHn.getDistanceAttenuation,r.oHn.getGeometryRoughness,r.oHn.getNormalFromDepth,r.oHn.getParallaxCorrectNormal,r.oHn.getRoughness,r.oHn.getScreenPosition,r.oHn.getShIrradianceAt,r.oHn.getTextureIndex,r.oHn.getViewPosition,r.oHn.getShadowMaterial,r.oHn.getShadowRenderObjectFunction,r.oHn.glsl,r.oHn.glslFn,r.oHn.grayscale,r.oHn.greaterThan,r.oHn.greaterThanEqual,r.oHn.hash,r.oHn.highpModelNormalViewMatrix,r.oHn.highpModelViewMatrix,r.oHn.hue,r.oHn.increment,r.oHn.incrementBefore,r.oHn.instance,r.oHn.instanceIndex),f=(r.oHn.instancedArray,r.oHn.instancedBufferAttribute,r.oHn.instancedDynamicBufferAttribute,r.oHn.instancedMesh,r.oHn.int,r.oHn.inverseSqrt,r.oHn.inversesqrt,r.oHn.invocationLocalIndex,r.oHn.invocationSubgroupIndex,r.oHn.ior,r.oHn.iridescence,r.oHn.iridescenceIOR,r.oHn.iridescenceThickness,r.o
1Hn.ivec2,r.oHn.ivec3,r.oHn.ivec4,r.oHn.js,r.oHn.label,r.oHn.length,r.oHn.lengthSq,r.oHn.lessThan,r.oHn.lessThanEqual,r.oHn.lightPosition,r.oHn.lightShadowMatrix,r.oHn.lightTargetDirection,r.oHn.lightTargetPosition,r.oHn.lightViewPosition,r.oHn.lightingContext,r.oHn.lights,r.oHn.linearDepth,r.oHn.linearToneMapping,r.oHn.localId,r.oHn.globalId,r.oHn.log,r.oHn.log2,r.oHn.logarithmicDepthToViewZ,r.oHn.loop,r.oHn.luminance,r.oHn.mediumpModelViewMatrix,r.oHn.mat2,r.oHn.mat3,r.oHn.mat4,r.oHn.matcapUV,r.oHn.materialAO,r.oHn.materialAlphaTest,r.oHn.materialAnisotropy,r.oHn.materialAnisotropyVector,r.oHn.materialAttenuationColor,r.oHn.materialAttenuationDistance,r.oHn.materialClearcoat,r.oHn.materialClearcoatNormal,r.oHn.materialClearcoatRoughness,r.oHn.materialColor,r.oHn.materialDispersion,r.oHn.materialEmissive,r.oHn.materialIOR,r.oHn.materialIridescence,r.oHn.materialIridescenceIOR,r.oHn.materialIridescenceThickness,r.oHn.materialLightMap,r.oHn.materialLineDashOffset,r.oHn.materialLineDashSize,r.oHn.materialLineGapSize,r.oHn.materialLineScale,r.oHn.materialLineWidth,r.oHn.materialMetalness,r.oHn.materialNormal,r.oHn.materialOpacity,r.oHn.materialPointSize,r.oHn.materialReference,r.oHn.materialReflectivity,r.oHn.materialRefractionRatio,r.oHn.materialRotation,r.oHn.materialRoughness,r.oHn.materialSheen,r.oHn.materialSheenRoughness,r.oHn.materialShininess,r.oHn.materialSpecular,r.oHn.materialSpecularColor,r.oHn.materialSpecularIntensity,r.oHn.materialSpecularStrength,r.oHn.materialThickness,r.o
1Hn.materialTransmission,r.oHn.max,r.oHn.maxMipLevel,r.oHn.metalness,r.oHn.min,r.oHn.mix,r.oHn.mixElement,r.oHn.mod,r.oHn.modInt,r.oHn.modelDirection,r.oHn.modelNormalMatrix,r.oHn.modelPosition,r.oHn.modelRadius,r.oHn.modelScale,r.oHn.modelViewMatrix,r.oHn.modelViewPosition,r.oHn.modelViewProjection,r.oHn.modelWorldMatrix,r.oHn.modelWorldMatrixInverse,r.oHn.morphReference,r.oHn.mrt,r.oHn.mul,r.oHn.mx_aastep,r.oHn.mx_cell_noise_float,r.oHn.mx_contrast,r.oHn.mx_fractal_noise_float,r.oHn.mx_fractal_noise_vec2,r.oHn.mx_fractal_noise_vec3,r.oHn.mx_fractal_noise_vec4,r.oHn.mx_hsvtorgb,r.oHn.mx_noise_float,r.oHn.mx_noise_vec3,r.oHn.mx_noise_vec4,r.oHn.mx_ramplr,r.oHn.mx_ramptb,r.oHn.mx_rgbtohsv,r.oHn.mx_safepower,r.oHn.mx_splitlr,r.oHn.mx_splittb,r.oHn.mx_srgb_texture_to_lin_rec709,r.oHn.mx_transform_uv,r.oHn.mx_worley_noise_float,r.oHn.mx_worley_noise_vec2,r.oHn.mx_worley_noise_vec3,r.oHn.negate),p=(r.oHn.neutralToneMapping,r.oHn.nodeArray,r.oHn.nodeImmutable,r.oHn.nodeObject,r.oHn.nodeObjects,r.oHn.nodeProxy,r.oHn.normalFlat,r.oHn.normalGeometry,r.oHn.normalLocal,r.oHn.normalMap,r.oHn.normalView,r.oHn.normalWorld,r.oHn.normalize,r.oHn.not,r.oHn.notEqual,r.oHn.numWorkgroups,r.oHn.objectDirection,r.oHn.objectGroup,r.oHn.objectPosition,r.oHn.objectRadius,r.oHn.objectScale,r.oHn.objectViewPosition,r.oHn.objectWorldMatrix,r.oHn.oneMinus,r.oHn.or,r.oHn.orthographicDepthToViewZ,r.oHn.oscSawtooth,r.oHn.oscSine,r.oHn.oscSquare,r.oHn.oscTriangle,r.oHn.output,r.oHn.outputStruct,r.oHn.overlay,r.oHn.overloadingFn,r.oHn.parabola,r.oHn.parallaxDirection,r.oHn.parallaxUV,r.oHn.parameter,r.oHn.pass,r.oHn.passTexture,r.oHn.pcurve,r.oHn.perspectiveDepthToViewZ,r.oHn.pmremTexture,r.oHn.pointUV,r.oHn.pointWidth,r.oHn.positionGeometry,r.oHn.positionLocal,r.oHn.positionPrevious,r.oHn.positionView,r.oHn.positionViewDirection,r.oHn.positionWorld,r.oHn.positionWorldDirection,r.oHn.posterize,r.oHn.pow,r.oHn.pow2,r.oHn.pow3,r.oHn.pow4,r.oHn.property,r.oHn.radians,r.oHn.rand,r.oHn.range,r.oHn.rangeFog,r.oHn.rangeFogFactor,r.oHn.reciprocal,r.oHn.lightProjectionUV,r.oHn.reference,r.oHn.referenceBuffer,r.oHn.reflect,r.oHn.reflectVector,r.oHn.reflectView,r.oHn.reflector,r.oHn.refract,r.oHn.refractVector,r.oHn.refractView,r.oHn.reinhardToneMapping,r.oHn.remainder,r.oHn.remap,r.oHn.remapClamp,r.oHn.renderGroup,r.oHn.renderOutput,r.oHn.rendererReference,r.oHn.rotate,r.oHn.rotateUV,r.oHn.roughness,r.oHn.round,r.oHn.rtt,r.oHn.sRGBTransferEOTF,r.oHn.sRGBTransferOETF,r.oHn.sampler,r.oHn.samplerComparison,r.oHn.saturate,r.oHn.saturation,r.oHn.screen,r.oHn.screenCoordinate,r.oHn.screenSize,r.oHn.screenUV,r.oHn.scriptable,r.oHn.scriptableValue,r.oHn.select,r.oHn.setCurrentStack,r.oHn.shaderStages,r.oHn.shadow,r.oHn.pointShadow,r.oHn.shadowPositionWorld,r.oHn.sharedUniformGroup,r.oHn.shapeCircle,r.oHn.sheen,r.oHn.sheenRoughness,r.oHn.shiftLeft,r.oHn.shiftRight,r.oHn.shininess,r.oHn.sign,r.oHn.sin),d=(r.oHn.sinc,r.oHn.skinning,r.oHn.smoothstep,r.oHn.smoothstepElement,r.oHn.specularColor,r.oHn.specularF90,r.oHn.spherizeUV,r.oHn.split,r.oHn.spritesheetUV,r.oHn.sqrt),m=(r.oHn.stack,r.oHn.step,r.oHn.storage),g=(r.oHn.storageBarrier,r.oHn.storageObject,r.oHn.storageTexture,r.oHn.string,r.oHn.struct,r.oHn.sub,r.oHn.subgroupIndex,r.oHn.subgroupSize,r.oHn.tan,r.oHn.tangentGeometry,r.oHn.tangentLocal,r.oHn.tangentView,r.oHn.tangentWorld,r.oHn.temp,r.oHn.texture,r.oHn.texture3D,r.oHn.textureBarrier,r.oHn.textureBicubic,r.oHn.textureCubeUV,r.oHn.textureLoad,r.oHn.textureSize,r.oHn.textureStore,r.oHn.thickness,r.o
vendor: 4,785 bytes, line 1
1Hn.threshold,r.oHn.time,r.oHn.timerDelta,r.oHn.timerGlobal,r.oHn.timerLocal,r.oHn.toOutputColorSpace,r.oHn.toWorkingColorSpace,r.oHn.toneMapping,r.oHn.toneMappingExposure,r.oHn.toonOutlinePass,r.oHn.transformDirection,r.oHn.transformNormal,r.oHn.transformNormalToView,r.oHn.transformedBentNormalView,r.oHn.transformedBitangentView,r.oHn.transformedBitangentWorld,r.oHn.transformedClearcoatNormalView,r.oHn.transformedNormalView,r.oHn.transformedNormalWorld,r.oHn.transformedTangentView,r.oHn.transformedTangentWorld,r.oHn.transmission,r.oHn.transpose,r.oHn.tri,r.oHn.tri3,r.oHn.triNoise3D,r.oHn.triplanarTexture,r.oHn.triplanarTextures,r.oHn.trunc,r.oHn.tslFn,r.oHn.uint,r.oHn.uniform);r.oHn.uniformArray,r.oHn.uniformGroup,r.oHn.uniforms,r.oHn.userData,r.oHn.uv,r.oHn.uvec2,r.oHn.uvec3,r.oHn.uvec4,r.oHn.Var,r.oHn.varying,r.oHn.varyingProperty,r.oHn.vec2,r.oHn.vec3,r.oHn.vec4,r.oHn.vectorComponents,r.oHn.velocity,r.oHn.vertexColor,r.oHn.vertexIndex,r.oHn.vibrance,r.oHn.viewZToLogarithmicDepth,r.oHn.viewZToOrthographicDepth,r.oHn.viewZToPerspectiveDepth,r.oHn.viewport,r.oHn.viewportBottomLeft,r.oHn.viewportCoordinate,r.oHn.viewportDepthTexture,r.oHn.viewportLinearDepth,r.oHn.viewportMipTexture,r.oHn.viewportResolution,r.oHn.viewportSafeUV,r.oHn.viewportSharedTexture,r.oHn.viewportSize,r.oHn.viewportTexture,r.oHn.viewportTopLeft,r.oHn.viewportUV,r.oHn.wgsl,r.oHn.wgslFn,r.oHn.workgroupArray,r.oHn.workgroupBarrier,r.oHn.workgroupId,r.oHn.workingToColorSpace,r.oHn.xor},71711:function(t,e,n){"use strict";n.d(e,{M:function(){return o}});var r=n(74250);class o extends r.O7d{constructor(t,e={}){const n=e.font;if(void 0===n)super();else{const 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)}this.type="TextGeometry"}}},64175:function(t,e,n){"use strict";n.d(e,{w:function(){return P}});var r=n(74250),o=n(98671),i=n(71911);const a=new r.Ltg,s=new r.Pa4,l=new r.Pa4,u=new r.Ltg,c=new r.Ltg,h=new r.Ltg,f=new r.Pa4,p=new r.yGw,d=new r.Zzh,m=new r.Pa4,g=new r.ZzF,y=new r.aLr,v=new r.Ltg;let b,_;function w(t,e,n){return v.set(0,0,-e,1).applyMatrix4(t.projectionMatrix),v.multiplyScalar(1/v.w),v.x=_/n.width,v.y=_/n.height,v.applyMatrix4(t.projectionMatrixInverse),v.multiplyScalar(1/v.w),Math.abs(Math.max(v.x,v.y))}class x extends r.Kj0{constructor(t=new o.z,e=new i.Y({color:16777215*Math.random()})){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){const t=this.geometry,e=t.attributes.instanceStart,n=t.attributes.instanceEnd,o=new Float32Array(2*e.count);for(let r=0,a=0,u=e.count;r<u;r++,a+=2)s.fromBufferAttribute(e,r),l.fromBufferAttribute(n,r),o[a]=0===a?0:o[a-1],o[a+1]=o[a]+s.distanceTo(l);const i=new r.$TI(o,2,1);return t.setAttribute("instanceDistanceStart",new r.kB5(i,1,0)),t.setAttribute("instanceDistanceEnd",new r.kB5(i,1,1)),this}raycast(t,e){const n=this.material.worldUnits,o=t.camera;null!==o||n||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');const i=void 0!==t.params.Line2&&t.params.Line2.threshold||0;b=t.ray;const a=this.matrixWorld,s=this.geometry,l=this.material;let v,x;if(_=l.linewidth+i,null===s.boundingSphere&&s.computeBoundingSphere(),y.copy(s.boundingSphere).applyMatrix4(a),n)v=.5*_;else{v=w(o,Math.max(o.near,y.distanceToPoint(b.origin)),l.resolution)}if(y.radius+=v,!1!==b.intersectsSphere(y)){if(null===s.boundingBox&&s.computeBoundingBox(),g.copy(s.boundingBox).applyMatrix4(a),n)x=.5*_;else{x=w(o,Math.max(o.near,g.distanceToPoint(b.origin)),l.resolution)}g.expandByScalar(x),!1!==b.intersectsBox(g)&&(n?function(t,e){const n=t.matrixWorld,o=t.geometry,i=o.attributes.instanceStart,a=o.attributes.instanceEnd;for(let s=0,l=Math.min(o.instanceCount,i.count);s<l;s++){d.start.fromBufferAttribute(i,s),d.end.fromBufferAttribute(a,s),d.applyMatrix4(n);const o=new r.Pa4,l=new r.Pa4;b.distanceSqToSegment(d.start,d.end,l,o),l.distanceTo(o)<.5*_&&e.push({point:l,pointOnLine:o,distance:b.origin.distanceTo(l),object:t,face:null,faceIndex:s,uv:null,uv1:null})}}(this,e):function(t,e,n){const o=e.projectionMatrix,i=t.material.resolution,a=t.matrixWorld,s=t.geometry,l=s.attributes.instanceStart,g=s.attributes.instanceEnd,y=Math.min(s.instanceCount,l.count),v=-e.near;b.at(1,h),h.w=1,h.applyMatrix4(e.matrixWorldInverse),h.applyMatrix4(o),h.multiplyScalar(1/h.w),h.x*=i.x/2,h.y*=i.y/2,h.z=0,f.copy(h),p.multiplyMatrices(e.matrixWorldInverse,a);for(let h=0,w=y;h<w;h++){if(u.fromBufferAttribute(l,h),c.fromBufferAttribute(g,h),u.w=1,c.w=1,u.applyMatrix4(p),c.applyMatrix4(p),u.z>v&&c.z>v)continue;if(u.z>v){const t=u.z-c.z,e=(u.z-v)/t;u.lerp(c,e)}else if(c.z>
1v){const t=c.z-u.z,e=(c.z-v)/t;c.lerp(u,e)}u.applyMatrix4(o),c.applyMatrix4(o),u.multiplyScalar(1/u.w),c.multiplyScalar(1/c.w),u.x*=i.x/2,u.y*=i.y/2,c.x*=i.x/2,c.y*=i.y/2,d.start.copy(u),d.start.z=0,d.end.copy(c),d.end.z=0;const e=d.closestPointToPointParameter(f,!0);d.at(e,m);const s=r.M8C.lerp(u.z,c.z,e),y=s>=-1&&s<=1,w=f.distanceTo(m)<.5*_;if(y&&w){d.start.fromBufferAttribute(l,h),d.end.fromBufferAttribute(g,h),d.start.applyMatrix4(a),d.end.applyMatrix4(a);const e=new r.Pa4,o=new r.Pa4;b.distanceSqToSegment(d.start,d.end,o,e),n.push({point:o,pointOnLine:e,distance:b.origin.distanceTo(o),object:t,face:null,faceIndex:h,uv:null,uv1:null})}}}(this,o,e))}}onBeforeRender(t){const e=this.material.uniforms;e&&e.resolution&&(t.getViewport(a),this.material.uniforms.resolution.value.set(a.z,a.w))}}var S=n(59823);class P extends x{constructor(t=new S.L,e=new i.Y({color:16777215*Math.random()})){super(t,e),this.isLine2=!0,this.type="Line2"}}},59823:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});var r=n(98671);class o extends r.z{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(t){const 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){const 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){const 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){const e=t.geometry;return this.setPositions(e.attributes.position.array),this}}},71911:function(t,e,n){"use strict";n.d(e,{Y:function(){return i}});var r=n(99477),o=n(74250);r.rBU.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new o.FM8(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},r.Vj0.line={uniforms:o.rDY.merge([r.rBU.common,r.rBU.fog,r.rBU
vendor: 6,931 bytes, line 1
1.line]),vertexShader:"\n\t\t#include <common>\n\t\t#include <color_pars_vertex>\n\t\t#include <fog_pars_vertex>\n\t\t#include <logdepthbuf_pars_vertex>\n\t\t#include <clipping_planes_pars_vertex>\n\n\t\tuniform float linewidth;\n\t\tuniform vec2 resolution;\n\n\t\tattribute vec3 instanceStart;\n\t\tattribute vec3 instanceEnd;\n\n\t\tattribute vec3 instanceColorStart;\n\t\tattribute vec3 instanceColorEnd;\n\n\t\t#ifdef WORLD_UNITS\n\n\t\t\tvarying vec4 worldPos;\n\t\t\tvarying vec3 worldStart;\n\t\t\tvarying vec3 worldEnd;\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvarying vec2 vUv;\n\n\t\t\t#endif\n\n\t\t#else\n\n\t\t\tvarying vec2 vUv;\n\n\t\t#endif\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashScale;\n\t\t\tattribute float instanceDistanceStart;\n\t\t\tattribute float instanceDistanceEnd;\n\t\t\tvarying float vLineDistance;\n\n\t\t#endif\n\n\t\tvoid trimSegment( const in vec4 start, inout vec4 end ) {\n\n\t\t\t// trim end segment so it terminates between the camera plane and the near plane\n\n\t\t\t// conservative estimate of the near plane\n\t\t\tfloat a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n\t\t\tfloat b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n\t\t\tfloat nearEstimate = - 0.5 * b / a;\n\n\t\t\tfloat alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n\t\t\tend.xyz = mix( start.xyz, end.xyz, alpha );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#ifdef USE_COLOR\n\n\t\t\t\tvColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n\t\t\t#endif\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\t\t\t\tvUv = uv;\n\n\t\t\t#endif\n\n\t\t\tfloat aspect = resolution.x / resolution.y;\n\n\t\t\t// camera space\n\t\t\tvec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n\t\t\tvec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\tworldStart = start.xyz;\n\t\t\t\tworldEnd = end.xyz;\n\n\t\t\t#else\n\n\t\t\t\tvUv = uv;\n\n\t\t\t#endif\n\n\t\t\t// special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n\t\t\t// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n\t\t\t// but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n\t\t\t// perhaps there is a more elegant solution -- WestLangley\n\n\t\t\tbool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n\t\t\tif ( perspective ) {\n\n\t\t\t\tif ( start.z < 0.0 && end.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( start, end );\n\n\t\t\t\t} else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n\t\t\t\t\ttrimSegment( end, start );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// clip space\n\t\t\tvec4 clipStart = projectionMatrix * start;\n\t\t\tvec4 clipEnd = projectionMatrix * end;\n\n\t\t\t// ndc space\n\t\t\tvec3 ndcStart = clipStart.xyz / clipStart.w;\n\t\t\tvec3 ndcEnd = clipEnd.xyz / clipEnd.w;\n\n\t\t\t// direction\n\t\t\tvec2 dir = ndcEnd.xy - ndcStart.xy;\n\n\t\t\t// account for clip-space aspect ratio\n\t\t\tdir.x *= aspect;\n\t\t\tdir = normalize( dir );\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\tvec3 worldDir = normalize( end.xyz - start.xyz );\n\t\t\t\tvec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) );\n\t\t\t\tvec3 worldUp = normalize( cross( worldDir, tmpFwd ) );\n\t\t\t\tvec3 worldFwd = cross( worldDir, worldUp );\n\t\t\t\tworldPos = position.y < 0.5 ? start: end;\n\n\t\t\t\t// height offset\n\t\t\t\tfloat hw = linewidth * 0.5;\n\t\t\t\tworldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp;\n\n\t\t\t\t// don't extend the line if we're rendering dashes because we\n\t\t\t\t// won't be rendering the endcaps\n\t\t\t\t#ifndef USE_DASH\n\n\t\t\t\t\t// cap extension\n\t\t\t\t\tworldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir;\n\n\t\t\t\t\t// add width to the box\n\t\t\t\t\tworldPos.xyz += worldFwd * hw;\n\n\t\t\t\t\t// endcaps\n\t\t\t\t\tif ( position.y > 1.0 || position.y < 0.0 ) {\n\n\t\t\t\t\t\tworldPos.xyz -= worldFwd * 2.0 * hw;\n\n\t\t\t\t\t}\n\n\t\t\t\t#endif\n\n\t\t\t\t// project the worldpos\n\t\t\t\tvec4 clip = projectionMatrix * worldPos;\n\n\t\t\t\t// shift the depth of the projected points so the line\n\t\t\t\t// segments overlap neatly\n\t\t\t\tvec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;\n\t\t\t\tclip.z = clipPose.z * clip.w;\n\n\t\t\t#else\n\n\t\t\t\tvec2 offset = vec2( dir.y, - dir.x );\n\t\t\t\t// undo aspect ratio adjustment\n\t\t\t\tdir.x /= aspect;\n\t\t\t\toffset.x /= aspect;\n\n\t\t\t\t// sign flip\n\t\t\t\tif ( position.x < 0.0 ) offset *= - 1.0;\n\n\t\t\t\t// endcaps\n\t\t\t\tif ( position.y < 0.0 ) {\n\n\t\t\t\t\toffset += - dir;\n\n\t\t\t\t} else if ( position.y > 1.0 ) {\n\n\t\t\t\t\toffset += dir;\n\n\t\t\t\t}\n\n\t\t\t\t// adjust for linewidth\n\t\t\t\toffset *= linewidth;\n\n\t\t\t\t// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n\t\t\t\toffset /= resolution.y;\n\n\t\t\t\t// select end\n\t\t\t\tvec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n\t\t\t\t// back to clip space\n\t\t\t\toffset *= clip.w;\n\n\t\t\t\tclip.xy += offset;\n\n\t\t\t#endif\n\n\t\t\tgl_Position = clip;\n\n\t\t\tvec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n\t\t\t#include <logdepthbuf_vertex>\n\t\t\t#include <clipping_planes_vertex>\n\t\t\t#include <fog_vertex>\n\n\t\t}\n\t\t",fragmentShader:"\n\t\tuniform vec3 diffuse;\n\t\tuniform float opacity;\n\t\tuniform float linewidth;\n\n\t\t#ifdef USE_DASH\n\n\t\t\tuniform float dashOffset;\n\t\t\tuniform float dashSize;\n\t\t\tuniform float gapSize;\n\n\t\t#endif\n\n\t\tvarying float vLineDistance;\n\n\t\t#ifdef WORLD_UNITS\n\n\t\t\tvarying vec4 worldPos;\n\t\t\tvarying vec3 worldStart;\n\t\t\tvarying vec3 worldEnd;\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tvarying vec2 vUv;\n\n\t\t\t#endif\n\n\t\t#else\n\n\t\t\tvarying vec2 vUv;\n\n\t\t#endif\n\n\t\t#include <common>\n\t\t#include <color_pars_fragment>\n\t\t#include <fog_pars_fragment>\n\t\t#include <logdepthbuf_pars_fragment>\n\t\t#include <clipping_planes_pars_fragment>\n\n\t\tvec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {\n\n\t\t\tfloat mua;\n\t\t\tfloat mub;\n\n\t\t\tvec3 p13 = p1 - p3;\n\t\t\tvec3 p43 = p4 - p3;\n\n\t\t\tvec3 p21 = p2 - p1;\n\n\t\t\tfloat d1343 = dot( p13, p43 );\n\t\t\tfloat d4321 = dot( p43, p21 );\n\t\t\tfloat d1321 = dot( p13, p21 );\n\t\t\tfloat d4343 = dot( p43, p43 );\n\t\t\tfloat d2121 = dot( p21, p21 );\n\n\t\t\tfloat denom = d2121 * d4343 - d4321 * d4321;\n\n\t\t\tfloat numer = d1343 * d4321 - d1321 * d4343;\n\n\t\t\tmua = numer / denom;\n\t\t\tmua = clamp( mua, 0.0, 1.0 );\n\t\t\tmub = ( d1343 + d4321 * ( mua ) ) / d4343;\n\t\t\tmub = clamp( mub, 0.0, 1.0 );\n\n\t\t\treturn vec2( mua, mub );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t
1#include <clipping_planes_fragment>\n\n\t\t\t#ifdef USE_DASH\n\n\t\t\t\tif ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n\t\t\t\tif ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n\t\t\t#endif\n\n\t\t\tfloat alpha = opacity;\n\n\t\t\t#ifdef WORLD_UNITS\n\n\t\t\t\t// Find the closest points on the view ray and the line segment\n\t\t\t\tvec3 rayEnd = normalize( worldPos.xyz ) * 1e5;\n\t\t\t\tvec3 lineDir = worldEnd - worldStart;\n\t\t\t\tvec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );\n\n\t\t\t\tvec3 p1 = worldStart + lineDir * params.x;\n\t\t\t\tvec3 p2 = rayEnd * params.y;\n\t\t\t\tvec3 delta = p1 - p2;\n\t\t\t\tfloat len = length( delta );\n\t\t\t\tfloat norm = len / linewidth;\n\n\t\t\t\t#ifndef USE_DASH\n\n\t\t\t\t\t#ifdef USE_ALPHA_TO_COVERAGE\n\n\t\t\t\t\t\tfloat dnorm = fwidth( norm );\n\t\t\t\t\t\talpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );\n\n\t\t\t\t\t#else\n\n\t\t\t\t\t\tif ( norm > 0.5 ) {\n\n\t\t\t\t\t\t\tdiscard;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t#endif\n\n\t\t\t\t#endif\n\n\t\t\t#else\n\n\t\t\t\t#ifdef USE_ALPHA_TO_COVERAGE\n\n\t\t\t\t\t// artifacts appear on some hardware if a derivative is taken within a conditional\n\t\t\t\t\tfloat a = vUv.x;\n\t\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\t\tfloat len2 = a * a + b * b;\n\t\t\t\t\tfloat dlen = fwidth( len2 );\n\n\t\t\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\t\t\talpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );\n\n\t\t\t\t\t}\n\n\t\t\t\t#else\n\n\t\t\t\t\tif ( abs( vUv.y ) > 1.0 ) {\n\n\t\t\t\t\t\tfloat a = vUv.x;\n\t\t\t\t\t\tfloat b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n\t\t\t\t\t\tfloat len2 = a * a + b * b;\n\n\t\t\t\t\t\tif ( len2 > 1.0 ) discard;\n\n\t\t\t\t\t}\n\n\t\t\t\t#endif\n\n\t\t\t#endif\n\n\t\t\tvec4 diffuseColor = vec4( diffuse, alpha );\n\n\t\t\t#include <logdepthbuf_fragment>\n\t\t\t#include <color_fragment>\n\n\t\t\tgl_FragColor = vec4( diffuseColor.rgb, alpha );\n\n\t\t\t#include <tonemapping_fragment>\n\t\t\t#include <colorspace_fragment>\n\t\t\t#include <fog_fragment>\n\t\t\t#include <premultiplied_alpha_fragment>\n\n\t\t}\n\t\t"};class i extends o.jyz{constructor(t){super({type:"LineMaterial",uniforms:o.rDY.clone(r.Vj0.line.uniforms),vertexShader:r.Vj0.line.vertexShader,fragmentShader:r.Vj0.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)}}},98671:function(t,e,n){"use strict";n.d(e,{z:function(){return a}});var r=n(74250);const o=new r.ZzF,i=new r.Pa4;class a extends r.L5s{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.a$l([-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.a$l([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix4(t){const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;
1return 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));const n=new r.$TI(e,6,1);return this.setAttribute("instanceStart",new r.kB5(n,3,0)),this.setAttribute("instanceEnd",new r.kB5(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));const n=new r.$TI(e,6,1);return this.setAttribute("instanceColorStart",new r.kB5(n,3,0)),this.setAttribute("instanceColorEnd",new r.kB5(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.Uk6(t.geometry)),this}fromLineSegments(t){const e=t.geometry;return this.setPositions(e.attributes.position.array),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new r.ZzF);const t=this.attributes.instanceStart,e=this.attributes.instanceEnd;void 0!==t&&void 0!==e&&(this.boundingBox.setFromBufferAttribute(t),o.setFromBufferAttribute(e),this.boundingBox.union(o))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new r.aLr),null===this.boundingBox&&this.computeBoundingBox();const t=this.attributes.instanceStart,e=this.attributes.instanceEnd;if(void 0!==t&&void 0!==e){const n=this.boundingSphere.center;this.boundingBox.getCenter(n);let r=0;for(let o=0,a=t.count;o<a;o++)i.fromBufferAttribute(t,o),r=Math.max(r,n.distanceToSquared(i)),i.fromBufferAttribute(e,o),r=Math.max(r,n.distanceToSquared(i));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(){}}},97157:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(74250);class o{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,e=100){const n=[],r=function(t,e,n){const r=Array.from(t),o=e/n.resolution,a=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*o,s=[];let l=0,u=0;for(let c=0;c<r.length;c++){const t=r[c];if("\n"===t)l=0,u-=a;else{const e=i(t,o,l,u,n);l+=e.offsetX,s.push(e.path)}}return s}(t,e,this.data);for(let o=0,i=r.length;o<i;o++)n.push(...r[o].toShapes());return n}}function i(t,e,n,o,i){const a=i.glyphs[t]||i.glyphs["?"];if(!a)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+i.familyName+".");const s=new r.T_1;let l,u,c,h,f,p,d,m;if(a.o){const t=a._cachedOutline||(a._cachedOutline=a.o.split(" "));for(let r=0,i=t.length;r<i;){switch(t[r++]){case"m":l=t[r++]*e+n,u=t[r++]*e+o,s.moveTo(l,u);break;case"l":l=t[r++]*e+n,u=t[r++]*e+o,s.lineTo(l,u);break;case"q":c=t[r++]*e+n,h=t[r++]*e+o,f=t[r++]*e+n,p=t[r++]*e+o,s.quadraticCurveTo(f,p,c,h);break;case"b":c=t[r++]*e+n,h=t[r++]*e+o,f=t[r++]*e+n,p=t[r++]*e+o,d=t[r++]*e+n,m=t[r++]*e+o,s.bezierCurveTo(f,p,d,m,c,h)}}}return{offsetX:a.ha*e,path:s}}},81764:function(t,e,n){"use strict";n.d(e,{M:function(){return c},j:function(){return o}});var r=n(74250);class o extends r.Tme{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.FM8(.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}}const i=new r.Pa4,a=new r.yGw,s=new r.yGw,l=new r.Pa4,u=new r.Pa4;class c{constructor(t={}){const e=this;let n,r,o,c;const h={objects:new WeakMap},f=void 0!==t.element?t.element:document.createElement("div");function p(t){t.isCSS2DObject&&(t.element.style.display="none");for(let e=0,n=t.children.length;e<n;e++)p(t.children[e])}function d(t,n,r){if(!1!==t.visible){if(t.isCSS2DObject){i.setFromMatrixPosition(t.matrixWorld),i.applyMatrix4(s);const a=i.z>=-1&&i.z<=1&&!0===t.layers.test(r.layers),l=t.element;l.style.display=!0===a?"":"none",!0===a&&(t.onBeforeRender(e,n,r),l.style.transform="translate("+-100*t.center.x+"%,"+-100*t.center.y+"%)translate("+(i.x*o+o)+"px,"+(-i.y*c+c)+"px)",l.parentNode!==f&&f.appendChild(l),t.onAfterRender(e,n,r));const u={distanceToCameraSquared:m(r,t)};h.objects.set(t,u)}for(let e=0,o=t.children.length;e<o;e++)d(t.children[e],n,r)}else p(t)}function m(t,e){return l.setFromMatrixPosition(t.matrixWorld),u.setFromMatrixPosition(e.matrixWorld),l.distanceToSquared(u)}
1f.style.overflow="hidden",this.domElement=f,this.getSize=function(){return{width:n,height:r}},this.render=function(t,e){!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),null===e.parent&&!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),a.copy(e.matrixWorldInverse),s.multiplyMatrices(e.projectionMatrix,a),d(t,t,e),function(t){const e=function(t){const e=[];return t.traverseVisible((function(t){t.isCSS2DObject&&e.push(t)})),e}(t).sort((function(t,e){if(t.renderOrder!==e.renderOrder)return e.renderOrder-t.renderOrder;return h.objects.get(t).distanceToCameraSquared-h.objects.get(e).distanceToCameraSquared})),n=e.length;for(let r=0,o=e.length;r<o;r++)e[r].element.style.zIndex=n-r}(t)},this.setSize=function(t,e){n=t,r=e,o=n/2,c=r/2,f.style.width=t+"px",f.style.height=e+"px"}}}},40140:function(t,e,n){"use strict";n.r(e),n.d(e,{computeMikkTSpaceTangents:function(){return o},computeMorphedAttributes:function(){return d},deepCloneAttribute:function(){return s},deinterleaveAttribute:function(){return u},deinterleaveGeometry:function(){return c},estimateBytesUsed:function(){return h},interleaveAttributes:function(){return l},mergeAttributes:function(){return a},mergeGeometries:function(){return i},mergeGroups:function(){return m},mergeVertices:function(){return f},toCreasedNormals:function(){return g},toTrianglesDrawMode:function(){return p}});var r=n(74250);function o(t,e,n=!0){if(!e||!e.isReady)throw new Error("BufferGeometryUtils: Initialized MikkTSpace library required.");if(!t.hasAttribute("position")||!t.hasAttribute("normal")||!t.hasAttribute("uv"))throw new Error('BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.');function o(t){if(t.normalized||t.isInterleavedBufferAttribute){const 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)}const i=t.index?t.toNonIndexed():t,a=e.generateTangents(o(i.attributes.position),o(i.attributes.normal),o(i.attributes.uv));if(n)for(let r=3;r<a.length;r+=4)a[r]*=-1;return i.setAttribute("tangent",new r.TlE(a,4)),t!==i&&t.copy(i),t}function i(t,e=!1){const n=null!==t[0].index,o=new Set(Object.keys(t[0].attributes)),i=new Set(Object.keys(t[0].morphAttributes)),s={},l={},u=t[0].morphTargetsRelative,c=new r.u9r;let h=0;for(let r=0;r<t.length;++r){const a=t[r];let f=0;if(n!==(null!==a.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(const t in a.attributes){if(!o.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(a.attributes[t]),f++}if(f!==o.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(u!==a.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(const t in a.morphAttributes){if(!i.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(a.morphAttributes[t])}if(e){let t;if(n)t=a.index.count;else{if(void 0===a.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=a.attributes.position.count}c.addGroup(h,t,r),h+=t}}if(n){let e=0;const n=[];for(let r=0;r<t.length;++r){const o=t[r].index;for(let t=0;t<o.count;++t)n.push(o.getX(t)+e);e+=t[r].attributes.position.count}c.setIndex(n)}for(const r in s){const t=a(s[r]);if(!t)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+r+" attribute."),null;c.setAttribute(r,t)}for(const r in l){const t=l[r][0].length;if(0===t)break;c.morphAttributes=c.morphAttributes||{},c.morphAttributes[r]=[];for(let e=0;e<t;++e){const t=[];for(let o=0;o<l[r].length;++o)t.push(l[r][o][e]);const n=a(t);if(!n)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+r+" morphAttribute."),null;c.morphAttributes[r].push(n)}}return c}function a(t){let e,n,o,i=-1,a=0;for(let r=0;r<t.length;++r){const s=t[r];
vendor: 5,182 bytes, line 1
1if(void 0===e&&(e=s.array.constructor),e!==s.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=s.itemSize),n!==s.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===o&&(o=s.normalized),o!==s.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(-1===i&&(i=s.gpuType),i!==s.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;a+=s.count*n}const s=new e(a),l=new r.TlE(s,n,o);let u=0;for(let r=0;r<t.length;++r){const e=t[r];if(e.isInterleavedBufferAttribute){const t=u/n;for(let r=0,o=e.count;r<o;r++)for(let i=0;i<n;i++){const n=e.getComponent(r,i);l.setComponent(r+t,i,n)}}else s.set(e.array,u);u+=e.count*n}return void 0!==i&&(l.gpuType=i),l}function s(t){return t.isInstancedInterleavedBufferAttribute||t.isInterleavedBufferAttribute?u(t):t.isInstancedBufferAttribute?(new r.lb7).copy(t):(new r.TlE).copy(t)}function l(t){let e,n=0,o=0;for(let r=0,c=t.length;r<c;++r){const i=t[r];if(void 0===e&&(e=i.array.constructor),e!==i.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=i.array.length,o+=i.itemSize}const i=new r.vpT(new e(n),o);let a=0;const s=[],l=["getX","getY","getZ","getW"],u=["setX","setY","setZ","setW"];for(let c=0,h=t.length;c<h;c++){const e=t[c],n=e.itemSize,o=e.count,h=new r.kB5(i,n,a,e.normalized);s.push(h),a+=n;for(let t=0;t<o;t++)for(let r=0;r<n;r++)h[u[r]](t,e[l[r]](t))}return s}function u(t){const e=t.data.array.constructor,n=t.count,o=t.itemSize,i=t.normalized,a=new e(n*o);let s;s=t.isInstancedInterleavedBufferAttribute?new r.lb7(a,o,i,t.meshPerAttribute):new r.TlE(a,o,i);for(let r=0;r<n;r++)s.setX(r,t.getX(r)),o>=2&&s.setY(r,t.getY(r)),o>=3&&s.setZ(r,t.getZ(r)),o>=4&&s.setW(r,t.getW(r));return s}function c(t){const e=t.attributes,n=t.morphTargets,r=new Map;for(const o in e){const t=e[o];t.isInterleavedBufferAttribute&&(r.has(t)||r.set(t,u(t)),e[o]=r.get(t))}for(const o in n){const t=n[o];t.isInterleavedBufferAttribute&&(r.has(t)||r.set(t,u(t)),n[o]=r.get(t))}}function h(t){let e=0;for(const r in t.attributes){const n=t.getAttribute(r);e+=n.count*n.itemSize*n.array.BYTES_PER_ELEMENT}const n=t.getIndex();return e+=n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0,e}function f(t,e=1e-4){e=Math.max(e,Number.EPSILON);const n={},r=t.getIndex(),o=t.getAttribute("position"),i=r?r.count:o.count;let a=0;const s=Object.keys(t.attributes),l={},u={},c=[],h=["getX","getY","getZ","getW"],f=["setX","setY","setZ","setW"];for(let v=0,b=s.length;v<b;v++){const e=s[v],n=t.attributes[e];l[e]=new n.constructor(new n.array.constructor(n.count*n.itemSize),n.itemSize,n.normalized);const r=t.morphAttributes[e];r&&(u[e]||(u[e]=[]),r.forEach(((t,n)=>{const r=new t.array.constructor(t.count*t.itemSize);u[e][n]=new t.constructor(r,t.itemSize,t.normalized)})))}const p=.5*e,d=Math.log10(1/e),m=Math.pow(10,d),g=p*m;for(let v=0;v<i;v++){const e=r?r.getX(v):v;let o="";for(let n=0,r=s.length;n<r;n++){const r=s[n],i=t.getAttribute(r),a=i.itemSize;for(let t=0;t<a;t++)o+=~~(i[h[t]](e)*m+g)+","}if(o in n)c.push(n[o]);else{for(let n=0,r=s.length;n<r;n++){const r=s[n],o=t.getAttribute(r),i=t.morphAttributes[r],c=o.itemSize,p=l[r],d=u[r];for(let t=0;t<c;t++){const n=h[t],r=f[t];if(p[r](a,o[n](e)),i)for(let t=0,o=i.length;t<o;t++)d[t][r](a,i[t][n](e))}}n[o]=a,c.push(a),a++}}const y=t.clone();for(const v in t.attributes){const t=l[v];if(y.setAttribute(v,new t.constructor(t.array.slice(0,a*t.itemSize),t.itemSize,t.normalized)),v in u)for(let e=0;e<u[v].length;e++){const t=u[v][e];y.morphAttributes[v][e]=new t.constructor(t.array.slice(0,a*t.itemSize),t.itemSize,t.normalized)}}return y.setIndex(c),y}function p(t,e){if(e===r.WwZ)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e===r.z$h||e===r.UlW){let n=t.getIndex();if(null===n){const 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()}const o=n.count-2,i=[];if(e===r.z$h)for(let t=1;t<=o;t++)i.push(n.getX(0)),i.push(n.getX(t)),i.push(n.getX(t+1));else for(let t=0;t<o;t++)t%2===0?(i.push(n.getX(t)),i.push(n.getX(t+1)),i.push(n.getX(t+2))):(i.push(n.getX(t+2)),i.push(n.getX(t+1)),i.push(n.getX(t)));i.length/3!==o&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const a=t.clone();return a.setIndex(i),a.clearGroups(),a}return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t}function d(t){const e=new r.Pa4,n=new r.Pa4,o=new r.Pa4,i=new r.Pa4,a=new r.Pa4,s=new r.Pa4,l=ne
vendor: 13,468 bytes, line 1
1w r.Pa4,u=new r.Pa4,c=new r.Pa4;function h(t,r,h,f,p,d,m,g){e.fromBufferAttribute(r,p),n.fromBufferAttribute(r,d),o.fromBufferAttribute(r,m);const y=t.morphTargetInfluences;if(h&&y){l.set(0,0,0),u.set(0,0,0),c.set(0,0,0);for(let t=0,r=h.length;t<r;t++){const r=y[t],g=h[t];0!==r&&(i.fromBufferAttribute(g,p),a.fromBufferAttribute(g,d),s.fromBufferAttribute(g,m),f?(l.addScaledVector(i,r),u.addScaledVector(a,r),c.addScaledVector(s,r)):(l.addScaledVector(i.sub(e),r),u.addScaledVector(a.sub(n),r),c.addScaledVector(s.sub(o),r)))}e.add(l),n.add(u),o.add(c)}t.isSkinnedMesh&&(t.applyBoneTransform(p,e),t.applyBoneTransform(d,n),t.applyBoneTransform(m,o)),g[3*p+0]=e.x,g[3*p+1]=e.y,g[3*p+2]=e.z,g[3*d+0]=n.x,g[3*d+1]=n.y,g[3*d+2]=n.z,g[3*m+0]=o.x,g[3*m+1]=o.y,g[3*m+2]=o.z}const f=t.geometry,p=t.material;let d,m,g;const y=f.index,v=f.attributes.position,b=f.morphAttributes.position,_=f.morphTargetsRelative,w=f.attributes.normal,x=f.morphAttributes.position,S=f.groups,P=f.drawRange;let H,M,E,T,O,k,A;const C=new Float32Array(v.count*v.itemSize),j=new Float32Array(w.count*w.itemSize);if(null!==y)if(Array.isArray(p))for(H=0,E=S.length;H<E;H++)for(O=S[H],k=Math.max(O.start,P.start),A=Math.min(O.start+O.count,P.start+P.count),M=k,T=A;M<T;M+=3)d=y.getX(M),m=y.getX(M+1),g=y.getX(M+2),h(t,v,b,_,d,m,g,C),h(t,w,x,_,d,m,g,j);else for(k=Math.max(0,P.start),A=Math.min(y.count,P.start+P.count),H=k,E=A;H<E;H+=3)d=y.getX(H),m=y.getX(H+1),g=y.getX(H+2),h(t,v,b,_,d,m,g,C),h(t,w,x,_,d,m,g,j);else if(Array.isArray(p))for(H=0,E=S.length;H<E;H++)for(O=S[H],k=Math.max(O.start,P.start),A=Math.min(O.start+O.count,P.start+P.count),M=k,T=A;M<T;M+=3)d=M,m=M+1,g=M+2,h(t,v,b,_,d,m,g,C),h(t,w,x,_,d,m,g,j);else for(k=Math.max(0,P.start),A=Math.min(v.count,P.start+P.count),H=k,E=A;H<E;H+=3)d=H,m=H+1,g=H+2,h(t,v,b,_,d,m,g,C),h(t,w,x,_,d,m,g,j);return{positionAttribute:v,normalAttribute:w,morphedPositionAttribute:new r.a$l(C,3),morphedNormalAttribute:new r.a$l(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()){const e=t.getAttribute("position"),n=[];for(let t=0;t<e.count;t+=3)n.push(t,t+1,t+2);t.setIndex(n)}const n=t.getIndex(),r=[];for(let a=0;a<e.length;a++){const t=e[a],o=t.start,i=o+t.count;for(let e=o;e<i;e++)r.push(n.getX(e))}t.dispose(),t.setIndex(r);let o=0;for(let a=0;a<e.length;a++){const t=e[a];t.start=o,o+=t.count}let i=e[0];t.groups=[i];for(let a=1;a<e.length;a++){const n=e[a];i.materialIndex===n.materialIndex?i.count+=n.count:(i=n,t.groups.push(i))}return t}function g(t,e=Math.PI/3){const n=Math.cos(e),o=100*(1+1e-10),i=[new r.Pa4,new r.Pa4,new r.Pa4],a=new r.Pa4,s=new r.Pa4,l=new r.Pa4,u=new r.Pa4;function c(t){return`${~~(t.x*o)},${~~(t.y*o)},${~~(t.z*o)}`}const h=t.index?t.toNonIndexed():t,f=h.attributes.position,p={};for(let g=0,y=f.count/3;g<y;g++){const t=3*g,e=i[0].fromBufferAttribute(f,t+0),n=i[1].fromBufferAttribute(f,t+1),o=i[2].fromBufferAttribute(f,t+2);a.subVectors(o,n),s.subVectors(e,n);const l=(new r.Pa4).crossVectors(a,s).normalize();for(let r=0;r<3;r++){const t=c(i[r]);t in p||(p[t]=[]),p[t].push(l)}}const d=new Float32Array(3*f.count),m=new r.TlE(d,3,!1);for(let r=0,g=f.count/3;r<g;r++){const t=3*r,e=i[0].fromBufferAttribute(f,t+0),o=i[1].fromBufferAttribute(f,t+1),h=i[2].fromBufferAttribute(f,t+2);a.subVectors(h,o),s.subVectors(e,o),l.crossVectors(a,s).normalize();for(let r=0;r<3;r++){const e=p[c(i[r])];u.set(0,0,0);for(let t=0,r=e.length;t<r;t++){const r=e[t];l.dot(r)>n&&u.add(r)}u.normalize(),m.setXYZ(t+r,u.x,u.y,u.z)}}return h.setAttribute("normal",m),h}},97234:function(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},r(t)}n.d(e,{Z:function(){return a}});var o=/^\s+/,i=/\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=function(t){var e={r:0,g:0,b:0},n=1,a=null,s=null,l=null,u=!1,c=!1;"string"==typeof t&&(t=function(t){t=t.replace(o,"").replace(i,"").toLowerCase();var e,n=!1;if(S[t])t=S[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:T(e[1]),g:T(e[2]),b:T(e[3]),a:C(e[4]),format:n?"name":"hex8"};if(e=j.hex6.exec(t))return{r:T(e[1]),g:T(e[2]),b:T(e[3]),format:n?"name":"hex"};if(e=j.hex4.exec(t))return{r:T(e[1]+""+e[1]),g:T(e[2]+""+e[2]),b:T(e[3]+""+e[3]),a:C(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=j.hex3.exec(t))return{r:T(e[1]+""+e[1]),g:T(e[2]+""+e[2]),b:T(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==r(t)&&(R(t.r)&&R(t.g)&&R(t.b)?(h=t.r,f=t.g,p=t.b,e={r:255*M(h,255),g:255*M(f,255),b:255*M(p,255)},u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):R(t.h)&&R(t.s)&&R(t.v)?(a=k(t.s),s=k(t.v),e=function(t,e,n){t=6*M(t,360),e=M(e,100),n=M(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(t.h,a,s),u=!0,c="hsv"):R(t.h)&&R(t.s)&&R(t.l)&&(a=k(t.s),l=k(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=M(t,360),e=M(e,100),n=M(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,a,l),u=!0,c="hsl"),t.hasOwnProperty("a")&&(n=t.a));var h,f,p;return n=H(n),{ok:u,format:t.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.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=n.ok}function s(t,e,n){t=M(t,255),e=M(e,255),n=M(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function l(t,e,n){t=M(t,255),e=M(e,255),n=M(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function u(t,e,n,r){var o=[O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function c(t,e,n,r){return[O(A(r)),O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16))].join("")}function h(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s-=e/100,n.s=E(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=E(n.s),a(n)}function p(t){return a(t).desaturate(100)}function d(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l+=e/100,n.l=E(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=E(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 new Error("Argument to polyad must be a positive number");for(var n=a(t).toHsl(),r=[a(t)],o=360/e,i=1;i<e;i++)r.push(a({h:(n.h+i*o)%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 w(t,e,n){e=e||6,n=n||30;var r=a(t).toHsl(),o=360/n,i=[a(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(a(r));return i}function x(t,e){e=e||6;for(var n=a(t).toHsv(),r=n.h,o=n.s,i=n.v,s=[],l=1/e;e--;)s.push(a({h:r,s:o,v:i})),i=(i+l)%1;return s}a.prototype={isDark:function(){return this.getBrightness()<128},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,n=r.b/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<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=H(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(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=s(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString: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.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return u(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16)),O(A(r))];if(o&&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[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},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*M(this._r,255))+"%",g:Math.round(100*M(this._g,255))+"%",b:Math.round(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%)":"rgba("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+c(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=a(t);n="#"+c(o._r,o._g,o._b,o._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?("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()):"name"===t&&0===this._a?this.toName():this.toRgbString()},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(d,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(p,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(w,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={};
vendor: 2,665 bytes, line 1
1for(var o in t)t.hasOwnProperty(o)&&(n[o]="a"===o?t[o]:k(t[o]));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(),o=a(e).toRgb(),i=n/100;return a({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+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,o,i=a.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},a.mostReadable=function(t,e,n){var r,o,i,s,l=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var c=0;c<e.length;c++)(r=a.readability(t,e[c]))>u&&(u=r,l=a(e[c]));return a.isReadable(t,l,{level:i,size:s})||!o?l:(n.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],n))};var S=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
10",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"},P=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(S);function H(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function M(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"===typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function E(t){return Math.min(1,Math.max(0,t))}function T(t){return parseInt(t,16)}function O(t){return 1==t.length?"0"+t:""+t}function k(t){return t<=1&&(t=100*t+"%"),t}function A(t){return Math.round(255*parseFloat(t)).toString(16)}function C(t){return T(t)/255}var j=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:new RegExp("rgb"+e),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"
1+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 R(t){return!!j.CSS_UNIT.exec(t)}}}]);

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.