vendor: 4,357 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7826],{59585:function(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(1),i=function(){function t(t,e,n){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===n&&(n=!1),this._minFPS=e,this._maxFPS=t,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=!1,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new r.default,this._onPause=new r.default,this._onTick=new r.default,this._onTickOncePerFrame=new r.default,n||this.resume()}return t.prototype.updateOnce=function(t){t(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},t.prototype.resume=function(){this._isRunning||(this._isRunning=!0,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateOnce())},t.prototype.pause=function(){this._isRunning&&(this._isRunning=!1,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle))},t.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll()},Object.defineProperty(t.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeScale",{get:function(){return this._timeScale},set:function(t){this._timeScale!==t&&(this._timeScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onResume",{get:function(){return this._onResume},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPause",{get:function(){return this._onPause},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTick",{get:function(){return this._onTick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:!0,configurable:!0}),t.prototype.animateOnce=function(){var t=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return t.onFrame()})},t.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval){if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,!0),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval}this._isRunning&&this.animateOnce()},t.prototype.update=function(t,e){void 0===e&&(e=!0),this._currentTick++,this._currentTime+=t,this._tickDeltaTime=t,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),e&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},t.prototype.getTimer=function(){return Date.now()},t}();Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(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];
1this.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}])}])},92703:function(t,e,n){"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(t,e,n){t.exports=n(92703)()},50414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},28250:function(t,e,n){"use strict";n.d(e,{ZA:function(){return a},kX:function(){return c},oY:function(){return i}});var r,i=Object.freeze({Linear:Object.freeze({None:function(t){return t},In:function(t){return t},Out:function(t){return t},InOut:function(t){return t}}),Quadratic:Object.freeze({In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}}),Cubic:Object.freeze({In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}}),Quartic:Object.freeze({In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}}),Quintic:Object.freeze({In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}}),Sinusoidal:Object.freeze({In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}}),Exponential:Object.freeze({In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}}),Circular:Object.freeze({In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}}),Elastic:Object.freeze({In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1}}),Back:Object.freeze({In:function(t){return 1===t?1:t*t*(2.70158*t-1.70158)},Out:function(t){return 0===t?0:--t*t*(2.70158*t+1.70158)+1},InOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)}}),Bounce:Object.freeze({In:function(t){return 1-i.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*i.Bounce.In(2*t):.5*i.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()},a=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,t)}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(e){return t._tweens[e]})},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];null===(t=i._group)||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;n<t.length;n++){var r=t[n];r._group=void 0,delete this._tweens[r.getId()],delete this._tweensAddedDuringUpdate[r.getId()]}},t.prototype.allStopped=function(){return this.getAll().every(function(t){return!t.isPlaying()})},t.prototype.update=function(t,e){void 0===t&&(t=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}(),s={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=s.Utils.Linear;return e<0?o(t[0],t[1],r):e>1?o(t[n],t[n-1],n-r):o(t[i],t[i+1>n?n:i+1],r-i)},Bezier:function(t,e){for(var n=0,r=t.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-e,r-a)*i(e,a)*t[a]*o(r,a);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=s.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(r=n*(1+e))),o(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],r-i)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-r)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],r-n)-t[n]):o(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],r-i)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=s.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:(r=[1],function(t){var e=1;if(r[t])return r[t];for(var n=t;n>1;n--)e*=n;return r[t]=e,e}),CatmullRom:function(t,e,n,r,i){var o=(n-t)*.5,a=(r-e)*.5,s=i*i;return i*s*(2*e-2*n+o+a)+(-3*e+3*n-2*o-a)*s+o*i+e}}},l=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),u=new a,c=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=i.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=l.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=u,u.add(this))}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.getDuration=function(){return this._duration},t.prototype.to=function(t,e){if(void 0===e&&(e=1e3),this._isPlaying)throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=e<0?0:e,this},t.prototype.duration=function(t){return void 0===t&&(t=1e3),this._duration=t<0?0:t,this},t.prototype.dynamic=function(t){return void 0===t&&(t=!1),this._isDynamic=t,this},t.prototype.start=function(t,e){if(void 0===t&&(t=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,i){for(var o in n){var a=t[o],s=Array.isArray(a),l=s?"array":typeof a,u=!s&&Array.isArray(n[o]);if("undefined"!==l&&"function"!==l){if(u){var c=n[o];if(0===c.length)continue;for(var h=[a],f=0,p=c.length;f<p;f+=1){var d=this._handleRelativeValue(a,c[f]);if(isNaN(d)){u=!1,console.warn("Found invalid interpolation list. Skipping.");break}h.push(d)}u&&(n[o]=h)}if(("object"===l||s)&&a&&!u){for(var m in e[o]=s?[]:{},a)e[o][m]=a[m];r[o]=s?[]:{};var c=n[o];if(!this._isDynamic){var g={};for(var m in c)g[m]=c[m];n[o]=c=g}this._setupProperties(a,e[o],c,r[o],i)}else(void 0===e[o]||i)&&(e[o]=a),s||(e[o]*=1),u?r[o]=n[o].slice().reverse():r[o]=e[o]||0}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying&&(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object)),this},t.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},t.prototype.pause=function(t){return void 0===t&&(t=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},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return t?t.add(this):console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this},t.prototype.remove=function(){var t;return null===(t=this._group)||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=i.Linear.None),this._easingFunction=t,this},t.prototype.interpolation=function(t){return void 0===t&&(t=s.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||s>u)return 1;var t=Math.trunc(s/l),e=Math.min((s-t*l)/a._duration,1);return 0===e&&s===a._duration?1:e}(),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];this._yoyo&&(this._reversed=!this._reversed),this._startTime+=l*f,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1}else{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 i in n)if(void 0!==e[i]){var o=e[i]||0,a=n[i],s=Array.isArray(t[i]),l=Array.isArray(a);!s&&l?t[i]=this._interpolationFunction(a,r):"object"==typeof a&&a?this._updateProperties(t[i],o,a,r):"number"==typeof(a=this._handleRelativeValue(o,a))&&(t[i]=o+(a-o)*r)}},t.prototype._handleRelativeValue=function(t,e){return"string"!=typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];"string"==typeof n?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},t.autoStartOnUpdate=!1,t}();l.nextId,u.getAll.bind(u),u.removeAll.bind(u),u.add.bind(u),u.remove.bind(u),u.update.bind(u)},47552: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){let e=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){let t=this._partials,e=this._n,n,r,i,o=0;if(e>0){for(o=t[--e];e>0&&(o=(n=o)+(r=t[--e]),!(i=r-(o-n))););e>0&&(i<0&&t[e-1]<0||i>0&&t[e-1]>0)&&(n=o+(r=2*i),r==n-o&&(o=n))}return o}}},18776:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},45162:function(t,e,n){"use strict";function r(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=Array(i);++r<i;)o[r]=t+r*n;return o}n.d(e,{Z:function(){return r}})},72255:function(t,e,n){"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}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,i,o,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,i=t,o=(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-i),c=(0,l.mC)(u),h=s*(0,l.O$)(u),f=a*n-o*s*c,p=o*n+a*s*c;r.add((0,l.fv)((0,l._b)(h*h+f*f),p)),i=t,o=n,a=s}var m=[null,null],g={type:"LineString",coordinates:m};function y(t,e){return m[0]=t,m[1]=e,r=new s.dU,(0,c.Z)(g,h),+r}},73378:function(t,e,n){"use strict";n.d(e,{e:function(){return s}});var r=n(45162),i=n(35432);function o(t,e,n){var o=(0,r.Z)(t,e-i.Ho,n).concat(e);return function(t){return o.map(function(e){return[t,e]})}}function a(t,e,n){var o=(0,r.Z)(t,e-i.Ho,n).concat(e);return function(t){return o.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=10,v=90,_=360,b=2.5;function w(){return{type:"MultiLineString",coordinates:x()}}function x(){return(0,r.Z)((0,i.mD)(s/v)*v,n,v).map(d).concat((0,r.Z)((0,i.mD)(h/_)*_,c,_).map(m)).concat((0,r.Z)((0,i.mD)(e/g)*g,t,g).filter(function(t){return(0,i.Wn)(t%v)>i.Ho}).map(f)).concat((0,r.Z)((0,i.mD)(u/y)*y,l,y).filter(function(t){return(0,i.Wn)(t%_)>i.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(b)):[[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(b)):[[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],_=+t[1],w):[v,_]},w.stepMinor=function(t){return arguments.length?(g=+t[0],y=+t[1],w):[g,y]},w.precision=function(r){return arguments.length?(b=+r,f=o(u,l,90),p=a(e,t,b),d=o(h,c,90),m=a(s,n,b),w):b},w.extentMajor([[-180,-90+i.Ho],[180,90-i.Ho]]).extentMinor([[-180,-80-i.Ho],[180,80+i.Ho]])})()()}},66116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(35432);function i(t,e){var n=t[0]*r.uR,i=t[1]*r.uR,o=e[0]*r.uR,a=e[1]*r.uR,s=(0,r.mC)(i),l=(0,r.O$)(i),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)(o),d=u*(0,r.O$)(o),m=2*(0,r.ZR)((0,r._b)((0,r.Jy)(a-i)+s*u*(0,r.Jy)(o-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,i=n*h+e*p,o=n*f+e*d;return[(0,r.fv)(o,i)*r.RW,(0,r.fv)(n*l+e*c,(0,r._b)(i*i+o*o))*r.RW]}:function(){return[n*r.RW,i*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 _},OR:function(){return x},Qq:function(){return g},RW:function(){return u},Wn:function(){return h},Xx:function(){return b},ZR:function(){return P},_b:function(){return w},_m:function(){return y},aW:function(){return i},cM:function(){return v},fv:function(){return p},mC:function(){return d},mD:function(){return m},ou:function(){return a},pi:function(){return o},pu:function(){return s},uR:function(){return c},z4:function(){return f}});
1var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,l=2*o,u=180/o,c=o/180,h=Math.abs,f=Math.atan,p=Math.atan2,d=Math.cos,m=Math.ceil,g=Math.exp,y=Math.hypot,v=Math.log,_=Math.sin,b=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?o:Math.acos(t)}function P(t){return t>1?a:t<-1?-a:Math.asin(t)}function H(t){return(t=_(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&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}n.d(e,{Z:function(){return l}});var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},o={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){s(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)s(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function 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&&i.hasOwnProperty(t.type)?i[t.type](t,e):r(t,e)}},14767:function(t,e,n){"use strict";function r(t){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(t=Math.max(0,Math.min(1,t)))*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.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}})},85036:function(t,e,n){"use strict";n.d(e,{Q:function(){return s},Z:function(){return function t(){var e=(0,i.ZP)();return e.copy=function(){return(0,i.JG)(e,t())},o.o.apply(e,arguments),s(e)}}});var r=n(93896),i=n(57953),o=n(94182),a=n(89479);function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,r.ZP)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return(0,a.Z)(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o,a=e(),s=0,l=a.length-1,u=a[s],c=a[l],h=10;for(c<u&&(o=u,u=c,c=o,o=s,s=l,l=o);h-- >0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,e(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return t},t}},92625:function(t,e,n){"use strict";n.d(e,{Z:function(){return function t(){var e,n=0,a=1,s=1,l=[.5],u=[0,1];function c(t){return null!=t&&t<=t?u[(0,r.ZP)(l,t,0,s)]:e}function h(){var t=-1;for(l=Array(s);++t<s;)l[t]=((t+1)*a-(t-s)*n)/(s+1);return c}return c.domain=function(t){return arguments.length?([n,a]=t,n=+n,a=+a,h()):[n,a]},c.range=function(t){return arguments.length?(s=(u=Array.from(t)).length-1,h()):u.slice()},c.invertExtent=function(t){var e=u.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,l[0]]:e>=s?[l[s-1],a]:[l[e-1],l[e]]},c.unknown=function(t){return arguments.length&&(e=t),c},c.thresholds=function(){return l.slice()},c.copy=function(){return t().domain([n,a]).range(u).unknown(e)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(2461),i=n(85036),o=n(94182)},89479:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(93896),i=n(42035),o=n(65368),a=n(19799);function s(t,e,n,s){var l,u,c,h=(0,r.ly)(t,e,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(t),Math.abs(e));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(h))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=h,u=Math.abs(u=Math.max(Math.abs(t),Math.abs(e)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(h))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},89558:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r,i,o=n(47552);function a(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 s(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw TypeError("Private element is not present on this object")}function l(t,e){return t.get(s(t,e))}function u(t,e,n){(function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function c(t,e,n){return t.set(s(t,e),n),n}function h(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}var f=new WeakMap,p=new WeakMap,d=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=(r=function t(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),u(this,f,new Map),u(this,p,new Map),u(this,d,function(t){return t}),u(this,m,function(){return{}}),u(this,g,function(){}),u(this,y,function(){})},i=[{key:"getObj",value:function(t){return l(f,this).get(l(d,this).call(this,t))}},{key:"getData",value:function(t){return l(p,this).get(t)}},{key:"entries",value:function(){var t;return((function(t){if(Array.isArray(t))return a(t)})(t=l(p,this).entries())||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,2)||h(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0];return[e[1],n]})}},{key:"id",value:function(t){return c(d,this,(0,o.Z)(t)),this}},{key:"onCreateObj",value:function(t){return c(m,this,t),this}},{key:"onUpdateObj",value:function(t){return c(g,this,t),this}},{key:"onRemoveObj",value:function(t){return c(y,this,t),this}},{key:"digest",value:function(t){var e=this;t.filter(function(t){return!l(f,e).has(l(d,e).call(e,t))}).forEach(function(t){var n=l(m,e).call(e,t);l(f,e).set(l(d,e).call(e,t),n),l(p,e).set(n,t)});var n=new Map(t.map(function(t){return[l(d,e).call(e,t),t]}));return l(f,this).forEach(function(t,r){n.has(r)?l(g,e).call(e,t,n.get(r)):(l(y,e).call(e,t,r),l(f,e).delete(r),l(p,e).delete(t))}),this}},{key:"clear",value:function(){return this.digest([]),this}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r.key),r)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r)},70442:function(t,e,n){"use strict";function r(t,e,n=2){let r,p,d;let y=e&&e.length,_=y?e[0]*n:t.length,b=i(t,0,_,n,!0),w=[];if(!b||b.next===b.prev)return w;if(y&&(b=function(t,e,n,r){let s=[];for(let n=0,o=e.length;n<o;n++){let a=e[n]*r,l=n<o-1?e[n+1]*r:t.length,u=i(t,a,l,r,!1);u===u.next&&(u.steiner=!0),s.push(function(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}(u))}s.sort(a);for(let t=0;t<s.length;t++)n=function(t,e){let n=function(t,e){let n,r=e,i=t.x,o=t.y,a=-1/0;if(h(t,r))return r;do{if(h(t,r.next))return r.next;if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){let t=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y
1);if(t<=i&&t>a&&(a=t,n=r.x<r.next.x?r:r.next,t===i))return n}r=r.next}while(r!==e);if(!n)return null;let s=n,u=n.x,f=n.y,p=1/0;r=n;do{if(i>=r.x&&r.x>=u&&i!==r.x&&l(o<f?i:a,o,u,f,o<f?a:i,o,r.x,r.y)){var d,g;let e=Math.abs(o-r.y)/(i-r.x);m(r,t)&&(e<p||e===p&&(r.x>n.x||r.x===n.x&&(d=n,g=r,0>c(d.prev,d,g.prev)&&0>c(g.next,d,d.next))))&&(n=r,p=e)}r=r.next}while(r!==s);return n}(t,e);if(!n)return e;let r=g(n,t);return o(r,r.next),o(n,n.next)}(s[t],n);return n}(t,e,b,n)),t.length>80*n){r=1/0,p=1/0;let e=-1/0,i=-1/0;for(let o=n;o<_;o+=n){let n=t[o],a=t[o+1];n<r&&(r=n),a<p&&(p=a),n>e&&(e=n),a>i&&(i=a)}d=0!==(d=Math.max(e-r,i-p))?32767/d:0}return function t(e,n,r,i,a,l,p){if(!e)return;!p&&l&&function(t,e,n,r){let i=t;do 0===i.z&&(i.z=s(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e;let n=1;do{let r,i=t;t=null;let o=null;for(e=0;i;){e++;let a=i,s=0;for(let t=0;t<n&&(s++,a=a.nextZ);t++);let l=n;for(;s>0||l>0&&a;)0!==s&&(0===l||!a||i.z<=a.z)?(r=i,i=i.nextZ,s--):(r=a,a=a.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=a}o.nextZ=null,n*=2}while(e>1)}(i)}(e,i,a,l);let d=e;for(;e.prev!==e.next;){let y=e.prev,_=e.next;if(l?function(t,e,n,r){let i=t.prev,o=t.next;if(c(i,t,o)>=0)return!1;let a=i.x,l=t.x,h=o.x,f=i.y,p=t.y,d=o.y,m=Math.min(a,l,h),g=Math.min(f,p,d),y=Math.max(a,l,h),v=Math.max(f,p,d),_=s(m,g,e,n,r),b=s(y,v,e,n,r),w=t.prevZ,x=t.nextZ;for(;w&&w.z>=_&&x&&x.z<=b;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=v&&w!==i&&w!==o&&u(a,f,l,p,h,d,w.x,w.y)&&c(w.prev,w,w.next)>=0||(w=w.prevZ,x.x>=m&&x.x<=y&&x.y>=g&&x.y<=v&&x!==i&&x!==o&&u(a,f,l,p,h,d,x.x,x.y)&&c(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;w&&w.z>=_;){if(w.x>=m&&w.x<=y&&w.y>=g&&w.y<=v&&w!==i&&w!==o&&u(a,f,l,p,h,d,w.x,w.y)&&c(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;x&&x.z<=b;){if(x.x>=m&&x.x<=y&&x.y>=g&&x.y<=v&&x!==i&&x!==o&&u(a,f,l,p,h,d,x.x,x.y)&&c(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}(e,i,a,l):function(t){let e=t.prev,n=t.next;if(c(e,t,n)>=0)return!1;let r=e.x,i=t.x,o=n.x,a=e.y,s=t.y,l=n.y,h=Math.min(r,i,o),f=Math.min(a,s,l),p=Math.max(r,i,o),d=Math.max(a,s,l),m=n.next;for(;m!==e;){if(m.x>=h&&m.x<=p&&m.y>=f&&m.y<=d&&u(r,a,i,s,o,l,m.x,m.y)&&c(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(e)){n.push(y.i,e.i,_.i),v(e),e=_.next,d=_.next;continue}if((e=_)===d){p?1===p?t(e=function(t,e){let n=t;do{let r=n.prev,i=n.next.next;!h(r,i)&&f(r,n,n.next,i)&&m(r,i)&&m(i,r)&&(e.push(r.i,n.i,i.i),v(n),v(n.next),n=t=i),n=n.next}while(n!==t);return o(n)}(o(e),n),n,r,i,a,l,2):2===p&&function(e,n,r,i,a,s){let l=e;do{let e=l.next.next;for(;e!==l.prev;){var u,p;if(l.i!==e.i&&(u=l,p=e,u.next.i!==p.i&&u.prev.i!==p.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&&f(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(u,p)&&(m(u,p)&&m(p,u)&&function(t,e){let n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}(u,p)&&(c(u.prev,u,p.prev)||c(u,p.prev,p))||h(u,p)&&c(u.prev,u,u.next)>0&&c(p.prev,p,p.next)>0))){let u=g(l,e);l=o(l,l.next),u=o(u,u.next),t(l,n,r,i,a,s,0),t(u,n,r,i,a,s,0);return}e=e.next}l=l.next}while(l!==e)}(e,n,r,i,a,l):t(o(e),n,r,i,a,l,1);break}}}(b,w,n,r,p,d,0),w}function i(t,e,n,r,i){let o;if(i===function(t,e,n,r){let i=0;for(let o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}(t,e,n,r)>0)for(let i=e;i<n;i+=r)o=y(i/r|0,t[i],t[i+1],o);else for(let i=n-r;i>=e;i-=r)o=y(i/r|0,t[i],t[i+1],o);return o&&h(o,o.next)&&(v(o),o=o.next),o}function o(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(h(n,n.next)||0===c(n.prev,n,n.next))){if(v(n),(n=e=n.prev)===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function a(t,e){let n=t.x-e.x;return 0===n&&0==(n=t.y-e.y)&&(n=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)),n}function s(t,e,n,r,i){return(t=((t=((t=((t=((t=(t-n)*i|0)|t<<8)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)|(e=((e=((e=((e=((e=(e-r)*i|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)<<1}function l(t,e,n,r,i,o,a,s){return(i-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function u(t,e,n,r,i,o,a,s){return!(t===a&&e===s)&&l(t,e,n,r,i,o,a,s)}function c(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function h(t,e){return t.x===e.x&&t.y===e.y}function f(t,e,n,r){let i=d(c(t,e,n)),o=d(c(t,e,r)),a=d(c(n,r,t)),s=d(c(n,r,e));return!!(i!==o&&a!==s||0===i&&p(t,n,e)||0===o&&p(t,r,e)||0===a&&p(n,t,r)||0===s&&p(n,e,r))}function p(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 d(t){return t>0?1:t<0?-1:0}function m(t,e){return 0>c(t.prev,t,t.next)?c(t,e,t.next)>=0&&c(t,t.prev,e)>=0:0>c(t,e,t.prev)||0>c(t,t.next,e)}function g(t,e){let n=_(t.i,t.x,t.y),r=_(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function y(t,e,n,r){let i=_(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function v(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,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function b(t){let e=[],n=[],r=t[0][0].length,i=0,o=0;for(let a of t){for(let t of a)for(let n=0;n<r;n++)e.push(t[n]);o&&(i+=o,n.push(i)),o=a.length}return{vertices:e,holes:n,dimensions:r}}n.d(e,{ZP:function(){return r},xH:function(){return b}})},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 i(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e){if(t){if("string"==typeof t)return r(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}n.d(e,{Z:function(){return a}});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=(e instanceof Array?e.length?e:[void 0]:[e]).map(function(t){return{keyAccessor:t,isProp:!(t instanceof Function)}}),l=t.reduce(function(t,e){var r=t,o=e;
1return s.forEach(function(t,e){var a,l=t.keyAccessor;if(t.isProp){var u=o,c=u[l],h=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.includes(n)||({}).propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(u,[l].map(i));a=c,o=h}else a=l(o,e);e+1<s.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):n?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(o)):r[a]=o}),t},{});n instanceof Function&&function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;r===s.length?Object.keys(e).forEach(function(t){return e[t]=n(e[t])}):Object.values(e).forEach(function(e){return t(e,r+1)})}(l);var u=l;return a&&(u=[],function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===s.length?u.push({keys:n,vals:e}):Object.entries(e).forEach(function(e){var i=function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,2)||o(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0];return t(i[1],[].concat(function(t){if(Array.isArray(t))return r(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||o(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[a]))})}(l),e instanceof Array&&0===e.length&&1===u.length&&(u[0].keys=[])),u}},2328:function(t,e,n){"use strict";n.d(e,{Z:function(){return k}});var r,i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},o="object"==typeof global&&global&&global.Object===Object&&global,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=function(){return s.Date.now()},u=/\s/,c=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e},h=/^\s+/,f=s.Symbol,p=Object.prototype,d=p.hasOwnProperty,m=p.toString,g=f?f.toStringTag:void 0,y=function(t){var e=d.call(t,g),n=t[g];try{t[g]=void 0;var r=!0}catch(t){}var i=m.call(t);return r&&(e?t[g]=n:delete t[g]),i},v=Object.prototype.toString,_=f?f.toStringTag:void 0,b=function(t){var e;return"symbol"==typeof t||null!=t&&"object"==typeof t&&"[object Symbol]"==(null==(e=t)?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?y(e):v.call(e))},w=0/0,x=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,P=/^0o[0-7]+$/i,H=parseInt,O=function(t){if("number"==typeof t)return t;
1if(b(t))return w;if(i(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,c(e)+1).replace(h,""):e;var r=S.test(t);return r||P.test(t)?H(t.slice(2),r?2:8):x.test(t)?w:+t},M=Math.max,E=Math.min,T=function(t,e,n){var r,o,a,s,u,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var n=r,i=o;return r=o=void 0,h=e,s=t.apply(i,n)}function g(t){var n=t-c,r=t-h;return void 0===c||n>=e||n<0||p&&r>=a}function y(){var t,n,r,i=l();if(g(i))return v(i);u=setTimeout(y,(t=i-c,n=i-h,r=e-t,p?E(r,a-n):r))}function v(t){return(u=void 0,d&&r)?m(t):(r=o=void 0,s)}function _(){var t,n=l(),i=g(n);if(r=arguments,o=this,c=n,i){if(void 0===u)return h=t=c,u=setTimeout(y,e),f?m(t):s;if(p)return clearTimeout(u),u=setTimeout(y,e),m(c)}return void 0===u&&(u=setTimeout(y,e)),s}return e=O(e)||0,i(n)&&(f=!!n.leading,a=(p="maxWait"in n)?M(O(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),_.cancel=function(){void 0!==u&&clearTimeout(u),h=0,r=c=o=u=void 0},_.flush=function(){return void 0===u?s:v(l())},_};function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var C=(Object.defineProperty(r=function t(e,n){var r=n.default,i=n.triggerUpdate,o=n.onChange;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this.name=e,this.defaultVal=void 0===r?null:r,this.triggerUpdate=void 0===i||i,this.onChange=void 0===o?function(t,e){}:o},"prototype",{writable:!1}),r);function k(t){var e=t.stateInit,n=void 0===e?function(){return{}}:e,r=t.props,i=void 0===r?{}:r,o=t.methods,a=void 0===o?{}:o,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(i).map(function(t){return new C(t,i[t])});return function t(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=!!(this instanceof t?this.constructor:void 0),s=o?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),v(),g}var y=function(t,e){c.call(g,t,d,e),d.initialised=!0},v=T(function(){d.initialised&&(f.call(g,d,m),m={})},1);return p.forEach(function(t){var e,n,r,i,o,a,s;g[t.name]=(e=t.name,r=void 0!==(n=t.triggerUpdate)&&n,o=void 0===(i=t.onChange)?function(t,e){}:i,s=void 0===(a=t.defaultVal)?null:a,function(t){var n=d[e];if(!arguments.length)return n;var i=void 0===t?s:t;return d[e]=i,o.call(g,i,d,n),m.hasOwnProperty(e)||(m[e]=n),r&&v(),g})}),Object.keys(a).forEach(function(t){g[t]=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=a[t]).call.apply(e,[g,d].concat(r))}}),Object.entries(l).forEach(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,2)||function(t,e){if(t){if("string"==typeof t)return A(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)?A(t,e):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0],r=e[1];return g[n]=g[r]}),g.resetProps=function(){return p.forEach(function(t){g[t.name](t.defaultVal)}),g},g.resetProps(),d._rerender=v,o&&s&&g(s),g}}},59023:function(t,e,n){"use strict";n.d(e,{Z:function(){return nN}});var r=n(67294);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,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||o(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var s=function(t,e){var n,r=new Set(e);return Object.assign.apply(Object,[{}].concat(function(t){if(Array.isArray(t))return a(t)}(n=Object.entries(t).filter(function(t){var e=i(t,1)[0];return!r.has(e)}).map(function(t){var e,n,r,o=i(t,2),a=o[0],s=o[1];return n={},(r="symbol"==typeof(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 TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r=a,"string"))?e:String(e))in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s,n}))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||o(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};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){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)||c(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(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}}function h(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.useEffect,i=(0,r.useRef)(),o=(0,r.useRef)(!1),a=(0,r.useRef)(!1),s=function(t){if(Array.isArray(t))return t}(e=(0,r.useState)(0))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,2)||c(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();s[0];var l=s[1];o.current&&(a.current=!0),n(function(){return o.current||(i.current=t(),o.current=!0),l(function(t){return t+1}),function(){a.current&&i.current&&i.current()}},[])}var f=n(74250),p=n(81764),d=n(22569),m=n(99477),g=n(83926);let y={type:"change"},v={type:"start"},_={type:"end"},b={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM_PAN:4},w=new f.FM8,x=new f.FM8,S=new f.Pa4,P=new f.Pa4,H=new f.Pa4,O=new f._fP,M=new f.Pa4,E=new f.Pa4,T=new f.Pa4,A=new f.Pa4;class C extends f.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:f.RsA.ROTATE,MIDDLE:f.RsA.DOLLY,RIGHT:f.RsA.PAN},this.target=new f.Pa4,this.state=b.NONE,this.keyState=b.NONE,this._lastPosition=new f.Pa4,this._lastZoom=1,this._touchZoomDistanceStart=0,this._touchZoomDistanceEnd=0,this._lastAngle=0,this._eye=new f.Pa4,this._movePrev=new f.FM8,this._moveCurr=new f.FM8,this._lastAxis=new f.Pa4,this._zoomStart=new f.FM8,this._zoomEnd=new f.FM8,this._panStart=new f.FM8,this._panEnd=new f.FM8,this._pointers=[],this._pointerPositions={},this._onPointerMove=j.bind(this),this._onPointerDown=k.bind(this),this._onPointerUp=R.bind(this),this._onPointerCancel=D.bind(this),this._onContextMenu=B.bind(this),this._onMouseWheel=F.bind(this),this._onKeyDown=I.bind(this),this._onKeyUp=L.bind(this),this._onTouchStart=Z.bind(this),this._onTouchMove=W.bind(this),this._onTouchEnd=V.bind(this),this._onMouseDown=z.bind(this),this._onMouseMove=U.bind(this),this._onMouseUp=N.bind(this),this._target0=this.target.clone(),this._position0=this.object.position.clone(),this._up0=this.object.up.clone(),this._zoom0=this.object.zoom,null!==e&&(this.connect(e),this.handleResize()),this.update()}connect(t){super.connect(t),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="none"}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}handleResize(){let t=this.domElement.getBoundingClientRect(),e=this.domElement.ownerDocument.documentElement;this.screen.left=t.left+window.pageXOffset-e.clientLeft,this.screen.top=t.top+window.pageYOffset-e.clientTop,this.screen.width=t.width,this.screen.height=t.height}update(){this._eye.subVectors(this.object.position,this.target),this.noRotate||this._rotateCamera(),this.noZoom||this._zoomCamera(),this.noPan||this._panCamera(),this.object.position.addVectors(this.target,this._eye),this.object.isPerspectiveCamera?(this._checkDistances(),this.object.lookAt(this.target),this._lastPosition.distanceToSquared(this.object.position)>1e-6&&(this.dispatchEvent(y),this._lastPosition.copy(this.object.position))):this.object.isOrthographicCamera?(this.object.lookAt(this.target),(this._lastPosition.distanceToSquared(this.object.position)>1e-6||this._lastZoom!==this.object.zoom)&&(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type.")}reset(){this.state=b.NONE,this.keyState=b.NONE,this.target.copy(this._target0),this.object.position.copy(this._position0),this.object.up.copy(this._up0),this.object.zoom=this._zoom0,this.object.updateProjectionMatrix(),this._eye.subVectors(this.object.position,this.target),this.object.lookAt(this.target),this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom}_panCamera(){if(x.copy(this._panEnd).sub(this._panStart),x.lengthSq()){if(this.object.isOrthographicCamera){let t=(this.object.right-this.object.left)/this.object.zoom/this.domElement.clientWidth,e=(this.object.top-this.object.bottom)/this.object.zoom/this.domElement.clientWidth;x.x*=t,x.y*=e}x.multiplyScalar(this._eye.length()*this.panSpeed),P.copy(this._eye).cross(this.object.up).setLength(x.x),P.add(S.copy(this.object.up).setLength(x.y)),this.object.position.add(P),this.target.add(P),this.staticMoving?this._panStart.copy(this._panEnd):this._panStart.add(x.subVectors(this._panEnd,this._panStart).multiplyScalar(this.dynamicDampingFactor))}}_rotateCamera(){A.set(this._moveCurr.x-this._movePrev.x,this._moveCurr.y-this._movePrev.y,0);let t=A.length();t?(this._eye.copy(this.object.position).sub(this.target),M.copy(this._eye).normalize(),E.copy(this.object.up).normalize(),T.crossVectors(E,M).normalize(),E.setLength(this._moveCurr.y-this._movePrev.y),T.setLength(this._moveCurr.x-this._movePrev.x),A.copy(E.add(T)),H.crossVectors(A,this._eye).normalize(),t*=this.rotateSpeed,O.setFromAxisAngle(H,t),this._eye.applyQuaternion(O),this.object.up.applyQuaternion(O),this._lastAxis.copy(H),this._lastAngle=t):!this.staticMoving&&this._lastAngle&&(this._lastAngle*=Math.sqrt(1-this.dynamicDampingFactor),this._eye.copy(this.object.position).sub(this.target),O.setFromAxisAngle(this._lastAxis,this._lastAngle),this._eye.applyQuaternion(O),this.object.up.applyQuaternion(O)),this._movePrev.copy(this._moveCurr)}_zoomCamera(){let t;this.state===b.TOUCH_ZOOM_PAN?(t=this._touchZoomDistanceStart/this._touchZoomDistanceEnd,this._touchZoomDistanceStart=this._touchZoomDistanceEnd,this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=f.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")):(1!=(t=1+(this._zoomEnd.y-this._zoomStart.y)*this.zoomSpeed)&&t>0&&(this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=f.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 w.set((t-this.screen.left)/this.screen.width,(e-this.screen.top)/this.screen.height),w}_getMouseOnCircle(t,e){return w.set((t-.5*this.screen.width-this.screen.left)/(.5*this.screen.width),(this.screen.height+2*(this.screen.top-e))/this.screen.width),w}_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){this._pointers.splice(e,1);return}}_trackPointer(t){let e=this._pointerPositions[t.pointerId];void 0===e&&(e=new f.FM8,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){let e=t.pointerId===this._pointers[0].pointerId?this._pointers[1]:this._pointers[0];return this._pointerPositions[e.pointerId]}_checkDistances(){this.noZoom&&this.noPan||(this._eye.lengthSq()>this.maxDistance*this.maxDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.maxDistance)),this._zoomStart.copy(this._zoomEnd)),this._eye.lengthSq()<this.minDistance*this.minDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.minDistance)),this._zoomStart.copy(this._zoomEnd)))}}function k(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 j(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function R(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchEnd(t):this._onMouseUp(),this._removePointer(t),
10===this._pointers.length&&(this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp)))}function D(t){this._removePointer(t)}function L(){!1!==this.enabled&&(this.keyState=b.NONE,window.addEventListener("keydown",this._onKeyDown))}function I(t){!1!==this.enabled&&(window.removeEventListener("keydown",this._onKeyDown),this.keyState===b.NONE&&(t.code!==this.keys[b.ROTATE]||this.noRotate?t.code!==this.keys[b.ZOOM]||this.noZoom?t.code!==this.keys[b.PAN]||this.noPan||(this.keyState=b.PAN):this.keyState=b.ZOOM:this.keyState=b.ROTATE))}function z(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 f.RsA.DOLLY:this.state=b.ZOOM;break;case f.RsA.ROTATE:this.state=b.ROTATE;break;case f.RsA.PAN:this.state=b.PAN;break;default:this.state=b.NONE}let n=this.keyState!==b.NONE?this.keyState:this.state;n!==b.ROTATE||this.noRotate?n!==b.ZOOM||this.noZoom?n!==b.PAN||this.noPan||(this._panStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._panEnd.copy(this._panStart)):(this._zoomStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._zoomEnd.copy(this._zoomStart)):(this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr)),this.dispatchEvent(v)}function U(t){let e=this.keyState!==b.NONE?this.keyState:this.state;e!==b.ROTATE||this.noRotate?e!==b.ZOOM||this.noZoom?e!==b.PAN||this.noPan||this._panEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):this._zoomEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):(this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)))}function N(){this.state=b.NONE,this.dispatchEvent(_)}function F(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(v),this.dispatchEvent(_)}}function B(t){!1!==this.enabled&&t.preventDefault()}function Z(t){if(this._trackPointer(t),1===this._pointers.length)this.state=b.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(this._pointers[0].pageX,this._pointers[0].pageY)),this._movePrev.copy(this._moveCurr);else{this.state=b.TOUCH_ZOOM_PAN;let t=this._pointers[0].pageX-this._pointers[1].pageX,e=this._pointers[0].pageY-this._pointers[1].pageY;this._touchZoomDistanceEnd=this._touchZoomDistanceStart=Math.sqrt(t*t+e*e);let n=(this._pointers[0].pageX+this._pointers[1].pageX)/2,r=(this._pointers[0].pageY+this._pointers[1].pageY)/2;this._panStart.copy(this._getMouseOnScreen(n,r)),this._panEnd.copy(this._panStart)}this.dispatchEvent(v)}function W(t){if(this._trackPointer(t),1===this._pointers.length)this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY));else{let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y;this._touchZoomDistanceEnd=Math.sqrt(n*n+r*r);let i=(t.pageX+e.x)/2,o=(t.pageY+e.y)/2;this._panEnd.copy(this._getMouseOnScreen(i,o))}}function V(t){switch(this._pointers.length){case 0:this.state=b.NONE;break;case 1:this.state=b.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr);break;case 2:this.state=b.TOUCH_ZOOM_PAN;for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId!==t.pointerId){let t=this._pointerPositions[this._pointers[e].pointerId];this._moveCurr.copy(this._getMouseOnCircle(t.x,t.y)),this._movePrev.copy(this._moveCurr);break}}this.dispatchEvent(_)}let G={type:"change"},$={type:"start"},Y={type:"end"},q=new f.zHn,X=new f.JOQ,K=Math.cos(70*f.M8C.DEG2RAD),Q=new f.Pa4,J=2*Math.PI,tt={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};class te extends f.ZXd{constructor(t,e=null){super(t,e),this.state=tt.NONE,this.target=new f.Pa4,this.cursor=new f.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:f.RsA.ROTATE,MIDDLE:f.RsA.DOLLY,RIGHT:f.RsA.PAN},this.touches={ONE:f.QmN.ROTATE,TWO:f.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 f.Pa4,this._lastQuaternion=new f._fP,this._lastTargetPosition=new f.Pa4,this._quat=new f._fP().setFromUnitVectors(t.up,new f.Pa4(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new f.$V,this._sphericalDelta=new f.$V,this._scale=1,this._panOffset=new f.Pa4,this._rotateStart=new f.FM8,this._rotateEnd=new f.FM8,this._rotateDelta=new f.FM8,this._panStart=new f.FM8,this._panEnd=new f.FM8,this._panDelta=new f.FM8,this._dollyStart=new f.FM8,this._dollyEnd=new f.FM8,this._dollyDelta=new f.FM8,this._dollyDirection=new f.Pa4,this._mouse=new f.FM8,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=tr.bind(this),this._onPointerDown=tn.bind(this),this._onPointerUp=ti.bind(this),this._onContextMenu=th.bind(this),this._onMouseWheel=ts.bind(this),this._onKeyDown=tl.bind(this),this._onTouchStart=tu.bind(this),this._onTouchMove=tc.bind(this),this._onMouseDown=to.bind(this),this._onMouseMove=ta.bind(this),this._interceptControlDown=tf.bind(this),this._interceptControlUp=tp.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(G),this.update(),this.state=tt.NONE}update(t=null){let e=this.object.position;Q.copy(e).sub(this.target),Q.applyQuaternion(this._quat),this._spherical.setFromVector3(Q),this.autoRotate&&this.state===tt.NONE&&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+=J:n>Math.PI&&(n-=J),r<-Math.PI?r+=J:r>Math.PI&&(r-=J),n<=r?this._spherical.theta=Math.max(n,Math.min(r,this._spherical.theta)):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 i=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radiu
1s=this._clampDistance(this._spherical.radius);else{let t=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),i=t!=this._spherical.radius}if(Q.setFromSpherical(this._spherical),Q.applyQuaternion(this._quatInverse),e.copy(this.target).add(Q),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){let e=Q.length();t=this._clampDistance(e*this._scale);let n=e-t;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),i=!!n}else if(this.object.isOrthographicCamera){let e=new f.Pa4(this._mouse.x,this._mouse.y,0);e.unproject(this.object);let n=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),i=n!==this.object.zoom;let r=new f.Pa4(this._mouse.x,this._mouse.y,0);r.unproject(this.object),this.object.position.sub(r).add(e),this.object.updateMatrixWorld(),t=Q.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):(q.origin.copy(this.object.position),q.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(q.direction))<K?this.object.lookAt(this.target):(X.setFromNormalAndCoplanarPoint(this.object.up,this.target),q.intersectPlane(X,this.target))))}else if(this.object.isOrthographicCamera){let 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(),i=!0)}return this._scale=1,this._performCursorZoom=!1,!!(i||this._lastPosition.distanceToSquared(this.object.position)>1e-6||8*(1-this._lastQuaternion.dot(this.object.quaternion))>1e-6||this._lastTargetPosition.distanceToSquared(this.target)>1e-6)&&(this.dispatchEvent(G),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0)}_getAutoRotationAngle(t){return null!==t?J/60*this.autoRotateSpeed*t:J/60/60*this.autoRotateSpeed}_getZoomScale(t){let 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){Q.setFromMatrixColumn(e,0),Q.multiplyScalar(-t),this._panOffset.add(Q)}_panUp(t,e){!0===this.screenSpacePanning?Q.setFromMatrixColumn(e,1):(Q.setFromMatrixColumn(e,0),Q.crossVectors(this.object.up,Q)),Q.multiplyScalar(t),this._panOffset.add(Q)}_pan(t,e){let n=this.domElement;if(this.object.isPerspectiveCamera){let r=this.object.position;Q.copy(r).sub(this.target);let i=Q.length();i*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*i/n.clientHeight,this.object.matrix),this._panUp(2*e*i/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;let n=this.domElement.getBoundingClientRect(),r=t-n.left,i=e-n.top,o=n.width,a=n.height;this._mouse.x=r/o*2-1,this._mouse.y=-(i/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);let e=this.domElement;this._rotateLeft(J*this._rotateDelta.x/e.clientHeight),this._rotateUp(J*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(J*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(-J*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(J*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(-J*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{let 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{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._panStart.set(n,r)}}_handleTouchStartDolly(t){let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y,i=Math.sqrt(n*n+r*r);this._dollyStart.set(0,i)}_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{let 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);let e=this.domElement;this._rotateLeft(J*this._rotateDelta.x/e.clientHeight),this._rotateUp(J*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{let 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){let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y,i=Math.sqrt(n*n+r*r);this._dollyEnd.set(0,i),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);let o=(t.pageX+e.x)*.5,a=(t.pageY+e.y)*.5;this._updateZoomParameters(o,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){this._pointers.splice(e,1);return}}_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 f.FM8,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){let e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){let 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 tn(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 tr(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function ti(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(Y),this.state=tt.NONE;break;case 1:let e=this._pointers[0],n=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:n.x,pageY:n.y})}}function to(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 f.RsA.DOLLY:if(!1===this.enableZoom)return;this._handleMouseDownDolly(t),this.state=tt.DOLLY;break;case f.RsA.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=tt.PAN}else{if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=tt.ROTATE}break;case f.RsA.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=tt.ROTATE}else{if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=tt.PAN}break;default:this.state=tt.NONE}this.state!==tt.NONE&&this.dispatchEvent($)}function ta(t){switch(this.state){case tt.ROTATE:if(!1===this.enableRotate)return;this._handleMouseMoveRotate(t);break;case tt.DOLLY:if(!1===this.enableZoom)return;this._handleMouseMoveDolly(t);break;case tt.PAN:if(!1===this.enablePan)return;this._handleMouseMovePan(t)}}function ts(t){!1!==this.enabled&&!1!==this.enableZoom&&this.state===tt.NONE&&(t.preventDefault(),this.dispatchEvent($),this._handleMouseWheel(this._customWheelEvent(t)),this.dispatchEvent(Y))}function tl(t){!1!==this.enabled&&this._handleKeyDown(t)}function tu(t){switch(this._trackPointer(t),this._pointers.length){case 1:switch(this.touches.ONE){case f.QmN.ROTATE:if(!1===this.enableRotate)return;this._handleTouchStartRotate(t),this.state=tt.TOUCH_ROTATE;break;case f.QmN.PAN:if(!1===this.enablePan)return;this._handleTouchStartPan(t),this.state=tt.TOUCH_PAN;break;default:this.state=tt.NONE}break;case 2:switch(this.touches.TWO){case f.QmN.DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchStartDollyPan(t),this.state=tt.TOUCH_DOLLY_PAN;break;case f.QmN.DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchStartDollyRotate(t),this.state=tt.TOUCH_DOLLY_ROTATE;break;default:this.state=tt.NONE}break;default:this.state=tt.NONE}this.state!==tt.NONE&&this.dispatchEvent($)}function tc(t){switch(this._trackPointer(t),this.state){case tt.TOUC
1H_ROTATE:if(!1===this.enableRotate)return;this._handleTouchMoveRotate(t),this.update();break;case tt.TOUCH_PAN:if(!1===this.enablePan)return;this._handleTouchMovePan(t),this.update();break;case tt.TOUCH_DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchMoveDollyPan(t),this.update();break;case tt.TOUCH_DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchMoveDollyRotate(t),this.update();break;default:this.state=tt.NONE}}function th(t){!1!==this.enabled&&t.preventDefault()}function tf(t){"Control"===t.key&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function tp(t){"Control"===t.key&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}let td={type:"change"},tm=new f._fP;class tg extends f.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 f.Pa4(0,0,0),this._rotationVector=new f.Pa4(0,0,0),this._lastQuaternion=new f._fP,this._lastPosition=new f.Pa4,this._status=0,this._onKeyDown=ty.bind(this),this._onKeyUp=tv.bind(this),this._onPointerMove=tb.bind(this),this._onPointerDown=t_.bind(this),this._onPointerUp=tw.bind(this),this._onPointerCancel=tx.bind(this),this._onContextMenu=tS.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;let 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),tm.set(this._rotationVector.x*r,this._rotationVector.y*r,this._rotationVector.z*r,1).normalize(),e.quaternion.multiply(tm),(this._lastPosition.distanceToSquared(e.position)>1e-6||8*(1-this._lastQuaternion.dot(e.quaternion))>1e-6)&&(this.dispatchEvent(td),this._lastQuaternion.copy(e.quaternion),this._lastPosition.copy(e.position))}_updateMovementVector(){let 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 ty(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 tv(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 t_(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 tb(t){if(!1!==this.enabled&&(!this.dragToLook||this._status>0)){let 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 tw(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 tx(){!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 tS(t){!1!==this.enabled&&t.preventDefault()}let tP={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` 2 3 varying vec2 vUv; 4 5 void main() { 6 7 vUv = uv; 8 gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); 9 10 }`,fragmentShader:` 11 12 uniform float opacity; 13 14 uniform sampler2D tDiffuse; 15 16 varying vec2 vUv; 17 18 void main() { 19 20 vec4 texel = texture2D( tDiffuse, vUv ); 21 gl_FragColor = opacity * texel; 22 23 24 }`};class tH{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(){}}let tO=new f.iKG(-1,1,1,-1,0,1);class tM extends f.u9r{constructor(){super(),this.setAttribute("position",new f.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new f.a$l([0,2,0,0,2,0],2))}}let tE=new tM;class tT{constructor(t){this._mesh=new f.Kj0(tE,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,tO)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}class tA extends tH{constructor(t,e="tDiffuse"){super(),this.textureID=e,this.uniforms=null,this.material=null,t instanceof f.jyz?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=f.rDY.clone(t.uniforms),this.material=new f.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 tT(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):(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 tC extends tH{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,n){let r,i;let o=t.getContext(),a=t.state;a.buffers.color.setMask(!1),a.buffers.depth.setMask(!1),a.buffers.color.setLocked(!0),a.buffers.depth.setLocked(!0),this.inverse?(r=0,i=1):(r=1,i=0),a.buffers.stencil.setTest(!0),a.buffers.stencil.setOp(o.REPLACE,o.REPLACE,o.REPLACE),a.buffers.stencil.setFunc(o.ALWAYS,r,4294967295),a.buffers.stencil.setClear(i),a.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),a.buffers.color.setLocked(!1),a.buffers.depth.setLocked(!1),a.buffers.color.setMask(!0),a.buffers.depth.setMask(!0),a.buffers.stencil.setLocked(!1),a.buffers.stencil.setFunc(o.EQUAL,1,4294967295),a.buffers.stencil.setOp(o.KEEP,o.KEEP,o.KEEP),a.buffers.stencil.setLocked(!0)}}class tk extends tH{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}class tj{constructor(t,e){if(this.renderer=t,this._pixelRatio=t.getPixelRatio(),void 0===e){let n=t.getSize(new f.FM8);this._width=n.width,this._height=n.height,(e=new f.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:f.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 tA(tP),this.copyPass.material.blending=f.jFi,this.clock=new f.SUY}swapBuffers(){let 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){let 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());let e=this.renderer.getRenderTarget(),n=!1;for(let e=0,r=this.passes.length;e<r;e++){let r=this.passes[e];if(!1!==r.enabled){if(r.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(e),r.render(this.renderer,this.writeBuffer,this.readBuffer,t,n),r.needsSwap){if(n){let 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!==tC&&(r instanceof tC?n=!0:r instanceof tk&&(n=!1))}}this.renderer.setRenderTarget(e)}reset(t){if(void 0===t){let e=this.renderer.getSize(new f.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;let n=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(n,r),this.renderTarget2.setSize(n,r);for(let t=0;t<this.passes.length;t++)this.passes[t].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 tR extends tH{constructor(t,e,n=null,r=null,i=null){super(),this.scene=t,this.camera=e,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=i,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new f.Ilk}render(t,e,n){let r,i;let o=t.autoClear;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&&
24(r=t.getClearAlpha(),t.setClearAlpha(this.clearAlpha)),!0==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(r),null!==this.overrideMaterial&&(this.scene.overrideMaterial=i),t.autoClear=o}}var tD=n(87462),tL=n(97326),tI=n(94578);function tz(t){return(tz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var tU=n(89611);function tN(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(tN=function(){return!!t})()}function tF(t){var e="function"==typeof Map?new Map:void 0;return(tF=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 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 function(t,e,n){if(tN())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&(0,tU.Z)(i,n.prototype),i}(t,arguments,tz(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,tU.Z)(n,t)})(t)}var tB=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,tL.Z)(n)}return(0,tI.Z)(e,t),e}(tF(Error));function tZ(t,e){return t.substr(-e.length)===e}var tW=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function tV(t){return"string"!=typeof t?t:t.match(tW)?parseFloat(t):t}var tG=function(t){return function(e,n){void 0===n&&(n="16px");var r=e,i=n;if("string"==typeof e){if(!tZ(e,"px"))throw new tB(69,t,e);r=tV(e)}if("string"==typeof n){if(!tZ(n,"px"))throw new tB(70,t,n);i=tV(n)}if("string"==typeof r)throw new tB(71,e,t);if("string"==typeof i)throw new tB(72,n,t);return""+r/i+t}};function t$(t){return Math.round(255*t)}function tY(t,e,n){return t$(t)+","+t$(e)+","+t$(n)}function tq(t,e,n,r){if(void 0===r&&(r=tY),0===e)return r(n,n,n);var i=(t%360+360)%360/60,o=(1-Math.abs(2*n-1))*e,a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);var c=n-o/2;return r(s+c,l+c,u+c)}tG("em"),tG("rem");var tX={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
240",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"},tK=/^#[a-fA-F0-9]{6}$/,tQ=/^#[a-fA-F0-9]{8}$/,tJ=/^#[a-fA-F0-9]{3}$/,t0=/^#[a-fA-F0-9]{4}$/,t1=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,t2=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,t3=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,t5=/^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 t4(t){if("string"!=typeof t)throw new tB(3);var e=function(t){if("string"!=typeof t)return t;var e=t.toLowerCase();return tX[e]?"#"+tX[e]:t}(t);if(e.match(tK))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(tQ)){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 24
24a:n}}if(e.match(tJ))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(t0)){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 i=t1.exec(e);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=t2.exec(e.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var a=t3.exec(e);if(a){var s="rgb("+tq(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=t1.exec(s);if(!l)throw new tB(4,e,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=t5.exec(e.substring(0,50));if(u){var c="rgb("+tq(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",h=t1.exec(c);if(!h)throw new tB(4,e,c);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alph
24a:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new tB(5)}function t8(t){return function(t){var e,n=t.red/255,r=t.green/255,i=t.blue/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;if(o===a)return void 0!==t.alpha?{hue:0,saturation:0,lightness:s,alpha:t.alpha}:{hue:0,saturation:0,lightness:s};var l=o-a,u=s>.5?l/(2-o-a):l/(o+a);switch(o){case n:e=(r-i)/l+(r<i?6:0);break;case r:e=(i-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}}(t4(t))}var t6=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 t9(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function t7(t){return t9(Math.round(255*t))}function et(t,e,n){return t6("#"+t7(t)+t7(e)+t7(n))}function ee(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return t6("#"+t9(t)+t9(e)+t9(n));if("object"==typeof t&&void 0===e&&void 0===n)return t6("#"+t9(t.red)+t9(t.green)+t9(t.blue));throw new tB(6)}function en(t,e,n,r){if("string"==typeof t&&"number"==typeof e){var i=t4(t);return"rgba("+i.red+","+i.green+","+i.blue+","+e+")"}if("number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof r)return r>=1?ee(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?ee(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new tB(7)}function er(t){if("object"!=typeof t)throw new tB(8);if("number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha)return en(t);if("number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&("number"!=typeof t.alpha||void 0===t.alpha))return ee(t);if("number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&"number"==typeof t.alpha)return function(t,e,n,r){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof r)return r>=1?tq(t,e,n,et):"rgba("+tq(t,e,n)+","+r+")";if("object"==typeof t&&void 0===e&&void 0===n&&void 0===r)return t.alpha>=1?tq(t.hue,t.saturation,t.lightness,et):"rgba("+tq(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new tB(2)}(t);if("number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&("number"!=typeof t.alpha||void 0===t.alpha))return function(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return tq(t,e,n,et);if("object"==typeof t&&void 0===e&&void 0===n)return tq(t.hue,t.saturation,t.lightness,et);throw new tB(1)}(t);throw new tB(8)}function ei(t){return function t(e,n,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=n?e.apply(this,i):t(e,n,i)}}(t,t.length,[])}function eo(t,e,n){return Math.max(t,Math.min(e,n))}ei(function(t,e){if("transparent"===e)return e;var n=t8(e);return er((0,tD.Z)({},n,{hue:n.hue+parseFloat(t)}))}),ei(function(t,e){if("transparent"===e)return e;var n=t8(e);return er((0,tD.Z)({},n,{lightness:eo(0,1,n.lightness-parseFloat(t))}))}),ei(function(t,e){if("transparent"===e)return e;var n=t8(e);return er((0,tD.Z)({},n,{saturation:eo(0,1,n.saturation-parseFloat(t))}))}),ei(function(t,e){if("transparent"===e)return e;var n=t8(e);return er((0,tD.Z)({},n,{lightness:eo(0,1,n.lightness+parseFloat(t))}))});var ea=ei(function(t,e,n){if("transparent"===e)return n;if("transparent"===n)return e;if(0===t)return n;var r=t4(e),i=(0,tD.Z)({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),o=t4(n),a=(0,tD.Z)({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),s=i.alpha-a.alpha,l=2*parseFloat(t)-1,u=((l*s==-1?l:l+s)/(1+l*s)+1)/2,c=1-u;return en({red:Math.floor(i.red*u+a.red*c),green:Math.floor(i.green*u+a.green*c),blue:Math.floor(i.blue*u+a.blue*c),alpha:i.alpha*parseFloat(t)+a.alpha*(1-parseFloat(t))})}),es=ei(function(t,e){if("transparent"===e)return e;var n=t4(e),r="number"==typeof n.alpha?n.alpha:1;return en((0,tD.Z)({},n,{alpha:eo(0,1,(100*r+100*parseFloat(t))/100)}))});ei(function(t,e){if("transparent"===e)return e;var n=t8(e);return er((0,tD.Z)({},n,{saturation:eo(0,1,n.saturation+parseFloat(t))}))}),ei(function(t,e){return"transparent"===e?e:er((0,tD.Z)({},t8(e),{hue:parseFloat(t)}))}),ei(function(t,e){return"transparent"===e?e:er((0,tD.Z)({},t8(e),{lightness:parseFloat(t)}))}),ei(function(t,e){return"transparent"===e?e:er((0,tD.Z)({},t8(e),{saturation:parseFloat(t)}))}),ei(function(t,e){return"transparent"===e?e:ea(parseFloat(t),"rgb(0, 0, 0)",e)}),ei(function(t,e){return"transparent"===e?e:ea(parseFloat(t),"rgb(255, 255, 255)",e)}),ei(function(t,e){if("transparent"===e)return e;
24var n=t4(e),r="number"==typeof n.alpha?n.alpha:1;return en((0,tD.Z)({},n,{alpha:eo(0,1,+(100*r-100*parseFloat(t)).toFixed(2)/100)}))});var el=n(28250),eu=n(47552),ec=n(2328);function eh(){}function ef(t){return null==t?eh:function(){return this.querySelector(t)}}function ep(){return[]}function ed(t){return function(e){return e.matches(t)}}var em=Array.prototype.find;function eg(){return this.firstElementChild}var ey=Array.prototype.filter;function ev(){return Array.from(this.children)}function e_(t){return Array(t.length)}function eb(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ew(t,e,n,r,i,o){for(var a,s=0,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new eb(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function ex(t,e,n,r,i,o,a){var s,l,u,c=new Map,h=e.length,f=o.length,p=Array(h);for(s=0;s<h;++s)(l=e[s])&&(p[s]=u=a.call(l,l.__data__,s,e)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<f;++s)u=a.call(t,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new eb(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&c.get(p[s])===l&&(i[s]=l)}function eS(t){return t.__data__}function eP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}eb.prototype={constructor:eb,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var eH="http://www.w3.org/1999/xhtml",eO={svg:"http://www.w3.org/2000/svg",xhtml:eH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function eM(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),eO.hasOwnProperty(e)?{space:eO[e],local:t}:t}function eE(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function eT(t){return t.trim().split(/^|\s+/)}function eA(t){return t.classList||new eC(t)}function eC(t){this._node=t,this._names=eT(t.getAttribute("class")||"")}function ek(t,e){for(var n=eA(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ej(t,e){for(var n=eA(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function eR(){this.textContent=""}function eD(){this.innerHTML=""}function eL(){this.nextSibling&&this.parentNode.appendChild(this)}function eI(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ez(t){var e=eM(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===eH&&e.documentElement.namespaceURI===eH?e.createElement(t):e.createElementNS(n,t)}})(e)}function eU(){return null}function eN(){var t=this.parentNode;t&&t.removeChild(this)}function eF(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function eB(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function eZ(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function eW(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function eV(t,e,n){var r=eE(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}eC.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var eG=[null];function e$(t,e){this._groups=t,this._parents=e}e$.prototype=(function(){return new e$([[document.documentElement]],eG)}).prototype={constructor:e$,select:function(t){"function"!=typeof t&&(t=ef(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,u=r[i]=Array(l),c=0;c<l;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new e$(r,this._parents)},selectAll:function(t){"function"==typeof t?(a=t,t=function(){var t;return t=a.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}):t=null==(s=t)?ep:function(){return this.querySelectorAll(s)};for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s,l,u=e[o],c=u.length,h=0;h<c;++h)(l=u[h])&&(r.push(t.call(l,l.__data__,h,u)),i.push(l));return new e$(r,i)},selectChild:function(t){var e;return this.select(null==t?eg:(e="function"==typeof t?t:ed(t),function(){return em.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?ev:(e="function"==typeof t?t:ed(t),function(){return ey.call(this.children,e)}))},filter:function(t){if("function"!=typeof t){var e;e=t,t=function(){return this.matches(e)}}for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o)for(var a,s=n[o],l=s.length,u=i[o]=[],c=0;c<l;++c)(a=s[c])&&t.call(a,a.__data__,c,s)&&u.push(a);return new e$(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,eS);var n=e?ex:ew,r=this._parents,i=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],h=i[u],f=h.length,p="object"==typeof(y=t.call(c,c&&c.__data__,u,r))&&"length"in y?y:Array.from(y),d=p.length,m=s[u]=Array(d),g=a[u]=Array(d);n(c,h,m,g,l[u]=Array(f),p,e);for(var y,v,_,b,w=0,x=0;w<d;++w)if(_=m[w]){for(w>=x&&(x=w+1);!(b=g[x])&&++x<d;);_._next=b||null}}return(a=new e$(a,r))._enter=s,a._exit=l,a},enter:function(){return new e$(this._enter||this._groups.map(e_),this._parents)},exit:function(){return new e$(this._exit||this._groups.map(e_),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=n[l],h=r[l],f=c.length,p=s[l]=Array(f),d=0;d<f;++d)(u=c[d]||h[d])&&(p[d]=u);for(;l<i;++l)s[l]=n[l];return new e$(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=eP);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(e)}return new e$(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=eM(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){var r;return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):(r=this.node()).style.getPropertyValue(t)||eE(r).getComputedStyle(r,null).getPropertyValue(t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=eT(t+"");
24if(arguments.length<2){for(var r=eA(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?ek:ej)(this,t)}}:e?function(t){return function(){ek(this,t)}}:function(t){return function(){ej(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?eR:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?eD:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(eL)},lower:function(){return this.each(eI)},append:function(t){var e="function"==typeof t?t:ez(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:ez(t),r=null==e?eU:"function"==typeof e?e:ef(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(eN)},clone:function(t){return this.select(t?eB:eF)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=e?eW:eZ;r<a;++r)this.each(s(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return eV(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return eV(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var eY,eq,eX,eK,eQ,eJ={},e0=[],e1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function e2(t,e){for(var n in e)t[n]=e[n];return t}function e3(t){var e=t.parentNode;e&&e.removeChild(t)}function e5(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++eX:i};return null==i&&null!=eq.vnode&&eq.vnode(o),o}function e4(t){return t.children}function e8(t,e){this.props=t,this.context=e}function e6(t,e){if(null==e)return t.__?e6(t.__,t.__.__k.indexOf(t)+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?e6(t):null}function e9(t){(!t.__d&&(t.__d=!0)&&eK.push(t)&&!e7.__r++||eQ!==eq.debounceRendering)&&((eQ=eq.debounceRendering)||setTimeout)(e7)}function e7(){for(var t;e7.__r=eK.length;)t=eK.sort(function(t,e){return t.__v.__b-e.__v.__b}),eK=[],t.some(function(t){var e,n,r,i,o;t.__d&&(i=(r=t.__v).__e,(o=t.__P)&&(e=[],(n=e2({},r)).__v=r.__v+1,na(o,r,n,t.__n,void 0!==o.ownerSVGElement,null!=r.__h?[i]:null,e,null==i?e6(r):i,r.__h),ns(e,r),r.__e!=i&&function t(e){var n,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(r=e.__k[n])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return t(e)}}(r)))})}function nt(t,e,n,r,i,o,a,s,l,u){var c,h,f,p,d,m,g,y=r&&r.__k||e0,v=y.length;for(n.__k=[],c=0;c<e.length;c++)if(null!=(p=n.__k[c]=null==(p=e[c])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?e5(null,p,null,null,p):Array.isArray(p)?e5(e4,{children:p},null,null,null):p.__b>0?e5(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(f=y[c])||f&&p.key==f.key&&p.type===f.type)y[c]=void 0;else for(h=0;h<v;h++){if((f=y[h])&&p.key==f.key&&p.type===f.type){y[h]=void 0;break}f=null}na(t,p,f=f||eJ,i,o,a,s,l,u),d=p.__e,(h=p.ref)&&f.ref!=h&&(g||(g=[]),f.ref&&g.push(f.ref,null,p),g.push(h,p.__c||d,p)),null!=d?(null==m&&(m=d),"function"==typeof p.t
vendor: 7,478 bytes, line 24
24ype&&p.__k===f.__k?p.__d=l=function t(e,n,r){for(var i,o=e.__k,a=0;o&&a<o.length;a++)(i=o[a])&&(i.__=e,n="function"==typeof i.type?t(i,n,r):ne(r,i,i,o,i.__e,n));return n}(p,l,t):l=ne(t,p,f,y,d,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=t&&(l=e6(f))}for(n.__e=m,c=v;c--;)null!=y[c]&&function t(e,n,r){var i,o;if(eq.unmount&&eq.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||nl(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){eq.__e(t,n)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&t(i[o],n,r||"function"!=typeof e.type);r||null==e.__e||e3(e.__e),e.__=e.__e=e.__d=void 0}(y[c],y[c]);if(g)for(c=0;c<g.length;c++)nl(g[c],g[++c],g[++c])}function ne(t,e,n,r,i,o){var a,s,l;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function nn(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||e1.test(e)?n:n+"px"}function nr(t,e,n,r,i){var o;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||nn(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||nn(t.style,e,n[e])}}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase() in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r||t.addEventListener(e,o?no:ni,o):t.removeEventListener(e,o?no:ni,o);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function ni(t){this.l[t.type+!1](eq.event?eq.event(t):t)}function no(t){this.l[t.type+!0](eq.event?eq.event(t):t)}function na(t,e,n,r,i,o,a,s,l){var u,c,h,f,p,d,m,g,y,v,_,b,w,x,S,P=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,s=e.__e=n.__e,e.__h=null,o=[s]),(u=eq.__b)&&u(e);try{t:if("function"==typeof P){if(g=e.props,y=(u=P.contextType)&&r[u.__c],v=u?y?y.props.value:u.__:r,n.__c?m=(c=e.__c=n.__c).__=c.__E:("prototype"in P&&P.prototype.render?e.__c=c=new P(g,v):(e.__c=c=new e8(g,v),c.constructor=P,c.render=nu),y&&y.sub(c),c.props=g,c.state||(c.state={}),c.context=v,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=P.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=e2({},c.__s)),e2(c.__s,P.getDerivedStateFromProps(g,c.__s))),f=c.props,p=c.state,h)null==P.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==P.getDerivedStateFromProps&&g!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,v),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,v)||e.__v===n.__v){for(c.props=g,c.state=c.__s,e.__v!==n.__v&&(c.__d=!1),c.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(t){t&&(t.__=e)}),_=0;_<c._sb.length;_++)c.__h.push(c._sb[_]);c._sb=[],c.__h.length&&a.push(c);break t}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,v),null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(f,p,d)})}if(c.context=v,c.props=g,c.__v=e,c.__P=t,b=eq.__r,w=0,"prototype"in P&&P.prototype.render){for(c.state=c.__s,c.__d=!1,b&&b(e),u=c.render(c.props,c.state,c.context),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[]}else do c.__d=!1,b&&b(e),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++w<25);c.state=c.__s,null!=c.getChildContext&&(r=e2(e2({},r),c.getChildContext())),h||null==c.getSnapshotBeforeUpdate||(d=c.getSnapshotBeforeUpdate(f,p)),S=null!=u&&u.type===e4&&null==u.key?u.props.children:u,nt(t,Array.isArray(S)?S:[S],e,n,r,i,o,a,s,l),c.base=e.__e,e.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==o&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=function(t,e,n,r,i,o,a,s){var l,u,c,h=n.props,f=e.props,p=e.type,d=0;if("svg"===p&&(i=!0),null!=o){for(;d<o.length;d++)if((l=o[d])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){t=l,o[d]=null;break}}if(null==t){if(null===p)return document.createTextNode(f);t=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),o=null,s=!1}if(null===p)h===f||s&&t.data===f||(t.data=f);else{if(o=o&&eY.call(t.childNodes),u=(h=n.props||eJ).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!s){if(null!=o)for(h={},d=0;d<t.attributes.length;d++)h[t.attributes[d].name]=t.attributes[d].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(function(t,e,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in e||nr(t,o,null,n[o],r);for(o in e)i&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===e[o]||nr(t,o,e[o],n[o],r)}(t,f,h,i,s),c)e.__k=[];else if(nt(t,Array.isArray(d=e.props.children)?d:[d],e,n,r,i&&"foreignObject"!==p,o,a,o?o[0]:n.__k&&e6(n,0),s),null!=o)for(d=o.length;d--;)null!=o[d]&&e3(o[d]);s||("value"in f&&void 0!==(d=f.value)&&(d!==t.value||"progress"===p&&!d||"option"===p&&d!==h.value)&&nr(t,"value",d,h.value,!1),"checked"in f&&void 0!==(d=f.checked)&&d!==t.checked&&nr(t,"checked",d,h.checked,!1))}return t}(n.__e,e,n,r,i,o,a,l);(u=eq.diffed)&&u(e)}catch(t){e.__v=null,(l||null!=o)&&(e.__e=s,e.__h=!!l,o[o.indexOf(s)]=null),eq.__e(t,e,n)}}function ns(t,e){eq.__c&&eq.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){eq.__e(t,e.__v)}})}function nl(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){eq.__e(t,n)}}function nu(t,e,n){return this.constructor(t,n)}function nc(t,e,n){var r,i,o,a=e2({},t.props);for(o in e)"key"==o?r=e[o]:"ref"==o?i=e[o]:a[o]=e[o];return arguments.length>2&&(a.children=arguments.length>3?eY.call(arguments,2):n),e5(t.type,a,r||t.key,i||t.ref,null)}function nh(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 nf(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 np(t){return(np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}eY=e0.slice,eq={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},eX=0,e8.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=e2({},this.state),"function"==typeof t&&(t=t(e2({},n),this.props)),t&&e2(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),e9(this))},e8.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),e9(this))},e8.prototype.render=e4,eK=[],e7.__r=0;var nd=function(t){if("object"!==np(t))return t;var e,n=nc(t);return n.props&&(n.props=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
24e%2?nf(Object(n),!0).forEach(function(e){var r,i;r=e,i=n[e],(r=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n.props),null!=n&&null!==(e=n.props)&&void 0!==e&&e.children&&(n.props.children=Array.isArray(n.props.children)?n.props.children.map(nd):nd(n.props.children))),n},nm=function(t){var e;return null!=(e=nc(t))&&void 0===e.constructor},ng=function(t,e){var n,r,i,o,a;delete e.__k,n=nd(t),eq.__&&eq.__(n,e),o=(i="function"==typeof r)?null:r&&r.__k||e.__k,a=[],na(e,n=(!i&&r||e).__k=function(t,e,n){var r,i,o,a={};for(o in e)"key"==o?r=e[o]:"ref"==o?i=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?eY.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===a[o]&&(a[o]=t.defaultProps[o]);return e5(t,a,r,i,null)}(e4,null,[n]),o||eJ,eJ,void 0!==e.ownerSVGElement,!i&&r?[r]:o?null:e.firstChild?eY.call(e.childNodes):null,a,!i&&r?r:o?o.__e:e.firstChild,i),ns(a,n)};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.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 ny=(0,ec.Z)({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.style,o="string"==typeof(n=t&&"object"===np(t)&&t.node&&"function"==typeof t.node?t.node():t)?new e$([[document.querySelector(n)]],[document.documentElement]):new e$([[n]],eG);"static"===o.style("position")&&o.style("position","relative"),e.tooltipEl=o.append("div").attr("class","float-tooltip-kap"),Object.entries(void 0===i?{}:i).forEach(function(t){var n=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,2)||function(t,e){if(t){if("string"==typeof t)return nh(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)?nh(t,e):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n[1];return e.tooltipEl.style(r,i)}),e.tooltipEl.style("left","-10000px").style("display","none");var a="tooltip-".concat(Math.round(1e12*Math.random()));e.mouseInside=!1,o.on("mousemove.".concat(a),function(t){e.mouseInside=!0;var n=function(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 i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}(t),r=o.node(),i=r.offsetWidth,a=r.offsetHeight,s=[null===e.offsetX||void 0===e.offsetX?"-".concat(n[0]/i*100,"%"):"number"==typeof e.offsetX?"calc(-50% + ".concat(e.offsetX,"px)"):e.offsetX,null===e.offsetY||void 0===e.offsetY?a>130&&a-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")}),o.on("mouseover.".concat(a),function(){e.mouseInside=!0,e.content&&e.tooltipEl.style("display","inline")}),o.on("mouseout.".concat(a),function(){e.mouseInside=!1,e.tooltipEl.style("display","none")})},update:function(t){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):nm(t.content)?(t.tooltipEl.text(""),ng(t.content,t.tooltipEl.node())):(t.tooltipEl.style("display","none"),console.warn("Tooltip content is invali
24d, skipping.",t.content,t.content.toString())):t.tooltipEl.text("")}});function nv(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 n_(t){return function(t){if(Array.isArray(t))return nv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||nb(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nb(t,e){if(t){if("string"==typeof t)return nv(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)?nv(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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.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 nw=window.THREE?window.THREE:{WebGLRenderer:m.CP7,Scene:f.xsS,PerspectiveCamera:f.cPb,Raycaster:f.iMs,SRGBColorSpace:f.KI_,TextureLoader:f.dpR,Vector2:f.FM8,Vector3:f.Pa4,Box3:f.ZzF,Color:f.Ilk,Mesh:f.Kj0,SphereGeometry:f.xo$,MeshBasicMaterial:f.vBJ,BackSide:f._Li,Clock:f.SUY},nx=(0,ec.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 i=r.find(function(e){return t.hoverFilter(e.object)})||null;n=i?i.object:null,t.intersection=i||null}n!==t.hoverObj&&(t.onHover(n,t.hoverObj,t.intersection),t.tooltip.content(n&&(0,eu.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 i=t.camera;if(e&&t.initialised){var o=n||{x:0,y:0,z:0};if(r){var a=Object.assign({},i.position),s=c();t.tweenGroup.add(new el.kX(a).to(e,r).easing(el.oY.Quadratic.Out).onUpdate(l).start()),t.tweenGroup.add(new el.kX(s).to(o,r/3).easing(el.oY.Quadratic.Out).onUpdate(u).start())}else l(e),u(o);return this}return Object.assign({},i.position,{lookAt:c()});function l(t){var e=t.x,n=t.y,r=t.z;void 0!==e&&(i.position.x=e),void 0!==n&&(i.position.y=n),void 0!==r&&(i.position.z=r)}function u(e){var n=new nw.Vector3(e.x,e.y,e.z);t.controls.target?t.controls.target=n:i.lookAt(n)}function c(){return Object.assign(new nw.Vector3(0,0,-1e3).applyQuaternion(i.quaternion).add(i.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,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return this.fitToBbox(this.getBbox.apply(this,i),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,i=t.camera;if(e){var o=new nw.Vector3(0,0,0),a=2*Math.max.apply(Math,n_(Object.entries(e).map(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}
24finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,2)||nb(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0],r=e[1];return Math.max.apply(Math,n_(r.map(function(t){return Math.abs(o[n]-t)})))})))/Math.atan((1-2*r/t.height)*i.fov*Math.PI/180),s=a/i.aspect,l=Math.max(a,s);if(l>0){var u=o.clone().sub(i.position).normalize().multiplyScalar(-l);this.cameraPosition(u,o,n)}}return this},getBbox:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new nw.Box3(new nw.Vector3(0,0,0),new nw.Vector3(0,0,0)),r=t.objects.filter(e);return r.length?(r.forEach(function(t){return n.expandByObject(t)}),Object.assign.apply(Object,n_(["x","y","z"].map(function(t){var e,r,i,o;return e={},r=t,i=[n.min[t],n.max[t]],(r="symbol"==typeof(o=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:o+"")in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e})))):null},getScreenCoords:function(t,e,n,r){var i=new nw.Vector3(e,n,r);return i.project(this.camera()),{x:(i.x+1)*t.width/2,y:-(i.y-1)*t.height/2}},getSceneCoords:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new nw.Vector2(e/t.width*2-1,-(n/t.height*2)+1),o=new nw.Raycaster;return o.setFromCamera(i,t.camera),Object.assign({},o.ray.at(r,new nw.Vector3))},intersectingObjects:function(t,e,n){var r=new nw.Vector2(e/t.width*2-1,-(n/t.height*2)+1),i=new nw.Raycaster;return i.params.Line.threshold=t.lineHoverPrecision,i.params.Points.threshold=t.pointsHoverPrecision,i.setFromCamera(r,t.camera),i.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 nw.Scene,camera:new nw.PerspectiveCamera,clock:new nw.Clock,tweenGroup:new el.ZA,lastRaycasterCheck:0}},init:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.useWebGPU,a=n.rendererConfig,s=n.extraRenderers,l=n.waitForLoadComplete;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"})[i]||"",e.navInfo.style.display=e.showNavInfo?null:"none",e.tooltip=new ny(e.container),e.pointerPos=new nw.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,i,o,a=(r=e.container.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,{top:r.top+o,left:r.left+i});e.pointerPos.x=n.pageX-a.left,e.pointerPos.y=n.pageY-a.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(void 0!==o&&o?g.p9q:nw.WebGLRenderer)(Object.assign({antialias:!0,alpha:!0},void 0===a?{}:a)),e.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),e.container.appendChild(e.renderer.domElement),e.extraRenderers=void 0===s?[]:s,e.extraRenderers.forEac
24h(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 tj(e.renderer),e.postProcessingComposer.addPass(new tR(e.scene,e.camera)),e.controls=new({trackball:C,orbit:te,fly:tg})[i](e.camera,e.renderer.domElement),"fly"===i&&(e.controls.movementSpeed=300,e.controls.rollSpeed=Math.PI/6,e.controls.dragToLook=!0),("trackball"===i||"orbit"===i)&&(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(n_(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 nw.Mesh),e.skysphere.visible=!1,e.loadComplete=e.scene.visible=!(void 0===l||l),window.scene=e.scene},update:function(t,e){if(t.width&&t.height&&(e.hasOwnProperty("width")||e.hasOwnProperty("height"))){var n,r=t.width,i=t.height;t.container.style.width="".concat(r,"px"),t.container.style.height="".concat(i,"px"),[t.renderer,t.postProcessingComposer].concat(n_(t.extraRenderers)).forEach(function(t){return t.setSize(r,i)}),t.camera.aspect=r/i;var o=t.viewOffset.slice(0,2);o.some(function(t){return t})&&(n=t.camera).setViewOffset.apply(n,[r,i].concat(n_(o),[r,i])),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(n_(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 nw.SphereGeometry(t.skyRadius)),e.hasOwnProperty("backgroundColor")){var c=t4(t.backgroundColor).alpha;void 0===c&&(c=1),t.renderer.setClearColor(new nw.Color(es(1,t.backgroundColor)),c)}function h(){t.loadComplete=t.scene.visible=!0}e.hasOwnProperty("backgroundImageUrl")&&(t.backgroundImageUrl?new nw.TextureLoader().load(t.backgroundImageUrl,function(e){e.colorSpace=nw.SRGBColorSpace,t.skysphere.material=new nw.MeshBasicMaterial({map:e,side:nw.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 nS(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 nP(t,e,n){var r;return(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nH(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 nO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nH(Object(n),!0).forEach(function(e){nP(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nH(Object(n)).forEac
24h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function nM(t){return function(t){if(Array.isArray(t))return nS(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 nS(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)?nS(t,e):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nE(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],i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r[e].apply(r,o);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],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".scene-container .clickable {\n cursor: pointer;\n}");var nT=["rendererConfig","waitForGlobeReady"],nA=nO(nO({},window.THREE?window.THREE:{AmbientLight:f.Mig,DirectionalLight:f.Ox3,Vector2:f.FM8,REVISION:f.UZH}),{},{CSS2DRenderer:p.M}),nC=nE("globe",d.Z),nk=Object.assign.apply(Object,nM(["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","objectThreeOb
24ject","customLayerData","customThreeObject","customThreeObjectUpdate"].map(function(t){return nP({},t,nC.linkProp(t))}))),nj=Object.assign.apply(Object,nM(["globeMaterial","getGlobeRadius","getCoords","toGeoCoords"].map(function(t){return nP({},t,nC.linkMethod(t))}))),nR=nE("renderObjs",nx),nD=Object.assign.apply(Object,nM(["width","height","backgroundColor","backgroundImageUrl","enablePointerInteraction"].map(function(t){return nP({},t,nR.linkProp(t))}))),nL=Object.assign.apply(Object,nM(["lights","postProcessingComposer"].map(function(t){return nP({},t,nR.linkMethod(t))}))),nI=(0,ec.Z)({props:nO(nO({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}))}}},nk),nD),methods:nO(nO({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)},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=t.globe.toGeoCoords(t.renderObjs.cameraPosition());if(void 0===e.lat&&void 0===e.lng&&void 0===e.altitude)return r;var i=Object.assign({},r,e);if(["lat","lng","altitude"].forEach(function(t){return i[t]=+i[t]}),n){for(;r.lng-i.lng>180;)r.lng-=360;for(;r.lng-i.lng<-180;)r.lng+=360;t.tweenGroup.add(new el.kX(r).to(i,n).easing(el.oY.Cubic.InOut).onUpdate(o).start())}else o(i);return this;function o(e){var n=e.lat,r=e.lng,i=e.altitude;t.renderObjs.cameraPosition(t.globe.getCoords(n,r,i)),t.globe.setPointOfVie
24w(t.renderObjs.camera())}},getScreenCoords:function(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=(e=t.globe).getCoords.apply(e,r);return t.renderObjs.getScreenCoords(o.x,o.y,o.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 i=t.globe.toGeoCoords(r.point);return{lat:i.lat,lng:i.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([])}},nj),nL),stateInit:function(t){var e=t.rendererConfig,n=t.waitForGlobeReady,r=void 0===n||n,i=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,nT),o=new d.Z(nO({waitForGlobeReady:r},i));return{globe:o,renderObjs:nx({controlType:"orbit",rendererConfig:e,waitForLoadComplete:r,extraRenderers:[new nA.CSS2DRenderer]}).skyRadius(500*o.getGlobeRadius()).showNavInfo(!1).objects([o]).lights([new nA.AmbientLight(13421772,Math.PI),new nA.DirectionalLight(16777215,.6*Math.PI)]),tweenGroup:new el.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 nA.Vector2)),this.pointOfView({altitude:2.5});var i=e.globe.getGlobeRadius(),o=e.renderObjs.controls();e.renderObjs.camera().near=.05,o.minDistance=i+Math.max(.001,1.1*e.renderObjs.camera().near),o.maxDistance=100*i,o.enablePan=!1,o.enableDamping=!0,o.dampingFactor=.1,o.rotateSpeed=.3,o.zoomSpeed=.3,o.zoomToCursor=!0,o.addEventListener("change",function(){o.target.setScalar(0);var t=n.pointOfView();o.rotateSpeed=.3*t.altitude,o.zoomSpeed=.5*Math.sqrt(t.altitude),e.globe.setPointOfVie
24w(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[e.index]:t},label:function(t){return t},object:function(t){return t},custom:function(t){return t}};nA.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 i=s.hasOwnProperty(r)&&n.__data?s[r](n.__data):null;return!(["points","hexBinPoints"].some(function(t){return t===r})&&Array.isArray(i))&&e.pointerEventsFilter(n,i)}).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},i=a(t),o=i&&i.__globeObjType;return i&&o&&r.hasOwnProperty(o)&&s.hasOwnProperty(o)&&(0,eu.Z)(r[o])(s[o](i.__data,n))||""}).onHover(function(t,n,r){var i={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},o={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&&!i.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&&i[u]&&i[u](null,c||null),h&&i[h]&&i[h](f,u===h?c:null),e.renderObjs.renderer().domElement.classList[h&&o[h]?"add":"remove"]("clickable"),e.hoverObj=l,e.hoverData=f}}).onClick(function(t,r,i){if(t){var o={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&&o.hasOwnProperty(u)&&o[u]){var c=[r],h=null!=i&&i.isVector3?i:null==i?void 0:i.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,i)),o[u].apply(o,c)}}}).onRightClick(function(t,r,i){if(t){var o={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&&o.hasOwnProperty(u)&&o[u]){var c=[r],h=null!=i&&i.isVector3?i:null==i?void 0:i.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,i)),o[u].apply(o,c)}}}),this._animationCycle()}}),nz=n(45697),nU={width:nz.number,height:nz.number,globeOffset:nz.arrayOf(nz.number),backgroundColor:nz.string,backgroundImageUrl:nz.string,globeImageUrl:nz.string,bumpImageUrl:nz.string,globeTileEngineUrl:nz.func,showGlobe:nz.bool,showGraticules:nz.bool,showAtmosphere:nz.bool,atmosphereColor:nz.string,atmosphereAltitude:nz.number,globeMaterial:nz.object,onGlobeReady:nz.func,onGlobeClick:nz.func,onGlobeRightClick:nz.func,pointsData:nz.arrayOf(nz.object),pointLat:nz.oneOfType([nz.number,nz.string,nz.func]),pointLng:nz.oneOfType([nz.number,nz.string,nz.func]),pointColor:nz.oneOfType([nz.string,nz.func]),pointAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),pointRadius:nz.oneOfType([nz.number,nz.string,nz.func]),pointResolution:nz.number,pointsMerge:nz.bool,pointsTransitionDuration:nz.number,pointLabel:nz.oneOfType([nz.string,nz.func]),onPointClick:nz.func,onPointRightClick:nz.func,onPointHover:nz.func,arcsData:nz.arrayOf(nz.object),arcStartLat:nz.oneOfType([nz.number,nz.string,nz.func]),arcStartLng:nz.oneOfType([nz.number,nz.string,nz.func]),arcEndLat:nz.oneOfType([nz.number,nz.string,nz.func]),arcEndLng:nz.oneOfType([nz.number,nz.string,nz.func]),arcColor:nz.oneOfType([nz.string,nz.arrayOf(nz.string),nz.func]),arcAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),arcAltitudeAutoScale:nz.oneOfType([nz.number,nz.string,nz.func]),arcStroke:nz.oneOfType([nz.number,nz.string,nz.func]),arcCurveResolution:nz.number,arcCircularResolution:nz.number,arcDashLength:nz.oneOfType([nz.number,nz.string,nz.func]),arcDashGap:nz.oneOfType([nz.number,nz.string,nz.func]),arcDashInitialGap:nz.oneOfType([nz.number,nz.string,nz.func]),arcDashAnimateTime:nz.oneOfType([nz.number,nz.string,nz.func]),arcsTransitionDuration:nz.number,arcLabel:nz.oneOfType([nz.string,nz.func]),onArcClick:nz.func,onArcRightClick:nz.func,onArcHover:nz.func,polygonsData:nz.arrayOf(nz.object),polygonGeoJsonGeometry:nz.oneOfType([nz.string,nz.func]),polygonCapColor:nz.oneOfType([nz.string,nz.func]),polygonCapMaterial:nz.oneOfType([nz.object,nz.string,nz.func]),polygonSideColor:nz.oneOfType([nz.string,nz.func]),polygonSideMaterial:nz.oneOfType([nz.object,nz.string,nz.func]),polygonStrokeColor:nz.oneOfType([nz.string,nz.func]),polygonAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),polygonCapCurvatureResolution:nz.oneOfType([nz.number,nz.string,nz.func]),polygonsTransitionDuration:nz.number,polygonLabel:nz.oneOfType([nz.string,nz.func]),onPolygonClick:nz.func,onPolygonRightClick:nz.func,onPolygonHover:nz.func,pathsData:nz.array,pathPoints:nz.oneOfType([nz.array,nz.string,nz.func]),pathPointLat:nz.oneOfType([nz.number,nz.string,nz.func]),pathPointLng:nz.oneOfType([nz.number,nz.string,nz.func]),pathPointAlt:nz.oneOfType([nz.number,nz.string,nz.func]),pathResolution:nz.number,pathColor:nz.oneOfType([nz.string,nz.arrayOf(nz.string),nz.func]),pathStroke:nz.oneOfType([nz.number,nz.string,nz.func]),pathDashLength:nz.oneOfType([nz.number,nz.string,nz.func]),pathDashGap:nz.oneOfType([nz.number,nz.string,nz.func]),pathDashInitialGap:nz.oneOfType([nz.number,nz.string,nz.func]),pathDashAnimateTime:nz.oneOfType([nz.number,nz.string,nz.func]),pathTransitionDuration:nz.number,pathLabel:nz.oneOfType([nz.string,nz.func]),onPathClick:nz.func,onPathRightClick:nz.func,onPathHover:nz.func,heatmapsData:nz.array,heatmapPoints:nz.oneOfType([nz.array,nz.string,nz.func]),heatmapPointLat:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapPointLng:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapPointWeight:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapBandwidth:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapColorFn:nz.oneOfType([nz.string,nz.func]),heatmapColorSaturation:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapBaseAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapTopAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),heatmapsTransitionDuration:nz.number,onHeatmapClick:nz.func,onHeatmapRightClick:nz.func,onHeatmapHover:nz.func,hexBinPointsData:nz.arrayOf(nz.object),hexBinPointLat:nz.oneOfType([nz.number,nz.string,nz.func]),hexBinPointLng:nz.oneOfType([nz.number,nz.string,nz.func]),hexBinPointWeight:nz.oneOfType([nz.number,nz.string,nz.func]),hexBinRes
24olution:nz.number,hexMargin:nz.oneOfType([nz.number,nz.func]),hexTopColor:nz.func,hexSideColor:nz.func,hexAltitude:nz.oneOfType([nz.number,nz.func]),hexTopCurvatureResolution:nz.number,hexBinMerge:nz.bool,hexTransitionDuration:nz.number,hexLabel:nz.oneOfType([nz.string,nz.func]),onHexClick:nz.func,onHexRightClick:nz.func,onHexHover:nz.func,hexPolygonsData:nz.arrayOf(nz.object),hexPolygonGeoJsonGeometry:nz.oneOfType([nz.string,nz.func]),hexPolygonColor:nz.oneOfType([nz.string,nz.func]),hexPolygonAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),hexPolygonResolution:nz.oneOfType([nz.number,nz.string,nz.func]),hexPolygonMargin:nz.oneOfType([nz.number,nz.string,nz.func]),hexPolygonUseDots:nz.oneOfType([nz.bool,nz.string,nz.func]),hexPolygonCurvatureResolution:nz.oneOfType([nz.number,nz.string,nz.func]),hexPolygonDotResolution:nz.oneOfType([nz.number,nz.string,nz.func]),hexPolygonsTransitionDuration:nz.number,hexPolygonLabel:nz.oneOfType([nz.string,nz.func]),onHexPolygonClick:nz.func,onHexPolygonRightClick:nz.func,onHexPolygonHover:nz.func,tilesData:nz.arrayOf(nz.object),tileLat:nz.oneOfType([nz.number,nz.string,nz.func]),tileLng:nz.oneOfType([nz.number,nz.string,nz.func]),tileAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),tileWidth:nz.oneOfType([nz.number,nz.string,nz.func]),tileHeight:nz.oneOfType([nz.number,nz.string,nz.func]),tileUseGlobeProjection:nz.oneOfType([nz.bool,nz.string,nz.func]),tileMaterial:nz.oneOfType([nz.object,nz.string,nz.func]),tileCurvatureResolution:nz.oneOfType([nz.number,nz.string,nz.func]),tilesTransitionDuration:nz.number,tileLabel:nz.oneOfType([nz.string,nz.func]),onTileClick:nz.func,onTileRightClick:nz.func,onTileHover:nz.func,particlesData:nz.arrayOf(nz.object),particlesList:nz.oneOfType([nz.string,nz.func]),particleLat:nz.oneOfType([nz.number,nz.string,nz.func]),particleLng:nz.oneOfType([nz.number,nz.string,nz.func]),particleAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),particlesSize:nz.oneOfType([nz.number,nz.string,nz.func]),particlesSizeAttenuation:nz.oneOfType([nz.bool,nz.string,nz.func]),particlesColor:nz.oneOfType([nz.string,nz.func]),particlesTexture:nz.oneOfType([nz.string,nz.func]),particleLabel:nz.oneOfType([nz.string,nz.func]),onParticleClick:nz.func,onParticleRightClick:nz.func,onParticleHover:nz.func,ringsData:nz.arrayOf(nz.object),ringLat:nz.oneOfType([nz.number,nz.string,nz.func]),ringLng:nz.oneOfType([nz.number,nz.string,nz.func]),ringAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),ringColor:nz.oneOfType([nz.string,nz.arrayOf(nz.string),nz.func]),ringResolution:nz.number,ringMaxRadius:nz.oneOfType([nz.number,nz.string,nz.func]),ringPropagationSpeed:nz.oneOfType([nz.number,nz.string,nz.func]),ringRepeatPeriod:nz.oneOfType([nz.number,nz.string,nz.func]),labelsData:nz.arrayOf(nz.object),labelLat:nz.oneOfType([nz.number,nz.string,nz.func]),labelLng:nz.oneOfType([nz.number,nz.string,nz.func]),labelAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),labelRotation:nz.oneOfType([nz.number,nz.string,nz.func]),labelText:nz.oneOfType([nz.string,nz.func]),labelSize:nz.oneOfType([nz.number,nz.string,nz.func]),labelTypeFace:nz.object,labelColor:nz.oneOfType([nz.string,nz.func]),labelResolution:nz.number,labelIncludeDot:nz.oneOfType([nz.bool,nz.string,nz.func]),labelDotRadius:nz.oneOfType([nz.number,nz.string,nz.func]),labelDotOrientation:nz.oneOfType([nz.string,nz.func]),labelsTransitionDuration:nz.number,labelLabel:nz.oneOfType([nz.string,nz.func]),onLabelClick:nz.func,onLabelRightClick:nz.func,onLabelHover:nz.func,htmlElementsData:nz.arrayOf(nz.object),htmlLat:nz.oneOfType([nz.number,nz.string,nz.func]),htmlLng:nz.oneOfType([nz.number,nz.string,nz.func]),htmlAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),htmlElement:nz.oneOfType([nz.string,nz.func]),htmlElementVisibilityModifier:nz.func,htmlTransitionDuration:nz.number,objectsData:nz.arrayOf(nz.object),objectLat:nz.oneOfType([nz.number,nz.string,nz.func]),objectLng:nz.oneOfType([nz.number,nz.string,nz.func]),objectAltitude:nz.oneOfType([nz.number,nz.string,nz.func]),objectRotation:nz.oneOfType([nz.shape({x:nz.number,y:nz.number,z:nz.number}),nz.string,nz.func]),objectFacesSurface:nz.oneOfType([nz.bool,nz.string,nz.func]),objectThreeOb
24ject:nz.oneOfType([nz.object,nz.string,nz.func]),objectLabel:nz.oneOfType([nz.string,nz.func]),onObjectClick:nz.func,onObjectRightClick:nz.func,onObjectHover:nz.func,customLayerData:nz.arrayOf(nz.object),customThreeObject:nz.oneOfType([nz.object,nz.string,nz.func]),customThreeObjectUpdate:nz.oneOfType([nz.string,nz.func]),customLayerLabel:nz.oneOfType([nz.string,nz.func]),onCustomLayerClick:nz.func,onCustomLayerRightClick:nz.func,onCustomLayerHover:nz.func,enablePointerInteraction:nz.bool,pointerEventsFilter:nz.func,lineHoverPrecision:nz.number,onZoom:nz.func},nN=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.wrapperElementType,i=void 0===n?"div":n,o=e.nodeMapper,a=void 0===o?function(t){return t}:o,l=e.methodNames,c=void 0===l?[]:l,f=e.initPropNames,p=void 0===f?[]:f;return(0,r.forwardRef)(function(e,n){var o=(0,r.useRef)(),l=(0,r.useMemo)(function(){return t(Object.fromEntries(p.filter(function(t){return e.hasOwnProperty(t)}).map(function(t){return[t,e[t]]})))},[]);h(function(){l(a(o.current))},r.useLayoutEffect),h(function(){return l._destructor instanceof Function?l._destructor:void 0});var f=(0,r.useCallback)(function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return l[t]instanceof Function?l[t].apply(l,n):void 0},[l]),d=(0,r.useRef)({});return Object.keys(s(e,[].concat(u(c),u(p)))).filter(function(t){return d.current[t]!==e[t]}).forEach(function(t){return f(t,e[t])}),d.current=e,(0,r.useImperativeHandle)(n,function(){return Object.fromEntries(c.map(function(t){return[t,function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return f.apply(void 0,[t].concat(n))}]}))},[f]),r.createElement(i,{ref:o})})}(nI,{methodNames:["pauseAnimation","resumeAnimation","pointOfView","lights","scene","camera","renderer","postProcessingComposer","controls","getGlobeRadius","getCoords","getScreenCoords","toGeoCoords","toGlobeCoords"],initPropNames:["animateIn","waitForGlobeReady","rendererConfig"]});nN.displayName="Globe",nN.propTypes=nU},2833:function(t,e,n){"use strict";n.d(e,{Z:function(){return nt}});var r,i,o,a,s,l,u,c,h,f,p,d,m,g,y,v,_,b,w,x,S,P,H,O,M,E,T,A=n(74250);function C(t){return Array.from(function*(t){for(let e of t)yield*e}(t))}function k(t,e){let n,r;if(void 0===e)for(let e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}var j=n(70442);let R=(3+8881784197001252e-31)*11102230246251565e-32;function D(t,e,n,r,i){let o,a,s,l;let u=e[0],c=r[0],h=0,f=0;c>u==c>-u?(o=u,u=e[++h]):(o=c,c=r[++f]);let p=0;if(h<t&&f<n)for(c>u==c>-u?(a=u+o,s=o-(a-u),u=e[++h]):(a=c+o,s=o-(a-c),c=r[++f]),o=a,0!==s&&(i[p++]=s);h<t&&f<n;)c>u==c>-u?(l=(a=o+u)-o,s=o-(a-l)+(u-l),u=e[++h]):(l=(a=o+c)-o,s=o-(a-l)+(c-l),c=r[++f]),o=a,0!==s&&(i[p++]=s);for(;h<t;)l=(a=o+u)-o,s=o-(a-l)+(u-l),u=e[++h],o=a,0!==s&&(i[p++]=s);for(;f<n;)l=(a=o+c)-o,s=o-(a-l)+(c-l),c=r[++f],o=a,0!==s&&(i[p++]=s);return(0!==o||0===p)&&(i[p++]=o),p}function L(t){return new Float64Array(t)}let I=(3+17763568394002505e-31)*11102230246251565e-32,z=(2+13322676295501878e-31)*11102230246251565e-32,U=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,N=L(4),F=L(8),B=L(12),Z=L(16),W=L(4);function V(t,e,n,r,i,o){let a=(e-o)*(n-i),s=(t-i)*(r-o),l=a-s,u=Math.abs(a+s);return Math.abs(l)>=I*u?l:-function(t,e,n,r,i,o,a){let s,l,u,c,h,f,p,d,m,g,y,v,_,b,w,x,S,P;let H=t-i,O=n-i,M=e-o,E=r-o;b=H*E,p=(f=134217729*H)-(f-H),d=H-p,m=(f=134217729*E)-(f-E),w=d*(g=E-m)-(b-p*m-d*m-p*g),x=M*O,p=(f=134217729*M)-(f-M),d=M-p,m=(f=134217729*O)-(f-O),y=w-(S=d*(g=O-m)-(x-p*m-d*m-p*g)),h=w-y,N[0]=w-(y+h)+(h-S),h=(v=b+y)-b,y=(_=b-(v-h)+(y-h))-x,h=_-y,N[1]=_-(y+h)+(h-x),h=(P=v+y)-v,N[2]=v-(P-h)+(y-h),N[3]=P;let T=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,N),A=z*a;if(T>=A||-T>=A||(h=t-H,s=t-(H+h)+(h-i),h=n-O,u=n-(O+h)+(h-i),h=e-M,l=e-(M+h)+(h-o),h=r-E,c=r-(E+h)+(h-o),0===s&&0===l&&0===u&&0===c)||(A=U*a+R*Math.abs(T),(T+=H*c+E*s-(M*u+O*l))>=A||-T>=A))return T;b=s*E,p=(f=134217729*s)-(f-s),d=s-p,m=(f=134217729*E)-(f-E),w=d*(g=E-m)-(b-p*m-d*m-p*g),x=l*O,p=(f=134217729*l)-(f-l),d=l-p,m=(f=134217729*O)-(f-O),y=w-(S=d*(g=O-m)-(x-p*m-d*m-p*g)),h=w-y,W[0]=w-(y+h)+(h-S),h=(v=b+y)-b,y=(_=b-(v-h)+(y-h))-x,h=_-y,W[1]=_-(y+h)+(h-x),h=(P=v+y)-v,W[2]=v-(P-h)+(y-h),W[3]=P;let C=D(4,N,4,W,F);b=H*c,p=(f=134217729*H)-(f-H),d=H-p,m=(f=134217729*c)-(f-c),w=d*(g=c-m)-(b-p*m-d*m-p*g),x=M*u,p=(f=134217729*M)-(f-M),d=M-p,m=(f=134217729*u)-(f-u),y=w-(S=d*(g=u-m)-(x-p*m-d*m-p*g)),h=w-y,W[0]=w-(y+h)+(h-S),h=(v=b+y)-b,y=(_=b-(v-h)+(y-h))-x,h=_-y,W[1]=_-(y+h)+(h-x),h=(P=v+y)-v,W[2]=v-(P-h)+(y-h),W[3]=P;let k=D(C,F,4,W,B);b=s*c,p=(f=134217729*s)-(f-s),d=s-p,m=(f=134217729*c)-(f-c),w=d*(g=c-m)-(b-p*m-d*m-p*g),x=l*u,p=(f=134217729*l)-(f-l),d=l-p,m=(f=134217729*u)-(f-u),y=w-(S=d*(g=u-m)-(x-p*m-d*m-p*g)),h=w-y,W[0]=w-(y+h)+(h-S),h=(v=b+y)-b,y=(_=b-(v-h)+(y-h))-x,h=_-y,W[1]=_-(y+h)+(h-x),h=(P=v+y)-v,W[2]=v-(P-h)+(y-h),W[3]=P;let j=D(k,B,4,W,Z);return Z[j-1]}(t,e,n,r,i,o,u)}L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(8),L(8),L(8),L(4),L(8),L(8),L(8),L(12),L(192),L(192),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(8),L(8),L(8),L(8),L(8),L(8),L(8),L(8),L(8),L(4),L(4),L(4),L(8),L(16),L(16),L(16),L(32),L(32),L(48),L(64),L(1152),L(1152),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(4),L(24),L(24),L(24),L(24),L(24),L(24),L(24),L(24),L(24),L(24),L(1152),L(1152),L(1152),L(1152),L(1152),L(2304),L(2304),L(3456),L(5760),L(8),L(8),L(8),L(16),L(24),L(48),L(48),L(96),L(192),L(384),L(384),L(384),L(768),L(96),L(96),L(96),L(1152);let G=new Uint32Array(512);class ${static from(t,e=K,n=Q){let r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){let r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new $(i)}constructor(t){let e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw Error("Expected coords to contain numbers.");this.coords=t;let n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){let t,e,n;let{coords:r,_hullPrev:i,_hullNext:o,_hullTri:a,_hullHash:s}=this,l=r.length>>1,u=1/0,c=1/0,h=-1/0,f=-1/0;for(let t=0;t<l;t++){let e=r[2*t],n=r[2*t+1];e<u&&(u=e),n<c&&(c=n),e>h&&(h=e),n>f&&(f=n),this._ids[t]=t}let p=(u+h)/2,d=(c+f)/2;for(let e=0,n=1/0;e<l;e++){let i=Y(p,d,r[2*e],r[2*e+1]);i<n&&(t=e,n=i)}let m=r[2*t],g=r[2*t+1];for(let n=0,i=1/0;n<l;n++){if(n===t)continue;let o=Y(m,g,r[2*n],r[2*n+1]);o<i&&o>0&&(e=n,i=o)}let y=r[2*e],v=r[2*e+1],_=1/0;for(let i=0;i<l;i++){if(i===t||i===e)continue;let o=function(t,e,n,r,i,o){let a=n-t,s=r-e,l=i-t,u=o-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;
24return p*p+d*d}(m,g,y,v,r[2*i],r[2*i+1]);o<_&&(n=i,_=o)}let b=r[2*n],w=r[2*n+1];if(_===1/0){for(let t=0;t<l;t++)this._dists[t]=r[2*t]-r[0]||r[2*t+1]-r[1];q(this._ids,this._dists,0,l-1);let t=new Uint32Array(l),e=0;for(let n=0,r=-1/0;n<l;n++){let i=this._ids[n],o=this._dists[i];o>r&&(t[e++]=i,r=o)}this.hull=t.subarray(0,e),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(0>V(m,g,y,v,b,w)){let t=e,r=y,i=v;e=n,y=b,v=w,n=t,b=r,w=i}let x=function(t,e,n,r,i,o){let a=n-t,s=r-e,l=i-t,u=o-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,g,y,v,b,w);this._cx=x.x,this._cy=x.y;for(let t=0;t<l;t++)this._dists[t]=Y(r[2*t],r[2*t+1],x.x,x.y);q(this._ids,this._dists,0,l-1),this._hullStart=t;let S=3;o[t]=i[n]=e,o[e]=i[t]=n,o[n]=i[e]=t,a[t]=0,a[e]=1,a[n]=2,s.fill(-1),s[this._hashKey(m,g)]=t,s[this._hashKey(y,v)]=e,s[this._hashKey(b,w)]=n,this.trianglesLen=0,this._addTriangle(t,e,n,-1,-1,-1);for(let l=0,u,c;l<this._ids.length;l++){let h=this._ids[l],f=r[2*h],p=r[2*h+1];if(l>0&&2220446049250313e-31>=Math.abs(f-u)&&2220446049250313e-31>=Math.abs(p-c)||(u=f,c=p,h===t||h===e||h===n))continue;let d=0;for(let t=0,e=this._hashKey(f,p);t<this._hashSize&&(-1===(d=s[(e+t)%this._hashSize])||d===o[d]);t++);let m=d=i[d],g;for(;g=o[m],V(f,p,r[2*m],r[2*m+1],r[2*g],r[2*g+1])>=0;)if((m=g)===d){m=-1;break}if(-1===m)continue;let y=this._addTriangle(m,h,o[m],-1,-1,a[m]);a[h]=this._legalize(y+2),a[m]=y,S++;let v=o[m];for(;g=o[v],0>V(f,p,r[2*v],r[2*v+1],r[2*g],r[2*g+1]);)y=this._addTriangle(v,h,g,a[h],-1,a[v]),a[h]=this._legalize(y+2),o[v]=v,S--,v=g;if(m===d)for(;0>V(f,p,r[2*(g=i[m])],r[2*g+1],r[2*m],r[2*m+1]);)y=this._addTriangle(g,h,m,-1,a[m],a[g]),this._legalize(y+2),a[g]=y,o[m]=m,S--,m=g;this._hullStart=i[h]=m,o[m]=i[v]=h,o[h]=v,s[this._hashKey(f,p)]=h,s[this._hashKey(r[2*m],r[2*m+1])]=m}this.hull=new Uint32Array(S);for(let t=0,e=this._hullStart;t<S;t++)this.hull[t]=e,e=o[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){let n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){let{_triangles:e,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let a=n[t],s=t-t%3;if(o=s+(t+2)%3,-1===a){if(0===i)break;t=G[--i];continue}let l=a-a%3,u=s+(t+1)%3,c=l+(a+2)%3,h=e[o],f=e[t],p=e[u],d=e[c];if(function(t,e,n,r,i,o,a,s){let l=t-a,u=e-s,c=n-a,h=r-s,f=i-a,p=o-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}(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;let 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[o]),this._link(o,c);let s=l+(a+1)%3;i<G.length&&(G[i++]=s)}else{if(0===i)break;t=G[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){let a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function Y(t,e,n,r){let i=t-n,o=e-r;return i*i+o*o}function q(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let r=t[i],o=e[r],a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+r>>1,o=n+1,a=r;X(t,i,o),e[t[n]]>e[t[r]]&&X(t,n,r),e[t[o]]>e[t[r]]&&X(t,o,r),e[t[n]]>e[t[o]]&&X(t,n,o);let s=t[o],l=e[s];for(;;){do o++;while(e[t[o]]<l);do a--;while(e[t[a]]>l);if(a<o)break;X(t,o,a)}t[n+1]=t[a],t[a]=s,r-o+1>=a-n?(q(t,e,o,r),q(t,e,n,a-1)):(q(t,e,n,a-1),q(t,e,o,r))}}function X(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function K(t){return t[0]}function Q(t){return t[1]}var J,tt,te,tn,tr,ti=function(t,e,n={}){if(!t)throw Error("point is required");if(!e)throw Error("polygon is required");
24let r=function(t){if(!t)throw Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw Error("coord must be GeoJSON Point or an Array of numbers")}(t),i="Feature"===e.type?e.geometry:e,o=i.type,a=e.bbox,s=i.coordinates;if(a&&!1==(a[0]<=r[0]&&a[1]<=r[1]&&a[2]>=r[0]&&a[3]>=r[1]))return!1;"Polygon"===o&&(s=[s]);let l=!1;for(var u=0;u<s.length;++u){let t=function(t,e){var n,r,i,o,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],g=m.length-1;if((u=m[0])[0]!==m[g][0]&&u[1]!==m[g][1])throw Error("First and last coordinates in a ring must be the same");for(o=u[0]-f,a=u[1]-p;r<g;r++){if(s=(c=m[r+1])[0]-f,l=c[1]-p,0===a&&0===l){if(s<=0&&o>=0||o<=0&&s>=0)return 0}else if(l>=0&&a<=0||l<=0&&a>=0){if(0===(i=V(o,s,a,l,0,0)))return 0;(i>0&&l>0&&a<=0||i<0&&l<=0&&a>0)&&h++}u=c,a=l,o=s}}return h%2!=0}(r,s[u]);if(0===t)return!n.ignoreBoundary;t&&(l=!0)}return l},to=n(266),ta=n(35432),ts=n(56957),tl=new to.dU,tu=new to.dU,tc={point:ts.Z,lineStart:ts.Z,lineEnd:ts.Z,polygonStart:function(){tl=new to.dU,tc.lineStart=th,tc.lineEnd=tf},polygonEnd:function(){var t=+tl;tu.add(t<0?ta.BZ+t:t),this.lineStart=this.lineEnd=this.point=ts.Z},sphere:function(){tu.add(ta.BZ)}};function th(){tc.point=tp}function tf(){td(J,tt)}function tp(t,e){tc.point=td,J=t,tt=e,t*=ta.uR,e*=ta.uR,te=t,tn=(0,ta.mC)(e=e/2+ta.pu),tr=(0,ta.O$)(e)}function td(t,e){t*=ta.uR,e*=ta.uR,e=e/2+ta.pu;var n=t-te,r=n>=0?1:-1,i=r*n,o=(0,ta.mC)(e),a=(0,ta.O$)(e),s=tr*a,l=tn*o+s*(0,ta.mC)(i),u=s*r*(0,ta.O$)(i);tl.add((0,ta.fv)(u,l)),te=t,tn=o,tr=a}function tm(t){return[(0,ta.fv)(t[1],t[0]),(0,ta.ZR)(t[2])]}function tg(t){var e=t[0],n=t[1],r=(0,ta.mC)(n);return[r*(0,ta.mC)(e),r*(0,ta.O$)(e),(0,ta.O$)(n)]}function ty(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function tv(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function t_(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function tb(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tw(t){var e=(0,ta._b)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tx=n(29378),tS={point:tP,lineStart:tO,lineEnd:tM,polygonStart:function(){tS.point=tE,tS.lineStart=tT,tS.lineEnd=tA,h=new to.dU,tc.polygonStart()},polygonEnd:function(){tc.polygonEnd(),tS.point=tP,tS.lineStart=tO,tS.lineEnd=tM,tl<0?(r=-(o=180),i=-(a=90)):h>ta.Ho?a=90:h<-ta.Ho&&(i=-90),p[0]=r,p[1]=o},sphere:function(){r=-(o=180),i=-(a=90)}};function tP(t,e){f.push(p=[r=t,o=t]),e<i&&(i=e),e>a&&(a=e)}function tH(t,e){var n=tg([t*ta.uR,e*ta.uR]);if(c){var l=tv(c,n),u=tv([l[1],-l[0],0],l);tw(u),u=tm(u);var h,d=t-s,m=d>0?1:-1,g=u[0]*ta.RW*m,y=(0,ta.Wn)(d)>180;y^(m*s<g&&g<m*t)?(h=u[1]*ta.RW)>a&&(a=h):y^(m*s<(g=(g+360)%360-180)&&g<m*t)?(h=-u[1]*ta.RW)<i&&(i=h):(e<i&&(i=e),e>a&&(a=e)),y?t<s?tC(r,t)>tC(r,o)&&(o=t):tC(t,o)>tC(r,o)&&(r=t):o>=r?(t<r&&(r=t),t>o&&(o=t)):t>s?tC(r,t)>tC(r,o)&&(o=t):tC(t,o)>tC(r,o)&&(r=t)}else f.push(p=[r=t,o=t]);e<i&&(i=e),e>a&&(a=e),c=n,s=t}function tO(){tS.point=tH}function tM(){p[0]=r,p[1]=o,tS.point=tP,c=null}function tE(t,e){if(c){var n=t-s;h.add((0,ta.Wn)(n)>180?n+(n>0?360:-360):n)}else l=t,u=e;tc.point(t,e),tH(t,e)}function tT(){tc.lineStart()}function tA(){tE(l,u),tc.lineEnd(),(0,ta.Wn)(h)>ta.Ho&&(r=-(o=180)),p[0]=r,p[1]=o,c=null}function tC(t,e){return(e-=t)<0?e+360:e}function tk(t,e){return t[0]-e[0]}function tj(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function tR(t){var e,n,s,l,u,c,h;if(a=o=-(r=i=1/0),f=[],(0,tx.Z)(t,tS),n=f.length){for(f.sort(tk),e=1,u=[s=f[0]];e<n;++e)tj(s,(l=f[e])[0])||tj(s,l[1])?(tC(s[0],l[1])>tC(s[0],s[1])&&(s[1]=l[1]),tC(l[0],s[1])>tC(s[0],s[1])&&(s[0]=l[0])):u.push(s=l);for(c=-1/0,n=u.length-1,e=0,s=u[n];e<=n;s=l,++e)l=u[e],(h=tC(s[1],l[0]))>c&&(c=h,r=l[0],o=s[1])}return f=p=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}var tD=n(70755),tL=n(66116);function tI(t){return(0,ta.Wn)(t[0])<=ta.pi?t[0]:(0,ta.Xx)(t[0])*(((0,ta.Wn)(t[0])+ta.pi)%ta.BZ-ta.pi)}function tz(t,e){var n=tI(e),r=e[1],i=(0,ta.O$)(r),o=[(0,ta.O$)(n),-(0,ta.mC)(n),0],a=0,s=0,l=new to.dU;1===i?r=ta.ou+ta.Ho:-1===i&&(r=-ta.ou-ta.Ho);for(var u=0,c=t.length;u<c;
24++u)if(f=(h=t[u]).length)for(var h,f,p=h[f-1],d=tI(p),m=p[1]/2+ta.pu,g=(0,ta.O$)(m),y=(0,ta.mC)(m),v=0;v<f;++v,d=b,g=x,y=S,p=_){var _=h[v],b=tI(_),w=_[1]/2+ta.pu,x=(0,ta.O$)(w),S=(0,ta.mC)(w),P=b-d,H=P>=0?1:-1,O=H*P,M=O>ta.pi,E=g*x;if(l.add((0,ta.fv)(E*H*(0,ta.O$)(O),y*S+E*(0,ta.mC)(O))),a+=M?P+H*ta.BZ:P,M^d>=n^b>=n){var T=tv(tg(p),tg(_));tw(T);var A=tv(o,T);tw(A);var C=(M^P>=0?-1:1)*(0,ta.ZR)(A[2]);(r>C||r===C&&(T[0]||T[1]))&&(s+=M^P>=0?1:-1)}}return(a<-ta.Ho||a<ta.Ho&&l<-ta.aW)^1&s}var tU={Feature:function(t,e){return tF(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(tF(n[r].geometry,e))return!0;return!1}},tN={Sphere:function(){return!0},Point:function(t,e){return tB(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tB(n[r],e))return!0;return!1},LineString:function(t,e){return tZ(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tZ(n[r],e))return!0;return!1},Polygon:function(t,e){return tW(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tW(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(tF(n[r],e))return!0;return!1}};function tF(t,e){return!!(t&&tN.hasOwnProperty(t.type))&&tN[t.type](t,e)}function tB(t,e){return 0===(0,tD.Z)(t,e)}function tZ(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=(0,tD.Z)(t[o],e))||o>0&&(i=(0,tD.Z)(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<ta.aW*i)return!0;n=r}return!1}function tW(t,e){return!!tz(t.map(tV),tG(e))}function tV(t){return(t=t.map(tG)).pop(),t}function tG(t){return[t[0]*ta.uR,t[1]*ta.uR]}var t$={sphere:ts.Z,point:tY,lineStart:tX,lineEnd:tJ,polygonStart:function(){t$.lineStart=t0,t$.lineEnd=t1},polygonEnd:function(){t$.lineStart=tX,t$.lineEnd=tJ}};function tY(t,e){t*=ta.uR,e*=ta.uR;var n=(0,ta.mC)(e);tq(n*(0,ta.mC)(t),n*(0,ta.O$)(t),(0,ta.O$)(e))}function tq(t,e,n){++d,g+=(t-g)/d,y+=(e-y)/d,v+=(n-v)/d}function tX(){t$.point=tK}function tK(t,e){t*=ta.uR,e*=ta.uR;var n=(0,ta.mC)(e);M=n*(0,ta.mC)(t),E=n*(0,ta.O$)(t),T=(0,ta.O$)(e),t$.point=tQ,tq(M,E,T)}function tQ(t,e){t*=ta.uR,e*=ta.uR;var n=(0,ta.mC)(e),r=n*(0,ta.mC)(t),i=n*(0,ta.O$)(t),o=(0,ta.O$)(e),a=(0,ta.fv)((0,ta._b)((a=E*o-T*i)*a+(a=T*r-M*o)*a+(a=M*i-E*r)*a),M*r+E*i+T*o);m+=a,_+=a*(M+(M=r)),b+=a*(E+(E=i)),w+=a*(T+(T=o)),tq(M,E,T)}function tJ(){t$.point=tY}function t0(){t$.point=t2}function t1(){t3(H,O),t$.point=tY}function t2(t,e){H=t,O=e,t*=ta.uR,e*=ta.uR,t$.point=t3;var n=(0,ta.mC)(e);M=n*(0,ta.mC)(t),E=n*(0,ta.O$)(t),T=(0,ta.O$)(e),tq(M,E,T)}function t3(t,e){t*=ta.uR,e*=ta.uR;var n=(0,ta.mC)(e),r=n*(0,ta.mC)(t),i=n*(0,ta.O$)(t),o=(0,ta.O$)(e),a=E*o-T*i,s=T*r-M*o,l=M*i-E*r,u=(0,ta._m)(a,s,l),c=(0,ta.ZR)(u),h=u&&-c/u;x.add(h*a),S.add(h*s),P.add(h*l),m+=c,_+=c*(M+(M=r)),b+=c*(E+(E=i)),w+=c*(T+(T=o)),tq(M,E,T)}function t5(t){d=m=g=y=v=_=b=w=0,x=new to.dU,S=new to.dU,P=new to.dU,(0,tx.Z)(t,t$);var e=+x,n=+S,r=+P,i=(0,ta._m)(e,n,r);return i<ta.aW&&(e=_,n=b,r=w,m<ta.Ho&&(e=g,n=y,r=v),(i=(0,ta._m)(e,n,r))<ta.aW)?[NaN,NaN]:[(0,ta.fv)(n,e)*ta.RW,(0,ta.ZR)(r/i)*ta.RW]}class t4{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t=+t,e=+e;let r=t+(n=+n),i=e;if(n<0)throw Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class t8{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class t6{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e))||!((i=+i)>=(n=+n)))throw Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let t,e;let{delaunay:{points:n,hull:r,triangles:i},vectors:o}=this,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let o=0,s=0,l=i.length,u,c;o<l;o+=3,s+=2){let l=2*i[o],h=2*i[o+1],f=2*i[o+2],p=n[l],d=n[l+1],m=n[h],g=n[h+1],y=n[f],v=n[f+1],_=m-p,b=g-d,w=y-p,x=v-d,S=(_*x-b*w)*2;if(1e-9>Math.abs(S)){if(void 0===t){for(let i of(t=e=0,r))t+=n[2*i],e+=n[2*i+1];t/=r.length,e/=r.length}let i=1e9*Math.sign((t-p)*x-(e-d)*w);u=(p+y)/2-i*x,c=(d+v)/2+i*w}else{let t=1/S,e=_*_+b*b,n=w*w+x*x;u=p+(x*e-b*n)*t,c=d+(_*n-w*e)*t}a[s]=u,a[s+1]=c}let s=r[r.length-1],l,u=4*s,c,h=n[2*s],f,p=n[2*s+1];o.fill(0);for(let t=0;t<r.length;++t)s=r[t],l=u,c=h,f=p,u=4*s,h=n[2*s],p=n[2*s+1],o[l+2]=o[u]=f-p,o[l+3]=o[u+1]=h-c}render(t){let e=null==t?t=new t4:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){let r=n[e];if(r<e)continue;let i=2*Math.floor(e/3),a=2*Math.floor(r/3),s=o[i],l=o[i+1],u=o[a],c=o[a+1];this._renderSegment(s,l,u,c,t)}let s,l=i[i.length-1];for(let e=0;e<i.length;++e){s=l;let n=2*Math.floor(r[l=i[e]]/3),u=o[n],c=o[n+1],h=4*s,f=this._project(u,c,a[h+2],a[h+3]);f&&this._renderSegment(u,c,f[0],f[1],t)}return e&&e.value()}renderBounds(t){let e=null==t?t=new t4:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){let n=null==e?e=new t4:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)(r[t]!==r[t-2]||r[t+1]!==r[t-1])&&e.lineTo(r[t],r[t+1]);
24return e.closePath(),n&&n.value()}*cellPolygons(){let{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){let t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){let e=new t8;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o;let a=this._regioncode(t,e),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){let e=this._clip(t);if(e)for(let n of this.delaunay.neighbors(t)){let t=this._clip(n);if(t){e:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]===t[o]&&e[r+1]===t[o+1]&&e[(r+2)%i]===t[(o+a-2)%a]&&e[(r+3)%i]===t[(o+a-1)%a]){yield n;break e}}}}_cell(t){let{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;let a=[],s=o;do{let n=Math.floor(s/3);if(a.push(e[2*n],e[2*n+1]),i[s=s%3==2?s-2:s+1]!==t)break;s=r[s]}while(s!==o&&-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];let e=this._cell(t);if(null===e)return null;let{vectors:n}=this,r=4*t;return this._simplify(n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e))}_clipFinite(t,e){let n=e.length,r=null,i,o,a=e[n-2],s=e[n-1],l,u=this._regioncode(a,s),c,h=0;for(let f=0;f<n;f+=2)if(i=a,o=s,a=e[f],s=e[f+1],l=u,u=this._regioncode(a,s),0===l&&0===u)c=h,h=0,r?r.push(a,s):r=[a,s];else{let e,n,f,p,d;if(0===l){if(null===(e=this._clipSegment(i,o,a,s,l,u)))continue;[n,f,p,d]=e}else{if(null===(e=this._clipSegment(a,s,i,o,u,l)))continue;[p,d,n,f]=e,c=h,h=this._edgecode(n,f),c&&h&&this._edge(t,c,h,r,r.length),r?r.push(n,f):r=[n,f]}c=h,h=this._edgecode(p,d),c&&h&&this._edge(t,c,h,r,r.length),r?r.push(p,d):r=[p,d]}if(r)c=h,h=this._edgecode(r[0],r[1]),c&&h&&this._edge(t,c,h,r,r.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(t,e,n,r,i,o){let a=i<o;for(a&&([t,e,n,r,i,o]=[n,r,t,e,o,i]);;){if(0===i&&0===o)return a?[n,r,t,e]:[t,e,n,r];if(i&o)return null;let s,l,u=i||o;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),i?(t=s,e=l,i=this._regioncode(t,e)):(n=s,r=l,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a=Array.from(e),s;if((s=this._project(a[0],a[1],n,r))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(s[0],s[1]),a=this._clipFinite(t,a))for(let e=0,n=a.length,r,i=this._edgecode(a[n-2],a[n-1]);e<n;e+=2)r=i,i=this._edgecode(a[e],a[e+1]),r&&i&&(e=this._edge(t,r,i,a,e),n=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}(r[i]!==n||r[i+1]!==o)&&this.contains(t,n,o)&&(r.splice(i,0,n,o),i+=2)}return i}_project(t,e,n,r){let i=1/0,o,a,s;if(r<0){if(e<=this.ymin)return null;(o=(this.ymin-e)/r)<i&&(s=this.ymin,a=t+(i=o)*n)}else if(r>0){if(e>=this.ymax)return null;(o=(this.ymax-e)/r)<i&&(s=this.ymax,a=t+(i=o)*n)}if(n>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/n)<i&&(a=this.xmax,s=e+(i=o)*r)}else if(n<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/n)<i&&(a=this.xmin,s=e+(i=o)*r)}return[a,s]}_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){let n=(e+2)%t.length,r=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[r]||t[e+1]===t[n+1]&&t[n+1]===t[r+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}let t9=2*Math.PI,t7=Math.pow;function et(t){return t[0]}function ee(t){return t[1]}class en{static from(t,e=et,n=ee,r){return new en("length"in t?function(t,e,n,r){let i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){let i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;
24for(let o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new $(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){let{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){let r=2*e[t],i=2*e[t+1],o=2*e[t+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);let t=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[e[2*t],e[2*t+1],e[2*i],e[2*i+1]],a=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let t=0,i=e.length/2;t<i;++t){var n,r;let i=[(n=e[2*t])+Math.sin(n+(r=e[2*t+1]))*a,r+Math.cos(n-r)*a];e[2*t]=i[0],e[2*t+1]=i[1]}this._delaunator=new $(e)}else delete this.collinear;let i=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,s=this.inedges.fill(-1),l=this._hullIndex.fill(-1);for(let t=0,e=i.length;t<e;++t){let e=a[t%3==2?t-2:t+1];(-1===i[t]||-1===s[e])&&(s[e]=t)}for(let t=0,e=o.length;t<e;++t)l[o[t]]=t;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],s[o[0]]=1,2===o.length&&(s[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(t){return new t6(this,t)}*neighbors(t){let{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){let e=a.indexOf(t);e>0&&(yield a[e-1]),e<a.length-1&&(yield a[e+1]);return}let s=e[t];if(-1===s)return;let l=s,u=-1;do{if(yield u=o[l],o[l=l%3==2?l-2:l+1]!==t)return;if(-1===(l=i[l])){let e=n[(r[t]+1)%n.length];e!==u&&(yield e);return}}while(l!==s)}find(t,e,n=0){let r;if((t=+t)!=t||(e=+e)!=e)return -1;let i=n;for(;(r=this._step(n,t,e))>=0&&r!==n&&r!==i;)n=r;return r}_step(t,e,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:l}=this;if(-1===r[t]||!l.length)return(t+1)%(l.length>>1);let u=t,c=t7(e-l[2*t],2)+t7(n-l[2*t+1],2),h=r[t],f=h;do{let r=s[f],h=t7(e-l[2*r],2)+t7(n-l[2*r+1],2);if(h<c&&(c=h,u=r),s[f=f%3==2?f-2:f+1]!==t)break;if(-1===(f=a[f])){if((f=i[(o[t]+1)%i.length])!==r&&t7(e-l[2*f],2)+t7(n-l[2*f+1],2)<c)return f;break}}while(f!==h);return u}render(t){let e=null==t?t=new t4:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,o=r.length;e<o;++e){let o=r[e];if(o<e)continue;let a=2*i[e],s=2*i[o];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;let n=null==t?t=new t4:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){let i=r[n],o=r[n+1];t.moveTo(i+e,o),t.arc(i,o,e,0,t9)}return n&&n.value()}renderHull(t){let e=null==t?t=new t4:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<o;++e){let i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){let t=new t8;return this.renderHull(t),t.value()}renderTriangle(t,e){let n=null==e?e=new t4:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],s=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[s],r[s+1]),e.closePath(),n&&n.value()}*trianglePolygons(){let{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){let e=new t8;return this.renderTriangle(t,e),e.value()}}function er(t,e){function n(n,r){return e((n=t(n,r))[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function ei(t,e){return(0,ta.Wn)(t)>ta.pi&&(t-=Math.round(t/ta.BZ)*ta.BZ),[t,e]}function eo(t,e,n){return(t%=ta.BZ)?e||n?er(es(t),el(e,n)):es(t):e||n?el(e,n):ei}function ea(t){return function(e,n){return e+=t,(0,ta.Wn)(e)>ta.pi&&(e-=Math.round(e/ta.BZ)*ta.BZ),[e,n]}}function es(t){var e=ea(t);return e.invert=ea(-t),e}function el(t,e){var n=(0,ta.mC)(t),r=(0,ta.O$)(t),i=(0,ta.mC)(e),o=(0,ta.O$)(e);function a(t,e){var a=(0,ta.mC)(e),s=(0,ta.mC)(t)*a,l=(0,ta.O$)(t)*a,u=(0,ta.O$)(e),c=u*n+s*r;return[(0,ta.fv)(l*i-c*o,s*n-u*r),(0,ta.ZR)(c*i+l*o)]}return a.invert=function(t,e){var a=(0,ta.mC)(e),s=(0,ta.mC)(t)*a,l=(0,ta.O$)(t)*a,u=(0,ta.O$)(e),c=u*i-l*o;return[(0,ta.fv)(l*i+u*o,s*n+c*r),(0,ta.ZR)(c*n-s*r)]},a}function eu(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:ts.Z,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ec(t,e){return(0,ta.Wn)(t[0]-e[0])<ta.Ho&&(0,ta.Wn)(t[1]-e[1])<ta.Ho}function eh(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ef(t,e,n,r,i){var o,a,s=[],l=[];
24if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(ec(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd();return}a[0]+=2*ta.Ho}s.push(n=new eh(r,t,null,!0)),l.push(n.o=new eh(r,null,n,!1)),s.push(n=new eh(a,t,null,!1)),l.push(n.o=new eh(a,null,n,!0))}}),s.length){for(l.sort(e),ep(s),ep(l),o=0,a=l.length;o<a;++o)l[o].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,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(o=0,a=u.length;o<a;++o)i.point((c=u[o])[0],c[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(o=(u=f.p.z).length-1;o>=0;--o)i.point((c=u[o])[0],c[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);i.lineEnd()}}}function ep(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function ed(t,e,n,r){return function(i){var o,a,s,l=e(i),u=eu(),c=e(u),h=!1,f={point:p,lineStart:m,lineEnd:g,polygonStart:function(){f.point=y,f.lineStart=v,f.lineEnd=_,a=[],o=[]},polygonEnd:function(){f.point=p,f.lineStart=m,f.lineEnd=g,a=C(a);var t=tz(o,r);a.length?(h||(i.polygonStart(),h=!0),ef(a,eg,t,n,i)):t&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(e,n){t(e,n)&&i.point(e,n)}function d(t,e){l.point(t,e)}function m(){f.point=d,l.lineStart()}function g(){f.point=p,l.lineEnd()}function y(t,e){s.push([t,e]),c.point(t,e)}function v(){c.lineStart(),s=[]}function _(){y(s[0][0],s[0][1]),c.lineEnd();var t,e,n,r,l=c.clean(),f=u.result(),p=f.length;if(s.pop(),o.push(s),s=null,p){if(1&l){if((e=(n=f[0]).length-1)>0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}return}p>1&&2&l&&f.push(f.pop().concat(f.shift())),a.push(f.filter(em))}}return f}}function em(t){return t.length>1}function eg(t,e){return((t=t.x)[0]<0?t[1]-ta.ou-ta.Ho:ta.ou-t[1])-((e=e.x)[0]<0?e[1]-ta.ou-ta.Ho:ta.ou-e[1])}ei.invert=ei;var ey=ed(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s,l,u,c,h,f,p=o>0?ta.pi:-ta.pi,d=(0,ta.Wn)(o-n);(0,ta.Wn)(d-ta.pi)<ta.Ho?(t.point(n,r=(r+a)/2>0?ta.ou:-ta.ou),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),t.point(o,r),e=0):i!==p&&d>=ta.pi&&((0,ta.Wn)(n-i)<ta.Ho&&(n-=i*ta.Ho),(0,ta.Wn)(o-p)<ta.Ho&&(o-=p*ta.Ho),s=n,l=r,u=o,f=(0,ta.O$)(s-u),r=(0,ta.Wn)(f)>ta.Ho?(0,ta.z4)(((0,ta.O$)(l)*(h=(0,ta.mC)(a))*(0,ta.O$)(u)-(0,ta.O$)(a)*(c=(0,ta.mC)(l))*(0,ta.O$)(s))/(c*h*f)):(l+a)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(p,r),e=0),t.point(n=o,r=a),i=p},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*ta.ou,r.point(-ta.pi,i),r.point(0,i),r.point(ta.pi,i),r.point(ta.pi,0),r.point(ta.pi,-i),r.point(0,-i),r.point(-ta.pi,-i),r.point(-ta.pi,0),r.point(-ta.pi,i);else if((0,ta.Wn)(t[0]-e[0])>ta.Ho){var o=t[0]<e[0]?ta.pi:-ta.pi;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-ta.pi,-ta.ou]);function ev(t,e){e=tg(e),e[0]-=t,tw(e);var n=(0,ta.Kh)(-e[1]);return((0>-e[2]?-n:n)+ta.BZ-ta.Ho)%ta.BZ}var e_=t=>t;function eb(t){return function(e){var n=new ew;for(var r in t)n[r]=t[r];return n.stream=e,n}}function ew(){}ew.prototype={constructor:ew,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ex=1/0,eS=1/0,eP=-1/0,eH=eP,eO={point:function(t,e){t<ex&&(ex=t),t>eP&&(eP=t),e<eS&&(eS=e),e>eH&&(eH=e)},lineStart:ts.Z,lineEnd:ts.Z,polygonStart:ts.Z,polygonEnd:ts.Z,result:function(){var t=[[ex,eS],[eP,eH]];return eP=eH=-(eS=ex=1/0),t}};function eM(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),(0,tx.Z)(n,t.stream(eO)),e(eO.result()),null!=r&&t.clipExtent(r),t}function eE(t,e,n){return eM(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])},n)}var eT=(0,ta.mC)(30*ta.uR);function eA(t,e){return+e?function(t,e){function n(r,i,o,a,s,l,u,c,h,f,p,d,m,g){var y=u-r,v=c-i,_=y*y+v*v;if(_>4*e&&m--){var b=a+f,w=s+p,x=l+d,S=(0,ta._b)(b*b+w*w+x*x),P=(0,ta.ZR)(x/=S),H=(0,ta.Wn)((0,ta.Wn)(x)-1)<ta.Ho||(0,ta.Wn)(o-h)<ta.Ho?(o+h)/2:(0,ta.fv)(w,b),O=t(H,P),M=O[0],E=O[1],T=M-r,A=E-i,C=v*T-y*A;(C*C/_>e||(0,ta.Wn)((y*T+v*A)/_-.5)>.3||a*f+s*p+l*d<eT)&&(n(r,i,o,a,s,l,M,E,H,b/=S,w/=S,x,m,g),g.point(M,E),n(M,E,H,b,w,x,u,c,h,f,p,d,m,g))}}return function(e){var r,i,o,a,s,l,u,c,h,f,p,d,m={point:g,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),m.lineStart=b},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,i){var o=tg([r,i]),a=t(r,i);
24n(c,h,u,f,p,d,c=a[0],h=a[1],u=r,f=o[0],p=o[1],d=o[2],16,e),e.point(c,h)}function _(){m.point=g,e.lineEnd()}function b(){y(),m.point=w,m.lineEnd=x}function w(t,e){v(r=t,e),i=c,o=h,a=f,s=p,l=d,m.point=v}function x(){n(c,h,u,f,p,d,i,o,r,a,s,l,16,e),m.lineEnd=_,_()}return m}}(t,e):eb({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}var eC=eb({point:function(t,e){this.stream.point(t*ta.uR,e*ta.uR)}});function ek(t,e,n,r,i,o){if(!o)return function(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}(t,e,n,r,i);var a=(0,ta.mC)(o),s=(0,ta.O$)(o),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,o){return[l*(t*=r)-u*(o*=i)+e,n-u*t-l*o]}return d.invert=function(t,e){return[r*(c*t-h*e+f),i*(p-h*t-c*e)]},d}function ej(t,e){var n=(0,ta.mC)(e),r=1+(0,ta.mC)(t)*n;return[n*(0,ta.O$)(t)/r,(0,ta.O$)(e)/r]}ej.invert=function(t,e){var n=(0,ta._b)(t*t+e*e),r=2*(0,ta.z4)(n),i=(0,ta.O$)(r),o=(0,ta.mC)(r);return[(0,ta.fv)(t*i,n*o),(0,ta.ZR)(n&&e*i/n)]};let eR=Math.PI,eD=eR/2,eL=180/eR,eI=eR/180,ez=Math.atan2,eU=Math.cos,eN=Math.max,eF=Math.min,eB=Math.sin,eZ=Math.sign||function(t){return t>0?1:t<0?-1:0},eW=Math.sqrt;function eV(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eG(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 e$(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function eY(t){var e=eW(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function eq(t){var e;return[ez(t[1],t[0])*eL,((e=eN(-1,eF(1,t[2])))>1?eD:e<-1?-eD:Math.asin(e))*eL]}function eX(t){let e=t[0]*eI,n=t[1]*eI,r=eU(n);return[r*eU(e),r*eB(e),eB(n)]}function eK(t){return eV((t=t.map(t=>eX(t)))[0],eG(t[2],t[1]))}function eQ(t,e,n){t=eX(t),e=eX(e),n=eX(n);let r=eZ(eV(eG(e,t),n));return eq(eY(e$(t,e)).map(t=>r*t))}var eJ=n(85036);function e0(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e1(t){return(e1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(e2=function(){return!!t})()}function e3(t,e){return(e3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function e5(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||e8(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e4(t){return function(t){if(Array.isArray(t))return e0(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e8(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e8(t,e){if(t){if("string"==typeof t)return e0(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(t,e):void 0}}function e6(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?(e&&tU.hasOwnProperty(e.type)?tU[e.type]:tF)(e,t):ti(t,e)}var e9=window.THREE?window.THREE:{BufferGeometry:A.u9r,Float32BufferAttribute:A.a$l},e7=new e9.BufferGeometry().setAttribute?"setAttribute":"addAttribute",nt=function(t){function e(t,n,r,i,o,a,s){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),l=e1(l=e),(u=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e2()?Reflect.construct(l,[],e1(this).constructor):l.apply(this,void 0))).type="C
24onicPolygonGeometry",u.parameters={polygonGeoJson:t,bottomHeight:n,topHeight:r,closedBottom:i,closedTop:o,includeSides:a,curvatureResolution:s},n=n||0,r=r||1,i=void 0===i||i,o=void 0===o||o,a=void 0===a||a;var l,u,c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.resolution,r=void 0===n?1/0:n,i=t.map(function(t){var e,n=[];return t.forEach(function(t){if(e){var i=180*(0,tD.Z)(t,e)/Math.PI;if(i>r)for(var o=(0,tL.Z)(e,t),a=1/Math.ceil(i/r),s=a;s<1;)n.push(o(s)),s+=a}n.push(e=t)}),n}),o=C(i),a=function(t,e){var n={type:"Polygon",coordinates:t},r=e5(tR(n),2),i=e5(r[0],2),o=i[0],a=i[1],s=e5(r[1],2),l=s[0],u=s[1];if(Math.min(Math.abs(l-o),Math.abs(u-a))<e)return[];var c=o>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,i=e.minLat,o=e.maxLat,a=Math.round(Math.pow(360/t,2)/Math.PI),s=(1+Math.sqrt(5))/2,l=function(t){return a*(Math.cos((t+90)*Math.PI/180)+1)/2},u=[void 0!==o?Math.ceil(l(o)):0,void 0!==i?Math.floor(l(i)):a-1],c=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},h=[],f=u[0];f<=u[1];f++){var p=f/s*360%360-180;c(p)&&h.push([p,Math.acos(2*f/a-1)/Math.PI*180-90])}return h})(e,{minLng:o,maxLng:l,minLat:a,maxLat:u}).filter(function(t){return e6(t,n,c)})}(t,r),s=[].concat(e4(o),e4(a)),l={type:"Polygon",coordinates:t},u=e5(tR(l),2),c=e5(u[0],2),h=c[0],f=c[1],p=e5(u[1],2),d=p[0],m=p[1],g=h>d||m>=89||f<=-89,y=[];if(g){var v=(function(t){let e=function(t){if(e.delaunay=null,e._data=t,"object"==typeof e._data&&"FeatureCollection"===e._data.type&&(e._data=e._data.features),"object"==typeof e._data){let t=e._data.map(t=>[e._vx(t),e._vy(t),t]).filter(t=>isFinite(t[0]+t[1]));e.points=t.map(t=>[t[0],t[1]]),e.valid=t.map(t=>t[2]),e.delaunay=function(t){let e=function(t){if(t.length<2)return{};let e=0;for(;isNaN(t[e][0]+t[e][1])&&e++<t.length;);let n=function(t){function e(e){return e=t(e[0]*ta.uR,e[1]*ta.uR),e[0]*=ta.RW,e[1]*=ta.RW,e}return t=eo(t[0]*ta.uR,t[1]*ta.uR,t.length>2?t[2]*ta.uR:0),e.invert=function(e){return e=t.invert(e[0]*ta.uR,e[1]*ta.uR),e[0]*=ta.RW,e[1]*=ta.RW,e},e}(t[e]),r=(function(t){var e,n,r,i,o,a,s,l,u,c,h=150,f=480,p=250,d=0,m=0,g=0,y=0,v=0,_=0,b=1,w=1,x=null,S=ey,P=null,H=e_,O=.5;function M(t){return l(t[0]*ta.uR,t[1]*ta.uR)}function E(t){return(t=l.invert(t[0],t[1]))&&[t[0]*ta.RW,t[1]*ta.RW]}function T(){var t=ek(h,0,0,b,w,_).apply(null,e(d,m)),r=ek(h,f-t[0],p-t[1],b,w,_);return n=eo(g,y,v),s=er(e,r),l=er(n,s),a=eA(s,O),A()}function A(){return u=c=null,M}return M.stream=function(t){var e;return u&&c===t?u:u=eC((e=n,eb({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}}))(S(a(H(c=t)))))},M.preclip=function(t){return arguments.length?(S=t,x=void 0,A()):S},M.postclip=function(t){return arguments.length?(H=t,P=r=i=o=null,A()):H},M.clipAngle=function(t){return arguments.length?(S=+t?function(t){var e=(0,ta.mC)(t),n=2*ta.uR,r=e>0,i=(0,ta.Wn)(e)>ta.Ho;function o(t,n){return(0,ta.mC)(t)*(0,ta.mC)(n)>e}function a(t,n,r){var i=tg(t),o=tg(n),a=[1,0,0],s=tv(i,o),l=ty(s,s),u=s[0],c=l-u*u;if(!c)return!r&&t;var h=tv(a,s),f=tb(a,e*l/c);t_(f,tb(s,-e*u/c));var p=ty(f,h),d=ty(h,h),m=p*p-d*(ty(f,f)-1);if(!(m<0)){var g=(0,ta._b)(m),y=tb(h,(-p-g)/d);if(t_(y,f),y=tm(y),!r)return y;var v,_=t[0],b=n[0],w=t[1],x=n[1];b<_&&(v=_,_=b,b=v);var S=b-_,P=(0,ta.Wn)(S-ta.pi)<ta.Ho,H=P||S<ta.Ho;if(!P&&x<w&&(v=w,w=x,x=v),H?P?w+x>0^y[1]<((0,ta.Wn)(y[0]-_)<ta.Ho?w:x):w<=y[1]&&y[1]<=x:S>ta.pi^(_<=y[0]&&y[0]<=b)){var O=tb(h,(-p+g)/d);return t_(O,f),[y,tm(O)]}}}function s(e,n){var i=r?t:ta.pi-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return ed(o,function(t){var e,n,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,f){var p,d,m=[h,f],g=o(h,f),y=r?g?0:s(h,f):g?s(h+(h<0?ta.pi:-ta.pi),f):0;!e&&(u=l=g)&&t.lineStart(),g!==l&&(!(d=a(e,m))||ec(e,d)||ec(m,d))&&(m[2]=1),g!==l?(c=0,g?(t.lineStart(),d=a(m,e),t.point(d[0],d[1])):(d=a(e,m),t.point(d[0],d[1],2),t.lineEnd()),e=d):i&&e&&r^g&&!(y&n)&&(p=a(m,e,!0))&&(c=0,r?(t.lineStart(),t.point(p[0][0],p[0][1]),t.point(p[1][0],p[1][1]),t.lineEnd()):(t.point(p[1][0],p[1][1]),t.lineEnd(),t.lineStart(),t.point(p[0][0],p[0][1],3))),!g||e&&ec(e,m)||t.point(m[0],m[1]),e=m,l=g,n=y},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return c|(u&&l)<<1}}},function(e,r,i,o){!function(t,e,n,r,i,o){if(n){var a=(0,ta.mC)(e),s=(0,ta.O$)(e),l=r*n;null==i?(i=e+r*ta.BZ,o=e-l/2):(i=ev(a,i),o=ev(a,o),(r>0?i<o:i>o)&&(i+=r*ta.BZ));for(var u,c=i;r>0?c>o:c<o;c-=l)u=tm([a,-s*(0,ta.mC)(c),-s*(0,ta.O$)(c)]),t.point(u[0],u[1])}}(o,t,n,i,e,r)},r?[0,-t]:[-ta.pi,t-ta.pi])}(x=t*ta.uR):(x=null,ey),A()):x*ta.RW},M.clipExtent=function(t){return arguments.length?(H=null==t?(P=r=i=o=null,e_):function(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,s,u){var c=0,h=0;if(null==i||(c=a(i,s))!==(h=a(o,s))||0>l(i,o)^s>0)do u.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+s+4)%4)!==h);else u.point(o[0],o[1])}function a(r,i){return(0,ta.Wn)(r[0]-t)<ta.Ho?i>0?0:3:(0,ta.Wn)(r[0]-n)<ta.Ho?i>0?2:1:(0,ta.Wn)(r[1]-e)<ta.Ho?i>0?1:0:i>0?3:2}function s(t,e){return l(t.x,e.x)}function l(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var l,u,c,h,f,p,d,m,g,y,v,_=a,b=eu(),w={point:x,lineStart:function(){w.point=S,u&&u.push(c=[]),y=!0,g=!1,d=m=NaN},lineEnd:function(){l&&(S(h,f),p&&g&&b.rejoin(),l.push(b.result())),w.point=x,g&&_.lineEnd()},polygonStart:function(){_=b,l=[],u=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;n<i;++n)for(var o,a,s=u[n],l=1,c=s.length,h=s[0],f=h[0],p=h[1];l<c;++l)o=f,a=p,f=(h=s[l])[0],p=h[1],a<=r?p>r&&(f-o)*(r-a)>(p-a)*(t-o)&&++e:p<=r&&(f-o)*(r-a)<(p-a)*(t-o)&&--e;return e}(),n=v&&e,i=(l=C(l)).length;
24(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ef(l,s,e,o,a),a.polygonEnd()),_=a,l=u=c=null}};function x(t,e){i(t,e)&&_.point(t,e)}function S(o,a){var s=i(o,a);if(u&&c.push([o,a]),y)h=o,f=a,p=s,y=!1,s&&(_.lineStart(),_.point(o,a));else if(s&&g)_.point(o,a);else{var l=[d=Math.max(-1e9,Math.min(1e9,d)),m=Math.max(-1e9,Math.min(1e9,m))],b=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];(function(t,e,n,r,i,o){var a,s=t[0],l=t[1],u=e[0],c=e[1],h=0,f=1,p=u-s,d=c-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a<h)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>h&&(h=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>h&&(h=a)}else if(p>0){if(a<h)return;a<f&&(f=a)}if(a=r-l,d||!(a>0)){if(a/=d,d<0){if(a<h)return;a<f&&(f=a)}else if(d>0){if(a>f)return;a>h&&(h=a)}if(a=o-l,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>h&&(h=a)}else if(d>0){if(a<h)return;a<f&&(f=a)}return h>0&&(t[0]=s+h*p,t[1]=l+h*d),f<1&&(e[0]=s+f*p,e[1]=l+f*d),!0}}}}})(l,b,t,e,n,r)?(g||(_.lineStart(),_.point(l[0],l[1])),_.point(b[0],b[1]),s||_.lineEnd(),v=!1):s&&(_.lineStart(),_.point(o,a),v=!1)}d=o,m=a,g=s}return w}}(P=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),A()):null==P?null:[[P,r],[i,o]]},M.scale=function(t){return arguments.length?(h=+t,T()):h},M.translate=function(t){return arguments.length?(f=+t[0],p=+t[1],T()):[f,p]},M.center=function(t){return arguments.length?(d=t[0]%360*ta.uR,m=t[1]%360*ta.uR,T()):[d*ta.RW,m*ta.RW]},M.rotate=function(t){return arguments.length?(g=t[0]%360*ta.uR,y=t[1]%360*ta.uR,v=t.length>2?t[2]%360*ta.uR:0,T()):[g*ta.RW,y*ta.RW,v*ta.RW]},M.angle=function(t){return arguments.length?(_=t%360*ta.uR,T()):_*ta.RW},M.reflectX=function(t){return arguments.length?(b=t?-1:1,T()):b<0},M.reflectY=function(t){return arguments.length?(w=t?-1:1,T()):w<0},M.precision=function(t){return arguments.length?(a=eA(s,O=t*t),A()):(0,ta._b)(O)},M.fitExtent=function(t,e){return eE(M,t,e)},M.fitSize=function(t,e){return eE(M,[[0,0],t],e)},M.fitWidth=function(t,e){return eM(M,function(e){var n=+t,r=n/(e[1][0]-e[0][0]),i=(n-r*(e[1][0]+e[0][0]))/2,o=-r*e[0][1];M.scale(150*r).translate([i,o])},e)},M.fitHeight=function(t,e){return eM(M,function(e){var n=+t,r=n/(e[1][1]-e[0][1]),i=-r*e[0][0],o=(n-r*(e[1][1]+e[0][1]))/2;M.scale(150*r).translate([i,o])},e)},function(){return e=t.apply(this,arguments),M.invert=e.invert&&E,T()}})(function(){return ej})().scale(250).clipAngle(142).translate([0,0]).scale(1).rotate(n.invert([180,0]));t=t.map(r);let i=[],o=1;for(let e=0,n=t.length;e<n;e++){let n=t[e][0]**2+t[e][1]**2;!isFinite(n)||n>1e32?i.push(e):n>o&&(o=n)}let a=1e6*eW(o);i.forEach(e=>t[e]=[a,0]),t.push([0,a]),t.push([-a,0]),t.push([0,-a]);let s=en.from(t);s.projection=r;let{triangles:l,halfedges:u,inedges:c}=s,h=[];for(let n=0,r=u.length;n<r;n++)if(u[n]<0){let t=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=u[t],o=u[r];u[i]=o,u[o]=i,u[t]=u[r]=-1,l[n]=l[t]=l[r]=e,c[l[i]]=i%3==0?i+2:i-1,c[l[o]]=o%3==0?o+2:o-1,h.push(Math.min(n,t,r)),n+=2-n%3}else l[n]>t.length-3-1&&(l[n]=e);return s}(t),n=function(t){let{triangles:e}=t;if(!e)return[];let n=[];for(let t=0,r=e.length/3;t<r;t++){let r=e[3*t],i=e[3*t+1],o=e[3*t+2];r!==i&&i!==o&&n.push([r,o,i])}return n}(e),r=function(t,e){let n=new Set;return 2===e.length?[[0,1]]:(t.forEach(t=>{if(t[0]!==t[1]&&!(0>eK(t.map(t=>e[t]))))for(let e=0,r;e<3;e++)r=(e+1)%3,n.add(k([t[e],t[r]]).join("-"))}),Array.from(n,t=>t.split("-").map(Number)))}(n,t),i=function(t,e){let n=[];return t.forEach(t=>{for(let e=0;e<3;e++){let r=t[e],i=t[(e+1)%3];n[r]=n[r]||[],n[r].push(i)}}),0===t.length&&(2===e?(n[0]=[1],n[1]=[0]):1===e&&(n[0]=[])),n}(n,t.length),o=function(t,e){function n(t,e){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}return function(r,i,o){void 0===o&&(o=0);let a,s,l=o,u=eX([r,i]);do a=o,o=null,s=n(u,eX(e[a])),t[a].forEach(t=>{let r=n(u,eX(e[t]));if(r<s){s=r,o=t,l=t;return}});while(null!==o);return l}}(i,t),{polygons:a,centers:s}=function(t,e,n){let r=[],i=t.slice();if(0===e.length){if(n.length<2)return{polygons:r,centers:i};if(2===n.length){let t=eX(n[0]),e=eX(n[1]),a=eY(e$(t,e)),s=eY(eG(t,e)),l=eG(a,s),u=[a,eG(a,l),eG(eG(a,l),l),eG(eG(eG(a,l),l),l)].map(eq).map(o);return r.push(u),r.push(u.slice().reverse()),{polygons:r,centers:i}}}function o(t){let n=-1;
24return i.slice(e.length,1/0).forEach((r,i)=>{r[0]===t[0]&&r[1]===t[1]&&(n=i+e.length)}),n<0&&(n=i.length,i.push(t)),n}return e.forEach((t,e)=>{for(let n=0;n<3;n++){let i=t[n],o=t[(n+1)%3],a=t[(n+2)%3];r[i]=r[i]||[],r[i].push([o,a,e,[i,o,a]])}}),{polygons:r.map(t=>{let e=[t[0][2]],r=t[0][1];for(let n=1;n<t.length;n++)for(let n=0;n<t.length;n++)if(t[n][0]==r){r=t[n][1],e.push(t[n][2]);break}if(e.length>2)return e;if(2==e.length){let r=eQ(n[t[0][3][0]],n[t[0][3][1]],i[e[0]]),a=eQ(n[t[0][3][2]],n[t[0][3][0]],i[e[0]]),s=o(r),l=o(a);return[e[0],l,e[1],s]}}),centers:i}}(n.map(e=>{let n=e.map(e=>t[e]).map(eX);return eq(eY(e$(e$(eG(n[1],n[0]),eG(n[2],n[1])),eG(n[0],n[2]))))}),n,t),l=function(t){let e=[];return t.forEach(t=>{if(!t)return;let n=t[t.length-1];for(let r of t)r>n&&e.push([n,r]),n=r}),e}(a),u=function(t,e){let n;let r=new Set,i=[];t.map(t=>{if(!(eK(t.map(t=>e[t>e.length?0:t]))>1e-12))for(let e=0;e<3;e++){let n=[t[e],t[(e+1)%3]],i=`${n[0]}-${n[1]}`;r.has(i)?r.delete(i):r.add(`${n[1]}-${n[0]}`)}});let o=new Map;if(r.forEach(t=>{t=t.split("-").map(Number),o.set(t[0],t[1]),n=t[0]}),void 0===n)return i;let a=n;do{i.push(a);let t=o.get(a);o.set(a,-1),a=t}while(a>-1&&a!==n);return i}(n,t);return{delaunay:e,edges:r,triangles:n,centers:s,neighbors:i,polygons:a,mesh:l,hull:u,urquhart:function(t){let e=new Map,i=new Map;return r.forEach((n,r)=>{let o=n.join("-");e.set(o,t[r]),i.set(o,!0)}),n.forEach(t=>{let n=0,r=-1;for(let i=0;i<3;i++){let o=k([t[i],t[(i+1)%3]]).join("-");e.get(o)>n&&(n=e.get(o),r=o)}i.set(r,!1)}),r.map(t=>i.get(t.join("-")))},find:o}}(e.points)}return e};return e._vx=function(t){return"object"==typeof t&&"type"in t?t5(t)[0]:0 in t?t[0]:void 0},e._vy=function(t){return"object"==typeof t&&"type"in t?t5(t)[1]:1 in t?t[1]:void 0},e.x=function(t){return t?(e._vx=t,e):e._vx},e.y=function(t){return t?(e._vy=t,e):e._vy},e.polygons=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let n={type:"FeatureCollection",features:[]};return 0===e.valid.length||(e.delaunay.polygons.forEach((t,r)=>n.features.push({type:"Feature",geometry:t?{type:"Polygon",coordinates:[[...t,t[0]].map(t=>e.delaunay.centers[t])]}:null,properties:{site:e.valid[r],sitecoordinates:e.points[r],neighbours:e.delaunay.neighbors[r]}})),1===e.valid.length&&n.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:e.valid[0],sitecoordinates:e.points[0],neighbours:[]}})),n},e.triangles=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"FeatureCollection",features:e.delaunay.triangles.map((t,n)=>((t=t.map(t=>e.points[t])).center=e.delaunay.centers[n],t)).filter(t=>eK(t)>0).map(t=>({type:"Feature",properties:{circumcenter:t.center},geometry:{type:"Polygon",coordinates:[[...t,t[0]]]}}))}},e.links=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let n=e.delaunay.edges.map(t=>(0,tD.Z)(e.points[t[0]],e.points[t[1]])),r=e.delaunay.urquhart(n);return{type:"FeatureCollection",features:e.delaunay.edges.map((t,i)=>({type:"Feature",properties:{source:e.valid[t[0]],target:e.valid[t[1]],length:n[i],urquhart:!!r[i]},geometry:{type:"LineString",coordinates:[e.points[t[0]],e.points[t[1]]]}}))}},e.mesh=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"MultiLineString",coordinates:e.delaunay.edges.map(t=>[e.points[t[0]],e.points[t[1]]])}},e.cellMesh=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let{centers:n,polygons:r}=e.delaunay,i=[];for(let t of r)if(t)for(let e=t.length,r=t[e-1],o=t[0],a=0;a<e;r=o,o=t[++a])o>r&&i.push([n[r],n[o]]);return{type:"MultiLineString",coordinates:i}},e._found=void 0,e.find=function(t,n,r){if(e._found=e.delaunay.find(t,n,e._found),!r||(0,tD.Z)([t,n],e.points[e._found])<r)return e._found},e.hull=function(t){void 0!==t&&e(t);let n=e.delaunay.hull,r=e.points;return 0===n.length?null:{type:"Polygon",coordinates:[[...n.map(t=>r[t]),r[n[0]]]]}},t?e(t):e})(s).triangles(),_=new Map(s.map(function(t,e){var n=e5(t,2),r=n[0],i=n[1];return["".concat(r,"-").concat(i),e]}));v.features.forEach(function(t){var e,n=t.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach(function(t){var e=e5(t,2),n=e[0],i=e[1],o="".concat(n,"-").concat(i);_.has(o)&&r.push(_.get(o))}),3===r.length){if(r.some(function(t){return t<o.length})&&!e6(t.properties.circumcenter,l,g))return;(e=y).push.apply(e,r)}})}else if(a.length){for(var b=$.from(s),w=function(t){var e,n=[2,1,0].map(function(e){return b.triangles[t+e]}),r=n.map(function(t){return s[t]});if(n.some(function(t){return t<o.length})&&!e6([0,1].map(function(t){return function(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}(r,function(e){return e[t]})}),l,g))return 1;(e=y).push.apply(e,e4(n))},x=0,S=b.triangles.length;x<S;x+=3)if(w(x))continue}else{var P=(0,j.xH)(i),H=P.vertices,O=P.holes;y=(0,j.ZP)(H,void 0===O?[]:O,2)}var M=(0,eJ.Z)(k(s,function(t){return t[0]}),[0,1]),E=(0,eJ.Z)(k(s,function(t){return t[1]}),[0,1]),T=s.map(function(t){var e=e5(t,2),n=e[0],r=e[1];return[M(n),E(r)]});return{contour:i,triangles:{points:s,indices:y,uvs:T}}}(t,{resolution:s=s||5}),h=c.contour,f=c.triangles,p=C(f.uvs),d=[],m=[],g=[],y=0,v=function(t){var e=Math.round(d.length/3),n=g.length;d=d.concat(t.vertices),m=m.concat(t.uvs),g=g.concat(e?t.indices.map(function(t){return t+e}):t.indices),u.addGroup(n,g.length-n,y++)};function _(t,e){var n="function"==typeof e?e:function(){return e},r=t.map(function(t){return t.map(function(t){var e=e5(t,2),r=e[0],i=e[1];return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}(i,r,n(r,i))})});return(0,j.xH)(r)}function b(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return{indices:e?f.indices:f.indices.slice().reverse(),vertices:_([f.points],t).vertices,uvs:p}}return a&&v(function(){for(var t=_(h,n),e=t.vertices,i=t.holes,o=_(h,r).vertices,a=C([o,e]),s=Math.round(o.length/3),l=new Set(i),u=0,c=[],f=0;f<s;f++){var p=f+1;if(p===s)p=u;else if(l.has(p)){var d=p;p=u,u=d}c.push(f,f+s,p+s),c.push(p+s,p,f)}for(var m=[],g=1;g>=0;g--)for(var y=0;y<s;y+=1)m.push(y/(s-1),g);return{indices:c,vertices:a,uvs:m}}()),i&&v(b(n,!1)),o&&v(b(r,!0)),u.setIndex(g),u[e7]("position",new e9.Float32BufferAttribute(d,3)),u[e7]("uv",new e9.Float32BufferAttribute(m,2)),u.computeVertexNormals(),u}return!function(t,e){if("function"!=typeof e&&null!==e)throw 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&&e3(t,e)}(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e9.BufferGeometry)},10433:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});
24var r=n(74250),i=n(70442),o=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){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function h(t,e){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||p(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(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 d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=null;return t.forEach(function(t){if(r){var i=180*(0,o.Z)(t,r)/Math.PI;if(i>e)for(var u=(0,a.Z)(r,t),c=r.length>2||t.length>2?(0,s.Z)(r[2]||0,t[2]||0):null,h=c?function(t){var e;return[].concat(function(t){if(Array.isArray(t))return l(t)}(e=u(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||p(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[c(t)])}:u,f=1/Math.ceil(i/e),d=f;d<1;)n.push(h(d)),d+=f}n.push(r=t)}),n},m="undefined"!=typeof window&&window.THREE?window.THREE:{BufferGeometry:r.u9r,Float32BufferAttribute:r.a$l},g=new m.BufferGeometry().setAttribute?"setAttribute":"addAttribute",y=function(t){function e(t){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),n=u(n=e),(r=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,c()?Reflect.construct(n,[],u(this).constructor):n.apply(this,void 0))).type="GeoJsonGeometry",r.parameters={geoJson:t,radius:o,resolution:a};var s=(({Point:y,MultiPoint:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return y(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},LineString:_,MultiLineString:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return _(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},Polygon:w,MultiPolygon:function(t,e){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};t.map(function(t){return w(t,e)}).forEach(function(t){var e=f(t,2),i=e[0],o=e[1];v(n,i),o&&v(r,o)});var i=[n];return r.vertices.length&&i.push(r),i}})[t.type]||function(){return[]})(t.coordinates,o),l=[],h=[],p=0;function y(t,e){return[{vertices:b(t[1],t[0],e+(t[2]||0)),indices:[]}]}function _(t,e){for(var n=d(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return b(i,r,e+(void 0===o?0:o))}),r=(0,i.xH)([n]).vertices,o=Math.round(r.length/3),s=[],l=1;l<o;l++)s.push(l-1,l);return[{vertices:r,indices:s}]}function w(t,e){for(var n=t.map(function(t){return d(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return b(i,r,e+(void 0===o?0:o))})}),r=(0,i.xH)(n),o=r.vertices,s=r.holes,l=s[0]||1/0,u=o.slice(0,3*l),c=o.slice(3*l),h=new Set(s),p=Math.round(o.length/3),m=[],g=[],y=1;y<p;y++)h.has(y)||(y<l?m.push(y-1,y):g.push(y-1-l,y-l));var v=[{indices:m,vertices:u}];return s.length&&v.push({indices:g,vertices:c}),v}
24return s.forEach(function(t){var e=l.length;v({indices:l,vertices:h},t),r.addGroup(e,l.length-e,p++)}),l.length&&r.setIndex(l),h.length&&r[g]("position",new m.Float32BufferAttribute(h,3)),r}return!function(t,e){if("function"!=typeof e&&null!==e)throw 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&&h(t,e)}(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(m.BufferGeometry);function v(t,e){var n=Math.round(t.vertices.length/3);_(t.vertices,e.vertices),_(t.indices,e.indices.map(function(t){return t+n}))}function _(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=p(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i)}}catch(t){r.e(t)}finally{r.f()}}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}},43246:function(t,e,n){"use strict";n.d(e,{Z:function(){return K}});var r=n(74250);function i(t,e,n,r,i){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var o,a,s,l,u,c,h,f,p,d,m,g,y=t._root,v={data:i},_=t._x0,b=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=(_+x)/2))?_=a:x=a,(p=n>=(s=(b+S)/2))?b=s:S=s,(d=r>=(l=(w+P)/2))?w=l:P=l,o=y,!(y=y[m=d<<2|p<<1|f]))return o[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,o?o[m]=v:t._root=v,t;do o=o?o[m]=Array(8):t._root=Array(8),(f=e>=(a=(_+x)/2))?_=a:x=a,(p=n>=(s=(b+S)/2))?b=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 o[g]=y,o[m]=v,t}function o(t,e,n,r,i,o,a){this.node=t,this.x0=e,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a}let a=(t,e,n,r,i,o)=>Math.sqrt((t-r)**2+(e-i)**2+(n-o)**2);function s(t){return t[0]}function l(t){return t[1]}function u(t){return t[2]}function c(t,e,n,r){var i=new h(null==e?s:e,null==n?l:n,null==r?u:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function h(t,e,n,r,i,o,a,s,l){this._x=t,this._y=e,this._z=n,this._x0=r,this._y0=i,this._z0=o,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=Array(8)}];r=t.pop();)for(var i=0;i<8;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=Array(8)}):r.target[i]=f(e));return n},p.add=function(t){let e=+this._x.call(null,t),n=+this._y.call(null,t),r=+this._z.call(null,t);return i(this.cover(e,n,r),e,n,r,t)},p.addAll=function(t){Array.isArray(t)||(t=Array.from(t));let e=t.length,n=new Float64Array(e),r=new Float64Array(e),o=new Float64Array(e),a=1/0,s=1/0,l=1/0,u=-1/0,c=-1/0,h=-1/0;for(let i=0,f,p,d,m;i<e;++i)!(isNaN(p=+this._x.call(null,f=t[i]))||isNaN(d=+this._y.call(null,f))||isNaN(m=+this._z.call(null,f)))&&(n[i]=p,r[i]=d,o[i]=m,p<a&&(a=p),p>u&&(u=p),d<s&&(s=d),d>c&&(c=d),m<l&&(l=m),m>h&&(h=m));if(a>u||s>c||l>h)return this;this.cover(a,s,l).cover(u,c,h);for(let a=0;a<e;++a)i(this,n[a],r[a],o[a],t[a]);return this},p.cover=function(t,e,n){if(isNaN(t=+t)||isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,s=this._y1,l=this._z1;if(isNaN(r))a=(r=Math.floor(t))+1,s=(i=Math.floor(e))+1,l=(o=Math.floor(n))+1;else{for(var u,c,h=a-r||1,f=this._root;r>t||t>=a||i>e||e>=s||o>n||n>=l;)switch(c=(n<o)<<2|(e<i)<<1|t<r,(u=Array(8))[c]=f,f=u,h*=2,c){case 0:a=r+h,s=i+h,l=o+h;break;case 1:r=a-h,s=i+h,l=o+h;break;case 2:a=r+h,i=s-h,l=o+h;break;case 3:r=a-h,i=s-h,l=o+h;break;case 4:a=r+h,s=i+h,o=l-h;break;case 5:r=a-h,s=i+h,o=l-h;break;case 6:a=r+h,i=s-h,o=l-h;break;case 7:r=a-h,i=s-h,o=l-h}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=i,this._z0=o,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],
24+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 i,a,s,l,u,c,h,f,p,d=this._x0,m=this._y0,g=this._z0,y=this._x1,v=this._y1,_=this._z1,b=[],w=this._root;for(w&&b.push(new o(w,d,m,g,y,v,_)),null==r?r=1/0:(d=t-r,m=e-r,g=n-r,y=t+r,v=e+r,_=n+r,r*=r);f=b.pop();)if((w=f.node)&&!((a=f.x0)>y)&&!((s=f.y0)>v)&&!((l=f.z0)>_)&&!((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;b.push(new o(w[7],x,S,P,u,c,h),new o(w[6],a,S,P,x,c,h),new o(w[5],x,s,P,u,S,h),new o(w[4],a,s,P,x,S,h),new o(w[3],x,S,l,u,c,P),new o(w[2],a,S,l,x,c,P),new o(w[1],x,s,l,u,S,P),new o(w[0],a,s,l,x,S,P)),(p=(n>=P)<<2|(e>=S)<<1|t>=x)&&(f=b[b.length-1],b[b.length-1]=b[b.length-1-p],b[b.length-1-p]=f)}else{var H=t-+this._x.call(null,w.data),O=e-+this._y.call(null,w.data),M=n-+this._z.call(null,w.data),E=H*H+O*O+M*M;if(E<r){var T=Math.sqrt(r=E);d=t-T,m=e-T,g=n-T,y=t+T,v=e+T,_=n+T,i=w.data}}}return i},p.findAllWithinRadius=function(t,e,n,r){let i=[],o=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{let o=f.data;a(t,e,n,this._x(o),this._y(o),this._z(o))<=r&&i.push(o)}while(f=f.next);return p>u||d>c||m>h||g<o||y<s||v<l}),i},p.remove=function(t){if(isNaN(o=+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,i,o,a,s,l,u,c,h,f,p,d,m,g=this._root,y=this._x0,v=this._y0,_=this._z0,b=this._x1,w=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((h=o>=(l=(y+b)/2))?y=l:b=l,(f=a>=(u=(v+w)/2))?v=u:w=u,(p=s>=(c=(_+x)/2))?_=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((i=g.next)&&delete g.next,r)?i?r.next=i:delete r.next:e?(i?e[d]=i: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._root=i,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,i,a,s,l,u,c=[],h=this._root;for(h&&c.push(new o(h,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=c.pop();)if(!t(h=e.node,r=e.x0,i=e.y0,a=e.z0,s=e.x1,l=e.y1,u=e.z1)&&h.length){var f=(r+s)/2,p=(i+l)/2,d=(a+u)/2;(n=h[7])&&c.push(new o(n,f,p,d,s,l,u)),(n=h[6])&&c.push(new o(n,r,p,d,f,l,u)),(n=h[5])&&c.push(new o(n,f,i,d,s,p,u)),(n=h[4])&&c.push(new o(n,r,i,d,f,p,u)),(n=h[3])&&c.push(new o(n,f,p,a,s,l,d)),(n=h[2])&&c.push(new o(n,r,p,a,f,l,d)),(n=h[1])&&c.push(new o(n,f,i,a,s,p,d)),(n=h[0])&&c.push(new o(n,r,i,a,f,p,d))}return this},p.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=n.pop();){var i=e.node;if(i.length){var a,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=i[0])&&n.push(new o(a,s,l,u,p,d,m)),(a=i[1])&&n.push(new o(a,p,l,u,c,d,m)),(a=i[2])&&n.push(new o(a,s,d,u,p,h,m)),(a=i[3])&&n.push(new o(a,p,d,u,c,h,m)),(a=i[4])&&n.push(new o(a,s,l,m,p,d,f)),(a=i[5])&&n.push(new o(a,p,l,m,c,d,f)),(a=i[6])&&n.push(new o(a,s,d,m,p,h,f)),(a=i[7])&&n.push(new o(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(85036),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 TypeError("Private element is not present on this object")}function _(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function b(t,e){return t.get(v(t,e))}function w(t,e,n){_(t,e),e.set(t,n)}function x(t,e,n){return t.set(v(t,e),n),n}function S(t,e,n){return(e=T(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function H(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(H=function(){return!!t})()}function O(t,e){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}
24finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||A(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(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)||A(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function A(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 C=function(t){t instanceof Array?t.forEach(C):(t.map&&t.map.dispose(),t.dispose())},k=function(t){t.geometry&&t.geometry.dispose(),t.material&&C(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(k)},j=function(t){if(t&&t.children)for(;t.children.length;){var e=t.children[0];t.remove(e),k(e)}};function R(t,e,n){var r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return{x:n*Math.sin(r)*Math.cos(i),y:n*Math.cos(r),z:n*Math.sin(r)*Math.sin(i)}}function D(t){return t*Math.PI/180}var L=function(t){return 1-(g(0,(.5-t)*Math.PI)[1]/Math.PI+1)/2},I=function(t){return Math.max(0,Math.min(1,L(t)))},z=function(t){return .5-g.invert(0,(2*(1-t)-1)*Math.PI)[1]/Math.PI},U=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=(0,d.Z)().domain([1,0]).range([e,n]).clamp(!0),i=(0,d.Z)().domain([I(e),I(n)]).range([1,0]).clamp(!0),o=t.array,a=0,s=o.length;a<s;a+=2)o[a+1]=i(I(r(o[a+1])));t.needsUpdate=!0},N=function(t,e,n,r){var i=Math.pow(2,t),o=Math.max(0,Math.min(i-1,Math.floor((n+180)*i/360))),a=(90-r)/180;return e&&(a=Math.max(0,Math.min(1,L(a)))),[o,Math.floor(a*i)]},F=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=[],s=Math.pow(2,t),l=360/s,u=180/s,c=void 0===o?s-1:o,h=n,f=Math.min(s-1,void 0===i?s-1:i);h<=f;h++)for(var p=r,d=Math.min(s-1,c);p<=d;p++){var m=p,g=u;e&&(m=0===p?p:z(p/s)*s,g=((p+1===s?p+1:z((p+1)/s)*s)-m)*180/s);var y=-180+(h+.5)*l,v=90-(180*m/s+g/2),_=g;a.push({x:h,y:p,lng:y,lat:v,latLen:_})}return a},B=new WeakMap,Z=new WeakMap,W=new WeakMap,V=new WeakMap,G=new WeakMap,$=new WeakMap,Y=new WeakMap,q=new WeakMap,X=new WeakSet,K=function(t){var e;function n(t){var e,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.tileUrl,l=a.minLevel,u=a.maxLevel,c=a.mercatorProjection;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),e=P(e=n),_(i=o=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,H()?Reflect.construct(e,[],P(this).constructor):e.apply(this,void 0)),X),X.add(i),w(o,B,void 0),w(o,Z,void 0),w(o,W,void 0),w(o,V,void 0),w(o,G,{}),w(o,$,void 0),w(o,Y,void 0),w(o,q,void 0),S(o,"minLevel",void 0),S(o,"maxLevel",void 0),S(o,"thresholds",E(Array(30)).map(function(t,e){return 8/Math.pow(2,e)})),S(o,"curvatureResolution",5),S(o,"tileMargin",0),S(o,"clearTiles",function(){Object.values(b(G,o)).forEac
24h(function(t){t.forEach(function(t){t.obj&&(o.remove(t.obj),j(t.obj),delete t.obj)})}),x(G,o,{})}),x(B,o,t),o.tileUrl=s,x(Z,o,void 0===c||c),o.minLevel=void 0===l?0:l,o.maxLevel=void 0===u?17:u,o.level=0,o.add(x(q,o,new r.Kj0(new r.xo$(.99*b(B,o),180,90),new r.vBJ({color:0})))),b(q,o).visible=!1,b(q,o).material.polygonOffset=!0,b(q,o).material.polygonOffsetUnits=3,b(q,o).material.polygonOffsetFactor=1,o}return!function(t,e){if("function"!=typeof e&&null!==e)throw 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&&O(t,e)}(n,t),e=[{key:"tileUrl",get:function(){return b(W,this)},set:function(t){x(W,this,t),this.updatePov(b(Y,this))}},{key:"level",get:function(){return b(V,this)},set:function(t){var e=this;b(G,this)[t]||v(X,this,Q).call(this,t);var n=b(V,this);if(x(V,this,t),t!==n&&void 0!==n){if(b(q,this).visible=t>0,b(G,this)[t].forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!0)}
24),n<t&&b(G,this)[n].forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!1)}),n>t)for(var r=t+1;r<=n;r++)b(G,this)[r]&&b(G,this)[r].forEach(function(t){t.obj&&(e.remove(t.obj),j(t.obj),delete t.obj)});v(X,this,J).call(this)}}},{key:"updatePov",value:function(t){var e,n=this;if(t&&t instanceof r.V1s&&(x(Y,this,t),x($,this,function(i){if(!i.hullPnts){var o=360/Math.pow(2,n.level),a=i.lng,s=i.lat,l=i.latLen,u=a-o/2,c=a+o/2,h=s-l/2,f=s+l/2;i.hullPnts=[[s,a],[h,u],[f,u],[h,c],[f,c]].map(function(t){var e=M(t,2);return R(e[0],e[1],b(B,n))}).map(function(t){var e=t.x,n=t.y,i=t.z;return new r.Pa4(e,n,i)})}return e||(e=new r.iWj,t.updateMatrix(),t.updateMatrixWorld(),e.setFromProjectionMatrix(new r.yGw().multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse))),i.hullPnts.some(function(t){return e.containsPoint(t.clone().applyMatrix4(n.matrixWorld))})}),this.tileUrl)){var i=(t.position.clone().distanceTo(this.getWorldPosition(new r.Pa4))-b(B,this))/b(B,this),o=this.thresholds.findIndex(function(t){return t&&t<=i});this.level=Math.min(this.maxLevel,Math.max(this.minLevel,o<0?this.thresholds.length:o)),v(X,this,J).call(this)}}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(r.ZAu);function Q(t){var e=this;if(t>7){b(G,this)[t]=[];return}var n=b(G,this)[t]=F(t,b(Z,this));n.forEach(function(t){return t.centroid=R(t.lat,t.lng,b(B,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 J(){var t=this;if(this.tileUrl&&void 0!==this.level&&b(G,this).hasOwnProperty(this.level)&&(b($,this)||!(this.level>6))){var e=b(G,this)[this.level];if(b(Y,this)){var n=this.worldToLocal(b(Y,this).position.clone());if(e.octree){var i,o=this.worldToLocal(b(Y,this).position.clone()),a=(o.length()-b(B,this))*3;e=(i=e.octree).findAllWithinRadius.apply(i,E(o).concat([a]))}else{var s,l,u,c,h,f=(c=Math.sqrt((s=n.x)*s+(l=n.y)*l+(u=n.z)*u),{lat:90-180*Math.acos(l/c)/Math.PI,lng:90-180*(h=Math.atan2(u,s))/Math.PI-(h<-Math.PI/2?360:0),r:c}),p=(f.r/b(B,this)-1)*90,d=p/Math.cos(D(f.lat)),m=[f.lng-d,f.lng+d],g=[f.lat+p,f.lat-p],y=M(N(this.level,b(Z,this),m[0],g[0]),2),v=y[0],_=y[1],w=M(N(this.level,b(Z,this),m[1],g[1]),2),x=w[0],S=w[1];e.record||(e.record={});var P=e.record;if(P.hasOwnProperty("".concat(Math.round((v+x)/2),"_").concat(Math.round((_+S)/2)))){for(var H=[],O=v;O<=x;O++)for(var T=_;T<=S;T++){var A="".concat(O,"_").concat(T);P.hasOwnProperty(A)||(P[A]=F(this.level,b(Z,this),O,T,O,T)[0],e.push(P[A])),H.push(P[A])}e=H}else e=F(this.level,b(Z,this),v,_,x,S).map(function(t){var n="".concat(t.x,"_").concat(t.y);return P.hasOwnProperty(n)?P[n]:(P[n]=t,e.push(t),t)})}}e.filter(function(t){return!t.obj}).filter(b($,this)||function(){return!0}).forEach(function(e){var n=e.x,i=e.y,o=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=D(o),f=D(-a),p=new r.Kj0(new r.xo$(b(B,t),Math.ceil(u/t.curvatureResolution),Math.ceil(c/t.curvatureResolution),D(90-u/2)+h,D(u),D(90-c/2)+f,D(c)),new r.YBo);if(b(Z,t)){var d=M([a+s/2,a-s/2].map(function(t){return .5-t/180}),2),m=d[0],g=d[1];U(p.geometry.attributes.uv,m,g)}e.obj=p}e.loading||(e.loading=!0,new r.dpR().load(t.tileUrl(n,i,t.level),function(n){var i=e.obj;i&&(n.colorSpace=r.KI_,i.material.map=n,i.material.color=null,i.material.needsUpdate=!0,t.add(i)),e.loading=!1}))})}}},13184:function(t,e,n){"use strict";n.d(e,{Fn:function(){return i},If:function(){return o},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;let i=r.oHn.Fn;r.oHn.INFINITY;let o=r.oHn.If,a=r.oHn.Loop;r.oHn.NodeShaderStage,r.oHn.NodeType,r.oHn.NodeUpdateType,r.oHn.NodeAccess,r.o
24Hn.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;let s=r.oHn.asin;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;let l=r.oHn.cos;r.oHn.cross,r.oHn.cubeTexture,r.oHn.dFdx,r.oHn.dFdy,r.oHn.dashSize,r.oHn.debug,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;let u=r.oHn.exp;r.oHn.exp2,r.oHn.expression,r.oHn.faceDirection,r.oHn.faceForward,r.oHn.faceforward;let c=r.oHn.float;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.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.instance;let h=r.oHn.instanceIndex;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
24Hn.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.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
24Hn.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;let f=r.oHn.negate;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;let p=r.oHn.sin;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;let d=r.oHn.sqrt;r.oHn.stack,r.oHn.step;let m=r.oHn.storage;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
24Hn.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;let g=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 i}});var r=n(74250);class i extends r.O7d{constructor(t,e={}){let n=e.font;if(void 0===n)super();else{let r=n.generateShapes(t,e.size);void 0===e.depth&&(e.depth=50),void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),super(r,e)}this.type="TextGeometry"}}},64175:function(t,e,n){"use strict";let r,i;n.d(e,{w:function(){return P}});var o=n(74250),a=n(98671),s=n(71911);let l=new o.Ltg,u=new o.Pa4,c=new o.Pa4,h=new o.Ltg,f=new o.Ltg,p=new o.Ltg,d=new o.Pa4,m=new o.yGw,g=new o.Zzh,y=new o.Pa4,v=ne
24w o.ZzF,_=new o.aLr,b=new o.Ltg;function w(t,e,n){return b.set(0,0,-e,1).applyMatrix4(t.projectionMatrix),b.multiplyScalar(1/b.w),b.x=i/n.width,b.y=i/n.height,b.applyMatrix4(t.projectionMatrixInverse),b.multiplyScalar(1/b.w),Math.abs(Math.max(b.x,b.y))}class x extends o.Kj0{constructor(t=new a.z,e=new s.Y({color:16777215*Math.random()})){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){let t=this.geometry,e=t.attributes.instanceStart,n=t.attributes.instanceEnd,r=new Float32Array(2*e.count);for(let t=0,i=0,o=e.count;t<o;t++,i+=2)u.fromBufferAttribute(e,t),c.fromBufferAttribute(n,t),r[i]=0===i?0:r[i-1],r[i+1]=r[i]+u.distanceTo(c);let i=new o.$TI(r,2,1);return t.setAttribute("instanceDistanceStart",new o.kB5(i,1,0)),t.setAttribute("instanceDistanceEnd",new o.kB5(i,1,1)),this}raycast(t,e){let n,a;let s=this.material.worldUnits,l=t.camera;null!==l||s||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let u=void 0!==t.params.Line2&&t.params.Line2.threshold||0;r=t.ray;let c=this.matrixWorld,b=this.geometry,x=this.material;if(i=x.linewidth+u,null===b.boundingSphere&&b.computeBoundingSphere(),_.copy(b.boundingSphere).applyMatrix4(c),s)n=.5*i;else{let t=Math.max(l.near,_.distanceToPoint(r.origin));n=w(l,t,x.resolution)}
24if(_.radius+=n,!1!==r.intersectsSphere(_)){if(null===b.boundingBox&&b.computeBoundingBox(),v.copy(b.boundingBox).applyMatrix4(c),s)a=.5*i;else{let t=Math.max(l.near,v.distanceToPoint(r.origin));a=w(l,t,x.resolution)}v.expandByScalar(a),!1!==r.intersectsBox(v)&&(s?function(t,e){let n=t.matrixWorld,a=t.geometry,s=a.attributes.instanceStart,l=a.attributes.instanceEnd,u=Math.min(a.instanceCount,s.count);for(let a=0;a<u;a++){g.start.fromBufferAttribute(s,a),g.end.fromBufferAttribute(l,a),g.applyMatrix4(n);let u=new o.Pa4,c=new o.Pa4;r.distanceSqToSegment(g.start,g.end,c,u),c.distanceTo(u)<.5*i&&e.push({point:c,pointOnLine:u,distance:r.origin.distanceTo(c),object:t,face:null,faceIndex:a,uv:null,uv1:null})}}(this,e):function(t,e,n){let a=e.projectionMatrix,s=t.material.resolution,l=t.matrixWorld,u=t.geometry,c=u.attributes.instanceStart,v=u.attributes.instanceEnd,_=Math.min(u.instanceCount,c.count),b=-e.near;r.at(1,p),p.w=1,p.applyMatrix4(e.matrixWorldInverse),p.applyMatrix4(a),p.multiplyScalar(1/p.w),p.x*=s.x/2,p.y*=s.y/2,p.z=0,d.copy(p),m.multiplyMatrices(e.matrixWorldInverse,l);for(let e=0;e<_;e++){if(h.fromBufferAttribute(c,e),f.fromBufferAttribute(v,e),h.w=1,f.w=1,h.applyMatrix4(m),f.applyMatrix4(m),h.z>b&&f.z>b)continue;if(h.z>b){let t=h.z-f.z,e=(h.z-b)/t;h.lerp(f,e)}else if(f.z>b){let t=f.z-h.z,e=(f.z-b)/t;f.lerp(h,e)}h.applyMatrix4(a),f.applyMatrix4(a),h.multiplyScalar(1/h.w),f.multiplyScalar(1/f.w),h.x*=s.x/2,h.y*=s.y/2,f.x*=s.x/2,f.y*=s.y/2,g.start.copy(h),g.start.z=0,g.end.copy(f),g.end.z=0;let u=g.closestPointToPointParameter(d,!0);g.at(u,y);let p=o.M8C.lerp(h.z,f.z,u),_=p>=-1&&p<=1,w=d.distanceTo(y)<.5*i;if(_&&w){g.start.fromBufferAttribute(c,e),g.end.fromBufferAttribute(v,e),g.start.applyMatrix4(l),g.end.applyMatrix4(l);let i=new o.Pa4,a=new o.Pa4;r.distanceSqToSegment(g.start,g.end,a,i),n.push({point:a,pointOnLine:i,distance:r.origin.distanceTo(a),object:t,face:null,faceIndex:e,uv:null,uv1:null})}}}(this,l,e))}}onBeforeRender(t){let e=this.material.uniforms;e&&e.resolution&&(t.getViewport(l),this.material.uniforms.resolution.value.set(l.z,l.w))}}var S=n(59823);class P extends x{constructor(t=new S.L,e=new s.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 i}});var r=n(98671);class i extends r.z{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(t){let e=t.length-3,n=new Float32Array(2*e);for(let r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return super.setPositions(n),this}setColors(t){let e=t.length-3,n=new Float32Array(2*e);for(let r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return super.setColors(n),this}setFromPoints(t){let e=t.length-1,n=new Float32Array(6*e);for(let r=0;r<e;r++)n[6*r]=t[r].x,n[6*r+1]=t[r].y,n[6*r+2]=t[r].z||0,n[6*r+3]=t[r+1].x,n[6*r+4]=t[r+1].y,n[6*r+5]=t[r+1].z||0;return super.setPositions(n),this}fromLine(t){let e=t.geometry;return this.setPositions(e.attributes.position.array),this}}},71911:function(t,e,n){"use strict";n.d(e,{Y:function(){return o}});var r=n(99477),i=n(74250);r.rBU.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new i.FM8(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},r.Vj0.line={uniforms:i.rDY.merge([r.rBU.common,r.rBU.fog,r.rBU
vendor: 7,975 bytes, lines 24-394
24.line]),vertexShader:` 25 #include <common> 26 #include <color_pars_vertex> 27 #include <fog_pars_vertex> 28 #include <logdepthbuf_pars_vertex> 29 #include <clipping_planes_pars_vertex> 30 31 uniform float linewidth; 32 uniform vec2 resolution; 33 34 attribute vec3 instanceStart; 35 attribute vec3 instanceEnd; 36 37 attribute vec3 instanceColorStart; 38 attribute vec3 instanceColorEnd; 39 40 #ifdef WORLD_UNITS 41 42 varying vec4 worldPos; 43 varying vec3 worldStart; 44 varying vec3 worldEnd; 45 46 #ifdef USE_DASH 47 48 varying vec2 vUv; 49 50 #endif 51 52 #else 53 54 varying vec2 vUv; 55 56 #endif 57 58 #ifdef USE_DASH 59 60 uniform float dashScale; 61 attribute float instanceDistanceStart; 62 attribute float instanceDistanceEnd; 63 varying float vLineDistance; 64 65 #endif 66 67 void trimSegment( const in vec4 start, inout vec4 end ) { 68 69 // trim end segment so it terminates between the camera plane and the near plane 70 71 // conservative estimate of the near plane 72 float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column 73 float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column 74 float nearEstimate = - 0.5 * b / a; 75 76 float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); 77 78 end.xyz = mix( start.xyz, end.xyz, alpha ); 79 80 } 81 82 void main() { 83 84 #ifdef USE_COLOR 85 86 vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; 87 88 #endif 89 90 #ifdef USE_DASH 91 92 vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; 93 vUv = uv; 94 95 #endif 96 97 float aspect = resolution.x / resolution.y; 98 99 // camera space 100 vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); 101 vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); 102 103 #ifdef WORLD_UNITS 104 105 worldStart = start.xyz; 106 worldEnd = end.xyz; 107 108 #else 109 110 vUv = uv; 111 112 #endif 113 114 // special case for perspective projection, and segments that terminate either in, or behind, the camera plane 115 // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space 116 // but we need to perform ndc-space calculations in the shader, so we must address this issue directly 117 // perhaps there is a more elegant solution -- WestLangley 118 119 bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column 120 121 if ( perspective ) { 122 123 if ( start.z < 0.0 && end.z >= 0.0 ) { 124 125 trimSegment( start, end ); 126 127 } else if ( end.z < 0.0 && start.z >= 0.0 ) { 128 129 trimSegment( end, start ); 130 131 } 132 133 } 134 135 // clip space 136 vec4 clipStart = projectionMatrix * start; 137 vec4 clipEnd = projectionMatrix * end; 138 139 // ndc space 140 vec3 ndcStart = clipStart.xyz / clipStart.w; 141 vec3 ndcEnd = clipEnd.xyz / clipEnd.w; 142 143 // direction 144 vec2 dir = ndcEnd.xy - ndcStart.xy; 145 146 // account for clip-space aspect ratio 147 dir.x *= aspect; 148 dir = normalize( dir ); 149 150 #ifdef WORLD_UNITS 151 152 vec3 worldDir = normalize( end.xyz - start.xyz ); 153 vec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) ); 154 vec3 worldUp = normalize( cross( worldDir, tmpFwd ) ); 155 vec3 worldFwd = cross( worldDir, worldUp ); 156 worldPos = position.y < 0.5 ? start: end; 157 158 // height offset 159 float hw = linewidth * 0.5; 160 worldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp; 161 162 // don't extend the line if we're rendering dashes because we 163 // won't be rendering the endcaps 164 #ifndef USE_DASH 165 166 // cap extension 167 worldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir; 168 169 // add width to the box 170 worldPos.xyz += worldFwd * hw; 171 172 // endcaps 173 if ( position.y > 1.0 || position.y < 0.0 ) { 174 175 worldPos.xyz -= worldFwd * 2.0 * hw; 176 177 } 178 179 #endif 180 181 // project the worldpos 182 vec4 clip = projectionMatrix * worldPos; 183 184 // shift the depth of the projected points so the line 185 // segments overlap neatly 186 vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; 187 clip.z = clipPose.z * clip.w; 188 189 #else 190 191 vec2 offset = vec2( dir.y, - dir.x ); 192 // undo aspect ratio adjustment 193 dir.x /= aspect; 194 offset.x /= aspect; 195 196 // sign flip 197 if ( position.x < 0.0 ) offset *= - 1.0; 198 199 // endcaps 200 if ( position.y < 0.0 ) { 201 202 offset += - dir; 203 204 } else if ( position.y > 1.0 ) { 205 206 offset += dir; 207 208 } 209 210 // adjust for linewidth 211 offset *= linewidth; 212 213 // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... 214 offset /= resolution.y; 215 216 // select end 217 vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; 218 219 // back to clip space 220 offset *= clip.w; 221 222 clip.xy += offset; 223 224 #endif 225 226 gl_Position = clip; 227 228 vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation 229 230 #include <logdepthbuf_vertex> 231 #include <clipping_planes_vertex> 232 #include <fog_vertex> 233 234 } 235 `,fragmentShader:` 236 uniform vec3 diffuse; 237 uniform float opacity; 238 uniform float linewidth; 239 240 #ifdef USE_DASH 241 242 uniform float dashOffset; 243 uniform float dashSize; 244 uniform float gapSize; 245 246 #endif 247 248 varying float vLineDistance; 249 250 #ifdef WORLD_UNITS 251 252 varying vec4 worldPos; 253 varying vec3 worldStart; 254 varying vec3 worldEnd; 255 256 #ifdef USE_DASH 257 258 varying vec2 vUv; 259 260 #endif 261 262 #else 263 264 varying vec2 vUv; 265 266 #endif 267 268 #include <common> 269 #include <color_pars_fragment> 270 #include <fog_pars_fragment> 271 #include <logdepthbuf_pars_fragment> 272 #include <clipping_planes_pars_fragment> 273 274 vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { 275 276 float mua; 277 float mub; 278 279 vec3 p13 = p1 - p3; 280 vec3 p43 = p4 - p3; 281 282 vec3 p21 = p2 - p1; 283 284 float d1343 = dot( p13, p43 ); 285 float d4321 = dot( p43, p21 ); 286 float d1321 = dot( p13, p21 ); 287 float d4343 = dot( p43, p43 ); 288 float d2121 = dot( p21, p21 ); 289 290 float denom = d2121 * d4343 - d4321 * d4321; 291 292 float numer = d1343 * d4321 - d1321 * d4343; 293 294 mua = numer / denom; 295 mua = clamp( mua, 0.0, 1.0 ); 296 mub = ( d1343 + d4321 * ( mua ) ) / d4343; 297 mub = clamp( mub, 0.0, 1.0 ); 298 299 return vec2( mua, mub ); 300 301 } 302 303 void main() { 304 305 #include <clipping_planes_fragment> 306 307 #ifdef USE_DASH 308 309 if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps 310 311 if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX 312 313 #endif 314 315 float alpha = opacity; 316 317 #ifdef WORLD_UNITS 318 319 // Find the closest points on the view ray and the line segment 320 vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; 321 vec3 lineDir = worldEnd - worldStart; 322 vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); 323 324 vec3 p1 = worldStart + lineDir * params.x; 325 vec3 p2 = rayEnd * params.y; 326 vec3 delta = p1 - p2; 327 float len = length( delta ); 328 float norm = len / linewidth; 329 330 #ifndef USE_DASH 331 332 #ifdef USE_ALPHA_TO_COVERAGE 333 334 float dnorm = fwidth( norm ); 335 alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); 336 337 #else 338 339 if ( norm > 0.5 ) { 340 341 discard; 342 343 } 344 345 #endif 346 347 #endif 348 349 #else 350 351 #ifdef USE_ALPHA_TO_COVERAGE 352 353 // artifacts appear on some hardware if a derivative is taken within a conditional 354 float a = vUv.x; 355 float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; 356 float len2 = a * a + b * b; 357 float dlen = fwidth( len2 ); 358 359 if ( abs( vUv.y ) > 1.0 ) { 360 361 alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); 362 363 } 364 365 #else 366 367 if ( abs( vUv.y ) > 1.0 ) { 368 369 float a = vUv.x; 370 float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; 371 float len2 = a * a + b * b; 372 373 if ( len2 > 1.0 ) discard; 374 375 } 376 377 #endif 378 379 #endif 380 381 vec4 diffuseColor = vec4( diffuse, alpha ); 382 383 #include <logdepthbuf_fragment> 384 #include <color_fragment> 385 386 gl_FragColor = vec4( diffuseColor.rgb, alpha ); 387 388 #include <tonemapping_fragment> 389 #include <colorspace_fragment> 390 #include <fog_fragment> 391 #include <premultiplied_alpha_fragment> 392 393 } 394 `};
394class o extends i.jyz{constructor(t){super({type:"LineMaterial",uniforms:i.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);let i=new r.ZzF,o=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){let e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(e.applyMatrix4(t),n.applyMatrix4(t),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(t){let e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));let n=new r.$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));let 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){let e=t.geometry;return this.setPositions(e.attributes.position.array),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new r.ZzF);let t=this.attributes.instanceStart,e=this.attributes.instanceEnd;void 0!==t&&void 0!==e&&(this.boundingBox.setFromBufferAttribute(t),i.setFromBufferAttribute(e),this.boundingBox.union(i))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new r.aLr),null===this.boundingBox&&this.computeBoundingBox();let t=this.attributes.instanceStart,e=this.attributes.instanceEnd;if(void 0!==t&&void 0!==e){let n=this.boundingSphere.center;this.boundingBox.getCenter(n);let r=0;for(let i=0,a=t.count;i<a;i++)o.fromBufferAttribute(t,i),r=Math.max(r,n.distanceToSquared(o)),o.fromBufferAttribute(e,i),r=Math.max(r,n.distanceToSquared(o));this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}},97157:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(74250);class i{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,e=100){let n=[],i=function(t,e,n){let i=Array.from(t),o=e/n.resolution,a=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*o,s=[],l=0,u=0;for(let t=0;t<i.length;t++){let e=i[t];if("\n"===e)l=0,u-=a;else{let t=function(t,e,n,i,o){let a,s,l,u,c,h,f,p;let d=o.glyphs[t]||o.glyphs["?"];if(!d){console.error('THREE.Font: character "'+t+'" does not exists in font family '+o.familyName+".");return}let m=new r.T_1;if(d.o){let t=d._cachedOutline||(d._cachedOutline=d.o.split(" "));for(let r=0,o=t.length;r<o;)switch(t[r++]){case"m":a=t[r++]*e+n,s=t[r++]*e+i,m.moveTo(a,s);break;case"l":a=t[r++]*e+n,s=t[r++]*e+i,m.lineTo(a,s);break;case"q":l=t[r++]*e+n,u=t[r++]*e+i,c=t[r++]*e+n,h=t[r++]*e+i,m.quadraticCurveTo(c,h,l,u);break;case"b":l=t[r++]*e+n,u=t[r++]*e+i,c=t[r++]*e+n,h=t[r++]*e+i,f=t[r++]*e+n,p=t[r++]*e+i,m.bezierCurveTo(c,h,f,p,l,u)}}return{offsetX:d.ha*e,path:m}}(e,o,l,u,n);l+=t.offsetX,s.push(t.path)}}return s}(t,e,this.data);for(let t=0,e=i.length;t<e;t++)n.push(...i[t].toShapes());return n}}},81764:function(t,e,n){"use strict";n.d(e,{M:function(){return c},j:function(){return i}});var r=n(74250);class i 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}}let o=new r.Pa4,a=new r.yGw,s=new r.yGw,l=new r.Pa4,u=new r.Pa4;class c{constructor(t={}){let e,n,r,i;let c=this,h={objects:new WeakMap},f=void 0!==t.element?t.element:document.createElement("div");
394f.style.overflow="hidden",this.domElement=f,this.getSize=function(){return{width:e,height:n}},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),function t(e,n,a){if(!1===e.visible){!function t(e){e.isCSS2DObject&&(e.element.style.display="none");for(let n=0,r=e.children.length;n<r;n++)t(e.children[n])}(e);return}if(e.isCSS2DObject){o.setFromMatrixPosition(e.matrixWorld),o.applyMatrix4(s);let t=o.z>=-1&&o.z<=1&&!0===e.layers.test(a.layers),p=e.element;p.style.display=!0===t?"":"none",!0===t&&(e.onBeforeRender(c,n,a),p.style.transform="translate("+-100*e.center.x+"%,"+-100*e.center.y+"%)translate("+(o.x*r+r)+"px,"+(-o.y*i+i)+"px)",p.parentNode!==f&&f.appendChild(p),e.onAfterRender(c,n,a));let d={distanceToCameraSquared:(l.setFromMatrixPosition(a.matrixWorld),u.setFromMatrixPosition(e.matrixWorld),l.distanceToSquared(u))};h.objects.set(e,d)}for(let r=0,i=e.children.length;r<i;r++)t(e.children[r],n,a)}(t,t,e),function(t){let e=(function(t){let e=[];return t.traverseVisible(function(t){t.isCSS2DObject&&e.push(t)}),e})(t).sort(function(t,e){return t.renderOrder!==e.renderOrder?e.renderOrder-t.renderOrder:h.objects.get(t).distanceToCameraSquared-h.objects.get(e).distanceToCameraSquared}),n=e.length;for(let t=0,r=e.length;t<r;t++)e[t].element.style.zIndex=n-t}(t)},this.setSize=function(t,o){e=t,n=o,r=e/2,i=n/2,f.style.width=t+"px",f.style.height=o+"px"}}}},40140:function(t,e,n){"use strict";n.r(e),n.d(e,{computeMikkTSpaceTangents:function(){return i},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 o},mergeGroups:function(){return m},mergeVertices:function(){return f},toCreasedNormals:function(){return g},toTrianglesDrawMode:function(){return p}});var r=n(74250);function i(t,e,n=!0){if(!e||!e.isReady)throw Error("BufferGeometryUtils: Initialized MikkTSpace library required.");if(!t.hasAttribute("position")||!t.hasAttribute("normal")||!t.hasAttribute("uv"))throw Error('BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.');function i(t){if(t.normalized||t.isInterleavedBufferAttribute){let e=new Float32Array(t.count*t.itemSize);for(let n=0,r=0;n<t.count;n++)e[r++]=t.getX(n),e[r++]=t.getY(n),t.itemSize>2&&(e[r++]=t.getZ(n));return e}return t.array instanceof Float32Array?t.array:new Float32Array(t.array)}let o=t.index?t.toNonIndexed():t,a=e.generateTangents(i(o.attributes.position),i(o.attributes.normal),i(o.attributes.uv));if(n)for(let t=3;t<a.length;t+=4)a[t]*=-1;return o.setAttribute("tangent",new r.TlE(a,4)),t!==o&&t.copy(o),t}function o(t,e=!1){let n=null!==t[0].index,i=new Set(Object.keys(t[0].attributes)),o=new Set(Object.keys(t[0].morphAttributes)),s={},l={},u=t[0].morphTargetsRelative,c=new r.u9r,h=0;for(let r=0;r<t.length;++r){let a=t[r],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(let t in a.attributes){if(!i.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+'. All geometries must have compatible attributes; make sure "'+t+'" attribute exists among all geometries, or in none of them.'),null;void 0===s[t]&&(s[t]=[]),s[t].push(a.attributes[t]),f++}if(f!==i.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". Make sure all geometries have the same number of attributes."),null;if(u!==a.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". .morphTargetsRelative must be consistent throughout all geometries."),null;
394for(let t in a.morphAttributes){if(!o.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,n=[];for(let r=0;r<t.length;++r){let i=t[r].index;for(let t=0;t<i.count;++t)n.push(i.getX(t)+e);e+=t[r].attributes.position.count}c.setIndex(n)}for(let t in s){let e=a(s[t]);if(!e)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" attribute."),null;c.setAttribute(t,e)}for(let t in l){let e=l[t][0].length;if(0===e)break;c.morphAttributes=c.morphAttributes||{},c.morphAttributes[t]=[];for(let n=0;n<e;++n){let e=[];for(let r=0;r<l[t].length;++r)e.push(l[t][r][n]);let r=a(e);if(!r)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" morphAttribute."),null;c.morphAttributes[t].push(r)}}return c}function a(t){let e,n,i;let o=-1,a=0;for(let r=0;r<t.length;++r){let s=t[r];if(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===i&&(i=s.normalized),i!==s.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(-1===o&&(o=s.gpuType),o!==s.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;a+=s.count*n}let s=new e(a),l=new r.TlE(s,n,i),u=0;for(let e=0;e<t.length;++e){let r=t[e];if(r.isInterleavedBufferAttribute){let t=u/n;for(let e=0,i=r.count;e<i;e++)for(let i=0;i<n;i++){let n=r.getComponent(e,i);l.setComponent(e+t,i,n)}}else s.set(r.array,u);u+=r.count*n}return void 0!==o&&(l.gpuType=o),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;let n=0,i=0;for(let r=0,o=t.length;r<o;++r){let o=t[r];if(void 0===e&&(e=o.array.constructor),e!==o.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=o.array.length,i+=o.itemSize}let o=new r.vpT(new e(n),i),a=0,s=[],l=["getX","getY","getZ","getW"],u=["setX","setY","setZ","setW"];for(let e=0,n=t.length;e<n;e++){let n=t[e],i=n.itemSize,c=n.count,h=new r.kB5(o,i,a,n.normalized);s.push(h),a+=i;for(let t=0;t<c;t++)for(let e=0;e<i;e++)h[u[e]](t,n[l[e]](t))}return s}function u(t){let e;let n=t.data.array.constructor,i=t.count,o=t.itemSize,a=t.normalized,s=new n(i*o);e=t.isInstancedInterleavedBufferAttribute?new r.lb7(s,o,a,t.meshPerAttribute):new r.TlE(s,o,a);for(let n=0;n<i;n++)e.setX(n,t.getX(n)),o>=2&&e.setY(n,t.getY(n)),o>=3&&e.setZ(n,t.getZ(n)),o>=4&&e.setW(n,t.getW(n));return e}function c(t){let e=t.attributes,n=t.morphTargets,r=new Map;for(let t in e){let n=e[t];n.isInterleavedBufferAttribute&&(r.has(n)||r.set(n,u(n)),e[t]=r.get(n))}for(let t in n){let e=n[t];e.isInterleavedBufferAttribute&&(r.has(e)||r.set(e,u(e)),n[t]=r.get(e))}}function h(t){let e=0;for(let n in t.attributes){let r=t.getAttribute(n);e+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}let n=t.getIndex();return e+(n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0)}function f(t,e=1e-4){e=Math.max(e,Number.EPSILON);let n={},r=t.getIndex(),i=t.getAttribute("position"),o=r?r.count:i.count,a=0,s=Object.keys(t.attributes),l={},u={}
394,c=[],h=["getX","getY","getZ","getW"],f=["setX","setY","setZ","setW"];for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.attributes[n];l[n]=new r.constructor(new r.array.constructor(r.count*r.itemSize),r.itemSize,r.normalized);let i=t.morphAttributes[n];i&&(u[n]||(u[n]=[]),i.forEach((t,e)=>{let r=new t.array.constructor(t.count*t.itemSize);u[n][e]=new t.constructor(r,t.itemSize,t.normalized)}))}let p=.5*e,d=Math.pow(10,Math.log10(1/e)),m=p*d;for(let e=0;e<o;e++){let i=r?r.getX(e):e,o="";for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.getAttribute(n),a=r.itemSize;for(let t=0;t<a;t++)o+=`${~~(r[h[t]](i)*d+m)},`}if(o in n)c.push(n[o]);else{for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.getAttribute(n),o=t.morphAttributes[n],c=r.itemSize,p=l[n],d=u[n];for(let t=0;t<c;t++){let e=h[t],n=f[t];if(p[n](a,r[e](i)),o)for(let t=0,r=o.length;t<r;t++)d[t][n](a,o[t][e](i))}}n[o]=a,c.push(a),a++}}let g=t.clone();for(let e in t.attributes){let t=l[e];if(g.setAttribute(e,new t.constructor(t.array.slice(0,a*t.itemSize),t.itemSize,t.normalized)),e in u)for(let t=0;t<u[e].length;t++){let n=u[e][t];g.morphAttributes[e][t]=new n.constructor(n.array.slice(0,a*n.itemSize),n.itemSize,n.normalized)}}return g.setIndex(c),g}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)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t;{let n=t.getIndex();if(null===n){let e=[],r=t.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t<r.count;t++)e.push(t);t.setIndex(e),n=t.getIndex()}let i=n.count-2,o=[];if(e===r.z$h)for(let t=1;t<=i;t++)o.push(n.getX(0)),o.push(n.getX(t)),o.push(n.getX(t+1));else for(let t=0;t<i;t++)t%2==0?(o.push(n.getX(t)),o.push(n.getX(t+1)),o.push(n.getX(t+2))):(o.push(n.getX(t+2)),o.push(n.getX(t+1)),o.push(n.getX(t)));o.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let a=t.clone();return a.setIndex(o),a.clearGroups(),a}}function d(t){let e,n,i,o,a,s,l,u,c,h;let f=new r.Pa4,p=new r.Pa4,d=new r.Pa4,m=new r.Pa4,g=new r.Pa4,y=new r.Pa4,v=new r.Pa4,_=new r.Pa4,b=new r.Pa4;function w(t,e,n,r,i,o,a,s){f.fromBufferAttribute(e,i),p.fromBufferAttribute(e,o),d.fromBufferAttribute(e,a);let l=t.morphTargetInfluences;if(n&&l){v.set(0,0,0),_.set(0,0,0),b.set(0,0,0);for(let t=0,e=n.length;t<e;t++){let e=l[t],s=n[t];0!==e&&(m.fromBufferAttribute(s,i),g.fromBufferAttribute(s,o),y.fromBufferAttribute(s,a),r?(v.addScaledVector(m,e),_.addScaledVector(g,e),b.addScaledVector(y,e)):(v.addScaledVector(m.sub(f),e),_.addScaledVector(g.sub(p),e),b.addScaledVector(y.sub(d),e)))}f.add(v),p.add(_),d.add(b)}t.isSkinnedMesh&&(t.applyBoneTransform(i,f),t.applyBoneTransform(o,p),t.applyBoneTransform(a,d)),s[3*i+0]=f.x,s[3*i+1]=f.y,s[3*i+2]=f.z,s[3*o+0]=p.x,s[3*o+1]=p.y,s[3*o+2]=p.z,s[3*a+0]=d.x,s[3*a+1]=d.y,s[3*a+2]=d.z}let x=t.geometry,S=t.material,P=x.index,H=x.attributes.position,O=x.morphAttributes.position,M=x.morphTargetsRelative,E=x.attributes.normal,T=x.morphAttributes.position,A=x.groups,C=x.drawRange,k=new Float32Array(H.count*H.itemSize),j=new Float32Array(E.count*E.itemSize);if(null!==P){if(Array.isArray(S))for(o=0,s=A.length;o<s;o++)for(c=Math.max((u=A[o]).start,C.start),h=Math.min(u.start+u.count,C.start+C.count),a=c,l=h;a<l;a+=3)w(t,H,O,M,e=P.getX(a),n=P.getX(a+1),i=P.getX(a+2),k),w(t,E,T,M,e,n,i,j);else for(c=Math.max(0,C.start),h=Math.min(P.count,C.start+C.count),o=c,s=h;o<s;o+=3)w(t,H,O,M,e=P.getX(o),n=P.getX(o+1),i=P.getX(o+2),k),w(t,E,T,M,e,n,i,j)}else if(Array.isArray(S))for(o=0,s=A.length;o<s;o++)for(c=Math.max((u=A[o]).start,C.start),h=Math.min(u.start+u.count,C.start+C.count),a=c,l=h;a<l;a+=3)w(t,H,O,M,e=a,n=a+1,i=a+2,k),w(t,E,T,M,e,n,i,j);else for(c=Math.max(0,C.start),h=Math.min(H.count,C.start+C.count),o=c,s=h;o<s;o+=3)w(t,H,O,M,e=o,n=o+1,i=o+2,k),w(t,E,T,M,e,n,i,j);return{positionAttribute:H,normalAttribute:E,morphedPositionAttribute:new r.a$l(k,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()){let e=t.getAttribute("position"),n=[];for(let t=0;t<e.count;t+=3)n.push(t,t+1,t+2);t.setIndex(n)}let n=t.getIndex(),r=[];for(let t=0;t<e.length;t++){let i=e[t],o=i.start,a=o+i.count;for(let t=o;t<a;t++)r.push(n.getX(t))}t.dispose(),t.setIndex(r);let i=0;for(let t=0;t<e.length;t++){let n=e[t];n.start=i,i+=n.count}let o=e[0];t.groups=[o];for(let n=1;n<e.length;n++){let r=e[n];o.materialIndex===r.materialIndex?o.count+=r.count:(o=r,t.groups.push(o))}return t}function g(t,e=Math.PI/3){let n=Math.cos(e),i=(1+1e-10)*100,o=[new r.Pa4,new r.Pa4,new r.Pa4],a=new r.Pa4,s=new r.Pa4,l=ne
394w r.Pa4,u=new r.Pa4;function c(t){let e=~~(t.x*i),n=~~(t.y*i),r=~~(t.z*i);return`${e},${n},${r}`}let h=t.index?t.toNonIndexed():t,f=h.attributes.position,p={};for(let t=0,e=f.count/3;t<e;t++){let e=3*t,n=o[0].fromBufferAttribute(f,e+0),i=o[1].fromBufferAttribute(f,e+1),l=o[2].fromBufferAttribute(f,e+2);a.subVectors(l,i),s.subVectors(n,i);let u=new r.Pa4().crossVectors(a,s).normalize();for(let t=0;t<3;t++){let e=c(o[t]);e in p||(p[e]=[]),p[e].push(u)}}let d=new Float32Array(3*f.count),m=new r.TlE(d,3,!1);for(let t=0,e=f.count/3;t<e;t++){let e=3*t,r=o[0].fromBufferAttribute(f,e+0),i=o[1].fromBufferAttribute(f,e+1),h=o[2].fromBufferAttribute(f,e+2);a.subVectors(h,i),s.subVectors(r,i),l.crossVectors(a,s).normalize();for(let t=0;t<3;t++){let r=p[c(o[t])];u.set(0,0,0);for(let t=0,e=r.length;t<e;t++){let e=r[t];l.dot(e)>n&&u.add(e)}u.normalize(),m.setXYZ(e+t,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})(t)}n.d(e,{Z:function(){return u}});var i,o,a,s=/^\s+/,l=/\s+$/;function u(t,e){if(e=e||{},(t=t||"")instanceof u)return t;if(!(this instanceof u))return new u(t,e);var n,i,o,a,c,h,f,p,d,m,g,y,v,_,b,w,x,S,P,H,M=(i={r:0,g:0,b:0},o=1,a=null,c=null,h=null,f=!1,p=!1,"string"==typeof(n=t)&&(n=function(t){t=t.replace(s,"").replace(l,"").toLowerCase();var e,n=!1;if(O[t])t=O[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=D.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=D.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=D.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=D.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=D.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=D.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=D.hex8.exec(t))?{r:C(e[1]),g:C(e[2]),b:C(e[3]),a:C(e[4])/255,format:n?"name":"hex8"}:(e=D.hex6.exec(t))?{r:C(e[1]),g:C(e[2]),b:C(e[3]),format:n?"name":"hex"}:(e=D.hex4.exec(t))?{r:C(e[1]+""+e[1]),g:C(e[2]+""+e[2]),b:C(e[3]+""+e[3]),a:C(e[4]+""+e[4])/255,format:n?"name":"hex8"}:!!(e=D.hex3.exec(t))&&{r:C(e[1]+""+e[1]),g:C(e[2]+""+e[2]),b:C(e[3]+""+e[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(L(n.r)&&L(n.g)&&L(n.b)?(d=n.r,m=n.g,g=n.b,i={r:255*T(d,255),g:255*T(m,255),b:255*T(g,255)},f=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):L(n.h)&&L(n.s)&&L(n.v)?(a=j(n.s),c=j(n.v),y=n.h,v=a,_=c,y=6*T(y,360),v=T(v,100),_=T(_,100),b=Math.floor(y),w=y-b,x=_*(1-v),S=_*(1-w*v),P=_*(1-(1-w)*v),i={r:255*[_,S,x,x,P,_][H=b%6],g:255*[P,_,_,S,x,x][H],b:255*[x,x,P,_,_,S][H]},f=!0,p="hsv"):L(n.h)&&L(n.s)&&L(n.l)&&(a=j(n.s),h=j(n.l),i=function(t,e,n){var r,i,o;function a(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=T(t,360),e=T(e,100),n=T(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),i=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,a,h),f=!0,p="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=E(o),{ok:f,format:n.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o});this._originalInput=t,this._r=M.r,this._g=M.g,this._b=M.b,this._a=M.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||M.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=M.ok}function c(t,e,n){var r,i,o=Math.max(t=T(t,255),e=T(e,255),n=T(n,255)),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){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:i,l:s}}function h(t,e,n){var r,i=Math.max(t=T(t,255),e=T(e,255),n=T(n,255)),o=Math.min(t,e,n),a=i-o;if(i==o)r=0;else{switch(i){case t:r=(e-n)/a+(e<n?6:0);break;case e:r=(n-t)/a+2;break;case n:r=(t-e)/a+4}r/=6}return{h:r,s:0===i?0:a/i,v:i}}function f(t,e,n,r){var i=[k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function p(t,e,n,r){return[k(R(r)),k(Math.round(t).toString(16)),k(Math.round(e).toString(16)),k(Math.round(n).toString(16))].join("")}function d(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s-=e/100,n.s=A(n.s),u(n)}function m(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s+=e/100,n.s=A(n.s),u(n)}function g(t){return u(t).desaturate(100)}function y(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l+=e/100,n.l=A(n.l),u(n)}function v(t,e){e=0===e?0:e||10;var n=u(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)))),u(n)}function _(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l-=e/100,n.l=A(n.l),u(n)}function b(t,e){var n=u(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,u(n)}function w(t){var e=u(t).toHsl();return e.h=(e.h+180)%360,u(e)}function x(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var n=u(t).toHsl(),r=[u(t)],i=360/e,o=1;o<e;o++)r.push(u({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function S(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+72)%360,s:e.s,l:e.l}),u({h:(n+216)%360,s:e.s,l:e.l})]}function P(t,e,n){e=e||6,n=n||30;var r=u(t).toHsl(),i=360/n,o=[u(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(u(r));return o}function H(t,e){e=e||6;for(var n=u(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(u({h:r,s:i,v:o})),o=(o+s)%1;return a}u.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*((e=r.g/255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=E(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(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=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(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 f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){var e,n,r,i,o;return e=this._r,n=this._g,r=this._b,i=this._a,o=[k(Math.round(e).toString(16)),k(Math.round(n).toString(16)),k(Math.round(r).toString(16)),k(R(i))],t&&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[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*T(this._r,255))+"%",g:Math.round(100*T(this._g,255))+"%",b:Math.round(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*T(this._r,255))+"%, "+Math.round(100*T(this._g,255))+"%, "+Math.round(100*T(this._b,255))+"%)":"rgba("+Math.round(100*T(this._r,255))+"%, "+Math.round(100*T(this._g,255))+"%, "+Math.round(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=u(t);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return!e&&r&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t)?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return u(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(y,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},u.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?n[i]=t[i]:n[i]=j(t[i]));t=n}return u(t,e)},u.equals=function(t,e){return!!t&&!!e&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},u.mix=function(t,e,n){n=0===n?0:n||50;var r=u(t).toRgb(),i=u(e).toRgb(),o=n/100;return u({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},u.readability=function(t,e){var n=u(t),r=u(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},u.isReadable=function(t,e,n){var r,i,o,a,s,l=u.readability(t,e);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},u.mostReadable=function(t,e,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;
vendor: 1,583 bytes, line 394
394for(var c=0;c<e.length;c++)(r=u.readability(t,e[c]))>l&&(l=r,s=u(e[c]));return u.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,u.mostReadable(t,["#fff","#000"],n))};var O=u.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
3940",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"},M=u.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(O);function E(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t}function T(t,e){"string"==typeof(n=t)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var n,r,i="string"==typeof(r=t)&&-1!=r.indexOf("%");return(t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),1e-6>Math.abs(t-e))?1:t%e/parseFloat(e)}function A(t){return Math.min(1,Math.max(0,t))}function C(t){return parseInt(t,16)}function k(t){return 1==t.length?"0"+t:""+t}function j(t){return t<=1&&(t=100*t+"%"),t}function R(t){return Math.round(255*parseFloat(t)).toString(16)}var D=(o="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+a),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+a),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"
394+a),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 L(t){return!!D.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.