1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34],{5318:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},3803:function(t,e,n){"use strict";n.d(e,{z:function(){return o},Z:function(){return s}});var r=n(744);let i={};function o(t){i=t}function s(t,e,n,o){r.Z.level>0&&i[t]&&i[t].call(null,e,n,o)}},5361:function(t,e,n){"use strict";n.d(e,{M:function(){return a}});var r=n(4942);const i=[255,255,255],o=1;let s=0;class a{constructor(t={}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"color",void 0),(0,r.Z)(this,"intensity",void 0),(0,r.Z)(this,"type","ambient");const{color:e=i}=t,{intensity:n=o}=t;this.id=t.id||"ambient-".concat(s++),this.color=e,this.intensity=n}}},2464:function(t,e,n){"use strict";n.d(e,{Z:function(){return D}});var r=n(4942),i=n(3426),o=n(1621),s=n(5361),a=n(8022);const u=[255,255,255],c=1,l=[0,0,-1];let h=0;class f{constructor(t={}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"color",void 0),(0,r.Z)(this,"intensity",void 0),(0,r.Z)(this,"type","directional"),(0,r.Z)(this,"direction",void 0),(0,r.Z)(this,"shadow",void 0);const{color:e=u}=t,{intensity:n=c}=t,{direction:i=l}=t,{_shadow:o=!1}=t;this.id=t.id||"directional-".concat(h++),this.color=e,this.intensity=n,this.type="directional",this.direction=new a.Z(i).normalize().toArray(),this.shadow=o}getProjectedLight(t){return this}}var d=n(9572),p=n(5442),g=n(4041),m=n(3849),y=n(1418);class v extends p.Z{constructor(t,e){super(t,e),(0,r.Z)(this,"shadowMap",void 0),(0,r.Z)(this,"depthBuffer",void 0),(0,r.Z)(this,"fbo",void 0),this.shadowMap=new o.Z(t,{width:1,height:1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.depthBuffer=new g.Z(t,{format:33189,width:1,height:1}),this.fbo=new m.Z(t,{id:"shadowmap",width:1,height:1,attachments:{36064:this.shadowMap,36096:this.depthBuffer}})}render(t){const e=this.fbo;(0,y.s8)(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},(()=>{const n=t.viewports[0],r=(0,y.w)(this.gl),i=n.width*r,o=n.height*r;i===e.width&&o===e.height||e.resize({width:i,height:o}),super.render({...t,target:e,pass:"shadow"})}))}shouldDrawLayer(t){return!1!==t.props.shadowEnabled}getModuleParameters(){return{drawToShadowMap:!0}}delete(){this.fbo&&(this.fbo.delete(),this.fbo=null),this.shadowMap&&(this.shadowMap.delete(),this.shadowMap=null),this.depthBuffer&&(this.depthBuffer.delete(),this.depthBuffer=null)}}var b=n(4088),_=n(2189),w=n(8177),x=n(8866);const E=(0,w.Z)((function({viewport:t,center:e}){return new d.Z(t.viewProjectionMatrix).invert().transform(e)})),A=(0,w.Z)((function({viewport:t,shadowMatrices:e}){const n=[],r=t.pixelUnprojectionMatrix,i=t.isGeospatial?void 0:1,o=[[0,0,i],[t.width,0,i],[0,t.height,i],[t.width,t.height,i],[0,0,-1],[t.width,0,-1],[0,t.height,-1],[t.width,t.height,-1]].map((t=>function(t,e){const[n,r,i]=t,o=(0,x.CT)([n,r,i],e);if(Number.isFinite(i))return o;return[o[0],o[1],0]}(t,r)));for(const s of e){const e=s.clone().translate(new a.Z(t.center).negate()),r=o.map((t=>e.transform(t))),i=(new d.Z).ortho({left:Math.min(...r.map((t=>t[0]))),right:Math.max(...r.map((t=>t[0]))),bottom:Math.min(...r.map((t=>t[1]))),top:Math.max(...r.map((t=>t[1]))),near:Math.min(...r.map((t=>-t[2]))),far:Math.max(...r.map((t=>-t[2])))});n.push(i.multiplyRight(s))}return n})),S=[0,0,0,1],P=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];var O={name:"shadow",dependencies:[_.Z],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights;
1 i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:(t={},e={})=>"viewport"in t&&(t.drawToShadowMap||t.shadowMaps&&t.shadowMaps.length>0)?function(t,e){const{shadowEnabled:n=!0}=t;if(!n||!t.shadowMatrices||!t.shadowMatrices.length)return{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1};const r={shadow_uDrawShadowMap:Boolean(t.drawToShadowMap),shadow_uUseShadowMap:!!t.shadowMaps&&t.shadowMaps.length>0,shadow_uColor:t.shadowColor||S,shadow_uLightId:t.shadowLightId||0,shadow_uLightCount:t.shadowMatrices.length},i=E({viewport:t.viewport,center:e.project_uCenter}),o=[],s=A({shadowMatrices:t.shadowMatrices,viewport:t.viewport}).slice();for(let u=0;u<t.shadowMatrices.length;u++){const n=s[u],r=n.clone().translate(new a.Z(t.viewport.center).negate());e.project_uCoordinateSystem===b.Df.LNGLAT&&e.project_uProjectionMode===b.zG.WEB_MERCATOR?(s[u]=r,o[u]=i):(s[u]=n.clone().multiplyRight(P),o[u]=r.transform(i))}for(let a=0;a<s.length;a++)r["shadow_uViewProjectionMatrices[".concat(a,"]")]=s[a],r["shadow_uProjectCenters[".concat(a,"]")]=o[a],t.shadowMaps&&t.shadowMaps.length>0?r["shadow_uShadowMap".concat(a)]=t.shadowMaps[a]:r["shadow_uShadowMap".concat(a)]=t.dummyShadowMap;return r}(t,e):{}};const T={color:[255,255,255],intensity:1},C=[{color:[255,255,255],intensity:1,direction:[-1,3,-1]},{color:[255,255,255],intensity:.9,direction:[1,-8,-2.5]}],M=[0,0,0,200/255];class D{constructor(t={}){(0,r.Z)(this,"id","lighting-effect"),(0,r.Z)(this,"props",null),(0,r.Z)(this,"shadowColor",M),(0,r.Z)(this,"shadow",void 0),(0,r.Z)(this,"ambientLight",null),(0,r.Z)(this,"directionalLights",[]),(0,r.Z)(this,"pointLights",[]),(0,r.Z)(this,"shadowPasses",[]),(0,r.Z)(this,"shadowMaps",[]),(0,r.Z)(this,"dummyShadowMap",null),(0,r.Z)(this,"programManager",void 0),(0,r.Z)(this,"shadowMatrices",void 0);for(const e in t){const n=t[e];switch(n.type){case"ambient":this.ambientLight=n;break;case"directional":this.directionalLights.push(n);break;case"point":this.pointLights.push(n)}}this._applyDefaultLights(),this.shadow=this.directionalLights.some((t=>t.shadow))}preRender(t,{layers:e,layerFilter:n,viewports:r,onViewportActive:s,views:a}
1){if(this.shadow){this.shadowMatrices=this._calculateMatrices(),0===this.shadowPasses.length&&this._createShadowPasses(t),this.programManager||(this.programManager=i.Z.getDefaultProgramManager(t),O&&this.programManager.addDefaultModule(O)),this.dummyShadowMap||(this.dummyShadowMap=new o.Z(t,{width:1,height:1}));for(let t=0;t<this.shadowPasses.length;t++){this.shadowPasses[t].render({layers:e,layerFilter:n,viewports:r,onViewportActive:s,views:a,moduleParameters:{shadowLightId:t,dummyShadowMap:this.dummyShadowMap,shadowMatrices:this.shadowMatrices}})}}}getModuleParameters(t){const e=this.shadow?{shadowMaps:this.shadowMaps,dummyShadowMap:this.dummyShadowMap,shadowColor:this.shadowColor,shadowMatrices:this.shadowMatrices}:{};return e.lightSources={ambientLight:this.ambientLight,directionalLights:this.directionalLights.map((e=>e.getProjectedLight({layer:t}))),pointLights:this.pointLights.map((e=>e.getProjectedLight({layer:t})))},e}cleanup(){for(const t of this.shadowPasses)t.delete();this.shadowPasses.length=0,this.shadowMaps.length=0,this.dummyShadowMap&&(this.dummyShadowMap.delete(),this.dummyShadowMap=null),this.shadow&&this.programManager&&(this.programManager.removeDefaultModule(O),this.programManager=null)}_calculateMatrices(){const t=[];for(const e of this.directionalLights){const n=(new d.Z).lookAt({eye:new a.Z(e.direction).negate()});t.push(n)}return t}_createShadowPasses(t){for(let e=0;e<this.directionalLights.length;e++){const n=new v(t);this.shadowPasses[e]=n,this.shadowMaps[e]=n.shadowMap}}_applyDefaultLights(){const{ambientLight:t,pointLights:e,directionalLights:n}=this;t||0!==e.length||0!==n.length||(this.ambientLight=new s.M(T),this.directionalLights.push(new f(C[0]),new f(C[1])))}}},9124:function(t,e,n){"use strict";n.d(e,{c:function(){return h}});var r=n(4942),i=n(8547),o=n(4088);const s=[255,255,255],a=1,u=[0,0,1],c=[0,0,1];let l=0;class h{constructor(t={}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"color",void 0),(0,r.Z)(this,"intensity",void 0),(0,r.Z)(this,"type","point"),(0,r.Z)(this,"position",void 0),(0,r.Z)(this,"attenuation",void 0),(0,r.Z)(this,"projectedLight",void 0);const{color:e=s}=t,{intensity:n=a}=t,{position:i=c}=t;this.id=t.id||"point-".concat(l++),this.color=e,this.intensity=n,this.type="point",this.position=i,this.attenuation=function(t){if(t.attenuation)return t.attenuation;if("intensity"in t)return[0,0,t.intensity||0];return u}(t),this.projectedLight={...this}}getProjectedLight({layer:t}){const{projectedLight:e}=this,n=t.context.viewport,{coordinateSystem:r,coordinateOrigin:s}=t.props,a=(0,i.D)(this.position,{viewport:n,coordinateSystem:r,coordinateOrigin:s,fromCoordinateSystem:n.isGeospatial?o.Df.LNGLAT:o.Df.CARTESIAN,fromCoordinateOrigin:[0,0,0]});return e.color=this.color,e.intensity=this.intensity,e.position=a,e}}},4088:function(t,e,n){"use strict";n.d(e,{Df:function(){return i},zG:function(){return o},iI:function(){return s},FP:function(){return a},k8:function(){return u}});var r=n(744);const i={DEFAULT:-1,LNGLAT:1,METER_OFFSETS:2,LNGLAT_OFFSETS:3,CARTESIAN:0};Object.defineProperty(i,"IDENTITY",{get:()=>(r.Z.deprecated("COORDINATE_SYSTEM.IDENTITY","COORDINATE_SYSTEM.CARTESIAN")(),0)});const o={WEB_MERCATOR:1,GLOBE:2,WEB_MERCATOR_AUTO_OFFSET:4,IDENTITY:0},s={common:0,meters:1,pixels:2},a={click:{handler:"onClick"},panstart:{handler:"onDragStart"},panmove:{handler:"onDrag"},panend:{handler:"onDragEnd"}},u={DRAW:"draw",MASK:"mask"}},8551:function(t,e,n){"use strict";n.d(e,{Z:function(){return Jt}});var r=n(4942),i=n(4088),o=n(4211),s=n(6948),a=n(3478);class u{constructor(t,e){(0,r.Z)(this,"opts",void 0),(0,r.Z)(this,"source",void 0),this.opts=e,this.source=t}get value(){return this.source.value}getValue(){const t=this.source.getBuffer(),e=this.getAccessor();if(t)return[t,e];const{value:n}=this.source,{size:r}=e;let i=n;if(n&&n.length!==r){i=new Float32Array(r);const t=e.elementOffset||0;for(let e=0;e<r;++e)i[e]=n[t+e]}return i}getAccessor(){return{...this.source.getAccessor(),...this.opts}}}var c=n(6610),l=n(5126),h=n(744);function f(t){return t.stride||t.size*t.bytesPerElement}function d(t,e){e.offset&&h.Z.removed("shaderAttribute.offset","vertexOffset, elementOffset")();const n=f(t),r=(void 0!==e.vertexOffset?e.vertexOffset:t.vertexOffset||0)*n+(e.elementOffset||0)*t.bytesPerElement+(t.offset||0);return{...e,offset:r,stride:n}}var p=n(5304),g=n(3360),m=n(1855);const y=[],v=[[0,1/0]];function b(t){const{source:e,target:n,start:r=0,size:i,getData:o}=t,s=t.end||n.length,a=e.length,u=s-r;if(a>u)return void n.set(e.subarray(0,u),r);if(n.set(e,r),!o)return;let c=a;for(;c<u;){const t=o(c,e);for(let e=0;e<i;e++)n[r+c]=t[e]||0,c++}}const _={interpolation:{duration:0,easing:t=>t},spring:{stiffness:.05,damping:.5}};function w(t,e){if(!t)return null;Number.isFinite(t)&&(t={type:"interpolation",duration:t});const n=t.type||"interpolation";return{..._[n],...e,...t,type:n}}function x(t,e){const n=e.getBuffer();return n?[n,{divisor:0,size:e.size,normalized:e.settings.normalized}]:e.value}function E(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error('No defined attribute type for size "'.concat(t,'"'))}}function A(t){t.push(t.shift())}function S(t,e){const{doublePrecision:n,settings:r,value:i,size:o}=t,s=n&&i instanceof Float64Array?2:1;return(r.noAlloc?i.length:e*o)*s}function P({buffer:t,numInstances:e,attribute:n,fromLength:r,fromStartIndices:i,getData:o=(t=>t)}){const s=n.doublePrecision&&n.value instanceof Float64Array?2:1,a=n.size*s,u=n.byteOffset,c=n.startIndices,l=i&&c,h=S(n,e),f=n.isConstant;if(!l&&r>=h)return;const d=f?n.value:n.getBuffer().getData({srcByteOffset:u});if(n.settings.normalized&&!f){const t=o;o=(e,r)=>n.normalizeConstant(t(e,r))}const p=f?(t,e)=>o(d,e):(t,e)=>o(d.subarray(t,t+a),e),g=t.getData({length:r}),m=new Float32Array(h);!function({source:t,target:e,size:n,getData:r,sourceStartIndices:i,targetStartIndices:o}){if(!Array.isArray(o))return b({source:t,target:e,size:n,getData:r}),e;let s=0,a=0;const u=r&&((t,e)=>r(t+a,e)),c=Math.min(i.length,o.length);for(let l=1;l<c;l++){const r=i[l]*n,c=o[l]*n;b({source:t.subarray(s,r),target:e,start:a,end:c,size:n,getData:u}),s=r,a=c}a<e.length&&b({source:[],target:e,start:a,size:n,getData:u})}({source:g,target:m,sourceStartIndices:i,targetStartIndices:c,size:a,getData:p}),t.byteLength<m.byteLength+u&&t.reallocate(m.byteLength+u),t.subData({data:m,offset:u})}class O extends class{constructor(t,e,n){(0,r.Z)(this,"gl",void 0),(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"size",void 0),(0,r.Z)(this,"settings",void 0),(0,r.Z)(this,"value",void 0),(0,r.Z)(this,"doublePrecision",void 0),(0,r.Z)(this,"_buffer",void 0),(0,r.Z)(this,"state",void 0),this.gl=t,this.id=e.id||"",this.size=e.size||1;const i=e.logicalType||e.type,a=5130===i;let u,{defaultValue:c}=e;c=Number.isFinite(c)?[c]:c||new Array(this.size).fill(0),u=a?5126:!i&&e.isIndexed?t&&(0,o.U6)(t,s.h.ELEMENT_INDEX_UINT32)?5125:5123:i||5126;let l=function(t){switch(t){case 5126:return Float32Array;case 5130:return Float64Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return Uint8ClampedArray;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Unknown GL type")}}(i||u||5126);this.doublePrecision=a,a&&!1===e.fp64&&(l=Float32Array),this.value=null,this.settings={...e,defaultType:l,defaultValue:c,logicalType:i,type:u,size:this.size,bytesPerElement:l.BYTES_PER_ELEMENT},this.state={...n,externalBuffer:null,bufferAccessor:this.settings,allocatedValue:null,numInstances:0,bounds:null,constant:!1},this._buffer=null}get isConstant(){return this.state.constant}get buffer(){if(!this._buffer){const{isIndexed:t,type:e}=this.settings;this._buffer=new a.Z(this.gl,{id:this.id,target:t?34963:34962,accessor:{type:e}})}return this._buffer}get byteOffset(){const t=this.getAccessor();return t.vertexOffset?t.vertexOffset*f(t):0}get numInstances(){return this.state.numInstances}set numInstances(t){this.state.numInstances=t}delete(){this._buffer&&(this._buffer.delete(),this._buffer=null),c.Z.release(this.state.allocatedValue)}getShaderAttributes(t,e){if(this.doublePrecision){const n={},r=this.value instanceof Float64Array,i=function(t,e){const n=d(t,e);return{high:n,low:{...n,offset:n.offset+4*t.size}}}(this.getAccessor(),e||{});return n[t]=new u(this,i.high),n["".concat(t,"64Low")]=r?new u(this,i.low):new Float32Array(this.size),n}if(e){const n=d(this.getAccessor(),e);return{[t]:new u(this,n)}}return{[t]:this}}getBuffer(){return this.state.constant?null:this.state.externalBuffer||this._buffer}getValue(){return this.state.constant?this.value:[this.getBuffer(),this.getAccessor()]}getAccessor(){return this.state.bufferAccessor}getBounds(){if(this.state.bounds)return this.state.bounds;let t=null;if(this.state.constant&&this.value){const e=Array.from(this.value);t=[e,e]}else{const{value:e,numInstances:n,size:r}=this,i=n*r;if(e&&i&&e.length>=i){const n=new Array(r).fill(1/0),o=new Array(r).fill(-1/0);for(let t=0;t<i;)for(let i=0;i<r;i++){const r=e[t++];r<n[i]&&(n[i]=r),r>o[i]&&(o[i]=r)}t=[n,o]}}return this.state.bounds=t,t}setData(t){const{state:e}=this;let n;n=ArrayBuffer.isView(t)?{value:t}:t instanceof a.Z?{buffer:t}:t;const r={...this.settings,...n};if(e.bufferAccessor=r,e.bounds=null,n.constant){let t=n.value;t=this._normalizeValue(t,[],0),this.settings.normalized&&(t=this.normalizeConstant(t));if(!(!e.constant||!this._areValuesEqual(t,this.value)))return!1;e.externalBuffer=null,e.constant=!0,this.value=t}else if(n.buffer){const t=n.buffer;e.externalBuffer=t,e.constant=!1,this.value=n.value||null;const i=n.value instanceof Float64Array;r.type=n.type||t.accessor.type,r.bytesPerElement=t.accessor.BYTES_PER_ELEMENT*(i?2:1),r.stride=f(r)}else if(n.value){this._checkExternalBuffer(n);let t=n.value;e.externalBuffer=null,e.constant=!1,this.value=t,r.bytesPerElement=t.BYTES_PER_ELEMENT,r.stride=f(r);const{buffer:i,byteOffset:o}=this;this.doublePrecision&&t instanceof Float64Array&&(t=(0,l.TK)(t,r));const s=t.byteLength+o+2*r.stride;i.byteLength<s&&i.reallocate(s),i.setAccessor(null),i.subData({data:t,offset:o}),r.type=n.type||i.accessor.type}return!0}updateSubBuffer(t={}){this.state.bounds=null;const e=this.value,{startOffset:n=0,endOffset:r}=t;this.buffer.subData({data:this.doublePrecision&&e instanceof Float64Array?(0,l.TK)(e,{size:this.size,startIndex:n,endIndex:r}):e.subarray(n,r),offset:n*e.BYTES_PER_ELEMENT+this.byteOffset})}allocate(t,e=!1){const{state:n}=this,r=n.allocatedValue,i=c.Z.allocate(r,t+1,{size:this.size,type:this.settings.defaultType,copy:e});this.value=i;const{buffer:o,byteOffset:s}=this;return o.byteLength<i.byteLength+s&&(o.reallocate(i.byteLength+s),e&&r&&o.subData({data:r instanceof Float64Array?(0,l.TK)(r,this):r,offset:s}
1)),n.allocatedValue=i,n.constant=!1,n.externalBuffer=null,n.bufferAccessor=this.settings,!0}_checkExternalBuffer(t){const{value:e}=t;if(!ArrayBuffer.isView(e))throw new Error("Attribute ".concat(this.id," value is not TypedArray"));const n=this.settings.defaultType;let r=!1;if(this.doublePrecision&&(r=e.BYTES_PER_ELEMENT<4),r)throw new Error("Attribute ".concat(this.id," does not support ").concat(e.constructor.name));e instanceof n||!this.settings.normalized||"normalized"in t||h.Z.warn("Attribute ".concat(this.id," is normalized"))()}normalizeConstant(t){switch(this.settings.type){case 5120:return new Float32Array(t).map((t=>(t+128)/255*2-1));case 5122:return new Float32Array(t).map((t=>(t+32768)/65535*2-1));case 5121:return new Float32Array(t).map((t=>t/255));case 5123:return new Float32Array(t).map((t=>t/65535));default:return t}}_normalizeValue(t,e,n){const{defaultValue:r,size:i}=this.settings;if(Number.isFinite(t))return e[n]=t,e;if(!t)return e[n]=r[0],e;switch(i){case 4:e[n+3]=Number.isFinite(t[3])?t[3]:r[3];case 3:e[n+2]=Number.isFinite(t[2])?t[2]:r[2];case 2:e[n+1]=Number.isFinite(t[1])?t[1]:r[1];case 1:e[n+0]=Number.isFinite(t[0])?t[0]:r[0];break;default:let o=i;for(;--o>=0;)e[n+o]=Number.isFinite(t[o])?t[o]:r[o]}return e}_areValuesEqual(t,e){if(!t||!e)return!1;const{size:n}=this;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}}{constructor(t,e){super(t,e,{startIndices:null,lastExternalBuffer:null,binaryValue:null,binaryAccessor:null,needsUpdate:!0,needsRedraw:!1,updateRanges:v}),(0,r.Z)(this,"constant",!1),this.settings.update=e.update||(e.accessor?this._autoUpdater:void 0),Object.seal(this.settings),Object.seal(this.state),this._validateAttributeUpdaters()}get startIndices(){return this.state.startIndices}set startIndices(t){this.state.startIndices=t}needsUpdate(){return this.state.needsUpdate}needsRedraw({clearChangedFlags:t=!1}={}){const e=this.state.needsRedraw;return this.state.needsRedraw=e&&!t,e}getUpdateTriggers(){const{accessor:t}=this.settings;return[this.id].concat("function"!==typeof t&&t||[])}supportsTransition(){return Boolean(this.settings.transition)}getTransitionSetting(t){if(!t||!this.supportsTransition())return null;const{accessor:e}=this.settings,n=this.settings.transition;return w(Array.isArray(e)?t[e.find((e=>t[e]))]:t[e],n)}setNeedsUpdate(t=this.id,e){if(this.state.needsUpdate=this.state.needsUpdate||t,this.setNeedsRedraw(t),e){const{startRow:t=0,endRow:n=1/0}=e;this.state.updateRanges=function(t,e){if(t===v)return t;if(e[0]<0&&(e[0]=0),e[0]>=e[1])return t;const n=[],r=t.length;let i=0;for(let o=0;o<r;o++){const r=t[o];r[1]<e[0]?(n.push(r),i=o+1):r[0]>e[1]?n.push(r):e=[Math.min(r[0],e[0]),Math.max(r[1],e[1])]}return n.splice(i,0,e),n}(this.state.updateRanges,[t,n])}else this.state.updateRanges=v}clearNeedsUpdate(){this.state.needsUpdate=!1,this.state.updateRanges=y}setNeedsRedraw(t=this.id){this.state.needsRedraw=this.state.needsRedraw||t}allocate(t){const{state:e,settings:n}=this;return!n.noAlloc&&(!!n.update&&(super.allocate(t,e.updateRanges!==v),!0))}updateBuffer({numInstances:t,data:e,props:n,context:r}){if(!this.needsUpdate())return!1;const{state:{updateRanges:i},settings:{update:o,noAlloc:s}}=this;let a=!0;if(o){for(const[s,a]of i)o.call(r,this,{data:e,startRow:s,endRow:a,props:n,numInstances:t});if(this.value)if(this.constant||this.buffer.byteLength<this.value.byteLength+this.byteOffset)this.setData({value:this.value,constant:this.constant}),this.constant=!1;else for(const[e,n]of i){const r=Number.isFinite(e)?this.getVertexOffset(e):0,i=Number.isFinite(n)?this.getVertexOffset(n):s||!Number.isFinite(t)?this.value.length:t*this.size;super.updateSubBuffer({startOffset:r,endOffset:i})}else;this._checkAttributeArray()}else a=!1;return this.clearNeedsUpdate(),this.setNeedsRedraw(),a}setConstantValue(t){if(void 0===t||"function"===typeof t)return!1;return this.setData({constant:!0,value:t})&&this.setNeedsRedraw(),this.clearNeedsUpdate(),!0}setExternalBuffer(t){const{state:e}=this;return t?(this.clearNeedsUpdate(),e.lastExternalBuffer===t||(e.lastExternalBuffer=t,this.setNeedsRedraw(),this.setData(t)),!0):(e.lastExter
1nalBuffer=null,!1)}setBinaryValue(t,e=null){const{state:n,settings:r}=this;if(!t)return n.binaryValue=null,n.binaryAccessor=null,!1;if(r.noAlloc)return!1;if(n.binaryValue===t)return this.clearNeedsUpdate(),!0;n.binaryValue=t,this.setNeedsRedraw();if(r.transform||e!==this.startIndices){ArrayBuffer.isView(t)&&(t={value:t});const i=t;(0,p.Z)(ArrayBuffer.isView(i.value),"invalid ".concat(r.accessor));const o=Boolean(i.size)&&i.size!==this.size;return n.binaryAccessor=(0,g.jr)(i.value,{size:i.size||this.size,stride:i.stride,offset:i.offset,startIndices:e,nested:o}),!1}return this.clearNeedsUpdate(),this.setData(t),!0}getVertexOffset(t){const{startIndices:e}=this;return(e?e[t]:t)*this.size}getShaderAttributes(){const t=this.settings.shaderAttributes||{[this.id]:null},e={};for(const n in t)Object.assign(e,super.getShaderAttributes(n,t[n]));return e}_autoUpdater(t,{data:e,startRow:n,endRow:r,props:i,numInstances:o}){if(t.constant)return;const{settings:s,state:a,value:u,size:c,startIndices:l}=t,{accessor:h,transform:f}=s,d=a.binaryAccessor||("function"===typeof h?h:i[h]);(0,p.Z)("function"===typeof d,'accessor "'.concat(h,'" is not a function'));let y=t.getVertexOffset(n);const{iterable:v,objectInfo:b}=(0,g.jB)(e,n,r);for(const p of v){b.index++;let e=d(p,b);if(f&&(e=f.call(this,e)),l){const n=(b.index<l.length-1?l[b.index+1]:o)-l[b.index];if(e&&Array.isArray(e[0])){let n=y;for(const r of e)t._normalizeValue(r,u,n),n+=c}else e&&e.length>c?u.set(e,y):(t._normalizeValue(e,b.target,0),(0,m.k)({target:u,source:b.target,start:y,count:n}));y+=n*c}else t._normalizeValue(e,u,y),y+=c}}_validateAttributeUpdaters(){const{settings:t}=this;if(!(t.noAlloc||"function"===typeof t.update))throw new Error("Attribute ".concat(this.id," missing update or accessor"))}_checkAttributeArray(){const{value:t}=this,e=Math.min(4,this.size);if(t&&t.length>=e){let n=!0;switch(e){case 4:n=n&&Number.isFinite(t[3]);case 3:n=n&&Number.isFinite(t[2]);case 2:n=n&&Number.isFinite(t[1]);case 1:n=n&&Number.isFinite(t[0]);break;default:n=!1}if(!n)throw new Error("Illegal attribute generated for ".concat(this.id))}}}var T=n(3803),C=n(9047);const M="void main() {gl_FragColor = vec4(0);}",D="out vec4 transform_output;\nvoid main() {\n transform_output = vec4(0);\n}",k="#version 300 es\n".concat(D);function j(t,e){e=Array.isArray(e)?e:[e];const n=t.replace(/^\s+/,"").split(/\s+/),[r,i,o]=n;if(!e.includes(r)||!i||!o)return null;return{qualifier:r,type:i,name:o.split(";")[0]}}function F(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{version:e=100,input:n,inputType:r,output:i}=t;if(!n)return 300===e?k:e>300?"#version ".concat(e,"\n").concat(D):M;const o=L(n,r);return e>=300?"#version ".concat(e," ").concat(300===e?"es":"","\nin ").concat(r," ").concat(n,";\nout vec4 ").concat(i,";\nvoid main() {\n ").concat(i," = ").concat(o,";\n}"):"varying ".concat(r," ").concat(n,";\nvoid main() {\n gl_FragColor = ").concat(o,";\n}")}function L(t,e){switch(e){case"float":return"vec4(".concat(t,", 0.0, 0.0, 1.0)");case"vec2":return"vec4(".concat(t,", 0.0, 1.0)");case"vec3":return"vec4(".concat(t,", 1.0)");case"vec4":return t;default:return(0,C.Z)(!1),null}}var I=n(1418),R=n(1053),B=n(2525);class N{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.currentIndex=0,this.feedbackMap={},this.varyings=null,this.bindings=[],this.resources={},this._initialize(e),Object.seal(this)}setupResources(t){for(const e of this.bindings)this._setupTransformFeedback(e,t)}updateModelProps(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyings:e}=this;return e.length>0&&(t=Object.assign({},t,{varyings:e})),t}getDrawOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this.bindings[this.currentIndex],{sourceBuffers:n,transformFeedback:r}=e;return{attributes:Object.assign({},n,t.attributes),transformFeedback:r}}swap(){return!!this.feedbackMap&&(this.currentIndex=this._getNextIndex(),!0)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(t)}getBuffer(t){const{feedbackBuffers:e}=this.bindings[this.currentIndex],n=t?e[t]:null;return n?n instanceof a.Z?n:n.buffer:null}getData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{varyingName:e}=t,n=this.getBuffer(e);return n?n.getData():null}delete(){for(const t in this.resources)this.resources[t].delete()}_initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupBuffers(t),this.varyings=t.varyings||Object.keys(this.bindings[this.currentIndex].feedbackBuffers),this.varyings.length>0&&(0,B.h)((0,I.D0)(this.gl))}_getFeedbackBuffers(t){const{sourceBuffers:e={}}=t,n={};if(this.bindings[this.currentIndex]&&Object.assign(n,this.bindings[this.currentIndex].feedbackBuffers),this.feedbackMap)for(const r in this.feedbackMap){const t=this.feedbackMap[r];r in e&&(n[t]=r)}Object.assign(n,t.feedbackBuffers);for(const r in n){const t=n[r];if("string"===typeof t){const i=e[t],{byteLength:o,usage:s,accessor:a}=i;n[r]=this._createNewBuffer(r,{byteLength:o,usage:s,accessor:a})}}return n}_setupBuffers(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:e=null}=t;Object.assign(this.feedbackMap,t.feedbackMap);const n=this._getFeedbackBuffers(t);this._updateBindings({sourceBuffers:e,feedbackBuffers:n})}_setupTransformFeedback(t,e){let{model:n}=e;const{program:r}=n;t.transformFeedback=new R.Z(this.gl,{program:r,buffers:t.feedbackBuffers})}_updateBindings(t){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],t),this.feedbackMap){const{sourceBuffers:t,feedbackBuffers:e}=this._swapBuffers(this.bindings[this.currentIndex]),n=this._getNextIndex();this.bindings[n]=this._updateBinding(this.bindings[n],{sourceBuffers:t,feedbackBuffers:e})}}_updateBinding(t,e){return t?(Object.assign(t.sourceBuffers,e.sourceBuffers),Object.assign(t.feedbackBuffers,e.feedbackBuffers),t.transformFeedback&&t.transformFeedback.setBuffers(t.feedbackBuffers),t):{sourceBuffers:Object.assign({},e.sourceBuffers),feedbackBuffers:Object.assign({},e.feedbackBuffers)}}_swapBuffers(t){if(!this.feedbackMap)return null;const e=Object.assign({},t.sourceBuffers),n=Object.assign({},t.feedbackBuffers);for(const r in this.feedbackMap){const i=this.feedbackMap[r];e[r]=t.feedbackBuffers[i],n[i]=t.sourceBuffers[r],(0,B.h)(n[i]instanceof a.Z)}return{sourceBuffers:e,feedbackBuffers:n}}_createNewBuffer(t,e){const n=new a.Z(this.gl,e);return this.resources[t]&&this.resources[t].delete(),this.resources[t]=n,n}_getNextIndex(){return(this.currentIndex+1)%2}}var z=n(9295),Z=n(1621),U=n(3849),V=n(3462);function G(t){let e=100;const n=t.match(/[^\s]+/g);if(n.length>=2&&"#version"===n[0]){const t=parseInt(n[1],10);Number.isFinite(t)&&(e=t)}return e}var W=n(827);const H={name:"transform",vs:"attribute float transform_elementID;\nvec2 transform_getPixelSizeHalf(vec2 size) {\n return vec2(1.) / (2. * size);\n}\n\nvec2 transform_getPixelIndices(vec2 texSize, vec2 pixelSizeHalf) {\n float yIndex = floor((transform_elementID / texSize[0]) + pixelSizeHalf[1]);\n float xIndex = transform_elementID - (yIndex * texSize[0]);\n return vec2(xIndex, yIndex);\n}\nvec2 transform_getTexCoord(vec2 size) {\n vec2 pixelSizeHalf = transform_getPixelSizeHalf(size);\n vec2 indices = transform_getPixelIndices(size, pixelSizeHalf);\n vec2 coord = indices / size + pixelSizeHalf;\n return coord;\n}\nvec2 transform_getPos(vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec2 pos = (texCoord * (2.0, 2.0)) - (1., 1.);\n return pos;\n}\nvec4 transform_getInput(sampler2D texSampler, vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec4 textureColor = texture2D(texSampler, texCoord);\n return textureColor;\n}\n",fs:null},X="transform_uSampler_",q="transform_uSize_",Y="transform_position";function K(t){let{vs:e,sourceTextureMap:n,targetTextureVarying:r,targetTexture:i}=t;let o=Object.keys(n).length,s=null;const a={};let u=e,c={};if(o>0||r){const t=u.split("\n"),e=t.slice();if(t.forEach(((t,i,u)=>{if(o>0){const r=function(t,e){const n={},r=function(t){return j(t,["attribute","in"])}(t);if(!r)return null;const{type:i,name:o}=r;if(o&&e[o]){const e="// ".concat(t," => Replaced by Transform with a sampler"),{samplerName:r,sizeName:s,uniformDeclerations:a}=function(t){const e="".concat(X).concat(t),n="".concat(q).concat(t),r=" uniform sampler2D ".concat(e,";
1\n uniform vec2 ").concat(n,";");return{samplerName:e,sizeName:n,uniformDeclerations:r}}(o),u=function(t){switch(t){case"float":return"x";case"vec2":return"xy";case"vec3":return"xyz";case"vec4":return"xyzw";default:return(0,C.Z)(!1),null}}(i),c=" ".concat(i," ").concat(o," = transform_getInput(").concat(r,", ").concat(s,").").concat(u,";\n");n[r]=o;return{updatedLine:e,inject:{"vs:#decl":a,"vs:#main-start":c},samplerTextureMap:n}}return null}(t,n);if(r){const{updatedLine:t,inject:n}=r;e[i]=t,c=(0,W.Lm)([c,n]),Object.assign(a,r.samplerTextureMap),o--}}r&&!s&&(s=function(t,e){const n=j(t,["varying","out"]);if(!n)return null;return n.name===e?n.type:null}(t,r))})),r){(0,B.h)(i);const t="".concat(q).concat(r),e={"vs:#decl":"uniform vec2 ".concat(t,";\n"),"vs:#main-start":" vec2 ".concat(Y," = transform_getPos(").concat(t,");\n gl_Position = vec4(").concat(Y,", 0, 1.);\n")};c=(0,W.Lm)([c,e])}u=e.join("\n")}return{vs:u,targetTextureType:s,inject:c,samplerTextureMap:a}}const $={10241:9728,10240:9728,10242:33071,10243:33071};class J{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.id=this.currentIndex=0,this._swapTexture=null,this.targetTextureVarying=null,this.targetTextureType=null,this.samplerTextureMap=null,this.bindings=[],this.resources={},this._initialize(e),Object.seal(this)}updateModelProps(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this._processVertexShader(t);return Object.assign({},t,e)}getDrawOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:e,sourceTextures:n,framebuffer:r,targetTexture:i}=this.bindings[this.currentIndex],o=Object.assign({},e,t.attributes),s=Object.assign({},t.uniforms),a=Object.assign({},t.parameters);let u=t.discard;if(this.hasSourceTextures||this.hasTargetTexture){o.transform_elementID=this.elementIDBuffer;for(const e in this.samplerTextureMap){const t=this.samplerTextureMap[e];s[e]=n[t]}this._setSourceTextureParameters();const t=function(t){let{sourceTextureMap:e,targetTextureVarying:n,targetTexture:r}=t;const i={};let o,s;n&&(({width:o,height:s}=r),i["".concat(q).concat(n)]=[o,s]);for(const a in e)({width:o,height:s}=e[a]),i["".concat(q).concat(a)]=[o,s];return i}({sourceTextureMap:n,targetTextureVarying:this.targetTextureVarying,targetTexture:i});Object.assign(s,t)}return this.hasTargetTexture&&(u=!1,a.viewport=[0,0,r.width,r.height]),{attributes:o,framebuffer:r,uniforms:s,discard:u,parameters:a}}swap(){return!!this._swapTexture&&(this.currentIndex=this._getNextIndex(),!0)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupTextures(t)}getTargetTexture(){const{targetTexture:t}=this.bindings[this.currentIndex];return t}getData(){let{packed:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{framebuffer:e}=this.bindings[this.currentIndex],n=(0,z.z6)(e);if(!t)return n;const r=n.constructor,i=function(t){switch(t){case"float":return 1;case"vec2":return 2;case"vec3":return 3;case"vec4":return 4;default:return(0,C.Z)(!1),null}}(this.targetTextureType),o=new r(n.length*i/4);let s=0;for(let a=0;a<n.length;a+=4)for(let t=0;t<i;t++)o[s++]=n[a+t];return o}getFramebuffer(){return this.bindings[this.currentIndex].framebuffer}delete(){this.ownTexture&&this.ownTexture.delete(),this.elementIDBuffer&&this.elementIDBuffer.delete()}_initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{_targetTextureVarying:e,_swapTexture:n}=t;this._swapTexture=n,this.targetTextureVarying=e,this.hasTargetTexture=e,this._setupTextures(t)}_createTargetTexture(t){const{sourceTextures:e,textureOrReference:n}=t;if(n instanceof Z.Z)return n;const r=e[n];return r?(this._targetRefTexName=n,this._createNewTexture(r)):null}_setupTextures(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceBuffers:e,_sourceTextures:n={},_targetTexture:r}=t,i=this._createTargetTexture({sourceTextures:n,textureOrReference:r});this.hasSourceTextures=this.hasSourceTextures||n&&Object.keys(n).length>0,this._updateBindings({sourceBuffers:e,sourceTextures:n,targetTexture:i}),"elementCount"in t&&this._updateElementIDBuffer(t.elementCount)}
1_updateElementIDBuffer(t){if("number"!==typeof t||this.elementCount>=t)return;const e=new Float32Array(t);e.forEach(((t,e,n)=>{n[e]=e})),this.elementIDBuffer?this.elementIDBuffer.setData({data:e}):this.elementIDBuffer=new a.Z(this.gl,{data:e,accessor:{size:1}}),this.elementCount=t}_updateBindings(t){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],t),this._swapTexture){const{sourceTextures:t,targetTexture:e}=this._swapTextures(this.bindings[this.currentIndex]),n=this._getNextIndex();this.bindings[n]=this._updateBinding(this.bindings[n],{sourceTextures:t,targetTexture:e})}}_updateBinding(t,e){const{sourceBuffers:n,sourceTextures:r,targetTexture:i}=e;if(t||(t={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(t.sourceTextures,r),Object.assign(t.sourceBuffers,n),i){t.targetTexture=i;const{width:e,height:n}=i,{framebuffer:r}=t;r?(r.update({attachments:{36064:i},resizeAttachments:!1}),r.resize({width:e,height:n})):t.framebuffer=new U.Z(this.gl,{id:"transform-framebuffer",width:e,height:n,attachments:{36064:i}})}return t}_setSourceTextureParameters(){const t=this.currentIndex,{sourceTextures:e}=this.bindings[t];for(const n in e)e[n].setParameters($)}_swapTextures(t){if(!this._swapTexture)return null;const e=Object.assign({},t.sourceTextures);e[this._swapTexture]=t.targetTexture;return{sourceTextures:e,targetTexture:t.sourceTextures[this._swapTexture]}}_createNewTexture(t){const e=(0,V.h)(t,{parameters:{10241:9728,10240:9728,10242:33071,10243:33071},pixelStore:{37440:!1}});return this.ownTexture&&this.ownTexture.delete(),this.ownTexture=e,e}_getNextIndex(){return(this.currentIndex+1)%2}_processVertexShader(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{sourceTextures:e,targetTexture:n}=this.bindings[this.currentIndex],{vs:r,uniforms:i,targetTextureType:o,inject:s,samplerTextureMap:a}=K({vs:t.vs,sourceTextureMap:e,targetTextureVarying:this.targetTextureVarying,targetTexture:n}),u=(0,W.Lm)([t.inject||{},s]);this.targetTextureType=o,this.samplerTextureMap=a;return{vs:r,fs:t._fs||F({version:G(r),input:this.targetTextureVarying,inputType:o,output:"transform_output"}),modules:this.hasSourceTextures||this.targetTextureVarying?[H].concat(t.modules||[]):t.modules,uniforms:i,inject:u}}}var Q=n(4538),tt=n(5462);class et{static isSupported(t){return(0,I.D0)(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.model=null,this.elementCount=0,this.bufferTransform=null,this.textureTransform=null,this.elementIDBuffer=null,this._initialize(e),Object.seal(this)}delete(){const{model:t,bufferTransform:e,textureTransform:n}=this;t&&t.delete(),e&&e.delete(),n&&n.delete()}run(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clearRenderTarget:e=!0}=t,n=this._updateDrawOptions(t);e&&n.framebuffer&&n.framebuffer.clear({color:!0}),this.model.transform(n)}swap(){let t=!1;const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const n of e)t=t||n.swap();(0,B.h)(t,"Nothing to swap")}getBuffer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.bufferTransform&&this.bufferTransform.getBuffer(t)}getData(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const n of e){const e=n.getData(t);if(e)return e}return null}getFramebuffer(){return this.textureTransform&&this.textureTransform.getFramebuffer()}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"elementCount"in t&&this.model.setVertexCount(t.elementCount);const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const n of e)n.update(t)}_initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{gl:e}=this;this._buildResourceTransforms(e,t),t=this._updateModelProps(t),this.model=new tt.Z(e,Object.assign({},t,{fs:t.fs||F({version:G(t.vs)}),id:t.id||"transform-model",drawMode:t.drawMode||0,vertexCount:t.elementCount})),this.bufferTransform&&this.bufferTransform.setupResources({model:this.model})}_updateModelProps(t){let e=Object.assign({},t);
1const n=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const r of n)e=r.updateModelProps(e);return e}_buildResourceTransforms(t,e){(function(t){if(!(0,Q.nK)(t.feedbackBuffers)||!(0,Q.nK)(t.feedbackMap)||t.varyings&&t.varyings.length>0)return!0;return!1})(e)&&(this.bufferTransform=new N(t,e)),function(t){if(!(0,Q.nK)(t._sourceTextures)||t._targetTexture||t._targetTextureVarying)return!0;return!1}(e)&&(this.textureTransform=new J(t,e)),(0,B.h)(this.bufferTransform||this.textureTransform,"must provide source/feedback buffers or source/target textures")}_updateDrawOptions(t){let e=Object.assign({},t);const n=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const r of n)e=Object.assign(e,r.getDrawOptions(e));return e}}var nt=n(3630);const rt="\n#define SHADER_NAME interpolation-transition-vertex-shader\n\nuniform float time;\nattribute ATTRIBUTE_TYPE aFrom;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vCurrent;\n\nvoid main(void) {\n vCurrent = mix(aFrom, aTo, time);\n gl_Position = vec4(0.0);\n}\n";const it={interpolation:class{constructor({gl:t,attribute:e,timeline:n}){(0,r.Z)(this,"gl",void 0),(0,r.Z)(this,"type","interpolation"),(0,r.Z)(this,"attributeInTransition",void 0),(0,r.Z)(this,"settings",void 0),(0,r.Z)(this,"attribute",void 0),(0,r.Z)(this,"transition",void 0),(0,r.Z)(this,"currentStartIndices",void 0),(0,r.Z)(this,"currentLength",void 0),(0,r.Z)(this,"transform",void 0),(0,r.Z)(this,"buffers",void 0),this.gl=t,this.transition=new nt.Z(n),this.attribute=e,this.attributeInTransition=new O(t,e.settings),this.currentStartIndices=e.startIndices,this.currentLength=0,this.transform=function(t,e){const n=E(e.size);return new et(t,{vs:rt,defines:{ATTRIBUTE_TYPE:n},varyings:["vCurrent"]})}(t,e);const i={byteLength:0,usage:35050};this.buffers=[new a.Z(t,i),new a.Z(t,i)]}get inProgress(){return this.transition.inProgress}start(t,e){if(t.duration<=0)return void this.transition.cancel();this.settings=t;const{gl:n,buffers:r,attribute:i}=this;A(r);const o={numInstances:e,attribute:i,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:t.enter};for(const s of r)P({buffer:s,...o});this.currentStartIndices=i.startIndices,this.currentLength=S(i,e),this.attributeInTransition.setData({buffer:r[1],value:i.value}),this.transition.start(t),this.transform.update({elementCount:Math.floor(this.currentLength/i.size),sourceBuffers:{aFrom:r[0],aTo:x(0,i)},feedbackBuffers:{vCurrent:r[1]}})}update(){const t=this.transition.update();if(t){const{duration:t,easing:e}=this.settings,{time:n}=this.transition;let r=n/t;e&&(r=e(r)),this.transform.run({uniforms:{time:r}})}return t}cancel(){this.transition.cancel(),this.transform.delete();for(const t of this.buffers)t.delete();this.buffers.length=0}},spring:class{constructor({gl:t,attribute:e,timeline:n}){(0,r.Z)(this,"gl",void 0),(0,r.Z)(this,"type","spring"),(0,r.Z)(this,"attributeInTransition",void 0),(0,r.Z)(this,"settings",void 0),(0,r.Z)(this,"attribute",void 0),(0,r.Z)(this,"transition",void 0),(0,r.Z)(this,"currentStartIndices",void 0),(0,r.Z)(this,"currentLength",void 0),(0,r.Z)(this,"texture",void 0),(0,r.Z)(this,"framebuffer",void 0),(0,r.Z)(this,"transform",void 0),(0,r.Z)(this,"buffers",void 0),this.gl=t,this.type="spring",this.transition=new nt.Z(n),this.attribute=e,this.attributeInTransition=new O(t,{...e.settings,normalized:!1}),this.currentStartIndices=e.startIndices,this.currentLength=0,this.texture=function(t){return new Z.Z(t,{data:new Uint8Array(4),format:6408,type:5121,border:0,mipmaps:!1,dataFormat:6408,width:1,height:1})}(t),this.framebuffer=function(t,e){return new U.Z(t,{id:"spring-transition-is-transitioning-framebuffer",width:1,height:1,attachments:{36064:e}})}(t,this.texture),this.transform=function(t,e,n){const r=E(e.size);return new et(t,{framebuffer:n,vs:"\n#define SHADER_NAME spring-transition-vertex-shader\n\n#define EPSILON 0.00001\n\nuniform float stiffness;\nuniform float damping;\nattribute ATTRIBUTE_TYPE aPrev;\nattribute ATTRIBUTE_TYPE aCur;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vNext;\nvarying float vIsTransitioningFlag;\n\nATTRIBUTE_TYPE getNextValue(ATTRIBUTE_TYPE cur, ATTRIBUTE_TYPE prev, ATTRIBUTE_TYPE dest) {\n ATTRIBUTE_TYPE velocity = cur - prev;\n ATTRIBUTE_TYPE delta = dest - cur;\n ATTRIBUTE_TYPE spring = delta * stiffness;\n ATTRIBUTE_TYPE damper = velocity * -1.0 * damping;\n return spring + damper + velocity + cur;\n}\n\nvoid main(void) {\n bool isTransitioning = length(aCur - aPrev) > EPSILON || length(aTo - aCur) > EPSILON;\n vIsTransitioningFlag = isTransitioning ? 1.0 : 0.0;\n\n vNext = getNextValue(aCur, aPrev, aTo);\n gl_Position = vec4(0, 0, 0, 1);\n gl_PointSize = 100.0;\n}\n",fs:"\n#define SHADER_NAME spring-transition-is-transitioning-fragment-shader\n\nvarying float vIsTransitioningFlag;\n\nvoid main(void) {\n if (vIsTransitioningFlag == 0.0) {\n discard;\n }\n gl_FragColor = vec4(1.0);\n}",defines:{ATTRIBUTE_TYPE:r},varyings:["vNext"]})}(t,e,this.framebuffer);const i={byteLength:0,usage:35050};this.buffers=[new a.Z(t,i),new a.Z(t,i),new a.Z(t,i)]}get inProgress(){return this.transition.inProgress}start(t,e){const{gl:n,buffers:r,attribute:i}=this,o={numInstances:e,attribute:i,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:t.enter};for(const s of r)P({buffer:s,...o});this.settings=t,this.currentStartIndices=i.startIndices,this.currentLength=S(i,e),this.attributeInTransition.setData({buffer:r[1],value:i.value}),this.transition.start({...t,duration:1/0}),this.transform.update({elementCount:Math.floor(this.currentLength/i.size),sourceBuffers:{aTo:x(0,i)}})}update(){const{buffers:t,transform:e,framebuffer:n,transition:r}=this;
1if(!r.update())return!1;const i=this.settings;e.update({sourceBuffers:{aPrev:t[0],aCur:t[1]},feedbackBuffers:{vNext:t[2]}}),e.run({framebuffer:n,discard:!1,clearRenderTarget:!0,uniforms:{stiffness:i.stiffness,damping:i.damping},parameters:{depthTest:!1,blend:!0,viewport:[0,0,1,1],blendFunc:[1,1],blendEquation:[32776,32776]}}),A(t),this.attributeInTransition.setData({buffer:t[1],value:this.attribute.value});return(0,z.z6)(n)[0]>0||r.end(),!0}cancel(){this.transition.cancel(),this.transform.delete();for(const t of this.buffers)t.delete();this.buffers.length=0,this.texture.delete(),this.framebuffer.delete()}}};class ot{constructor(t,{id:e,timeline:n}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"isSupported",void 0),(0,r.Z)(this,"gl",void 0),(0,r.Z)(this,"timeline",void 0),(0,r.Z)(this,"transitions",void 0),(0,r.Z)(this,"needsRedraw",void 0),(0,r.Z)(this,"numInstances",void 0),this.id=e,this.gl=t,this.timeline=n,this.transitions={},this.needsRedraw=!1,this.numInstances=1,this.isSupported=et.isSupported(t)}finalize(){for(const t in this.transitions)this._removeTransition(t)}update({attributes:t,transitions:e,numInstances:n}){this.numInstances=n||1;for(const r in t){const n=t[r],i=n.getTransitionSetting(e);i&&this._updateAttribute(r,n,i)}for(const r in this.transitions){const n=t[r];n&&n.getTransitionSetting(e)||this._removeTransition(r)}}hasAttribute(t){const e=this.transitions[t];return e&&e.inProgress}getAttributes(){const t={};for(const e in this.transitions){const n=this.transitions[e];n.inProgress&&(t[e]=n.attributeInTransition)}return t}run(){if(!this.isSupported||0===this.numInstances)return!1;for(const e in this.transitions){this.transitions[e].update()&&(this.needsRedraw=!0)}const t=this.needsRedraw;return this.needsRedraw=!1,t}_removeTransition(t){this.transitions[t].cancel(),delete this.transitions[t]}_updateAttribute(t,e,n){const r=this.transitions[t];let i=!r||r.type!==n.type;if(i){if(!this.isSupported)return void h.Z.warn("WebGL2 not supported by this browser. Transition for ".concat(t," is disabled."))();r&&this._removeTransition(t);const o=it[n.type];o?this.transitions[t]=new o({attribute:e,timeline:this.timeline,gl:this.gl}):(h.Z.error("unsupported transition type '".concat(n.type,"'"))(),i=!1)}(i||e.needsRedraw())&&(this.needsRedraw=!0,this.transitions[t].start(n,this.numInstances))}}const st="attributeManager.invalidate";class at{constructor(t,{id:e="attribute-manager",stats:n,timeline:i}={}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"gl",void 0),(0,r.Z)(this,"attributes",void 0),(0,r.Z)(this,"updateTriggers",void 0),(0,r.Z)(this,"needsRedraw",void 0),(0,r.Z)(this,"userData",void 0),(0,r.Z)(this,"stats",void 0),(0,r.Z)(this,"attributeTransitionManager",void 0),this.id=e,this.gl=t,this.attributes={},this.updateTriggers={},this.needsRedraw=!0,this.userData={},this.stats=n,this.attributeTransitionManager=new ot(t,{id:"".concat(e,"-transitions"),timeline:i}),Object.seal(this)}finalize(){for(const t in this.attributes)this.attributes[t].delete();this.attributeTransitionManager.finalize()}getNeedsRedraw(t={clearRedrawFlags:!1}){const e=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!t.clearRedrawFlags,e&&this.id}setNeedsRedraw(){this.needsRedraw=!0}add(t){this._add(t)}addInstanced(t){this._add(t,{instanced:1})}remove(t){for(const e of t)void 0!==this.attributes[e]&&(this.attributes[e].delete(),delete this.attributes[e])}invalidate(t,e){const n=this._invalidateTrigger(t,e);(0,T.Z)(st,this,t,n)}invalidateAll(t){for(const e in this.attributes)this.attributes[e].setNeedsUpdate(e,t);(0,T.Z)(st,this,"all")}update({data:t,numInstances:e,startIndices:n=null,transitions:r,props:i={},buffers:o={},context:s={}}){let a=!1;(0,T.Z)("attributeManager.updateStart",this),this.stats&&this.stats.get("Update Attributes").timeStart();for(const u in this.attributes){const r=this.attributes[u],c=r.settings.accessor;r.startIndices=n,r.numInstances=e,i[u]&&h.Z.removed("props.".concat(u),"data.attributes.".concat(u))(),r.setExternalBuffer(o[u])||r.setBinaryValue("string"===typeof c?o[c]:void 0,t.startIndices)||"string"===typeof c&&!o[c]&&r.setConstantValue(i[c])||r.needsUpdate()&&(a=!0,this._updateAttribute({attribute:r,numInstances:e,data:t,props:i,context:s})),this.needsRedraw=this.needsRedraw||r.needsRedraw()}a&&(0,T.Z)("attributeManager.updateEnd",this,e),this.stats&&this.stats.get("Update Attributes").timeEnd(),this.attributeTransitionManager.update({attributes:this.attributes,numInstances:e,transitions:r})}updateTransition(){const{attributeTransitionManager:t}=this,e=t.run();return this.needsRedraw=this.needsRedraw||e,e}getAttributes(){return this.attributes}getChangedAttributes(t={clearChangedFlags:!1}){const{attributes:e,attributeTransitionManager:n}=this,r={...n.getAttributes()};for(const i in e){const o=e[i];o.needsRedraw(t)&&!n.hasAttribute(i)&&(r[i]=o)}return r}getShaderAttributes(t,e={}){t||(t=this.getAttributes());const n={};for(const r in t)e[r]||Object.assign(n,t[r].getShaderAttributes());return n}_add(t,e={}){for(const n in t){const r=t[n];this.attributes[n]=this._createAttribute(n,r,e)}this._mapUpdateTriggersToAttributes()}_createAttribute(t,e,n){const r={...e,id:t,size:(e.isIndexed?1:e.size)||1,divisor:n.instanced?1:e.divisor||0};return new O(this.gl,r)}_mapUpdateTriggersToAttributes(){const t={};for(const e in this.attributes){this.attributes[e].getUpdateTriggers().forEac
1h((n=>{t[n]||(t[n]=[]),t[n].push(e)}))}this.updateTriggers=t}_invalidateTrigger(t,e){const{attributes:n,updateTriggers:r}=this,i=r[t];return i&&i.forEach((t=>{const r=n[t];r&&r.setNeedsUpdate(r.id,e)})),i}_updateAttribute(t){const{attribute:e,numInstances:n}=t;if((0,T.Z)("attribute.updateStart",e),e.constant)return void e.setConstantValue(e.value);e.allocate(n)&&(0,T.Z)("attribute.allocate",e,n);e.updateBuffer(t)&&(this.needsRedraw=!0,(0,T.Z)("attribute.updateEnd",e,n))}}var ut=n(4034);class ct extends nt.Z{get value(){return this._value}_onUpdate(){const{time:t,settings:{fromValue:e,toValue:n,duration:r,easing:i}}=this,o=i(t/r);this._value=(0,ut.t7)(e,n,o)}}const lt=1e-5;function ht(t,e,n,r,i){const o=e-t;return(n-e)*i+-o*r+o+e}function ft(t,e){if(Array.isArray(t)){let n=0;for(let r=0;r<t.length;r++){const i=t[r]-e[r];n+=i*i}return Math.sqrt(n)}return Math.abs(t-e)}class dt extends nt.Z{get value(){return this._currValue}_onUpdate(){const{fromValue:t,toValue:e,damping:n,stiffness:r}=this.settings,{_prevValue:i=t,_currValue:o=t}=this;let s=function(t,e,n,r,i){if(Array.isArray(n)){const o=[];for(let s=0;s<n.length;s++)o[s]=ht(t[s],e[s],n[s],r,i);return o}return ht(t,e,n,r,i)}(i,o,e,n,r);const a=ft(s,e),u=ft(s,o);a<lt&&u<lt&&(s=e,this.end()),this._prevValue=o,this._currValue=s}}const pt={interpolation:ct,spring:dt};class gt{constructor(t){this.transitions=new Map,this.timeline=t}get active(){return this.transitions.size>0}add(t,e,n,r){const{transitions:i}=this;if(i.has(t)){const n=i.get(t),{value:r=n.settings.fromValue}=n;e=r,this.remove(t)}if(!(r=w(r)))return;const o=pt[r.type];if(!o)return void h.Z.error("unsupported transition type '".concat(r.type,"'"))();const s=new o(this.timeline);s.start({...r,fromValue:e,toValue:n}),i.set(t,s)}remove(t){const{transitions:e}=this;e.has(t)&&(e.get(t).cancel(),e.delete(t))}update(){const t={};for(const[e,n]of this.transitions)n.update(),t[e]=n.value,n.inProgress||this.remove(e);return t}clear(){for(const t of this.transitions.keys())this.remove(t)}}var mt=n(5409);function yt(t,e){const n=bt({newProps:t,oldProps:e,propTypes:Et(t),ignoreProps:{data:null,updateTriggers:null,extensions:null,transitions:null}}),r=function(t,e){if(null===e)return"oldProps is null, initial diff";let n=!1;const{dataComparator:r,_dataDiff:i}=t;r?r(t.data,e.data)||(n="Data comparator detected a change"):t.data!==e.data&&(n="A new data container was supplied");n&&i&&(n=i(t.data,e.data)||n);return n}(t,e);let i=!1;return r||(i=function(t,e){if(null===e)return{all:!0};if("all"in t.updateTriggers){if(xt(t,e,"all"))return{all:!0}}const n={};let r=!1;for(const i in t.updateTriggers)if("all"!==i){xt(t,e,i)&&(n[i]=!0,r=!0)}return!!r&&n}(t,e)),{dataChanged:r,propsChanged:n,updateTriggersChanged:i,extensionsChanged:wt(t,e),transitionsChanged:vt(t,e)}}function vt(t,e){if(!t.transitions)return!1;const n={},r=Et(t);let i=!1;for(const o in t.transitions){const s=r[o],a=s&&s.type;("number"===a||"color"===a||"array"===a)&&_t(t[o],e[o],s)&&(n[o]=!0,i=!0)}return!!i&&n}function bt({newProps:t,oldProps:e,ignoreProps:n={},propTypes:r={},triggerName:i="props"}){if(e===t)return!1;if("object"!==typeof t||null===t)return"".concat(i," changed shallowly");if("object"!==typeof e||null===e)return"".concat(i," changed shallowly");for(const o of Object.keys(t))if(!(o in n)){if(!(o in e))return"".concat(i,".").concat(o," added");const n=_t(t[o],e[o],r[o]);if(n)return"".concat(i,".").concat(o," ").concat(n)}for(const o of Object.keys(e))if(!(o in n)){if(!(o in t))return"".concat(i,".").concat(o," dropped");if(!Object.hasOwnProperty.call(t,o)){const n=_t(t[o],e[o],r[o]);if(n)return"".concat(i,".").concat(o," ").concat(n)}}return!1}function _t(t,e,n){let r=n&&n.equal;return r&&!r(t,e,n)?"changed deeply":r||(r=t&&e&&t.equals,!r||r.call(t,e))?r||e===t?null:"changed shallowly":"changed deeply"}function wt(t,e){if(null===e)return!0;const n=e.extensions,{extensions:r}=t;if(r===n)return!1;if(!n||!r)return!0;if(r.length!==n.length)return!0;for(let i=0;i<r.length;i++)if(!r[i].equals(n[i]))return!0;return!1}function xt(t,e,n){let r=t.updateTriggers[n];r=void 0===r||null===r?{}:r;let i=e.updateTriggers[n];i=void 0===i||null===i?{}:i;return bt({oldProps:i,newProps:r,triggerName:n})}function Et(t){const e=t[mt.fm],n=e&&e.constructor;return n?n._propTypes:{}}function At(t){if(null===(e=t)||"object"!==typeof e)throw new Error("count(): argument not an object");var e;if("function"===typeof t.count)return t.count();if(Number.isFinite(t.size))return t.size;if(Number.isFinite(t.length))return t.length;if(function(t){return null!==t&&"object"===typeof t&&t.constructor===Object}(t))return Object.keys(t).length;throw new Error("count(): argument not a container")}var St=n(8177);function Pt(t,e){if(!e)return t;const n={...t,...e};if("defines"in e&&(n.defines={...t.defines,...e.defines}),"modules"in e&&(n.modules=(t.modules||[]).concat(e.modules),e.modules.some((t=>"project64"===t.name)))){const t=n.modules.findIndex((t=>"project32"===t.name));t>=0&&n.modules.splice(t,1)}if("inject"in e)if(t.inject){const r={...t.inject};for(const t in e.inject)r[t]=(r[t]||"")+e.inject[t];n.inject=r}else n.inject=e.inject;return n}var Ot=n(8547);const Tt={10241:9987,10240:9729,10242:33071,10243:33071},Ct={};var Mt=n(6871);const Dt={boolean:{validate:(t,e)=>!0,equal:(t,e,n)=>
1Boolean(t)===Boolean(e)},number:{validate:(t,e)=>Number.isFinite(t)&&(!("max"in e)||t<=e.max)&&(!("min"in e)||t>=e.min)},color:{validate:(t,e)=>e.optional&&!t||Lt(t)&&(3===t.length||4===t.length),equal:(t,e,n)=>kt(t,e)},accessor:{validate(t,e){const n=It(t);return"function"===n||n===It(e.value)},equal:(t,e,n)=>"function"===typeof e||kt(t,e)},array:{validate:(t,e)=>e.optional&&!t||Lt(t),equal:(t,e,n)=>n.compare?kt(t,e):t===e},object:{equal:(t,e,n)=>n.compare?(0,Mt.v)(t,e):t===e},function:{validate:(t,e)=>e.optional&&!t||"function"===typeof t,equal:(t,e,n)=>!n.compare||t===e},data:{transform:(t,e,n)=>{const{dataTransform:r}=n.props;return r&&t?r(t):t}},image:{transform:(t,e,n)=>function(t,e){const n=t.context&&t.context.gl;if(!n||!e)return null;if(e instanceof Z.Z)return e;e.constructor&&"Object"!==e.constructor.name&&(e={data:e});let r=null;e.compressed&&(r={10241:e.data.length>1?9985:9729});const i=new Z.Z(n,{...e,parameters:{...Tt,...r,...t.props.textureParameters}});return Ct[i.id]=!0,i}(n,t),release:t=>{var e;(e=t)&&e instanceof Z.Z&&Ct[e.id]&&(e.delete(),delete Ct[e.id])}}};function kt(t,e){if(t===e)return!0;if(!Lt(t)||!Lt(e))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function jt(t,e){switch(It(e)){case"object":return Ft(t,e);case"array":return Ft(t,{type:"array",value:e,compare:!1});case"boolean":return Ft(t,{type:"boolean",value:e});case"number":return Ft(t,{type:"number",value:e});case"function":return Ft(t,{type:"function",value:e,compare:!0});default:return{name:t,type:"unknown",value:e}}}function Ft(t,e){return"type"in e?{name:t,...Dt[e.type],...e}:"value"in e?{name:t,type:It(e.value),...e}:{name:t,type:"object",value:e}}function Lt(t){return Array.isArray(t)||ArrayBuffer.isView(t)}function It(t){return Lt(t)?"array":null===t?"null":typeof t}function Rt(t){const e=zt(t,"_mergedDefaultProps");return e||(function(t){if(!t.prototype)return;const e=Object.getPrototypeOf(t),n=Rt(e),r=function(t){const e={},n={},r={};for(const[i,o]of Object.entries(t)){const t=null===o||void 0===o?void 0:o.deprecatedFor;if(t)r[i]=Array.isArray(t)?t:[t];else{const t=jt(i,o);e[i]=t,n[i]=t.value}}return{propTypes:e,defaultProps:n,deprecatedProps:r}}(zt(t,"defaultProps")||{}),i=function(t,e,n){const r=Object.create(null);Object.assign(r,e,t);const i=function(t){const e=zt(t,"layerName")||zt(t,"componentName");e||h.Z.once(0,"".concat(t.name,".componentName not specified"))();return e||t.name}(n);return delete t.id,Object.defineProperties(r,{id:{writable:!0,value:i}}),r}(r.defaultProps,n,t),o={...e._propTypes,...r.propTypes};!function(t,e){const n={},r={};for(const i in e){const t=e[i],{name:o,value:s}=t;t.async&&(n[o]=s,r[o]=Bt(o))}t[mt.lY]=n,t[mt.fO]={},Object.defineProperties(t,r)}(i,o);const s={...e._deprecatedProps,...r.deprecatedProps};(function(t,e){for(const n in e)Object.defineProperty(t,n,{enumerable:!1,set(t){const r="".concat(this.id,": ").concat(n);for(const i of e[n])Nt(this,i)||(this[i]=t);h.Z.deprecated(r,e[n].join("/"))()}})})(i,s),t._mergedDefaultProps=i,t._propTypes=o,t._deprecatedProps=s}(t),t._mergedDefaultProps)}function Bt(t){return{enumerable:!0,set(e){"string"===typeof e||e instanceof Promise||(0,g.D0)(e)?this[mt.fO][t]=e:this[mt.bN][t]=e},get(){if(this[mt.bN]){if(t in this[mt.bN]){return this[mt.bN][t]||this[mt.lY][t]}if(t in this[mt.fO]){const e=this[mt.fm]&&this[mt.fm].internalState;if(e&&e.hasAsyncProp(t))return e.getAsyncProp(t)||this[mt.lY][t]}}return this[mt.lY][t]}}}function Nt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zt(t,e){return Nt(t,e)&&t[e]}let Zt=0;class Ut{constructor(...t){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"props",void 0),(0,r.Z)(this,"count",void 0),this.props=function(t,e){const n=Rt(t.constructor),r=Object.create(n);r[mt.fm]=t,r[mt.fO]={},r[mt.bN]={};for(let i=0;i<e.length;++i){const t=e[i];for(const e in t)r[e]=t[e]}return Object.freeze(r),r}(this,t),this.id=this.props.id,this.count=Zt++}clone(t){const{props:e}=this,n={};for(const r in e[mt.lY])r in e[mt.bN]?n[r]=e[mt.bN][r]:r in e[mt.fO]&&(n[r]=e[mt.fO][r]);return new this.constructor({...e,...n,...t})}}(0,r.Z)(Ut,"componentName","Component"),(0,r.Z)(Ut,"defaultProps",{});const Vt=Object.freeze({});class Gt extends class{constructor(t){(0,r.Z)(this,"component",void 0),(0,r.Z)(this,"onAsyncPropUpdated",void 0),(0,r.Z)(this,"asyncProps",void 0),(0,r.Z)(this,"oldProps",void 0),(0,r.Z)(this,"oldAsyncProps",void 0),this.component=t,this.asyncProps={},this.onAsyncPropUpdated=()=>{},this.oldProps=null,this.oldAsyncProps=null}finalize(){for(const t in this.asyncProps){const e=this.asyncProps[t];e&&e.type&&e.type.release&&e.type.release(e.resolvedValue,e.type,this.component)}}getOldProps(){return this.oldAsyncProps||this.oldProps||Vt}resetOldProps(){this.oldAsyncProps=null,this.oldProps=this.component.props}hasAsyncProp(t){return t in this.asyncProps}getAsyncProp(t){const e=this.asyncProps[t];return e&&e.resolvedValue}isAsyncPropLoading(t){if(t){const e=this.asyncProps[t];return Boolean(e&&e.pendingLoadCount>0&&e.pendingLoadCount!==e.resolvedLoadCount)}for(const e in this.asyncProps)if(this.isAsyncPropLoading(e))return!0;return!1}reloadAsyncProp(t,e){this._watchPromise(t,Promise.resolve(e))}setAsyncProps(t){const e=t[mt.bN]||{},n=t[mt.fO]||t,r=t[mt.lY]||{};for(const i in e){const t=e[i];this._createAsyncPropData(i,r[i]),this._updateAsyncProp(i,t),e[i]=this.getAsyncProp(i)}for(const i in n){const t=n[i];this._createAsyncPropData(i,r[i]),this._updateAsyncProp(i,t)}}_fetch(t,e){return null}_onResolve(t,e){}_onError(t,e){}_updateAsyncProp(t,e){this._didAsyncInputValueChange(t,e)&&("string"===typeof e&&(e=this._fetch(t,e)),e instanceof Promise?this._watchPromise(t,e):(0,g.D0)(e)?this._resolveAsyncIterable(t,e):this._setPropValue(t,e))}_freezeAsyncOldProps(){if(!this.oldAsyncProps&&this.oldProps){this.oldAsyncProps=Object.create(this.oldProps);for(const t in this.asyncProps)Object.defineProperty(this.oldAsyncProps,t,{enumerable:!0,value:this.oldProps[t]})}}_didAsyncInputValueChange(t,e){const n=this.asyncProps[t];return e!==n.resolvedValue&&e!==n.lastValue&&(n.lastValue=e,!0)}_setPropValue(t,e){this._freezeAsyncOldProps();const n=this.asyncProps[t];n&&(e=this._postProcessValue(n,e),n.resolvedValue=e,n.pendingLoadCount++,n.resolvedLoadCount=n.pendingLoadCount)}_setAsyncPropValue(t,e,n){const r=this.asyncProps[t];r&&n>=r.resolvedLoadCount&&void 0!==e&&(this._freezeAsyncOldProps(),r.resolvedValue=e,r.resolvedLoadCount=n,this.onAsyncPropUpdated(t,e))}_watchPromise(t,e){const n=this.asyncProps[t];if(n){n.pendingLoadCount++;const r=n.pendingLoadCount;e.then((e=>{e=this._postProcessValue(n,e),this._setAsyncPropValue(t,e,r),this._onRes
1olve(t,e)})).catch((e=>{this._onError(t,e)}))}}async _resolveAsyncIterable(t,e){if("data"!==t)return void this._setPropValue(t,e);const n=this.asyncProps[t];if(!n)return;n.pendingLoadCount++;const r=n.pendingLoadCount;let i=[],o=0;for await(const s of e){const{dataTransform:e}=this.component.props;i=e?e(s,i):i.concat(s),Object.defineProperty(i,"__diff",{enumerable:!1,value:[{startRow:o,endRow:i.length}]}),o=i.length,this._setAsyncPropValue(t,i,r)}this._onResolve(t,i)}_postProcessValue(t,e){const n=t.type;return n&&(n.release&&n.release(t.resolvedValue,n,this.component),n.transform)?n.transform(e,n,this.component):e}_createAsyncPropData(t,e){if(!this.asyncProps[t]){const n=this.component&&this.component.constructor._propTypes;this.asyncProps[t]={type:n&&n[t],lastValue:null,resolvedValue:e,pendingLoadCount:0,resolvedLoadCount:0}}}}{constructor({attributeManager:t,layer:e}){super(e),(0,r.Z)(this,"attributeManager",void 0),(0,r.Z)(this,"needsRedraw",void 0),(0,r.Z)(this,"needsUpdate",void 0),(0,r.Z)(this,"subLayers",void 0),(0,r.Z)(this,"usesPickingColorCache",void 0),(0,r.Z)(this,"changeFlags",void 0),(0,r.Z)(this,"viewport",void 0),(0,r.Z)(this,"uniformTransitions",void 0),(0,r.Z)(this,"propsInTransition",void 0),this.attributeManager=t,this.needsRedraw=!0,this.needsUpdate=!0,this.subLayers=null,this.usesPickingColorCache=!1}get layer(){return this.component}set layer(t){this.component=t}_fetch(t,e){const n=this.component.props.fetch;return n?n(e,{propName:t,layer:this.layer}):super._fetch(t,e)}_onResolve(t,e){const n=this.component.props.onDataLoad;"data"===t&&n&&n(e,{propName:t,layer:this.layer})}_onError(t,e){this.layer.raiseError(e,"loading ".concat(t," of ").concat(this.layer))}}var Wt=n(8866),Ht=n(2813);const Xt=2**24-1,qt=Object.freeze([]),Yt=(0,St.Z)((({oldViewport:t,viewport:e})=>t.equals(e)));let Kt=new Uint8ClampedArray(0);const $t={data:{type:"data",value:qt,async:!0},dataComparator:{type:"function",value:null,compare:!1,optional:!0},_dataDiff:{type:"function",value:t=>t&&t.__diff,compare:!1,optional:!0},dataTransform:{type:"function",value:null,compare:!1,optional:!0},onDataLoad:{type:"function",value:null,compare:!1,optional:!0},onError:{type:"function",value:null,compare:!1,optional:!0},fetch:{type:"function",value:(t,{propName:e,layer:n,loaders:r,loadOptions:i,signal:o})=>{const{resourceManager:s}=n.context;var a;(i=i||n.getLoadOptions(),r=r||n.props.loaders,o)&&(i={...i,fetch:{...null===(a=i)||void 0===a?void 0:a.fetch,signal:o}});let u=s.contains(t);return u||i||(s.add({resourceId:t,data:(0,Ht.z)(t,r),persistent:!1}),u=!0),u?s.subscribe({resourceId:t,onChange:t=>{var r;return null===(r=n.internalState)||void 0===r?void 0:r.reloadAsyncProp(e,t)},consumerId:n.id,requestId:e}):(0,Ht.z)(t,r,i)},compare:!1},updateTriggers:{},visible:!0,pickable:!1,opacity:{type:"number",min:0,max:1,value:1},operation:i.k8.DRAW,onHover:{type:"function",value:null,compare:!1,optional:!0},onClick:{type:"function",value:null,compare:!1,optional:!0},onDragStart:{type:"function",value:null,compare:!1,optional:!0},onDrag:{type:"function",value:null,compare:!1,optional:!0},onDragEnd:{type:"function",value:null,compare:!1,optional:!0},coordinateSystem:i.Df.DEFAULT,coordinateOrigin:{type:"array",value:[0,0,0],compare:!0},modelMatrix:{type:"array",value:null,compare:!0,optional:!0},wrapLongitude:!1,positionFormat:"XYZ",colorFormat:"RGBA",parameters:{type:"object",value:{},optional:!0,compare:!0},transitions:null,extensions:[],loaders:{type:"array",value:[],optional:!0,compare:!0},getPolygonOffset:{type:"function",value:({layerIndex:t})=>[0,100*-t],compare:!1},highlightedObjectIndex:null,autoHighlight:!1,highlightColor:{type:"accessor",value:[0,0,128,128]}};class Jt extends Ut{constructor(...t){super(...t),(0,r.Z)(this,"internalState",null),(0,r.Z)(this,"lifecycle",mt.dt.NO_STATE),(0,r.Z)(this,"context",void 0),(0,r.Z)(this,"state",void 0),(0,r.Z)(this,"parent",null)}get root(){let t=this;for(;t.parent;)t=t.parent;return t}toString(){const t=this.constructor.layerName||this.constructor.name;return"".concat(t,"({id: '").concat(this.props.id,"'})")}project(t){(0,p.Z)(this.internalState);const e=this.internalState.viewport||this.context.viewport,n=(0,Ot.T)(t,{viewport:e,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem}),[r,i,o]=(0,Wt.aW)(n,e.pixelProjectionMatrix);return 2===t.length?[r,i]:[r,i,o]}unproject(t){(0,p.Z)(this.internalState);return(this.internalState.viewport||this.context.viewport).unproject(t)}projectPosition(t,e){(0,p.Z)(this.internalState);const n=this.internalState.viewport||this.context.viewport;return(0,Ot.D)(t,{viewport:n,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem,...e})}get isComposite(){return!1}setState(t){this.setChangeFlags({stateChanged:!0}),Object.assign(this.state,t),this.setNeedsRedraw()}setNeedsRedraw(){this.internalState&&(this.internalState.needsRedraw=!0)}setNeedsUpdate(){this.internalState&&(this.context.layerManager.setNeedsUpdate(String(this)),this.internalState.needsUpdate=!0)}get isLoaded(){return!!this.internalState&&!this.internalState.isAsyncPropLoading()}get wrapLongitude(){return this.props.wrapLongitude}isPickable(){return this.props.pickable&&this.props.visible}getModels(){return this.state&&(this.state.models||this.state.model&&[this.state.model])||[]}setModuleParameters(t){for(const e of this.getModels())e.updateModuleSettings(t)}getAttributeManager(){return this.internalState&&this.internalState.attributeManager}getCurrentLayer(){return this.internalState&&this.internalState.layer}getLoadOptions(){return this.props.loadOptions}use64bitPositions(){const{coordinateSystem:t}=this.props;return t===i.Df.DEFAULT||t===i.Df.LNGLAT||t===i.Df.CARTESIAN}onHover(t,e){return this.props.onHover&&this.props.onHover(t,e)||!1}onClick(t,e){return this.props.onClick&&this.props.onClick(t,e)||!1}nullPickingColor(){return[0,0,0]}encodePickingColor(t,e=[]){return e[0]=t+1&255,e[1]=t+1>>8&255,e[2]=t+1>>8>>8&255,e}decodePickingColor(t){(0,p.Z)(t instanceof Uint8Array);const[e,n,r]=t;return e+256*n+65536*r-1}getNumInstances(){return Number.isFinite(this.props.numInstances)?this.props.numInstances:this.state&&void 0!==this.state.numInstances?this.state.numInstances:At(this.props.data)}getStartIndices(){return this.props.startIndices?this.props.startIndices:this.state&&this.state.startIndices?this.state.startIndices:null}getBounds(){var t;const e=this.getAttributeManager();if(!e)return null;const{positions:n,instancePositions:r}=e.attributes;return null===(t=n||r)||void 0===t?void 0:t.getBounds()}getShaders(t){for(const e of this.props.extensions)t=Pt(t,e.getShaders.call(this,e));return t}shouldUpdateState(t){return t.changeFlags.propsOrDataChanged}updateState(t){const e=this.getAttributeManager(),{dataChanged:n}=t.changeFlags;if(n&&e)if(Array.isArray(n))for(const a of n)e.invalidateAll(a);
1else e.invalidateAll();const{props:r,oldProps:i}=t,o=Number.isInteger(i.highlightedObjectIndex)||i.pickable,s=Number.isInteger(r.highlightedObjectIndex)||r.pickable;if(o!==s&&e){const{pickingColors:t,instancePickingColors:n}=e.attributes,r=t||n;r&&(s&&r.constant&&(r.constant=!1,e.invalidate(r.id)),r.value||s||(r.constant=!0,r.value=[0,0,0]))}}finalizeState(t){for(const n of this.getModels())n.delete();const e=this.getAttributeManager();e&&e.finalize(),this.context&&this.context.resourceManager.unsubscribe({consumerId:this.id}),this.internalState&&(this.internalState.uniformTransitions.clear(),this.internalState.finalize())}draw(t){for(const e of this.getModels())e.draw(t)}getPickingInfo({info:t,mode:e,sourceLayer:n}){const{index:r}=t;return r>=0&&Array.isArray(this.props.data)&&(t.object=this.props.data[r]),t}raiseError(t,e){var n,r,i,o;(e&&(t.message="".concat(e,": ").concat(t.message)),null!==(n=(r=this.props).onError)&&void 0!==n&&n.call(r,t))||(null===(i=this.context)||void 0===i||null===(o=i.onError)||void 0===o||o.call(i,t,this))}getNeedsRedraw(t={clearRedrawFlags:!1}){return this._getNeedsRedraw(t)}needsUpdate(){return!!this.internalState&&(this.internalState.needsUpdate||this.hasUniformTransition()||this.shouldUpdateState(this._getUpdateParams()))}hasUniformTransition(){var t;return(null===(t=this.internalState)||void 0===t?void 0:t.uniformTransitions.active)||!1}activateViewport(t){if(!this.internalState)return;const e=this.internalState.viewport;this.internalState.viewport=t,e&&Yt({oldViewport:e,viewport:t})||(this.setChangeFlags({viewportChanged:!0}),this.isComposite?this.needsUpdate()&&this.setNeedsUpdate():this._update())}invalidateAttribute(t="all"){const e=this.getAttributeManager();e&&("all"===t?e.invalidateAll():e.invalidate(t))}updateAttributes(t){for(const e of this.getModels())this._setModelAttributes(e,t)}_updateAttributes(){const t=this.getAttributeManager();if(!t)return;const e=this.props,n=this.getNumInstances(),r=this.getStartIndices();t.update({data:e.data,numInstances:n,startIndices:r,props:e,transitions:e.transitions,buffers:e.data.attributes,context:this});const i=t.getChangedAttributes({clearChangedFlags:!0});this.updateAttributes(i)}_updateAttributeTransition(){const t=this.getAttributeManager();t&&t.updateTransition()}_updateUniformTransition(){const{uniformTransitions:t}=this.internalState;if(t.active){const e=t.update(),n=Object.create(this.props);for(const t in e)Object.defineProperty(n,t,{value:e[t]});return n}return this.props}calculateInstancePickingColors(t,{numInstances:e}){if(t.constant)return;const n=Math.floor(Kt.length/3);if(this.internalState.usesPickingColorCache=!0,n<e){e>Xt&&h.Z.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")(),Kt=c.Z.allocate(Kt,e,{size:3,copy:!0,maxCount:Math.max(e,Xt)});const t=Math.floor(Kt.length/3),r=[];for(let e=n;e<t;e++)this.encodePickingColor(e,r),Kt[3*e+0]=r[0],Kt[3*e+1]=r[1],Kt[3*e+2]=r[2]}t.value=Kt.subarray(0,3*e)}_setModelAttributes(t,e){const n=this.getAttributeManager(),r=t.userData.excludeAttributes||{},i=n.getShaderAttributes(e,r);t.setAttributes(i)}disablePickingIndex(t){this._disablePickingIndex(t)}_disablePickingIndex(t){const{pickingColors:e,instancePickingColors:n}=this.getAttributeManager().attributes,r=e||n;if(!r)return;const i=r.getVertexOffset(t),o=r.getVertexOffset(t+1);r.buffer.subData({data:new Uint8Array(o-i),offset:i})}restorePickingColors(){const{pickingColors:t,instancePickingColors:e}=this.getAttributeManager().attributes,n=t||e;n&&(this.internalState.usesPickingColorCache&&n.value.buffer!==Kt.buffer&&(n.value=Kt.subarray(0,n.value.length)),n.updateSubBuffer({startOffset:0}))}_initialize(){(0,p.Z)(!this.internalState),(0,p.Z)(Number.isFinite(this.props.coordinateSystem)),(0,T.Z)("layer.initialize",this);const t=this._getAttributeManager();t&&t.addInstanced({instancePickingColors:{type:5121,size:3,noAlloc:!0,update:this.calculateInstancePickingColors}}),this.internalState=new Gt({attributeManager:t,layer:this}),this._clearChangeFlags(),this.state={},Object.defineProperty(this.state,"attributeManager",{get:()=>(h.Z.deprecated("layer.state.attributeManager","layer.getAttributeManager()")(),t)}),this.internalState.layer=this,this.internalState.uniformTransitions=new gt(this.context.timeline),this.internalState.onAsyncPropUpdated=this._onAsyncPropUpdated.bind(this),this.internalState.setAsyncProps(this.props),this.initializeState(this.context);for(const e of this.props.extensions)e.initializeState.call(this,this.context,e);this.setChangeFlags({dataChanged:"init",propsChanged:"init",viewportChanged:!0,extensionsChanged:!0}),this._update()}_transferState(t){(0,T.Z)("layer.matched",this,this===t);const{state:e,internalState:n}=t;this!==t&&(this.internalState=n,this.internalState.layer=this,this.state=e,this.internalState.setAsyncProps(this.props),this._diffProps(this.props,this.internalState.getOldProps()))}
1_update(){const t=this.needsUpdate();if((0,T.Z)("layer.update",this,t),!t)return;const e=this.props,n=this.context,r=this.internalState,i=n.viewport,o=this._updateUniformTransition();r.propsInTransition=o,n.viewport=r.viewport||i,this.props=o;try{const t=this._getUpdateParams(),o=this.getModels();if(n.gl)this.updateState(t);else try{this.updateState(t)}catch(s){}for(const e of this.props.extensions)e.updateState.call(this,t,e);const a=this.getModels()[0]!==o[0];this._postUpdate(t,a)}finally{n.viewport=i,this.props=e,this._clearChangeFlags(),r.needsUpdate=!1,r.resetOldProps()}}_finalize(){(0,T.Z)("layer.finalize",this),this.finalizeState(this.context);for(const t of this.props.extensions)t.finalizeState.call(this,t)}_drawLayer({moduleParameters:t=null,uniforms:e={},parameters:n={}}){this._updateAttributeTransition();const r=this.props,i=this.context;this.props=this.internalState.propsInTransition||r;const o=this.props.opacity;e.opacity=Math.pow(o,1/2.2);try{t&&this.setModuleParameters(t);const{getPolygonOffset:o}=this.props,s=o&&o(e)||[0,0];(0,I.dR)(i.gl,{polygonOffset:s}),(0,I.s8)(i.gl,n,(()=>{const r={moduleParameters:t,uniforms:e,parameters:n,context:i};for(const t of this.props.extensions)t.draw.call(this,r,t);this.draw(r)}))}finally{this.props=r}}getChangeFlags(){var t;return null===(t=this.internalState)||void 0===t?void 0:t.changeFlags}setChangeFlags(t){if(!this.internalState)return;const{changeFlags:e}=this.internalState;for(const r in t)if(t[r]){let n=!1;if("dataChanged"===r){const i=t[r],o=e[r];i&&Array.isArray(o)&&(e.dataChanged=Array.isArray(i)?o.concat(i):i,n=!0)}e[r]||(e[r]=t[r],n=!0),n&&(0,T.Z)("layer.changeFlag",this,r,t)}const n=Boolean(e.dataChanged||e.updateTriggersChanged||e.propsChanged||e.extensionsChanged);e.propsOrDataChanged=n,e.somethingChanged=n||e.viewportChanged||e.stateChanged}_clearChangeFlags(){this.internalState.changeFlags={dataChanged:!1,propsChanged:!1,updateTriggersChanged:!1,viewportChanged:!1,stateChanged:!1,extensionsChanged:!1,propsOrDataChanged:!1,somethingChanged:!1}}_diffProps(t,e){const n=yt(t,e);if(n.updateTriggersChanged)for(const i in n.updateTriggersChanged)n.updateTriggersChanged[i]&&this.invalidateAttribute(i);if(n.transitionsChanged)for(const i in n.transitionsChanged){var r;this.internalState.uniformTransitions.add(i,e[i],t[i],null===(r=t.transitions)||void 0===r?void 0:r[i])}return this.setChangeFlags(n)}validateProps(){!function(t){const e=Et(t);for(const n in e){const r=e[n],{validate:i}=r;if(i&&!i(t[n],r))throw new Error("Invalid prop ".concat(n,": ").concat(t[n]))}}(this.props)}updateAutoHighlight(t){this.props.autoHighlight&&!Number.isInteger(this.props.highlightedObjectIndex)&&this._updateAutoHighlight(t)}_updateAutoHighlight(t){const e={pickingSelectedColor:t.picked?t.color:null},{highlightColor:n}=this.props;t.picked&&"function"===typeof n&&(e.pickingHighlightColor=n(t)),this.setModuleParameters(e),this.setNeedsRedraw()}_getAttributeManager(){const t=this.context;return new at(t.gl,{id:this.props.id,stats:t.stats,timeline:t.timeline})}_postUpdate(t,e){const{props:n,oldProps:r}=t;this.setNeedsRedraw(),this._updateAttributes();const{model:i}=this.state;null===i||void 0===i||i.setInstanceCount(this.getNumInstances());const{autoHighlight:o,highlightedObjectIndex:s,highlightColor:a}=n;if(e||r.autoHighlight!==o||r.highlightedObjectIndex!==s||r.highlightColor!==a){const t={};o||(t.pickingSelectedColor=null),Array.isArray(a)&&(t.pickingHighlightColor=a),Number.isInteger(s)&&(t.pickingSelectedColor=Number.isFinite(s)&&s>=0?this.encodePickingColor(s):null),this.setModuleParameters(t)}}_getUpdateParams(){return{props:this.props,oldProps:this.internalState.getOldProps(),context:this.context,changeFlags:this.internalState.changeFlags}}_getNeedsRedraw(t){if(!this.internalState)return!1;let e=!1;e=e||this.internalState.needsRedraw&&this.id,this.internalState.needsRedraw=this.internalState.needsRedraw&&!t.clearRedrawFlags;const n=this.getAttributeManager(),r=!!n&&n.getNeedsRedraw(t);return e=e||r,e}_onAsyncPropUpdated(){this._diffProps(this.props,this.internalState.getOldProps()),this.setNeedsUpdate()}}(0,r.Z)(Jt,"defaultProps",$t),(0,r.Z)(Jt,"layerName","Layer")},5409:function(t,e,n){"use strict";n.d(e,{dt:function(){return r},fm:function(){return i},lY:function(){return o},fO:function(){return s},bN:function(){return a}});const r={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Initialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"},i=Symbol.for("component"),o=Symbol.for("asyncPropDefaults"),s=Symbol.for("asyncPropOriginal"),a=Symbol.for("asyncPropResolved")},5442:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4942);var i=n(1418),o=n(6047);class s extends class{constructor(t,e={id:"pass"}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"gl",void 0),(0,r.Z)(this,"props",void 0);const{id:n}=e;this.id=n,this.gl=t,this.props={...e}}setProps(t){Object.assign(this.props,t)}render(t){}cleanup(){}}{render(t){const e=this.gl;return(0,i.dR)(e,{framebuffer:t.target}),this._drawLayers(t)}_drawLayers(t){const{target:e,moduleParameters:n,viewports:r,views:o,onViewportActive:s,clearCanvas:a=!0}=t;t.pass=t.pass||"unknown";const u=this.gl;a&&function(t){const e=t.drawingBufferWidth,n=t.drawingBufferHeight;(0,i.dR)(t,{viewport:[0,0,e,n]}),t.clear(16640)}(u);const c=[];for(const i of r){const r=o&&o[i.id];s(i);const a=this._getDrawLayerParams(i,t),l=i.subViewports||[i];for(const i of l){const o=this._drawLayersInViewport(u,{target:e,moduleParameters:n,viewport:i,view:r,pass:t.pass,layers:t.layers},a);c.push(o)}}return c}_getDrawLayerParams(t,{layers:e,pass:n,layerFilter:r,cullRect:i,effects:o,moduleParameters:s}){const u=[],c=a(),l={layer:e[0],viewport:t,isPicking:n.startsWith("picking"),renderPass:n,cullRect:i},h={};for(let a=0;a<e.length;a++){const i=e[a],f=this._shouldDrawLayer(i,l,r,h),d={shouldDrawLayer:f};f&&(d.layerRenderIndex=c(i,f),d.moduleParameters=this._getModuleParameters(i,o,n,s),d.layerParameters=this.getLayerParameters(i,a,t)),u[a]=d}return u}_drawLayersInViewport(t,{layers:e,moduleParameters:n,pass:r,target:s,viewport:
1a,view:u},c){const l=function(t,{moduleParameters:e,target:n,viewport:r}){const o=n&&"default-framebuffer"!==n.id,s=e&&e.devicePixelRatio||(0,i.w)(t),a=o?n.height:t.drawingBufferHeight,u=r;return[u.x*s,a-(u.y+u.height)*s,u.width*s,u.height*s]}(t,{moduleParameters:n,target:s,viewport:a});if(u&&u.props.clear){const e=!0===u.props.clear?{color:!0,depth:!0}:u.props.clear;(0,i.s8)(t,{scissorTest:!0,scissor:l},(()=>(0,o.Z)(t,e)))}const h={totalCount:e.length,visibleCount:0,compositeCount:0,pickableCount:0};(0,i.dR)(t,{viewport:l});for(let i=0;i<e.length;i++){const t=e[i],{shouldDrawLayer:n,layerRenderIndex:o,moduleParameters:s,layerParameters:u}=c[i];if(n&&t.props.pickable&&h.pickableCount++,t.isComposite)h.compositeCount++;else if(n){h.visibleCount++,s.viewport=a;try{t._drawLayer({moduleParameters:s,uniforms:{layerIndex:o},parameters:u})}catch(f){t.raiseError(f,"drawing ".concat(t," to ").concat(r))}}}return h}shouldDrawLayer(t){return!0}getModuleParameters(t,e){return null}getLayerParameters(t,e,n){return t.props.parameters}_shouldDrawLayer(t,e,n,r){if(!(t.props.visible&&this.shouldDrawLayer(t)))return!1;e.layer=t;let i=t.parent;for(;i;){if(!i.props.visible||!i.filterSubLayer(e))return!1;e.layer=i,i=i.parent}if(n){const t=e.layer.id;if(t in r||(r[t]=n(e)),!r[t])return!1}return t.activateViewport(e.viewport),!0}_getModuleParameters(t,e,n,r){var o;const s=Object.assign(Object.create((null===(o=t.internalState)||void 0===o?void 0:o.propsInTransition)||t.props),{autoWrapLongitude:t.wrapLongitude,viewport:t.context.viewport,mousePosition:t.context.mousePosition,pickingActive:0,devicePixelRatio:(0,i.w)(this.gl)});if(e)for(const i of e){var a;Object.assign(s,null===(a=i.getModuleParameters)||void 0===a?void 0:a.call(i,t))}return Object.assign(s,this.getModuleParameters(t,e),r)}}function a(t=0,e={}){const n={},r=(i,o)=>{const s=i.props._offset,u=i.id,c=i.parent&&i.parent.id;let l;if(c&&!(c in e)&&r(i.parent,!1),c in n){const t=n[c]=n[c]||a(e[c],e);l=t(i,o),n[u]=t}else Number.isFinite(s)?(l=s+(e[c]||0),n[u]=null):l=t;return o&&l>=t&&(t=l+1),e[u]=l,l};return r}},9965:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});const r={pickingSelectedColor:null,pickingHighlightColor:new Uint8Array([0,255,255,255]),pickingActive:!1,pickingAttribute:!1};const i={name:"picking",vs:"uniform bool picking_uActive;\nuniform bool picking_uAttribute;\nuniform vec3 picking_uSelectedColor;\nuniform bool picking_uSelectedColorValid;\n\nout vec4 picking_vRGBcolor_Avalid;\n\nconst float COLOR_SCALE = 1. / 255.;\n\nbool picking_isColorValid(vec3 color) {\n return dot(color, vec3(1.0)) > 0.001;\n}\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n picking_uSelectedColorValid &&\n !picking_isColorValid(abs(vertexColor - picking_uSelectedColor));\n}\n\nvoid picking_setPickingColor(vec3 pickingColor) {\n if (picking_uActive) {\n picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));\n\n if (!picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = pickingColor * COLOR_SCALE;\n }\n } else {\n picking_vRGBcolor_Avalid.a = float(isVertexPicked(pickingColor));\n }\n}\n\nvoid picking_setPickingAttribute(float value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.r = value;\n }\n}\nvoid picking_setPickingAttribute(vec2 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rg = value;\n }\n}\nvoid picking_setPickingAttribute(vec3 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = value;\n }\n}\n",fs:"uniform bool picking_uActive;\nuniform vec3 picking_uSelectedColor;\nuniform vec4 picking_uHighlightColor;\n\nin vec4 picking_vRGBcolor_Avalid;\nvec4 picking_filterHighlightColor(vec4 color) {\n if (picking_uActive) {\n return color;\n }\n bool selected = bool(picking_vRGBcolor_Avalid.a);\n\n if (selected) {\n float highLightAlpha = picking_uHighlightColor.a;\n float blendedAlpha = highLightAlpha + color.a * (1.0 - highLightAlpha);\n float highLightRatio = highLightAlpha / blendedAlpha;\n\n vec3 blendedRGB = mix(color.rgb, picking_uHighlightColor.rgb, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n } else {\n return color;\n }\n}\nvec4 picking_filterPickingColor(vec4 color) {\n if (picking_uActive) {\n if (picking_vRGBcolor_Aval
1id.a == 0.0) {\n discard;\n }\n return picking_vRGBcolor_Avalid;\n }\n return color;\n}\nvec4 picking_filterColor(vec4 color) {\n vec4 highightColor = picking_filterHighlightColor(color);\n return picking_filterPickingColor(highightColor);\n}\n\n",getUniforms:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;const e={};if(void 0!==t.pickingSelectedColor)if(t.pickingSelectedColor){const n=t.pickingSelectedColor.slice(0,3);e.picking_uSelectedColorValid=1,e.picking_uSelectedColor=n}else e.picking_uSelectedColorValid=0;if(t.pickingHighlightColor){const n=Array.from(t.pickingHighlightColor,(t=>t/255));Number.isFinite(n[3])||(n[3]=1),e.picking_uHighlightColor=n}return void 0!==t.pickingActive&&(e.picking_uActive=Boolean(t.pickingActive),e.picking_uAttribute=Boolean(t.pickingAttribute)),e}};var o={inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n // for picking depth values\n picking_setPickingAttribute(position.z / position.w);\n ","vs:DECKGL_FILTER_COLOR":"\n picking_setPickingColor(geometry.pickingColor);\n ","fs:DECKGL_FILTER_COLOR":{order:99,injection:"\n // use highlight color if this fragment belongs to the selected object.\n color = picking_filterHighlightColor(color);\n\n // use picking color if rendering to picking FBO.\n color = picking_filterPickingColor(color);\n "}},...i}},8547:function(t,e,n){"use strict";n.d(e,{T:function(){return l},D:function(){return h}});var r=n(4088),i=n(8771),o=n(6935),s=n(8333),a=n(7160),u=n(8866);function c(t,e,n=!1){const r=e.projectPosition(t);if(n&&e instanceof o.Z){const[n,i,o=0]=t,s=e.getDistanceScales([n,i]);r[2]=o*s.unitsPerMeter[2]}return r}function l(t,{viewport:e,modelMatrix:n,coordinateSystem:i,coordinateOrigin:o,offsetMode:a}){let[l,h,f=0]=t;switch(n&&([l,h,f]=s.fF([],[l,h,f,1],n)),i){case r.Df.LNGLAT:return c([l,h,f],e,a);case r.Df.LNGLAT_OFFSETS:return c([l+o[0],h+o[1],f+(o[2]||0)],e,a);case r.Df.METER_OFFSETS:return c((0,u.eG)(o,[l,h,f]),e,a);case r.Df.CARTESIAN:default:return e.isGeospatial?[l+o[0],h+o[1],f+o[2]]:e.projectPosition([l,h,f])}}function h(t,e){const{viewport:n,coordinateSystem:o,coordinateOrigin:s,modelMatrix:u,fromCoordinateSystem:c,fromCoordinateOrigin:h}=function(t){const{viewport:e,modelMatrix:n,coordinateOrigin:i}=t;let{coordinateSystem:o,fromCoordinateSystem:s,fromCoordinateOrigin:a}=t;return o===r.Df.DEFAULT&&(o=e.isGeospatial?r.Df.LNGLAT:r.Df.CARTESIAN),void 0===s&&(s=o),void 0===a&&(a=i),{viewport:e,coordinateSystem:o,coordinateOrigin:i,modelMatrix:n,fromCoordinateSystem:s,fromCoordinateOrigin:a}}(e),{geospatialOrigin:f,shaderCoordinateOrigin:d,offsetMode:p}=(0,i.v)(n,o,s),g=l(t,{viewport:n,modelMatrix:u,coordinateSystem:c,coordinateOrigin:h,offsetMode:p});if(p){const t=n.projectPosition(f||d);a.lu(g,g,t)}return g}},2189:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});const r={name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01;\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03;\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04;\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06;\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 1.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 1.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null},i="#define SMOOTH_EDGE_RADIUS 0.5";var o={name:"geometry",vs:"\n".concat(i,"\n\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n}
1 geometry = VertexGeometry(\n vec4(0.0, 0.0, 1.0, 0.0),\n vec3(0.0),\n vec3(0.0),\n vec3(0.0),\n vec2(0.0),\n vec3(0.0)\n);\n"),fs:"\n".concat(i,"\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n")},s=n(4088);const a=Object.keys(s.Df).map((t=>"const int COORDINATE_SYSTEM_".concat(t," = ").concat(s.Df[t],";"))).join(""),u=Object.keys(s.zG).map((t=>"const int PROJECTION_MODE_".concat(t," = ").concat(s.zG[t],";"))).join(""),c=Object.keys(s.iI).map((t=>"const int UNIT_".concat(t.toUpperCase()," = ").concat(s.iI[t],";"))).join("");var l="".concat(a,"\n").concat(u,"\n").concat(c,'\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\nuniform vec3 project_uCommonOrigin;\nuniform bool project_uPseudoMeters;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0; // meters\nconst float GLOBE_RADIUS = 256.0;\n\n// returns an adjustment factor for uCommonUnitsPerMeter\nfloat project_size() {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR &&\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT &&\n project_uPseudoMeters == false) {\n\n // uCommonUnitsPerMeter in low-zoom Web Mercator is non-linear\n // Adjust by 1 / cos(latitude)\n // If geometry.position (vertex in common space) is populated, use it\n // Otherwise use geometry.worldPosition (anchor in world space)\n \n if (geometry.position.w == 0.0) {\n float y = clamp(geometry.worldPosition.y, -89.9, 89.9);\n return 1.0 / cos(radians(y));\n }\n\n // latitude from common y: 2.0 * (atan(exp(y / TILE_SIZE * 2.0 * PI - PI)) - PI / 4.0)\n // Taylor series of 1 / cos(latitude)\n // Max error < 0.003\n \n float y = geometry.position.y / TILE_SIZE * 2.0 - 1.0;\n float y2 = y * y;\n float y4 = y2 * y2;\n float y6 = y4 * y2;\n return 1.0 + 4.9348 * y2 + 4.0587 * y4 + 1.5642 * y6;\n }\n return 1.0;\n}\n//\n// Scaling offsets - scales meters to "world distance"\n// Note the scalar version of project_size is for scaling the z component only\n//\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z * project_size();\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy * project_size();\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter * project_size();\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\n\n// Get rotation matrix that aligns the z axis with the given up vector\n// Find 3 unit vectors ux, uy, uz that are perpendicular to each other and uz == up\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n // Tangent on XY plane\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\n\n//\n// Projecting normal - transform deltas from current coordinate system to\n// normals in the worldspace\n//\nvec3 project_normal(vec3 vector) {\n // Apply model matrix\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n vec3 n = normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n mat3 rotation;\n if (project_needs_rotation(geometry.position.xyz, rotation)) {\n n = rotation * n;\n }\n return n;\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\n\n//\n// Projecting positions - non-linear projection: lnglats => unit tile [0-1, 0-1]\n//\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;
1\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\n\n//\n// Projects positions (defined by project_uCoordinateSystem) to common space (defined by project_uProjectionMode)\n//\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n\n // Work around for a Mac+NVIDIA bug https://github.com/visgl/deck.gl/issues/4145\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy),\n project_size(position_world.z),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n if (abs(position_world.y - project_uCoordinateOrigin.y) > 0.25) {\n // Too far from the projection center for offset mode to be accurate\n // Only use high parts\n return vec4(\n project_mercator_(position_world.xy) - project_uCommonOrigin.xy,\n project_size(position_world.z),\n position_world.w\n );\n }\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n // Subtract high part of 64 bit value. Convert remainder to float32, preserving precision.\n position_world.xyz -= project_uCoordinateOrigin;\n }\n\n // Translation is already added to the high parts\n return project_offset_(position_world + project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\n\n//\n// Projects from common space coordinates to clip space.\n// Uses project_uViewProjectionMatrix\n//\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\n\n// Returns a clip space offset that corresponds to a given number of screen pixels\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_size_to_pixel(float size, int unit) {\n if (unit == UNIT_METERS) return project_size_to_pixel(size);\n if (unit == UNIT_COMMON) return size * project_uScale;\n // UNIT_PIXELS\n return size;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}
1\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\n'),h=n(8771);const f={};var d={name:"project",dependencies:[r,o],vs:l,getUniforms:function(t=f){return"viewport"in t?(0,h.C)(t):{}}}},8771:function(t,e,n){"use strict";n.d(e,{v:function(){return d},C:function(){return p}});var r=n(5975),i=n(8333),o=n(4088),s=n(8177);const a=[0,0,0,0],u=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],l=[0,0,0],h=[0,0,0],f=(0,s.Z)((function({viewport:t,devicePixelRatio:e,coordinateSystem:n,coordinateOrigin:s}){const{projectionCenter:h,viewProjectionMatrix:f,originCommon:p,cameraPosCommon:g,shaderCoordinateOrigin:m,geospatialOrigin:y}=function(t,e,n){const{viewMatrixUncentered:o,projectionMatrix:s}=t;let{viewMatrix:c,viewProjectionMatrix:l}=t,h=a,f=a,p=t.cameraPosition;const{geospatialOrigin:g,shaderCoordinateOrigin:m,offsetMode:y}=d(t,e,n);y&&(f=t.projectPosition(g||m),p=[p[0]-f[0],p[1]-f[1],p[2]-f[2]],f[3]=1,h=i.fF([],f,l),c=o||c,l=r.Jp([],s,c),l=r.Jp([],l,u));return{viewMatrix:c,viewProjectionMatrix:l,projectionCenter:h,originCommon:f,cameraPosCommon:p,shaderCoordinateOrigin:m,geospatialOrigin:g}}(t,n,s),v=t.getDistanceScales(),b=[t.width*e,t.height*e],_=i.fF([],[0,0,-t.focalDistance,1],t.projectionMatrix)[3]||1,w={project_uCoordinateSystem:n,project_uProjectionMode:t.projectionMode,project_uCoordinateOrigin:m,project_uCommonOrigin:p.slice(0,3),project_uCenter:h,project_uPseudoMeters:Boolean(t._pseudoMeters),project_uViewportSize:b,project_uDevicePixelRatio:e,project_uFocalDistance:_,project_uCommonUnitsPerMeter:v.unitsPerMeter,project_uCommonUnitsPerWorldUnit:v.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:l,project_uScale:t.scale,project_uWrapLongitude:!1,project_uViewProjectionMatrix:f,project_uModelMatrix:c,project_uCameraPosition:g};if(y){const e=t.getDistanceScales(y);switch(n){case o.Df.METER_OFFSETS:w.project_uCommonUnitsPerWorldUnit=e.unitsPerMeter,w.project_uCommonUnitsPerWorldUnit2=e.unitsPerMeter2;break;case o.Df.LNGLAT:case o.Df.LNGLAT_OFFSETS:t._pseudoMeters||(w.project_uCommonUnitsPerMeter=e.unitsPerMeter),w.project_uCommonUnitsPerWorldUnit=e.unitsPerDegree,w.project_uCommonUnitsPerWorldUnit2=e.unitsPerDegree2;break;case o.Df.CARTESIAN:w.project_uCommonUnitsPerWorldUnit=[1,1,e.unitsPerMeter[2]],w.project_uCommonUnitsPerWorldUnit2=[0,0,e.unitsPerMeter2[2]]}}return w}));function d(t,e,n=h){n.length<3&&(n=[n[0],n[1],0]);let r,i=n,s=!0;switch(r=e===o.Df.LNGLAT_OFFSETS||e===o.Df.METER_OFFSETS?n:t.isGeospatial?[Math.fround(t.longitude),Math.fround(t.latitude),0]:null,t.projectionMode){case o.zG.WEB_MERCATOR:e!==o.Df.LNGLAT&&e!==o.Df.CARTESIAN||(r=[0,0,0],s=!1);break;case o.zG.WEB_MERCATOR_AUTO_OFFSET:e===o.Df.LNGLAT?i=r:e===o.Df.CARTESIAN&&(i=[Math.fround(t.center[0]),Math.fround(t.center[1]),0],r=t.unprojectPosition(i),i[0]-=n[0],i[1]-=n[1],i[2]-=n[2]);break;case o.zG.IDENTITY:i=t.position.map(Math.fround),i[2]=i[2]||0;break;case o.zG.GLOBE:s=!1,r=null;break;default:s=!1}return{geospatialOrigin:r,shaderCoordinateOrigin:i,offsetMode:s}}function p({viewport:t,devicePixelRatio:e=1,modelMatrix:n=null,coordinateSystem:r=o.Df.DEFAULT,coordinateOrigin:i=h,autoWrapLongitude:s=!1}){r===o.Df.DEFAULT&&(r=t.isGeospatial?o.Df.LNGLAT:o.Df.CARTESIAN);const a=f({viewport:t,devicePixelRatio:e,coordinateSystem:r,coordinateOrigin:i});return a.project_uWrapLongitude=s,a.project_uModelMatrix=n||c,a}},3844:function(t,e,n){"use strict";var r=n(2189);e.Z={name:"project32",dependencies:[r.Z],vs:"\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset, out vec4 commonPosition\n) {\n vec3 projectedPosition = project_position(position, position64Low);\n mat3 rotation;\n if (project_needs_rotation(projectedPosition, rotation)) {\n // offset is specified as ENU\n // when in globe projection, rotate offset so that the ground alighs with the surface of the globe\n offset = rotation * offset;\n }\n commonPosition = vec4(projectedPosition + offset, 1.0);\n return project_common_position_to_clipspace(commonPosition);\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset\n
1) {\n vec4 commonPosition;\n return project_position_to_clipspace(position, position64Low, offset, commonPosition);\n}\n"}},7045:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(4942),i=n(6507),o=n(4034),s=n(8866);const a=["bearing","pitch"],u={speed:1.2,curve:1.414};class c extends i.Z{constructor(t={}){super({compare:["longitude","latitude","zoom","bearing","pitch"],extract:["width","height","longitude","latitude","zoom","bearing","pitch"],required:["width","height","latitude","longitude","zoom"]}),(0,r.Z)(this,"opts",void 0),this.opts={...u,...t}}interpolateProps(t,e,n){const r=(0,s.if)(t,e,n,this.opts);for(const i of a)r[i]=(0,o.t7)(t[i]||0,e[i]||0,n);return r}getDuration(t,e){let{transitionDuration:n}=e;return"auto"===n&&(n=(0,s.up)(t,e,this.opts)),n}}},6507:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4942),i=n(4034),o=n(5304);class s{constructor(t){(0,r.Z)(this,"_propsToCompare",void 0),(0,r.Z)(this,"_propsToExtract",void 0),(0,r.Z)(this,"_requiredProps",void 0);const{compare:e,extract:n,required:i}=t;this._propsToCompare=e,this._propsToExtract=n||e,this._requiredProps=i}arePropsEqual(t,e){for(const n of this._propsToCompare)if(!(n in t)||!(n in e)||!(0,i.fS)(t[n],e[n]))return!1;return!0}initializeProps(t,e){const n={},r={};for(const i of this._propsToExtract)(i in t||i in e)&&(n[i]=t[i],r[i]=e[i]);return this._checkRequiredProps(n),this._checkRequiredProps(r),{start:n,end:r}}getDuration(t,e){return e.transitionDuration}_checkRequiredProps(t){this._requiredProps&&this._requiredProps.forEach((e=>{const n=t[e];(0,o.Z)(Number.isFinite(n)||Array.isArray(n),"".concat(e," is required for transition"))}))}}},3630:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(4942);class i{constructor(t){(0,r.Z)(this,"_inProgress",void 0),(0,r.Z)(this,"_handle",void 0),(0,r.Z)(this,"_timeline",void 0),(0,r.Z)(this,"time",void 0),(0,r.Z)(this,"settings",void 0),this._inProgress=!1,this._handle=null,this._timeline=t,this.time=0,this.settings={duration:0}}get inProgress(){return this._inProgress}start(t){var e,n;this.cancel(),this.settings=t,this._inProgress=!0,null===(e=(n=this.settings).onStart)||void 0===e||e.call(n,this)}end(){var t,e;this._inProgress&&(this._timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,null===(t=(e=this.settings).onEnd)||void 0===t||t.call(e,this))}cancel(){var t,e;this._inProgress&&(null===(t=(e=this.settings).onInterrupt)||void 0===t||t.call(e,this),this._timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}update(){var t,e;if(!this._inProgress)return!1;if(null===this._handle){const{_timeline:t,settings:e}=this;this._handle=t.addChannel({delay:t.getTime(),duration:e.duration})}return this.time=this._timeline.getTime(this._handle),this._onUpdate(),null===(t=(e=this.settings).onUpdate)||void 0===t||t.call(e,this),this._timeline.isFinished(this._handle)&&this.end(),!0}_onUpdate(){}}},5304:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"deck.gl: assertion failed.")}n.d(e,{Z:function(){return r}})},6871:function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(!t||!e)return!1;for(const n in t){const i=t[n],o=e[n];if(!(i===o||Array.isArray(i)&&Array.isArray(o)&&r(i,o)))return!1}return!0}n.d(e,{v:function(){return r}})},1855:function(t,e,n){"use strict";function r(t,e=(()=>!0)){return Array.isArray(t)?i(t,e,[]):e(t)?[t]:[]}function i(t,e,n){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?i(o,e,n):e(o)&&n.push(o)}return n}function o({target:t,source:e,start:n=0,count:r=1}){const i=e.length,o=r*i;let s=0;for(let a=n;s<i;s++)t[a++]=e[s];for(;s<o;)s<o-s?(t.copyWithin(n+s,n,n+s),s*=2):(t.copyWithin(n+s,n,n+o-s),s=o);return t}n.d(e,{x:function(){return r},k:function(){return o}})},3360:function(t,e,n){"use strict";n.d(e,{jB:function(){return o},D0:function(){return s},jr:function(){return a}});const r=[],i=[];function o(t,e=0,n=1/0){let o=r;const s={index:-1,data:t,target:[]};return t?"function"===typeof t[Symbol.iterator]?o=t:t.length>0&&(i.length=t.length,o=i):o=r,(e>0||Number.isFinite(n))&&(o=(Array.isArray(o)?o:Array.from(o)).slice(e,n),s.index=e-1),{iterable:o,objectInfo:s}}function s(t){return t&&t[Symbol.asyncIterator]}function a(t,e){const{size:n,stride:r,offset:i,startIndices:o,nested:s}=e,a=t.BYTES_PER_ELEMENT,u=r?r/a:n,c=i?i/a:0,l=Math.floor((t.length-c)/u);return(e,{index:r,target:i})=>{if(!o){const e=r*u+c;for(let r=0;r<n;r++)i[r]=t[e+r];return i}const a=o[r],h=o[r+1]||l;let f;if(s){f=new Array(h-a);for(let e=a;
1e<h;e++){const r=e*u+c;i=new Array(n);for(let e=0;e<n;e++)i[e]=t[r+e];f[e-a]=i}}else if(u===n)f=t.subarray(a*n+c,h*n+c);else{f=new t.constructor((h-a)*n);let e=0;for(let r=a;r<h;r++){const i=r*u+c;for(let r=0;r<n;r++)f[e++]=t[i+r]}}return f}}},744:function(t,e,n){"use strict";var r=n(6426);e.Z=new r.Z({id:"deck"})},5126:function(t,e,n){"use strict";n.d(e,{bS:function(){return o},wQ:function(){return s},Xt:function(){return a},Du:function(){return u},TK:function(){return f}});var r=n(6610),i=n(8022);function o(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t,e){const n=t%e;return n<0?e+n:n}function a(t){return[t[12],t[13],t[14]]}function u(t){return{left:l(t[3]+t[0],t[7]+t[4],t[11]+t[8],t[15]+t[12]),right:l(t[3]-t[0],t[7]-t[4],t[11]-t[8],t[15]-t[12]),bottom:l(t[3]+t[1],t[7]+t[5],t[11]+t[9],t[15]+t[13]),top:l(t[3]-t[1],t[7]-t[5],t[11]-t[9],t[15]-t[13]),near:l(t[3]+t[2],t[7]+t[6],t[11]+t[10],t[15]+t[14]),far:l(t[3]-t[2],t[7]-t[6],t[11]-t[10],t[15]-t[14])}}const c=new i.Z;function l(t,e,n,r){c.set(t,e,n);const o=c.len();return{distance:r/o,normal:new i.Z(-t/o,-e/o,-n/o)}}let h;function f(t,e){const{size:n=1,startIndex:i=0}=e,o=void 0!==e.endIndex?e.endIndex:t.length,s=(o-i)/n;h=r.Z.allocate(h,s,{type:Float32Array,size:2*n});let a=i,u=0;for(;a<o;){for(let e=0;e<n;e++){const r=t[a++];h[u+e]=r,h[u+e+n]=(c=r)-Math.fround(c)}u+=2*n}var c;return h.subarray(0,s*n*2)}},8177:function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(Array.isArray(t)){const n=t.length;if(!e||e.length!==n)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}return!1}function i(t){let e,n={};return i=>{for(const o in i)if(!r(i[o],n[o])){e=t(i),n=i;break}return e}}n.d(e,{Z:function(){return i}})},8005:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(4942),i=n(3360),o=n(6610),s=n(5304),a=n(3478);class u{constructor(t){(0,r.Z)(this,"opts",void 0),(0,r.Z)(this,"typedArrayManager",void 0),(0,r.Z)(this,"indexStarts",[0]),(0,r.Z)(this,"vertexStarts",[0]),(0,r.Z)(this,"vertexCount",0),(0,r.Z)(this,"instanceCount",0),(0,r.Z)(this,"attributes",void 0),(0,r.Z)(this,"_attributeDefs",void 0),(0,r.Z)(this,"data",void 0),(0,r.Z)(this,"getGeometry",void 0),(0,r.Z)(this,"geometryBuffer",void 0),(0,r.Z)(this,"buffers",void 0),(0,r.Z)(this,"positionSize",void 0),(0,r.Z)(this,"normalize",void 0);const{attributes:e={}}=t;this.typedArrayManager=o.Z,this.attributes={},this._attributeDefs=e,this.opts=t,this.updateGeometry(t)}updateGeometry(t){Object.assign(this.opts,t);const{data:e,buffers:n={},getGeometry:r,geometryBuffer:i,positionFormat:o,dataChanged:a,normalize:u=!0}=this.opts;if(this.data=e,this.getGeometry=r,this.positionSize=i&&i.size||("XY"===o?2:3),this.buffers=n,this.normalize=u,i&&((0,s.Z)(e.startIndices),this.getGeometry=this.getGeometryFromBuffer(i),u||(n.positions=i)),this.geometryBuffer=n.positions,Array.isArray(a))for(const s of a)this._rebuildGeometry(s);else this._rebuildGeometry()}updatePartialGeometry({startRow:t,endRow:e}){this._rebuildGeometry({startRow:t,endRow:e})}getGeometryFromBuffer(t){const e=t.value||t;return ArrayBuffer.isView(e)?(0,i.jr)(e,{size:this.positionSize,offset:t.offset,stride:t.stride,startIndices:this.data.startIndices}):null}_allocate(t,e){const{attributes:n,buffers:r,_attributeDefs:i,typedArrayManager:o}=this;for(const s in i)if(s in r)o.release(n[s]),n[s]=null;else{const r=i[s];r.copy=e,n[s]=o.allocate(n[s],t,r)}}_forEachGeometry(t,e,n){const{data:r,getGeometry:o}=this,{iterable:s,objectInfo:a}=(0,i.jB)(r,e,n);for(const i of s){a.index++;t(o?o(i,a):null,a.index)}}_rebuildGeometry(t){if(!this.data)return;let{indexStarts:e,vertexStarts:n,instanceCount:r}=this;const{data:i,geometryBuffer:o}=this,{startRow:s=0,endRow:u=1/0}=t||{},c={};if(t||(e=[0],n=[0]),this.normalize||!o)this._forEachGeometry(((t,e)=>{const r=t&&this.normalizeGeometry(t);c[e]=r,n[e+1]=n[e]+(r?this.getGeometrySize(r):0)}),s,u),r=n[n.length-1];else if(n=i.startIndices,r=n[i.length]||0,ArrayBuffer.isView(o))r=r||o.length/this.positionSize;else if(o instanceof a.Z){const t=o.accessor.stride||4*this.positionSize;r=r||o.byteLength/t}
1else if(o.buffer){const t=o.stride||4*this.positionSize;r=r||o.buffer.byteLength/t}else if(o.value){const t=o.value,e=o.stride/t.BYTES_PER_ELEMENT||this.positionSize;r=r||t.length/e}this._allocate(r,Boolean(t)),this.indexStarts=e,this.vertexStarts=n,this.instanceCount=r;const l={};this._forEachGeometry(((t,i)=>{const o=c[i]||t;l.vertexStart=n[i],l.indexStart=e[i];const s=i<n.length-1?n[i+1]:r;l.geometrySize=s-n[i],l.geometryIndex=i,this.updateGeometryAttributes(o,l)}),s,u),this.vertexCount=e[e.length-1]}}},6610:function(t,e,n){"use strict";var r=n(4942);e.Z=new class{constructor(t={}){(0,r.Z)(this,"_pool",[]),(0,r.Z)(this,"opts",{overAlloc:2,poolSize:100}),this.setOptions(t)}setOptions(t){Object.assign(this.opts,t)}allocate(t,e,{size:n=1,type:r,padding:i=0,copy:o=!1,initialize:s=!1,maxCount:a}){const u=r||t&&t.constructor||Float32Array,c=e*n+i;if(ArrayBuffer.isView(t)){if(c<=t.length)return t;if(c*t.BYTES_PER_ELEMENT<=t.buffer.byteLength)return new u(t.buffer,0,c)}let l=1/0;a&&(l=a*n+i);const h=this._allocate(u,c,s,l);return t&&o?h.set(t):s||h.fill(0,0,4),this._release(t),h}release(t){this._release(t)}_allocate(t,e,n,r){let i=Math.max(Math.ceil(e*this.opts.overAlloc),1);i>r&&(i=r);const o=this._pool,s=t.BYTES_PER_ELEMENT*i,a=o.findIndex((t=>t.byteLength>=s));if(a>=0){const e=new t(o.splice(a,1)[0],0,i);return n&&e.fill(0),e}return new t(i)}_release(t){if(!ArrayBuffer.isView(t))return;const e=this._pool,{buffer:n}
1=t,{byteLength:r}=n,i=e.findIndex((t=>t.byteLength>=r));i<0?e.push(n):(i>0||e.length<this.opts.poolSize)&&e.splice(i,0,n),e.length>this.opts.poolSize&&e.shift()}}},7013:function(t,e,n){"use strict";n.d(e,{Z:function(){return m}});var r=n(4942),i=n(744),o=n(5126),s=n(9572),a=n(4034),u=n(8022),c=n(5975),l=n(8866),h=n(4088);const f=Math.PI/180,d=(0,o.bS)(),p=[0,0,0],g={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]};class m{constructor(t={}){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"x",void 0),(0,r.Z)(this,"y",void 0),(0,r.Z)(this,"width",void 0),(0,r.Z)(this,"height",void 0),(0,r.Z)(this,"isGeospatial",void 0),(0,r.Z)(this,"zoom",void 0),(0,r.Z)(this,"focalDistance",void 0),(0,r.Z)(this,"position",void 0),(0,r.Z)(this,"modelMatrix",void 0),(0,r.Z)(this,"distanceScales",void 0),(0,r.Z)(this,"scale",void 0),(0,r.Z)(this,"center",void 0),(0,r.Z)(this,"cameraPosition",void 0),(0,r.Z)(this,"projectionMatrix",void 0),(0,r.Z)(this,"viewMatrix",void 0),(0,r.Z)(this,"viewMatrixUncentered",void 0),(0,r.Z)(this,"viewMatrixInverse",void 0),(0,r.Z)(this,"viewProjectionMatrix",void 0),(0,r.Z)(this,"pixelProjectionMatrix",void 0),(0,r.Z)(this,"pixelUnprojectionMatrix",void 0),(0,r.Z)(this,"resolution",void 0),(0,r.Z)(this,"_frustumPlanes",{}),this.id=t.id||this.constructor.displayName||"viewport",this.x=t.x||0,this.y=t.y||0,this.width=t.width||1,this.height=t.height||1,this.zoom=t.zoom||0,this.distanceScales=t.distanceScales||g,this.focalDistance=t.focalDistance||1,this.position=t.position||p,this.modelMatrix=t.modelMatrix||null;const{longitude:e,latitude:n}=t;this.isGeospatial=Number.isFinite(n)&&Number.isFinite(e),this._initProps(t),this._initMatrices(t),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}get metersPerPixel(){return this.distanceScales.metersPerUnit[2]/this.scale}get projectionMode(){return this.isGeospatial?this.zoom<12?h.zG.WEB_MERCATOR:h.zG.WEB_MERCATOR_AUTO_OFFSET:h.zG.IDENTITY}equals(t){return t instanceof m&&(this===t||t.width===this.width&&t.height===this.height&&t.scale===this.scale&&(0,a.fS)(t.projectionMatrix,this.projectionMatrix)&&(0,a.fS)(t.viewMatrix,this.viewMatrix))}project(t,{topLeft:e=!0}={}){const n=this.projectPosition(t),r=(0,l.aW)(n,this.pixelProjectionMatrix),[i,o]=r,s=e?o:this.height-o;return 2===t.length?[i,s]:[i,s,r[2]]}unproject(t,{topLeft:e=!0,targetZ:n}={}){const[r,i,o]=t,s=e?i:this.height-i,a=n&&n*this.distanceScales.unitsPerMeter[2],u=(0,l.CT)([r,s,o],this.pixelUnprojectionMatrix,a),[c,h,f]=this.unprojectPosition(u);return Number.isFinite(o)?[c,h,f]:Number.isFinite(n)?[c,h,n]:[c,h]}projectPosition(t){const[e,n]=this.projectFlat(t);return[e,n,(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(t){const[e,n]=this.unprojectFlat(t);return[e,n,(t[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(t){if(this.isGeospatial){const e=(0,l.w5)(t);return e[1]=(0,a.uZ)(e[1],-318,830),e}return t}unprojectFlat(t){return this.isGeospatial?(0,l.es)(t):t}getBounds(t={}){const e={targetZ:t.z||0},n=this.unproject([0,0],e),r=this.unproject([this.width,0],e),i=this.unproject([0,this.height],e),o=this.unproject([this.width,this.height],e);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}getDistanceScales(t){return t?(0,l.ro)({longitude:t[0],latitude:t[1],highPrecision:!0}):this.distanceScales}containsPixel({x:t,y:e,width:n=1,height:r=1}){return t<this.x+this.width&&this.x<t+n&&e<this.y+this.height&&this.y<e+r}getFrustumPlanes(){return this._frustumPlanes.near||Object.assign(this._frustumPlanes,(0,o.Du)(this.viewProjectionMatrix)),this._frustumPlanes}panByPosition(t,e){return null}_initProps(t){const e=t.longitude,n=t.latitude;this.isGeospatial&&(Number.isFinite(t.zoom)||(this.zoom=(0,l.Bf)({latitude:n})+Math.log2(this.focalDistance)),this.distanceScales=t.distanceScales||(0,l.ro)({latitude:n,longitude:e}));const r=Math.pow(2,this.zoom);this.scale=r;const{position:i,modelMatrix:o}=t;let a=p;if(i&&(a=o?new s.Z(o).transformAsVector(i,[]):i),this.isGeospatial){const t=this.projectPosition([e,n,0]);this.center=new u.Z(a).scale(this.distanceScales.unitsPerMeter).add(t)}else this.center=this.projectPosition(a)}_initMatrices(t){const{viewMatrix:e=d,projectionMatrix:n=null,orthographic:r=!1,fovyRadians:l,fovy:h=75,near:p=.1,far:g=1e3,padding:m=null,focalDistance:y=1}=t;this.viewMatrixUncentered=e,this.viewMatrix=(new s.Z).multiplyRight(e).translate(new u.Z(this.center).negate()),this.projectionMatrix=n||function({width:t,height:e,orthographic:n,fovyRadians:r,focalDistance:i,padding:o,near:u,far:c}){const l=t/e,h=n?(new s.Z).orthographic({fovy:r,aspect:l,focalDistance:i,near:u,far:c}):(new s.Z).perspective({fovy:r,aspect:l,near:u,far:c});if(o){const{left:n=0,right:r=0,top:i=0,bottom:s=0}=o,u=(0,a.uZ)((n+t-r)/2,0,t)-t/2,c=(0,a.uZ)((i+e-s)/2,0,e)-e/2;h[8]-=2*u/t,h[9]+=2*c/e}return h}({width:this.width,height:this.height,orthographic:r,fovyRadians:l||h*f,focalDistance:y,padding:m,near:p,far:g});const v=(0,o.bS)();c.Jp(v,v,this.projectionMatrix),c.Jp(v,v,this.viewMatrix),this.viewProjectionMatrix=v,this.viewMatrixInverse=c.U_([],this.viewMatrix)||this.viewMatrix,this.cameraPosition=(0,o.Xt)(this.viewMatrixInverse);const b=(0,o.bS)(),_=(0,o.bS)();c.bA(b,b,[this.width/2,-this.height/2,1]),c.Iu(b,b,[1,-1,0]),c.Jp(_,b,this.viewProjectionMatrix),this.pixelProjectionMatrix=_,this.pixelUnprojectionMatrix=c.U_((0,o.bS)(),this.pixelProjectionMatrix),this.pixelUnprojectionMatrix||i.Z.warn("Pixel project matrix not invertible")()}}(0,r.Z)(m,"displayName","Viewport")},6935:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(4942),i=n(7013),o=n(8866),s=n(1437),a=n(9572);const u=Math.PI/180;function c(t){return 512/4003e4/Math.cos(t*u)}class l extends i.Z{constructor(t={}){const{latitude:e=0,longitude:n=0,zoom:i=0,pitch:s=0,bearing:u=0,nearZMultiplier:c=.1,farZMultiplier:l=1.01,orthographic:h=!1,projectionMatrix:f,repeat:d=!1,worldOffset:p=0,legacyMeterSizes:g=!1}=t;let{width:m,height:y,altitude:v=1.5}=t;const b=Math.pow(2,i);let _;m=m||1,y=y||1;let w=null;f?(v=f[5]/2,_=(0,o.Lu)(v)):(t.fovy?(_=t.fovy,v=(0,o.sj)(_)):_=(0,o.Lu)(v),w=(0,o.wl)({width:m,height:y,pitch:s,fovy:_,nearZMultiplier:c,farZMultiplier:l}));let x=(0,o.lf)({height:y,pitch:s,bearing:u,scale:b,altitude:v});if(p){x=(new a.Z).translate([512*p,0,0]).multiplyLeft(x)}super({...t,width:m,height:y,viewMatrix:x,longitude:n,latitude:e,zoom:i,...w,fovy:_,focalDistance:v}),(0,r.Z)(this,"longitude",void 0),(0,r.Z)(this,"latitude",void 0),(0,r.Z)(this,"pitch",void 0),(0,r.Z)(this,"bearing",void 0),(0,r.Z)(this,"altitude",void 0),(0,r.Z)(this,"fovy",void 0),(0,r.Z)(this,"orthographic",void 0),(0,r.Z)(this,"_subViewports",void 0),(0,r.Z)(this,"_pseudoMeters",void 0),this.latitude=e,this.longitude=n,this.zoom=i,this.pitch=s,this.bearing=u,this.altitude=v,this.fovy=_,this.orthographic=h,this._subViewports=d?[]:null,this._pseudoMeters=g,Object.freeze(this)}get subViewports(){if(this._subViewports&&!this._subViewports.length){const t=this.getBounds(),e=Math.floor((t[0]+180)/360),n=Math.ceil((t[2]-180)/360);for(let r=e;r<=n;r++){const t=r?new l({...this,worldOffset:r}):this;this._subViewports.push(t)}}return this._subViewports}projectPosition(t){if(this._pseudoMeters)return super.projectPosition(t);const[e,n]=this.projectFlat(t);return[e,n,(t[2]||0)*c(t[1])]}unprojectPosition(t){if(this._pseudoMeters)return super.unprojectPosition(t);const[e,n]=this.unprojectFlat(t);return[e,n,(t[2]||0)/c(n)]}addMetersToLngLat(t,e){return(0,o.eG)(t,e)}panByPosition(t,e){const n=(0,o.CT)(e,this.pixelUnprojectionMatrix),r=this.projectFlat(t),i=s.IH([],r,s.tk([],n)),a=s.IH([],this.center,i),[u,c]=this.unprojectFlat(a);return{longitude:u,latitude:c}}getBounds(t={}){const e=(0,o.zX)(this,t.z||0);return[Math.min(e[0][0],e[1][0],e[2][0],e[3][0]),Math.min(e[0][1],e[1][1],e[2][1],e[3][1]),Math.max(e[0][0],e[1][0],e[2][0],e[3][0]),Math.max(e[0][1],e[1][1],e[2][1],e[3][1])]}fitBounds(t,e={}){const{width:n,height:r}=this,{longitude:i,latitude:s,zoom:a}
1=(0,o.Xg)({width:n,height:r,bounds:t,...e});return new l({width:n,height:r,longitude:i,latitude:s,zoom:a})}}(0,r.Z)(l,"displayName","WebMercatorViewport")},188:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(4942),i=n(1990);class o extends i.Z{getShaders(){const t=super.getShaders();return t.inject={"vs:#decl":"uniform float trailLength;\nattribute float instanceTimestamps;\nattribute float instanceNextTimestamps;\nvarying float vTime;\n","vs:#main-end":"vTime = instanceTimestamps + (instanceNextTimestamps - instanceTimestamps) * vPathPosition.y / vPathLength;\n","fs:#decl":"uniform bool fadeTrail;\nuniform float trailLength;\nuniform float currentTime;\nvarying float vTime;\n","fs:#main-start":"if(vTime > currentTime || (fadeTrail && (vTime < currentTime - trailLength))) {\n discard;\n}\n","fs:DECKGL_FILTER_COLOR":"if(fadeTrail) {\n color.a *= 1.0 - (currentTime - vTime) / trailLength;\n}\n"},t}initializeState(){super.initializeState();this.getAttributeManager().addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}draw(t){const{fadeTrail:e,trailLength:n,currentTime:r}=this.props;t.uniforms={...t.uniforms,fadeTrail:e,trailLength:n,currentTime:r},super.draw(t)}}(0,r.Z)(o,"layerName","TripsLayer"),(0,r.Z)(o,"defaultProps",{fadeTrail:!0,trailLength:{type:"number",value:120,min:0},currentTime:{type:"number",value:0,min:0},getTimestamps:{type:"accessor",value:t=>t.timestamps}})},1990:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n(4942),i=n(8551),o=n(3844),s=n(9965),a=n(4088),u=n(5462),c=n(3982),l=n(8005),h=n(9513);class f extends l.Z{constructor(t){super({...t,attributes:{positions:{size:3,padding:18,initialize:!0,type:t.fp64?Float64Array:Float32Array},segmentTypes:{size:1,type:Uint8ClampedArray}}})}get(t){return this.attributes[t]}getGeometryFromBuffer(t){return this.normalize?super.getGeometryFromBuffer(t):null}normalizeGeometry(t){return this.normalize?function(t,e,n,r){let i;if(Array.isArray(t[0])){const n=t.length*e;i=new Array(n);for(let r=0;r<t.length;r++)for(let n=0;n<e;n++)i[r*e+n]=t[r][n]||0}else i=t;return n?(0,h.dj)(i,{size:e,gridResolution:n}):r?(0,h.ct)(i,{size:e}):i}(t,this.positionSize,this.opts.resolution,this.opts.wrapLongitude):t}getGeometrySize(t){if(d(t)){let e=0;for(const n of t)e+=this.getGeometrySize(n);return e}const e=this.getPathLength(t);return e<2?0:this.isClosed(t)?e<3?0:e+2:e}updateGeometryAttributes(t,e){if(0!==e.geometrySize)if(t&&d(t))for(const n of t){const t=this.getGeometrySize(n);e.geometrySize=t,this.updateGeometryAttributes(n,e),e.vertexStart+=t}else this._updateSegmentTypes(t,e),this._updatePositions(t,e)}_updateSegmentTypes(t,e){const n=this.attributes.segmentTypes,r=!!t&&this.isClosed(t),{vertexStart:i,geometrySize:o}=e;n.fill(0,i,i+o),r?(n[i]=4,n[i+o-2]=4):(n[i]+=1,n[i+o-2]+=2),n[i+o-1]=4}_updatePositions(t,e){const{positions:n}=this.attributes;if(!n||!t)return;const{vertexStart:r,geometrySize:i}=e,o=new Array(3);for(let s=r,a=0;a<i;s++,a++)this.getPointOnPath(t,a,o),n[3*s]=o[0],n[3*s+1]=o[1],n[3*s+2]=o[2]}getPathLength(t){return t.length/this.positionSize}getPointOnPath(t,e,n=[]){const{positionSize:r}=this;e*r>=t.length&&(e+=1-t.length/r);const i=e*r;return n[0]=t[i],n[1]=t[i+1],n[2]=3===r&&t[i+2]||0,n}isClosed(t){if(!this.normalize)return Boolean(this.opts.loop);const{positionSize:e}=this,n=t.length-e;return t[0]===t[n]&&t[1]===t[n+1]&&(2===e||t[2]===t[n+2])}}function d(t){return Array.isArray(t[0])}const p=[0,0,0,255],g={widthUnits:"meters",widthScale:{type:"number",min:0,value:1},widthMinPixels:{type:"number",min:0,value:0},widthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},jointRounded:!1,capRounded:!1,miterLimit:{type:"number",min:0,value:4},billboard:!1,_pathType:null,getPath:{type:"accessor",value:t=>t.path},getColor:{type:"accessor",value:p},getWidth:{type:"accessor",value:1},rounded:{deprecatedFor:["jointRounded","capRounded"]}},m={enter:(t,e)=>e.length?e.subarray(e.length-t.length):t};class y extends i.Z{constructor(...t){super(...t),(0,r.Z)(this,"state",void 0)}getShaders(){return super.getShaders({vs:"#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute float instanceTypes;\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftPositions;\nattribute vec3 instanceRightPositions;\nattribute vec3 instanceLeftPositions64Low;\nattribute vec3 instanceStartPositions64Low;\nattribute vec3 instanceEndPositions64Low;\nattribute vec3 instanceRightPositions64Low;\nattribute float instanceStrokeWidths;
1\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\nuniform int widthUnits;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\n\n// calculate line join positions\nvec3 lineJoin(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n // side of the segment - -1: left, 0: center, 1: right\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n\n // tangent of the corner\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n // direction of the corner\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n // direction of the segment\n vec2 dir = isEnd ? dirA : dirB;\n // direction of the extrusion\n vec2 perp = isEnd ? perpA : perpB;\n // length of the segment\n float L = isEnd ? lenA : lenB;\n\n // A = angle of the corner\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n\n // -1: right, 1: left\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n\n // relative position to the corner:\n // -1: inside (smaller side of the angle)\n // 0: center\n // 1: outside (bigger side of the angle)\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n // trim if inside corner extends further than the line segment\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n\n // special treatment for start cap and end cap\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n\n // extend out a triangle to envelope the round cap\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n\n // Generate variables for fragment shader\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return currPoint + offset;\n}\n\n// In clipspace extrusion, if a line extends behind the camera, clip it to avoid visual artifacts\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.pickingColor = instancePickingColors;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(instanceLeftPositions, instanceStartPositions, isEnd);\n vec3 prevPosition64Low = mix(instanceLeftPositions64Low, instanceStartPositions64Low, isEnd);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n vec3 currPosition64Low = mix(instanceStartPositions64Low, instanceEndPositions64Low, isEnd);\n\n vec3 nextPosition = mix(instanceEndPositions, instanceRightPositions, isEnd);\n vec3 nextPosition64Low = mix(instanceEndPositions64Low, instanceRightPositions64Low, isEnd);\n\n geometry.worldPosition = currPosition;\n vec2 widthPixels = vec2(clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n if (billboard) {\n // Extrude in clipspace\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 pos = lineJoin(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n gl_Position = vec4(pos * currPositionScreen.w, currPositionScreen.w);\n } else {\n // Extrude in commonspace\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec4 pos = vec4(\n lineJoin(prevPosition, currPosition, nextPosition, width.xy),\n 1.0);\n geometry.position = pos;\n gl_Position = project_common_position_to_clipspace(pos);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;
1\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\n/*\n * vPathPosition represents the relative coordinates of the current fragment on the path segment.\n * vPathPosition.x - position along the width of the path, between [-1, 1]. 0 is the center line.\n * vPathPosition.y - position along the length of the path, between [0, L / width].\n */\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n // if joint is rounded, test distance from the corner\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n // trim miter\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[o.Z,s.Z]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({positions:{size:3,vertexOffset:1,type:5130,fp64:this.use64bitPositions(),transition:m,accessor:"getPath",update:this.calculatePositions,noAlloc:true,shaderAttributes:{instanceLeftPositions:{vertexOffset:0},instanceStartPositions:{vertexOffset:1},instanceEndPositions:{vertexOffset:2},instanceRightPositions:{vertexOffset:3}}},instanceTypes:{size:1,type:5121,update:this.calculateSegmentTypes,noAlloc:true},instanceStrokeWidths:{size:1,accessor:"getWidth",transition:m,defaultValue:1},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,accessor:"getColor",transition:m,defaultValue:p},instancePickingColors:{size:3,type:5121,accessor:(t,{index:e,target:n})=>this.encodePickingColor(t&&t.__source?t.__source.index:e,n)}}),this.setState({pathTesselator:new f({fp64:this.use64bitPositions()})})}updateState(t){super.updateState(t);const{props:e,changeFlags:n}=t,r=this.getAttributeManager();if(n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPath)){const{pathTesselator:t}=this.state,i=e.data.attributes||{};t.updateGeometry({data:e.data,geometryBuffer:i.getPath,buffers:i,normalize:!e._pathType,loop:"loop"===e._pathType,getGeometry:e.getPath,positionFormat:e.positionFormat,wrapLongitude:e.wrapLongitude,resolution:this.context.viewport.resolution,dataChanged:n.dataChanged}),this.setState({numInstances:t.instanceCount,startIndices:t.vertexStarts}),n.dataChanged||r.invalidateAll()}if(n.extensionsChanged){var i;const{gl:t}=this.context;null===(i=this.state.model)||void 0===i||i.delete(),this.state.model=this._getModel(t),r.invalidateAll()}}getPickingInfo(t){const e=super.getPickingInfo(t),{index:n}=e,{data:r}=this.props;return r[0]&&r[0].__source&&(e.object=r.find((t=>t.__source.index===n))),e}disablePickingIndex(t){const{data:e}=this.props;if(e[0]&&e[0].__source)for(let n=0;n<e.length;n++)e[n].__source.index===t&&this._disablePickingIndex(n);else this._disablePickingIndex(t)}draw({uniforms:t}){const{jointRounded:e,capRounded:n,billboard:r,miterLimit:i,widthUnits:o,widthScale:s,widthMinPixels:u,widthMaxPixels:c}=this.props;this.state.model.setUniforms(t).setUniforms({jointType:Number(e),capType:Number(n),billboard:r,widthUnits:a.iI[o],widthScale:s,miterLimit:i,widthMinPixels:u,widthMaxPixels:c}).draw()}_getModel(t){return new u.Z(t,{...this.getShaders(),id:this.props.id,geometry:new c.Z({drawMode:4,attributes:{indices:new Uint16Array([0,1,2,1,4,2,1,3,4,3,5,4]),positions:{value:new Float32Array([0,0,0,-1,0,1,1,-1,1,1,1,0]),size:2}}}),isInstanced:!0})}calculatePositions(t){const{pathTesselator:e}=this.state;t.startIndices=e.vertexStarts,t.value=e.get("positions")}calculateSegmentTypes(t){const{pathTesselator:e}=this.state;t.startIndices=e.vertexStarts,t.value=e.get("segmentTypes")}}(0,r.Z)(y,"defaultProps",g),(0,r.Z)(y,"layerName","PathLayer")},6343:function(t,e,n){"use strict";n.d(e,{Z:function(){return $}});var r=n(4942),i=n(8551),o=n(3803),s=n(1855);class a extends i.Z{get isComposite(){return!0}get isLoaded(){return super.isLoaded&&this.getSubLayers().every((t=>t.isLoaded))}getSubLayers(){return this.internalState&&this.internalState.subLayers||[]}initializeState(t){}setState(t){super.setState(t),this.setNeedsUpdate()}getPickingInfo({info:t}){const{object:e}=t;return e&&e.__source&&e.__source.parent&&e.__source.parent.id===this.id?(t.object=e.__source.object,t.index=e.__source.index,t):t}filterSubLayer(t){return!0}shouldRenderSubLayer(t,e){return e&&e.length}getSubLayerClass(t,e){const{_subLayerProps:n}=this.props;return n&&n[t]&&n[t].type||e}getSubLayerRow(t,e,n){return t.__source={parent:this,object:e,index:n},t}getSubLayerAccessor(t){if("function"===typeof t){const e={index:-1,data:this.props.data,target:[]};return(n,r)=>n&&n.__source?(e.index=n.__source.index,t(n.__source.object,e)):t(n,r)}return t}getSubLayerProps(t={}){var e;const{opacity:n,pickable:r,visible:i,parameters:o,getPolygonOffset:s,highlightedObjectIndex:a,autoHighlight:u,highlightColor:c,coordinateSystem:l,coordinateOrigin:h,wrapLongitude:f,positionFormat:d,modelMatrix:p,extensions:g,fetch:m,operation:y,_subLayerProps:v}=this.props,b={id:"",updateTriggers:{},opacity:n,pickable:r,visible:i,parameters:o,getPolygonOffset:s,highlightedObjectIndex:a,autoHighlight:u,highlightColor:c,coordinateSystem:l,coordinateOrigin:h,wrapLongitude:f,positionFormat:d,modelMatrix:p,extensions:g,fetch:m,operation:y},_=v&&t.id&&v[t.id],w=_&&_.updateTriggers,x=t.id||"sublayer";if(_){const e=this.constructor._propTypes,n=t.type?t.type._propTypes:{};for(const t in _){const r=n[t]||e[t];r&&"accessor"===r.type&&(_[t]=this.getSubLayerAccessor(_[t]))}}Object.assign(b,t,_),b.id="".concat(this.props.id,"-").concat(x),b.updateTriggers={all:null===(e=this.props.updateTriggers)||void 0===e?void 0:e.all,...t.updateTriggers,...w};for(const E of g){const t=E.getSubLayerProps.call(this,E);t&&Object.assign(b,t,{updateTriggers:Object.assign(b.updateTriggers,t.updateTriggers)})}return b}
1_updateAutoHighlight(t){for(const e of this.getSubLayers())e.updateAutoHighlight(t)}_getAttributeManager(){return null}_postUpdate(t,e){let n=this.internalState.subLayers;const r=!n||this.needsUpdate();if(r){const t=this.renderLayers();n=(0,s.x)(t,Boolean),this.internalState.subLayers=n}(0,o.Z)("compositeLayer.renderLayers",this,r,n);for(const i of n)i.parent=this}}(0,r.Z)(a,"layerName","CompositeLayer");var u=n(744),c=n(3360),l=n(3844),h="#if (defined(SHADER_TYPE_FRAGMENT) && defined(LIGHTING_FRAGMENT)) || (defined(SHADER_TYPE_VERTEX) && defined(LIGHTING_VERTEX))\n\nstruct AmbientLight {\n vec3 color;\n};\n\nstruct PointLight {\n vec3 color;\n vec3 position;\n vec3 attenuation;\n};\n\nstruct DirectionalLight {\n vec3 color;\n vec3 direction;\n};\n\nuniform AmbientLight lighting_uAmbientLight;\nuniform PointLight lighting_uPointLight[MAX_LIGHTS];\nuniform DirectionalLight lighting_uDirectionalLight[MAX_LIGHTS];\nuniform int lighting_uPointLightCount;\nuniform int lighting_uDirectionalLightCount;\n\nuniform bool lighting_uEnabled;\n\nfloat getPointLightAttenuation(PointLight pointLight, float distance) {\n return pointLight.attenuation.x\n + pointLight.attenuation.y * distance\n + pointLight.attenuation.z * distance * distance;\n}\n\n#endif\n";const f={lightSources:{}};function d(){let{color:t=[0,0,0],intensity:e=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.map((t=>t*e/255))}function p(t){let{ambientLight:e,pointLights:n=[],directionalLights:r=[]}=t;const i={};return i["lighting_uAmbientLight.color"]=e?d(e):[0,0,0],n.forEach(((t,e)=>{i["lighting_uPointLight[".concat(e,"].color")]=d(t),i["lighting_uPointLight[".concat(e,"].position")]=t.position,i["lighting_uPointLight[".concat(e,"].attenuation")]=t.attenuation||[1,0,0]})),i.lighting_uPointLightCount=n.length,r.forEach(((t,e)=>{i["lighting_uDirectionalLight[".concat(e,"].color")]=d(t),i["lighting_uDirectionalLight[".concat(e,"].direction")]=t.direction})),i.lighting_uDirectionalLightCount=r.length,i}const g={name:"lights",vs:h,fs:h,getUniforms:function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;if("lightSources"in e){const{ambientLight:t,pointLights:n,directionalLights:r}=e.lightSources||{};return t||n&&n.length>0||r&&r.length>0?Object.assign({},p({ambientLight:t,pointLights:n,directionalLights:r}),{lighting_uEnabled:!0}):{lighting_uEnabled:!1}}if("lights"in e){const n={pointLights:[],directionalLights:[]};for(const t of e.lights||[])switch(t.type){case"ambient":n.ambientLight=t;break;case"directional":n.directionalLights.push(t);break;case"point":n.pointLights.push(t)}return t({lightSources:n})}return{}},defines:{MAX_LIGHTS:3}};var m="\nuniform float lighting_uAmbient;\nuniform float lighting_uDiffuse;\nuniform float lighting_uShininess;\nuniform vec3 lighting_uSpecularColor;\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 light_direction, vec3 view_direction, vec3 normal_worldspace, vec3 color) {\n vec3 halfway_direction = normalize(light_direction + view_direction);\n float lambertian = dot(light_direction, normal_worldspace);\n float specular = 0.0;\n if (lambertian > 0.0) {\n float specular_angle = max(dot(normal_worldspace, halfway_direction), 0.0);\n specular = pow(specular_angle, lighting_uShininess);\n }\n lambertian = max(lambertian, 0.0);\n return (lambertian * lighting_uDiffuse * surfaceColor + specular * lighting_uSpecularColor) * color;\n}\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = surfaceColor;\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n lightColor = lighting_uAmbient * surfaceColor * lighting_uAmbientLight.color;\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS;
1 i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n\nvec3 lighting_getSpecularLightColor(vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = vec3(0, 0, 0);\n vec3 surfaceColor = vec3(0, 0, 0);\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n";const y={};function v(t){const{ambient:e=.35,diffuse:n=.6,shininess:r=32,specularColor:i=[30,30,30]}=t;return{lighting_uAmbient:e,lighting_uDiffuse:n,lighting_uShininess:r,lighting_uSpecularColor:i.map((t=>t/255))}}function b(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;if(!("material"in t))return{};const{material:e}=t;return e?v(e):{lighting_uEnabled:!1}}const _={name:"gouraud-lighting",dependencies:[g],vs:m,defines:{LIGHTING_VERTEX:1},getUniforms:b};var w=n(9965),x=n(4088),E=n(4211),A=n(6948),S=n(5462),P=n(3982),O=n(9187),T=n.n(O),C=n(9513);const M=C.wG.CLOCKWISE,D=C.wG.COUNTER_CLOCKWISE,k={isClosed:!0};function j(t){return"positions"in t?t.positions:t}function F(t){return"holeIndices"in t?t.holeIndices:null}function L(t,e,n,r,i){let o=e;const s=n.length;for(let a=0;a<s;a++)for(let e=0;e<r;e++)t[o++]=n[a][e]||0;if(!function(t){const e=t[0],n=t[t.length-1];return e[0]===n[0]&&e[1]===n[1]&&e[2]===n[2]}(n))for(let a=0;a<r;a++)t[o++]=n[0][a]||0;return k.start=e,k.end=o,k.size=r,(0,C.Ny)(t,i,k),o}function I(t,e,n,r,i=0,o,s){const a=(o=o||n.length)-i;if(a<=0)return e;let u=e;for(let c=0;c<a;c++)t[u++]=n[i+c];if(!function(t,e,n,r){for(let i=0;i<e;i++)if(t[n+i]!==t[r-e+i])return!1;return!0}(n,r,i,o))for(let c=0;c<r;c++)t[u++]=n[i+c];return k.start=e,k.end=u,k.size=r,(0,C.Ny)(t,s,k),u}function R(t,e){!function(t){if(t=t&&t.positions||t,!Array.isArray(t)&&!ArrayBuffer.isView(t))throw new Error("invalid polygon")}(t);const n=[],r=[];if("positions"in t){const{positions:i,holeIndices:o}=t;if(o){let t=0;for(let s=0;s<=o.length;s++)t=I(n,t,i,e,o[s-1],o[s],0===s?M:D),r.push(t);return r.pop(),{positions:n,holeIndices:r}}t=i}if(!function(t){return Array.isArray(t[0])}(t))return I(n,0,t,e,0,n.length,M),n;if(!function(t){return t.length>=1&&t[0].length>=2&&Number.isFinite(t[0][0])}(t)){let i=0;for(const[o,s]of t.entries())i=L(n,i,s,e,0===o?M:D),r.push(i);return r.pop(),{positions:n,holeIndices:r}}return L(n,0,t,e,M),n}var B=n(8005);class N extends B.Z{constructor(t){const{fp64:e,IndexType:n=Uint32Array}=t;super({...t,attributes:{positions:{size:3,type:e?Float64Array:Float32Array},vertexValid:{type:Uint8ClampedArray,size:1},indices:{type:n,size:1}}})}get(t){const{attributes:e}=this;return"indices"===t?e.indices&&e.indices.subarray(0,this.vertexCount):e[t]}updateGeometry(t){super.updateGeometry(t);const e=this.buffers.indices;if(e)this.vertexCount=(e.value||e).length;else if(this.data&&!this.getGeometry)throw new Error("missing indices buffer")}normalizeGeometry(t){if(this.normalize){const e=R(t,this.positionSize);return this.opts.resolution?(0,C.WZ)(j(e),F(e),{size:this.positionSize,gridResolution:this.opts.resolution,edgeTypes:!0}):this.opts.wrapLongitude?(0,C.GU)(j(e),F(e),{size:this.positionSize,maxLatitude:86,edgeTypes:!0}):e}return t}getGeometrySize(t){if(z(t)){let e=0;for(const n of t)e+=this.getGeometrySize(n);return e}return j(t).length/this.positionSize}getGeometryFromBuffer(t){return this.normalize||!this.buffers.indices?super.getGeometryFromBuffer(t):null}updateGeometryAttributes(t,e){if(t&&z(t))for(const n of t){const t=this.getGeometrySize(n);e.geometrySize=t,this.updateGeometryAttributes(n,e),e.vertexStart+=t,e.indexStart=this.indexStarts[e.geometryIndex+1]}else this._updateIndices(t,e),this._updatePositions(t,e),this._updateVertexValid(t,e)}_updateIndices(t,{geometryIndex:e,vertexStart:n,indexStart:r}){const{attributes:i,indexStarts:o,typedArrayManager:s}=this;let a=i.indices;if(!a||!t)return;let u=r;const c=function(t,e,n){let r=F(t);r&&(r=r.map((t=>t/e)));let i=j(t);if(n){const t=i.length;i=i.slice();const r=[];for(let o=0;o<t;o+=e){r[0]=i[o],r[1]=i[o+1];const t=n(r);i[o]=t[0],i[o+1]=t[1]}}return T()(i,r,e)}(t,this.positionSize,this.opts.preproject);a=s.allocate(a,r+c.length,{copy:!0});for(let l=0;l<c.length;l++)a[u++]=c[l]+n;o[e+1]=r+c.length,i.indices=a}_updatePositions(t,{vertexStart:e,geometrySize:n}){const{attributes:{positions:r},positionSize:i}=this;if(!r||!t)return;const o=j(t);for(let s=e,a=0;a<n;s++,a++){const t=o[a*i],e=o[a*i+1],n=i>2?o[a*i+2]:0;r[3*s]=t,r[3*s+1]=e,r[3*s+2]=n}}_updateVertexValid(t,{vertexStart:e,geometrySize:n}){const{positionSize:r}=this,i=this.attributes.vertexValid,o=t&&F(t);if(t&&t.edgeTypes?i.set(t.edgeTypes,e):i.fill(1,e,e+n),o)for(let s=0;s<o.length;s++)i[e+o[s]/r-1]=0;i[e+n-1]=0}}function z(t){return Array.isArray(t)&&t.length>0&&!Number.isFinite(t[0])}var Z="\nattribute vec2 vertexPositions;\nattribute float vertexValid;\n\nuniform bool extruded;\nuniform bool isWireframe;\nuniform float elevationScale;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nstruct PolygonProps {\n vec4 fillColors;\n vec4 lineColors;\n vec3 positions;\n vec3 nextPositions;\n vec3 pickingColors;\n vec3 positions64Low;\n vec3 nextPositions64Low;\n float elevations;\n};\n\nvec3 project_offset_normal(vec3 vector) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n // normals generated by the polygon tesselator are in lnglat offsets instead of meters\n return normalize(vector * project_uCommonUnitsPerWorldUnit);\n }\n return project_normal(vector);\n}\n\nvoid calculatePosition(PolygonProps props) {\n#ifdef IS_SIDE_VERTEX\n if(vertexValid < 0.5){\n gl_Position = vec4(0.);\n return;\n }\n#endif\n\n vec3 pos;\n vec3 pos64Low;\n vec3 normal;\n vec4 colors = isWireframe ? props.lineColors : props.fillColors;\n\n geometry.worldPosition = props.positions;\n geometry.worldPositionAlt = props.nextPositions;\n geometry.pickingColor = props.pickingColors;\n\n#ifdef IS_SIDE_VERTEX\n pos = mix(props.positions, props.nextPositions, vertexPositions.x);\n pos64Low = mix(props.positions64Low, props.nextPositions64Low, vertexPositions.x);\n#else\n pos = props.positions;\n pos64Low = props.positions64Low;\n#endif\n\n if (extruded) {\n pos.z += props.elevations * vertexPositions.y * elevationScale;\n }\n gl_Position = project_position_to_clipspace(pos, pos64Low, vec3(0.), geometry.position);\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n if (extruded) {\n #ifdef IS_SIDE_VERTEX\n normal = vec3(\n props.positions.y - props.nextPositions.y + (props.positions64Low.y - props.nextPositions64Low.y),\n props.nextPositions.x - props.positions.x + (props.nextPositions64Low.x - props.positions64Low.x),\n 0.0);\n normal = project_offset_normal(normal);\n #else\n normal = project_normal(vec3(0.0, 0.0, 1.0));\n #endif\n geometry.normal = normal;\n vec3 lightColor = lighting_getLightColor(colors.rgb, project_uCameraPosition, geometry.position.xyz, normal);\n vColor = vec4(lightColor, colors.a * opacity);\n } else {\n vColor = vec4(colors.rgb, colors.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",U="#define SHADER_NAME solid-polygon-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float elevations;\nattribute vec4 fillColors;\nattribute vec4 lineColors;\nattribute vec3 pickingColors;\n\n".concat(Z,"\n\nvoid main(void) {\n PolygonProps props;\n\n props.positions = positions;\n props.positions64Low = positions64Low;\n props.elevations = elevations;\n props.fillColors = fillColors;\n props.lineColors = lineColors;\n props.pickingColors = pickingColors;\n\n calculatePosition(props);\n}\n"),V="#define SHADER_NAME solid-polygon-layer-vertex-shader-side\n#define IS_SIDE_VERTEX\n\n\nattribute vec3 instancePositions;\nattribute vec3 nextPositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 nextPositions64Low;\nattribute float instanceElevations;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\n".concat(Z,"\n\nvoid main(void) {\n PolygonProps props;\n\n #if RING_WINDING_ORDER_CW == 1\n props.positions = instancePositions;\n props.positions64Low = instancePositions64Low;\n props.nextPositions = nextPositions;\n props.nextPositions64Low = nextPositions64Low;\n #else\n props.positions = nextPositions;\n props.positions64Low = nextPositions64Low;\n props.nextPositions = instancePositions;\n props.nextPositions64Low = instancePositions64Low;\n #endif\n props.elevations = instanceElevations;\n props.fillColors = instanceFillColors;\n props.lineColors = instanceLineColors;\n props.pickingColors = instancePickingColors;\n\n calculatePosition(props);\n}\n");const G=[0,0,0,255],W={filled:!0,extruded:!1,wireframe:!1,_normalize:!0,_windingOrder:"CW",elevationScale:{type:"number",min:0,value:1},getPolygon:{type:"accessor",value:t=>t.polygon},getElevation:{type:"accessor",value:1e3},getFillColor:{type:"accessor",value:G},getLineColor:{type:"accessor",value:G},material:!0},H={enter:(t,e)=>e.length?e.subarray(e.length-t.length):t};class X extends i.Z{constructor(...t){super(...t),(0,r.Z)(this,"state",void 0)}getShaders(t){return super.getShaders({vs:"top"===t?U:V,fs:"#define SHADER_NAME solid-polygon-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",defines:{RING_WINDING_ORDER_CW:this.props._normalize||"CCW"!==this.props._windingOrder?1:0},modules:[l.Z,_,w.Z]})}get wrapLongitude(){return!1}initializeState(){const{gl:t,viewport:e}=this.context;let{coordinateSystem:n}=this.props;e.isGeospatial&&n===x.Df.DEFAULT&&(n=x.Df.LNGLAT),this.setState({numInstances:0,polygonTesselator:new N({preproject:n===x.Df.LNGLAT&&e.projectFlat.bind(e),fp64:this.use64bitPositions(),IndexType:!t||(0,E.ag)(t,A.h.ELEMENT_INDEX_UINT32)?Uint32Array:Uint16Array})});const r=this.getAttributeManager(),i=!0;r.remove(["instancePickingColors"]),r.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:i},positions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:H,accessor:"getPolygon",update:this.calculatePositions,noAlloc:i,shaderAttributes:{positions:{vertexOffset:0,divisor:0},instancePositions:{vertexOffset:0,divisor:1},nextPositions:{vertexOffset:1,divisor:1}}},vertexValid:{size:1,divisor:1,type:5121,update:this.calculateVertexValid,noAlloc:i},elevations:{size:1,transition:H,accessor:"getElevation",shaderAttributes:{elevations:{divisor:0},instanceElevations:{divisor:1}}},fillColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:H,accessor:"getFillColor",defaultValue:G,shaderAttributes:{fillColors:{divisor:0},instanceFillColors:{divisor:1}}},lineColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:H,accessor:"getLineColor",defaultValue:G,shaderAttributes:{lineColors:{divisor:0},instanceLineColors:{divisor:1}}},pickingColors:{size:3,type:5121,accessor:(t,{index:e,target:n})=>this.encodePickingColor(t&&t.__source?t.__source.index:e,n),shaderAttributes:{pickingColors:{divisor:0},instancePickingColors:{divisor:1}}}})}getPickingInfo(t){const e=super.getPickingInfo(t),{index:n}=e,{data:r}=this.props;return r[0]&&r[0].__source&&(e.object=r.find((t=>t.__source.index===n))),e}disablePickingIndex(t){const{data:e}=this.props;if(e[0]&&e[0].__source)for(let n=0;n<e.length;n++)e[n].__source.index===t&&this._disablePickingIndex(n);else this._disablePickingIndex(t)}draw({uniforms:t}){const{extruded:e,filled:n,wireframe:r,elevationScale:i}=this.props,{topModel:o,sideModel:s,polygonTesselator:a}=this.state,u={...t,extruded:Boolean(e),elevationScale:i};s&&(s.setInstanceCount(a.instanceCount-1),s.setUniforms(u),r&&(s.setDrawMode(3),s.setUniforms({isWireframe:!0}).draw()),n&&(s.setDrawMode(6),s.setUniforms({isWireframe:!1}).draw())),o&&(o.setVertexCount(a.vertexCount),o.setUniforms(u).draw())}updateState(t){super.updateState(t),this.updateGeometry(t);const{props:e,oldProps:n,changeFlags:r}=t,i=this.getAttributeManager();var o;(r.extensionsChanged||e.filled!==n.filled||e.extruded!==n.extruded)&&(null===(o=this.state.models)||void 0===o||o.forEach((t=>t.delete())),this.setState(this._getModels(this.context.gl)),i.invalidateAll())}updateGeometry({props:t,oldProps:e,changeFlags:n}){if(n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPolygon)){const{polygonTesselator:e}=this.state,r=t.data.attributes||{};e.updateGeometry({data:t.data,normalize:t._normalize,geometryBuffer:r.getPolygon,buffers:r,getGeometry:t.getPolygon,positionFormat:t.positionFormat,wrapLongitude:t.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:n.dataChanged}),this.setState({numInstances:e.instanceCount,startIndices:e.vertexStarts}),n.dataChanged||this.getAttributeManager().invalidateAll()}}_getModels(t){const{id:e,filled:n,extruded:r}=this.props;let i,o;if(n){const n=this.getShaders("top");n.defines.NON_INSTANCED_MODEL=1,i=new S.Z(t,{...n,id:"".concat(e,"-top"),drawMode:4,attributes:{vertexPositions:new Float32Array([0,1])},uniforms:{isWireframe:!1,isSideVertex:!1},vertexCount:0,isIndexed:!0})}
1return r&&(o=new S.Z(t,{...this.getShaders("side"),id:"".concat(e,"-side"),geometry:new P.Z({drawMode:1,vertexCount:4,attributes:{vertexPositions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),instanceCount:0,isInstanced:1}),o.userData.excludeAttributes={indices:!0}),{models:[o,i].filter(Boolean),topModel:i,sideModel:o}}calculateIndices(t){const{polygonTesselator:e}=this.state;t.startIndices=e.indexStarts,t.value=e.get("indices")}calculatePositions(t){const{polygonTesselator:e}=this.state;t.startIndices=e.vertexStarts,t.value=e.get("positions")}calculateVertexValid(t){t.value=this.state.polygonTesselator.get("vertexValid")}}(0,r.Z)(X,"defaultProps",W),(0,r.Z)(X,"layerName","SolidPolygonLayer");var q=n(1990);const Y=[0,0,0,255],K={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,_normalize:!0,_windingOrder:"CW",lineWidthUnits:"meters",lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:Number.MAX_SAFE_INTEGER,lineJointRounded:!1,lineMiterLimit:4,getPolygon:{type:"accessor",value:t=>t.polygon},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:Y},getLineWidth:{type:"accessor",value:1},getElevation:{type:"accessor",value:1e3},material:!0};class $ extends a{initializeState(){this.state={paths:[]},this.props.getLineDashArray&&u.Z.removed("getLineDashArray","PathStyleExtension")()}updateState({changeFlags:t}){const e=t.dataChanged||t.updateTriggersChanged&&(t.updateTriggersChanged.all||t.updateTriggersChanged.getPolygon);if(e&&Array.isArray(t.dataChanged)){const e=this.state.paths.slice(),n=t.dataChanged.map((t=>function({data:t,getIndex:e,dataRange:n,replace:r}){const{startRow:i=0,endRow:o=1/0}=n,s=t.length;let a=s,u=s;for(let h=0;h<s;h++){const n=e(t[h]);if(a>h&&n>=i&&(a=h),n>=o){u=h;break}}let c=a;const l=u-a!==r.length?t.slice(u):void 0;for(let h=0;h<r.length;h++)t[c++]=r[h];if(l){for(let e=0;e<l.length;e++)t[c++]=l[e];t.length=c}return{startRow:a,endRow:a+r.length}}({data:e,getIndex:t=>t.__source.index,dataRange:t,replace:this._getPaths(t)})));this.setState({paths:e,pathsDiff:n})}else e&&this.setState({paths:this._getPaths(),pathsDiff:null})}_getPaths(t={}){const{data:e,getPolygon:n,positionFormat:r,_normalize:i}=this.props,o=[],s="XY"===r?2:3,{startRow:a,endRow:u}=t,{iterable:l,objectInfo:h}=(0,c.jB)(e,a,u);for(const c of l){h.index++;let t=n(c,h);i&&(t=R(t,s));const{holeIndices:e}=t,r=t.positions||t;if(e)for(let n=0;n<=e.length;n++){const t=r.slice(e[n-1]||0,e[n]||r.length);o.push(this.getSubLayerRow({path:t},c,h.index))}else o.push(this.getSubLayerRow({path:r},c,h.index))}return o}renderLayers(){const{data:t,_dataDiff:e,stroked:n,filled:r,extruded:i,wireframe:o,_normalize:s,_windingOrder:a,elevationScale:u,transitions:c,positionFormat:l}=this.props,{lineWidthUnits:h,lineWidthScale:f,lineWidthMinPixels:d,lineWidthMaxPixels:p,lineJointRounded:g,lineMiterLimit:m,lineDashJustified:y}=this.props,{getFillColor:v,getLineColor:b,getLineWidth:_,getLineDashArray:w,getElevation:x,getPolygon:E,updateTriggers:A,material:S}=this.props,{paths:P,pathsDiff:O}=this.state,T=this.getSubLayerClass("fill",X),C=this.getSubLayerClass("stroke",q.Z),M=this.shouldRenderSubLayer("fill",P)&&new T({_dataDiff:e,extruded:i,elevationScale:u,filled:r,wireframe:o,_normalize:s,_windingOrder:a,getElevation:x,getFillColor:v,getLineColor:i&&o?b:Y,material:S,transitions:c},this.getSubLayerProps({id:"fill",updateTriggers:A&&{getPolygon:A.getPolygon,getElevation:A.getElevation,getFillColor:A.getFillColor,lineColors:i&&o,getLineColor:A.getLineColor}}),{data:t,positionFormat:l,getPolygon:E});return[!i&&M,!i&&n&&this.shouldRenderSubLayer("stroke",P)&&new C({_dataDiff:O&&(()=>O),widthUnits:h,widthScale:f,widthMinPixels:d,widthMaxPixels:p,jointRounded:g,miterLimit:m,dashJustified:y,_pathType:"loop",transitions:c&&{getWidth:c.getLineWidth,getColor:c.getLineColor,getPath:c.getPolygon},getColor:this.getSubLayerAccessor(b),getWidth:this.getSubLayerAccessor(_),getDashArray:this.getSubLayerAccessor(w)}
1,this.getSubLayerProps({id:"stroke",updateTriggers:A&&{getWidth:A.getLineWidth,getColor:A.getLineColor,getDashArray:A.getLineDashArray}}),{data:P,positionFormat:l,getPath:t=>t.path}),i&&M]}}(0,r.Z)($,"layerName","PolygonLayer"),(0,r.Z)($,"defaultProps",K)},6258:function(t,e,n){"use strict";n.d(e,{Z:function(){return xn}});var r=n(1720),i=n(4942);let o=1,s=1;class a{constructor(){this.time=0,this.channels=new Map,this.animations=new Map,this.playing=!1,this.lastEngineTime=-1}addChannel(t){const{delay:e=0,duration:n=Number.POSITIVE_INFINITY,rate:r=1,repeat:i=1}=t,s=o++,a={time:0,delay:e,duration:n,rate:r,repeat:i};return this._setChannelTime(a,this.time),this.channels.set(s,a),s}removeChannel(t){this.channels.delete(t);for(const[e,n]of this.animations)n.channel===t&&this.detachAnimation(e)}isFinished(t){const e=this.channels.get(t);return void 0!==e&&this.time>=e.delay+e.duration*e.repeat}getTime(t){if(void 0===t)return this.time;const e=this.channels.get(t);return void 0===e?-1:e.time}setTime(t){this.time=Math.max(0,t);const e=this.channels.values();for(const r of e)this._setChannelTime(r,this.time);const n=this.animations.values();for(const r of n){const{animation:t,channel:e}=r;t.setTime(this.getTime(e))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(t,e){const n=s++;return this.animations.set(n,{animation:t,channel:e}),t.setTime(this.getTime(e)),n}detachAnimation(t){this.animations.delete(t)}update(t){this.playing&&(-1===this.lastEngineTime&&(this.lastEngineTime=t),this.setTime(this.time+(t-this.lastEngineTime)),this.lastEngineTime=t)}_setChannelTime(t,e){const n=e-t.delay;n>=t.duration*t.repeat?t.time=t.duration*t.rate:(t.time=Math.max(0,n)%t.duration,t.time*=t.rate)}}var u=n(5409),c=n(744),l=n(3803),h=n(1855),f=n(9),d=n(2813);class p{constructor(t,e,n){(0,i.Z)(this,"id",void 0),(0,i.Z)(this,"context",void 0),(0,i.Z)(this,"isLoaded",void 0),(0,i.Z)(this,"persistent",void 0),(0,i.Z)(this,"_loadCount",0),(0,i.Z)(this,"_subscribers",new Set),(0,i.Z)(this,"_data",void 0),(0,i.Z)(this,"_loader",void 0),(0,i.Z)(this,"_error",void 0),(0,i.Z)(this,"_content",void 0),this.id=t,this.context=n,this.setData(e)}subscribe(t){this._subscribers.add(t)}unsubscribe(t){this._subscribers.delete(t)}inUse(){return this._subscribers.size>0}delete(){}getData(){return this.isLoaded?this._error?Promise.reject(this._error):this._content:this._loader.then((()=>this.getData()))}setData(t,e){if(t===this._data&&!e)return;this._data=t;const n=++this._loadCount;let r=t;"string"===typeof t&&(r=(0,d.z)(t)),r instanceof Promise?(this.isLoaded=!1,this._loader=r.then((t=>{this._loadCount===n&&(this.isLoaded=!0,this._error=void 0,this._content=t)})).catch((t=>{this._loadCount===n&&(this.isLoaded=!0,this._error=t||!0)}))):(this.isLoaded=!0,this._error=void 0,this._content=t);for(const i of this._subscribers)i.onChange(this.getData())}}class g{constructor({gl:t,protocol:e}){(0,i.Z)(this,"protocol",void 0),(0,i.Z)(this,"_context",void 0),(0,i.Z)(this,"_resources",void 0),(0,i.Z)(this,"_consumers",void 0),(0,i.Z)(this,"_pruneRequest",void 0),this.protocol=e||"resource://",this._context={gl:t,resourceManager:this},this._resources={},this._consumers={},this._pruneRequest=null}contains(t){return!!t.startsWith(this.protocol)||t in this._resources}add({resourceId:t,data:e,forceUpdate:n=!1,persistent:r=!0}){let i=this._resources[t];i?i.setData(e,n):(i=new p(t,e,this._context),this._resources[t]=i),i.persistent=r}remove(t){const e=this._resources[t];e&&(e.delete(),delete this._resources[t])}unsubscribe({consumerId:t}){const e=this._consumers[t];if(e){for(const t in e){const n=e[t],r=this._resources[n.resourceId];r&&r.unsubscribe(n)}delete this._consumers[t],this.prune()}}subscribe({resourceId:t,onChange:e,consumerId:n,requestId:r="default"}){const{_resources:i,protocol:o}=this;t.startsWith(o)&&(i[t=t.replace(o,"")]||this.add({resourceId:t,data:null,persistent:!1}));const s=i[t];if(this._track(n,r,s,e),s)return s.getData()}prune(){this._pruneRequest||(this._pruneRequest=setTimeout((()=>this._prune()),0))}finalize(){for(const t in this._resources)this._resources[t].delete()}_track(t,e,n,r){const i=this._consumers,o=i[t]=i[t]||{},s=o[e]||{},a=s.resourceId&&this._resources[s.resourceId];a&&(a.unsubscribe(s),this.prune()),n&&(o[e]=s,s.onChange=r,s.resourceId=n.id,n.subscribe(s))}_prune(){this._pruneRequest=null;for(const t of Object.keys(this._resources)){const e=this._resources[t];e.persistent||e.inUse()||(e.delete(),delete this._resources[t])}}}var m=n(7013),y=n(3426);const v=[n(2189).Z],b=["vs:DECKGL_FILTER_SIZE(inout vec3 size, VertexGeometry geometry)","vs:DECKGL_FILTER_GL_POSITION(inout vec4 position, VertexGeometry geometry)","vs:DECKGL_FILTER_COLOR(inout vec4 color, VertexGeometry geometry)","fs:DECKGL_FILTER_COLOR(inout vec4 color, FragmentGeometry geometry)"];function _(t){const e=y.Z.getDefaultProgramManager(t);for(const n of v)e.addDefaultModule(n);for(const n of b)e.addShaderHook(n);return e}class w{constructor(t,{deck:e,stats:n,viewport:r,timeline:o}={}){(0,i.Z)(this,"layers",void 0),(0,i.Z)(this,"context",void 0),(0,i.Z)(this,"resourceManager",void 0),(0,i.Z)(this,"_lastRenderedLayers",[]),(0,i.Z)(this,"_needsRedraw",!1),(0,i.Z)(this,"_needsUpdate",!1),(0,i.Z)(this,"_nextLayers",null),(0,i.Z)(this,"_debug",!1),(0,i.Z)(this,"activateViewport",(t=>{(0,l.Z)("layerManager.activateViewport",this,t),t&&(this.context.viewport=t)})),this.layers=[],this.resourceManager=new g({gl:t,protocol:"deck://"}),this.context={mousePosition:null,userData:{},layerManager:this,gl:t,deck:e,programManager:t&&_(t),stats:n||new f.jk({id:"deck.gl"}),viewport:r||new m.Z({id:"DEFAULT-INITIAL-VIEWPORT"}),timeline:o||new a,resourceManager:this.resourceManager,onError:void 0},Object.seal(this)}finalize(){this.resourceManager.finalize();for(const t of this.layers)this._finalizeLayer(t)}needsRedraw(t={clearRedrawFlags:!1}){let e=this._needsRedraw;t.clearRedrawFlags&&(this._needsRedraw=!1);for(const n of this.layers){const r=n.getNeedsRedraw(t);e=e||r}return e}needsUpdate(){return this._nextLayers&&this._nextLayers!==this._lastRenderedLayers?"layers changed":this._needsUpdate}setNeedsRedraw(t){this._needsRedraw=this._needsRedraw||t}setNeedsUpdate(t){this._needsUpdate=this._needsUpdate||t}getLayers({layerIds:t}={}){return t?this.layers.filter((e=>t.find((t=>0===e.id.indexOf(t))))):this.layers}setProps(t){"debug"in t&&(this._debug=t.debug),"userData"in t&&(this.context.userData=t.userData),"layers"in t&&(this._nextLayers=t.layers),"onError"in t&&(this.context.onError=t.onError)}setLayers(t,e){(0,l.Z)("layerManager.setLayers",this,e,t),this._lastRenderedLayers=t;const n=(0,h.x)(t,Boolean);for(const r of n)r.context=this.context;this._updateLayers(this.layers,n)}updateLayers(){const t=this.needsUpdate();t&&(this.setNeedsRedraw("updating layers: ".concat(t)),this.setLayers(this._nextLayers||this._lastRenderedLayers,t)),this._nextLayers=null}_handleError(t,e,n){n.raiseError(e,"".concat(t," of ").concat(n))}_updateLayers(t,e){const n={};for(const o of t)n[o.id]?c.Z.warn("Multiple old layers with same id ".concat(o.id))():n[o.id]=o;const r=[];this._updateSublayersRecursively(e,n,r),this._finalizeOldLayers(n);let i=!1;for(const o of r)if(o.hasUniformTransition()){i="Uniform transition in ".concat(o);break}this._needsUpdate=i,this.layers=r}_updateSublayersRecursively(t,e,n){for(const i of t){i.context=this.context;const t=e[i.id];null===t&&c.Z.warn("Multiple new layers with same id ".concat(i.id))(),e[i.id]=null;let o=null;try{this._debug&&t!==i&&i.validateProps(),t?(this._transferLayerState(t,i),this._updateLayer(i)):this._initializeLayer(i),n.push(i),o=i.isComposite?i.getSubLayers():null}catch(r){this._handleError("matching",r,i)}o&&this._updateSublayersRecursively(o,e,n)}}_finalizeOldLayers(t){for(const e in t){const n=t[e];n&&this._finalizeLayer(n)}}_initializeLayer(t){try{t._initialize(),t.lifecycle=u.dt.INITIALIZED}catch(e){this._handleError("initialization",e,t)}}_transferLayerState(t,e){e._transferState(t),e.lifecycle=u.dt.MATCHED,e!==t&&(t.lifecycle=u.dt.AWAITING_GC)}_updateLayer(t){try{t._update()}catch(e){this._handleError("update",e,t)}}_finalizeLayer(t){this._needsRedraw=this._needsRedraw||"finalized ".concat(t),t.lifecycle=u.dt.AWAITING_FINALIZATION;try{t._finalize(),t.lifecycle=u.dt.FINALIZED}catch(e){this._handleError("finalization",e,t)}}}var x=n(6871);class E{constructor(t){(0,i.Z)(this,"width",void 0),(0,i.Z)(this,"height",void 0),(0,i.Z)(this,"views",void 0),(0,i.Z)(this,"viewState",void 0),(0,i.Z)(this,"controllers",void 0),(0,i.Z)(this,"timeline",void 0),(0,i.Z)(this,"_viewports",void 0),(0,i.Z)(this,"_viewportMap",void 0),(0,i.Z)(this,"_isUpdating",void 0),(0,i.Z)(this,"_needsRedraw",void 0),(0,i.Z)(this,"_needsUpdate",void 0),(0,i.Z)(this,"_eventManager",void 0),(0,i.Z)(this,"_eventCallbacks",void 0),this.views=[],this.width=100,this.height=100,this.viewState={},this.controllers={},this.timeline=t.timeline,this._viewports=[],this._viewportMap={},this._isUpdating=!1,this._needsRedraw="First render",this._needsUpdate="Initialize",this._eventManager=t.eventManager,this._eventCallbacks={onViewStateChange:t.onViewStateChange,onInteractionStateChange:t.onInteractionStateChange},Object.seal(this),this.setProps(t)}finalize(){for(const t in this.controllers){const e=this.controllers[t];e&&e.finalize()}this.controllers={}}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}setNeedsUpdate(t){this._needsUpdate=this._needsUpdate||t,this._needsRedraw=this._needsRedraw||t}updateViewStates(){for(const t in this.controllers){const e=this.controllers[t];e&&e.updateTransition()}}getViewports(t){return t?this._viewports.filter((e=>e.containsPixel(t))):this._viewports}getViews(){const t={};return this.views.forEach((e=>{t[e.id]=e})),t}getView(t){return this.views.find((e=>e.id===t))}getViewState(t){const e="string"===typeof t?this.getView(t):t,n=e&&this.viewState[e.getViewStateId()]||this.viewState;return e?e.filterViewState(n):n}getViewport(t){return this._viewportMap[t]}unproject(t,e){const n=this.getViewports(),r={x:t[0],y:t[1]};for(let i=n.length-1;i>=0;--i){const o=n[i];if(o.containsPixel(r)){const n=t.slice();return n[0]-=o.x,n[1]-=o.y,o.unproject(n,e)}}return null}
vendor: 18,795 bytes, line 1
1setProps(t){t.views&&this._setViews(t.views),t.viewState&&this._setViewState(t.viewState),("width"in t||"height"in t)&&this._setSize(t.width,t.height),this._isUpdating||this._update()}_update(){this._isUpdating=!0,this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._isUpdating=!1}_setSize(t,e){t===this.width&&e===this.height||(this.width=t,this.height=e,this.setNeedsUpdate("Size changed"))}_setViews(t){t=(0,h.x)(t,Boolean);this._diffViews(t,this.views)&&this.setNeedsUpdate("views changed"),this.views=t}_setViewState(t){if(t){!(0,x.v)(t,this.viewState)&&this.setNeedsUpdate("viewState changed"),this.viewState=t}else c.Z.warn("missing `viewState` or `initialViewState`")()}_onViewStateChange(t,e){this._eventCallbacks.onViewStateChange&&this._eventCallbacks.onViewStateChange({...e,viewId:t})}_createController(t,e){return new(0,e.type)({timeline:this.timeline,eventManager:this._eventManager,onViewStateChange:this._onViewStateChange.bind(this,e.id),onStateChange:this._eventCallbacks.onInteractionStateChange,makeViewport:e=>t.makeViewport({viewState:e,width:this.width,height:this.height})})}_updateController(t,e,n,r){const i=t.controller;if(i){const o={...e,...i,id:t.id,x:n.x,y:n.y,width:n.width,height:n.height};return r||(r=this._createController(t,o)),r&&r.setProps(o),r}return null}_rebuildViewports(){const{views:t}=this,e=this.controllers;this._viewports=[],this.controllers={};let n=!1;for(let r=t.length;r--;){const i=t[r],o=this.getViewState(i),s=i.makeViewport({viewState:o,width:this.width,height:this.height});let a=e[i.id];const u=Boolean(i.controller);u&&!a&&(n=!0),!n&&u||!a||(a.finalize(),a=null),this.controllers[i.id]=this._updateController(i,o,s,a),this._viewports.unshift(s)}for(const r in e){const t=e[r];t&&!this.controllers[r]&&t.finalize()}this._buildViewportMap()}_buildViewportMap(){this._viewportMap={},this._viewports.forEach((t=>{t.id&&(this._viewportMap[t.id]=this._viewportMap[t.id]||t)}))}_diffViews(t,e){return t.length!==e.length||t.some(((n,r)=>!t[r].equals(e[r])))}}const A=/([0-9]+\.?[0-9]*)(%|px)/;function S(t){switch(typeof t){case"number":return{position:t,relative:!1};case"string":const e=A.exec(t);if(e&&e.length>=3){const t="%"===e[2],n=parseFloat(e[1]);return{position:t?n/100:n,relative:t}}default:throw new Error("Could not parse position string ".concat(t))}}function P(t,e){return t.relative?Math.round(t.position*e):t.position}var O=n(5304);class T{constructor(t){(0,i.Z)(this,"id",void 0),(0,i.Z)(this,"viewportInstance",void 0),(0,i.Z)(this,"_x",void 0),(0,i.Z)(this,"_y",void 0),(0,i.Z)(this,"_width",void 0),(0,i.Z)(this,"_height",void 0),(0,i.Z)(this,"_padding",void 0),(0,i.Z)(this,"props",void 0);const{id:e,x:n=0,y:r=0,width:o="100%",height:s="100%",padding:a=null,viewportInstance:u}=t||{};(0,O.Z)(!u||u instanceof m.Z),this.viewportInstance=u,this.id=e||this.constructor.displayName||"view",this.props={...t,id:this.id},this._x=S(n),this._y=S(r),this._width=S(o),this._height=S(s),this._padding=a&&{left:S(a.left||0),right:S(a.right||0),top:S(a.top||0),bottom:S(a.bottom||0)},this.equals=this.equals.bind(this),Object.seal(this)}equals(t){return this===t||(this.viewportInstance?!!t.viewportInstance&&this.viewportInstance.equals(t.viewportInstance):this.ViewportType===t.ViewportType&&(0,x.v)(this.props,t.props))}makeViewport({width:t,height:e,viewState:n}){if(this.viewportInstance)return this.viewportInstance;n=this.filterViewState(n);const r=this.getDimensions({width:t,height:e});return new this.ViewportType({...n,...this.props,...r})}getViewStateId(){const{viewState:t}=this.props;return"string"===typeof t?t:(null===t||void 0===t?void 0:t.id)||this.id}filterViewState(t){if(this.props.viewState&&"object"===typeof this.props.viewState){if(!this.props.viewState.id)return this.props.viewState;const e={...t};for(const t in this.props.viewState)"id"!==t&&(e[t]=this.props.viewState[t]);return e}return t}getDimensions({width:t,height:e}){const n={x:P(this._x,t),y:P(this._y,e),width:P(this._width,t),height:P(this._height,e)};return this._padding&&(n.padding={left:P(this._padding.left,t),top:P(this._padding.top,e),right:P(this._padding.right,t),bottom:P(this._padding.bottom,e)}),n}get controller(){const t=this.props.controller;return t?!0===t?{type:this.ControllerType}:"function"===typeof t?{type:t}:{type:this.ControllerType,...t}:null}}var C=n(6935),M=n(4034),D=n(3630);const k=()=>{},j=2,F=3,L=t=>t,I=1;class R{constructor(t){(0,i.Z)(this,"getControllerState",void 0),(0,i.Z)(this,"props",void 0),(0,i.Z)(this,"propsInTransition",void 0),(0,i.Z)(this,"transition",void 0),(0,i.Z)(this,"onViewStateChange",void 0),(0,i.Z)(this,"onStateChange",void 0),(0,i.Z)(this,"_onTransitionUpdate",(t=>{const{time:e,settings:{interpolator:n,startProps:r,endProps:i,duration:o,easing:s}}=t,a=s(e/o),u=n.interpolateProps(r,i,a);this.propsInTransition=this.getControllerState({...this.props,...u}).getViewportProps(),this.onViewStateChange({viewState:this.propsInTransition,oldViewState:this.props})})),this.getControllerState=t.getControllerState,this.propsInTransition=null,this.transition=new D.Z(t.timeline),this.onViewStateChange=t.onViewStateChange||k,this.onStateChange=t.onStateChange||k}finalize(){this.transition.cancel()}getViewportInTransition(){return this.propsInTransition}processViewStateChange(t){let e=!1;const n=this.props;if(this.props=t,!n||this._shouldIgnoreViewportChange(n,t))return!1;if(this._isTransitionEnabled(t)){let r=n;if(this.transition.inProgress){const{interruption:t,endProps:e}=this.transition.settings;r={...n,...t===j?e:this.propsInTransition||n}}this._triggerTransition(r,t),e=!0}else this.transition.cancel();return e}updateTransition(){this.transition.update()}_isTransitionEnabled(t){const{transitionDuration:e,transitionInterpolator:n}=t;return(e>0||"auto"===e)&&Boolean(n)}_isUpdateDueToCurrentTransition(t){return!(!this.transition.inProgress||!this.propsInTransition)&&this.transition.settings.interpolator.arePropsEqual(t,this.propsInTransition)}_shouldIgnoreViewportChange(t,e){return this.transition.inProgress?this.transition.settings.interruption===F||this._isUpdateDueToCurrentTransition(e):!this._isTransitionEnabled(e)||e.transitionInterpolator.arePropsEqual(t,e)}_triggerTransition(t,e){const n=this.getControllerState(t),r=this.getControllerState(e).shortestPathFrom(n),i=e.transitionInterpolator,o=i.getDuration?i.getDuration(t,e):e.transitionDuration;if(0===o)return;const s=i.initializeProps(t,r);this.propsInTransition={};const a={duration:o,easing:e.transitionEasing||L,interpolator:i,interruption:e.transitionInterruption||I,startProps:s.start,endProps:s.end,onStart:e.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(e.onTransitionInterrupt),onEnd:this._onTransitionEnd(e.onTransitionEnd)};this.transition.start(a),this.onStateChange({inTransition:!0}),this.updateTransition()}_onTransitionEnd(t){return e=>{this.propsInTransition=null,this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1}),null===t||void 0===t||t(e)}}}var B=n(6507);const N=["longitude","latitude","zoom","bearing","pitch"],z=["longitude","latitude","zoom"];class Z extends B.Z{constructor(t={}){const e=Array.isArray(t)?t:t.transitionProps,n=Array.isArray(t)?{}:t;n.transitionProps=Array.isArray(e)?{compare:e,required:e}:e||{compare:N,required:z},super(n.transitionProps),(0,i.Z)(this,"opts",void 0),this.opts=n}initializeProps(t,e){const n=super.initializeProps(t,e),{makeViewport:r,around:i}=this.opts;if(r&&i){const o=r(t),s=r(e),a=o.unproject(i);n.start.around=i,Object.assign(n.end,{around:s.project(a),aroundPosition:a,width:e.width,height:e.height})}return n}interpolateProps(t,e,n){const r={};for(const i of this._propsToExtract)r[i]=(0,M.t7)(t[i]||0,e[i]||0,n);if(e.aroundPosition&&this.opts.makeViewport){const i=this.opts.makeViewport({...e,...r});Object.assign(r,i.panByPosition(e.aroundPosition,(0,M.t7)(t.around,e.around,n)))}return r}}const U={transitionDuration:0},V=t=>1-(1-t)*(1-t),G=["wheel"],W=["panstart","panmove","panend"],H=["pinchstart","pinchmove","pinchend"],X=["tripanstart","tripanmove","tripanend"],q=["doubletap"],Y=["keydown"],K={};class ${constructor(t){(0,i.Z)(this,"props",void 0),(0,i.Z)(this,"state",{}),(0,i.Z)(this,"transitionManager",void 0),(0,i.Z)(this,"eventManager",void 0),(0,i.Z)(this,"onViewStateChange",void 0),(0,i.Z)(this,"onStateChange",void 0),(0,i.Z)(this,"makeViewport",void 0),(0,i.Z)(this,"_controllerState",void 0),(0,i.Z)(this,"_events",{}),(0,i.Z)(this,"_interactionState",{isDragging:!1}),(0,i.Z)(this,"_customEvents",[]),(0,i.Z)(this,"_eventStartBlocked",null),(0,i.Z)(this,"_panMove",!1),(0,i.Z)(this,"invertPan",!1),(0,i.Z)(this,"dragMode","rotate"),(0,i.Z)(this,"inertia",0),(0,i.Z)(this,"scrollZoom",!0),(0,i.Z)(this,"dragPan",!0),(0,i.Z)(this,"dragRotate",!0),(0,i.Z)(this,"doubleClickZoom",!0),(0,i.Z)(this,"touchZoom",!0),(0,i.Z)(this,"touchRotate",!1),(0,i.Z)(this,"keyboard",!0),this.transitionManager=new R({...t,getControllerState:t=>new this.ControllerState(t),onViewStateChange:this._onTransition.bind(this),onStateChange:this._setInteractionState.bind(this)}),this.handleEvent=this.handleEvent.bind(this),this.eventManager=t.eventManager,this.onViewStateChange=t.onViewStateChange||(()=>{}),this.onStateChange=t.onStateChange||(()=>{}),this.makeViewport=t.makeViewport}set events(t){this.toggleEvents(this._customEvents,!1),this.toggleEvents(t,!0),this._customEvents=t,this.props&&this.setProps(this.props)}finalize(){for(const e in this._events){var t;if(this._events[e])null===(t=this.eventManager)||void 0===t||t.off(e,this.handleEvent)}this.transitionManager.finalize()}handleEvent(t){this._controllerState=void 0;const e=this._eventStartBlocked;switch(t.type){case"panstart":return!e&&this._onPanStart(t);case"panmove":return this._onPan(t);case"panend":return this._onPanEnd(t);case"pinchstart":return!e&&this._onPinchStart(t);case"pinchmove":return this._onPinch(t);case"pinchend":return this._onPinchEnd(t);case"tripanstart":return!e&&this._onTriplePanStart(t);case"tripanmove":return this._onTriplePan(t);case"tripanend":return this._onTriplePanEnd(t);case"doubletap":return this._onDoubleTap(t);case"wheel":return this._onWheel(t);case"keydown":return this._onKeyDown(t);default:return!1}}get controllerState(){return this._controllerState=this._controllerState||new this.ControllerState({makeViewport:this.makeViewport,...this.props,...this.state}),this._controllerState}getCenter(t){const{x:e,y:n}=this.props,{offsetCenter:r}=t;return[r.x-e,r.y-n]}isPointInBounds(t,e){const{width:n,height:r}=this.props;if(e&&e.handled)return!1;const i=t[0]>=0&&t[0]<=n&&t[1]>=0&&t[1]<=r;return i&&e&&e.stopPropagation(),i}isFunctionKeyPressed(t){const{srcEvent:e}=t;return Boolean(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}isDragging(){return this._interactionState.isDragging||!1}blockEvents(t){const e=setTimeout((()=>{this._eventStartBlocked===e&&(this._eventStartBlocked=null)}),t);this._eventStartBlocked=e}setProps(t){t.dragMode&&(this.dragMode=t.dragMode),this.props=t,"transitionInterpolator"in t||(t.transitionInterpolator=this._getTransitionProps().transitionInterpolator),this.transitionManager.processViewStateChange(t);const{inertia:e}=t;this.inertia=Number.isFinite(e)?e:!0===e?300:0;const{scrollZoom:n=!0,dragPan:r=!0,dragRotate:i=!0,doubleClickZoom:o=!0,touchZoom:s=!0,touchRotate:a=!1,keyboard:u=!0}=t,c=Boolean(this.onViewStateChange);this.toggleEvents(G,c&&n),this.toggleEvents(W,c&&(r||i)),this.toggleEvents(H,c&&(s||a)),this.toggleEvents(X,c&&a),this.toggleEvents(q,c&&o),this.toggleEvents(Y,c&&u),this.scrollZoom=n,this.dragPan=r,this.dragRotate=i,this.doubleClickZoom=o,this.touchZoom=s,this.touchRotate=a,this.keyboard=u}updateTransition(){this.transitionManager.updateTransition()}toggleEvents(t,e){this.eventManager&&t.forEach((t=>{this._events[t]!==e&&(this._events[t]=e,e?this.eventManager.on(t,this.handleEvent):this.eventManager.off(t,this.handleEvent))}))}updateViewport(t,e=null,n={}){const r={...t.getViewportProps(),...e},i=this.controllerState!==t;if(this.state=t.getState(),this._setInteractionState(n),i){const t=this.controllerState&&this.controllerState.getViewportProps();this.onViewStateChange&&this.onViewStateChange({viewState:r,interactionState:this._interactionState,oldViewState:t})}}_onTransition(t){this.onViewStateChange({...t,interactionState:this._interactionState})}_setInteractionState(t){Object.assign(this._interactionState,t),this.onStateChange(this._interactionState)}_onPanStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;let n=this.isFunctionKeyPressed(t)||t.rightButton||!1;(this.invertPan||"pan"===this.dragMode)&&(n=!n);const r=this.controllerState[n?"panStart":"rotateStart"]({pos:e});return this._panMove=n,this.updateViewport(r,U,{isDragging:!0}),!0}_onPan(t){return!!this.isDragging()&&(this._panMove?this._onPanMove(t):this._onPanRotate(t))}_onPanEnd(t){return!!this.isDragging()&&(this._panMove?this._onPanMoveEnd(t):this._onPanRotateEnd(t))}_onPanMove(t){if(!this.dragPan)return!1;const e=this.getCenter(t),n=this.controllerState.pan({pos:e});return this.updateViewport(n,U,{isDragging:!0,isPanning:!0}),!0}_onPanMoveEnd(t){const{inertia:e}=this;if(this.dragPan&&e&&t.velocity){const n=this.getCenter(t),r=[n[0]+t.velocityX*e/2,n[1]+t.velocityY*e/2],i=this.controllerState.pan({pos:r}).panEnd();this.updateViewport(i,{...this._getTransitionProps(),transitionDuration:e,transitionEasing:V},{isDragging:!1,isPanning:!0})}else{const t=this.controllerState.panEnd();this.updateViewport(t,null,{isDragging:!1,isPanning:!1})}return!0}_onPanRotate(t){if(!this.dragRotate)return!1;const e=this.getCenter(t),n=this.controllerState.rotate({pos:e});return this.updateViewport(n,U,{isDragging:!0,isRotating:!0}),!0}_onPanRotateEnd(t){const{inertia:e}=this;if(this.dragRotate&&e&&t.velocity){const n=this.getCenter(t),r=[n[0]+t.velocityX*e/2,n[1]+t.velocityY*e/2],i=this.controllerState.rotate({pos:r}).rotateEnd();this.updateViewport(i,{...this._getTransitionProps(),transitionDuration:e,transitionEasing:V},{isDragging:!1,isRotating:!0})}else{const t=this.controllerState.rotateEnd();this.updateViewport(t,null,{isDragging:!1,isRotating:!1})}return!0}_onWheel(t){if(!this.scrollZoom)return!1;t.srcEvent.preventDefault();const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const{speed:n=.01,smooth:r=!1}=!0===this.scrollZoom?{}:this.scrollZoom,{delta:i}=t;let o=2/(1+Math.exp(-Math.abs(i*n)));i<0&&0!==o&&(o=1/o);const s=this.controllerState.zoom({pos:e,scale:o});return this.updateViewport(s,{...this._getTransitionProps({around:e}),transitionDuration:r?250:1},{isZooming:!0,isPanning:!0}),!0}_onTriplePanStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const n=this.controllerState.rotateStart({pos:e});return this.updateViewport(n,U,{isDragging:!0}),!0}_onTriplePan(t){if(!this.touchRotate)return!1;if(!this.isDragging())return!1;const e=this.getCenter(t);e[0]-=t.deltaX;const n=this.controllerState.rotate({pos:e});return this.updateViewport(n,U,{isDragging:!0,isRotating:!0}),!0}_onTriplePanEnd(t){if(!this.isDragging())return!1;const{inertia:e}=this;if(this.touchRotate&&e&&t.velocityY){const n=this.getCenter(t),r=[n[0],n[1]+=t.velocityY*e/2],i=this.controllerState.rotate({pos:r});this.updateViewport(i,{...this._getTransitionProps(),transitionDuration:e,transitionEasing:V},{isDragging:!1,isRotating:!0}),this.blockEvents(e)}else{const t=this.controllerState.rotateEnd();this.updateViewport(t,null,{isDragging:!1,isRotating:!1})}return!0}_onPinchStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const n=this.controllerState.zoomStart({pos:e}).rotateStart({pos:e});return K._startPinchRotation=t.rotation,K._lastPinchEvent=t,this.updateViewport(n,U,{isDragging:!0}),!0}_onPinch(t){if(!this.touchZoom&&!this.touchRotate)return!1;if(!this.isDragging())return!1;let e=this.controllerState;if(this.touchZoom){const{scale:n}=t,r=this.getCenter(t);e=e.zoom({pos:r,scale:n})}if(this.touchRotate){const{rotation:n}=t;e=e.rotate({deltaAngleX:K._startPinchRotation-n})}return this.updateViewport(e,U,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),K._lastPinchEvent=t,!0}_onPinchEnd(t){if(!this.isDragging())return!1;const{inertia:e}=this,{_lastPinchEvent:n}=K;if(this.touchZoom&&e&&n&&t.scale!==n.scale){const r=this.getCenter(t);let i=this.controllerState.rotateEnd();const o=Math.log2(t.scale),s=(o-Math.log2(n.scale))/(t.deltaTime-n.deltaTime),a=Math.pow(2,o+s*e/2);i=i.zoom({pos:r,scale:a}).zoomEnd(),this.updateViewport(i,{...this._getTransitionProps({around:r}),transitionDuration:e,transitionEasing:V},{isDragging:!1,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:!1}),this.blockEvents(e)}else{const t=this.controllerState.zoomEnd().rotateEnd();this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1})}return K._startPinchRotation=null,K._lastPinchEvent=null,!0}_onDoubleTap(t){if(!this.doubleClickZoom)return!1;const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const n=this.isFunctionKeyPressed(t),r=this.controllerState.zoom({pos:e,scale:n?.5:2});return this.updateViewport(r,this._getTransitionProps({around:e}),{isZooming:!0,isPanning:!0}),this.blockEvents(100),!0}_onKeyDown(t){if(!this.keyboard)return!1;const e=this.isFunctionKeyPressed(t),{zoomSpeed:n,moveSpeed:r,rotateSpeedX:i,rotateSpeedY:o}=!0===this.keyboard?{}:this.keyboard,{controllerState:s}=this;let a;const u={};switch(t.srcEvent.code){case"Minus":a=e?s.zoomOut(n).zoomOut(n):s.zoomOut(n),u.isZooming=!0;break;case"Equal":a=e?s.zoomIn(n).zoomIn(n):s.zoomIn(n),u.isZooming=!0;break;case"ArrowLeft":e?(a=s.rotateLeft(i),u.isRotating=!0):(a=s.moveLeft(r),u.isPanning=!0);break;case"ArrowRight":e?(a=s.rotateRight(i),u.isRotating=!0):(a=s.moveRight(r),u.isPanning=!0);break;case"ArrowUp":e?(a=s.rotateUp(o),u.isRotating=!0):(a=s.moveUp(r),u.isPanning=!0);break;case"ArrowDown":e?(a=s.rotateDown(o),u.isRotating=!0):(a=s.moveDown(r),u.isPanning=!0);break;default:return!1}return this.updateViewport(a,this._getTransitionProps(),u),!0}_getTransitionProps(t){const{transition:e}=this;return e&&e.transitionInterpolator?t?{...e,transitionInterpolator:new Z({...t,...e.transitionInterpolator.opts,makeViewport:this.controllerState.makeViewport})}:e:U}}class J{constructor(t,e){(0,i.Z)(this,"_viewportProps",void 0),(0,i.Z)(this,"_state",void 0),this._viewportProps=this.applyConstraints(t),this._state=e}getViewportProps(){return this._viewportProps}getState(){return this._state}}var Q=n(8866);class tt extends J{constructor(t){const{width:e,height:n,latitude:r,longitude:o,zoom:s,bearing:a=0,pitch:u=0,altitude:c=1.5,position:l=[0,0,0],maxZoom:h=20,minZ
1oom:f=0,maxPitch:d=60,minPitch:p=0,startPanLngLat:g,startZoomLngLat:m,startRotatePos:y,startBearing:v,startPitch:b,startZoom:_,normalize:w=!0}=t;(0,O.Z)(Number.isFinite(o)),(0,O.Z)(Number.isFinite(r)),(0,O.Z)(Number.isFinite(s)),super({width:e,height:n,latitude:r,longitude:o,zoom:s,bearing:a,pitch:u,altitude:c,maxZoom:h,minZoom:f,maxPitch:d,minPitch:p,normalize:w,position:l},{startPanLngLat:g,startZoomLngLat:m,startRotatePos:y,startBearing:v,startPitch:b,startZoom:_}),(0,i.Z)(this,"makeViewport",void 0),this.makeViewport=t.makeViewport}panStart({pos:t}){return this._getUpdatedState({startPanLngLat:this._unproject(t)})}pan({pos:t,startPos:e}){const n=this.getState().startPanLngLat||this._unproject(e);if(!n)return this;const r=this.makeViewport(this.getViewportProps()).panByPosition(n,t);return this._getUpdatedState(r)}panEnd(){return this._getUpdatedState({startPanLngLat:null})}rotateStart({pos:t}){return this._getUpdatedState({startRotatePos:t,startBearing:this.getViewportProps().bearing,startPitch:this.getViewportProps().pitch})}rotate({pos:t,deltaAngleX:e=0,deltaAngleY:n=0}){const{startRotatePos:r,startBearing:i,startPitch:o}=this.getState();if(!r||void 0===i||void 0===o)return this;let s;return s=t?this._getNewRotation(t,r,o,i):{bearing:i+e,pitch:o+n},this._getUpdatedState(s)}rotateEnd(){return this._getUpdatedState({startBearing:null,startPitch:null})}zoomStart({pos:t}){return this._getUpdatedState({startZoomLngLat:this._unproject(t),startZoom:this.getViewportProps().zoom})}zoom({pos:t,startPos:e,scale:n}){let{startZoom:r,startZoomLngLat:i}=this.getState();if(i||(r=this.getViewportProps().zoom,i=this._unproject(e)||this._unproject(t)),!i)return this;const{maxZoom:o,minZoom:s}=this.getViewportProps();let a=r+Math.log2(n);a=(0,M.uZ)(a,s,o);const u=this.makeViewport({...this.getViewportProps(),zoom:a});return this._getUpdatedState({zoom:a,...u.panByPosition(i,t)})}zoomEnd(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}zoomIn(t=2){return this._zoomFromCenter(t)}zoomOut(t=2){return this._zoomFromCenter(1/t)}moveLeft(t=100){return this._panFromCenter([t,0])}moveRight(t=100){return this._panFromCenter([-t,0])}moveUp(t=100){return this._panFromCenter([0,t])}moveDown(t=100){return this._panFromCenter([0,-t])}rotateLeft(t=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing-t})}rotateRight(t=15){return this._getUpdatedState({bearing:this.getViewportProps().bearing+t})}rotateUp(t=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch+t})}rotateDown(t=10){return this._getUpdatedState({pitch:this.getViewportProps().pitch-t})}shortestPathFrom(t){const e=t.getViewportProps(),n={...this.getViewportProps()},{bearing:r,longitude:i}=n;return Math.abs(r-e.bearing)>180&&(n.bearing=r<0?r+360:r-360),Math.abs(i-e.longitude)>180&&(n.longitude=i<0?i+360:i-360),n}applyConstraints(t){const{maxZoom:e,minZoom:n,zoom:r}=t;t.zoom=(0,M.uZ)(r,n,e);const{maxPitch:i,minPitch:o,pitch:s}=t;t.pitch=(0,M.uZ)(s,o,i);const{normalize:a=!0}=t;return a&&Object.assign(t,(0,Q.QA)(t)),t}_zoomFromCenter(t){const{width:e,height:n}=this.getViewportProps();return this.zoom({pos:[e/2,n/2],scale:t})}_panFromCenter(t){const{width:e,height:n}=this.getViewportProps();return this.pan({startPos:[e/2,n/2],pos:[e/2+t[0],n/2+t[1]]})}_getUpdatedState(t){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...t})}_unproject(t){const e=this.makeViewport(this.getViewportProps());return t&&e.unproject(t)}_getNewRotation(t,e,n,r){const i=t[0]-e[0],o=t[1]-e[1],s=t[1],a=e[1],{width:u,height:c}=this.getViewportProps(),l=i/u;let h=0;o>0?Math.abs(c-a)>5&&(h=o/(a-c)*1.2):o<0&&a>5&&(h=1-s/a),h=(0,M.uZ)(h,-1,1);const{minPitch:f,maxPitch:d}=this.getViewportProps();let p=n;return h>0?p=n+h*(d-n):h<0&&(p=n-h*(f-n)),{pitch:p,bearing:r+180*l}}}class et extends ${constructor(...t){super(...t),(0,i.Z)(this,"ControllerState",tt),(0,i.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new Z({transitionProps:{compare:["longitude","latitude","zoom","bearing","pitch","position"],required:["longitude","latitude","zoom"]}})}),(0,i.Z)(this,"dragMode","pan")}setProps(t){t.position=t.position||[0,0,0];const e=this.props;super.setProps(t);(!e||e.height!==t.height)&&this.updateViewport(new this.ControllerState({makeViewport:this.makeViewport,...t,...this.state}))}}class nt extends T{get ViewportType(){return C.Z}get ControllerType(){return et}}(0,i.Z)(nt,"displayName","MapView");var rt=n(2464),it=n(1621),ot=n(3849),st=n(1418),at=n(4088),ut=n(5442);class ct extends ut.Z{constructor(t,e){super(t,e),(0,i.Z)(this,"maskMap",void 0),(0,i.Z)(this,"fbo",void 0);const{mapSize:n=2048}=e;this.maskMap=new it.Z(t,{width:n,height:n,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.fbo=new ot.Z(t,{id:"maskmap",width:n,height:n,attachments:{36064:this.maskMap}})}
1render(t){const e=this.gl,n=[!1,!1,!1,!1];return n[t.channel]=!0,(0,st.s8)(e,{clearColor:[255,255,255,255],blend:!0,blendFunc:[0,1],blendEquation:32778,colorMask:n,depthTest:!1},(()=>super.render({...t,target:this.fbo,pass:"mask"})))}shouldDrawLayer(t){return t.props.operation===at.k8.MASK}delete(){this.fbo.delete(),this.maskMap.delete()}}var lt=n(9572),ht=n(1437);const ft=(new lt.Z).lookAt({eye:[0,0,1]});function dt({width:t,height:e,near:n,far:r,padding:i}){let o=-t/2,s=t/2,a=-e/2,u=e/2;if(i){const{left:n=0,right:r=0,top:c=0,bottom:l=0}=i,h=(0,M.uZ)((n+t-r)/2,0,t)-t/2,f=(0,M.uZ)((c+e-l)/2,0,e)-e/2;o-=h,s-=h,a+=f,u+=f}return(new lt.Z).ortho({left:o,right:s,bottom:a,top:u,near:n,far:r})}class pt extends m.Z{constructor(t){const{width:e,height:n,near:r=.1,far:i=1e3,zoom:o=0,target:s=[0,0,0],padding:a=null,flipY:u=!0}=t,c=Array.isArray(o)?o[0]:o,l=Array.isArray(o)?o[1]:o,h=Math.min(c,l),f=Math.pow(2,h);let d;if(c!==l){const t=Math.pow(2,c),e=Math.pow(2,l);d={unitsPerMeter:[t/f,e/f,1],metersPerUnit:[f/t,f/e,1]}}super({...t,longitude:void 0,position:s,viewMatrix:ft.clone().scale([f,f*(u?-1:1),f]),projectionMatrix:dt({width:e||1,height:n||1,padding:a,near:r,far:i}),zoom:h,distanceScales:d})}projectFlat([t,e]){const{unitsPerMeter:n}=this.distanceScales;return[t*n[0],e*n[1]]}unprojectFlat([t,e]){const{metersPerUnit:n}=this.distanceScales;return[t*n[0],e*n[1]]}panByPosition(t,e){const n=(0,Q.CT)(e,this.pixelUnprojectionMatrix),r=this.projectFlat(t),i=ht.IH([],r,ht.tk([],n)),o=ht.IH([],this.center,i);return{target:this.unprojectFlat(o)}}}var gt=n(5126);class mt extends J{constructor(t){const{width:e,height:n,rotationX:r=0,rotationOrbit:o=0,target:s=[0,0,0],zoom:a=0,minRotationX:u=-90,maxRotationX:c=90,minZoom:l=-1/0,maxZoom:h=1/0,startPanPosition:f,startRotatePos:d,startRotationX:p,startRotationOrbit:g,startZoomPosition:m,startZoom:y}=t;super({width:e,height:n,rotationX:r,rotationOrbit:o,target:s,zoom:a,minRotationX:u,maxRotationX:c,minZoom:l,maxZoom:h},{startPanPosition:f,startRotatePos:d,startRotationX:p,startRotationOrbit:g,startZoomPosition:m,startZoom:y}),(0,i.Z)(this,"makeViewport",void 0),this.makeViewport=t.makeViewport}panStart({pos:t}){return this._getUpdatedState({startPanPosition:this._unproject(t)})}pan({pos:t,startPosition:e}){const n=this.getState().startPanPosition||e;if(!n)return this;const r=this.makeViewport(this.getViewportProps()).panByPosition(n,t);return this._getUpdatedState(r)}panEnd(){return this._getUpdatedState({startPanPosition:null})}rotateStart({pos:t}){return this._getUpdatedState({startRotatePos:t,startRotationX:this.getViewportProps().rotationX,startRotationOrbit:this.getViewportProps().rotationOrbit})}rotate({pos:t,deltaAngleX:e=0,deltaAngleY:n=0}){const{startRotatePos:r,startRotationX:i,startRotationOrbit:o}=this.getState(),{width:s,height:a}=this.getViewportProps();if(!r||void 0===i||void 0===o)return this;let u;if(t){let e=(t[0]-r[0])/s;const n=(t[1]-r[1])/a;(i<-90||i>90)&&(e*=-1),u={rotationX:i+180*n,rotationOrbit:o+180*e}}else u={rotationX:i+n,rotationOrbit:o+e};return this._getUpdatedState(u)}rotateEnd(){return this._getUpdatedState({startRotationX:null,startRotationOrbit:null})}shortestPathFrom(t){const e=t.getViewportProps(),n={...this.getViewportProps()},{rotationOrbit:r}=n;return Math.abs(r-e.rotationOrbit)>180&&(n.rotationOrbit=r<0?r+360:r-360),n}zoomStart({pos:t}){return this._getUpdatedState({startZoomPosition:this._unproject(t),startZoom:this.getViewportProps().zoom})}zoom({pos:t,startPos:e,scale:n}){let{startZoom:r,startZoomPosition:i}=this.getState();if(i||(r=this.getViewportProps().zoom,i=this._unproject(e)||this._unproject(t)),!i)return this;const o=this._calculateNewZoom({scale:n,startZoom:r}),s=this.makeViewport({...this.getViewportProps(),zoom:o});return this._getUpdatedState({zoom:o,...s.panByPosition(i,t)})}zoomEnd(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}zoomIn(t=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:t})})}zoomOut(t=2){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:1/t})})}moveLeft(t=50){return this._panFromCenter([-t,0])}moveRight(t=50){return this._panFromCenter([t,0])}moveUp(t=50){return this._panFromCenter([0,-t])}moveDown(t=50){return this._panFromCenter([0,t])}
1rotateLeft(t=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit-t})}rotateRight(t=15){return this._getUpdatedState({rotationOrbit:this.getViewportProps().rotationOrbit+t})}rotateUp(t=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX-t})}rotateDown(t=10){return this._getUpdatedState({rotationX:this.getViewportProps().rotationX+t})}_unproject(t){const e=this.makeViewport(this.getViewportProps());return t&&e.unproject(t)}_calculateNewZoom({scale:t,startZoom:e}){const{maxZoom:n,minZoom:r}=this.getViewportProps();void 0===e&&(e=this.getViewportProps().zoom);const i=e+Math.log2(t);return(0,M.uZ)(i,r,n)}_panFromCenter(t){const{width:e,height:n,target:r}=this.getViewportProps();return this.pan({startPosition:r,pos:[e/2+t[0],n/2+t[1]]})}_getUpdatedState(t){return new this.constructor({makeViewport:this.makeViewport,...this.getViewportProps(),...this.getState(),...t})}applyConstraints(t){const{maxZoom:e,minZoom:n,zoom:r,maxRotationX:i,minRotationX:o,rotationOrbit:s}=t;return t.zoom=Array.isArray(r)?[(0,M.uZ)(r[0],n,e),(0,M.uZ)(r[1],n,e)]:(0,M.uZ)(r,n,e),t.rotationX=(0,M.uZ)(t.rotationX,o,i),(s<-180||s>180)&&(t.rotationOrbit=(0,gt.wQ)(s+180,360)-180),t}}class yt extends mt{constructor(t){super(t),(0,i.Z)(this,"zoomAxis",void 0),this.zoomAxis=t.zoomAxis||"all"}_calculateNewZoom({scale:t,startZoom:e}){const{maxZoom:n,minZoom:r}=this.getViewportProps();void 0===e&&(e=this.getViewportProps().zoom);let i=Math.log2(t);if(Array.isArray(e)){let[t,o]=e;switch(this.zoomAxis){case"X":t=(0,M.uZ)(t+i,r,n);break;case"Y":o=(0,M.uZ)(o+i,r,n);break;default:let e=Math.min(t+i,o+i);e<r&&(i+=r-e),e=Math.max(t+i,o+i),e>n&&(i+=n-e),t+=i,o+=i}return[t,o]}return(0,M.uZ)(e+i,r,n)}}class vt extends ${constructor(...t){super(...t),(0,i.Z)(this,"ControllerState",yt),(0,i.Z)(this,"transition",{transitionDuration:300,transitionInterpolator:new Z(["target","zoom"])}),(0,i.Z)(this,"dragMode","pan")}_onPanRotate(){return!1}}class bt extends T{get ViewportType(){return pt}get ControllerType(){return vt}}(0,i.Z)(bt,"displayName","OrthographicView");class _t{constructor(){(0,i.Z)(this,"id","mask-effect"),(0,i.Z)(this,"props",null),(0,i.Z)(this,"useInPicking",!0),(0,i.Z)(this,"dummyMaskMap",void 0),(0,i.Z)(this,"channels",[]),(0,i.Z)(this,"masks",null),(0,i.Z)(this,"maskPass",void 0),(0,i.Z)(this,"maskMap",void 0),(0,i.Z)(this,"lastViewport",void 0)}preRender(t,{layers:e,layerFilter:n,viewports:r,onViewportActive:i,views:o}){this.dummyMaskMap||(this.dummyMaskMap=new it.Z(t,{width:1,height:1}));const s=e.filter((t=>t.props.visible&&t.props.operation===at.k8.MASK));if(0===s.length)return this.masks=null,void(this.channels.length=0);this.masks={},this.maskPass||(this.maskPass=new ct(t,{id:"default-mask"}),this.maskMap=this.maskPass.maskMap);const a=this._sortMaskChannels(s),u=r[0],c=!this.lastViewport||!this.lastViewport.equals(u);for(const l in a)this._renderChannel(a[l],{layerFilter:n,onViewportActive:i,views:o,viewport:u,viewportChanged:c})}_renderChannel(t,{layerFilter:e,onViewportActive:n,views:r,viewport:i,viewportChanged:o}){const s=this.channels[t.index];if(!s)return;const a=t===s||s.layers.length!==t.layers.length||t.layerBounds.some(((t,e)=>t!==s.layerBounds[e]));if(t.bounds=s.bounds,t.maskBounds=s.maskBounds,this.channels[t.index]=t,(a||o)&&(this.lastViewport=i,t.bounds=function({layers:t,viewport:e}){let n=null;for(const o of t){const t=o.getBounds();t&&(n?(n[0]=Math.min(n[0],t[0][0]),n[1]=Math.min(n[1],t[0][1]),n[2]=Math.max(n[2],t[1][0]),n[3]=Math.max(n[3],t[1][1])):n=[t[0][0],t[0][1],t[1][0],t[1][1]])}const r=e.getBounds();if(!n)return r;const i=function(t){const e={x:t[2]-t[0],y:t[3]-t[1]},n={x:t[0]+.5*e.x,y:t[1]+.5*e.y};return[n.x-e.x,n.y-e.y,n.x+e.x,n.y+e.y]}(r);return n[2]-n[0]<i[2]-i[0]||n[3]-n[1]<i[3]-i[1]||(n[0]=Math.max(n[0],i[0]),n[1]=Math.max(n[1],i[1]),n[2]=Math.min(n[2],i[2]),n[3]=Math.min(n[3],i[3])),n}({layers:t.layers,viewport:i}),a||!(0,M.fS)(t.bounds,s.bounds))){const{maskPass:o,maskMap:s}=this,a=function({bounds:t,viewport:e,width:n,height:r}){if(t[2]<=t[0]||t[3]<=t[1])return null;if(n-=2,r-=2,e instanceof C.Z){const{longitude:e,latitude:i,zoom:o}
1=(0,Q.Xg)({width:n,height:r,bounds:[[t[0],t[1]],[t[2],t[3]]],maxZoom:20});return new C.Z({longitude:e,latitude:i,zoom:o,x:1,y:1,width:n,height:r})}const i=[(t[0]+t[2])/2,(t[1]+t[3])/2,0],o=Math.min(20,n/(t[2]-t[0]),r/(t[3]-t[1]));return new bt({x:1,y:1}).makeViewport({width:n,height:r,viewState:{target:i,zoom:Math.log2(o)}})}({bounds:t.bounds,viewport:i,width:s.width,height:s.height});t.maskBounds=a?a.getBounds():[0,0,1,1],o.render({pass:"mask",channel:t.index,layers:t.layers,layerFilter:e,viewports:a?[a]:[],onViewportActive:n,views:r,moduleParameters:{devicePixelRatio:1}})}this.masks[t.id]={index:t.index,bounds:t.maskBounds,coordinateOrigin:t.coordinateOrigin,coordinateSystem:t.coordinateSystem}}_sortMaskChannels(t){const e={};let n=0;for(const r of t){const{id:t}=r.root;let i=e[t];if(!i){if(++n>4){c.Z.warn("Too many mask layers. The max supported is 4")();continue}i={id:t,index:this.channels.findIndex((e=>(null===e||void 0===e?void 0:e.id)===t)),layers:[],layerBounds:[],coordinateOrigin:r.root.props.coordinateOrigin,coordinateSystem:r.root.props.coordinateSystem},e[t]=i}i.layers.push(r),i.layerBounds.push(r.getBounds())}for(let r=0;r<4;r++){const t=this.channels[r];t&&t.id in e||(this.channels[r]=null)}for(const r in e){const t=e[r];t.index<0&&(t.index=this.channels.findIndex((t=>!t)),this.channels[t.index]=t)}return e}getModuleParameters(){return{maskMap:this.masks?this.maskMap:this.dummyMaskMap,maskChannels:this.masks}}cleanup(){this.dummyMaskMap&&(this.dummyMaskMap.delete(),this.dummyMaskMap=void 0),this.maskPass&&(this.maskPass.delete(),this.maskPass=void 0,this.maskMap=void 0),this.lastViewport=void 0,this.masks=null,this.channels.length=0}}const wt=new rt.Z;class xt{constructor(){(0,i.Z)(this,"effects",void 0),(0,i.Z)(this,"_internalEffects",void 0),(0,i.Z)(this,"_needsRedraw",void 0),this.effects=[],this._internalEffects=[],this._needsRedraw="Initial render",this.setEffects()}setProps(t){"effects"in t&&(t.effects.length===this.effects.length&&(0,x.v)(t.effects,this.effects)||(this.setEffects(t.effects),this._needsRedraw="effects changed"))}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}getEffects(){return this._internalEffects}finalize(){this.cleanup()}setEffects(t=[]){this.cleanup(),this.effects=t,this._internalEffects=t.slice(),this._internalEffects.push(new _t),t.some((t=>t instanceof rt.Z))||this._internalEffects.push(wt)}cleanup(){for(const t of this.effects)t.cleanup();for(const t of this._internalEffects)t.cleanup();this.effects.length=0,this._internalEffects.length=0}}class Et extends ut.Z{shouldDrawLayer(t){return t.props.operation===at.k8.DRAW}}const At={blendFunc:[1,0,32771,0],blendEquation:32774};class St extends ut.Z{constructor(...t){super(...t),(0,i.Z)(this,"pickZ",void 0),(0,i.Z)(this,"_colors",null)}render(t){return t.pickingFBO?this._drawPickingBuffer(t):super.render(t)}_drawPickingBuffer({layers:t,layerFilter:e,views:n,viewports:r,onViewportActive:i,pickingFBO:o,deviceRect:{x:s,y:a,width:u,height:c},cullRect:l,effects:h,pass:f="picking",pickZ:d}){const p=this.gl;this.pickZ=d;const g=d?null:{byLayer:new Map,byAlpha:[]};this._colors=g;const m=(0,st.s8)(p,{scissorTest:!0,scissor:[s,a,u,c],clearColor:[0,0,0,0],depthMask:!0,depthTest:!0,depthRange:[0,1],colorMask:[!0,!0,!0,!0],...At,blend:!d},(()=>super.render({target:o,layers:t,layerFilter:e,views:n,viewports:r,onViewportActive:i,cullRect:l,effects:null===h||void 0===h?void 0:h.filter((t=>t.useInPicking)),pass:f})));this._colors=null;return{decodePickingColor:g&&Pt.bind(null,g),stats:m}}shouldDrawLayer(t){return t.props.pickable&&t.props.operation===at.k8.DRAW}getModuleParameters(){return{pickingActive:1,pickingAttribute:this.pickZ,lightSources:{}}}getLayerParameters(t,e,n){const r={...t.props.parameters};return this._colors?(Object.assign(r,At),r.blend=!0,r.blendColor=function(t,e,n){const{byLayer:r,byAlpha:i}=t;let o,s=r.get(e);s?(s.viewports.push(n),o=s.a):(o=r.size+1,o<=255?(s={a:o,layer:e,viewports:[n]},r.set(e,s),i[o]=s):(c.Z.warn("Too many pickable layers, only picking the first 255")(),o=0));return[0,0,0,o/255]}(this._colors,t,n)):r.blend=!1,r}}function Pt(t,e){const n=t.byAlpha[e[3]];return n&&{pickedLayer:n.layer,pickedViewports:n.viewports,pickedObjectIndex:n.layer.decodePickingColor(e)}}class Ot{constructor(t){this.gl=t,this.layerFilter=null,this.drawPickingColors=!1,this.drawLayersPass=new Et(t),this.pickLayersPass=new St(t),this.renderCount=0,this._needsRedraw="Initial render",this.renderBuffers=[],this.lastPostProcessEffect=null}setProps(t){"layerFilter"in t&&this.layerFilter!==t.layerFilter&&(this.layerFilter=t.layerFilter,this._needsRedraw="layerFilter changed"),"drawPickingColors"in t&&this.drawPickingColors!==t.drawPickingColors&&(this.drawPickingColors=t.drawPickingColors,this._needsRedraw="drawPickingColors changed")}renderLayers(t){const e=this.drawPickingColors?this.pickLayersPass:this.drawLayersPass;t.layerFilter=t.layerFilter||this.layerFilter,t.effects=t.effects||[],t.target=t.target||ot.Z.getDefaultFramebuffer(this.gl),this._preRender(t.effects,t);const n=this.lastPostProcessEffect?this.renderBuffers[0]:t.target,r=e.render({...t,target:n});this._postRender(t.effects,t),this.renderCount++,(0,l.Z)("deckRenderer.renderLayers",this,r,t)}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}finalize(){const{renderBuffers:t}=this;for(const e of t)e.delete();t.length=0}_preRender(t,e){let n=null;for(const r of t)r.preRender(this.gl,e),r.postRender&&(n=r);n&&this._resizeRenderBuffers(),this.lastPostProcessEffect=n}_resizeRenderBuffers(){const{renderBuffers:t}=this;0===t.length&&t.push(new ot.Z(this.gl),new ot.Z(this.gl));for(const e of t)e.resize()}_postRender(t,e){const{renderBuffers:n}=this,r={inputBuffer:n[0],swapBuffer:n[1],target:null};for(const i of t)if(i.postRender){if(i===this.lastPostProcessEffect){r.target=e.target,i.postRender(this.gl,r);break}const t=i.postRender(this.gl,r);r.inputBuffer=t,r.swapBuffer=t===n[0]?n[1]:n[0]}}}var Tt=n(9295);const Ct={pickedColor:null,pickedObjectIndex:-1};function Mt({pickedColors:t,decodePickingColor:e,deviceX:n,deviceY:r,deviceRadius:i,deviceRect:o}){const{x:s,y:a,width:u,height:l}=o;let h=i*i,f=-1,d=0;for(let c=0;c<l;c++){const e=c+a-r,i=e*e;if(i>h)d+=4*u;else for(let r=0;r<u;r++){if(t[d+3]-1>=0){const t=r+s-n,e=t*t+i;e<=h&&(h=e,f=d)}d+=4}}if(f>=0){const n=t.slice(f,f+4),r=e(n);if(r){const t=Math.floor(f/4/u),e=f/4-t*u;
1return{...r,pickedColor:n,pickedX:s+e,pickedY:a+t}}c.Z.error("Picked non-existent layer. Is picking buffer corrupt?")()}return Ct}function Dt({pickInfo:t,viewports:e,pixelRatio:n,x:r,y:i,z:o}){let s,a=e[0];if(e.length>1&&(a=function(t,e){for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.containsPixel(e))return r}return t[0]}((null===t||void 0===t?void 0:t.pickedViewports)||e,{x:r,y:i})),a){const t=[r-a.x,i-a.y];void 0!==o&&(t[2]=o),s=a.unproject(t)}return{color:null,layer:null,viewport:a,index:-1,picked:!1,x:r,y:i,pixel:[r,i],coordinate:s,devicePixel:t&&"pickedX"in t?[t.pickedX,t.pickedY]:void 0,pixelRatio:n}}function kt(t){const{pickInfo:e,lastPickedInfo:n,mode:r,layers:i}=t,{pickedColor:o,pickedLayer:s,pickedObjectIndex:a}=e,u=s?[s]:[];if("hover"===r){const t=n.index,e=n.layerId,r=s?s.props.id:null;if(r!==e||a!==t){if(r!==e){const t=i.find((t=>t.props.id===e));t&&u.unshift(t)}n.layerId=r,n.index=a,n.info=null}}const c=Dt(t),l=new Map;return l.set(null,c),u.forEach((t=>{let e={...c};t===s&&(e.color=o,e.index=a,e.picked=!0),e=jt({layer:t,info:e,mode:r});const i=e.layer;t===s&&"hover"===r&&(n.info=e),l.set(i.id,e),"hover"===r&&i.updateAutoHighlight(e)})),l}function jt({layer:t,info:e,mode:n}){for(;t&&e;){const r=e.layer||null;e.sourceLayer=r,e.layer=t,e=t.getPickingInfo({info:e,mode:n,sourceLayer:r}),t=t.parent}return e}class Ft{constructor(t){(0,i.Z)(this,"gl",void 0),(0,i.Z)(this,"pickingFBO",void 0),(0,i.Z)(this,"depthFBO",void 0),(0,i.Z)(this,"pickLayersPass",void 0),(0,i.Z)(this,"layerFilter",void 0),(0,i.Z)(this,"lastPickedInfo",void 0),(0,i.Z)(this,"_pickable",!0),this.gl=t,this.pickLayersPass=new St(t),this.lastPickedInfo={index:-1,layerId:null,info:null}}setProps(t){"layerFilter"in t&&(this.layerFilter=t.layerFilter),"_pickable"in t&&(this._pickable=t._pickable)}finalize(){this.pickingFBO&&this.pickingFBO.delete(),this.depthFBO&&(this.depthFBO.color.delete(),this.depthFBO.delete())}
1pickObject(t){return this._pickClosestObject(t)}pickObjects(t){return this._pickVisibleObjects(t)}getLastPickedObject({x:t,y:e,layers:n,viewports:r},i=this.lastPickedInfo.info){const o=i&&i.layer&&i.layer.id,s=i&&i.viewport&&i.viewport.id,a=o?n.find((t=>t.id===o)):null,u=s&&r.find((t=>t.id===s))||r[0],c=u&&u.unproject([t-u.x,e-u.y]),l={x:t,y:e,viewport:u,coordinate:c,layer:a};return{...i,...l}}_resizeBuffer(){var t,e;const{gl:n}=this;if(!this.pickingFBO&&(this.pickingFBO=new ot.Z(n),ot.Z.isSupported(n,{colorBufferFloat:!0}))){const t=new ot.Z(n);t.attach({36064:new it.Z(n,{format:(0,st.D0)(n)?34836:6408,type:5126})}),this.depthFBO=t}null===(t=this.pickingFBO)||void 0===t||t.resize({width:n.canvas.width,height:n.canvas.height}),null===(e=this.depthFBO)||void 0===e||e.resize({width:n.canvas.width,height:n.canvas.height})}_getPickable(t){if(!1===this._pickable)return null;const e=t.filter((t=>t.isPickable()&&!t.isComposite));return e.length?e:null}_pickClosestObject({layers:t,views:e,viewports:n,x:r,y:i,radius:o=0,depth:s=1,mode:a="query",unproject3D:u,onViewportActive:c,effects:l}){const h=this._getPickable(t),f=(0,st.w)(this.gl);if(!h)return{result:[],emptyInfo:Dt({viewports:n,x:r,y:i,pixelRatio:f})};this._resizeBuffer();const d=(0,st.JY)(this.gl,[r,i],!0),p=[d.x+Math.floor(d.width/2),d.y+Math.floor(d.height/2)],g=Math.round(o*f),{width:m,height:y}=this.pickingFBO,v=this._getPickingRect({deviceX:p[0],deviceY:p[1],deviceRadius:g,deviceWidth:m,deviceHeight:y}),b={x:r-o,y:i-o,width:2*o+1,height:2*o+1};let _;const w=[],x=new Set;for(let E=0;E<s;E++){let t,o;if(v){t=Mt({...this._drawAndSample({layers:h,views:e,viewports:n,onViewportActive:c,deviceRect:v,cullRect:b,effects:l,pass:"picking:".concat(a)}),deviceX:p[0],deviceY:p[1],deviceRadius:g,deviceRect:v})}else t={pickedColor:null,pickedObjectIndex:-1};if(t.pickedLayer&&u&&this.depthFBO){o=this._drawAndSample({layers:[t.pickedLayer],views:e,viewports:n,onViewportActive:c,deviceRect:{x:t.pickedX,y:t.pickedY,width:1,height:1},cullRect:b,effects:l,pass:"picking:".concat(a,":z")},!0).pickedColors[0]}t.pickedLayer&&E+1<s&&(x.add(t.pickedLayer),t.pickedLayer.disablePickingIndex(t.pickedObjectIndex)),_=kt({pickInfo:t,lastPickedInfo:this.lastPickedInfo,mode:a,layers:h,viewports:n,x:r,y:i,z:o,pixelRatio:f});for(const e of _.values())e.layer&&w.push(e);if(!t.pickedColor)break}for(const E of x)E.restorePickingColors();return{result:w,emptyInfo:_.get(null)}}_pickVisibleObjects({layers:t,views:e,viewports:n,x:r,y:i,width:o=1,height:s=1,mode:a="query",maxObjects:u=null,onViewportActive:l,effects:h}){const f=this._getPickable(t);if(!f)return[];this._resizeBuffer();const d=(0,st.w)(this.gl),p=(0,st.JY)(this.gl,[r,i],!0),g=p.x,m=p.y+p.height,y=(0,st.JY)(this.gl,[r+o,i+s],!0),v=y.x+y.width,b=y.y,_={x:g,y:b,width:v-g,height:m-b},w=function({pickedColors:t,decodePickingColor:e}){const n=new Map;if(t)for(let r=0;r<t.length;r+=4)if(t[r+3]-1>=0){const i=t.slice(r,r+4),o=i.join(",");if(!n.has(o)){const t=e(i);t?n.set(o,{...t,color:i}):c.Z.error("Picked non-existent layer. Is picking buffer corrupt?")()}}return Array.from(n.values())}(this._drawAndSample({layers:f,views:e,viewports:n,onViewportActive:l,deviceRect:_,cullRect:{x:r,y:i,width:o,height:s},effects:h,pass:"picking:".concat(a)})),x=new Map,E=Number.isFinite(u);for(let c=0;c<w.length&&!(E&&u&&x.size>=u);c++){const t=w[c];let e={color:t.pickedColor,layer:null,index:t.pickedObjectIndex,picked:!0,x:r,y:i,pixelRatio:d};e=jt({layer:t.pickedLayer,info:e,mode:a}),x.has(e.object)||x.set(e.object,e)}return Array.from(x.values())}_drawAndSample({layers:t,views:e,viewports:n,onViewportActive:r,deviceRect:i,cullRect:o,effects:s,pass:a},u=!1){const c=u?this.depthFBO:this.pickingFBO,{decodePickingColor:l}=this.pickLayersPass.render({layers:t,layerFilter:this.layerFilter,views:e,viewports:n,onViewportActive:r,pickingFBO:c,deviceRect:i,cullRect:o,effects:s,pass:a,pickZ:u}),{x:h,y:f,width:d,height:p}=i,g=new(u?Float32Array:Uint8Array)(d*p*4);return(0,Tt.z6)(c,{sourceX:h,sourceY:f,sourceWidth:d,sourceHeight:p,target:g}),{pickedColors:g,decodePickingColor:l}}_getPickingRect({deviceX:t,deviceY:e,deviceRadius:n,deviceWidth:r,deviceHeight:i}){const o=Math.max(0,t-n),s=Math.max(0,e-n),a=Math.min(r,t+n+1)-o,u=Math.min(i,e+n+1)-s;return a<=0||u<=0?null:{x:o,y:s,width:a,height:u}}}const Lt={zIndex:"1",position:"absolute",pointerEvents:"none",color:"#a0a7b4",backgroundColor:"#29323c",padding:"10px",top:"0",left:"0",display:"none"};class It{constructor(t){(0,i.Z)(this,"el",null),(0,i.Z)(this,"isVisible",!1);const e=t.parentElement;e&&(this.el=document.createElement("div"),this.el.className="deck-tooltip",Object.assign(this.el.style,Lt),e.a
1ppendChild(this.el))}setTooltip(t,e,n){const r=this.el;if(r){if("string"===typeof t)r.innerText=t;else{if(!t)return this.isVisible=!1,void(r.style.display="none");t.text&&(r.innerText=t.text),t.html&&(r.innerHTML=t.html),t.className&&(r.className=t.className),Object.assign(r.style,t.style)}this.isVisible=!0,r.style.display="block",r.style.transform="translate(".concat(e,"px, ").concat(n,"px)")}}remove(){this.el&&(this.el.remove(),this.el=null)}}var Rt=n(6610),Bt=n(6228);var Nt=n(6269),zt=n(4959);const{_parseImageNode:Zt}=globalThis,Ut="undefined"!==typeof Image,Vt="undefined"!==typeof ImageBitmap,Gt=Boolean(Zt),Wt=!!zt.jU||Gt;function Ht(t){const e=qt(t);if(!e)throw new Error("Not an image");return e}function Xt(t){switch(Ht(t)){case"data":return t;case"image":case"imagebitmap":const e=document.createElement("canvas"),n=e.getContext("2d");if(!n)throw new Error("getImageData");return e.width=t.width,e.height=t.height,n.drawImage(t,0,0),n.getImageData(0,0,t.width,t.height);default:throw new Error("getImageData")}}function qt(t){return"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap?"imagebitmap":"undefined"!==typeof Image&&t instanceof Image?"image":t&&"object"===typeof t&&t.data&&t.width&&t.height?"data":null}const Yt=/^data:image\/svg\+xml/,Kt=/\.svg((\?|#).*)?$/;function $t(t){return t&&(Yt.test(t)||Kt.test(t))}function Jt(t,e){if($t(e))throw new Error("SVG cannot be parsed directly to imagebitmap");return new Blob([new Uint8Array(t)])}async function Qt(t,e,n){const r=function(t,e){if($t(e)){let e=(new TextDecoder).decode(t);try{"function"===typeof unescape&&"function"===typeof encodeURIComponent&&(e=unescape(encodeURIComponent(e)))}catch(n){throw new Error(n.message)}return"data:image/svg+xml;base64,".concat(btoa(e))}return Jt(t,e)}(t,n),i=self.URL||self.webkitURL,o="string"!==typeof r&&i.createObjectURL(r);try{return await async function(t,e){const n=new Image;if(n.src=t,e.image&&e.image.decode&&n.decode)return await n.decode(),n;return await new Promise(((e,r)=>{try{n.onload=()=>e(n),n.onerror=e=>r(new Error("Could not load image ".concat(t,": ").concat(e)))}catch(i){r(i)}}))}(o||r,e)}finally{o&&i.revokeObjectURL(o)}}const te={};let ee=!0;async function ne(t,e,n){let r;if($t(n)){r=await Qt(t,e,n)}else r=Jt(t,n);const i=e&&e.imagebitmap;return await async function(t,e=null){!function(t){for(const e in t||te)return!1;return!0}(e)&&ee||(e=null);if(e)try{return await createImageBitmap(t,e)}catch(n){console.warn(n),ee=!1}return await createImageBitmap(t)}(r,i)}const re=!1,ie=!0;function oe(t){const e=se(t);return function(t){const e=se(t);if(!(e.byteLength>=24&&2303741511===e.getUint32(0,re)))return null;return{mimeType:"image/png",width:e.getUint32(16,re),height:e.getUint32(20,re)}}(e)||function(t){const e=se(t);if(!(e.byteLength>=3&&65496===e.getUint16(0,re)&&255===e.getUint8(2)))return null;const{tableMarkers:n,sofMarkers:r}=function(){const t=new Set([65499,65476,65484,65501,65534]);for(let n=65504;n<65520;++n)t.add(n);const e=new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502]);return{tableMarkers:t,sofMarkers:e}}();let i=2;for(;i+9<e.byteLength;){const t=e.getUint16(i,re);if(r.has(t))return{mimeType:"image/jpeg",height:e.getUint16(i+5,re),width:e.getUint16(i+7,re)};if(!n.has(t))return null;i+=2,i+=e.getUint16(i,re)}return null}(e)||function(t){const e=se(t);if(!(e.byteLength>=10&&1195984440===e.getUint32(0,re)))return null;return{mimeType:"image/gif",width:e.getUint16(6,ie),height:e.getUint16(8,ie)}}(e)||function(t){const e=se(t);if(!(e.byteLength>=14&&16973===e.getUint16(0,re)&&e.getUint32(2,ie)===e.byteLength))return null;return{mimeType:"image/bmp",width:e.getUint32(18,ie),height:e.getUint32(22,ie)}}(e)}function se(t){if(t instanceof DataView)return t;if(ArrayBuffer.isView(t))return new DataView(t.buffer);if(t instanceof ArrayBuffer)return new DataView(t);throw new Error("toDataView")}const ae={id:"image",module:"images",name:"Images",version:"3.2.5",mimeTypes:["image/png","image/jpeg","image/gif","image/webp","image/bmp","image/vnd.microsoft.icon","image/svg+xml"],extensions:["png","jpg","jpeg","gif","webp","bmp","ico","svg"],parse:async function(t,e,n){const r=((e=e||{}).image||{}).type||"auto",{url:i}=n||{};let o;switch(function(t){switch(t){case"auto":case"data":return function(){if(Vt)return"imagebitmap";if(Ut)return"image";if(Wt)return"data";throw new Error("Install '@loaders.gl/polyfills' to parse images under Node.js")}();default:return function(t){switch(t){case"auto":return Vt||Ut||Wt;case"imagebitmap":return Vt;case"image":return Ut;case"data":return Wt;default:throw new Error("@loaders.gl/images: image ".concat(t," not supported in this environment"))}}(t),t}}(r)){case"imagebitmap":o=await ne(t,e,i);break;case"image":o=await Qt(t,e,i);break;case"data":o=await async function(t,e){const{mimeType:n}=oe(t)||{},r=globalThis._parseImageNode;return(0,Nt.h)(r),await r(t,n)}(t);break;default:(0,Nt.h)(!1)}return"data"===r&&(o=Xt(o)),o},tests:[t=>Boolean(oe(new DataView(t)))],options:{image:{type:"auto",decode:!0}}};var ue={id:"JSON",name:"JSON",module:"",version:"",options:{},extensions:["json","geojson"],mimeTypes:["application/json","application/geo+json"],testText:function(t){const e=t[0],n=t[t.length-1];return"{"===e&&"}"===n||"["===e&&"]"===n},parseTextSync:JSON.parse};const ce="8.8.4",le=globalThis.deck&&globalThis.deck.VERSION;if(le&&le!==ce)throw new Error("deck.gl - multiple versions detected: ".concat(le," vs ").concat(ce));le||(c.Z.log(1,"deck.gl ".concat(ce))(),globalThis.deck={...globalThis.deck,VERSION:ce,version:ce,log:c.Z,_registerLoggers:l.z},(0,Bt.fh)([ue,[ae,{imagebitmap:{premultiplyAlpha:"none"}}]]));var he=globalThis.deck,fe=n(3485),de=n(9835),pe=n(2525),ge=n(7577),me=n(4211),ye=n(6948);class ve extends ge.Z{get[Symbol.toStringTag](){return"Query"}static isSupported(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,st.D0)(t),r=(0,me.ag)(t,ye.h.TIMER_QUERY);let i=n||r;for(const o of e)switch(o){case"queries":i=i&&n;break;case"timers":i=i&&r;break;default:(0,pe.h)(!1)}return i}constructor(t){super(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.target=null,this._queryPending=!1,this._pollingPromise=null,Object.seal(this)}beginTimeElapsedQuery(){return this.begin(35007)}beginOcclusionQuery(){let{conservative:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.begin(t?36202:35887)}beginTransformFeedbackQuery(){return this.begin(35976)}begin(t){return this._queryPending||(this.target=t,this.gl2.beginQuery(this.target,this.handle)),this}end(){return this._queryPending||this.target&&(this.gl2.endQuery(this.target),this.target=null,this._queryPending=!0),this}isResultAvailable(){if(!this._queryPending)return!1;const t=this.gl2.getQueryParameter(this.handle,34919);return t&&(this._queryPending=!1),t}
1isTimerDisjoint(){return this.gl2.getParameter(36795)}getResult(){return this.gl2.getQueryParameter(this.handle,34918)}getTimerMilliseconds(){return this.getResult()/1e6}createPoll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;if(this._pollingPromise)return this._pollingPromise;let e=0;return this._pollingPromise=new Promise(((n,r)=>{const i=()=>{this.isResultAvailable()?(n(this.getResult()),this._pollingPromise=null):e++>t?(r("Timed out"),this._pollingPromise=null):requestAnimationFrame(i)};requestAnimationFrame(i)})),this._pollingPromise}_createHandle(){return ve.isSupported(this.gl)?this.gl2.createQuery():null}_deleteHandle(){this.gl2.deleteQuery(this.handle)}}const be=(0,n(3370).Z)()&&"undefined"!==typeof document;let _e=0;class we{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onCreateContext:e=(t=>(0,st.s9)(t)),onAddHTML:n=null,onInitialize:r=(()=>{}),onRender:i=(()=>{}),onFinalize:o=(()=>{}),onError:s,gl:a=null,glOptions:u={},debug:c=!1,createFramebuffer:l=!1,autoResizeViewport:h=!0,autoResizeDrawingBuffer:f=!0,stats:d=de.lR.get("animation-loop-".concat(_e++))}=t;let{useDevicePixels:p=!0}=t;"useDevicePixelRatio"in t&&(st.cM.deprecated("useDevicePixelRatio","useDevicePixels")(),p=t.useDevicePixelRatio),this.props={onCreateContext:e,onAddHTML:n,onInitialize:r,onRender:i,onFinalize:o,onError:s,gl:a,glOptions:u,debug:c,createFramebuffer:l},this.gl=a,this.needsRedraw=null,this.timeline=null,this.stats=d,this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.frameRate=this.stats.get("Frame Rate"),this._initialized=!1,this._running=!1,this._animationFrameId=null,this._nextFramePromise=null,this._resolveNextFrame=null,this._cpuStartTime=0,this.setProps({autoResizeViewport:h,autoResizeDrawingBuffer:f,useDevicePixels:p}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._pageLoadPromise=null,this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}delete(){this.stop(),this._setDisplay(null)}setNeedsRedraw(t){return(0,pe.h)("string"===typeof t),this.needsRedraw=this.needsRedraw||t,this}setProps(t){return"autoResizeViewport"in t&&(this.autoResizeViewport=t.autoResizeViewport),"autoResizeDrawingBuffer"in t&&(this.autoResizeDrawingBuffer=t.autoResizeDrawingBuffer),"useDevicePixels"in t&&(this.useDevicePixels=t.useDevicePixels),this}start(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._running)return this;this._running=!0;const e=this._getPageLoadPromise().then((()=>!this._running||this._initialized?null:(this._createWebGLContext(t),this._createFramebuffer(),this._startEventHandling(),this._initializeCallbackData(),this._updateCallbackData(),this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._gpuTimeQuery=ve.isSupported(this.gl,["timers"])?new ve(this.gl):null,this._initialized=!0,this.onInitialize(this.animationProps)))).then((t=>{this._running&&(this._addCallbackData(t||{}),!1!==t&&this._startLoop())}));return this.props.onError&&e.catch(this.props.onError),this}redraw(){return this.isContextLost()||(this._beginTimers(),this._setupFrame(),this._updateCallbackData(),this._renderFrame(this.animationProps),this._clearNeedsRedraw(),this.offScreen&&this.gl.commit&&this.gl.commit(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endTimers()),this}stop(){return this._running&&(this._finalizeCallbackData(),this._cancelAnimationFrame(this._animationFrameId),this._nextFramePromise=null,this._resolveNextFrame=null,this._animationFrameId=null,this._running=!1),this}attachTimeline(t){return this.timeline=t,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise((t=>{this._resolveNextFrame=t}))),this._nextFramePromise}async toDataURL(){return this.setNeedsRedraw("toDataURL"),await this.waitForRender(),this.gl.canvas.toDataURL()}isContextLost(){return this.gl.isContextLost()}onCreateContext(){return this.props.onCreateContext(...arguments)}onInitialize(){return this.props.onInitialize(...arguments)}onRender(){return this.props.onRender(...arguments)}onFinalize(){return this.props.onFinalize(...arguments)}getHTMLControlValue(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=document.getElementById(t);return n?Number(n.value):e}
1setViewParameters(){return st.cM.removed("AnimationLoop.setViewParameters","AnimationLoop.setProps")(),this}_startLoop(){const t=()=>{this._running&&(this.redraw(),this._animationFrameId=this._requestAnimationFrame(t))};this._cancelAnimationFrame(this._animationFrameId),this._animationFrameId=this._requestAnimationFrame(t)}_getPageLoadPromise(){return this._pageLoadPromise||(this._pageLoadPromise=be?new Promise(((t,e)=>{be&&"complete"===document.readyState?t(document):window.addEventListener("load",(()=>{t(document)}))})):Promise.resolve({})),this._pageLoadPromise}_setDisplay(t){this.display&&(this.display.delete(),this.display.animationLoop=null),t&&(t.animationLoop=this),this.display=t}_cancelAnimationFrame(t){return this.display&&this.display.cancelAnimationFrame?this.display.cancelAnimationFrame(t):(e=t,"undefined"!==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame(e):clearTimeout(e));var e}_requestAnimationFrame(t){if(this._running)return this.display&&this.display.requestAnimationFrame?this.display.requestAnimationFrame(t):(e=t,"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,1e3/60));var e}_renderFrame(){this.display?this.display._renderFrame(...arguments):this.onRender(...arguments)}_clearNeedsRedraw(){this.needsRedraw=null}_setupFrame(){this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._resizeFramebuffer()}_initializeCallbackData(){this.animationProps={gl:this.gl,stop:this.stop,canvas:this.gl.canvas,framebuffer:this.framebuffer,useDevicePixels:this.useDevicePixels,needsRedraw:null,startTime:Date.now(),engineTime:0,tick:0,tock:0,time:0,_timeline:this.timeline,_loop:this,_animationLoop:this,_mousePosition:null}}_updateCallbackData(){const{width:t,height:e,aspect:n}=this._getSizeAndAspect();t===this.animationProps.width&&e===this.animationProps.height||this.setNeedsRedraw("drawing buffer resized"),n!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=t,this.animationProps.height=e,this.animationProps.aspect=n,this.animationProps.needsRedraw=this.needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime,this.animationProps._offScreen=this.offScreen}_finalizeCallbackData(){this.onFinalize(this.animationProps)}_addCallbackData(t){"object"===typeof t&&null!==t&&(this.animationProps=Object.assign({},this.animationProps,t))}_createWebGLContext(t){if(this.offScreen=t.canvas&&"undefined"!==typeof OffscreenCanvas&&t.canvas instanceof OffscreenCanvas,t=Object.assign({},t,this.props.glOptions),this.gl=this.props.gl?(0,st.yW)(this.props.gl,t):this.onCreateContext(t),!(0,st.UF)(this.gl))throw new Error("AnimationLoop.onCreateContext - illegal context returned");(0,st.kL)(this.gl),this._createInfoDiv()}_createInfoDiv(){if(this.gl.canvas&&this.props.onAddHTML){const t=document.createElement("div");document.body.appendChild(t),t.style.position="relative";const e=document.createElement("div");e.style.position="absolute",e.style.left="10px",e.style.bottom="10px",e.style.width="300px",e.style.background="white",t.appendChild(this.gl.canvas),t.appendChild(e);const n=this.props.onAddHTML(e);n&&(e.innerHTML=n)}}_getSizeAndAspect(){const t=this.gl.drawingBufferWidth,e=this.gl.drawingBufferHeight;let n=1;const{canvas:r}=this.gl;return r&&r.clientHeight?n=r.clientWidth/r.clientHeight:t>0&&e>0&&(n=t/e),{width:t,height:e,aspect:n}}_resizeViewport(){this.autoResizeViewport&&this.gl.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}_resizeCanvasDrawingBuffer(){this.autoResizeDrawingBuffer&&(0,st.aQ)(this.gl,{useDevicePixels:this.useDevicePixels})}_createFramebuffer(){this.props.createFramebuffer&&(this.framebuffer=new ot.Z(this.gl))}_resizeFramebuffer(){this.framebuffer&&this.framebuffer.resize({width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight})}_beginTimers(){this.frameRate.timeEnd(),this.frameRate.timeStart(),this._gpuTimeQuery&&this._gpuTimeQuery.isResultAvailable()&&!this._gpuTimeQuery.isTimerDisjoint(
vendor: 14,119 bytes, line 1
1)&&this.stats.get("GPU Time").addTime(this._gpuTimeQuery.getTimerMilliseconds()),this._gpuTimeQuery&&this._gpuTimeQuery.beginTimeElapsedQuery(),this.cpuTime.timeStart()}_endTimers(){this.cpuTime.timeEnd(),this._gpuTimeQuery&&this._gpuTimeQuery.end()}_startEventHandling(){const{canvas:t}=this.gl;t&&(t.addEventListener("mousemove",this._onMousemove),t.addEventListener("mouseleave",this._onMouseleave))}_onMousemove(t){this.animationProps._mousePosition=[t.offsetX,t.offsetY]}_onMouseleave(t){this.animationProps._mousePosition=null}}var xe=n(840);const Ee={mousedown:1,mousemove:2,mouseup:4};!function(t){const e=t.prototype.handler;t.prototype.handler=function(t){const n=this.store;t.button>0&&"pointerdown"===t.type&&(function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return!0;return!1}(n,(e=>e.pointerId===t.pointerId))||n.push(t)),e.call(this,t)}}(xe.PointerEventInput),xe.MouseInput.prototype.handler=function(t){let e=Ee[t.type];1&e&&t.button>=0&&(this.pressed=!0),2&e&&0===t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))};const Ae=xe.Manager;var Se=xe;class Pe{constructor(t,e,n){this.element=t,this.callback=e,this.options={enable:!0,...n}}}const Oe=Se?[[Se.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[Se.Rotate,{enable:!1}],[Se.Pinch,{enable:!1}],[Se.Swipe,{enable:!1}],[Se.Pan,{threshold:0,enable:!1}],[Se.Press,{enable:!1}],[Se.Tap,{event:"doubletap",taps:2,enable:!1}],[Se.Tap,{event:"anytap",enable:!1}],[Se.Tap,{enable:!1}]]:null,Te={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},Ce={doubletap:["tap"]},Me={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},De={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel"]},ke={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},je={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},Fe="undefined"!==typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",Le="undefined"!==typeof window?window:n.g;"undefined"!==typeof n.g?n.g:window,"undefined"!==typeof document&&document;let Ie=!1;try{const t={get passive(){return Ie=!0,!0}};Le.addEventListener("test",null,t),Le.removeEventListener("test",null)}catch(En){Ie=!1}const Re=-1!==Fe.indexOf("firefox"),{WHEEL_EVENTS:Be}=De,Ne="wheel",ze=4.000244140625;class Ze extends Pe{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{if(!this.options.enable)return;let e=t.deltaY;Le.WheelEvent&&(Re&&t.deltaMode===Le.WheelEvent.DOM_DELTA_PIXEL&&(e/=Le.devicePixelRatio),t.deltaMode===Le.WheelEvent.DOM_DELTA_LINE&&(e*=40)),0!==e&&e%ze===0&&(e=Math.floor(e/ze)),t.shiftKey&&e&&(e*=.25),this.callback({type:Ne,center:{x:t.clientX,y:t.clientY},delta:-e,srcEvent:t,pointerType:"mouse",target:t.target})},this.events=(this.options.events||[]).concat(Be),this.events.forEach((e=>t.addEventListener(e,this.handleEvent,!!Ie&&{passive:!1})))}destroy(){this.events.forEach((t=>this.element.removeEventListener(t,this.handleEvent)))}enableEventType(t,e){t===Ne&&(this.options.enable=e)}}const{MOUSE_EVENTS:Ue}=De,Ve="pointermove",Ge="pointerover",We="pointerout",He="pointerenter",Xe="pointerleave";class qe extends Pe{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{this.handleOverEvent(t),this.handleOutEvent(t),this.handleEnterEvent(t),this.handleLeaveEvent(t),this.handleMoveEvent(t)},this.pressed=!1;const{enable:r}=this.options;this.enableMoveEvent=r,this.enableLeaveEvent=r,this.enableEnterEvent=r,this.enableOutEvent=r,this.enableOverEvent=r,this.events=(this.options.events||[]).concat(Ue),this.events.forEach((e=>t.addEventListener(e,this.handleEvent)))}destroy(){this.events.forEach((t=>this.element.removeEventListener(t,this.handleEvent)))}enableEventType(t,e){t===Ve&&(this.enableMoveEvent=e),t===Ge&&(this.enableOverEvent=e),t===We&&(this.enableOutEvent=e),t===He&&(this.enableEnterEvent=e),t===Xe&&(this.enableLeaveEvent=e)}handleOverEvent(t){this.enableOverEvent&&"mouseover"===t.type&&this._emit(Ge,t)}handleOutEvent(t){this.enableOutEvent&&"mouseout"===t.type&&this._emit(We,t)}handleEnterEvent(t){this.enableEnterEvent&&"mouseenter"===t.type&&this._emit(He,t)}handleLeaveEvent(t){this.enableLeaveEvent&&"mouseleave"===t.type&&this._emit(Xe,t)}handleMoveEvent(t){if(this.enableMoveEvent)switch(t.type){case"mousedown":t.button>=0&&(this.pressed=!0);break;case"mousemove":0===t.which&&(this.pressed=!1),this.pressed||this._emit(Ve,t);break;case"mouseup":this.pressed=!1}}_emit(t,e){this.callback({type:t,center:{x:e.clientX,y:e.clientY},srcEvent:e,pointerType:"mouse",target:e.target})}}const{KEY_EVENTS:Ye}=De,Ke="keydown",$e="keyup";class Je extends Pe{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{const e=t.target||t.srcElement;"INPUT"===e.tagName&&"text"===e.type||"TEXTAREA"===e.tagName||(this.enableDownEvent&&"keydown"===t.type&&this.callback({type:Ke,srcEvent:t,key:t.key,target:t.target}),this.enableUpEvent&&"keyup"===t.type&&this.callback({type:$e,srcEvent:t,key:t.key,target:t.target}))},this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=(this.options.events||[]).concat(Ye),t.tabIndex=this.options.tabIndex||0,t.style.outline="none",this.events.forEach((e=>t.addEventListener(e,this.handleEvent)))}destroy(){this.events.forEach((t=>this.element.removeEventListener(t,this.handleEvent)))}enableEventType(t,e){t===Ke&&(this.enableDownEvent=e),t===$e&&(this.enableUpEvent=e)}}const Qe="contextmenu";class tn extends Pe{constructor(t,e,n){super(t,e,n),this.handleEvent=t=>{this.options.enable&&this.callback({type:Qe,center:{x:t.clientX,y:t.clientY},srcEvent:t,pointerType:"mouse",target:t.target})},t.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(t,e){t===Qe&&(this.options.enable=e)}}const en={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4};function nn(t){const e=en[t.srcEvent.type];if(!e)return null;const{buttons:n,button:r,which:i}=t.srcEvent;let o=!1,s=!1,a=!1;return 4===e||2===e&&!Number.isFinite(n)?(o=1===i,s=2===i,a=3===i):2===e?(o=Boolean(1&n),s=Boolean(4&n),a=Boolean(2&n)):1===e&&(o=0===r,s=1===r,a=2===r),{leftButton:o,middleButton:s,rightButton:a}}function rn(t,e){const n=t.center;if(!n)return null;const r=e.getBoundingClientRect(),i=r.width/e.offsetWidth||1,o=r.height/e.offsetHeight||1;return{center:n,offsetCenter:{x:(n.x-r.left-e.clientLeft)/i,y:(n.y-r.top-e.clientTop)/o}}}const on={srcElement:"root",priority:0};class sn{constructor(t){this.handleEvent=t=>{if(this.isEmpty())return;const e=this._normalizeEvent(t);let n=t.srcEvent.target;for(;n&&n!==e.rootElement;){if(this._emit(e,n),e.handled)return;n=n.parentNode}this._emit(e,"root")},this.eventManager=t,this.handlers=[],this.handlersByElement=new Map,this._active=!1}isEmpty(){return!this._active}add(t,e,n,r=!1,i=!1){const{handlers:o,handlersByElement:s}=this;let a=on;"string"===typeof n||n&&n.addEventListener?a={...on,srcElement:n}:n&&(a={...on,...n});let u=s.get(a.srcElement);u||(u=[],s.set(a.srcElement,u));const c={type:t,handler:e,srcElement:a.srcElement,priority:a.priority};r&&(c.once=!0),i&&(c.passive=!0),o.push(c),this._active=this._active||!c.passive;let l=u.length-1;for(;l>=0&&!(u[l].priority>=c.priority);)l--;u.splice(l+1,0,c)}remove(t,e){const{handlers:n,handlersByElement:r}=this;for(let i=n.length-1;i>=0;i--){const o=n[i];if(o.type===t&&o.handler===e){n.splice(i,1);const t=r.get(o.srcElement);t.splice(t.indexOf(o),1),0===t.length&&r.delete(o.srcElement)}}this._active=n.some((t=>!t.passive))}_emit(t,e){const n=this.handlersByElement.get(e);if(n){let e=!1;const r=()=>{t.handled=!0},i=()=>{t.handled=!0,e=!0},o=[];for(let s=0;s<n.length;s++){const{type:a,handler:u,once:c}=n[s];if(u({...t,type:a,stopPropagation:r,stopImmediatePropagation:i}),c&&o.push(n[s]),e)break}for(let t=0;t<o.length;t++){const{type:e,handler:n}=o[t];this.remove(e,n)}}}_normalizeEvent(t){const e=this.eventManager.getElement();return{...t,...nn(t),...rn(t,e),preventDefault:()=>{t.srcEvent.preventDefault()},stopImmediatePropagation:null,stopPropagation:null,handled:!1,rootElement:e}}}const an={events:null,recognizers:null,recognizerOptions:{},Manager:Ae,touchAction:"none",tabIndex:0};class un{constructor(t=null,e){this._onBasicInput=t=>{const{srcEvent:e}=t,n=Me[e.type];n&&this.manager.emit(n,t)},this._onOtherEvent=t=>{this.manager.emit(t.type,t)},this.options={...an,...e},this.events=new Map,this.setElement(t);const{events:n}=this.options;n&&this.on(n)}getElement(){return this.element}setElement(t){if(this.element&&this.destroy(),this.element=t,!t)return;const{options:e}=this,n=e.Manager;this.manager=new n(t,{touchAction:e.touchAction,recognizers:e.recognizers||Oe}).on("hammer.input",this._onBasicInput),e.recognizers||Object.keys(Te).forEach((t=>{const e=this.manager.get(t);e&&Te[t].forEach((t=>{e.recognizeWith(t)}))}));for(const r in e.recognizerOptions){const t=this.manager.get(r);if(t){const n=e.recognizerOptions[r];delete n.enable,t.set(n)}}this.wheelInput=new Ze(t,this._onOtherEvent,{enable:!1}),this.moveInput=new qe(t,this._onOtherEvent,{enable:!1}),this.keyInput=new Je(t,this._onOtherEvent,{enable:!1,tabIndex:e.tabIndex}),this.contextmenuInput=new tn(t,this._onOtherEvent,{enable:!1});for(const[r,i]of this.events)i.isEmpty()||(this._toggleRecognizer(i.recognizerName,!0),this.manager.on(r,i.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(t,e,n){this._addEventHandler(t,e,n,!1)}once(t,e,n){this._addEventHandler(t,e,n,!0)}watch(t,e,n){this._addEventHandler(t,e,n,!1,!0)}off(t,e){this._removeEventHandler(t,e)}_toggleRecognizer(t,e){const{manager:n}=this;if(!n)return;const r=n.get(t);if(r&&r.options.enable!==e){r.set({enable:e});const i=Ce[t];i&&!this.options.recognizers&&i.forEach((i=>{const o=n.get(i);e?(o.requireFailure(t),r.dropRequireFailure(i)):o.dropRequireFailure(t)}))}this.wheelInput.enableEventType(t,e),this.moveInput.enableEventType(t,e),this.keyInput.enableEventType(t,e),this.contextmenuInput.enableEventType(t,e)}_addEventHandler(t,e,n,r,i){if("string"!==typeof t){n=e;for(const e in t)this._addEventHandler(e,t[e],n,r,i);return}const{manager:o,events:s}=this,a=je[t]||t;let u=s.get(a);u||(u=new sn(this),s.set(a,u),u.recognizerName=ke[a]||a,o&&o.on(a,u.handleEvent)),u.add(t,e,n,r,i),u.isEmpty()||this._toggleRecognizer(u.recognizerName,!0)}_removeEventHandler(t,e){if("string"!==typeof t){for(const e in t)this._removeEventHandler(e,t[e]);return}const{events:n}=this,r=je[t]||t,i=n.get(r);if(i&&(i.remove(t,e),i.isEmpty())){const{recognizerName:t}=i;let e=!1;for(const r of n.values())if(r.recognizerName===t&&!r.isEmpty()){e=!0;break}e||this._toggleRecognizer(t,!1)}}}function cn(){}const ln={id:"",width:"100%",height:"100%",style:null,viewState:null,initialViewState:null,pickingRadius:0,layerFilter:null,glOptions:{},parameters:{},parent:null,gl:null,canvas:null,layers:[],effects:[],views:null,controller:null,useDevicePixels:!0,touchAction:"none",eventRecognizerOptions:{},_framebuffer:null,_animate:!1,_pickable:!0,_typedArrayManagerProps:{},_customRender:null,onWebGLInitialized:cn,onResize:cn,onViewStateChange:cn,onInteractionStateChange:cn,onBeforeRender:cn,onAfterRender:cn,onLoad:cn,onError:t=>c.Z.error(t.message)(),onHover:null,onClick:null,onDragStart:null,onDrag:null,onDragEnd:null,_onMetrics:null,getCursor:({isDragging:t})=>t?"grabbing":"grab",getTooltip:null,debug:!1,drawPickingColors:!1};class hn{constructor(t){(0,i.Z)(this,"props",void 0),(0,i.Z)(this,"width",0),(0,i.Z)(this,"height",0),(0,i.Z)(this,"userData",{}),(0,i.Z)(this,"canvas",null),(0,i.Z)(this,"viewManager",null),(0,i.Z)(this,"layerManager",null),(0,i.Z)(this,"effectManager",null),(0,i.Z)(this,"deckRenderer",null),(0,i.Z)(this,"deckPicker",null),(0,i.Z)(this,"eventManager",null),(0,i.Z)(this,"tooltip",null),(0,i.Z)(this,"metrics",void 0),(0,i.Z)(this,"animationLoop",void 0),(0,i.Z)(this,"stats",void 0),(0,i.Z)(this,"viewState",void 0),(0,i.Z)(this,"cursorState",void 0),(0,i.Z)(this,"_needsRedraw",void 0),(0,i.Z)(this,"_pickRequest",void 0),(0,i.Z)(this,"_lastPointerDownInfo",null),(0,i.Z)(this,"_metricsCounter",void 0),(0,i.Z)(this,"_onPointerMove",(t=>{const{_pickRequest:e}=this;if("pointerleave"===t.type)e.x=-1,e.y=-1,e.radius=0;else{if(t.leftButton||t.rightButton)return;{const n=t.offsetCenter;if(!n)return;e.x=n.x,e.y=n.y,e.radius=this.props.pickingRadius}}this.layerManager&&(this.layerManager.context.mousePosition={x:e.x,y:e.y}),e.event=t})),(0,i.Z)(this,"_onEvent",(t=>{const e=at.FP[t.type],n=t.offsetCenter;if(!e||!n||!this.layerManager)return;const r=this.layerManager.getLayers(),i=this.deckPicker.getLastPickedObject({x:n.x,y:n.y,layers:r,viewports:this.getViewports(n)},this._lastPointerDownInfo),{layer:o}=i,s=o&&(o[e.handler]||o.props[e.handler]),a=this.props[e.handler];let u=!1;
1s&&(u=s.call(o,i,t)),!u&&a&&a(i,t)})),(0,i.Z)(this,"_onPointerDown",(t=>{const e=t.offsetCenter,n=this._pick("pickObject","pickObject Time",{x:e.x,y:e.y,radius:this.props.pickingRadius});this._lastPointerDownInfo=n.result[0]||n.emptyInfo})),this.props={...ln,...t},t=this.props,this._needsRedraw="Initial render",this._pickRequest={mode:"hover",x:-1,y:-1,radius:0,event:null},this.cursorState={isHovering:!1,isDragging:!1},t.viewState&&t.initialViewState&&c.Z.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")(),"IE"===(0,fe.Z)()&&c.Z.warn("IE 11 is not supported")(),this.viewState=t.initialViewState,t.gl||"undefined"!==typeof document&&(this.canvas=this._createCanvas(t)),this.animationLoop=this._createAnimationLoop(t),this.stats=new f.jk({id:"deck.gl"}),this.metrics={fps:0,setPropsTime:0,updateAttributesTime:0,framesRedrawn:0,pickTime:0,pickCount:0,gpuTime:0,gpuTimePerFrame:0,cpuTime:0,cpuTimePerFrame:0,bufferMemory:0,textureMemory:0,renderbufferMemory:0,gpuMemory:0},this._metricsCounter=0,this.setProps(t),t._typedArrayManagerProps&&Rt.Z.setOptions(t._typedArrayManagerProps),this.animationLoop.start()}finalize(){var t,e,n,r,i,o,s,a;(this.animationLoop.stop(),this.animationLoop=null,this._lastPointerDownInfo=null,null===(t=this.layerManager)||void 0===t||t.finalize(),this.layerManager=null,null===(e=this.viewManager)||void 0===e||e.finalize(),this.viewManager=null,null===(n=this.effectManager)||void 0===n||n.finalize(),this.effectManager=null,null===(r=this.deckRenderer)||void 0===r||r.finalize(),this.deckRenderer=null,null===(i=this.deckPicker)||void 0===i||i.finalize(),this.deckPicker=null,null===(o=this.eventManager)||void 0===o||o.destroy(),this.eventManager=null,null===(s=this.tooltip)||void 0===s||s.remove(),this.tooltip=null,this.props.canvas||this.props.gl||!this.canvas)||(null===(a=this.canvas.parentElement)||void 0===a||a.removeChild(this.canvas),this.canvas=null)}setProps(t){this.stats.get("setProps Time").timeStart(),"onLayerHover"in t&&c.Z.removed("onLayerHover","onHover")(),"onLayerClick"in t&&c.Z.removed("onLayerClick","onClick")(),t.initialViewState&&!(0,x.v)(this.props.initialViewState,t.initialViewState)&&(this.viewState=t.initialViewState),Object.assign(this.props,t),this._setCanvasSize(this.props);const e=Object.create(this.props);Object.assign(e,{views:this._getViews(),width:this.width,height:this.height,viewState:this._getViewState()}),this.animationLoop.setProps(e),this.layerManager&&(this.viewManager.setProps(e),this.layerManager.activateViewport(this.getViewports()[0]),this.layerManager.setProps(e),this.effectManager.setProps(e),this.deckRenderer.setProps(e),this.deckPicker.setProps(e)),this.stats.get("setProps Time").timeEnd()}needsRedraw(t={clearRedrawFlags:!1}){if(!this.layerManager)return!1;if(this.props._animate)return"Deck._animate";let e=this._needsRedraw;t.clearRedrawFlags&&(this._needsRedraw=!1);const n=this.viewManager.needsRedraw(t),r=this.layerManager.needsRedraw(t),i=this.effectManager.needsRedraw(t),o=this.deckRenderer.needsRedraw(t);return e=e||n||r||i||o,e}redraw(t){if(!this.layerManager)return;let e=this.needsRedraw({clearRedrawFlags:!0});e=t||e,e&&(this.stats.get("Redraw Count").incrementCount(),this.props._customRender?this.props._customRender(e):this._drawLayers(e))}get isInitialized(){return null!==this.viewManager}getViews(){return(0,O.Z)(this.viewManager),this.viewManager.views}getViewports(t){return(0,O.Z)(this.viewManager),this.viewManager.getViewports(t)}pickObject(t){const e=this._pick("pickObject","pickObject Time",t).result;return e.length?e[0]:null}pickMultipleObjects(t){return t.depth=t.depth||10,this._pick("pickObject","pickMultipleObjects Time",t).result}pickObjects(t){return this._pick("pickObjects","pickObjects Time",t)}_addResources(t,e=!1){for(const n in t)this.layerManager.resourceManager.add({resourceId:n,data:t[n],forceUpdate:e})}_removeResources(t){for(const e of t)this.layerManager.resourceManager.remove(e)}_pick(t,e,n){(0,O.Z)(this.deckPicker);const{stats:r}=this;r.get("Pick Count").incrementCount(),r.get(e).timeStart();const i=this.deckPicker[t]({layers:this.layerManager.getLayers(n),views:this.viewManager.getViews(),viewports:this.getViewports(n),onViewportActive:this.layerManager.activateViewport,effects:this.effectManager.getEffects(),...n});return r.get(e).timeEnd(),i}_createCanvas(t){let e=t.canvas;if("string"===typeof e&&(e=document.getElementById(e),(0,O.Z)(e)),!e){e=document.createElement("canvas"),e.id=t.
1id||"deckgl-overlay";(t.parent||document.body).appendChild(e)}return Object.assign(e.style,t.style),e}_setCanvasSize(t){if(!this.canvas)return;const{width:e,height:n}=t;if(e||0===e){const t=Number.isFinite(e)?"".concat(e,"px"):e;this.canvas.style.width=t}if(n||0===n){var r;const e=Number.isFinite(n)?"".concat(n,"px"):n;this.canvas.style.position=(null===(r=t.style)||void 0===r?void 0:r.position)||"absolute",this.canvas.style.height=e}}_updateCanvasSize(){const{canvas:t}=this;if(!t)return;const e=t.clientWidth||t.width,n=t.clientHeight||t.height;var r;e===this.width&&n===this.height||(this.width=e,this.height=n,null===(r=this.viewManager)||void 0===r||r.setProps({width:e,height:n}),this.props.onResize({width:e,height:n}))}_createAnimationLoop(t){const{width:e,height:n,gl:r,glOptions:i,debug:o,onError:s,onBeforeRender:a,onAfterRender:u,useDevicePixels:c}=t;return new we({width:e,height:n,useDevicePixels:c,autoResizeViewport:!1,gl:r,onCreateContext:t=>(0,st.s9)({...i,...t,canvas:this.canvas,debug:o,onContextLost:()=>this._onContextLost()}),onInitialize:t=>this._setGLContext(t.gl),onRender:this._onRenderFrame.bind(this),onBeforeRender:a,onAfterRender:u,onError:s})}_getViewState(){return this.props.viewState||this.viewState}_getViews(){let t=this.props.views||[new nt({id:"default-view"})];return t=Array.isArray(t)?t:[t],t.length&&this.props.controller&&(t[0].props.controller=this.props.controller),t}_onContextLost(){const{onError:t}=this.props;this.animationLoop&&t&&t(new Error("WebGL context is lost"))}_pickAndCallback(){const{_pickRequest:t}=this;if(t.event){const{result:n,emptyInfo:r}=this._pick("pickObject","pickObject Time",t);this.cursorState.isHovering=n.length>0;let i=r,o=!1;for(const s of n){var e;i=s,o=(null===(e=s.layer)||void 0===e?void 0:e.onHover(s,t.event))||o}if(!o&&this.props.onHover&&this.props.onHover(i,t.event),this.props.getTooltip&&this.tooltip){const t=this.props.getTooltip(i);this.tooltip.setTooltip(t,i.x,i.y)}t.event=null}}_updateCursor(){const t=this.props.parent||this.canvas;t&&(t.style.cursor=this.props.getCursor(this.cursorState))}_setGLContext(t){if(this.layerManager)return;this.canvas||(this.canvas=t.canvas,(0,st.yW)(t,{enable:!0,copyState:!0})),this.tooltip=new It(this.canvas),(0,st.dR)(t,{blend:!0,blendFunc:[770,771,1,771],polygonOffsetFill:!0,depthTest:!0,depthFunc:515}),this.props.onWebGLInitialized(t);const e=new a;e.play(),this.animationLoop.attachTimeline(e),this.eventManager=new un(this.props.parent||t.canvas,{touchAction:this.props.touchAction,recognizerOptions:this.props.eventRecognizerOptions,events:{pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerleave:this._onPointerMove}});for(const r in at.FP)this.eventManager.on(r,this._onEvent);this.viewManager=new E({timeline:e,eventManager:this.eventManager,onViewStateChange:this._onViewStateChange.bind(this),onInteractionStateChange:this._onInteractionStateChange.bind(this),views:this._getViews(),viewState:this._getViewState(),width:this.width,height:this.height});const n=this.viewManager.getViewports()[0];this.layerManager=new w(t,{deck:this,stats:this.stats,viewport:n,timeline:e}),this.effectManager=new xt,this.deckRenderer=new Ot(t),this.deckPicker=new Ft(t),this.setProps(this.props),this._updateCanvasSize(),this.props.onLoad()}_drawLayers(t,e){const{gl:n}=this.layerManager.context;(0,st.dR)(n,this.props.parameters),this.props.onBeforeRender({gl:n}),this.deckRenderer.renderLayers({target:this.props._framebuffer,layers:this.layerManager.getLayers(),viewports:this.viewManager.getViewports(),onViewportActive:this.layerManager.activateViewport,views:this.viewManager.getViews(),pass:"screen",redrawReason:t,effects:this.effectManager.getEffects(),...e}),this.props.onAfterRender({gl:n})}_onRenderFrame(t){this._getFrameStats(),this._metricsCounter++%60===0&&(this._getMetrics(),this.stats.reset(),c.Z.table(4,this.metrics)(),this.props._onMetrics&&this.props._onMetrics(this.metrics)),this._updateCanvasSize(),this._updateCursor(),this.tooltip.isVisible&&this.viewManager.needsRedraw()&&this.tooltip.setTooltip(null),this.layerManager.updateLayers(),this._pickAndCallback(),this.redraw(),this.viewManager&&this.viewManager.updateViewStates()}_onViewStateChange(t){const e=this.props.onViewStateChange(t)||t.viewState;this.viewState&&(this.viewState={...this.viewState,[t.viewId]:e},this.props.viewState||this.viewManager&&this.viewManager.setProps({viewState:this.viewState}))}_onInteractionStateChange(t){this.cursorState.isDragging=t.isDragging||!1,this.props.onInteractionStateChange(t)}
1_getFrameStats(){const{stats:t}=this;t.get("frameRate").timeEnd(),t.get("frameRate").timeStart();const e=this.animationLoop.stats;t.get("GPU Time").addTime(e.get("GPU Time").lastTiming),t.get("CPU Time").addTime(e.get("CPU Time").lastTiming)}_getMetrics(){const{metrics:t,stats:e}=this;t.fps=e.get("frameRate").getHz(),t.setPropsTime=e.get("setProps Time").time,t.updateAttributesTime=e.get("Update Attributes").time,t.framesRedrawn=e.get("Redraw Count").count,t.pickTime=e.get("pickObject Time").time+e.get("pickMultipleObjects Time").time+e.get("pickObjects Time").time,t.pickCount=e.get("Pick Count").count,t.gpuTime=e.get("GPU Time").time,t.cpuTime=e.get("CPU Time").time,t.gpuTimePerFrame=e.get("GPU Time").getAverageTime(),t.cpuTimePerFrame=e.get("CPU Time").getAverageTime();const n=de.lR.get("Memory Usage");t.bufferMemory=n.get("Buffer Memory").count,t.textureMemory=n.get("Texture Memory").count,t.renderbufferMemory=n.get("Renderbuffer Memory").count,t.gpuMemory=n.get("GPU Memory").count}}(0,i.Z)(hn,"defaultProps",ln),(0,i.Z)(hn,"VERSION",he.VERSION);var fn="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function dn(t,e){for(;t;){if(t===e)return!0;t=Object.getPrototypeOf(t)}return!1}var pn=n(8551);const gn={position:"absolute",zIndex:-1};function mn(t,e){if("function"===typeof t)return t(e);if(Array.isArray(t))return t.map((t=>mn(t,e)));if(yn(t)){if(function(t){const e=t.type,n=e&&e.defaultProps;return n&&n.mapStyle}(t))return e.style=gn,(0,r.cloneElement)(t,e);if(function(t){const e=t.type;return e&&e.deckGLViewProps}(t))return(0,r.cloneElement)(t,e)}return t}function yn(t){return t&&"object"===typeof t&&"type"in t||!1}function vn(t){if("function"===typeof t)return(0,r.createElement)(T,{},t);if(Array.isArray(t))return t.map(vn);if(yn(t)){if(t.type===r.Fragment)return vn(t.props.children);if(dn(t.type,T))return t}return t}const bn={mixBlendMode:null};function _n(t){t.redrawReason&&(t.deck._drawLayers(t.redrawReason),t.redrawReason=null)}const wn=(0,r.forwardRef)(((t,e)=>{const[n,i]=(0,r.useState)(0),o=(0,r.useRef)({control:null,version:n,forceUpdate:()=>i((t=>t+1))}).current,s=(0,r.useRef)(null),a=(0,r.useRef)(null),u=(0,r.useMemo)((()=>function({children:t,layers:e=[],views:n=null}){const i=[],o=[],s={};return r.Children.forEach(vn(t),(t=>{if(yn(t)){const e=t.type;if(dn(e,pn.Z)){const n=function(t,e){const n={},r=t.defaultProps||{};for(const i in e)r[i]!==e[i]&&(n[i]=e[i]);return new t(n)}(e,t.props);o.push(n)}else i.push(t);if(dn(e,T)&&e!==T&&t.props.id){const n=new e(t.props);s[n.id]=n}}else t&&i.push(t)})),Object.keys(s).length>0&&(Array.isArray(n)?n.forEach((t=>{s[t.id]=t})):n&&(s[n.id]=n),n=Object.values(s)),{layers:e=o.length>0?[...o,...e]:e,children:i,views:n}}(t)),[t.layers,t.views,t.children]);let c=!0;const l=e=>{var n;return c&&t.viewState?(o.viewStateUpdateRequested=e,null):(o.viewStateUpdateRequested=null,null===(n=t.onViewStateChange)||void 0===n?void 0:n.call(t,e))},h=e=>{var n;c?o.interactionStateUpdateRequested=e:(o.interactionStateUpdateRequested=null,null===(n=t.onInteractionStateChange)||void 0===n||n.call(t,e))},f=(0,r.useMemo)((()=>{const e={...t,style:null,width:"100%",height:"100%",parent:s.current,canvas:a.current,layers:u.layers,views:u.views,onViewStateChange:l,onInteractionStateChange:h};return delete e._customRender,o.deck&&o.deck.setProps(e),e}),[t]);(0,r.useEffect)((()=>{const e=t.Deck||hn;return o.deck=function(t,e,n){const r=new e({...n,_customRender:e=>{t.redrawReason=e;const n=r.getViewports();t.lastRenderedViewports!==n?t.forceUpdate():_n(t)}});return r}(o,e,{...f,parent:s.current,canvas:a.current}),()=>{var t;return null===(t=o.deck)||void 0===t?void 0:t.finalize()}}),[]),fn((()=>{_n(o);const{viewStateUpdateRequested:t,interactionStateUpdateRequested:e}=o;t&&l(t),e&&h(e)})),(0,r.useImperativeHandle)(e,(()=>function(t){return{get deck(){return t.deck},pickObject:e=>t.deck.pickObject(e),pickMultipleObjects:e=>t.deck.pickMultipleObjects(e),pickObjects:e=>t.deck.pickObjects(e)}}(o)),[]);const d=o.deck&&o.deck.isInitialized?o.deck.getViewports():void 0,{ContextProvider:p,width:g,height:m,id:y,style:v}=t,{containerStyle:b,canvasStyle:_}=(0,r.useMemo)((()=>function({width:t,height:e,style:n}){const r={position:"absolute",zIndex:0,left:0,top:0,width:t,height:e},i={left:0,top:0};if(n)for(const o in n)o in bn?i[o]=n[o]:r[o]=n[o];return{containerStyle:r,canvasStyle:i}}({width:g,height:m,style:v})),[g,m,v]);if(!o.viewStateUpdateRequested&&o.lastRenderedViewports===d||o.version!==n){o.lastRenderedViewports=d,o.version=n;const t=function({children:t,deck:e,ContextProvider:n}){const{viewManager:i}=e||{};if(!i||!i.views.length)return[];const o={},s=i.views[0].id;for(const r of t){let t=s,e=r;yn(r)&&dn(r.type,T)&&(t=r.props.id||s,e=r.props.children);const n=i.getViewport(t),a=i.getViewState(t);if(n){const{x:r,y:i,width:s,height:u}=n;e=mn(e,{x:r,y:i,width:s,height:u,viewport:n,viewState:a}),o[t]||(o[t]={viewport:n,children:[]}),o[t].children.push(e)}}return Object.keys(o).map((t=>{const{viewport:i,children:s}=o[t],{x:a,y:u,width:c,height:l}=i,h={position:"absolute",left:a,top:u,width:c,height:l},f="view-".concat(t),d=(0,r.createElement)("div",{key:f,id:f,style:h},...s);if(n){const o={viewport:i,container:e.canvas.offsetParent,eventManager:e.eventManager,onViewStateChange:n=>{n.viewId=t,e._onViewStateChange(n)}};return(0,r.createElement)(n,{key:f,value:o},d)}return d}))}({children:u.children,deck:o.deck,ContextProvider:p}),e=(0,r.createElement)("canvas",{key:"canvas",id:y||"deckgl-overlay",ref:a,style:_});o.control=(0,r.createElement)("div",{id:"".concat(y||"deckgl","-wrapper"),ref:s,style:b},[e,t])}return c=!1,o.control}));wn.defaultProps=hn.defaultProps;var xn=wn},6255:function(t,e,n){"use strict";n.d(e,{Kn:function(){return o},Ss:function(){return s},TW:function(){return a},D0:function(){return u},Ew:function(){return c},Lj:function(){return l},zH:function(){return h},Os:function(){return f}});const r=t=>"boolean"===typeof t,i=t=>"function"===typeof t,o=t=>null!==t&&"object"===typeof t,s=t=>o(t)&&t.constructor==={}.constructor,a=t=>t&&"function"===typeof t[Symbol.iterator],u=t=>t&&"function"===typeof t[Symbol.asyncIterator],c=t=>"undefined"!==typeof Response&&t instanceof Response||t&&t.arrayBuffer&&t.text&&t.json,l=t=>"undefined"!==typeof Blob&&t instanceof Blob,h=t=>t&&"object"===typeof t&&t.isBuffer,f=t=>(t=>"undefined"!==typeof ReadableStream&&t instanceof ReadableStream||o(t)&&i(t.tee)&&i(t.cancel)&&i(t.getReader))(t)||(t=>o(t)&&i(t.read)&&i(t.pipe)&&r(t.readable))(t)},2813:function(t,e,n){"use strict";n.d(e,{z:function(){return Y}});var r=n(6255),i=n(2033),o=n(9597);function s(t,e){if(!t)throw new Error(e||"loaders.gl assertion failed.")}var a=n(3454);"undefined"!==typeof self&&self,"undefined"!==typeof window&&window,"undefined"!==typeof n.g&&n.g,"undefined"!==typeof document&&document;const u="object"!==typeof a||"[object process]"!==String(a)||!0,c="undefined"!==typeof window&&"undefined"!==typeof window.orientation,l="undefined"!==typeof a&&a.version&&/v([0-9]*)/.exec(a.version);l&&parseFloat(l[1]);var h=n(4942);class f{}const d=new Map;function p(t){s(t.source&&!t.url||!t.source&&t.url);let e=d.get(t.source||t.url);return e||(t.url&&(e=function(t){if(!t.startsWith("http"))return t;return g((e=t,"try {\n importScripts('".concat(e,"');\n} catch (error) {\n console.error(error);\n throw error;\n}")));var e}(t.url),d.set(t.url,e)),t.source&&(e=g(t.source),d.set(t.source,e))),s(e),e}function g(t){const e=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(e)}function m(t,e=!0,n){const r=n||new Set;if(t){if(y(t))r.add(t);else if(y(t.buffer))r.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"===typeof t)for(const i in t)m(t[i],e,r)}else;return void 0===n?Array.from(r):[]}function y(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!==typeof MessagePort&&t instanceof MessagePort||("undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}const v=()=>{};class b{static isSupported(){return"undefined"!==typeof Worker&&u||void 0!==typeof f}constructor(t){(0,h.Z)(this,"name",void 0),(0,h.Z)(this,"source",void 0),(0,h.Z)(this,"url",void 0),(0,h.Z)(this,"terminated",!1),(0,h.Z)(this,"worker",void 0),(0,h.Z)(this,"onMessage",void 0),(0,h.Z)(this,"onError",void 0),(0,h.Z)(this,"_loadableURL","");const{name:e,source:n,url:r}=t;s(n||r),this.name=e,this.source=n,this.url=r,this.onMessage=v,this.onError=t=>console.log(t),this.worker=u?this._createBrowserWorker():this._createNodeWorker()}destroy(){this.onMessage=v,this.onError=v,this.worker.terminate(),this.terminated=!0}get isRunning(){return Boolean(this.onMessage)}postMessage(t,e){e=e||m(t),this.worker.postMessage(t,e)}_getErrorFromErrorEvent(t){let e="Failed to load ";return e+="worker ".concat(this.name," from ").concat(this.url,". "),t.message&&(e+="".concat(t.message," in ")),t.lineno&&(e+=":".concat(t.lineno,":").concat(t.colno)),new Error(e)}
1_createBrowserWorker(){this._loadableURL=p({source:this.source,url:this.url});const t=new Worker(this._loadableURL,{name:this.name});return t.onmessage=t=>{t.data?this.onMessage(t.data):this.onError(new Error("No data received"))},t.onerror=t=>{this.onError(this._getErrorFromErrorEvent(t)),this.terminated=!0},t.onmessageerror=t=>console.error(t),t}_createNodeWorker(){let t;if(this.url){const e=this.url.includes(":/")||this.url.startsWith("/")?this.url:"./".concat(this.url);t=new f(e,{eval:!1})}else{if(!this.source)throw new Error("no worker");t=new f(this.source,{eval:!0})}return t.on("message",(t=>{this.onMessage(t)})),t.on("error",(t=>{this.onError(t)})),t.on("exit",(t=>{})),t}}class _{constructor(t,e){(0,h.Z)(this,"name",void 0),(0,h.Z)(this,"workerThread",void 0),(0,h.Z)(this,"isRunning",!0),(0,h.Z)(this,"result",void 0),(0,h.Z)(this,"_resolve",(()=>{})),(0,h.Z)(this,"_reject",(()=>{})),this.name=t,this.workerThread=e,this.result=new Promise(((t,e)=>{this._resolve=t,this._reject=e}))}postMessage(t,e){this.workerThread.postMessage({source:"loaders.gl",type:t,payload:e})}done(t){s(this.isRunning),this.isRunning=!1,this._resolve(t)}error(t){s(this.isRunning),this.isRunning=!1,this._reject(t)}}class w{static isSupported(){return b.isSupported()}constructor(t){(0,h.Z)(this,"name","unnamed"),(0,h.Z)(this,"source",void 0),(0,h.Z)(this,"url",void 0),(0,h.Z)(this,"maxConcurrency",1),(0,h.Z)(this,"maxMobileConcurrency",1),(0,h.Z)(this,"onDebug",(()=>{})),(0,h.Z)(this,"reuseWorkers",!0),(0,h.Z)(this,"props",{}),(0,h.Z)(this,"jobQueue",[]),(0,h.Z)(this,"idleQueue",[]),(0,h.Z)(this,"count",0),(0,h.Z)(this,"isDestroyed",!1),this.source=t.source,this.url=t.url,this.setProps(t)}destroy(){this.idleQueue.forEach((t=>t.destroy())),this.isDestroyed=!0}setProps(t){this.props={...this.props,...t},void 0!==t.name&&(this.name=t.name),void 0!==t.maxConcurrency&&(this.maxConcurrency=t.maxConcurrency),void 0!==t.maxMobileConcurrency&&(this.maxMobileConcurrency=t.maxMobileConcurrency),void 0!==t.reuseWorkers&&(this.reuseWorkers=t.reuseWorkers),void 0!==t.onDebug&&(this.onDebug=t.onDebug)}async startJob(t,e=((t,e,n)=>t.done(n)),n=((t,e)=>t.error(e))){const r=new Promise((r=>(this.jobQueue.push({name:t,onMessage:e,onError:n,onStart:r}),this)));return this._startQueuedJob(),await r}async _startQueuedJob(){if(!this.jobQueue.length)return;const t=this._getAvailableWorker();if(!t)return;const e=this.jobQueue.shift();if(e){this.onDebug({message:"Starting job",name:e.name,workerThread:t,backlog:this.jobQueue.length});const n=new _(e.name,t);t.onMessage=t=>e.onMessage(n,t.type,t.payload),t.onError=t=>e.onError(n,t),e.onStart(n);try{await n.result}finally{this.returnWorkerToQueue(t)}}}returnWorkerToQueue(t){this.isDestroyed||!this.reuseWorkers||this.count>this._getMaxConcurrency()?(t.destroy(),this.count--):this.idleQueue.push(t),this.isDestroyed||this._startQueuedJob()}_getAvailableWorker(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count<this._getMaxConcurrency()){this.count++;const t="".concat(this.name.toLowerCase()," (#").concat(this.count," of ").concat(this.maxConcurrency,")");return new b({name:t,source:this.source,url:this.url})}return null}_getMaxConcurrency(){return c?this.maxMobileConcurrency:this.maxConcurrency}}const x={maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:!0,onDebug:()=>{}};class E{static isSupported(){return b.isSupported()}static getWorkerFarm(t={}){return E._workerFarm=E._workerFarm||new E({}),E._workerFarm.setProps(t),E._workerFarm}constructor(t){(0,h.Z)(this,"props",void 0),(0,h.Z)(this,"workerPools",new Map),this.props={...x},this.setProps(t),this.workerPools=new Map}destroy(){for(const t of this.workerPools.values())t.destroy();this.workerPools=new Map}setProps(t){this.props={...this.props,...t};for(const e of this.workerPools.values())e.setProps(this._getWorkerPoolProps())}getWorkerPool(t){const{name:e,source:n,url:r}=t;let i=this.workerPools.get(e);return i||(i=new w({name:e,source:n,url:r}),i.setProps(this._getWorkerPoolProps()),this.workerPools.set(e,i)),i}_getWorkerPoolProps(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}
1}(0,h.Z)(E,"_workerFarm",void 0);async function A(t,e,n,r,i){const o=t.id,a=function(t,e={}){const n=e[t.id]||{},r="".concat(t.id,"-worker.js");let i=n.workerUrl;if(i||"compression"!==t.id||(i=e.workerUrl),"test"===e._workerType&&(i="modules/".concat(t.module,"/dist/").concat(r)),!i){let e=t.version;"latest"===e&&(e="latest");const n=e?"@".concat(e):"";i="https://unpkg.com/@loaders.gl/".concat(t.module).concat(n,"/dist/").concat(r)}return s(i),i}(t,n),u=E.getWorkerFarm(n).getWorkerPool({name:o,url:a});n=JSON.parse(JSON.stringify(n)),r=JSON.parse(JSON.stringify(r||{}));const c=await u.startJob("process-on-worker",S.bind(null,i));c.postMessage("process",{input:e,options:n,context:r});const l=await c.result;return await l.result}async function S(t,e,n,r){switch(n){case"done":e.done(r);break;case"error":e.error(new Error(r.error));break;case"process":const{id:o,input:s,options:a}=r;try{const n=await t(s,a);e.postMessage("done",{id:o,result:n})}catch(i){const t=i instanceof Error?i.message:"unknown error";e.postMessage("error",{id:o,error:t})}break;default:console.warn("parse-with-worker unknown message ".concat(n))}}n(9521);function P(t){return t&&"object"===typeof t&&t.isBuffer}function O(t){if(P(t))return function(t){if(P(t))return new Uint8Array(t.buffer,t.byteOffset,t.length).slice().buffer;return t}(t);if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t))return 0===t.byteOffset&&t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);if("string"===typeof t){const e=t;return(new TextEncoder).encode(e).buffer}if(t&&"object"===typeof t&&t._toArrayBuffer)return t._toArrayBuffer();throw new Error("toArrayBuffer")}async function T(t){const e=[];for await(const n of t)e.push(n);return function(...t){const e=t.map((t=>t instanceof ArrayBuffer?new Uint8Array(t):t)),n=e.reduce(((t,e)=>t+e.byteLength),0),r=new Uint8Array(n);let i=0;for(const o of e)r.set(o,i),i+=o.byteLength;return r.buffer}(...e)}const C=262144;var M=n(4959);function D(t,e){return M.jU?async function*(t,e){const n=t.getReader();let r;try{for(;;){const t=r||n.read();null!==e&&void 0!==e&&e._streamReadAhead&&(r=n.read());const{done:i,value:o}=await t;if(i)return;yield O(o)}}catch(i){n.releaseLock()}}(t,e):async function*(t,e){for await(const n of t)yield O(n)}(t)}function k(t,e){if("string"===typeof t)return function*(t,e){const n=(null===e||void 0===e?void 0:e.chunkSize)||262144;let r=0;const i=new TextEncoder;for(;r<t.length;){const e=Math.min(t.length-r,n),o=t.slice(r,r+e);r+=e,yield i.encode(o)}}(t,e);if(t instanceof ArrayBuffer)return function*(t,e={}){const{chunkSize:n=C}=e;let r=0;for(;r<t.byteLength;){const e=Math.min(t.byteLength-r,n),i=new ArrayBuffer(e),o=new Uint8Array(t,r,e);new Uint8Array(i).set(o),r+=e,yield i}}(t,e);if((0,r.Lj)(t))return async function*(t,e){const n=(null===e||void 0===e?void 0:e.chunkSize)||1048576;let r=0;for(;r<t.size;){const e=r+n,i=await t.slice(r,e).arrayBuffer();r=e,yield i}}(t,e);if((0,r.Os)(t))return D(t,e);if((0,r.Ew)(t)){return D(t.body,e)}throw new Error("makeIterator")}var j=n(7927);const F="Cannot convert supplied data type";async function L(t,e,n){const i=t instanceof ArrayBuffer||ArrayBuffer.isView(t);if("string"===typeof t||i)return function(t,e,n){if(e.text&&"string"===typeof t)return t;if((0,r.zH)(t)&&(t=t.buffer),t instanceof ArrayBuffer){const n=t;return e.text&&!e.binary?new TextDecoder("utf8").decode(n):n}if(ArrayBuffer.isView(t)){if(e.text&&!e.binary)return new TextDecoder("utf8").decode(t);let n=t.buffer;const r=t.byteLength||t.length;return 0===t.byteOffset&&r===n.byteLength||(n=n.slice(t.byteOffset,t.byteOffset+r)),n}throw new Error(F)}(t,e);if((0,r.Lj)(t)&&(t=await(0,j.L1)(t)),(0,r.Ew)(t)){const n=t;return await(0,j.mm)(n),e.binary?await n.arrayBuffer():await n.text()}if((0,r.Os)(t)&&(t=k(t,n)),(0,r.TW)(t)||(0,r.D0)(t))return T(t);throw new Error(F)}var I=n(4642);const R=new(n(6426).Z)({id:"loaders.gl"});var B=n(6228);const N=/\.([^.]+)$/;function z(t,e=[],n,r){if(!Z(t))return null;if(e&&!Array.isArray(e))return(0,i.T)(e);let o=[];e&&(o=o.concat(e)),null!==n&&void 0!==n&&n.ignoreRegisteredLoaders||o.push(...(0,B.kO)()),function(t){for(const e of t)(0,i.T)(e)}(o);const s=function(t,e,n,r){const{url:i,type:o}=(0,I.l)(t),s=i||(null===r||void 0===r?void 0:r.url);let a=null,u="";null!==n&&void 0!==n&&n.mimeType&&(a=V(e,null===n||void 0===n?void 0:n.mimeType),u="match forced by supplied MIME type ".concat(null===n||void 0===n?void 0:n.mimeType));var c;a=a||function(t,e){const n=e&&N.exec(e),r=n&&n[1];return r?function(t,e){e=e.toLowerCase();for(const n of t)for(const t of n.extensions)if(t.toLowerCase()===e)return n;return null}(t,r):null}(e,s),u=u||(a?"matched url ".concat(s):""),a=a||V(e,o),u=u||(a?"matched MIME type ".concat(o):""),a=a||function(t,e){if(!e)return null;for(const n of t)if("string"===typeof e){if(G(e,n))return n}else if(ArrayBuffer.isView(e)){if(W(e.buffer,e.byteOffset,n))return n}else if(e instanceof ArrayBuffer){if(W(e,0,n))return n}return null}(e,t),u=u||(a?"matched initial data ".concat(H(t)):""),a=a||V(e,null===n||void 0===n?void 0:n.fallbackMimeType),u=u||(a?"matched fallback MIME type ".concat(o):""),u&&R.log(1,"selectLoader selected ".concat(null===(c=a)||void 0===c?void 0:c.name,": ").concat(u,"."));return a}(t,o,n,r);if(!s&&(null===n||void 0===n||!n.nothrow))throw new Error(U(t));return s}function Z(t){return!(t instanceof Response&&204===t.status)}function U(t){const{url:e,type:n}=(0,I.l)(t);let r="No valid loader found (";r+=e?"".concat(function(t){const e=t&&t.lastIndexOf("/");return e>=0?t.substr(e+1):""}(e),", "):"no url provided, ",r+="MIME type: ".concat(n?'"'.concat(n,'"'):"not provided",", ");const i=t?H(t):"";return r+=i?' first bytes: "'.concat(i,'"'):"first bytes: not available",r+=")",r}function V(t,e){for(const n of t){if(n.mimeTypes&&n.mimeTypes.includes(e))return n;if(e==="application/x.".concat(n.id))return n}return null}function G(t,e){if(e.testText)return e.testText(t);return(Array.isArray(e.tests)?e.tests:[e.tests]).some((e=>t.startsWith(e)))}function W(t,e,n){return(Array.isArray(n.tests)?n.tests:[n.tests]).some((r=>function(t,e,n,r){if(r instanceof ArrayBuffer)return function(t,e,n){if(n=n||t.byteLength,t.byteLength<n||e.byteLength<n)return!1;
1const r=new Uint8Array(t),i=new Uint8Array(e);for(let o=0;o<r.length;++o)if(r[o]!==i[o])return!1;return!0}(r,t,r.byteLength);switch(typeof r){case"function":return r(t,n);case"string":return r===X(t,e,r.length);default:return!1}}(t,e,n,r)))}function H(t,e=5){if("string"===typeof t)return t.slice(0,e);if(ArrayBuffer.isView(t))return X(t.buffer,t.byteOffset,e);if(t instanceof ArrayBuffer){return X(t,0,e)}return""}function X(t,e,n){if(t.byteLength<e+n)return"";const r=new DataView(t);let i="";for(let o=0;o<n;o++)i+=String.fromCharCode(r.getUint8(e+o));return i}async function q(t,e,n,a){s(!a||"object"===typeof a),!e||Array.isArray(e)||(0,i.C)(e)||(a=void 0,n=e,e=void 0),t=await t,n=n||{};const{url:c}=(0,I.l)(t),l=function(t,e){if(!e&&t&&!Array.isArray(t))return t;let n;if(t&&(n=Array.isArray(t)?t:[t]),e&&e.loaders){const t=Array.isArray(e.loaders)?e.loaders:[e.loaders];n=n?[...n,...t]:t}return n&&n.length?n:null}(e,a),h=await async function(t,e=[],n,i){if(!Z(t))return null;let o=z(t,e,{...n,nothrow:!0},i);if(o)return o;if((0,r.Lj)(t)&&(o=z(t=await t.slice(0,10).arrayBuffer(),e,n,i)),!o&&(null===n||void 0===n||!n.nothrow))throw new Error(U(t));return o}(t,l,n);return h?(a=function(t,e,n=null){if(n)return n;const r={fetch:(0,o.bV)(e,t),...t};return Array.isArray(r.loaders)||(r.loaders=null),r}({url:c,parse:q,loaders:l},n=(0,o.GR)(n,h,l,c),a),await async function(t,e,n,i){if(function(t,e="3.2.5"){s(t,"no worker provided");const n=t.version}(t),(0,r.Ew)(e)){const t=e,{ok:n,redirected:r,status:o,statusText:s,type:a,url:u}=t,c=Object.fromEntries(t.headers.entries());i.response={headers:c,ok:n,redirected:r,status:o,statusText:s,type:a,url:u}}if(e=await L(e,t,n),t.parseTextSync&&"string"===typeof e)return n.dataType="text",t.parseTextSync(e,n,i,t);if(function(t,e){return!!E.isSupported()&&!!(u||null!==e&&void 0!==e&&e._nodeWorkers)&&t.worker&&(null===e||void 0===e?void 0:e.worker)}(t,n))return await A(t,e,n,i,q);if(t.parseText&&"string"===typeof e)return await t.parseText(e,n,i,t);if(t.parse)return await t.parse(e,n,i,t);throw s(!t.parseSync),new Error("".concat(t.id," loader - no parser found and worker is disabled"))}(h,t,n,a)):null}async function Y(t,e,n,s){Array.isArray(e)||(0,i.C)(e)||(void 0,n=e,e=void 0);const a=(0,o.bV)(n);let u=t;return"string"===typeof t&&(u=await a(t)),(0,r.Lj)(t)&&(u=await a(t)),await q(u,e,n)}},6228:function(t,e,n){"use strict";n.d(e,{fh:function(){return s},kO:function(){return a}});var r=n(2033),i=n(9597);const o=()=>{const t=(0,i.rx)();return t.loaderRegistry=t.loaderRegistry||[],t.loaderRegistry};function s(t){const e=o();t=Array.isArray(t)?t:[t];for(const n of t){const t=(0,r.T)(n);e.find((e=>t===e))||e.unshift(t)}}function a(){return o()}},2033:function(t,e,n){"use strict";n.d(e,{C:function(){return i},T:function(){return o}});var r=n(6269);function i(t){var e;if(!t)return!1;Array.isArray(t)&&(t=t[0]);return Array.isArray(null===(e=t)||void 0===e?void 0:e.extensions)}function o(t){var e,n;let o;return(0,r.h)(t,"null loader"),(0,r.h)(i(t),"invalid loader"),Array.isArray(t)&&(o=t[1],t=t[0],t={...t,options:{...t.options,...o}}),(null!==(e=t)&&void 0!==e&&e.parseTextSync||null!==(n=t)&&void 0!==n&&n.parseText)&&(t.text=!0),t.text||(t.binary=!0),t}},9597:function(t,e,n){"use strict";n.d(e,{bV:function(){return y},rx:function(){return p},GR:function(){return m}});var r=n(6255);let i="";const o={};var s=n(7927);async function a(t,e){if("string"===typeof t){t=function(t){for(const e in o)if(t.startsWith(e)){const n=o[e];t=t.replace(e,n)}return t.startsWith("http://")||t.startsWith("https://")||(t="".concat(i).concat(t)),t}(t);let n=e;return null!==e&&void 0!==e&&e.fetch&&"function"!==typeof(null===e||void 0===e?void 0:e.fetch)&&(n=e.fetch),await fetch(t,n)}return await(0,s.L1)(t)}var u=n(4942);const c=new(n(6426).Z)({id:"loaders.gl"});class l{log(){return()=>{}}info(){return()=>{}}warn(){return()=>{}}error(){return()=>{}}}var h=n(4959);const f={fetch:null,mimeType:void 0,nothrow:!1,log:new class{constructor(){(0,u.Z)(this,"console",void 0),this.console=console}log(...t){return this.console.log.bind(this.console,...t)}info(...t){return this.console.info.bind(this.console,...t)}warn(...t){return this.console.warn.bind(this.console,...t)}error(...t){return this.console.error.bind(this.console,...t)}},CDN:"https://unpkg.com/@loaders.gl",worker:!0,maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:h.jU,_nodeWorkers:!1,_workerType:"",limit:0,_limitMB:0,batchSize:"auto",batchDebounceMs:0,metadata:!1,transforms:[]},d={throws:"nothrow",dataType:"(no longer used)",uri:"baseUri",method:"fetch.method",headers:"fetch.headers",body:"fetch.body",mode:"fetch.mode",credentials:"fetch.credentials",cache:"fetch.cache",redirect:"fetch.redirect",referrer:"fetch.referrer",referrerPolicy:"fetch.referrerPolicy",integrity:"fetch.integrity",keepalive:"fetch.keepalive",signal:"fetch.signal"};function p(){globalThis.loaders=globalThis.loaders||{};const{loaders:t}=globalThis;return t._state=t._state||{},t._state}const g=()=>{const t=p();return t.globalOptions=t.globalOptions||{...f},t.globalOptions};function m(t,e,n,r){return n=n||[],function(t,e){v(t,null,f,d,e);for(const n of e){const r=t&&t[n.id]||{},i=n.options&&n.options[n.id]||{},o=n.deprecatedOptions&&n.deprecatedOptions[n.id]||{};v(r,n.id,i,o,e)}}(t,n=Array.isArray(n)?n:[n]),_(e,t,r)}
1function y(t,e){const n=g(),i=t||n;return"function"===typeof i.fetch?i.fetch:(0,r.Kn)(i.fetch)?t=>a(t,i):null!==e&&void 0!==e&&e.fetch?null===e||void 0===e?void 0:e.fetch:a}function v(t,e,n,i,o){const s=e||"Top level",a=e?"".concat(e,"."):"";for(const u in t){const l=!e&&(0,r.Kn)(t[u]),h="baseUri"===u&&!e,f="workerUrl"===u&&e;if(!(u in n)&&!h&&!f)if(u in i)c.warn("".concat(s," loader option '").concat(a).concat(u,"' no longer supported, use '").concat(i[u],"'"))();else if(!l){const t=b(u,o);c.warn("".concat(s," loader option '").concat(a).concat(u,"' not recognized. ").concat(t))()}}}function b(t,e){const n=t.toLowerCase();let r="";for(const i of e)for(const e in i.options){if(t===e)return"Did you mean '".concat(i.id,".").concat(e,"'?");const o=e.toLowerCase();(n.startsWith(o)||o.startsWith(n))&&(r=r||"Did you mean '".concat(i.id,".").concat(e,"'?"))}return r}function _(t,e,n){const r={...t.options||{}};return function(t,e){e&&!("baseUri"in t)&&(t.baseUri=e)}(r,n),null===r.log&&(r.log=new l),w(r,g()),w(r,e),r}function w(t,e){for(const n in e)if(n in e){const i=e[n];(0,r.Ss)(i)&&(0,r.Ss)(t[n])?t[n]={...t[n],...e[n]}:t[n]=e[n]}}},4642:function(t,e,n){"use strict";n.d(e,{C:function(){return l},l:function(){return c}});var r=n(6255);const i=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,o=/^([-\w.]+\/[-\w.+]+)/;function s(t){const e=o.exec(t);return e?e[1]:t}function a(t){const e=i.exec(t);return e?e[1]:""}const u=/\?.*/;function c(t){if((0,r.Ew)(t)){const e=h(t.url||"");return{url:e,type:s(t.headers.get("content-type")||"")||a(e)}}return(0,r.Lj)(t)?{url:h(t.name||""),type:t.type||""}:"string"===typeof t?{url:h(t),type:a(t)}:{url:"",type:""}}function l(t){return(0,r.Ew)(t)?t.headers["content-length"]||-1:(0,r.Lj)(t)?t.size:"string"===typeof t?t.length:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?t.byteLength:-1}function h(t){return t.replace(u,"")}},7927:function(t,e,n){"use strict";n.d(e,{L1:function(){return o},mm:function(){return s}});var r=n(6255),i=n(4642);async function o(t){if((0,r.Ew)(t))return t;const e={},n=(0,i.C)(t);n>=0&&(e["content-length"]=String(n));const{url:o,type:s}=(0,i.l)(t);s&&(e["content-type"]=s);const a=await async function(t){const e=5;if("string"===typeof t)return"data:,".concat(t.slice(0,e));if(t instanceof Blob){const e=t.slice(0,5);return await new Promise((t=>{const n=new FileReader;n.onload=e=>{var n;return t(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.result)},n.readAsDataURL(e)}))}if(t instanceof ArrayBuffer){const n=function(t){let e="";const n=new Uint8Array(t);for(let r=0;r<n.byteLength;r++)e+=String.fromCharCode(n[r]);return btoa(e)}(t.slice(0,e));return"data:base64,".concat(n)}return null}(t);a&&(e["x-first-bytes"]=a),"string"===typeof t&&(t=(new TextEncoder).encode(t));const u=new Response(t,{headers:e});return Object.defineProperty(u,"url",{value:o}),u}async function s(t){if(!t.ok){const e=await async function(t){let e="Failed to fetch resource ".concat(t.url," (").concat(t.status,"): ");try{const n=t.headers.get("Content-Type");let r=t.statusText;n.includes("application/json")&&(r+=" ".concat(await t.text())),e+=r,e=e.length>60?"".concat(e.slice(0,60),"..."):e}catch(n){}return e}(t);throw new Error(e)}}},6269:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"loader assertion failed.")}n.d(e,{h:function(){return r}})},4959:function(t,e,n){"use strict";n.d(e,{jU:function(){return i}});var r=n(3454);"undefined"!==typeof self&&self,"undefined"!==typeof window&&window,"undefined"!==typeof n.g&&n.g,"undefined"!==typeof document&&document;const i=Boolean("object"!==typeof r||"[object process]"!==String(r)||!0),o="undefined"!==typeof r&&r.version&&/v([0-9]*)/.exec(r.version);o&&parseFloat(o[1])},3982:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(4538),i=n(2525);const o={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};class s{static get DRAW_MODE(){return o}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:e=(0,r.hQ)("geometry"),drawMode:n=o.TRIANGLES,attributes:i={},indices:s=null,vertexCount:a=null}=t;this.id=e,this.drawMode=0|n,this.attributes={},this.userData={},this._setAttributes(i,s),this.vertexCount=a||this._calculateVertexCount(this.attributes,this.indices)}get mode(){return this.drawMode}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?{indices:this.indices,...this.attributes}:this.attributes}
1_print(t){return"Geometry ".concat(this.id," attribute ").concat(t)}_setAttributes(t,e){e&&(this.indices=ArrayBuffer.isView(e)?{value:e,size:1}:e);for(const n in t){let e=t[n];e=ArrayBuffer.isView(e)?{value:e}:e,(0,i.h)(ArrayBuffer.isView(e.value),"".concat(this._print(n),": must be typed array or object with value as typed array")),"POSITION"!==n&&"positions"!==n||e.size||(e.size=3),"indices"===n?((0,i.h)(!this.indices),this.indices=e):this.attributes[n]=e}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}_calculateVertexCount(t,e){if(e)return e.value.length;let n=1/0;for(const r in t){const e=t[r],{value:i,size:o,constant:s}=e;!s&&i&&o>=1&&(n=Math.min(n,i.length/o))}return(0,i.h)(Number.isFinite(n)),n}}},5462:function(t,e,n){"use strict";n.d(e,{Z:function(){return L}});var r=n(1418),i=n(3426),o=n(4072),s=n(3478),a=n(7577);let u=null;function c(t,e){var n;return new t((n=t.BYTES_PER_ELEMENT*e,(!u||u.byteLength<n)&&(u=new ArrayBuffer(n)),u),0,e)}var l=n(2525),h=n(3485);class f extends a.Z{get[Symbol.toStringTag](){return"VertexArrayObject"}static isSupported(t){return!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).constantAttributeZero||((0,r.D0)(t)||"Chrome"===(0,h.Z)())}static getDefaultArray(t){return t.luma=t.luma||{},t.luma.defaultVertexArray||(t.luma.defaultVertexArray=new f(t,{handle:null,isDefaultArray:!0})),t.luma.defaultVertexArray}static getMaxAttributes(t){return f.MAX_ATTRIBUTES=f.MAX_ATTRIBUTES||t.getParameter(34921),f.MAX_ATTRIBUTES}static setConstant(t,e,n){switch(n.constructor){case Float32Array:f._setConstantFloatArray(t,e,n);break;case Int32Array:f._setConstantIntArray(t,e,n);break;case Uint32Array:f._setConstantUintArray(t,e,n);break;default:(0,l.h)(!1)}}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.id||e.program&&e.program.id;super(t,Object.assign({},e,{id:n})),this.buffer=null,this.bufferValue=null,this.isDefaultArray=e.isDefaultArray||!1,this.gl2=t,this.initialize(e),Object.seal(this)}delete(){return super.delete(),this.buffer&&this.buffer.delete(),this}get MAX_ATTRIBUTES(){return f.getMaxAttributes(this.gl)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.setProps(t)}setProps(t){return this}setElementBuffer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,l.h)(!t||34963===t.target,"elements must be GL.ELEMENT_ARRAY_BUFFER"),this.bind((()=>{this.gl.bindBuffer(34963,t?t.handle:null)})),this}setBuffer(t,e,n){if(34963===e.target)return this.setElementBuffer(e,n);const{size:i,type:o,stride:s,offset:a,normalized:u,integer:c,divisor:h}=n,{gl:f,gl2:d}=this;return t=Number(t),this.bind((()=>{f.bindBuffer(34962,e.handle),c?((0,l.h)((0,r.D0)(f)),d.vertexAttribIPointer(t,i,o,s,a)):f.vertexAttribPointer(t,i,o,u,s,a),f.enableVertexAttribArray(t),d.vertexAttribDivisor(t,h||0)})),this}enable(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!e&&0===t&&!f.isSupported(this.gl,{constantAttributeZero:!0})||(t=Number(t),this.bind((()=>e?this.gl.enableVertexAttribArray(t):this.gl.disableVertexAttribArray(t)))),this}getConstantBuffer(t,e){const n=this._normalizeConstantArrayValue(e),r=n.byteLength*t,i=n.length*t;let o=!this.buffer;if(this.buffer=this.buffer||new s.Z(this.gl,r),o=o||this.buffer.reallocate(r),o=o||!this._compareConstantArrayValues(n,this.bufferValue),o){const t=c(e.constructor,i);!function(t){let{target:e,source:n,start:r=0,count:i=1}=t;const o=n.length,s=i*o;let a=0;for(let u=r;a<o;a++)e[u++]=n[a];for(;a<s;)a<s-a?(e.copyWithin(r+a,r,r+a),a*=2):(e.copyWithin(r+a,r,r+s-a),a=s)}({target:t,source:n,start:0,count:i}),this.buffer.subData(t),this.bufferValue=e}return this.buffer}_normalizeConstantArrayValue(t){return Array.isArray(t)?new Float32Array(t):t}_compareConstantArrayValues(t,e){if(!t||!e||t.length!==e.length||t.constructor!==e.constructor)return!1;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}static _setConstantFloatArray(t,e,n){switch(n.length){case 1:t.vertexAttrib1fv(e,n);break;case 2:t.vertexAttrib2fv(e,n);break;case 3:t.vertexAttrib3fv(e,n);break;case 4:t.vertexAttrib4fv(e,n);break;default:(0,l.h)(!1)}}static _setConstantIntArray(t,e,n){switch((0,l.h)((0,r.D0)(t)),n.length){case 1:t.vertexAttribI1iv(e,n);break;case 2:t.vertexAttribI2iv(e,n);break;case 3:t.vertexAttribI3iv(e,n);break;case 4:t.vertexAttribI4iv(e,n);break;default:(0,l.h)(!1)}}static _setConstantUintArray(t,e,n){switch((0,l.h)((0,r.D0)(t)),n.length){case 1:t.vertexAttribI1uiv(e,n);break;case 2:t.vertexAttribI2uiv(e,n);break;case 3:t.vertexAttribI3uiv(e,n);break;case 4:t.vertexAttribI4uiv(e,n);break;default:(0,l.h)(!1)}}_createHandle(){return this.gl.createVertexArray()}_deleteHandle(t){return this.gl2.deleteVertexArray(t),[this.elements]}_bindHandle(t){this.gl2.bindVertexArray(t)}_getParameter(t,e){let{location:n}=e;return(0,l.h)(Number.isFinite(n)),this.bind((()=>34373===t?this.gl.getVertexAttribOffset(n,t):this.gl.getVertexAttrib(n,t)))}}var d=n(7469);const p=/^(.+)__LOCATION_([0-9]+)$/,g=["setBuffers","setGeneric","clearBindings","setLocations","setGenericValues","setDivisor","enable","disable"];class m{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.id||e.program&&e.program.id;this.id=n,this.gl=t,this.configuration=null,this.elements=null,this.elementsAccessor=null,this.values=null,this.accessors=null,this.unused=null,this.drawParams=null,this.buffer=null,this.attributes={}
1,this.vertexArrayObject=new f(t),(0,d.F)(this,"VertexArray","v6.0",g),this.initialize(e),Object.seal(this)}delete(){this.buffer&&this.buffer.delete(),this.vertexArrayObject.delete()}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.reset(),this.configuration=null,this.bindOnUse=!1,this.setProps(t)}reset(){this.elements=null,this.elementsAccessor=null;const{MAX_ATTRIBUTES:t}=this.vertexArrayObject;return this.values=new Array(t).fill(null),this.accessors=new Array(t).fill(null),this.unused={},this.drawParams=null,this}setProps(t){return"program"in t&&(this.configuration=t.program&&t.program.configuration),"configuration"in t&&(this.configuration=t.configuration),"attributes"in t&&this.setAttributes(t.attributes),"elements"in t&&this.setElementBuffer(t.elements),"bindOnUse"in t&&(t=t.bindOnUse),this}clearDrawParams(){this.drawParams=null}getDrawParams(){return this.drawParams=this.drawParams||this._updateDrawParams(),this.drawParams}setAttributes(t){return Object.assign(this.attributes,t),this.vertexArrayObject.bind((()=>{for(const e in t){const n=t[e];this._setAttribute(e,n)}this.gl.bindBuffer(34962,null)})),this}setElementBuffer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.elements=t,this.elementsAccessor=e,this.clearDrawParams(),this.vertexArrayObject.setElementBuffer(t,e),this}setBuffer(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(34963===e.target)return this.setElementBuffer(e,n);const{location:r,accessor:i}=this._resolveLocationAndAccessor(t,e,e.accessor,n);return r>=0&&(this.values[r]=e,this.accessors[r]=i,this.clearDrawParams(),this.vertexArrayObject.setBuffer(r,e,i)),this}setConstant(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{location:r,accessor:i}=this._resolveLocationAndAccessor(t,e,Object.assign({size:e.length},n));return r>=0&&(e=this.vertexArrayObject._normalizeConstantArrayValue(e),this.values[r]=e,this.accessors[r]=i,this.clearDrawParams(),this.vertexArrayObject.enable(r,!1)),this}unbindBuffers(){return this.vertexArrayObject.bind((()=>{this.elements&&this.vertexArrayObject.setElementBuffer(null),this.buffer=this.buffer||new s.Z(this.gl,{accessor:{size:4}});for(let t=0;t<this.vertexArrayObject.MAX_ATTRIBUTES;t++)this.values[t]instanceof s.Z&&(this.gl.disableVertexAttribArray(t),this.gl.bindBuffer(34962,this.buffer.handle),this.gl.vertexAttribPointer(t,1,5126,!1,0,0))})),this}bindBuffers(){return this.vertexArrayObject.bind((()=>{this.elements&&this.setElementBuffer(this.elements);for(let t=0;t<this.vertexArrayObject.MAX_ATTRIBUTES;t++){const e=this.values[t];e instanceof s.Z&&this.setBuffer(t,e)}})),this}bindForDraw(t,e,n){let r;return this.vertexArrayObject.bind((()=>{this._setConstantAttributes(t,e),r=n()})),r}_resolveLocationAndAccessor(t,e,n,i){const s={location:-1,accessor:null},{location:a,name:u}=this._getAttributeIndex(t);if(!Number.isFinite(a)||a<0)return this.unused[t]=e,r.cM.once(3,(()=>"unused value ".concat(t," in ").concat(this.id)))(),s;const c=this._getAttributeInfo(u||a);if(!c)return s;const h=this.accessors[a]||{},f=o.Z.resolve(c.accessor,h,n,i),{size:d,type:p}=f;return(0,l.h)(Number.isFinite(d)&&Number.isFinite(p)),{location:a,accessor:f}}_getAttributeInfo(t){return this.configuration&&this.configuration.getAttributeInfo(t)}_getAttributeIndex(t){const e=Number(t);if(Number.isFinite(e))return{location:e};const n=p.exec(t),r=n?n[1]:t,i=n?Number(n[2]):0;return this.configuration?{location:this.configuration.getAttributeLocation(r)+i,name:r}:{location:-1}}_setAttribute(t,e){if(e instanceof s.Z)this.setBuffer(t,e);else if(Array.isArray(e)&&e.length&&e[0]instanceof s.Z){const n=e[0],r=e[1];this.setBuffer(t,n,r)}else if(ArrayBuffer.isView(e)||Array.isArray(e)){const n=e;this.setConstant(t,n)}else{if(!(e.buffer instanceof s.Z))throw new Error("VertexArray: attributes must be Buffers or constants (i.e. typed array)");{const n=e;this.setBuffer(t,n.buffer,n)}}}_setConstantAttributes(t,e){const n=Math.max(0|t,0|e);let r=this.values[0];ArrayBuffer.isView(r)&&this._setConstantAttributeZero(r,n);for(let i=1;i<this.vertexArrayObject.MAX_ATTRIBUTES;i++)r=this.values[i],ArrayBuffer.isView(r)&&this._setConstantAttribute(i,r)}_setConstantAttributeZero(t,e){if(f.isSupported(this.gl,{constantAttributeZero:!0}))return void this._setConstantAttribute(0,t);const n=this.vertexArrayObject.getConstantBuffer(e,t);
1this.vertexArrayObject.setBuffer(0,n,this.accessors[0])}_setConstantAttribute(t,e){f.setConstant(this.gl,t,e)}_updateDrawParams(){const t={isIndexed:!1,isInstanced:!1,indexCount:1/0,vertexCount:1/0,instanceCount:1/0};for(let e=0;e<this.vertexArrayObject.MAX_ATTRIBUTES;e++)this._updateDrawParamsForLocation(t,e);return this.elements&&(t.elementCount=this.elements.getElementCount(this.elements.accessor),t.isIndexed=!0,t.indexType=this.elementsAccessor.type||this.elements.accessor.type,t.indexOffset=this.elementsAccessor.offset||0),t.indexCount===1/0&&(t.indexCount=0),t.vertexCount===1/0&&(t.vertexCount=0),t.instanceCount===1/0&&(t.instanceCount=0),t}_updateDrawParamsForLocation(t,e){const n=this.values[e],r=this.accessors[e];if(!n)return;const{divisor:i}=r,o=i>0;if(t.isInstanced=t.isInstanced||o,n instanceof s.Z){const e=n;if(o){const n=e.getVertexCount(r);t.instanceCount=Math.min(t.instanceCount,n)}else{const n=e.getVertexCount(r);t.vertexCount=Math.min(t.vertexCount,n)}}}setElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.cM.deprecated("setElements","setElementBuffer")(),this.setElementBuffer(t,e)}}var y=n(4538),v=n(6047),b=n(5433),_=n(1053),w=n(9579),x=n(8522);function E(t,e){const{maxElts:n=16,size:r=1}=e;let i="[";for(let s=0;s<t.length&&s<n;++s)s>0&&(i+=",".concat(s%r===0?" ":"")),i+=A(t[s],e);const o=t.length>n?"...":"]";return"".concat(i).concat(o)}function A(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=1e-16,{isInteger:r=!1}=e;if(Array.isArray(t)||ArrayBuffer.isView(t))return E(t,e);if(!Number.isFinite(t))return String(t);if(Math.abs(t)<n)return r?"0":"0.";if(r)return t.toFixed(0);if(Math.abs(t)>100&&Math.abs(t)<1e4)return t.toFixed(0);const i=t.toPrecision(2),o=i.indexOf(".0");return o===i.length-2?i.slice(0,-1):i}function S(t,e,n,r){const{gl:i}=t;if(!e)return{[r]:"null","Format ":"N/A"};let o,a,u,c="NOT PROVIDED",l=1,h=0,f=0;if(n&&(c=n.type,l=n.size,c=String(c).replace("Array",""),o=-1!==c.indexOf("nt")),e instanceof s.Z){const t=e,{data:s,changed:d}=t.getDebugData();let p;if(a=d?"*":"",u=s,f=t.byteLength,h=f/s.BYTES_PER_ELEMENT/l,n){const t=n.divisor>0;p="".concat(t?"I ":"P "," ").concat(h," (x").concat(l,"=").concat(f," bytes ").concat((0,w.km)(i,c),")")}else o=!0,p="".concat(f," bytes");return{[r]:"".concat(a).concat(A(u,{size:l,isInteger:o})),"Format ":p}}return u=e,l=e.length,c=String(e.constructor.name).replace("Array",""),o=-1!==c.indexOf("nt"),{[r]:"".concat(A(u,{size:l,isInteger:o})," (constant)"),"Format ":"".concat(l,"x").concat(c," (constant)")}}function P(t,e){const{type:n,size:r}=e,i=(0,x.jG)(n,r);return i?"".concat(t," (").concat(i.name,")"):t}function O(t){let{header:e="Uniforms",program:n,uniforms:r,undefinedOnly:i=!1}=t;(0,l.h)(n);const o=".*Matrix",s=n._uniformSetters,a={},u=Object.keys(s).sort();let c=0;for(const l of u)l.match(".*_.*")||l.match(o)||T({table:a,header:e,uniforms:r,uniformName:l,undefinedOnly:i})&&c++;for(const l of u)l.match(o)&&T({table:a,header:e,uniforms:r,uniformName:l,undefinedOnly:i})&&c++;for(const l of u)a[l]||T({table:a,header:e,uniforms:r,uniformName:l,undefinedOnly:i})&&c++;let h=0;const f={};if(!i)for(const l in r){const t=r[l];a[l]||(h++,f[l]={Type:"NOT USED: ".concat(t),[e]:A(t)})}return{table:a,count:c,unusedTable:f,unusedCount:h}}function T(t){let{table:e,header:n,uniforms:r,uniformName:i,undefinedOnly:o}=t;const s=r[i],a=function(t){return void 0!==t&&null!==t}(s);return(!o||!a)&&(e[i]={[n]:a?A(s):"N/A","Uniform Type":a?s:"NOT PROVIDED"},!0)}function C(t){const{type:e,size:n}=t.accessor,r=(0,x.jG)(e,n);return r?"".concat(r.name," ").concat(t.name):t.name}const M={POSITION:"positions",NORMAL:"normals",COLOR_0:"colors",TEXCOORD_0:"texCoords",TEXCOORD_1:"texCoords1",TEXCOORD_2:"texCoords2"};function D(t,e){const{attributeMap:n=M}=e||{};return n&&n[t]||t}function k(t,e){let n;switch(t){case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":n="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":n="vectors"}switch(n){case"vectors":e.size=e.size||3;break;case"uvs":e.size=e.size||2}(0,l.h)(Number.isFinite(e.size),"attribute ".concat(t," needs size"))}const j=()=>{},F={};class L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{id:n=(0,y.hQ)("model")}=e;(0,l.h)((0,r.UF)(t)),this.id=n,this.gl=t,this.id=e.id||(0,y.hQ)("Model"),this.lastLogTime=0,this.animated=!1,this.initialize(e)}initialize(t){this.props={},this.programManager=t.programManager||i.Z.getDefaultProgramManager(this.gl),this._programManagerState=-1,this._managedProgram=!1;const{program:e=null,vs:n,fs:r,modules:o,defines:s,inject:a,varyings:u,bufferMode:c,transpileToGLSL100:h}=t;this.programProps={program:e,vs:n,fs:r,modules:o,defines:s,inject:a,varyings:u,bufferMode:c,transpileToGLSL100:h},this.program=null,this.vertexArray=null,this._programDirty=!0,this.userData={},this.needsRedraw=!0,this._attributes={},this.attributes={},this.uniforms={},this.pickable=!0,this._checkProgram(),this.setUniforms(Object.assign({},this.getModuleUniforms(t.moduleSettings))),this.drawMode=void 0!==t.drawMode?t.drawMode:4,this.vertexCount=t.vertexCount||0,this.geometryBuffers={},this.isInstanced=t.isInstanced||t.instanced||t.instanceCount>0,this._setModelProps(t),this.geometry={},(0,l.h)(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount")}setProps(t){this._setModelProps(t)}delete(){for(const t in this._attributes)this._attributes[t]!==this.attributes[t]&&this._attributes[t].delete();this._managedProgram&&(this.programManager.release(this.program),this._managedProgram=!1),this.vertexArray.delete(),this._deleteGeometryBuffers()}getDrawMode(){return this.drawMode}getVertexCount(){return this.vertexCount}getInstanceCount(){return this.instanceCount}getAttributes(){return this.attributes}getProgram(){return this.program}setProgram(t){const{program:e,vs:n,fs:r,modules:i,defines:o,inject:s,varyings:a,bufferMode:u,transpileToGLSL100:c}=t;this.programProps={program:e,vs:n,fs:r,modules:i,defines:o,inject:s,varyings:a,bufferMode:u,transpileToGLSL100:c},this._programDirty=!0}getUniforms(){return this.uniforms}setDrawMode(t){return this.drawMode=t,this}setVertexCount(t){return(0,l.h)(Number.isFinite(t)),this.vertexCount=t,this}setInstanceCount(t){return(0,l.h)(Number.isFinite(t)),this.instanceCount=t,this}setGeometry(t){return this.drawMode=t.drawMode,this.vertexCount=t.getVertexCount(),this._deleteGeometryBuffers(),this.geometryBuffers=function(t,e,n){const r={};let i=e.indices;for(const o in e.attributes){const a=e.attributes[o],u=D(o,n);if("indices"===o)i=a;else if(a.constant)r[u]=a.value;else{const e=a.value,n={...a};delete n.value,r[u]=[new s.Z(t,e),n],k(o,n)}}if(i){const e=i.value||i;(0,l.h)(e instanceof Uint16Array||e instanceof Uint32Array,'attribute array for "indices" must be of integer type');const n={size:1,isIndexed:void 0===i.isIndexed||i.isIndexed};r.indices=[new s.Z(t,{data:e,target:34963}),n]}return r}(this.gl,t),this.vertexArray.setAttributes(this.geometryBuffers),this}setAttributes(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,y.nK)(t))return this;const e={};for(const n in t){const r=t[n];e[n]=r.getValue?r.getValue():r}return this.vertexArray.setAttributes(e),this}setUniforms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.uniforms,t),this}getModuleUniforms(t){this._checkProgram();const e=this.programManager.getUniforms(this.program);return e?e(t):{}}updateModuleSettings(t){const e=this.getModuleUniforms(t||{});return this.setUniforms(e)}clear(t){return(0,v.Z)(this.program.gl,t),this}draw(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._checkProgram();const{moduleSettings:e=null,framebuffer:n,uniforms:i={},attributes:o={},transformFeedback:s=this.transformFeedback,parameters:a={},vertexArray:u=this.vertexArray}=t;let c;this.setAttributes(o),this.updateModuleSettings(e),this.setUniforms(i),r.cM.priority>=2&&(c=this._logDrawCallStart(2));const l=this.vertexArray.getDrawParams(),{isIndexed:h=l.isIndexed,indexType:f=l.indexType,indexOffset:d=l.indexOffset,vertexArrayInstanced:p=l.isInstanced}=this.props;p&&!this.isInstanced&&r.cM.warn("Found instanced attributes on non-instanced model",this.id)();const{isInstanced:g,instanceCount:m}=this,{onBeforeRender:y=j,onAfterRender:v=j}=this.props;y(),this.program.setUniforms(this.uniforms);const b=this.program.draw(Object.assign(F,t,{logPriority:c,uniforms:null,framebuffer:n,parameters:a,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:u,transformFeedback:s,isIndexed:h,indexType:f,isInstanced:g,instanceCount:m,offset:h?d:0}));return v(),r.cM.priority>=2&&this._logDrawCallEnd(c,u,n),b}transform(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{discard:e=!0,feedbackBuffers:n,unbindModels:r=[]}=t;let{parameters:i}=t;n&&this._setFeedbackBuffers(n),e&&(i=Object.assign({},i,{35977:e})),r.forEach((t=>t.vertexArray.unbindBuffers()));try{this.draw(Object.assign({},t,{parameters:i}))}finally{r.forEach((t=>t.vertexArray.bindBuffers()))}return this}render(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.cM.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")(),this.setUniforms(t).draw()}_setModelProps(t){Object.assign(this.props,t),"uniforms"in t&&this.setUniforms(t.uniforms),"pickable"in t&&(this.pickable=t.pickable),"instanceCount"in t&&(this.instanceCount=t.instanceCount),"geometry"in t&&this.setGeometry(t.geometry),"attributes"in t&&this.setAttributes(t.attributes),"_feedbackBuffers"in t&&this._setFeedbackBuffers(t._feedbackBuffers)}_checkProgram(){if(!(this._programDirty||this.programManager.stateHash!==this._programManagerState))return;let{program:t}=this.programProps;if(t)this._managedProgram=!1;else{const{vs:e,fs:n,modules:r,inject:i,defines:o,varyings:s,bufferMode:a,transpileToGLSL100:u}=this.programProps;t=this.programManager.get({vs:e,fs:n,modules:r,inject:i,defines:o,varyings:s,bufferMode:a,transpileToGLSL100:u}),this.program&&this._managedProgram&&this.programManager.release(this.program),this._programManagerState=this.programManager.stateHash,this._managedProgram=!0}(0,l.h)(t instanceof b.Z,"Model needs a program"),this._programDirty=!1,t!==this.program&&(this.program=t,this.vertexArray?this.vertexArray.setProps({program:this.program,attributes:this.vertexArray.attributes}):this.vertexArray=new m(this.gl,{program:this.program}),this.setUniforms(Object.assign({},this.getModuleUniforms())))}_deleteGeometryBuffers(){for(const t in this.geometryBuffers){const e=this.geometryBuffers[t][0]||this.geometryBuffers[t];e instanceof s.Z&&e.delete()}}_setAnimationProps(t){this.animated&&(0,l.h)(t,"Model.draw(): animated uniforms but no animationProps")}_setFeedbackBuffers(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,y.nK)(t))return this;const{gl:e}=this.program;return this.transformFeedback=this.transformFeedback||new _.Z(e,{program:this.program}),this.transformFeedback.setBuffers(t),this}_logDrawCallStart(t){const e=t>3?0:1e4;
1if(!(Date.now()-this.lastLogTime<e))return this.lastLogTime=Date.now(),r.cM.group(2,">>> DRAWING MODEL ".concat(this.id),{collapsed:r.cM.level<=2})(),t}_logDrawCallEnd(t,e,n,i){if(void 0===t)return;const o=function(t){let{vertexArray:e,header:n="Attributes"}=t;if(!e.configuration)return{};const r={};e.elements&&(r.ELEMENT_ARRAY_BUFFER=S(e,e.elements,null,n));const i=e.values;for(const o in i){const t=e._getAttributeInfo(o);if(t){let s="".concat(o,": ").concat(t.name);const a=e.accessors[t.location];a&&(s="".concat(o,": ").concat(P(t.name,a))),r[s]=S(e,i[o],a,n)}}return r}({vertexArray:e,header:"".concat(this.id," attributes"),attributes:this._attributes}),{table:s,unusedTable:a,unusedCount:u}=O({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,n)}),{table:c,count:l}=O({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,n),undefinedOnly:!0});l>0&&r.cM.log("MISSING UNIFORMS",Object.keys(c))(),u>0&&r.cM.log("UNUSED UNIFORMS",Object.keys(a))();const h=function(t){const e={},n="Accessors for ".concat(t.id);for(const r of t.attributeInfos)if(r){const t=C(r);e["in ".concat(t)]={[n]:JSON.stringify(r.accessor)}}for(const r of t.varyingInfos)if(r){const t=C(r);e["out ".concat(t)]={[n]:JSON.stringify(r.accessor)}}return e}(this.vertexArray.configuration);r.cM.table(t,o)(),r.cM.table(t,s)(),r.cM.table(t+1,h)(),i&&i.log({logLevel:2,message:"Rendered to ".concat(i.id)}),r.cM.groupEnd(2)()}}},3426:function(t,e,n){"use strict";n.d(e,{Z:function(){return B}});var r=n(5682),i=n(9047);const o={number:{validate:(t,e)=>Number.isFinite(t)&&(!("max"in e)||t<=e.max)&&(!("min"in e)||t>=e.min)},array:{validate:(t,e)=>Array.isArray(t)||ArrayBuffer.isView(t)}};function s(t){let e=a(t);return"object"===e?t?"type"in t?Object.assign({},t,o[t.type]):"value"in t?(e=a(t.value),Object.assign({type:e},t,o[e])):{type:"object",value:t}:{type:"object",value:null}:Object.assign({type:e,value:t},o[e])}function a(t){return Array.isArray(t)||ArrayBuffer.isView(t)?"array":typeof t}class u{constructor(t){let{name:e,vs:n,fs:r,dependencies:o=[],uniforms:a,getUniforms:u,deprecations:c=[],defines:l={},inject:h={},vertexShader:f,fragmentShader:d}=t;(0,i.Z)("string"===typeof e),this.name=e,this.vs=n||f,this.fs=r||d,this.getModuleUniforms=u,this.dependencies=o,this.deprecations=this._parseDeprecationDefinitions(c),this.defines=l,this.injections=function(t){const e={vs:{},fs:{}};for(const n in t){let r=t[n];const i=n.slice(0,2);"string"===typeof r&&(r={order:0,injection:r}),e[i][n]=r}return e}(h),a&&(this.uniforms=function(t){const e={};for(const n in t){const r=s(t[n]);e[n]=r}return e}(a))}getModuleSource(t){let e;switch(t){case"vs":e=this.vs||"";break;case"fs":e=this.fs||"";break;default:(0,i.Z)(!1)}return"#define MODULE_".concat(this.name.toUpperCase().replace(/[^0-9a-z]/gi,"_"),"\n").concat(e,"// END MODULE_").concat(this.name,"\n\n")}getUniforms(t,e){return this.getModuleUniforms?this.getModuleUniforms(t,e):this.uniforms?this._defaultGetUniforms(t):{}}getDefines(){return this.defines}checkDeprecations(t,e){this.deprecations.forEach((n=>{n.regex.test(t)&&(n.deprecated?e.deprecated(n.old,n.new)():e.removed(n.old,n.new)())}))}_parseDeprecationDefinitions(t){return t.forEach((t=>{if("function"===t.type)t.regex=new RegExp("\\b".concat(t.old,"\\("));else t.regex=new RegExp("".concat(t.type," ").concat(t.old,";"))})),t}_defaultGetUniforms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={},n=this.uniforms;for(const r in n){const o=n[r];r in t&&!o.private?(o.validate&&(0,i.Z)(o.validate(t[r],o),"".concat(this.name,": invalid ").concat(r)),e[r]=t[r]):e[r]=o.value}return e}}function c(t){return l(f(t))}function l(t){const e={},n={};return h({modules:t,level:0,moduleMap:e,moduleDepth:n}),Object.keys(n).sort(((t,e)=>n[e]-n[t])).map((t=>e[t]))}function h(t){let{modules:e,level:n,moduleMap:r,moduleDepth:i}=t;if(n>=5)throw new Error("Possible loop in shader dependency graph");for(const o of e)r[o.name]=o,(void 0===i[o.name]||i[o.name]<n)&&(i[o.name]=n);for(const o of e)o.dependencies&&h({modules:o.dependencies,level:n+1,moduleMap:r,moduleDepth:i})}function f(t,e){return t.map((t=>(t instanceof u||((0,i.Z)("string"!==typeof t,"Shader module use by name is deprecated. Import shader module '".concat(t,"' and use it directly.")),(0,i.Z)(t.name,"shader module has no name"),(t=new u(t)).dependencies=f(t.dependencies)),t)))}function d(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e="undefined"!==typeof window&&window.navigator||{},n=t.userAgent||e.userAgent||"",r=-1!==n.indexOf("MSIE "),i=-1!==n.indexOf("Trident/");return r||i}const p={GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]},g={};
1Object.keys(p).forEach((t=>{g[t]=t}));const m={};function y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=p[e];if((0,i.Z)(r,e),!d(n))return!0;if(e in m)return m[e];const o=r[0],s=n.behavior||"enable",a="#extension GL_".concat(o," : ").concat(s,"\nvoid main(void) {}"),u=t.createShader(35633);t.shaderSource(u,a),t.compileShader(u);const c=t.getShaderParameter(u,35713);return t.deleteShader(u),m[e]=c,c}function v(t,e){const n=p[e];(0,i.Z)(n,e);const r=function(t){return"undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&2===t._version)}(t)&&n[1]||n[0],o="string"===typeof r?Boolean(t.getExtension(r)):r;return(0,i.Z)(!1===o||!0===o),o}function b(t,e){return(e=Array.isArray(e)?e:[e]).every((e=>v(t,e)))}var _=n(827);function w(t){return new RegExp("\\b".concat(t,"[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)"),"g")}const x=[[/^(#version[ \t]+(100|300[ \t]+es))?[ \t]*\n/,"#version 300 es\n"],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],E=[...x,[w("attribute"),"in $1"],[w("varying"),"out $1"]],A=[...x,[w("varying"),"in $1"]],S=[[/^#version[ \t]+300[ \t]+es/,"#version 100"],[/\btexture(2D|2DProj|Cube)Lod\(/g,"texture$1LodEXT("],[/\btexture\(/g,"texture2D("],[/\btextureLod\(/g,"texture2DLodEXT("]],P=[...S,[w("in"),"attribute $1"],[w("out"),"varying $1"]],O=[...S,[w("in"),"varying $1"]],T="gl_FragColor",C=/\bout[ \t]+vec4[ \t]+(\w+)[ \t]*;\n?/,M=/void\s+main\s*\([^)]*\)\s*\{\n?/;function D(t,e,n){switch(e){case 300:return n?k(t,E):function(t){const e=(t=k(t,A)).match(C);if(e){const n=e[1];t=t.replace(new RegExp("\\b".concat(T,"\\b"),"g"),n)}else{const e="fragmentColor";t=t.replace(M,(t=>"out vec4 ".concat(e,";\n").concat(t))).replace(new RegExp("\\b".concat(T,"\\b"),"g"),e)}return t}(t);case 100:return n?k(t,P):function(t){const e=(t=k(t,O)).match(C);if(e){const n=e[1];t=t.replace(C,"").replace(new RegExp("\\b".concat(n,"\\b"),"g"),T)}return t}(t);default:throw new Error("unknown GLSL version ".concat(e))}}function k(t,e){for(const[n,r]of e)t=t.replace(n,r);return t}const j="\n\n".concat(_.O_,"\n\n"),F={[r.H]:"vertex",[r.Y]:"fragment"};function L(t,e){let{id:n,source:o,type:s,modules:a,defines:u={},hookFunctions:c=[],inject:l={},transpileToGLSL100:h=!1,prologue:f=!0,log:d}=e;(0,i.Z)("string"===typeof o,"shader source must be a string");const p=s===r.H,m=o.split("\n");let v=100,w="",x=o;0===m[0].indexOf("#version ")?(v=300,w=m[0],x=m.slice(1).join("\n")):w="#version ".concat(v);const E={};a.forEach((t=>{Object.assign(E,t.getDefines())})),Object.assign(E,u);let A=f?"".concat(w,"\n").concat(function(t){let{id:e,source:n,type:r}=t;return e&&"string"===typeof e&&-1===n.indexOf("SHADER_NAME")?"\n#define SHADER_NAME ".concat(e,"_").concat(F[r],"\n\n"):""}({id:n,source:o,type:s}),"\n").concat(function(t){let{type:e}=t;return"\n#define SHADER_TYPE_".concat(F[e].toUpperCase(),"\n")}({type:s}),"\n").concat(function(t){const e=function(t){const e=t.getExtension("WEBGL_debug_renderer_info"),n=t.getParameter(e&&e.UNMASKED_VENDOR_WEBGL||7936),r=t.getParameter(e&&e.UNMASKED_RENDERER_WEBGL||7937),i=function(t,e){return t.match(/NVIDIA/i)||e.match(/NVIDIA/i)?"NVIDIA":t.match(/INTEL/i)||e.match(/INTEL/i)?"INTEL":t.match(/AMD/i)||e.match(/AMD/i)||t.match(/ATI/i)||e.match(/ATI/i)?"AMD":"UNKNOWN GPU"}(n,r);return{gpuVendor:i,vendor:n,renderer:r,version:t.getParameter(7938),shadingLanguageVersion:t.getParameter(35724)}}(t);switch(e.gpuVendor.toLowerCase()){case"nvidia":return"#define NVIDIA_GPU\n// Nvidia optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n";case"intel":return"#define INTEL_GPU\n// Intel optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n";case"amd":return"#define AMD_GPU\n";default:return"#define DEFAULT_GPU\n// Prevent driver from optimizing away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n"}}(t),"\n").concat(function(t,e,n){let r="#if (__VERSION__ > 120)\n\n# define FEATURE_GLSL_DERIVATIVES\n# define FEATURE_GLSL_DRAW_BUFFERS\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FEATURE_GLSL_TEXTURE_LOD\n\n// DEPRECATED FLAGS, remove in v9\n# define FRAG_DEPTH\n# define DERIVATIVES\n# define DRAW_BUFFERS\n# define TEXTURE_LOD\n\n#endif // __VERSION\n";
1return b(t,g.GLSL_FRAG_DEPTH)&&(r+="\n// FRAG_DEPTH => gl_FragDepth is available\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FRAG_DEPTH\n# define gl_FragDepth gl_FragDepthEXT\n#endif\n"),b(t,g.GLSL_DERIVATIVES)&&y(t,g.GLSL_DERIVATIVES)&&(r+="\n// DERIVATIVES => dxdF, dxdY and fwidth are available\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n# define FEATURE_GLSL_DERIVATIVES\n# define DERIVATIVES\n#endif\n"),b(t,g.GLSL_FRAG_DATA)&&y(t,g.GLSL_FRAG_DATA,{behavior:"require"})&&(r+="\n// DRAW_BUFFERS => gl_FragData[] is available\n#ifdef GL_EXT_draw_buffers\n#extension GL_EXT_draw_buffers : require\n#define FEATURE_GLSL_DRAW_BUFFERS\n#define DRAW_BUFFERS\n#endif\n"),b(t,g.GLSL_TEXTURE_LOD)&&(r+="// TEXTURE_LOD => texture2DLod etc are available\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod : enable\n\n# define FEATURE_GLSL_TEXTURE_LOD\n# define TEXTURE_LOD\n\n#endif\n"),r}(t),"\n").concat(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=0,n="";for(const r in t){0===e&&(n+="\n// APPLICATION DEFINES\n"),e++;const i=t[r];(i||Number.isFinite(i))&&(n+="#define ".concat(r.toUpperCase()," ").concat(t[r],"\n"))}0===e&&(n+="\n");return n}(E),"\n").concat(p?"":"precision highp float;\n\n","\n"):"".concat(w,"\n");const S=function(t){const e={vs:{},fs:{}};return t.forEach((t=>{let n;"string"!==typeof t?(n=t,t=n.hook):n={},t=t.trim();const[r,i]=t.split(":"),o=t.replace(/\(.+/,"");e[r][o]=Object.assign(n,{signature:i})})),e}(c),P={},O={},T={};for(const r in l){const t="string"===typeof l[r]?{injection:l[r],order:0}:l[r],e=r.match(/^(v|f)s:(#)?([\w-]+)$/);if(e){const n=e[2],i=e[3];n?"decl"===i?O[r]=[t]:T[r]=[t]:P[r]=[t]}else T[r]=[t]}for(const r of a){d&&r.checkDeprecations(x,d);A+=r.getModuleSource(s,v);const t=r.injections[s];for(const e in t){const n=e.match(/^(v|f)s:#([\w-]+)$/);if(n){const r="decl"===n[2]?O:T;r[e]=r[e]||[],r[e].push(t[e])}else P[e]=P[e]||[],P[e].push(t[e])}}return A+=j,A=(0,_.ZP)(A,s,O),A+=function(t,e){let n="";for(const r in t){const i=t[r];if(n+="void ".concat(i.signature," {\n"),i.header&&(n+=" ".concat(i.header)),e[r]){const t=e[r];t.sort(((t,e)=>t.order-e.order));for(const e of t)n+=" ".concat(e.injection,"\n")}i.footer&&(n+=" ".concat(i.footer)),n+="}\n"}return n}(S[s],P),A+=x,A=(0,_.ZP)(A,s,T),A=D(A,h?100:v,p),A}function I(t){return function(e){const n={};for(const r of t){const t=r.getUniforms(e,n);Object.assign(n,t)}return n}}var R=n(5433);class B{static getDefaultProgramManager(t){return t.luma=t.luma||{},t.luma.defaultProgramManager=t.luma.defaultProgramManager||new B(t),t.luma.defaultProgramManager}constructor(t){this.gl=t,this._programCache={},this._getUniforms={},this._registeredModules={},this._hookFunctions=[],this._defaultModules=[],this._hashes={},this._hashCounter=0,this.stateHash=0,this._useCounts={}}addDefaultModule(t){this._defaultModules.find((e=>e.name===t.name))||this._defaultModules.push(t),this.stateHash++}removeDefaultModule(t){const e="string"===typeof t?t:t.name;this._defaultModules=this._defaultModules.filter((t=>t.name!==e)),this.stateHash++}addShaderHook(t,e){e&&(t=Object.assign(e,{hook:t})),this._hookFunctions.push(t),this.stateHash++}get(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{vs:e="",fs:n="",defines:i={},inject:o={},varyings:s=[],bufferMode:a=35981,transpileToGLSL100:u=!1}=t,l=this._getModuleList(t.modules),h=this._getHash(e),f=this._getHash(n),d=l.map((t=>this._getHash(t.name))).sort(),p=s.map((t=>this._getHash(t))),g=Object.keys(i).sort(),m=Object.keys(o).sort(),y=[],v=[];for(const r of g)y.push(this._getHash(r)),y.push(this._getHash(i[r]));for(const r of m)v.push(this._getHash(r)),v.push(this._getHash(o[r]));const b="".concat(h,"/").concat(f,"D").concat(y.join("/"),"M").concat(d.join("/"),"I").concat(v.join("/"),"V").concat(p.join("/"),"H").concat(this.stateHash,"B").concat(a).concat(u?"T":"");if(!this._programCache[b]){const t=function(t,e){const{vs:n,fs:i}=e,o=c(e.modules||[]);return{gl:t,vs:L(t,Object.assign({},e,{source:n,type:r.H,modules:o})),fs:L(t,Object.assign({},e,{source:i,type:r.Y,modules:o})),getUniforms:I(o)}}(this.gl,{vs:e,fs:n,modules:l,inject:o,defines:i,hookFunctions:this._hookFunctions,transpileToGLSL100:u});this._programCache[b]=new R.Z(this.gl,{hash:b,vs:t.vs,fs:t.fs,varyings:s,bufferMode:a}),this._getUniforms[b]=t.getUniforms||(t=>{}),this._useCounts[b]=0}return this._useCounts[b]++,this._programCache[b]}getUniforms(t){return this._getUniforms[t.hash]||null}release(t){const e=t.hash;this._useCounts[e]--,0===this._useCounts[e]&&(this._programCache[e].delete(),delete this._programCache[e],delete this._getUniforms[e],delete this._useCounts[e])}_getHash(t){return void 0===this._hashes[t]&&(this._hashes[t]=this._hashCounter++),this._hashes[t]}_getModuleList(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=new Array(this._defaultModules.length+t.length),n={};let r=0;for(let i=0,o=this._defaultModules.length;i<o;++i){const t=this._defaultModules[i],o=t.name;e[r++]=t,n[o]=!0}for(let i=0,o=t.length;i<o;++i){const o=t[i],s=o.name;n[s]||(e[r++]=o,n[s]=!0)}return e.length=r,e}}},1418:function(t,e,n){"use strict";n.d(e,{KQ:function(){return l},JD:function(){return c}
1,s9:function(){return et},JY:function(){return X},w:function(){return H},vd:function(){return u},yW:function(){return nt},UF:function(){return s},D0:function(){return a},cM:function(){return r},kL:function(){return G},aQ:function(){return rt},dR:function(){return V},s8:function(){return W}});const r=new(n(6426).Z)({id:"luma.gl"});function i(t,e){if(!t)throw new Error(e||"luma.gl: assertion failed.")}const o="Invalid WebGLRenderingContext";function s(t){return"undefined"!==typeof WebGLRenderingContext&&t instanceof WebGLRenderingContext||("undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&Number.isFinite(t._version)))}function a(t){return"undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&2===t._version)}function u(t){return a(t)?t:null}function c(t){return i(s(t),o),t}function l(t){return i(a(t),"Requires WebGL2"),t}const h={};function f(t,e){var n;h[t]=!0,void 0!==e&&(n=e,globalThis.console&&globalThis.console.error&&globalThis.console.error(n))}const d=function t(e){const n=e.gl;this.ext=e,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(e.maxVertexAttribs);for(let r=0;r<this.attribs.length;r++){const e=new t.VertexAttrib(n);this.attribs[r]=e}this.maxAttrib=0};(d.VertexAttrib=function(t){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};const p=function(t){const e=this;this.gl=t,function(t){const e=t.getError;t.getError=function(){let n;do{n=e.apply(t),0!==n&&(h[n]=!0)}while(0!==n);for(n in h)if(h[n])return delete h[n],parseInt(n,10);return 0}}(t);const n=this.original={getParameter:t.getParameter,enableVertexAttribArray:t.enableVertexAttribArray,disableVertexAttribArray:t.disableVertexAttribArray,bindBuffer:t.bindBuffer,getVertexAttrib:t.getVertexAttrib,vertexAttribPointer:t.vertexAttribPointer};t.getParameter=function(t){return t===e.VERTEX_ARRAY_BINDING_OES?e.currentVertexArrayObject===e.defaultVertexArrayObject?null:e.currentVertexArrayObject:n.getParameter.apply(this,arguments)},t.enableVertexAttribArray=function(t){const r=e.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,t);const i=r.attribs[t];return i.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},t.disableVertexAttribArray=function(t){const r=e.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,t);const i=r.attribs[t];return i.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},t.bindBuffer=function(t,r){switch(t){case 34962:e.currentArrayBuffer=r;break;case 34963:e.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},t.getVertexAttrib=function(t,r){const i=e.currentVertexArrayObject,o=i.attribs[t];switch(r){case 34975:return o.buffer;case 34338:return o.enabled;case 34339:return o.size;case 34340:return o.stride;case 34341:return o.type;case 34922:return o.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},t.vertexAttribPointer=function(t,r,i,o,s,a){const u=e.currentVertexArrayObject;u.maxAttrib=Math.max(u.maxAttrib,t);const c=u.attribs[t];return c.buffer=e.currentArrayBuffer,c.size=r,c.type=i,c.normalized=o,c.stride=s,c.offset=a,c.recache(),n.vertexAttribPointer.apply(this,arguments)},t.instrumentExtension&&t.instrumentExtension(this,"OES_vertex_array_object"),t.canvas&&t.canvas.addEventListener("webglcontextrestored",(()=>{var t;t="OESVertexArrayObject emulation library context restored",globalThis.console&&globalThis.console.log&&globalThis.console.log(t),e.reset_()}),!0),this.reset_()};p.prototype.VERTEX_ARRAY_BINDING_OES=34229,p.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(let e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;const t=this.gl;this.maxVertexAttribs=t.getParameter(34921),this.defaultVertexArrayObject=new d(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},p.prototype.createVertexArrayOES=function(){const t=new d(this);return this.vertexArrayObjects.push(t),t},p.prototype.deleteVertexArrayOES=function(t){t.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(t),1),this.currentVertexArrayObject===t&&this.bindVertexArrayOES(null)},p.prototype.isVertexArrayOES=function(t){return!!(t&&t instanceof d&&t.hasBeenBound&&t.ext===this)},p.prototype.bindVertexArrayOES=function(t){const e=this.gl;if(t&&!t.isAlive)return void f(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject");const n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=t||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;const i=this.currentVertexArrayObject;if(r===i)return;r&&i.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(e,34963,i.elementArrayBuffer);let o=this.currentArrayBuffer;const s=Math.max(r?r.maxAttrib:0,i.maxAttrib);for(let a=0;a<=s;a++){const t=i.attribs[a],s=r?r.attribs[a]:null;if(r&&t.enabled===s.enabled||(t.enabled?n.enableVertexAttribArray.call(e,a):n.disableVertexAttribArray.call(e,a)),t.enabled){let i=!1;r&&t.buffer===s.buffer||(o!==t.buffer&&(n.bindBuffer.call(e,34962,t.buffer),o=t.buffer),i=!0),(i||t.cached!==s.cached)&&n.vertexAttribPointer.call(e,a,t.size,t.type,t.normalized,t.stride,t.offset)}}this.currentArrayBuffer!==o&&n.bindBuffer.call(e,34962,this.currentArrayBuffer)};const g="OES_element_index",m="WEBGL_draw_buffers",y="WEBGL_debug_renderer_info",v=t=>a(t)?void 0:0,b={3074:t=>a(t)?void 0:36064,35723:t=>a(t)?void 0:4352,35977:v,32937:v,36795:(t,e)=>{const n=a(t)?t.getExtension("EXT_disjoint_timer_query_webgl2"):t.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?e(n.GPU_DISJOINT_EXT):0},37445:(t,e)=>{const n=t.getExtension(y);return e(n&&n.UNMASKED_VENDOR_WEBGL||7936)},37446:(t,e)=>{const n=t.getExtension(y);return e(n&&n.UNMASKED_RENDERER_WEBGL||7937)},34047:(t,e)=>{const n=t.luma.extensions.EXT_texture_filter_anisotropic;return n?e(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},32883:v,35071:v,37447:v,36063:(t,e)=>{if(!a(t)){const n=t.getExtension(m);return n?e(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}},35379:v,35374:v,35377:v,34852:t=>{if(!a(t)){const e=t.getExtension(m);return e?e.MAX_DRAW_BUFFERS_WEBGL:0}},36203:t=>t.getExtension(g)?2147483647:65535,33001:t=>t.getExtension(g)?16777216:65535,33e3:t=>16777216,37157:v,35373:v,35657:v,36183:v,37137:v,34045:v,35978:v,35979:v,35968:v,35376:v,35375:v,35659:v,37154:v,35371:v,35658:v,35076:v,35077:v,35380:v};const _="ANGLE_instanced_arrays";const w={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{i(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},[_]:{meta:{suffix:"ANGLE"},vertexAttribDivisor(t,e){i(0===e,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{i(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"}
1,createQuery:()=>{i(!1)},deleteQuery:()=>{i(!1)},beginQuery:()=>{i(!1)},endQuery:()=>{},getQuery(t,e){return this.getQueryObject(t,e)},getQueryParameter(t,e){return this.getQueryObject(t,e)},getQueryObject:()=>{}}},x={readBuffer:(t,e,n)=>{a(t)&&e(n)},getVertexAttrib:(t,e,n,r)=>{const{webgl2:i,ext:o}=function(t,e){return{webgl2:a(t),ext:t.getExtension(e)}}(t,_);let s;switch(r){case 35069:s=!!i&&void 0;break;case 35070:s=i||o?void 0:0}return void 0!==s?s:e(n,r)},getProgramParameter:(t,e,n,r)=>{if(!a(t))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return e(n,r)},getInternalformatParameter:(t,e,n,r,i)=>a(t)||32937!==i?t.getInternalformatParameter(n,r,i):new Int32Array([0]),getTexParameter(t,e,n,r){if(34046===r){const{extensions:e}=t.luma,n=e.EXT_texture_filter_anisotropic;r=n&&n.TEXTURE_MAX_ANISOTROPY_EXT||34046}return e(n,r)},getParameter:function(t,e,n){const r=b[n],i="function"===typeof r?r(t,e,n):r;return void 0!==i?i:e(n)},hint:(t,e,n,r)=>e(n,r)};function E(t,e){let{extension:n,target:r,target2:o}=e;const s=w[n];i(s);const{meta:a={}}=s,{suffix:u=""}=a,c=t.getExtension(n);for(const i of Object.keys(s)){const e="".concat(i).concat(u);let n=null;"meta"===i||"function"===typeof t[i]||(c&&"function"===typeof c[e]?n=function(){return c[e](...arguments)}:"function"===typeof s[i]&&(n=s[i].bind(r))),n&&(r[i]=n,o[i]=n)}}globalThis.polyfillContext=function(t){t.luma=t.luma||{};const{luma:e}=t;return e.polyfilled||(!function(t){if("function"===typeof t.createVertexArray)return;const e=t.getSupportedExtensions;t.getSupportedExtensions=function(){const t=e.call(this)||[];return t.indexOf("OES_vertex_array_object")<0&&t.push("OES_vertex_array_object"),t};const n=t.getExtension;t.getExtension=function(e){return n.call(this,e)||("OES_vertex_array_object"!==e?null:(t.__OESVertexArrayObject||(this.__OESVertexArrayObject=new p(this)),this.__OESVertexArrayObject))}}(t),function(t){t.luma.extensions={};const e=t.getSupportedExtensions()||[];for(const n of e)t.luma[n]=t.getExtension(n)}(t),function(t,e){for(const n of Object.getOwnPropertyNames(e))"overrides"!==n&&E(t,{extension:n,target:t.luma,target2:t})}(t,w),function(t,e){let{target:n,target2:r}=e;Object.keys(x).forEach((e=>{if("function"===typeof x[e]){const i=t[e]?t[e].bind(t):()=>{},o=x[e].bind(null,t,i);n[e]=o,r[e]=o}}))}(t,{target:e,target2:t}),e.polyfilled=!0),t};const A={3042:!1,32773:new Float32Array([0,0,0,0]),32777:32774,34877:32774,32969:1,32968:0,32971:1,32970:0,3106:new Float32Array([0,0,0,0]),3107:[!0,!0,!0,!0],2884:!1,2885:1029,2929:!1,2931:1,2932:513,2928:new Float32Array([0,1]),2930:!0,3024:!0,36006:null,2886:2305,33170:4352,2849:1,32823:!1,32824:0,10752:0,32938:1,32939:!1,3089:!1,3088:new Int32Array([0,0,1024,1024]),2960:!1,2961:0,2968:4294967295,36005:4294967295,2962:519,2967:0,2963:4294967295,34816:519,36003:0,36004:4294967295,2964:7680,2965:7680,2966:7680,34817:7680,34818:7680,34819:7680,2978:[0,0,1024,1024],3333:4,3317:4,37440:!1,37441:!1,37443:37444,35723:4352,36010:null,35977:!1,3330:0,3332:0,3331:0,3314:0,32878:0,3316:0,3315:0,32877:0},S=(t,e,n)=>e?t.enable(n):t.disable(n),P=(t,e,n)=>t.hint(n,e),O=(t,e,n)=>t.pixelStorei(n,e);function T(t){return Array.isArray(t)||ArrayBuffer.isView(t)}const C={3042:S,32773:(t,e)=>t.blendColor(...e),32777:"blendEquation",34877:"blendEquation",32969:"blendFunc",32968:"blendFunc",32971:"blendFunc",32970:"blendFunc",3106:(t,e)=>t.clearColor(...e),3107:(t,e)=>t.colorMask(...e),2884:S,2885:(t,e)=>t.cullFace(e),2929:S,2931:(t,e)=>t.clearDepth(e),2932:(t,e)=>t.depthFunc(e),2928:(t,e)=>t.depthRange(...e),2930:(t,e)=>t.depthMask(e),3024:S,35723:P,36006:(t,e)=>{const n=a(t)?36009:36160;return t.bindFramebuffer(n,e)},2886:(t,e)=>t.frontFace(e),33170:P,2849:(t,e)=>t.lineWidth(e),32823:S,32824:"polygonOffset",10752:"polygonOffset",35977:S,32938:"sampleCoverage",32939:"sampleCoverage",3089:S,3088:(t,e)=>t.scissor(...e),2960:S,2961:(t,e)=>t.clearStencil(e),2968:(t,e)=>t.stencilMaskSeparate(1028,e),36005:(t,e)=>t.stencilMaskSeparate(1029,e),2962:"stencilFuncFront",2967:"stencilFuncFront",2963:"stencilFuncFront",34816:"stencilFuncBack",36003:"stencilFuncBack",36004:"stencilFuncBack",2964:"stencilOpFront",2965:"stencilOpFront",2966:"stencilOpFront",34817:"stencilOpBack",34818:"stencilOpBack",34819:"stencilOpBack",2978:(t,e)=>t.viewport(...e),3333:O,3317:O,37440:O,37441:O,37443:O,3330:O,3332:O,3331:O,36010:(t,e)=>t.bindFramebuffer(36008,e),3314:O,32878:O,3316:O,3315:O,32877:O,framebuffer:(t,e)=>{const n=e&&"handle"in e?e.handle:e;return t.bindFramebuffer(36160,n)},blend:(t,e)=>e?t.enable(3042):t.disable(3042),blendColor:(t,e)=>
vendor: 4,263 bytes, line 1
1t.blendColor(...e),blendEquation:(t,e)=>{e=T(e)?e:[e,e],t.blendEquationSeparate(...e)},blendFunc:(t,e)=>{e=T(e)&&2===e.length?[...e,...e]:e,t.blendFuncSeparate(...e)},clearColor:(t,e)=>t.clearColor(...e),clearDepth:(t,e)=>t.clearDepth(e),clearStencil:(t,e)=>t.clearStencil(e),colorMask:(t,e)=>t.colorMask(...e),cull:(t,e)=>e?t.enable(2884):t.disable(2884),cullFace:(t,e)=>t.cullFace(e),depthTest:(t,e)=>e?t.enable(2929):t.disable(2929),depthFunc:(t,e)=>t.depthFunc(e),depthMask:(t,e)=>t.depthMask(e),depthRange:(t,e)=>t.depthRange(...e),dither:(t,e)=>e?t.enable(3024):t.disable(3024),derivativeHint:(t,e)=>{t.hint(35723,e)},frontFace:(t,e)=>t.frontFace(e),mipmapHint:(t,e)=>t.hint(33170,e),lineWidth:(t,e)=>t.lineWidth(e),polygonOffsetFill:(t,e)=>e?t.enable(32823):t.disable(32823),polygonOffset:(t,e)=>t.polygonOffset(...e),sampleCoverage:(t,e)=>t.sampleCoverage(...e),scissorTest:(t,e)=>e?t.enable(3089):t.disable(3089),scissor:(t,e)=>t.scissor(...e),stencilTest:(t,e)=>e?t.enable(2960):t.disable(2960),stencilMask:(t,e)=>{e=T(e)?e:[e,e];const[n,r]=e;t.stencilMaskSeparate(1028,n),t.stencilMaskSeparate(1029,r)},stencilFunc:(t,e)=>{e=T(e)&&3===e.length?[...e,...e]:e;const[n,r,i,o,s,a]=e;t.stencilFuncSeparate(1028,n,r,i),t.stencilFuncSeparate(1029,o,s,a)},stencilOp:(t,e)=>{e=T(e)&&3===e.length?[...e,...e]:e;const[n,r,i,o,s,a]=e;t.stencilOpSeparate(1028,n,r,i),t.stencilOpSeparate(1029,o,s,a)},viewport:(t,e)=>t.viewport(...e)};function M(t,e,n){return void 0!==e[t]?e[t]:n[t]}const D={blendEquation:(t,e,n)=>t.blendEquationSeparate(M(32777,e,n),M(34877,e,n)),blendFunc:(t,e,n)=>t.blendFuncSeparate(M(32969,e,n),M(32968,e,n),M(32971,e,n),M(32970,e,n)),polygonOffset:(t,e,n)=>t.polygonOffset(M(32824,e,n),M(10752,e,n)),sampleCoverage:(t,e,n)=>t.sampleCoverage(M(32938,e,n),M(32939,e,n)),stencilFuncFront:(t,e,n)=>t.stencilFuncSeparate(1028,M(2962,e,n),M(2967,e,n),M(2963,e,n)),stencilFuncBack:(t,e,n)=>t.stencilFuncSeparate(1029,M(34816,e,n),M(36003,e,n),M(36004,e,n)),stencilOpFront:(t,e,n)=>t.stencilOpSeparate(1028,M(2964,e,n),M(2965,e,n),M(2966,e,n)),stencilOpBack:(t,e,n)=>t.stencilOpSeparate(1029,M(34817,e,n),M(34818,e,n),M(34819,e,n))},k={enable:(t,e)=>t({[e]:!0}),disable:(t,e)=>t({[e]:!1}),pixelStorei:(t,e,n)=>t({[e]:n}),hint:(t,e,n)=>t({[e]:n}),bindFramebuffer:(t,e,n)=>{switch(e){case 36160:return t({36006:n,36010:n});case 36009:return t({36006:n});case 36008:return t({36010:n});default:return null}},blendColor:(t,e,n,r,i)=>t({32773:new Float32Array([e,n,r,i])}),blendEquation:(t,e)=>t({32777:e,34877:e}),blendEquationSeparate:(t,e,n)=>t({32777:e,34877:n}),blendFunc:(t,e,n)=>t({32969:e,32968:n,32971:e,32970:n}),blendFuncSeparate:(t,e,n,r,i)=>t({32969:e,32968:n,32971:r,32970:i}),clearColor:(t,e,n,r,i)=>t({3106:new Float32Array([e,n,r,i])}),clearDepth:(t,e)=>t({2931:e}),clearStencil:(t,e)=>t({2961:e}),colorMask:(t,e,n,r,i)=>t({3107:[e,n,r,i]}),cullFace:(t,e)=>t({2885:e}),depthFunc:(t,e)=>t({2932:e}),depthRange:(t,e,n)=>t({2928:new Float32Array([e,n])}),depthMask:(t,e)=>t({2930:e}),frontFace:(t,e)=>t({2886:e}),lineWidth:(t,e)=>t({2849:e}),polygonOffset:(t,e,n)=>t({32824:e,10752:n}),sampleCoverage:(t,e,n)=>t({32938:e,32939:n}),scissor:(t,e,n,r,i)=>t({3088:new Int32Array([e,n,r,i])}),stencilMask:(t,e)=>t({2968:e,36005:e}),stencilMaskSeparate:(t,e,n)=>t({[1028===e?2968:36005]:n}),stencilFunc:(t,e,n,r)=>t({2962:e,2967:n,2963:r,34816:e,36003:n,36004:r}),stencilFuncSeparate:(t,e,n,r,i)=>t({[1028===e?2962:34816]:n,[1028===e?2967:36003]:r,[1028===e?2963:36004]:i}),stencilOp:(t,e,n,r)=>t({2964:e,2965:n,2966:r,34817:e,34818:n,34819:r}),stencilOpSeparate:(t,e,n,r,i)=>t({[1028===e?2964:34817]:n,[1028===e?2965:34818]:r,[1028===e?2966:34819]:i}),viewport:(t,e,n,r,i)=>t({2978:[e,n,r,i]})},j=(t,e)=>t.isEnabled(e),F={3042:j,2884:j,2929:j,3024:j,32823:j,32926:j,32928:j,3089:j,2960:j,35977:j};function L(t){for(const e in t)return!1;return!0}function I(t,e){if(t===e)return!0;const n=Array.isArray(t)||ArrayBuffer.isView(t),r=Array.isArray(e)||ArrayBuffer.isView(e);if(n&&r&&t.length===e.length){for(let n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0}return!1}function R(t,e){const n=t[e].bind(t);t[e]=function(){const e=arguments.length<=0?void 0:arguments[0];return e in t.state.cache&&t.state.enable?t.state.cache[e]:n(...arguments)}
1,Object.defineProperty(t[e],"name",{value:"".concat(e,"-from-cache"),configurable:!1})}function B(t,e,n){const r=t[e].bind(t);t[e]=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];const{valueChanged:s,oldValue:a}=n(t.state._updateCache,...i);return s&&r(...i),a},Object.defineProperty(t[e],"name",{value:"".concat(e,"-to-cache"),configurable:!1})}function N(t){const e=t.useProgram.bind(t);t.useProgram=function(n){t.state.program!==n&&(e(n),t.state.program=n)}}class z{constructor(t){let{copyState:e=!1,log:n=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=e?function(t,e){if("number"===typeof(e=e||A)){const n=e,r=F[n];return r?r(t,n):t.getParameter(n)}const n=Array.isArray(e)?e:Object.keys(e),r={};for(const i of n){const e=F[i];r[i]=e?e(t,Number(i)):t.getParameter(Number(i))}return r}(t):Object.assign({},A),this.log=n,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(){this.stateStack.push({})}pop(){i(this.stateStack.length>0);const t=this.stateStack[this.stateStack.length-1];V(this.gl,t),this.stateStack.pop()}_updateCache(t){let e,n=!1;const r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const o in t){i(void 0!==o);const s=t[o],a=this.cache[o];I(s,a)||(n=!0,e=a,r&&!(o in r)&&(r[o]=a),this.cache[o]=s)}return{valueChanged:n,oldValue:e}}}function Z(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{enable:n=!0,copyState:r}=e;if(i(void 0!==r),!t.state){const{polyfillContext:e}=globalThis;e&&e(t),t.state=new z(t,{copyState:r}),N(t);for(const n in k){B(t,n,k[n])}R(t,"getParameter"),R(t,"isEnabled")}return t.state.enable=n,t}function U(t){i(t.state),t.state.pop()}function V(t,e){if(i(s(t),"setParameters requires a WebGL context"),L(e))return;const n={};for(const i in e){const r=Number(i),o=C[i];o&&("string"===typeof o?n[o]=!0:o(t,e[i],r))}const r=t.state&&t.state.cache;if(r)for(const i in n){(0,D[i])(t,e,r)}}function G(t){V(t,A)}function W(t,e,n){if(L(e))return n(t);const{nocatch:r=!0}=e;let i;if(function(t){t.state||Z(t,{copyState:!1}),t.state.push()}(t),V(t,e),r)i=n(t),U(t);else try{i=n(t)}finally{U(t)}return i}function H(t){const{luma:e}=t;if(t.canvas&&e){const{clientWidth:n}=e.canvasSizeInfo;return n?t.drawingBufferWidth/n:1}return 1}function X(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=H(t),i=t.drawingBufferWidth,o=t.drawingBufferHeight;return Y(e,r,i,o,n)}function q(t){const e="undefined"===typeof window?1:window.devicePixelRatio||1;return Number.isFinite(t)?t<=0?1:t:t?e:1}function Y(t,e,n,r,i){const o=K(t[0],e,n);let s=$(t[1],e,r,i),a=K(t[0]+1,e,n);const u=a===n-1?a:a-1;let c;return a=$(t[1]+1,e,r,i),i?(a=0===a?a:a+1,c=s,s=a):c=a===r-1?a:a-1,{x:o,y:s,width:Math.max(u-o+1,1),height:Math.max(c-s+1,1)}}function K(t,e,n){return Math.min(Math.round(t*e),n-1)}function $(t,e,n,r){return r?Math.max(0,n-1-Math.round(t*e)):Math.min(Math.round(t*e),n-1)}const J=(0,n(3370).Z)(),Q=J&&"undefined"!==typeof document,tt={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function et(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(J,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),t=Object.assign({},tt,t);const{width:e,height:n}=t;function r(e){if(t.throwOnError)throw new Error(e);return console.error(e),null}let o;t.onError=r;const{canvas:s}=t,a=ot({canvas:s,width:e,height:n,onError:r});return o=it(a,t),o?(o=nt(o,t),st(o),o):null}function nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||t._instrumented)return t;t._version=t._version||at(t),t.luma=t.luma||{},t.luma.canvasSizeInfo=t.luma.canvasSizeInfo||{},e=Object.assign({},tt,e);const{manageState:n,debug:i}=e;return n&&Z(t,{copyState:!1,log:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.log(1,...e)()}}),J&&i&&(globalThis.makeDebugContext?(t=globalThis.makeDebugContext(t,e),r.level=Math.max(r.level,1)):r.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),t._instrumented=!0,t}function rt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.canvas){return void ut(t,q(e.useDevicePixels),e)}const n=t.getExtension("STACKGL_resize_drawingbuffer");n&&"width"in e&&"height"in e&&n.resize(e.width,e.height)}function it(t,e){const{onError:n}=e;let r=null;const i=t=>r=t.statusMessage||r;t.addEventListener("webglcontextcreationerror",i,!1);const{webgl1:o=!0,webgl2:s=!0}
1=e;let a=null;return s&&(a=a||t.getContext("webgl2",e),a=a||t.getContext("experimental-webgl2",e)),o&&(a=a||t.getContext("webgl",e),a=a||t.getContext("experimental-webgl",e)),t.removeEventListener("webglcontextcreationerror",i,!1),a?(e.onContextLost&&t.addEventListener("webglcontextlost",e.onContextLost,!1),e.onContextRestored&&t.addEventListener("webglcontextrestored",e.onContextRestored,!1),a):n("Failed to create ".concat(s&&!o?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function ot(t){let e,{canvas:n,width:r=800,height:i=600,onError:o}=t;if("string"===typeof n){Q&&"complete"===document.readyState||o("createGLContext called on canvas '".concat(n,"' before page was loaded")),e=document.getElementById(n)}else n?e=n:(e=document.createElement("canvas"),e.id="lumagl-canvas",e.style.width=Number.isFinite(r)?"".concat(r,"px"):"100%",e.style.height=Number.isFinite(i)?"".concat(i,"px"):"100%",document.body.insertBefore(e,document.body.firstChild));return e}function st(t){const e=a(t)?"WebGL2":"WebGL1",n=function(t){const e=t.getParameter(7936),n=t.getParameter(7937),r=t.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&t.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||e,renderer:r&&t.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:e,rendererMasked:n,version:t.getParameter(7938),shadingLanguageVersion:t.getParameter(35724)}}(t),i=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=t.debug?" debug":"";r.info(1,"".concat(e).concat(o," context ").concat(i))()}function at(t){return"undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext?2:1}function ut(t,e,n){let i="width"in n?n.width:t.canvas.clientWidth,o="height"in n?n.height:t.canvas.clientHeight;i&&o||(r.log(1,"Canvas clientWidth/clientHeight is 0")(),e=1,i=t.canvas.width||1,o=t.canvas.height||1),t.luma=t.luma||{},t.luma.canvasSizeInfo=t.luma.canvasSizeInfo||{};const s=t.luma.canvasSizeInfo;if(s.clientWidth!==i||s.clientHeight!==o||s.devicePixelRatio!==e){let n=e;const s=Math.floor(i*n),a=Math.floor(o*n);t.canvas.width=s,t.canvas.height=a,t.drawingBufferWidth===s&&t.drawingBufferHeight===a||(r.warn("Device pixel ratio clamped")(),n=Math.min(t.drawingBufferWidth/i,t.drawingBufferHeight/o),t.canvas.width=Math.floor(i*n),t.canvas.height=Math.floor(o*n)),Object.assign(t.luma.canvasSizeInfo,{clientWidth:i,clientHeight:o,devicePixelRatio:e})}}},5682:function(t,e,n){"use strict";n.d(e,{H:function(){return r},Y:function(){return i}});const r="vs",i="fs"},827:function(t,e,n){"use strict";n.d(e,{O_:function(){return s},Lm:function(){return h},ZP:function(){return l}});var r=n(5682),i=n(9047);const o={[r.H]:"#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n",[r.Y]:"#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"},s="__LUMA_INJECT_DECLARATIONS__",a=/void\s+main\s*\([^)]*\)\s*\{\n?/,u=/}\n?[^{}]*$/,c=[];function l(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=e===r.H;for(const r in n){const e=n[r];e.sort(((t,e)=>t.order-e.order)),c.length=e.length;for(let t=0,n=e.length;t<n;++t)c[t]=e[t].injection;const i="".concat(c.join("\n"),"\n");switch(r){case"vs:#decl":l&&(t=t.replace(s,i));break;case"vs:#main-start":l&&(t=t.replace(a,(t=>t+i)));break;case"vs:#main-end":l&&(t=t.replace(u,(t=>i+t)));break;case"fs:#decl":l||(t=t.replace(s,i));break;case"fs:#main-start":l||(t=t.replace(a,(t=>t+i)));break;case"fs:#main-end":l||(t=t.replace(u,(t=>i+t)));break;default:t=t.replace(r,(t=>t+i))}}return t=t.replace(s,""),i&&(t=t.replace(/\}\s*$/,(t=>t+o[e]))),t}function h(t){const e={};return(0,i.Z)(Array.isArray(t)&&t.length>1),t.forEach((t=>{for(const n in t)e[n]=e[n]?"".concat(e[n],"\n").concat(t[n]):t[n]})),e}},9047:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"shadertools: assertion failed.")}n.d(e,{Z:function(){return r}})},4072:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(9335),i=n(2525),o=n(2610);const s={offset:0,stride:0,type:5126,size:1,divisor:0,normalized:!1,integer:!1},a={deprecatedProps:{instanced:"divisor",isInstanced:"divisor"}};class u{static getBytesPerElement(t){return(0,r.vN)(t.type||5126).BYTES_PER_ELEMENT}static getBytesPerVertex(t){(0,i.h)(t.size);return(0,r.vN)(t.type||5126).BYTES_PER_ELEMENT*t.size}static resolve(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new u(...[s,...e])}constructor(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((t=>this._assign(t))),Object.freeze(this)}toString(){return JSON.stringify(this)}get BYTES_PER_ELEMENT(){return u.getBytesPerElement(this)}get BYTES_PER_VERTEX(){return u.getBytesPerVertex(this)}_assign(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1return t=(0,o.k)("Accessor",t,a),void 0!==t.type&&(this.type=t.type,5124!==t.type&&5125!==t.type||(this.integer=!0)),void 0!==t.size&&(this.size=t.size),void 0!==t.offset&&(this.offset=t.offset),void 0!==t.stride&&(this.stride=t.stride),void 0!==t.normalized&&(this.normalized=t.normalized),void 0!==t.integer&&(this.integer=t.integer),void 0!==t.divisor&&(this.divisor=t.divisor),void 0!==t.buffer&&(this.buffer=t.buffer),void 0!==t.index&&("boolean"===typeof t.index?this.index=t.index?1:0:this.index=t.index),void 0!==t.instanced&&(this.divisor=t.instanced?1:0),void 0!==t.isInstanced&&(this.divisor=t.isInstanced?1:0),this}}},3478:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(7577),i=n(4072),o=n(9335),s=n(1418),a=n(2525),u=n(2610);const c={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},l={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:c},h={removedProps:c};class f extends r.Z{get[Symbol.toStringTag](){return"Buffer"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),this.target=e.target||(this.gl.webgl2?36662:34962),this.initialize(e),Object.seal(this)}getElementCount(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/i.Z.getBytesPerElement(t))}getVertexCount(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/i.Z.getBytesPerVertex(t))}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ArrayBuffer.isView(t)&&(t={data:t}),Number.isFinite(t)&&(t={byteLength:t}),t=(0,u.k)("Buffer",t,l),this.usage=t.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},t,t.accessor)),t.data?this._setData(t.data,t.offset,t.byteLength):this._setByteLength(t.byteLength||0),this}setProps(t){return"accessor"in(t=(0,u.k)("Buffer",t,h))&&this.setAccessor(t.accessor),this}setAccessor(t){return delete(t=Object.assign({},t)).buffer,this.accessor=new i.Z(t),this}reallocate(t){return t>this.byteLength?(this._setByteLength(t),!0):(this.bytesUsed=t,!1)}setData(t){return this.initialize(t)}subData(t){ArrayBuffer.isView(t)&&(t={data:t});const{data:e,offset:n=0,srcOffset:r=0}=t,i=t.byteLength||t.length;(0,a.h)(e);const o=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(o,this.handle),0!==r||void 0!==i?((0,s.KQ)(this.gl),this.gl.bufferSubData(this.target,n,e,r,i)):this.gl.bufferSubData(o,n,e),this.gl.bindBuffer(o,null),this.debugData=null,this._inferType(e),this}copyData(t){let{sourceBuffer:e,readOffset:n=0,writeOffset:r=0,size:i}=t;const{gl:o}=this;return(0,s.KQ)(o),o.bindBuffer(36662,e.handle),o.bindBuffer(36663,this.handle),o.copyBufferSubData(36662,36663,n,r,i),o.bindBuffer(36662,null),o.bindBuffer(36663,null),this.debugData=null,this}getData(){let{dstData:t=null,srcByteOffset:e=0,dstOffset:n=0,length:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.KQ)(this.gl);const i=(0,o.vN)(this.accessor.type||5126,{clamped:!1}),u=this._getAvailableElementCount(e),c=n;let l,h;t?(h=t.length,l=h-c):(l=Math.min(u,r||u),h=c+l);const f=Math.min(u,l);return r=r||f,(0,a.h)(r<=f),t=t||new i(h),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,e,t,n,r),this.gl.bindBuffer(36662,null),t}bind(){let{target:t=this.target,index:e=this.accessor&&this.accessor.index,offset:n=0,size:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===t||35982===t?void 0!==r?this.gl.bindBufferRange(t,e,this.handle,n,r):((0,a.h)(0===n),this.gl.bindBufferBase(t,e,this.handle)):this.gl.bindBuffer(t,this.handle),this}unbind(){let{target:t=this.target,index:e=this.accessor&&this.accessor.index}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 35345===t||35982===t?this.gl.bindBufferBase(t,e,null):this.gl.bindBuffer(t,null),this}getDebugData(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}invalidateDebugData(){this.debugData=null}_setData(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.byteLength+e;(0,a.h)(ArrayBuffer.isView(t)),this._trackDeallocatedMemory();const r=this._getTarget();this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,this.usage),this.gl.bufferSubData(r,e,t),this.gl.bindBuffer(r,null),this.debugData=t.slice(0,10),this.bytesUsed=n,this._trackAllocatedMemory(n);const s=(0,o.O)(t);return(0,a.h)(s),this.setAccessor(new i.Z(this.accessor,{type:s})),this}_setByteLength(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.usage;(0,a.h)(t>=0),this._trackDeallocatedMemory();let n=t;0===t&&(n=new Float32Array(0));const r=this._getTarget();return this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,e),this.gl.bindBuffer(r,null),this.usage=e,this.debugData=null,this.bytesUsed=t,this._trackAllocatedMemory(t),this}_getTarget(){return this.gl.webgl2?36663:this.target}_getAvailableElementCount(t){const e=t/(0,o.vN)(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-e}_inferType(t){this.accessor.type||this.setAccessor(new i.Z(this.accessor,{type:(0,o.O)(t)}))}_createHandle(){return this.gl.createBuffer()}_deleteHandle(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}_getParameter(t){this.gl.bindBuffer(this.target,this.handle);const e=this.gl.getBufferParameter(this.target,t);return this.gl.bindBuffer(this.target,null),e}get type(){return s.cM.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}get bytes(){return s.cM.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}setByteLength(t){return s.cM.deprecated("setByteLength","reallocate")(),this.reallocate(t)}updateAccessor(t){return s.cM.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new i.Z(this.accessor,t),this}}},6047:function(t,e,n){"use strict";n.d(e,{Z:function(){return l},$:function(){return h}});var r=n(1418),i=n(2525);const o=6144,s=6145,a=6146,u=34041,c="clear: bad arguments";function l(t){let{framebuffer:e=null,color:n=null,depth:o=null,stencil:s=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a={};e&&(a.framebuffer=e);let u=0;n&&(u|=16384,!0!==n&&(a.clearColor=n)),o&&(u|=256,!0!==o&&(a.clearDepth=o)),s&&(u|=1024,!0!==o&&(a.clearStencil=o)),(0,i.h)(0!==u,c),(0,r.s8)(t,a,(()=>{t.clear(u)}))}function h(t){let{framebuffer:e=null,buffer:n=o,drawBuffer:l=0,value:h=[0,0,0,0]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.KQ)(t),(0,r.s8)(t,{framebuffer:e},(()=>{switch(n){case o:switch(h.constructor){case Int32Array:t.clearBufferiv(n,l,h);break;case Uint32Array:t.clearBufferuiv(n,l,h);break;
1case Float32Array:default:t.clearBufferfv(n,l,h)}break;case s:t.clearBufferfv(s,0,[h]);break;case a:t.clearBufferiv(a,0,[h]);break;case u:const[e,r]=h;t.clearBufferfi(u,0,e,r);break;default:(0,i.h)(!1,c)}}))}},9295:function(t,e,n){"use strict";n.d(e,{Km:function(){return u},z6:function(){return a}});var r=n(3849),i=(n(1418),n(9335)),o=n(2525);var s=n(3462);function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{sourceX:n=0,sourceY:r=0,sourceFormat:s=6408}=e;let{sourceAttachment:a=36064,target:u=null,sourceWidth:h,sourceHeight:f,sourceType:d}=e;const{framebuffer:p,deleteFramebuffer:g}=c(t);(0,o.h)(p);const{gl:m,handle:y,attachments:v}=p;h=h||p.width,f=f||p.height,36064===a&&null===y&&(a=1028),(0,o.h)(v[a]),d=d||v[a].type,u=l(u,d,s,h,f),d=d||(0,i.O)(u);const b=m.bindFramebuffer(36160,y);return m.readPixels(n,r,h,f,s,d,u),m.bindFramebuffer(36160,b||null),g&&p.delete(),u}function u(t){let{sourceAttachment:e=36064,targetMaxHeight:n=Number.MAX_SAFE_INTEGER}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(t,{sourceAttachment:e}),{width:o,height:s}=t;for(;s>n;)({data:r,width:o,height:s}=(0,i.KS)({data:r,width:o,height:s}));(0,i.c$)({data:r,width:o,height:s});const u=document.createElement("canvas");u.width=o,u.height=s;const c=u.getContext("2d"),l=c.createImageData(o,s);return l.data.set(r),c.putImageData(l,0,0),u.toDataURL()}function c(t){return t instanceof r.Z?{framebuffer:t,deleteFramebuffer:!1}:{framebuffer:(0,s.Y)(t),deleteFramebuffer:!0}}function l(t,e,n,r,s){if(t)return t;e=e||5121;const a=(0,i.vN)(e,{clamped:!1}),u=function(t){switch(t){case 6406:case 33326:case 6403:return 1;case 33328:case 33319:return 2;case 6407:case 34837:return 3;case 6408:case 34836:return 4;default:return(0,o.h)(!1),0}}(n);return new a(r*s*u)}},3849:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(1418),i=n(7577),o=n(1621),s=n(4041),a=n(6047),u=n(9295),c=n(4211),l=n(9579),h=n(2525);const f="Multiple render targets not supported";class d extends i.Z{get[Symbol.toStringTag](){return"Framebuffer"}static isSupported(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{colorBufferFloat:n,colorBufferHalfFloat:r}=e;let i=!0;return n&&(i=Boolean(t.getExtension("EXT_color_buffer_float")||t.getExtension("WEBGL_color_buffer_float")||t.getExtension("OES_texture_float"))),r&&(i=i&&Boolean(t.getExtension("EXT_color_buffer_float")||t.getExtension("EXT_color_buffer_half_float"))),i}static getDefaultFramebuffer(t){return t.luma=t.luma||{},t.luma.defaultFramebuffer=t.luma.defaultFramebuffer||new d(t,{id:"default-framebuffer",handle:null,attachments:{}}),t.luma.defaultFramebuffer}get MAX_COLOR_ATTACHMENTS(){const t=(0,r.KQ)(this.gl);return t.getParameter(t.MAX_COLOR_ATTACHMENTS)}get MAX_DRAW_BUFFERS(){const t=(0,r.KQ)(this.gl);return t.getParameter(t.MAX_DRAW_BUFFERS)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.width=null,this.height=null,this.attachments={},this.readBuffer=36064,this.drawBuffers=[36064],this.ownResources=[],this.initialize(e),Object.seal(this)}get color(){return this.attachments[36064]||null}get texture(){return this.attachments[36064]||null}get depth(){return this.attachments[36096]||this.attachments[33306]||null}get stencil(){return this.attachments[36128]||this.attachments[33306]||null}initialize(t){let{width:e=1,height:n=1,attachments:r=null,color:i=!0,depth:o=!0,stencil:s=!1,check:a=!0,readBuffer:u,drawBuffers:c}=t;if((0,h.h)(e>=0&&n>=0,"Width and height need to be integers"),this.width=e,this.height=n,r)for(const l in r){const t=r[l];(Array.isArray(t)?t[0]:t).resize({width:e,height:n})}else r=this._createDefaultAttachments(i,o,s,e,n);this.update({clearAttachments:!0,attachments:r,readBuffer:u,drawBuffers:c}),r&&a&&this.checkStatus()}delete(){for(const t of this.ownResources)t.delete();return super.delete(),this}update(t){let{attachments:e={},readBuffer:n,drawBuffers:r,clearAttachments:i=!1,resizeAttachments:o=!0}=t;this.attach(e,{clearAttachments:i,resizeAttachments:o});const{gl:s}=this,a=s.bindFramebuffer(36160,this.handle);return n&&this._setReadBuffer(n),r&&this._setDrawBuffers(r),s.bindFramebuffer(36160,a||null),this}resize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{width:e,height:n}=t;if(null===this.handle)return(0,h.h)(void 0===e&&void 0===n),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;void 0===e&&(e=this.gl.drawingBufferWidth),void 0===n&&(n=this.gl.drawingBufferHeight),e!==this.width&&n!==this.height&&r.cM.log(2,"Re
1sizing framebuffer ".concat(this.id," to ").concat(e,"x").concat(n))();for(const r in this.attachments)this.attachments[r].resize({width:e,height:n});return this.width=e,this.height=n,this}attach(t){let{clearAttachments:e=!1,resizeAttachments:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r={};e&&Object.keys(this.attachments).forEach((t=>{r[t]=null})),Object.assign(r,t);const i=this.gl.bindFramebuffer(36160,this.handle);for(const o in r){(0,h.h)(void 0!==o,"Misspelled framebuffer binding point?");const t=Number(o),e=r[t];let i=e;if(i)if(i instanceof s.Z)this._attachRenderbuffer({attachment:t,renderbuffer:i});else if(Array.isArray(e)){const[n,r=0,o=0]=e;i=n,this._attachTexture({attachment:t,texture:n,layer:r,level:o})}else this._attachTexture({attachment:t,texture:i,layer:0,level:0});else this._unattach(t);n&&i&&i.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,i||null),Object.assign(this.attachments,t),Object.keys(this.attachments).filter((t=>!this.attachments[t])).forEach((t=>{delete this.attachments[t]}))}checkStatus(){const{gl:t}=this,e=this.getStatus();if(36053!==e)throw new Error(function(t){return(d.STATUS||{})[t]||"Framebuffer error ".concat(t)}(e));return this}getStatus(){const{gl:t}=this,e=t.bindFramebuffer(36160,this.handle),n=t.checkFramebufferStatus(36160);return t.bindFramebuffer(36160,e||null),n}clear(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{color:e,depth:n,stencil:r,drawBuffers:i=[]}=t,o=this.gl.bindFramebuffer(36160,this.handle);return(e||n||r)&&(0,a.Z)(this.gl,{color:e,depth:n,stencil:r}),i.forEach(((t,e)=>{(0,a.$)(this.gl,{drawBuffer:e,value:t})})),this.gl.bindFramebuffer(36160,o||null),this}readPixels(){return r.cM.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}readPixelsToBuffer(){return r.cM.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}copyToDataUrl(){return r.cM.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}copyToImage(){return r.cM.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}copyToTexture(){return r.cM.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}blit(){return r.cM.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}invalidate(t){let{attachments:e=[],x:n=0,y:i=0,width:o,height:s}=t;const a=(0,r.KQ)(this.gl),u=a.bindFramebuffer(36008,this.handle);return 0===n&&0===i&&void 0===o&&void 0===s?a.invalidateFramebuffer(36008,e):a.invalidateFramebuffer(36008,e,n,i,o,s),a.bindFramebuffer(36008,u),this}getAttachmentParameter(t,e,n){let r=this._getAttachmentParameterFallback(e);return null===r&&(this.gl.bindFramebuffer(36160,this.handle),r=this.gl.getFramebufferAttachmentParameter(36160,t,e),this.gl.bindFramebuffer(36160,null)),n&&r>1e3&&(r=(0,l.km)(this.gl,r)),r}getAttachmentParameters(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36064,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.constructor.ATTACHMENT_PARAMETERS||[];const r={};for(const i of n){r[e?(0,l.km)(this.gl,i):i]=this.getAttachmentParameter(t,i,e)}return r}getParameters(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=Object.keys(this.attachments),n={};for(const r of e){const e=Number(r);n[t?(0,l.km)(this.gl,e):e]=this.getAttachmentParameters(e,t)}return n}show(){return"undefined"!==typeof window&&window.open((0,u.Km)(this),"luma-debug-texture"),this}log(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t>r.cM.level||"undefined"===typeof window)return this;e=e||"Framebuffer ".concat(this.id);const n=(0,u.Km)(this,{targetMaxHeight:100});return r.cM.image({logLevel:t,message:e,image:n},e)(),this}bind(){let{target:t=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(t,this.handle),this}unbind(){let{target:t=36160}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.gl.bindFramebuffer(t,null),this}_createDefaultAttachments(t,e,n,r,i){let a=null;return t&&(a=a||{},a[36064]=new o.Z(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:r,height:i,mipmaps:!1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.ownResources.push(a[36064])),e&&n?(a=a||{},a[33306]=new s.Z(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:r,height:111}),this.ownResources.push(a[33306])):e?(a=a||{},a[36096]=new s.Z(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:r,height:i}),this.ownResources.push(a[36096])):n&&(0,h.h)(!1),a}_unattach(t){const e=this.attachments[t];e&&(e instanceof s.Z?this.gl.framebufferRenderbuffer(36160,t,36161,null):this.gl.framebufferTexture2D(36160,t,3553,null,0),delete this.attachments[t])}_attachRenderbuffer(t){let{attachment:e=36064,renderbuffer:n}
1=t;const{gl:r}=this;r.framebufferRenderbuffer(36160,e,36161,n.handle),this.attachments[e]=n}_attachTexture(t){let{attachment:e=36064,texture:n,layer:i,level:o}=t;const{gl:s}=this;switch(s.bindTexture(n.target,n.handle),n.target){case 35866:case 32879:(0,r.KQ)(s).framebufferTextureLayer(36160,e,n.target,o,i);break;case 34067:const t=function(t){return t<34069?t+34069:t}(i);s.framebufferTexture2D(36160,e,t,n.handle,o);break;case 3553:s.framebufferTexture2D(36160,e,3553,n.handle,o);break;default:(0,h.h)(!1,"Illegal texture type")}s.bindTexture(n.target,null),this.attachments[e]=n}_setReadBuffer(t){const e=(0,r.vd)(this.gl);e?e.readBuffer(t):(0,h.h)(36064===t||1029===t,f),this.readBuffer=t}_setDrawBuffers(t){const{gl:e}=this,n=(0,r.KQ)(e);if(n)n.drawBuffers(t);else{const n=e.getExtension("WEBGL_draw_buffers");n?n.drawBuffersWEBGL(t):(0,h.h)(1===t.length&&(36064===t[0]||1029===t[0]),f)}this.drawBuffers=t}_getAttachmentParameterFallback(t){const e=(0,c.N$)(this.gl);switch(t){case 36052:return e.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return e.WEBGL2?null:8;case 33297:return e.WEBGL2?null:5125;case 33296:return e.WEBGL2||e.EXT_sRGB?null:9729;default:return null}}_createHandle(){return this.gl.createFramebuffer()}_deleteHandle(){this.gl.deleteFramebuffer(this.handle)}_bindHandle(t){return this.gl.bindFramebuffer(36160,t)}}d.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303]},5433:function(t,e,n){"use strict";n.d(e,{Z:function(){return z}});var r=n(7577),i=n(5008),o=n(3849),s=n(1418),a=n(4041),u=n(2525);const c={5126:E.bind(null,"uniform1fv",g,1,A),35664:E.bind(null,"uniform2fv",g,2,A),35665:E.bind(null,"uniform3fv",g,3,A),35666:E.bind(null,"uniform4fv",g,4,A),5124:E.bind(null,"uniform1iv",m,1,A),35667:E.bind(null,"uniform2iv",m,2,A),35668:E.bind(null,"uniform3iv",m,3,A),35669:E.bind(null,"uniform4iv",m,4,A),35670:E.bind(null,"uniform1iv",m,1,A),35671:E.bind(null,"uniform2iv",m,2,A),35672:E.bind(null,"uniform3iv",m,3,A),35673:E.bind(null,"uniform4iv",m,4,A),35674:E.bind(null,"uniformMatrix2fv",g,4,S),35675:E.bind(null,"uniformMatrix3fv",g,9,S),35676:E.bind(null,"uniformMatrix4fv",g,16,S),35678:x,35680:x,5125:E.bind(null,"uniform1uiv",y,1,A),36294:E.bind(null,"uniform2uiv",y,2,A),36295:E.bind(null,"uniform3uiv",y,3,A),36296:E.bind(null,"uniform4uiv",y,4,A),35685:E.bind(null,"uniformMatrix2x3fv",g,6,S),35686:E.bind(null,"uniformMatrix2x4fv",g,8,S),35687:E.bind(null,"uniformMatrix3x2fv",g,6,S),35688:E.bind(null,"uniformMatrix3x4fv",g,12,S),35689:E.bind(null,"uniformMatrix4x2fv",g,8,S),35690:E.bind(null,"uniformMatrix4x3fv",g,12,S),35678:x,35680:x,35679:x,35682:x,36289:x,36292:x,36293:x,36298:x,36299:x,36300:x,36303:x,36306:x,36307:x,36308:x,36311:x},l={},h={},f={},d=[0];function p(t,e,n,r){1===e&&"boolean"===typeof t&&(t=t?1:0),Number.isFinite(t)&&(d[0]=t,t=d);const i=t.length;if(i%e&&s.cM.warn("Uniform size should be multiples of ".concat(e),t)(),t instanceof n)return t;let o=r[i];o||(o=new n(i),r[i]=o);for(let s=0;s<i;s++)o[s]=t[s];return o}function g(t,e){return p(t,e,Float32Array,l)}function m(t,e){return p(t,e,Int32Array,h)}function y(t,e){return p(t,e,Uint32Array,f)}function v(t,e,n){const r=c[n.type];if(!r)throw new Error("Unknown GLSL uniform type ".concat(n.type));return r().bind(null,t,e)}function b(t){if("]"!==t[t.length-1])return{name:t,length:1,isArray:!1};const e=t.match(/([^[]*)(\[[0-9]+\])?/);if(!e||e.length<2)throw new Error("Failed to parse GLSL uniform name ".concat(t));return{name:e[1],length:e[2]||1,isArray:Boolean(e[2])}}function _(t){return Array.isArray(t)||ArrayBuffer.isView(t)?function(t){if(0===t.length)return!1;const e=Math.min(t.length,16);for(let n=0;n<e;++n)if(!Number.isFinite(t[n]))return!1;return!0}(t):!!isFinite(t)||(!0===t||!1===t||(t instanceof i.Z||(t instanceof a.Z||t instanceof o.Z&&Boolean(t.texture))))}function w(t,e,n){if(Array.isArray(n)||ArrayBuffer.isView(n))if(t[e]){const r=t[e];for(let t=0,e=n.length;t<e;++t)r[t]=n[t]}else t[e]=n.slice();else t[e]=n}function x(){let t=null;return(e,n,r)=>{const i=t!==r;return i&&(e.uniform1i(n,r),t=r),i}}function E(t,e,n,r){let i=null,o=null;return(s,a,c)=>{const l=e(c,n),h=l.length;let f=!1;if(null===i)i=new Float32Array(h),o=h,f=!0;else{(0,u.h)(o===h,"Uniform length cannot change.");for(let t=0;t<h;++t)if(l[t]!==i[t]){f=!0;break}}return f&&(r(s,t,a,l),i.set(l)),f}}function A(t,e,n,r){t[e](n,r)}function S(t,e,n,r){t[e](n,!1,r)}function P(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unnamed";const n=/#define[\s*]SHADER_NAME[\s*]([A-Za-z0-9_-]+)[\s*]/,r=t.match(n);return r?r[1]:e}function O(t,e,n,r){const i=t.split(/\r?\n/),o={},s={},a=r||P(e)||"(unnamed)",u="".concat(function(t){switch(t){case 35632:return"fragment";case 35633:return"vertex";default:return"unknown type"}}(n)," shader ").concat(a);for(let l=0;l<i.length;l++){const e=i[l];if(e.length<=1)continue;const n=e.split(":"),r=n[0],a=parseInt(n[2],10);if(isNaN(a))throw new Error("GLSL compilation error in ".concat(u,": ").concat(t));"WARNING"!==r?o[a]=e:s[a]=e}const c=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:": ";const r=t.split(/\r?\n/),i=String(r.length+e-1).length;return r.map(((t,r)=>{const o=String(r+e),s=o.length;return C(o,i-s)+n+t}))}(e);return{shaderName:u,errors:T(o,c),warnings:T(s,c)}}function T(t,e){let n="";for(let r=0;r<e.length;r++){const i=e[r];if((t[r+3]||t[r+2]||t[r+1])&&(n+="".concat(i,"\n"),t[r+1])){const e=t[r+1],i=e.split(":",3),o=i[0],s=parseInt(i[1],10)||0,a=e.substring(i.join(":").length+1).trim();n+=C("^^^ ".concat(o,": ").concat(a,"\n\n"),s)}}return n}function C(t,e){let n="";for(let r=0;r<e;++r)n+=" ";return"".concat(n).concat(t)}var M=n(4538);class D extends r.Z{get[Symbol.toStringTag](){return"Shader"}static getTypeName(t){switch(t){case 35633:return"vertex-shader";case 35632:return"fragment-shader";default:return(0,u.h)(!1),"unknown"}}constructor(t,e){(0,s.JD)(t),(0,u.h)("string"===typeof e.source,"Shader: GLSL source code must be a JavaScript string");super(t,{id:P(e.source,null)||e.id||(0,M.hQ)("unnamed ".concat(D.getTypeName(e.shaderType)))}),this.shaderType=e.shaderType,this.source=e.source,this.initialize(e)}initialize(t){let{source:e}=t;const n=P(e,null);n&&(this.id=(0,M.hQ)(n)),this._compile(e)}getParameter(t){return this.gl.getShaderParameter(this.handle,t)}toString(){return"".concat(D.getTypeName(this.shaderType),":").concat(this.id
1)}getName(){return P(this.source)||"unnamed-shader"}getSource(){return this.gl.getShaderSource(this.handle)}getTranslatedSource(){const t=this.gl.getExtension("WEBGL_debug_shaders");return t?t.getTranslatedShaderSource(this.handle):"No translated source available. WEBGL_debug_shaders not implemented"}_compile(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.source;t.startsWith("#version ")||(t="#version 100\n".concat(t)),this.source=t,this.gl.shaderSource(this.handle,this.source),this.gl.compileShader(this.handle);if(!this.getParameter(35713)){const t=this.gl.getShaderInfoLog(this.handle),{shaderName:e,errors:n,warnings:r}=O(t,this.source,this.shaderType,this.id);throw s.cM.error("GLSL compilation errors in ".concat(e,"\n").concat(n))(),s.cM.warn("GLSL compilation warnings in ".concat(e,"\n").concat(r))(),new Error("GLSL compilation errors in ".concat(e))}}_deleteHandle(){this.gl.deleteShader(this.handle)}_getOptsFromHandle(){return{type:this.getParameter(35663),source:this.getSource()}}}class k extends D{get[Symbol.toStringTag](){return"VertexShader"}constructor(t,e){"string"===typeof e&&(e={source:e}),super(t,Object.assign({},e,{shaderType:35633}))}_createHandle(){return this.gl.createShader(35633)}}class j extends D{get[Symbol.toStringTag](){return"FragmentShader"}constructor(t,e){"string"===typeof e&&(e={source:e}),super(t,Object.assign({},e,{shaderType:35632}))}_createHandle(){return this.gl.createShader(35632)}}var F=n(4072),L=n(8522);class I{constructor(t){this.id=t.id,this.attributeInfos=[],this.attributeInfosByName={},this.attributeInfosByLocation=[],this.varyingInfos=[],this.varyingInfosByName={},Object.seal(this),this._readAttributesFromProgram(t),this._readVaryingsFromProgram(t)}getAttributeInfo(t){const e=Number(t);return Number.isFinite(e)?this.attributeInfosByLocation[e]:this.attributeInfosByName[t]||null}getAttributeLocation(t){const e=this.getAttributeInfo(t);return e?e.location:-1}getAttributeAccessor(t){const e=this.getAttributeInfo(t);return e?e.accessor:null}getVaryingInfo(t){const e=Number(t);return Number.isFinite(e)?this.varyingInfos[e]:this.varyingInfosByName[t]||null}getVaryingIndex(t){const e=this.getVaryingInfo();return e?e.location:-1}getVaryingAccessor(t){const e=this.getVaryingInfo();return e?e.accessor:null}_readAttributesFromProgram(t){const{gl:e}=t,n=e.getProgramParameter(t.handle,35721);for(let r=0;r<n;r++){const{name:n,type:i,size:o}=e.getActiveAttrib(t.handle,r),s=e.getAttribLocation(t.handle,n);s>=0&&this._addAttribute(s,n,i,o)}this.attributeInfos.sort(((t,e)=>t.location-e.location))}_readVaryingsFromProgram(t){const{gl:e}=t;if(!(0,s.D0)(e))return;const n=e.getProgramParameter(t.handle,35971);for(let r=0;r<n;r++){const{name:n,type:i,size:o}=e.getTransformFeedbackVarying(t.handle,r);this._addVarying(r,n,i,o)}this.varyingInfos.sort(((t,e)=>t.location-e.location))}_addAttribute(t,e,n,r){const{type:i,components:o}=(0,L.hJ)(n),s={type:i,size:r*o};this._inferProperties(t,e,s);const a={location:t,name:e,accessor:new F.Z(s)};this.attributeInfos.push(a),this.attributeInfosByLocation[t]=a,this.attributeInfosByName[a.name]=a}_inferProperties(t,e,n){/instance/i.test(e)&&(n.divisor=1)}_addVarying(t,e,n,r){const{type:i,components:o}=(0,L.hJ)(n),s={location:t,name:e,accessor:new F.Z({type:i,size:r*o})};this.varyingInfos.push(s),this.varyingInfosByName[s.name]=s}}var R=n(9579);const B=35981,N=["setVertexArray","setAttributes","setBuffers","unsetBuffers","use","getUniformCount","getUniformInfo","getUniformLocation","getUniformValue","getVarying","getFragDataLocation","getAttachedShaders","getAttributeCount","getAttributeLocation","getAttributeInfo"];class z extends r.Z{get[Symbol.toStringTag](){return"Program"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.stubRemovedMethods("Program","v6.0",N),this._isCached=!1,this.initialize(e),Object.seal(this),this._setId(e.id)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{hash:e,vs:n,fs:r,varyings:i,bufferMode:o=B}=t;return this.hash=e||"",this.vs="string"===typeof n?new k(this.gl,{id:"".concat(t.id,"-vs"),source:n}):n,this.fs="string"===typeof r?new j(this.gl,{id:"".concat(t.id,"-fs"),source:r}):r,(0,u.h)(this.vs instanceof k),(0,u.h)(this.fs instanceof j),this.uniforms={},this._textureUniforms={},i&&i.length>0&&((0,s.KQ)(this.gl),this.varyings=i,this.gl2.transformFeedbackVaryings(this.handle,i,o)),this._compileAndLink(),this._readUniformLocationsFromLinkedProgram(),this.configuration=new I(this),this.setProps(t)}delete(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isCached?this:super.delete(t)}setProps(t){return"uniforms"in t&&this.setUniforms(t.uniforms),this}draw(t){let{logPriority:e,drawMode:n=4,vertexCount:r,offset:i=0,start:o,end:a,isIndexed:c=!1,indexType:l=5123,instanceCount:h=0,isInstanced:f=h>0,vertexArray:d=null,transformFeedback:p,framebuffer:g,parameters:m={},uniforms:y,samplers:v}=t;if((y||v)&&(s.cM.deprecated("Program.draw({uniforms})","Program.setUniforms(uniforms)")(),this.setUniforms(y||{})),s.cM.priority>=e){const t=g?g.id:"default",i="mode=".concat((0,R.km)(this.gl,n)," verts=").concat(r," ")+"instances=".concat(h," indexType=").concat((0,R.km)(this.gl,l)," ")+"isInstanced=".concat(f," isIndexed=").concat(c," ")+"Framebuffer=".concat(t);s.cM.log(e,i)()}return(0,u.h)(d),this.gl.useProgram(this.handle),!(!this._areTexturesRenderable()||0===r||f&&0===h)&&(d.bindForDraw(r,h,(()=>{if(void 0!==g&&(m=Object.assign({},m,{framebuffer:g})),p){const t=(0,L.$Z)(n);p.begin(t)}this._bindTextures(),(0,s.s8)(this.gl,m,(()=>{c&&f?this.gl2.drawElementsInstanced(n,r,l,i,h):c&&(0,s.D0)(this.gl)&&!isNaN(o)&&!isNaN(a)?this.gl2.drawRangeElements(n,o,a,r,l,i):c?this.gl.drawElements(n,r,l,i):f?this.gl2.drawArraysInstanced(n,i,r,h):this.gl.drawArrays(n,i,r)})),p&&p.end()})),!0)}setUniforms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.cM.priority>=2&&function(t,e,n){for(const r in t){const i=t[r];
1if((!n||Boolean(n[r]))&&!_(i))throw e=e?"".concat(e," "):"",console.error("".concat(e," Bad uniform ").concat(r),i),new Error("".concat(e," Bad uniform ").concat(r))}}(t,this.id,this._uniformSetters),this.gl.useProgram(this.handle);for(const e in t){const n=t[e],r=this._uniformSetters[e];if(r){let t=n,s=!1;if(t instanceof o.Z&&(t=t.texture),t instanceof i.Z)if(s=this.uniforms[e]!==n,s){void 0===r.textureIndex&&(r.textureIndex=this._textureIndexCounter++);const n=t,{textureIndex:i}=r;n.bind(i),t=i,this._textureUniforms[e]=n}else t=r.textureIndex;else this._textureUniforms[e]&&delete this._textureUniforms[e];(r(t)||s)&&w(this.uniforms,e,n)}}return this}_areTexturesRenderable(){let t=!0;for(const e in this._textureUniforms){const n=this._textureUniforms[e];n.update(),t=t&&n.loaded}return t}_bindTextures(){for(const t in this._textureUniforms){const e=this._uniformSetters[t].textureIndex;this._textureUniforms[t].bind(e)}}_createHandle(){return this.gl.createProgram()}_deleteHandle(){this.gl.deleteProgram(this.handle)}_getOptionsFromHandle(t){const e=this.gl.getAttachedShaders(t),n={};for(const r of e){switch(this.gl.getShaderParameter(this.handle,35663)){case 35633:n.vs=new k({handle:r});break;case 35632:n.fs=new j({handle:r})}}return n}_getParameter(t){return this.gl.getProgramParameter(this.handle,t)}_setId(t){if(!t){const t=this._getName();this.id=(0,M.hQ)(t)}}_getName(){let t=this.vs.getName()||this.fs.getName();return t=t.replace(/shader/i,""),t=t?"".concat(t,"-program"):"program",t}_compileAndLink(){const{gl:t}=this;if(t.attachShader(this.handle,this.vs.handle),t.attachShader(this.handle,this.fs.handle),s.cM.time(4,"linkProgram for ".concat(this._getName()))(),t.linkProgram(this.handle),s.cM.timeEnd(4,"linkProgram for ".concat(this._getName()))(),t.debug||s.cM.level>0){if(!t.getProgramParameter(this.handle,35714))throw new Error("Error linking: ".concat(t.getProgramInfoLog(this.handle)));t.validateProgram(this.handle);if(!t.getProgramParameter(this.handle,35715))throw new Error("Error validating: ".concat(t.getProgramInfoLog(this.handle)))}}_readUniformLocationsFromLinkedProgram(){const{gl:t}=this;this._uniformSetters={},this._uniformCount=this._getParameter(35718);for(let e=0;e<this._uniformCount;e++){const n=this.gl.getActiveUniform(this.handle,e),{name:r}=b(n.name);let i=t.getUniformLocation(this.handle,r);if(this._uniformSetters[r]=v(t,i,n),n.size>1)for(let e=0;e<n.size;e++)i=t.getUniformLocation(this.handle,"".concat(r,"[").concat(e,"]")),this._uniformSetters["".concat(r,"[").concat(e,"]")]=v(t,i,n)}this._textureIndexCounter=0}getActiveUniforms(t,e){return this.gl2.getActiveUniforms(this.handle,t,e)}getUniformBlockIndex(t){return this.gl2.getUniformBlockIndex(this.handle,t)}getActiveUniformBlockParameter(t,e){return this.gl2.getActiveUniformBlockParameter(this.handle,t,e)}uniformBlockBinding(t,e){this.gl2.uniformBlockBinding(this.handle,t,e)}}},4041:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(7577);const i="EXT_color_buffer_float";var o={33189:{bpp:2},33190:{gl2:!0,bpp:3},36012:{gl2:!0,bpp:4},36168:{bpp:1},34041:{bpp:4},35056:{gl2:!0,bpp:4},36013:{gl2:!0,bpp:5},32854:{bpp:2},36194:{bpp:2},32855:{bpp:2},33321:{gl2:!0,bpp:1},33330:{gl2:!0,bpp:1},33329:{gl2:!0,bpp:1},33332:{gl2:!0,bpp:2},33331:{gl2:!0,bpp:2},33334:{gl2:!0,bpp:4},33333:{gl2:!0,bpp:4},33323:{gl2:!0,bpp:2},33336:{gl2:!0,bpp:2},33335:{gl2:!0,bpp:2},33338:{gl2:!0,bpp:4},33337:{gl2:!0,bpp:4},33340:{gl2:!0,bpp:8},33339:{gl2:!0,bpp:8},32849:{gl2:!0,bpp:3},32856:{gl2:!0,bpp:4},32857:{gl2:!0,bpp:4},36220:{gl2:!0,bpp:4},36238:{gl2:!0,bpp:4},36975:{gl2:!0,bpp:4},36214:{gl2:!0,bpp:8},36232:{gl2:!0,bpp:8},36226:{gl2:!0,bpp:16},36208:{gl2:!0,bpp:16},33325:{gl2:i,bpp:2},33327:{gl2:i,bpp:4},34842:{gl2:i,bpp:8},33326:{gl2:i,bpp:4},33328:{gl2:i,bpp:8},34836:{gl2:i,bpp:16},35898:{gl2:i,bpp:4}},s=n(1418),a=n(2525);class u extends r.Z{get[Symbol.toStringTag](){return"Renderbuffer"}static isSupported(t){let{format:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{format:null};return!e||function(t,e,n){const r=n[e];if(!r)return!1;const i=(0,s.D0)(t)&&r.gl2||r.gl1;return"string"===typeof i?t.getExtension(i):i}(t,e,o)}static getSamplesForFormat(t,e){let{format:n}=e;return t.getInternalformatParameter(36161,n,32937)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t,e),this.initialize(e),Object.seal(this)}initialize(t){let{format:e,width:n=1,height:r=1,samples:i=0}=t;return(0,a.h)(e,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==i&&(0,s.D0)(this.gl)?this.gl.renderbufferStorageMultisample(36161,i,e,n,r):this.gl.renderbufferStorage(36161,e,n,r),this.format=e,this.width=n,this.height=r,this.samples=i,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*o[this.format].bpp),this}resize(t){let{width:e,height:n}=t;return e!==this.width||n!==this.height?this.initialize({width:e,height:n,format:this.format,samples:this.samples}):this}_createHandle(){return this.gl.createRenderbuffer()}_deleteHandle(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}_bindHandle(t){this.gl.bindRenderbuffer(36161,t)}_syncHandle(t){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}_getParameter(t){this.gl.bindRenderbuffer(36161,this.handle);return this.gl.getRenderbufferParameter(36161,t)}}},7577:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(1418),i=n(9835),o=n(9579),s=n(2525),a=n(4538),u=n(7469);const c="Resource subclass must define virtual methods";class l{get[Symbol.toStringTag](){return"Resource"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.JD)(t);const{id:n,userData:i={}}=e;this.gl=t,this.gl2=t,this.id=n||(0,a.hQ)(this[Symbol.toStringTag]),this.userData=i,this._bound=!1,this._handle=e.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._initStats(),this._addStats()}toString(){return"".concat(this[Symbol.toStringTag]||this.constructor.name,"(").concat(this.id,")")}get handle(){return this._handle}delete(){let{deleteChildren:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,e&&t&&e.filter(Boolean).forEac
1h((t=>t.delete())),this}bind(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;return"function"!==typeof e?(this._bindHandle(e),this):(this._bound?t=e():(this._bindHandle(this.handle),this._bound=!0,t=e(),this._bound=!1,this._bindHandle(null)),t)}unbind(){this.bind(null)}getParameter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=(0,o.sF)(this.gl,t),(0,s.h)(t);const n=(this.constructor.PARAMETERS||{})[t];if(n){const t=(0,r.D0)(this.gl);if(!((!("webgl2"in n)||t)&&(!("extension"in n)||this.gl.getExtension(n.extension)))){const e=n.webgl1,r="webgl2"in n?n.webgl2:n.webgl1;return t?r:e}}return this._getParameter(t,e)}getParameters(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{parameters:e,keys:n}=t,i=this.constructor.PARAMETERS||{},s=(0,r.D0)(this.gl),a={},u=e||Object.keys(i);for(const r of u){const e=i[r];if(e&&(!("webgl2"in e)||s)&&(!("extension"in e)||this.gl.getExtension(e.extension))){const i=n?(0,o.km)(this.gl,r):r;a[i]=this.getParameter(r,t),n&&"GLenum"===e.type&&(a[i]=(0,o.km)(this.gl,a[i]))}}return a}setParameter(t,e){t=(0,o.sF)(this.gl,t),(0,s.h)(t);const n=(this.constructor.PARAMETERS||{})[t];if(n){const t=(0,r.D0)(this.gl);if(!((!("webgl2"in n)||t)&&(!("extension"in n)||this.gl.getExtension(n.extension))))throw new Error("Parameter not available on this platform");"GLenum"===n.type&&(e=(0,o.sF)(e))}return this._setParameter(t,e),this}setParameters(t){for(const e in t)this.setParameter(e,t[e]);return this}stubRemovedMethods(t,e,n){return(0,u.F)(this,t,e,n)}initialize(t){}_createHandle(){throw new Error(c)}_deleteHandle(){throw new Error(c)}_bindHandle(t){throw new Error(c)}_getOptsFromHandle(){throw new Error(c)}_getParameter(t,e){throw new Error(c)}_setParameter(t,e){throw new Error(c)}_context(){return this.gl.luma=this.gl.luma||{},this.gl.luma}_initStats(){this.gl.stats=this.gl.stats||new i.Zj}_addStats(){const t=this[Symbol.toStringTag],e=i.lR.get("Resource Counts");e.get("Resources Created").incrementCount(),e.get("".concat(t,"s Created")).incrementCount(),e.get("".concat(t,"s Active")).incrementCount()}_removeStats(){const t=this[Symbol.toStringTag];i.lR.get("Resource Counts").get("".concat(t,"s Active")).decrementCount()}_trackAllocatedMemory(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag];this._doTrackAllocatedMemory(t,e),this._doTrackAllocatedMemory(t,e,this.gl.stats.get("Memory Usage"))}_doTrackAllocatedMemory(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[Symbol.toStringTag],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.lR.get("Memory Usage");n.get("GPU Memory").addCount(t),n.get("".concat(e," Memory")).addCount(t),this.byteLength=t}_trackDeallocatedMemory(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag];this._doTrackDeallocatedMemory(t),this._doTrackDeallocatedMemory(t,this.gl.stats.get("Memory Usage"))}_doTrackDeallocatedMemory(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[Symbol.toStringTag],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.lR.get("Memory Usage");e.get("GPU Memory").subtractCount(this.byteLength),e.get("".concat(t," Memory")).subtractCount(this.byteLength),this.byteLength=0}}},1621:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(1418),i=n(5008),o=n(2525);let s="";class a extends i.Z{get[Symbol.toStringTag](){return"Texture2D"}static isSupported(t,e){return i.Z.isSupported(t,e)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;(0,r.JD)(t),(e instanceof Promise||"string"===typeof e)&&(e={data:e}),"string"===typeof e.data&&(e=Object.assign({},e,{data:(n=e.data,(0,o.h)("string"===typeof n),n=s+n,new Promise(((t,e)=>{try{const r=new Image;r.onload=()=>t(r),r.onerror=()=>e(new Error("Could not load image ".concat(n,"."))),r.crossOrigin=i&&i.crossOrigin||"anonymous",r.src=n}catch(r){e(r)}})))})),super(t,Object.assign({},e,{target:3553})),this.initialize(e),Object.seal(this)}}},3889:function(t,e,n){"use strict";n.d(e,{ae:function(){return i},C:function(){return o},pH:function(){return s},br:function(){return a},KR:function(){return u}});var r=n(1418);const i={6407:{dataFormat:6407,types:[5121,33635]},6408:{dataFormat:6408,types:[5121,32819,32820]},6406:{dataFormat:6406,types:[5121]},6409:{dataFormat:6409,types:[5121]},6410:{dataFormat:6410,types:[5121]},33326:{dataFormat:6403,types:[5126],gl2:!0},33328:{dataFormat:33319,types:[5126],gl2:!0},34837:{dataFormat:6407,types:[5126],gl2:!0},34836:{dataFormat:6408,types:[5126],gl2:!0}},o={6403:1,36244:1,33319:2,33320:2,6407:3,36248:3,6408:4,36249:4,6402:1,34041:1,6406:1,6409:1,6410:2},s={5126:4,5125:4,5124:4,5123:2,5122:2,5131:2,5120:1,5121:1};function a(t,e){const n=i[e];if(!n)return!1;if(void 0===n.gl1&&void 0===n.gl2)return!0;const o=(0,r.D0)(t)&&n.gl2||n.gl1;return"string"===typeof o?t.getExtension(o):o}function u(t,e){const n=i[e];switch(n&&n.types[0]){case 5126:return t.getExtension("OES_texture_float_linear");case 5131:return t.getExtension("OES_texture_half_float_linear");default:return!0}}},5008:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(1418),i=n(7577),o=n(3478),s=n(3889),a=n(2525),u=n(4538);const c=[9729,9728],l=globalThis.WebGLBuffer||function(){};class h extends i.Z{get[Symbol.toStringTag](){return"Texture"}static isSupported(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{format:n,linearFiltering:r}=e;let i=!0;return n&&(i=i&&(0,s.br)(t,n),i=i&&(!r||(0,s.KR)(t,n))),i}constructor(t,e){const{id:n=(0,u.hQ)("texture"),handle:r,target:i}=e;super(t,{id:n,handle:r}),this.target=i,this.textureUnit=void 0,this.loaded=!1,this.width=void 0,this.height=void 0,this.depth=void 0,this.format=void 0,this.type=void 0,this.dataFormat=void 0,this.border=void 0,this.textureUnit=void 0,this.mipmaps=void 0}toString(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data;if(e instanceof Promise)return e.then((e=>this.initialize(Object.assign({},t,{pixels:e,data:e})))),this;const n="undefined"!==typeof HTMLVideoElement&&e instanceof HTMLVideoElement;if(n&&e.readyState<HTMLVideoElement.HAVE_METADATA)return this._video=null,e.addEventListener("loadeddata",(()=>this.initialize(t))),this;const{pixels:i=null,format:o=6408,border:s=0,recreate:a=!1,parameters:u={},pixelStore:c={},textureUnit:l}=t;e||(e=i);let{width:h,height:f,dataFormat:d,type:p,compressed:g=!1,mipmaps:m=!0}=t;const{depth:y=0}=t;return({width:h,height:f,compressed:g,dataFormat:d,type:p}=this._deduceParameters({format:o,type:p,dataFormat:d,compressed:g,data:e,width:h,height:f})),this.width=h,this.height=f,this.depth=y,this.format=o,this.type=p,this.dataFormat=d,this.border=s,this.textureUnit=l,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),m&&this._isNPOT()&&(r.cM.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),m=!1,this._updateForNPOT(u)),this.mipmaps=m,this.setImageData({data:e,width:h,height:f,depth:y,format:o,type:p,dataFormat:d,border:s,mipmaps:m,parameters:c,compressed:g}),m&&this.generateMipmap(),this.setParameters(u),a&&(this.data=e),n&&(this._video={video:e,parameters:u,lastTime:e.readyState>=HTMLVideoElement.HAVE_CURRENT_DATA?e.currentTime:-1}),this}update(){if(this._video){const{video:t,parameters:e,lastTime:n}=this._video;
1if(n===t.currentTime||t.readyState<HTMLVideoElement.HAVE_CURRENT_DATA)return;this.setSubImageData({data:t,parameters:e}),this.mipmaps&&this.generateMipmap(),this._video.lastTime=t.currentTime}}resize(t){let{height:e,width:n,mipmaps:r=!1}=t;return n!==this.width||e!==this.height?this.initialize({width:n,height:e,format:this.format,type:this.type,dataFormat:this.dataFormat,border:this.border,mipmaps:r}):this}generateMipmap(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isNPOT()?(r.cM.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),this):(this.mipmaps=!0,this.gl.bindTexture(this.target,this.handle),(0,r.s8)(this.gl,t,(()=>{this.gl.generateMipmap(this.target)})),this.gl.bindTexture(this.target,null),this)}setImageData(t){this._trackDeallocatedMemory("Texture");const{target:e=this.target,pixels:n=null,level:i=0,format:o=this.format,border:u=this.border,offset:c=0,parameters:l={}}=t;let{data:h=null,type:f=this.type,width:d=this.width,height:p=this.height,dataFormat:g=this.dataFormat,compressed:m=!1}=t;h||(h=n),({type:f,dataFormat:g,compressed:m,width:d,height:p}=this._deduceParameters({format:o,type:f,dataFormat:g,compressed:m,data:h,width:d,height:p}));const{gl:y}=this;y.bindTexture(this.target,this.handle);let v,b=null;({data:h,dataType:b}=this._getDataType({data:h,compressed:m}));let _=0;if((0,r.s8)(this.gl,l,(()=>{switch(b){case"null":y.texImage2D(e,i,o,d,p,u,g,f,h);break;case"typed-array":y.texImage2D(e,i,o,d,p,u,g,f,h,c);break;case"buffer":v=(0,r.KQ)(y),v.bindBuffer(35052,h.handle||h),v.texImage2D(e,i,o,d,p,u,g,f,c),v.bindBuffer(35052,null);break;case"browser-object":(0,r.D0)(y)?y.texImage2D(e,i,o,d,p,u,g,f,h):y.texImage2D(e,i,o,g,f,h);break;case"compressed":for(const[t,n]of h.entries())y.compressedTexImage2D(e,t,n.format,n.width,n.height,u,n.data),_+=n.levelSize;break;default:(0,a.h)(!1,"Unknown image data type")}})),"compressed"===b)this._trackAllocatedMemory(_,"Texture");else if(h&&h.byteLength)this._trackAllocatedMemory(h.byteLength,"Texture");else{const t=s.C[this.dataFormat]||4,e=s.pH[this.type]||1;this._trackAllocatedMemory(this.width*this.height*t*e,"Texture")}return this.loaded=!0,this}setSubImageData(t){let{target:e=this.target,pixels:n=null,data:i=null,x:s=0,y:u=0,width:c=this.width,height:h=this.height,level:f=0,format:d=this.format,type:p=this.type,dataFormat:g=this.dataFormat,compressed:m=!1,offset:y=0,border:v=this.border,parameters:b={}}=t;if(({type:p,dataFormat:g,compressed:m,width:c,height:h}=this._deduceParameters({format:d,type:p,dataFormat:g,compressed:m,data:i,width:c,height:h})),(0,a.h)(0===this.depth,"texSubImage not supported for 3D textures"),i||(i=n),i&&i.data){const t=i;i=t.data,c=t.shape[0],h=t.shape[1]}i instanceof o.Z&&(i=i.handle),this.gl.bindTexture(this.target,this.handle),(0,r.s8)(this.gl,b,(()=>{if(m)this.gl.compressedTexSubImage2D(e,f,s,u,c,h,d,i);else if(null===i)this.gl.texSubImage2D(e,f,s,u,c,h,g,p,null);else if(ArrayBuffer.isView(i))this.gl.texSubImage2D(e,f,s,u,c,h,g,p,i,y);else if(i instanceof l){const t=(0,r.KQ)(this.gl);t.bindBuffer(35052,i),t.texSubImage2D(e,f,s,u,c,h,g,p,y),t.bindBuffer(35052,null)}else if((0,r.D0)(this.gl)){(0,r.KQ)(this.gl).texSubImage2D(e,f,s,u,c,h,g,p,i)}else this.gl.texSubImage2D(e,f,s,u,g,p,i)})),this.gl.bindTexture(this.target,null)}copyFramebuffer(){return r.cM.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}getActiveUnit(){return this.gl.getParameter(34016)-33984}bind(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:e}=this;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,this.handle),t}unbind(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit;const{gl:e}=this;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,null),t}_getDataType(t){let{data:e,compressed:n=!1}=t;return n?{data:e,dataType:"compressed"}:null===e?{data:e,dataType:"null"}:ArrayBuffer.isView(e)?{data:e,dataType:"typed-array"}:e instanceof o.Z?{data:e.handle,dataType:"buffer"}:e instanceof l?{data:e,dataType:"buffer"}:{data:e,dataType:"browser-object"}}_deduceParameters(t){const{format:e,data:n}=t;let{width:r,height:i,dataFormat:o,type:a,compressed:u}=t;const c=s.ae[e];return o=o||c&&c.dataFormat,a=a||c&&c.types[0],u=u||c&&c.compressed,({width:r,height:i}=this._deduceImageSize(n,r,i)),{dataFormat:o,type:a,compressed:u,width:r,height:i,format:e,data:n}}_deduceImageSize(t,e,n){let r;return r="undefined"!==typeof ImageData&&t instanceof ImageData?{width:t.width,height:t.height}:"undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement?{width:t.naturalWi
1dth,height:t.naturalHeight}:"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap?{width:t.width,height:t.height}:"undefined"!==typeof HTMLVideoElement&&t instanceof HTMLVideoElement?{width:t.videoWidth,height:t.videoHeight}:t?{width:e,height:n}:{width:e>=0?e:1,height:n>=0?n:1},(0,a.h)(r,"Could not deduced texture size"),(0,a.h)(void 0===e||r.width===e,"Deduced texture width does not match supplied width"),(0,a.h)(void 0===n||r.height===n,"Deduced texture height does not match supplied height"),r}_createHandle(){return this.gl.createTexture()}_deleteHandle(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}_getParameter(t){switch(t){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);const e=this.gl.getTexParameter(this.target,t);return this.gl.bindTexture(this.target,null),e}}_setParameter(t,e){switch(this.gl.bindTexture(this.target,this.handle),e=this._getNPOTParam(t,e),t){case 33082:case 33083:this.gl.texParameterf(this.handle,t,e);break;case 4096:case 4097:(0,a.h)(!1);break;default:this.gl.texParameteri(this.target,t,e)}return this.gl.bindTexture(this.target,null),this}_isNPOT(){return!(0,r.D0)(this.gl)&&(!(!this.width||!this.height)&&(!(0,u.wt)(this.width)||!(0,u.wt)(this.height)))}_updateForNPOT(t){void 0===t[this.gl.TEXTURE_MIN_FILTER]&&(t[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===t[this.gl.TEXTURE_WRAP_S]&&(t[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===t[this.gl.TEXTURE_WRAP_T]&&(t[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}_getNPOTParam(t,e){if(this._isNPOT())switch(t){case 10241:-1===c.indexOf(e)&&(e=9729);break;case 10242:case 10243:33071!==e&&(e=33071)}return e}}},1053:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(1418),i=n(7577),o=n(3478),s=n(4538);class a extends i.Z{get[Symbol.toStringTag](){return"TransformFeedback"}static isSupported(t){return(0,r.D0)(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.KQ)(t),super(t,e),this.initialize(e),this.stubRemovedMethods("TransformFeedback","v6.0",["pause","resume"]),Object.seal(this)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.buffers={},this.unused={},this.configuration=null,this.bindOnUse=!0,(0,s.nK)(this.buffers)||this.bind((()=>this._unbindBuffers())),this.setProps(t),this}setProps(t){"program"in t&&(this.configuration=t.program&&t.program.configuration),"configuration"in t&&(this.configuration=t.configuration),"bindOnUse"in t&&(t=t.bindOnUse),"buffers"in t&&this.setBuffers(t.buffers)}setBuffers(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.bind((()=>{for(const e in t)this.setBuffer(e,t[e])})),this}setBuffer(t,e){const n=this._getVaryingIndex(t),{buffer:i,byteSize:o,byteOffset:s}=this._getBufferParams(e);return n<0?(this.unused[t]=i,r.cM.warn("".concat(this.id," unused varying buffer ").concat(t))(),this):(this.buffers[n]=e,this.bindOnUse||this._bindBuffer(n,i,s,o),this)}begin(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.gl.bindTransformFeedback(36386,this.handle),this._bindBuffers(),this.gl.beginTransformFeedback(t),this}end(){return this.gl.endTransformFeedback(),this._unbindBuffers(),this.gl.bindTransformFeedback(36386,null),this}_getBufferParams(t){let e,n,r;return t instanceof o.Z===!1?(r=t.buffer,n=t.byteSize,e=t.byteOffset):r=t,void 0===e&&void 0===n||(e=e||0,n=n||r.byteLength-e),{buffer:r,byteOffset:e,byteSize:n}}_getVaryingInfo(t){return this.configuration&&this.configuration.getVaryingInfo(t)}_getVaryingIndex(t){if(this.configuration)return this.configuration.getVaryingInfo(t).location;const e=Number(t);return Number.isFinite(e)?e:-1}_bindBuffers(){if(this.bindOnUse)for(const t in this.buffers){const{buffer:e,byteSize:n,byteOffset:r}=this._getBufferParams(this.buffers[t]);this._bindBuffer(t,e,r,n)}}_unbindBuffers(){if(this.bindOnUse)for(const t in this.buffers)this._bindBuffer(t,null)}_bindBuffer(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;const i=e&&e.handle;return i&&void 0!==r?this.gl.bindBufferRange(35982,t,i,n,r):this.gl.bindBufferBase(35982,t,i),this}_createHandle(){return this.gl.createTransformFeedback()}_deleteHandle(){this.gl.deleteTransformFeedback(this.handle)}_bindHandle(t){this.gl.bindTransformFeedback(36386,this.handle)}}},4211:function(t,e,n){"use strict";n.d(e,{U6:function(){return s},ag:function(){return a},N$:function(){return u}});var r=n(6948),i=n(1418),o=n(2525);function s(t,e){return a(t,e)}function a(t,e){return(e=Array.isArray(e)?e:[e]).every((e=>c(t,e)))}function u(t){t.luma=t.luma||{},t.luma.caps=t.luma.caps||{};for(const e in r.Z)void 0===t.luma.caps[e]&&(t.luma.caps[e]=c(t,e));return t.luma.caps}function c(t,e){return t.luma=t.luma||{},t.luma.caps=t.luma.caps||{},void 0===t.luma.caps[e]&&(t.luma.caps[e]=function(t,e){const n=r.Z[e];let s;(0,o.h)(n,e);const a=(0,i.D0)(t)&&n[1]||n[0];if("function"===typeof a)s=a(t);else if(Array.isArray(a)){s=!0;for(const e of a)s=s&&Boolean(t.getExtension(e))}else"string"===typeof a?s=Boolean(t.getExtension(a)):"boolean"===typeof a?s=a:(0,o.h)(!1);return s}(t,e)),t.luma.caps[e]||i.cM.log(2,"Feature: ".concat(e," not supported"))(),t.luma.caps[e]}},6948:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(3849),i=n(1621);const o={WEBGL2:"WEBGL2",VERTEX_ARRAY_OBJECT:"VERTEX_ARRAY_OBJECT",TIMER_QUERY:"TIMER_QUERY",INSTANCED_RENDERING:"INSTANCED_RENDERING",MULTIPLE_RENDER_TARGETS:"MULTIPLE_RENDER_TARGETS",ELEMENT_INDEX_UINT32:"ELEMENT_INDEX_UINT32",BLEND_EQUATION_MINMAX:"BLEND_EQUATION_MINMAX",FLOAT_BLEND:"FLOAT_BLEND",COLOR_ENCODING_SRGB:"COLOR_ENCODING_SRGB",TEXTURE_DEPTH:"TEXTURE_DEPTH",TEXTURE_FLOAT:"TEXTURE_FLOAT",TEXTURE_HALF_FLOAT:"TEXTURE_HALF_FLOAT",TEXTURE_FILTER_LINEAR_FLOAT:"TEXTURE_FILTER_LINEAR_FLOAT",TEXTURE_FILTER_LINEAR_HALF_FLOAT:"TEXTURE_FILTER_LINEAR_HALF_FLOAT",TEXTURE_FILTER_ANISOTROPIC:"TEXTURE_FILTER_ANISOTROPIC",COLOR_ATTACHMENT_RGBA32F:"COLOR_ATTACHMENT_RGBA32F",COLOR_ATTACHMENT_FLOAT:"COLOR_ATTACHMENT_FLOAT",COLOR_ATTACHMENT_HALF_FLOAT:"COLOR_ATTACHMENT_HALF_FLOAT",GLSL_FRAG_DATA:"GLSL_FRAG_DATA",GLSL_FRAG_DEPTH:"GLSL_FRAG_DEPTH",GLSL_DERIVATIVES:"GLSL_DERIVATIVES",GLSL_TEXTURE_LOD:"GLSL_TEXTURE_LOD"};e.Z={[o.WEBGL2]:[!1,!0],[o.VERTEX_ARRAY_OBJECT]:["OES_vertex_array_object",!0],[o.TIMER_QUERY]:["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"],[o.INSTANCED_RENDERING]:["ANGLE_instanced_arrays",!0],[o.MULTIPLE_RENDER_TARGETS]:["WEBGL_draw_buffers",!0],[o.ELEMENT_INDEX_UINT32]:["OES_element_index_uint",!0],[o.BLEND_EQUATION_MINMAX]:["EXT_blend_minmax",!0],[o.FLOAT_BLEND]:["EXT_float_blend"],[o.COLOR_ENCODING_SRGB]:["EXT_sRGB",!0],[o.TEXTURE_DEPTH]:["WEBGL_depth_texture",!0],[o.TEXTURE_FLOAT]:["OES_texture_float",!0],[o.TEXTURE_HALF_FLOAT]:["OES_texture_half_float",!0],[o.TEXTURE_FILTER_LINEAR_FLOAT]:["OES_texture_float_linear"],[o.TEXTURE_FILTER_LINEAR_HALF_FLOAT]:["OES_texture_half_float_linear"],[o.TEXTURE_FILTER_ANISOTROPIC]:["EXT_texture_filter_anisotropic"],[o.COLOR_ATTACHMENT_RGBA32F]:[function(t){const e=new i.Z(t,{format:6408,type:5126,dataFormat:6408}),n=new r.Z(t,{id:"test-framebuffer",check:!1,attachments:{36064:e}}
1),o=n.getStatus();return e.delete(),n.delete(),36053===o},"EXT_color_buffer_float"],[o.COLOR_ATTACHMENT_FLOAT]:[!1,"EXT_color_buffer_float"],[o.COLOR_ATTACHMENT_HALF_FLOAT]:["EXT_color_buffer_half_float"],[o.GLSL_FRAG_DATA]:["WEBGL_draw_buffers",!0],[o.GLSL_FRAG_DEPTH]:["EXT_frag_depth",!0],[o.GLSL_DERIVATIVES]:["OES_standard_derivatives",!0],[o.GLSL_TEXTURE_LOD]:["EXT_shader_texture_lod",!0]}},9835:function(t,e,n){"use strict";n.d(e,{Zj:function(){return a},lR:function(){return u}});var r=n(1418),i=n(9),o=n(3370);const s="8.5.16";class a{constructor(){this.stats=new Map}get(t){return this.stats.has(t)||this.stats.set(t,new i.jk({id:t})),this.stats.get(t)}}const u=new a;if(globalThis.luma&&globalThis.luma.VERSION!==s)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(globalThis.luma.VERSION," vs ").concat(s));globalThis.luma||((0,o.Z)()&&r.cM.log(1,"luma.gl ".concat(s," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),globalThis.luma=globalThis.luma||{VERSION:s,version:s,log:r.cM,stats:u,globals:{modules:{},nodeIO:{}}});globalThis.luma},2525:function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"luma.gl: assertion failed.")}n.d(e,{h:function(){return r}})},2610:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});var r=n(1418);function i(t,e,n){const{removedProps:i={},deprecatedProps:o={},replacedProps:s={}}=n;for(const u in i)if(u in e){const e=i[u]?"".concat(t,".").concat(i[u]):"N/A";r.cM.removed("".concat(t,".").concat(u),e)()}for(const u in o)if(u in e){const e=o[u];r.cM.deprecated("".concat(t,".").concat(u),"".concat(t,".").concat(e))()}let a=null;for(const u in s)if(u in e){const n=s[u];r.cM.deprecated("".concat(t,".").concat(u),"".concat(t,".").concat(n))(),a=a||Object.assign({},e),a[n]=e[u],delete a[u]}return a||e}},7469:function(t,e,n){"use strict";n.d(e,{F:function(){return i}});var r=n(1418);function i(t,e,n,i){const o="See luma.gl ".concat(n," Upgrade Guide at https://luma.gl/docs/upgrade-guide"),s=Object.getPrototypeOf(t);i.forEach((t=>{s.methodName||(s[t]=()=>{throw r.cM.removed("Calling removed method ".concat(e,".").concat(t,": "),o)(),new Error(t)})}))}},4538:function(t,e,n){"use strict";n.d(e,{hQ:function(){return o},wt:function(){return s},nK:function(){return a}});var r=n(2525);const i={};function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";i[t]=i[t]||1;const e=i[t]++;return"".concat(t,"-").concat(e)}function s(t){return(0,r.h)("number"===typeof t,"Input must be a number"),t&&0===(t&t-1)}function a(t){let e=!0;for(const n in t){e=!1;break}return e}},8522:function(t,e,n){"use strict";n.d(e,{$Z:function(){return u},hJ:function(){return c},jG:function(){return l}});var r=n(2525);const i=5126,o=5124,s=5125,a={[i]:[i,1,"float"],35664:[i,2,"vec2"],35665:[i,3,"vec3"],35666:[i,4,"vec4"],[o]:[o,
11,"int"],35667:[o,2,"ivec2"],35668:[o,3,"ivec3"],35669:[o,4,"ivec4"],[s]:[s,1,"uint"],36294:[s,2,"uvec2"],36295:[s,3,"uvec3"],36296:[s,4,"uvec4"],35670:[i,1,"bool"],35671:[i,2,"bvec2"],35672:[i,3,"bvec3"],35673:[i,4,"bvec4"],35674:[i,8,"mat2"],35685:[i,8,"mat2x3"],35686:[i,8,"mat2x4"],35675:[i,12,"mat3"],35687:[i,12,"mat3x2"],35688:[i,12,"mat3x4"],35676:[i,16,"mat4"],35689:[i,16,"mat4x2"],35690:[i,16,"mat4x3"]};function u(t){switch(t){case 0:return 0;case 1:case 3:case 2:return 1;case 4:case 5:case 6:return 4;default:return(0,r.h)(!1),0}}function c(t){const e=a[t];if(!e)return null;const[n,r]=e;return{type:n,components:r}}function l(t,e){switch(t){case 5120:case 5121:case 5122:case 5123:t=i}for(const n in a){const[r,i,o]=a[n];if(r===t&&i===e)return{glType:n,name:o}}return null}},9579:function(t,e,n){"use strict";n.d(e,{sF:function(){return i},km:function(){return o}});var r=n(2525);function i(t,e){if("string"!==typeof e)return e;const n=Number(e);if(!isNaN(n))return n;const i=t[e=e.replace(/^.*\./,"")];return(0,r.h)(void 0!==i,"Accessing undefined constant GL.".concat(e)),i}function o(t,e){e=Number(e);for(const n in t)if(t[n]===e)return"GL.".concat(n);return String(e)}},3462:function(t,e,n){"use strict";n.d(e,{h:function(){return d},Y:function(){return p}});var r=n(1621),i=n(1418),o=n(5008);const s=[34069,34070,34071,34072,34073,34074];class a extends o.Z{get[Symbol.toStringTag](){return"TextureCube"}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.JD)(t),super(t,Object.assign({},e,{target:34067})),this.initialize(e),Object.seal(this)}initialize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mipmaps:e=!0,parameters:n={}}=t;return this.opts=t,this.setCubeMapImageData(t).then((()=>{this.loaded=!0,e&&this.generateMipmap(t),this.setParameters(n)})),this}subImage(t){let{face:e,data:n,x:r=0,y:i=0,mipmapLevel:o=0}=t;return this._subImage({target:e,data:n,x:r,y:i,mipmapLevel:o})}async setCubeMapImageData(t){let{width:e,height:n,pixels:r,data:o,border:a=0,format:u=6408,type:c=5121}=t;const{gl:l}=this,h=r||o,f=await Promise.all(s.map((t=>{const e=h[t];return Promise.all(Array.isArray(e)?e:[e])})));
1this.bind(),s.forEach(((t,r)=>{f[r].length>1&&!1!==this.opts.mipmaps&&i.cM.warn("".concat(this.id," has mipmap and multiple LODs."))(),f[r].forEach(((r,i)=>{e&&n?l.texImage2D(t,i,u,e,n,a,u,c,r):l.texImage2D(t,i,u,u,c,r)}))})),this.unbind()}setImageDataForFace(t){const{face:e,width:n,height:r,pixels:i,data:o,border:s=0,format:a=6408,type:u=5121}=t,{gl:c}=this,l=i||o;return this.bind(),l instanceof Promise?l.then((n=>this.setImageDataForFace(Object.assign({},t,{face:e,data:n,pixels:n})))):this.width||this.height?c.texImage2D(e,0,a,n,r,s,a,u,l):c.texImage2D(e,0,a,a,u,l),this}}a.FACES=s;var u=n(3889),c=n(3478);class l extends o.Z{get[Symbol.toStringTag](){return"Texture3D"}static isSupported(t){return(0,i.D0)(t)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.KQ)(t),e=Object.assign({depth:1},e,{target:32879,unpackFlipY:!1}),super(t,e),this.initialize(e),Object.seal(this)}setImageData(t){let{level:e=0,dataFormat:n=6408,width:r,height:o,depth:s=1,border:a=0,format:l,type:h=5121,offset:f=0,data:d,parameters:p={}}=t;if(this._trackDeallocatedMemory("Texture"),this.gl.bindTexture(this.target,this.handle),(0,i.s8)(this.gl,p,(()=>{ArrayBuffer.isView(d)&&this.gl.texImage3D(this.target,e,n,r,o,s,a,l,h,d),d instanceof c.Z&&(this.gl.bindBuffer(35052,d.handle),this.gl.texImage3D(this.target,e,n,r,o,s,a,l,h,f))})),d&&d.byteLength)this._trackAllocatedMemory(d.byteLength,"Texture");else{const t=u.C[this.dataFormat]||4,e=u.pH[this.type]||1;this._trackAllocatedMemory(this.width*this.height*this.depth*t*e,"Texture")}return this.loaded=!0,this}}var h=n(3849),f=n(2525);function d(t,e){(0,f.h)(t instanceof r.Z||t instanceof a||t instanceof l);const n=t.constructor,{gl:i,width:o,height:s,format:u,type:c,dataFormat:h,border:d,mipmaps:p}=t;return new n(i,Object.assign({width:o,height:s,format:u,type:c,dataFormat:h,border:d,mipmaps:p},e))}function p(t,e){const{gl:n,width:r,height:i,id:o}=t;return new h.Z(n,Object.assign({},e,{id:"framebuffer-for-".concat(o),width:r,height:i,attachments:{36064:t}}))}},9335:function(t,e,n){"use strict";n.d(e,{O:function(){return r},vN:function(){return i},c$:function(){return o},KS:function(){return s}});function r(t){switch(ArrayBuffer.isView(t)?t.constructor:t){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error("Failed to deduce GL constant from typed array")}}function i(t){let{clamped:e=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return e?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function o(t){let{data:e,width:n,height:r,bytesPerPixel:i=4,temp:o}=t;const s=n*i;o=o||new Uint8Array(s);for(let a=0;a<r/2;++a){const t=a*s,n=(r-a-1)*s;o.set(e.subarray(t,t+s)),e.copyWithin(t,n,n+s),e.set(o,n)}}function s(t){let{data:e,width:n,height:r}=t;const i=Math.round(n/2),o=Math.round(r/2),s=new Uint8Array(i*o*4);for(let a=0;a<o;a++)for(let t=0;t<i;t++)for(let r=0;r<4;r++)s[4*(a*i+t)+r]=e[4*(2*a*n+2*t)+r];return{data:s,width:i,height:o}}},6357:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(4034);class i extends(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Array)){clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){for(let n=0;n<this.ELEMENTS;++n)this[n]=t[n+e];return this.check()}toArray(t=[],e=0){for(let n=0;n<this.ELEMENTS;++n)t[e+n]=this[n];return t}from(t){return Array.isArray(t)?this.copy(t):this.fromObject(t)}to(t){return t===this?this:(0,r.kJ)(t)?this.toArray(t):this.toObject(t)}toTarget(t){return t?this.to(t):this}toFloat32Array(){return new Float32Array(this)}toString(){return this.formatString(r.vc)}formatString(t){let e="";for(let n=0;n<this.ELEMENTS;++n)e+=(n>0?", ":"")+(0,r.Bw)(this[n],t);return"".concat(t.printTypes?this.constructor.name:"","[").concat(e,"]")}equals(t){if(!t||this.length!==t.length)return!1;for(let e=0;e<this.ELEMENTS;++e)if(!(0,r.fS)(this[e],t[e]))return!1;return!0}exactEquals(t){if(!t||this.length!==t.length)return!1;for(let e=0;e<this.ELEMENTS;++e)if(this[e]!==t[e])return!1;return!0}negate(){for(let t=0;t<this.ELEMENTS;++t)this[t]=-this[t];return this.check()}lerp(t,e,n){if(void 0===n)return this.lerp(this,t,e);for(let r=0;r<this.ELEMENTS;++r){const i=t[r];this[r]=i+n*(e[r]-i)}return this.check()}min(t){for(let e=0;e<this.ELEMENTS;++e)this[e]=Math.min(t[e],this[e]);return this.check()}max(t){for(let e=0;e<this.ELEMENTS;++e)this[e]=Math.max(t[e],this[e]);return this.check()}clamp(t,e){for(let n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],t[n]),e[n]);return this.check()}add(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]+=e[t];return this.check()}subtract(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]-=e[t];return this.check()}scale(t){if("number"===typeof t)for(let e=0;e<this.ELEMENTS;++e)this[e]*=t;else for(let e=0;e<this.ELEMENTS&&e<t.length;++e)this[e]*=t[e];return this.check()}multiplyByScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}check(){if(r.vc.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invali
1d numbers'"));return this}validate(){let t=this.length===this.ELEMENTS;for(let e=0;e<this.ELEMENTS;++e)t=t&&Number.isFinite(this[e]);return t}sub(t){return this.subtract(t)}setScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]=t;return this.check()}addScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]+=t;return this.check()}subScalar(t){return this.addScalar(-t)}multiplyScalar(t){for(let e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}divideScalar(t){return this.multiplyByScalar(1/t)}clampScalar(t,e){for(let n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],t),e);return this.check()}get elements(){return this}}},9572:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r=n(6357),i=n(6281),o=n(4034);class s extends r.Z{toString(){let t="[";if(o.vc.printRowMajor){t+="row-major:";for(let e=0;e<this.RANK;++e)for(let n=0;n<this.RANK;++n)t+=" ".concat(this[n*this.RANK+e])}else{t+="column-major:";for(let e=0;e<this.ELEMENTS;++e)t+=" ".concat(this[e])}return t+="]",t}getElementIndex(t,e){return e*this.RANK+t}getElement(t,e){return this[e*this.RANK+t]}setElement(t,e,n){return this[e*this.RANK+t]=(0,i.u5)(n),this}getColumn(t,e=new Array(this.RANK).fill(-0)){const n=t*this.RANK;for(let r=0;r<this.RANK;++r)e[r]=this[n+r];return e}setColumn(t,e){const n=t*this.RANK;for(let r=0;r<this.RANK;++r)this[n+r]=e[r];return this}}var a,u=n(1031),c=n(5975),l=n(1437),h=n(7160),f=n(8333);!function(t){t[t.COL0ROW0=0]="COL0ROW0",t[t.COL0ROW1=1]="COL0ROW1",t[t.COL0ROW2=2]="COL0ROW2",t[t.COL0ROW3=3]="COL0ROW3",t[t.COL1ROW0=4]="COL1ROW0",t[t.COL1ROW1=5]="COL1ROW1",t[t.COL1ROW2=6]="COL1ROW2",t[t.COL1ROW3=7]="COL1ROW3",t[t.COL2ROW0=8]="COL2ROW0",t[t.COL2ROW1=9]="COL2ROW1",t[t.COL2ROW2=10]="COL2ROW2",t[t.COL2ROW3=11]="COL2ROW3",t[t.COL3ROW0=12]="COL3ROW0",t[t.COL3ROW1=13]="COL3ROW1",t[t.COL3ROW2=14]="COL3ROW2",t[t.COL3ROW3=15]="COL3ROW3"}(a||(a={}));const d=45*Math.PI/180,p=1,g=.1,m=500,y=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);class v extends s{static get IDENTITY(){return function(){_||(_=new v,Object.freeze(_));return _}()}static get ZERO(){return function(){b||(b=new v([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(b));return b}()}get ELEMENTS(){return 16}get RANK(){return 4}get INDICES(){return a}constructor(t){super(-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),1===arguments.length&&Array.isArray(t)?this.copy(t):this.identity()}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this[4]=t[4],this[5]=t[5],this[6]=t[6],this[7]=t[7],this[8]=t[8],this[9]=t[9],this[10]=t[10],this[11]=t[11],this[12]=t[12],this[13]=t[13],this[14]=t[14],this[15]=t[15],this.check()}set(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,g){return this[0]=t,this[1]=e,this[2]=n,this[3]=r,this[4]=i,this[5]=o,this[6]=s,this[7]=a,this[8]=u,this[9]=c,this[10]=l,this[11]=h,this[12]=f,this[13]=d,this[14]=p,this[15]=g,this.check()}setRowMajor(t,e,n,r,i,o,s,a,u,c,l,h,f,d,p,g){return this[0]=t,this[1]=i,this[2]=u,this[3]=f,this[4]=e,this[5]=o,this[6]=c,this[7]=d,this[8]=n,this[9]=s,this[10]=l,this[11]=p,this[12]=r,this[13]=a,this[14]=h,this[15]=g,this.check()}toRowMajor(t){return t[0]=this[0],t[1]=this[4],t[2]=this[8],t[3]=this[12],t[4]=this[1],t[5]=this[5],t[6]=this[9],t[7]=this[13],t[8]=this[2],t[9]=this[6],t[10]=this[10],t[11]=this[14],t[12]=this[3],t[13]=this[7],t[14]=this[11],t[15]=this[15],t}identity(){return this.copy(y)}fromObject(t){return this.check()}fromQuaternion(t){return c.en(this,t),this.check()}frustum(t){const{left:e,right:n,bottom:r,top:i,near:o=g,far:s=m}=t;return s===1/0?function(t,e,n,r,i,o){const s=2*o/(n-e),a=2*o/(i-r),u=(n+e)/(n-e),c=(i+r)/(i-r),l=-1,h=-1,f=-2*o;t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=u,t[9]=c,t[10]=l,t[11]=h,t[12]=0,t[13]=0,t[14]=f,t[15]=0}(this,e,n,r,i,o):c.oy(this,e,n,r,i,o,s),this.check()}lookAt(t){const{eye:e,center:n=[0,0,0],up:r=[0,1,0]}=t;return c.zB(this,e,n,r),this.check()}ortho(t){const{left:e,right:n,bottom:r,top:i,near:o=g,far:s=m}=t;return c.M5(this,e,n,r,i,o,s),this.check()}orthographic(t){const{fovy:e=d,aspect:n=p,focalDistance:r=1,near:i=g,far:o=m}=t;w(e);const s=e/2,a=r*Math.tan(s),u=a*n;return this.ortho({left:-u,right:u,bottom:-a,top:a,near:i,far:o})}perspective(t){const{fovy:e=45*Math.PI/180,aspect:n=1,near:r=.1,far:i=500}=t;return w(e),c.G3(this,e,n,r,i),this.check()}determinant(){return c.GH(this)}getScale(t=[-0,-0,-0]){return t[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),t[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),t[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),t}getTranslation(t=[-0,-0,-0]){return t[0]=this[12],t[1]=this[13],t[2]=this[14],t}getRotation(t,e){t=t||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],e=e||[-0,-0,-0];const n=this.getScale(e),r=1/n[0],i=1/n[1],o=1/n[2];return t[0]=this[0]*r,t[1]=this[1]*i,t[2]=this[2]*o,t[3]=0,t[4]=this[4]*r,t[5]=this[5]*i,t[6]=this[6]*o,t[7]=0,t[8]=this[8]*r,t[9]=this[9]*i,t[10]=this[10]*
1o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}getRotationMatrix3(t,e){t=t||[-0,-0,-0,-0,-0,-0,-0,-0,-0],e=e||[-0,-0,-0];const n=this.getScale(e),r=1/n[0],i=1/n[1],o=1/n[2];return t[0]=this[0]*r,t[1]=this[1]*i,t[2]=this[2]*o,t[3]=this[4]*r,t[4]=this[5]*i,t[5]=this[6]*o,t[6]=this[8]*r,t[7]=this[9]*i,t[8]=this[10]*o,t}transpose(){return c.p4(this,this),this.check()}invert(){return c.U_(this,this),this.check()}multiplyLeft(t){return c.Jp(this,t,this),this.check()}multiplyRight(t){return c.Jp(this,this,t),this.check()}rotateX(t){return c.lM(this,this,t),this.check()}rotateY(t){return c.uD(this,this,t),this.check()}rotateZ(t){return c.jI(this,this,t),this.check()}rotateXYZ(t){return this.rotateX(t[0]).rotateY(t[1]).rotateZ(t[2])}rotateAxis(t,e){return c.U1(this,this,t,e),this.check()}scale(t){return c.bA(this,this,Array.isArray(t)?t:[t,t,t]),this.check()}translate(t){return c.Iu(this,this,t),this.check()}transform(t,e){return 4===t.length?(e=f.fF(e||[-0,-0,-0,-0],t,this),(0,i.IL)(e,4),e):this.transformAsPoint(t,e)}transformAsPoint(t,e){const{length:n}=t;let r;switch(n){case 2:r=l.fF(e||[-0,-0],t,this);break;case 3:r=h.fF(e||[-0,-0,-0],t,this);break;default:throw new Error("Illegal vector")}return(0,i.IL)(r,t.length),r}transformAsVector(t,e){let n;switch(t.length){case 2:n=(0,u.pb)(e||[-0,-0],t,this);break;case 3:n=(0,u.pL)(e||[-0,-0,-0],t,this);break;default:throw new Error("Illegal vector")}return(0,i.IL)(n,t.length),n}transformPoint(t,e){return this.transformAsPoint(t,e)}transformVector(t,e){return this.transformAsPoint(t,e)}transformDirection(t,e){return this.transformAsVector(t,e)}makeRotationX(t){return this.identity().rotateX(t)}makeTranslation(t,e,n){return this.identity().translate([t,e,n])}}let b,_;function w(t){if(t>2*Math.PI)throw Error("expected radians")}},8022:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(6357),i=n(6281);function o(t,e){if(!t)throw new Error("math.gl assertion ".concat(e))}class s extends r.Z{get x(){return this[0]}set x(t){this[0]=(0,i.u5)(t)}get y(){return this[1]}set y(t){this[1]=(0,i.u5)(t)}len(){return Math.sqrt(this.lengthSquared())}magnitude(){return this.len()}lengthSquared(){let t=0;for(let e=0;e<this.ELEMENTS;++e)t+=this[e]*this[e];return t}magnitudeSquared(){return this.lengthSquared()}distance(t){return Math.sqrt(this.distanceSquared(t))}distanceSquared(t){let e=0;for(let n=0;n<this.ELEMENTS;++n){const r=this[n]-t[n];e+=r*r}return(0,i.u5)(e)}dot(t){let e=0;for(let n=0;n<this.ELEMENTS;++n)e+=this[n]*t[n];return(0,i.u5)(e)}normalize(){const t=this.magnitude();if(0!==t)for(let e=0;e<this.ELEMENTS;++e)this[e]/=t;return this.check()}multiply(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]*=e[t];return this.check()}divide(...t){for(const e of t)for(let t=0;t<this.ELEMENTS;++t)this[t]/=e[t];return this.check()}lengthSq(){return this.lengthSquared()}distanceTo(t){return this.distance(t)}distanceToSquared(t){return this.distanceSquared(t)}getComponent(t){return o(t>=0&&t<this.ELEMENTS,"index is out of range"),(0,i.u5)(this[t])}setComponent(t,e){return o(t>=0&&t<this.ELEMENTS,"index is out of range"),this[t]=e,this.check()}addVectors(t,e){return this.copy(t).add(e)}subVectors(t,e){return this.copy(t).subtract(e)}multiplyVectors(t,e){return this.copy(t).multiply(e)}addScaledVector(t,e){return this.add(new this.constructor(t).multiplyScalar(e))}}var a=n(4034),u=n(7160),c=n(1031);const l=[0,0,0];let h;class f extends s{static get ZERO(){return h||(h=new f(0,0,0),Object.freeze(h)),h}constructor(t=0,e=0,n=0){super(-0,-0,-0),1===arguments.length&&(0,a.kJ)(t)?this.copy(t):(a.vc.debug&&((0,i.u5)(t),(0,i.u5)(e),(0,i.u5)(n)),this[0]=t,this[1]=e,this[2]=n)}set(t,e,n){return this[0]=t,this[1]=e,this[2]=n,this.check()}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this.check()}fromObject(t){return a.vc.debug&&((0,i.u5)(t.x),(0,i.u5)(t.y),(0,i.u5)(t.z)),this[0]=t.x,this[1]=t.y,this[2]=t.z,this.check()}toObject(t){return t.x=this[0],t.y=this[1],t.z=this[2],t}get ELEMENTS(){return 3}get z(){return this[2]}set z(t){this[2]=(0,i.u5)(t)}angle(t){return u.EU(this,t)}cross(t){return u.kC(this,this,t),this.check()}rotateX({radians:t,origin:e=l}){return u.lM(this,this,e,t),this.check()}rotateY({radians:t,origin:e=l}){return u.uD(this,this,e,t),this.check()}rotateZ({radians:t,origin:e=l}){return u.jI(this,this,e,t),this.check()}transform(t){return this.transformAsPoint(t)}transformAsPoint(t){return u.fF(this,this,t),this.check()}transformAsVector(t){return(0,c.pL)(this,this,t),this.check()}transformByMatrix3(t){return u.kK(this,this,t),this.check()}transformByMatrix2(t){return(0,c.eQ)(this,this,t),this.check()}transformByQuaternion(t){return u.VC(this,this,t),this.check()}}},4034:function(t,e,n){"use strict";n.d(e,{vc:function(){return r},Bw:function(){return i},kJ:function(){return o},uZ:function(){return s},t7:function(){return a},fS:function(){return u}});Math.PI,Math.PI;const r={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function i(t,{precision:e=r.precision}={}){return t=function(t){return Math.round(t/r.EPSILON)*r.EPSILON}(t),"".concat(parseFloat(t.toPrecision(e)))}function o(t){return Array.isArray(t)||ArrayBuffer.isView(t)&&!(t instanceof DataView)}function s(t,e,n){return c(t,(t=>Math.max(e,Math.min(n,t))))}function a(t,e,n){return o(t)?t.map(((t,r)=>a(t,e[r],n))):n*e+(1-n)*t}function u(t,e,n){const i=r.EPSILON;n&&(r.EPSILON=n);try{if(t===e)return!0;
vendor: 5,352 bytes, line 1
1if(o(t)&&o(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!u(t[n],e[n]))return!1;return!0}return t&&t.equals?t.equals(e):e&&e.equals?e.equals(t):"number"===typeof t&&"number"===typeof e&&Math.abs(t-e)<=r.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))}finally{r.EPSILON=i}}function c(t,e,n){if(o(t)){const r=t;n=n||function(t){return t.clone?t.clone():new Array(t.length)}(r);for(let i=0;i<n.length&&i<r.length;++i)n[i]=e(t[i],i,n);return n}return e(t)}},1031:function(t,e,n){"use strict";function r(t,e,n){const r=e[0],i=e[1],o=n[3]*r+n[7]*i||1;return t[0]=(n[0]*r+n[4]*i)/o,t[1]=(n[1]*r+n[5]*i)/o,t}function i(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[3]*r+n[7]*i+n[11]*o||1;return t[0]=(n[0]*r+n[4]*i+n[8]*o)/s,t[1]=(n[1]*r+n[5]*i+n[9]*o)/s,t[2]=(n[2]*r+n[6]*i+n[10]*o)/s,t}function o(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t[2]=e[2],t}n.d(e,{pb:function(){return r},pL:function(){return i},eQ:function(){return o}})},6281:function(t,e,n){"use strict";n.d(e,{u5:function(){return i},IL:function(){return o}});var r=n(4034);function i(t){if(!Number.isFinite(t))throw new Error("Invalid number ".concat(t));return t}function o(t,e,n=""){if(r.vc.debug&&!function(t,e){if(t.length!==e)return!1;for(let n=0;n<t.length;++n)if(!Number.isFinite(t[n]))return!1;return!0}(t,e))throw new Error("math.gl: ".concat(n," some fields set to invalid numbers'"));return t}},9513:function(t,e,n){"use strict";n.d(e,{wG:function(){return r},WZ:function(){return f},GU:function(){return v},dj:function(){return l},ct:function(){return y},Ny:function(){return i}});const r={CLOCKWISE:1,COUNTER_CLOCKWISE:-1};function i(t,e,n={}){const r=function(t,e={}){return Math.sign(function(t,e={}){const{start:n=0,end:r=t.length}=e,i=e.size||2;let o=0;for(let s=n,a=r-i;s<r;s+=i)o+=(t[s]-t[a])*(t[s+1]+t[a+1]),a=s;return o/2}(t,e))}(t,n);return r!==e&&(function(t,e){const{start:n=0,end:r=t.length,size:i=2}=e,o=(r-n)/i,s=Math.floor(o/2);for(let a=0;a<s;++a){const e=n+a*i,r=n+(o-1-a)*i;for(let n=0;n<i;++n){const i=t[e+n];t[e+n]=t[r+n],t[r+n]=i}}}(t,n),!0)}function o(t,e,n,r,i=[]){let o,s;if(8&n)o=(r[3]-t[1])/(e[1]-t[1]),s=3;else if(4&n)o=(r[1]-t[1])/(e[1]-t[1]),s=1;else if(2&n)o=(r[2]-t[0])/(e[0]-t[0]),s=2;else{if(!(1&n))return null;o=(r[0]-t[0])/(e[0]-t[0]),s=0}for(let a=0;a<t.length;a++)i[a]=(1&s)===a?r[s]:o*(e[a]-t[a])+t[a];return i}function s(t,e){let n=0;return t[0]<e[0]?n|=1:t[0]>e[2]&&(n|=2),t[1]<e[1]?n|=4:t[1]>e[3]&&(n|=8),n}function a(t,e){const n=e.length,r=t.length;if(r>0){let i=!0;for(let o=0;o<n;o++)if(t[r-n+o]!==e[o]){i=!1;break}if(i)return!1}for(let i=0;i<n;i++)t[r+i]=e[i];return!0}function u(t,e){const n=e.length;for(let r=0;r<n;r++)t[r]=e[r]}function c(t,e,n,r,i=[]){const o=r+e*n;for(let s=0;s<n;s++)i[s]=t[o+s];return i}function l(t,e){const{size:n=2,broken:r=!1,gridResolution:i=10,gridOffset:l=[0,0],startIndex:h=0,endIndex:f=t.length}=e||{},d=(f-h)/n;let m=[];const y=[m],v=c(t,0,n,h);let b,_;const w=p(v,i,l,[]),x=[];a(m,v);for(let p=1;p<d;p++){for(b=c(t,p,n,h,b),_=s(b,w);_;){o(v,b,_,w,x);const t=s(x,w);t&&(o(v,x,t,w,x),_=t),a(m,x),u(v,x),g(w,i,_),r&&m.length>n&&(m=[],y.push(m),a(m,v)),_=s(b,w)}a(m,b),u(v,b)}return r?y:y[0]}function h(t,e){for(let n=0;n<e.length;n++)t.push(e[n]);return t}function f(t,e=null,n){if(!t.length)return[];const{size:r=2,gridResolution:i=10,gridOffset:o=[0,0],edgeTypes:a=!1}=n||{},u=[],c=[{pos:t,types:a?new Array(t.length/r).fill(1):null,holes:e||[]}],l=[[],[]];let f=[];for(;c.length;){const{pos:t,types:e,holes:n}=c.shift();m(t,r,n[0]||t.length,l),f=p(l[0],i,o,f);const g=s(l[1],f);if(g){let i=d(t,e,r,0,n[0]||t.length,f,g);const o={pos:i[0].pos,types:i[0].types,holes:[]},s={pos:i[1].pos,types:i[1].types,holes:[]};c.push(o,s);for(let u=0;u<n.length;u++)i=d(t,e,r,n[u],n[u+1]||t.length,f,g),i[0]&&(o.holes.push(o.pos.length),o.pos=h(o.pos,i[0].pos),a&&(o.types=h(o.types,i[0].types))),i[1]&&(s.holes.push(s.pos.length),s.pos=h(s.pos,i[1].pos),a&&(s.types=h(s.types,i[1].types)))}else{const r={positions:t};a&&(r.edgeTypes=e),n.length&&(r.holeIndices=n),u.push(r)}}return u}function d(t,e,n,r,i,s,l){const h=(i-r)/n,f=[],d=[],p=[],g=[],m=[];let y,v,b;const _=c(t,h-1,n,r);let w=Math.sign(8&l?_[1]-s[3]:_[0]-s[2]),x=e&&e[h-1],E=0,A=0;for(let S=0;S<h;S++)y=c(t,S,n,r,y),v=Math.sign(8&l?y[1]-s[3]:y[0]-s[2]),b=e&&e[r/n+S],v&&w&&w!==v&&(o(_,y,l,s,m),a(f,m)&&p.push(x),a(d,m)&&g.push(x)),v<=0?(a(f,y)&&p.push(b),E-=v):p.length&&(p[p.length-1]=0),v>=0?(a(d,y)&&g.push(b),A+=v):g.length&&(g[g.length-1]=0),u(_,y),w=v,x=b;return[E?{pos:f,types:e&&p}:null,A?{pos:d,types:e&&g}:null]}function p(t,e,n,r){const i=Math.floor((t[0]-n[0])/e)*e+n[0],o=Math.floor((t[1]-n[1])/e)*e+n[1];return r[0]=i,r[1]=o,r[2]=i+e,r[3]=o+e,r}function g(t,e,n){8&n?(t[1]+=e,t[3]+=e):4&n?(t[1]-=e,t[3]-=e):2&n?(t[0]+=e,t[2]+=e):1&n&&(t[0]-=e,t[2]-=e)}function m(t,e,n,r){let i=1/0,o=-1/0,s=1/0,a=-1/0;for(let u=0;u<n;u+=e){const e=t[u],n=t[u+1];i=e<i?e:i,o=e>o?e:o,s=n<s?n:s,a=n>a?n:a}return r[0][0]=i,r[0][1]=s,r[1][0]=o,r[1][1]=a,r}function y(t,e){const{size:n=2,startIndex:r=0,endIndex:i=t.length,normalize:o=!0}=e||{},s=t.slice(r,i);w(s,n,0,i-r);const a=l(s,{size:n,broken:!0,gridResolution:360,gridOffset:[-180,-180]});if(o)for(const u of a)x(u,n);return a}function v(t,e=null,n){const{size:r=2,normalize:i=!0,edgeTypes:o=!1}=n||{};e=e||[];const s=[],a=[];let u=0,c=0;for(let h=0;h<=e.length;
vendor: 4,574 bytes, line 1
1h++){const i=e[h]||t.length,o=c,l=b(t,r,u,i);for(let e=l;e<i;e++)s[c++]=t[e];for(let e=u;e<l;e++)s[c++]=t[e];w(s,r,o,c),_(s,r,o,c,null===n||void 0===n?void 0:n.maxLatitude),u=i,a[h]=c}a.pop();const l=f(s,a,{size:r,gridResolution:360,gridOffset:[-180,-180],edgeTypes:o});if(i)for(const h of l)x(h.positions,r);return l}function b(t,e,n,r){let i=-1,o=-1;for(let s=n+1;s<r;s+=e){const e=Math.abs(t[s]);e>i&&(i=e,o=s-1)}return o}function _(t,e,n,r,i=85.051129){const o=t[n],s=t[r-e];if(Math.abs(o-s)>180){const r=c(t,0,e,n);r[0]+=360*Math.round((s-o)/360),a(t,r),r[1]=Math.sign(r[1])*i,a(t,r),r[0]=o,a(t,r)}}function w(t,e,n,r){let i,o=t[0];for(let s=n;s<r;s+=e){i=t[s];const e=i-o;(e>180||e<-180)&&(i-=360*Math.round(e/360)),t[s]=o=i}}function x(t,e){let n;const r=t.length/e;for(let o=0;o<r&&(n=t[o*e],(n+180)%360===0);o++);const i=360*-Math.round(n/360);if(0!==i)for(let o=0;o<r;o++)t[o*e]+=i}},8866:function(t,e,n){"use strict";n.d(e,{eG:function(){return P},Lu:function(){return C},Xg:function(){return j},if:function(){return z},sj:function(){return M},zX:function(){return L},ro:function(){return S},up:function(){return Z},Bf:function(){return A},wl:function(){return T},lf:function(){return O},w5:function(){return x},QA:function(){return R},CT:function(){return k},es:function(){return E},aW:function(){return D}});var r=n(8333);function i(t,e){const n=(0,r.fF)([],e,t);return(0,r.bA)(n,n,1/n[3]),n}function o(t,e){const n=t%e;return n<0?e+n:n}function s(t,e,n){return t<e?e:t>n?n:t}const a=Math.log2||function(t){return Math.log(t)*Math.LOG2E};var u=n(5975),c=n(1437),l=n(7160);function h(t,e){if(!t)throw new Error(e||"@math.gl/web-mercator: assertion failed.")}const f=Math.PI,d=f/4,p=f/180,g=180/f,m=512,y=4003e4,v=85.051129,b=1.5;function _(t){return Math.pow(2,t)}function w(t){return a(t)}function x(t){const[e,n]=t;h(Number.isFinite(e)),h(Number.isFinite(n)&&n>=-90&&n<=90,"invalid latitude");const r=n*p;return[m*(e*p+f)/(2*f),m*(f+Math.log(Math.tan(d+.5*r)))/(2*f)]}function E(t){const[e,n]=t,r=e/m*(2*f)-f,i=2*(Math.atan(Math.exp(n/m*(2*f)-f))-d);return[r*g,i*g]}function A(t){const{latitude:e}=t;h(Number.isFinite(e));const n=Math.cos(e*p);return w(y*n)-9}function S(t){const{latitude:e,longitude:n,highPrecision:r=!1}=t;h(Number.isFinite(e)&&Number.isFinite(n));const i=Math.cos(e*p),o=512/360,s=o/i,a=12790407194604047e-21/i,u={unitsPerMeter:[a,a,a],metersPerUnit:[1/a,1/a,1/a],unitsPerDegree:[o,s,a],degreesPerUnit:[.703125,1/s,1/a]};if(r){const t=p*Math.tan(e*p)/i,n=o*t/2,r=12790407194604047e-21*t,c=r/s*a;u.unitsPerDegree2=[0,n,r],u.unitsPerMeter2=[c,0,c]}return u}function P(t,e){const[n,r,i]=t,[o,s,a]=e,{unitsPerMeter:u,unitsPerMeter2:c}=S({longitude:n,latitude:r,highPrecision:!0}),l=x(t);l[0]+=o*(u[0]+c[0]*s),l[1]+=s*(u[1]+c[1]*s);const h=E(l),f=(i||0)+(a||0);return Number.isFinite(i)||Number.isFinite(a)?[h[0],h[1],f]:h}function O(t){const{height:e,pitch:n,bearing:r,altitude:i,scale:o,center:s}=t,a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];u.Iu(a,a,[0,0,-i]),u.lM(a,a,-n*p),u.jI(a,a,r*p);const c=o/e;return u.bA(a,a,[c,c,c]),s&&u.Iu(a,a,l.tk([],s)),a}function T(t){const{width:e,height:n,altitude:r,pitch:i=0,offset:o,center:a,scale:u,nearZMultiplier:c=1,farZMultiplier:l=1}=t;let{fovy:h=C(b)}=t;void 0!==r&&(h=C(r));const f=h*p,d=i*p,g=M(h);let m=g;a&&(m+=a[2]*u/Math.cos(d)/n);const y=f*(.5+(o?o[1]:0)/n),v=Math.sin(y)*m/Math.sin(s(Math.PI/2-d-y,.01,Math.PI-.01)),_=Math.sin(d)*v+m,w=10*m;return{fov:f,aspect:e/n,focalDistance:g,near:c,far:Math.min(_*l,w)}}function C(t){return 2*Math.atan(.5/t)*g}function M(t){return.5/Math.tan(.5*t*p)}function D(t,e){const[n,r,o=0]=t;return h(Number.isFinite(n)&&Number.isFinite(r)&&Number.isFinite(o)),i(e,[n,r,o,1])}function k(t,e,n=0){const[r,o,s]=t;if(h(Number.isFinite(r)&&Number.isFinite(o),"invalid pixel coordinate"),Number.isFinite(s)){return i(e,[r,o,s,1])}const a=i(e,[r,o,0,1]),u=i(e,[r,o,1,1]),l=a[2],f=u[2],d=l===f?0:((n||0)-l)/(f-l);return c.t7([],a,u,d)}function j(t){const{width:e,height:n,bounds:r,minExtent:i=0,maxZoom:o=24,offset:u=[0,0]}=t,[[c,l],[f,d]]=r,p=function(t=0){if("number"===typeof t)return{top:t,bottom:t,left:t,right:t};return h(Number.isFinite(t.top)&&Number.isFinite(t.bottom)&&Number.isFinite(t.left)&&Number.isFinite(t.right)),t}(t.padding),g=x([c,s(d,-85.051129,v)]),m=x([f,s(l,-85.051129,v)]),y=[Math.max(Math.abs(m[0]-g[0]),i),Math.max(Math.abs(m[1]-g[1]),i)],b=[e-p.left-p.right-2*Math.abs(u[0]),n-p.top-p.bottom-2*Math.abs(u[1])];h(b[0]>0&&b[1]>0);const _=b[0]/y[0],w=b[1]/y[1],A=(p.right-p.left)/2/_,S=(p.bottom-p.top)/2/w,P=E([(m[0]+g[0])/2+A,(m[1]+g[1])/2+S]),O=M
1ath.min(o,a(Math.abs(Math.min(_,w))));return h(Number.isFinite(O)),{longitude:P[0],latitude:P[1],zoom:O}}const F=Math.PI/180;function L(t,e=0){const{width:n,height:r,unproject:i}=t,o={targetZ:e},s=i([0,r],o),a=i([n,r],o);let u,c;return(t.fovy?.5*t.fovy*F:Math.atan(.5/t.altitude))>(90-t.pitch)*F-.01?(u=I(t,0,e),c=I(t,n,e)):(u=i([0,0],o),c=i([n,0],o)),[s,a,c,u]}function I(t,e,n){const{pixelUnprojectionMatrix:r}=t,o=i(r,[e,0,1,1]),s=i(r,[e,t.height,1,1]),a=(n*t.distanceScales.unitsPerMeter[2]-o[2])/(s[2]-o[2]),u=E(c.t7([],o,s,a));return u.push(n),u}function R(t){const{width:e,height:n,pitch:r=0}=t;let{longitude:i,latitude:s,zoom:u,bearing:c=0}=t;(i<-180||i>180)&&(i=o(i+180,360)-180),(c<-180||c>180)&&(c=o(c+180,360)-180);const l=a(n/512);if(u<=l)u=l,s=0;else{const t=n/2/Math.pow(2,u),e=E([0,t])[1];if(s<e)s=e;else{const e=E([0,512-t])[1];s>e&&(s=e)}}return{width:e,height:n,longitude:i,latitude:s,zoom:u,pitch:r,bearing:c}}const B=["longitude","latitude","zoom"],N={curve:1.414,speed:1.2};function z(t,e,n,r){const{startZoom:i,startCenterXY:o,uDelta:s,w0:a,u1:u,S:l,rho:h,rho2:f,r0:d}=U(t,e,r);if(u<.01){const r={};for(const i of B){const o=t[i],s=e[i];r[i]=(p=n)*s+(1-p)*o}return r}var p;const g=n*l,m=Math.cosh(d)/Math.cosh(d+h*g),y=a*((Math.cosh(d)*Math.tanh(d+h*g)-Math.sinh(d))/f)/u,v=i+w(1/m),b=c.bA([],s,y);c.IH(b,b,o);const _=E(b);return{longitude:_[0],latitude:_[1],zoom:v}}function Z(t,e,n){const r={...N,...n},{screenSpeed:i,speed:o,maxDuration:s}=r,{S:a,rho:u}=U(t,e,r),c=1e3*a;let l;return l=Number.isFinite(i)?c/(i/u):c/o,Number.isFinite(s)&&l>s?0:l}function U(t,e,n){const r=(n=Object.assign({},N,n)).curve,i=t.zoom,o=[t.longitude,t.latitude],s=_(i),a=e.zoom,u=[e.longitude,e.latitude],l=_(a-i),h=x(o),f=x(u),d=c.lu([],f,h),p=Math.max(t.width,t.height),g=p/l,m=c.kE(d)*s,y=Math.max(m,.01),v=r*r,b=(g*g-p*p+v*v*y*y)/(2*p*v*y),w=(g*g-p*p-v*v*y*y)/(2*g*v*y),E=Math.log(Math.sqrt(b*b+1)-b),A=Math.log(Math.sqrt(w*w+1)-w);return{startZoom:i,startCenterXY:h,uDelta:d,w0:p,u1:m,S:(A-E)/r,rho:r,rho2:v,r0:E,r1:A}}},3485:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(3370),i=n(2363);const o=globalThis;function s(t){if(!t&&!(0,r.Z)())return"Node";if((0,i.Z)(t))return"Electron";const e="undefined"!==typeof navigator?navigator:{},n=t||e.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";const s=-1!==n.indexOf("MSIE "),a=-1!==n.indexOf("Trident/");return s||a?"IE":o.chrome?"Chrome":o.safari?"Safari":o.mozInnerScreenX?"Firefox":"Unknown"}},3370:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(2363),i=n(3454);function o(){return!("object"===typeof i&&"[object process]"===String(i)&&!1)||(0,r.Z)()}},2363:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(3454);function i(t){if("undefined"!==typeof window&&"object"===typeof window.process&&"renderer"===window.process.type)return!0;if("undefined"!==typeof r&&"object"===typeof r.versions&&Boolean(r.versions.electron))return!0;const e="object"===typeof navigator&&"string"===typeof navigator.userAgent&&navigator.userAgent,n=t||e;return!!(n&&n.indexOf("Electron")>=0)}},6426:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var r=n(4942),i=n(3370);const o="undefined"!==typeof __VERSION__?__VERSION__:"untranspiled source";(0,i.Z)();class s{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";(0,r.Z)(this,"storage",void 0),(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"config",{}),this.storage=function(t){try{const e=window[t],n="__storage_test__";return e.setItem(n,n),e.removeItem(n),e}catch(e){return null}}(n),this.id=t,this.config={},Object.assign(this.config,e),this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){return this.config={},this.updateConfiguration(t)}updateConfiguration(t){if(Object.assign(this.config,t),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}return this}_loadConfiguration(){let t={};if(this.storage){const e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}}function a(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600;const i=t.src.replace(/\(/g,"%28").replace(/\)/g,"%29");t.width>r&&(n=Math.min(n,r/t.width));const o=t.width*n,s=t.height*n,a=["font-size:1px;","padding:".concat(Math.floor(s/2),"px ").concat(Math.floor(o/2),"px;"),"line-height:".concat(s,"px;"),"background:url(".concat(i,");"),"background-size:".concat(o,"px ").concat(s,"px;"),"color:transparent;"].join("");return["".concat(e," %c+"),a]}let u;function c(t){return"string"===typeof t?u[t.toUpperCase()]||u.WHITE:t}function l(t,e){if(!t)throw new Error(e||"Assertion failed")}!function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"}(u||(u={}));var h=n(3454);const f={self:"undefined"!==typeof self&&self,window:"undefined"!==typeof window&&window,global:"undefined"!==typeof n.g&&n.g,document:"undefined"!==typeof document&&document,process:"object"===typeof h&&h},d=(globalThis,f.window||f.self||f.global),p=f.process||{};console;function g(){let t;var e,n;if(i.Z&&"performance"in d)t=null===d||void 0===d||null===(e=d.performance)||void 0===e||null===(n=e.now)||void 0===n?void 0:n.call(e);else if("hrtime"in p){var r;const e=null===p||void 0===p||null===(r=p.hrtime)||void 0===r?void 0:r.call(p);t=1e3*e[0]+e[1]/1e6}else t=Date.now();return t}const m={debug:i.Z&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},y={enabled:!0,level:0};function v(){}const b={},_={once:!0};class w{constructor(){let{id:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""};(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"VERSION",o),(0,r.Z)(this,"_startTs",g()),(0,r.Z)(this,"_deltaTs",g()
1),(0,r.Z)(this,"_storage",void 0),(0,r.Z)(this,"userData",{}),(0,r.Z)(this,"LOG_THROTTLE_TIMEOUT",0),this.id=t,this._storage=new s("__probe-".concat(this.id,"__"),y),this.userData={},this.timeStamp("".concat(this.id," started")),function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"];const n=Object.getPrototypeOf(t),r=Object.getOwnPropertyNames(n);for(const i of r)"function"===typeof t[i]&&(e.find((t=>i===t))||(t[i]=t[i].bind(t)))}(this),Object.seal(this)}set level(t){this.setLevel(t)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((g()-this._startTs).toPrecision(10))}getDelta(){return Number((g()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:t}),this}setLevel(t){return this._storage.updateConfiguration({level:t}),this}get(t){return this._storage.config[t]}set(t,e){this._storage.updateConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){l(t,e)}warn(t){return this._getLogFunction(0,t,m.warn,arguments,_)}error(t){return this._getLogFunction(0,t,m.error,arguments)}deprecated(t,e){return this.warn("`".concat(t,"` is deprecated and will be removed in a later version. Use `").concat(e,"` instead"))}removed(t,e){return this.error("`".concat(t,"` has been removed. Use `").concat(e,"` instead"))}probe(t,e){return this._getLogFunction(t,e,m.log,arguments,{time:!0,once:!0})}log(t,e){return this._getLogFunction(t,e,m.debug,arguments)}info(t,e){return this._getLogFunction(t,e,console.info,arguments)}once(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return this._getLogFunction(t,e,m.debug||m.info,arguments,_)}table(t,e,n){return e?this._getLogFunction(t,e,console.table||v,n&&[n],{tag:A(e)}):v}image(t){let{logLevel:e,priority:r,image:o,message:s="",scale:u=1}=t;return this._shouldLog(e||r)?i.Z?function(t){let{image:e,message:n="",scale:r=1}=t;if("string"===typeof e){const t=new Image;return t.onload=()=>{const e=a(t,n,r);console.log(...e)},t.src=e,v}const i=e.nodeName||"";if("img"===i.toLowerCase())return console.log(...a(e,n,r)),v;if("canvas"===i.toLowerCase()){const t=new Image;return t.onload=()=>console.log(...a(t,n,r)),t.src=e.toDataURL(),v}return v}({image:o,message:s,scale:u}):function(t){let{image:e,message:r="",scale:i=1}=t,o=null;try{o=n(9214)}catch(s){}if(o)return()=>o(e,{fit:"box",width:"".concat(Math.round(80*i),"%")}).then((t=>console.log(t)));return v}({image:o,message:s,scale:u}):v}time(t,e){return this._getLogFunction(t,e,console.time?console.time:console.info)}timeEnd(t,e){return this._getLogFunction(t,e,console.timeEnd?console.timeEnd:console.info)}timeStamp(t,e){return this._getLogFunction(t,e,console.timeStamp||v)}group(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1};const r=E({logLevel:t,message:e,opts:n}),{collapsed:i}=n;return r.method=(i?console.groupCollapsed:console.group)||console.info,this._getLogFunction(r)}groupCollapsed(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._getLogFunction(t,"",console.groupEnd||v)}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&this.getLevel()>=x(t)}_getLogFunction(t,e,n,r,o){if(this._shouldLog(t)){o=E({logLevel:t,message:e,args:r,opts:o}),l(n=n||o.method),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=g();const s=o.tag||o.message;if(o.once){if(b[s])return v;b[s]=g()}return e=function(t,e,n){if("string"===typeof e){const a=n.time?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const n=Math.max(e-t.length,0);return"".concat(" ".repeat(n)).concat(t)}(function(t){let e;return e=t<10?"".concat(t.toFixed(2),"ms"):t<100?"".concat(t.toFixed(1),"ms"):t<1e3?"".concat(t.toFixed(0),"ms"):"".concat((t/1e3).toFixed(2),"s"),e}(n.total)):"";e=n.time?"".concat(t,": ").concat(a," ").concat(e):"".concat(t,": ").concat(e),r=e,o=n.color,s=n.background,i.Z||"string"!==typeof r||(o&&(o=c(o),r
1="\x1b[".concat(o,"m").concat(r,"\x1b[39m")),s&&(o=c(s),r="\x1b[".concat(s+10,"m").concat(r,"\x1b[49m"))),e=r}var r,o,s;return e}(this.id,o.message,o),n.bind(console,e,...o.args)}return v}}function x(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return l(Number.isFinite(e)&&e>=0),e}function E(t){const{logLevel:e,message:n}=t;t.logLevel=x(e);const r=t.args?Array.from(t.args):[];for(;r.length&&r.shift()!==n;);switch(typeof e){case"string":case"function":void 0!==n&&r.unshift(n),t.message=e;break;case"object":Object.assign(t,e)}"function"===typeof t.message&&(t.message=t.message());const i=typeof t.message;return l("string"===i||"object"===i),Object.assign(t,{args:r},t.opts)}function A(t){for(const e in t)for(const n in t[e])return n||"untitled";return"empty"}(0,r.Z)(w,"VERSION",o)},9:function(t,e,n){"use strict";n.d(e,{jk:function(){return a}});var r=n(4942),i=n(3454);function o(){let t;if("undefined"!==typeof window&&window.performance)t=window.performance.now();else if("undefined"!==typeof i&&i.hrtime){const e=i.hrtime();t=1e3*e[0]+e[1]/1e6}else t=Date.now();return t}class s{constructor(t,e){(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"type",void 0),(0,r.Z)(this,"sampleSize",1),(0,r.Z)(this,"time",void 0),(0,r.Z)(this,"count",void 0),(0,r.Z)(this,"samples",void 0),(0,r.Z)(this,"lastTiming",void 0),(0,r.Z)(this,"lastSampleTime",void 0),(0,r.Z)(this,"lastSampleCount",void 0),(0,r.Z)(this,"_count",0),(0,r.Z)(this,"_time",0),(0,r.Z)(this,"_samples",0),(0,r.Z)(this,"_startTime",0),(0,r.Z)(this,"_timerPending",!1),this.name=t,this.type=e,this.reset()}setSampleSize(t){return this.sampleSize=t,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(t){return this._count+=t,this._samples++,this._checkSampling(),this}subtractCount(t){return this._count-=t,this._samples++,this._checkSampling(),this}addTime(t){return this._time+=t,this.lastTiming=t,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=o(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(o()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class a{constructor(t){(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"stats",{}),this.id=t.id,this.stats={},this._initializeStats(t.stats),Object.seal(this)}get(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:t,type:e})}get size(){return Object.keys(this.stats).length}reset(){for(const t in this.stats)this.stats[t].reset();return this}forEach(t){for(const e in this.stats)t(this.stats[e])}getTable(){const t={};return this.forEach((e=>{t[e.name]={time:e.time||0,count:e.count||0,average:e.getAverageTime()||0,hz:e.getHz()||0}})),t}_initializeStats(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>this._getOrCreate(t)))}_getOrCreate(t){if(!t||!t.name)return null;const{name:e,type:n}=t;return this.stats[e]||(this.stats[e]=t instanceof s?t:new s(e,n)),this.stats[e]}}},4184:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);
1s&&t.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&t.push(a);else t.push(n.toString())}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},3258:function(t){var e={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};t.exports=function(t,n,r,i){if(!e.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!e[r].hasOwnProperty(n))throw new Error("Cannot convert from "+n+" to "+r);var o=e[r][n]*t;return!1!==i?(i=Math.pow(10,parseInt(i)||5),Math.round(o*i)/i):o}},1108:function(t,e){"use strict";const n=Math.PI,r=2*n,i=1e-6,o=r-i;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new s}s.prototype=a.prototype={constructor:s,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,r,o,s){t=+t,e=+e,r=+r,o=+o,s=+s;var a=this._x1,u=this._y1,c=r-t,l=o-e,h=a-t,f=u-e,d=h*h+f*f;if(s<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>i)if(Math.abs(f*c-l*h)>i&&s){var p=r-a,g=o-u,m=c*c+l*l,y=p*p+g*g,v=Math.sqrt(m),b=Math.sqrt(d),_=s*Math.tan((n-Math.acos((m+d-y)/(2*v*b)))/2),w=_/b,x=_/v;Math.abs(w-1)>i&&(this._+="L"+(t+w*h)+","+(e+w*f)),this._+="A"+s+","+s+",0,0,"+ +(f*p>h*g)+","+(this._x1=t+x*c)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,s,a,u,c){t=+t,e=+e,c=!!c;var l=(s=+s)*Math.cos(a),h=s*Math.sin(a),f=t+l,d=e+h,p=1^c,g=c?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>i||Math.abs(this._y1-d)>i)&&(this._+="L"+f+","+d),s&&(g<0&&(g=g%r+r),g>o?this._+="A"+s+","+s+",0,1,"+p+","+(t-l)+","+(e-h)+"A"+s+","+s+",0,1,"+p+","+(this._x1=f)+","+(this._y1=d):g>i&&(this._+="A"+s+","+s+",0,"+ +(g>=n)+","+p+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=e+s*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},8844: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=new Array(i);++r<i;)o[r]=t+r*n;return o}n.d(e,{Z:function(){return s},x:function(){return u}});var i=n(8348),o=n(7603);function s(){var t,e,n=(0,o.Z)().unknown(void 0),a=n.domain,u=n.range,c=0,l=1,h=!1,f=0,d=0,p=.5;function g(){var n=a().length,i=l<c,o=i?l:c,s=i?c:l;t=(s-o)/Math.max(1,n-f+2*d),h&&(t=Math.floor(t)),o+=(s-o-t*(n-f))*p,e=t*(1-f),h&&(o=Math.round(o),e=Math.round(e));var g=r(n).map((function(e){return o+t*e}));return u(i?g.reverse():g)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),g()):a()},n.range=function(t){return arguments.length?([c,l]=t,c=+c,l=+l,g()):[c,l]},n.rangeRound=function(t){return[c,l]=t,c=+c,l=+l,h=!0,g()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(h=!!t,g()):h},n.padding=function(t){return arguments.length?(f=Math.min(1,d=+t),g()):f},n.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),g()):f},n.paddingOuter=function(t){return arguments.length?(d=+t,g()):d},n.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),g()):p},n.copy=function(){return s(a(),[c,l]).round(h).paddingInner(f).paddingOuter(d).align(p)},i.o.apply(g(),arguments)}function a(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(e())},t}function u(){return a(s.apply(null,arguments).paddingInner(1))}},8348:function(t,e,n){"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function i(t,e){switch(arguments.length){case 0:break;case 1:"function"===typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"===typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{o:function(){return r},O:function(){return i}})},7603:function(t,e,n){"use strict";n.d(e,{O:function(){return i},Z:function(){return o}});var r=n(8348);
vendor: 4,806 bytes, line 1
1const i=Symbol("implicit");function o(){var t=new Map,e=[],n=[],s=i;function a(r){var o=r+"",a=t.get(o);if(!a){if(s!==i)return s;t.set(o,a=e.push(r))}return n[(a-1)%n.length]}return a.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const r of n){const n=r+"";t.has(n)||t.set(n,e.push(r))}return a},a.range=function(t){return arguments.length?(n=Array.from(t),a):n.slice()},a.unknown=function(t){return arguments.length?(s=t,a):s},a.copy=function(){return o(e,n).unknown(s)},r.o.apply(a,arguments),a}},5742:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});Array.prototype.slice;function r(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},6953:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},9887:function(t,e,n){var r;!function(i){"use strict";var o,s=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",h=c+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,m=9007199254740991,y=f(1286742750677284.5),v={};function b(t,e){var n,r,i,o,s,a,c,l,h=t.constructor,f=h.precision;if(!t.s||!e.s)return e.s||(e=new h(t)),u?C(e,f):e;if(c=t.d,l=e.d,s=t.e,i=e.e,c=c.slice(),o=s-i){for(o<0?(r=c,o=-o,a=l.length):(r=l,i=s,a=c.length),o>(a=(s=Math.ceil(f/7))>a?s+1:a+1)&&(o=a,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((a=c.length)-(o=l.length)<0&&(o=a,r=l,l=c,c=r),n=0;o;)n=(c[--o]=c[o]+l[o]+n)/g|0,c[o]%=g;for(n&&(c.unshift(n),++i),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=i,u?C(e,f):e}function _(t,e,n){if(t!==~~t||t<e||t>n)throw Error(l+t)}function w(t){var e,n,r,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,e=1;e<i;e++)(n=7-(r=t[e]+"").length)&&(o+=P(n)),o+=r;(n=7-(r=(s=t[e])+"").length)&&(o+=P(n))}else if(0===s)return"0";for(;s%10===0;)s/=10;return o+s}v.absoluteValue=v.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},v.comparedTo=v.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(t){return x(this,new this.constructor(t))},v.dividedToIntegerBy=v.idiv=function(t){var e=this.constructor;return C(x(this,new e(t),0,1),e.precision)},v.equals=v.eq=function(t){return!this.cmp(t)},v.exponent=function(){return A(this)},v.greaterThan=v.gt=function(t){return this.cmp(t)>0},v.greaterThanOrEqualTo=v.gte=function(t){return this.cmp(t)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(t){return this.cmp(t)<0},v.lessThanOrEqualTo=v.lte=function(t){return this.cmp(t)<1},v.logarithm=v.log=function(t){var e,n=this,r=n.constructor,i=r.precision,s=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(u=!1,e=x(O(n,s),O(t,s),s),u=!0,C(e,i))},v.minus=v.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?M(e,t):b(e,(t.s=-t.s,t))},v.modulo=v.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(c+"NaN");return n.s?(u=!1,e=x(n,t,0,1).times(t),u=!0,n.minus(e)):C(new r(n),i)},v.naturalExponential=v.exp=function(){return E(this)},v.naturalLogarithm=v.ln=function(){return O(this)},v.negated=v.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},v.plus=v.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):M(e,(t.s=-t.s,t))},v.precision=v.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=A(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},v.squareRoot=v.sqrt=function(){var t,e,n,r,i,o,s,a=this,l=a.constructor;if(a.s<1){if(!a.s)return new l(0);throw Error(c+"NaN")}for(t=A(a),u=!1,0==(i=Math.sqrt(+a))||i==1/0?(((e=w(a.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=s=(n=l.precision)+3;;)if(r=(o=r).plus(x(a,o,s+2)).times(.5),w(o.d).slice(0,s)===(e=w(r.d)).slice(0,s)){if(e=e.slice(s-3,s+1),i==s&&"4999"==e){if(C(o,n+1,0),o.times(o).eq(a)){r=o;break}}else if("9999"!=e)break;s+=4}return u=!0,C(r,n)}
vendor: 8,823 bytes, line 1
1,v.times=v.mul=function(t){var e,n,r,i,o,s,a,c,l,h=this,f=h.constructor,d=h.d,p=(t=new f(t)).d;if(!h.s||!t.s)return new f(0);for(t.s*=h.s,n=h.e+t.e,(c=d.length)<(l=p.length)&&(o=d,d=p,p=o,s=c,c=l,l=s),o=[],r=s=c+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=c+r;i>r;)a=o[i]+p[r]*d[i-r-1]+e,o[i--]=a%g|0,e=a/g|0;o[i]=(o[i]+e)%g|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,u?C(t,f.precision):t},v.toDecimalPlaces=v.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(_(t,0,s),void 0===e?e=r.rounding:_(e,0,8),C(n,t+A(n)+1,e))},v.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=D(r,!0):(_(t,0,s),void 0===e?e=i.rounding:_(e,0,8),n=D(r=C(new i(r),t+1,e),!0,t+1)),n},v.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?D(i):(_(t,0,s),void 0===e?e=o.rounding:_(e,0,8),n=D((r=C(new o(i),t+A(i)+1,e)).abs(),!1,t+A(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var t=this,e=t.constructor;return C(new e(t),A(t)+1,e.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(t){var e,n,r,i,s,a,l=this,h=l.constructor,d=+(t=new h(t));if(!t.s)return new h(o);if(!(l=new h(l)).s){if(t.s<1)throw Error(c+"Infinity");return l}if(l.eq(o))return l;if(r=h.precision,t.eq(o))return C(l,r);if(a=(e=t.e)>=(n=t.d.length-1),s=l.s,a){if((n=d<0?-d:d)<=m){for(i=new h(o),e=Math.ceil(r/7+4),u=!1;n%2&&k((i=i.times(l)).d,e),0!==(n=f(n/2));)k((l=l.times(l)).d,e);return u=!0,t.s<0?new h(o).div(i):C(i,r)}}else if(s<0)throw Error(c+"NaN");return s=s<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,u=!1,i=t.times(O(l,r+12)),u=!0,(i=E(i)).s=s,i},v.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=D(i,(n=A(i))<=o.toExpNeg||n>=o.toExpPos):(_(t,1,s),void 0===e?e=o.rounding:_(e,0,8),r=D(i=C(new o(i),t,e),t<=(n=A(i))||n<=o.toExpNeg,t)),r},v.toSignificantDigits=v.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(_(t,1,s),void 0===e?e=n.rounding:_(e,0,8)),C(new n(this),t,e)},v.toString=v.valueOf=v.val=v.toJSON=function(){var t=this,e=A(t),n=t.constructor;return D(t,e<=n.toExpNeg||e>=n.toExpPos)};var x=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%g|0,r=n/g|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*g+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,s){var a,u,l,h,f,d,p,m,y,v,b,_,w,x,E,S,P,O,T=r.constructor,M=r.s==i.s?1:-1,D=r.d,k=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(c+"Division by zero");for(u=r.e-i.e,P=k.length,E=D.length,m=(p=new T(M)).d=[],l=0;k[l]==(D[l]||0);)++l;if(k[l]>(D[l]||0)&&--u,(_=null==o?o=T.precision:s?o+(A(r)-A(i))+1:o)<0)return new T(0);if(_=_/7+2|0,l=0,1==P)for(h=0,k=k[0],_++;(l<E||h)&&_--;l++)w=h*g+(D[l]||0),m[l]=w/k|0,h=w%k|0;else{for((h=g/(k[0]+1)|0)>1&&(k=t(k,h),D=t(D,h),P=k.length,E=D.length),x=P,v=(y=D.slice(0,P)).length;v<P;)y[v++]=0;(O=k.slice()).unshift(0),S=k[0],k[1]>=g/2&&++S;do{h=0,(a=e(k,y,P,v))<0?(b=y[0],P!=v&&(b=b*g+(y[1]||0)),(h=b/S|0)>1?(h>=g&&(h=g-1),1==(a=e(f=t(k,h),y,d=f.length,v=y.length))&&(h--,n(f,P<d?O:k,d))):(0==h&&(a=h=1),f=k.slice()),(d=f.length)<v&&f.unshift(0),n(y,f,v),-1==a&&(a=e(k,y,P,v=y.length))<1&&(h++,n(y,P<v?O:k,v)),v=y.length):0===a&&(h++,y=[0]),m[l++]=h,a&&y[0]?y[v++]=D[x]||0:(y=[D[x]],v=1)}while((x++<E||void 0!==y[0])&&_--)}return m[0]||m.shift(),p.e=u,C(p,s?o+A(p)+1:o)}}();function E(t,e){var n,r,i,s,a,c=0,l=0,f=t.constructor,p=f.precision;if(A(t)>16)throw Error(h+A(t));if(!t.s)return new f(o);for(null==e?(u=!1,a=p):a=e,s=new f(.03125);t.abs().gte(.1);)t=t.times(s),l+=5;for(a+=Math.log(d(2,l))/Math.LN10*2+5|0,n=r=i=new f(o),f.precision=a;;){if(r=C(r.times(t),a),n=n.times(++c),w((s=i.plus(x(r,n,a))).d).slice(0,a)===w(i.d).slice(0,a)){for(;l--;)i=C(i.times(i),a);return f.precision=p,null==e?(u=!0,C(i,p)):i}i=s}}function A(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function S(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(c+"LN10 precision limit exceeded");return C(new t(t.LN10),e)}function P(t){for(var e="";t--;)e+="0";return e}function O(t,e){var n,r,i,s,a,l,h,f,d,p=1,g=t,m=g.d,y=g.constructor,v=y.precision;if(g.s<1)throw Error(c+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new y(0);if(null==e?(u=!1,f=v):f=e,g.eq(10))return null==e&&(u=!0),S(y,f);if(f+=10,y.precision=f,r=(n=w(m)).charAt(0),s=A(g),!(Math.abs(s)<15e14))return h=S(y,f+2,v).times(s+""),g=O(new y(r+"."+n.slice(1)),f-10).plus(h),y.precision=v,null==e?(u=!0,C(g,v)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((g=g.times(t)).d)).charAt(0),p++;for(s=A(g),r>1?(g=new y("0."+n),s++):g=new y(r+"."+n.slice(1)),l=a=g=x(g.minus(o),g.plus(o),f),d=C(g.times(g),f),i=3;;){if(a=C(a.times(d),f),w((h=l.plus(x(a,new y(i),f))).d).slice(0,f)===w(l.d).slice(0,f))return l=l.times(2),0!==s&&(l=l.plus(S(y,f+2,v).times(s+""))),l=x(l,new y(p),f),y.precision=v,null==e?(u=!0,C(l,v)):l;l=h,i+=2}}function T(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=7;r<i;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),u&&(t.e>y||t.e<-y))throw Error(h+n)}else t.s=0,t.e=0,t.d=[0];return t}function C(t,e,n){var r,i,o,s,a,c,l,p,m=t.d;for(s=1,o=m[0];o>=10;o/=10)s++;if((r=e-s)<0)r+=7,i=e,l=m[p=0];else{if((p=Math.ceil((r+1)/7))>=(o=m.length))return t;for(l=o=m[p],s=1;o>=10;o/=10)s++;i=(r%=7)-7+s}if(void 0!==n&&(a=l/(o=d(10,s-i-1))%10|0,c=e<0||void 0!==m[p+1]||l%o,c=n<4?(a||c)&&(0==n||n==(t.s<0?3:2)):a>5||5==a&&(4==n||c||6==n&&(r>0?i>0?l/d(10,s-i):0:m[p-1])%10&1||n==(t.s<0?8:7))),e<1||!m[0])return c?(o=A(t),m.length=1,e=e-o-1,m[0]=d(10,(7-e%7)%7),t.e=f(-e/7)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==r?(m.length=p,o=1,p--):(m.length=p+1,o=d(10,7-r),m[p]=i>0?(l/d(10,s-i)%d(10,i)|0)*o:0),c)for(;;){if(0==p){(m[0]+=o)==g&&(m[0]=1,++t.e);break}if(m[p]+=o,m[p]!=g)break;m[p--]=0,o=1}for(r=m.length;0===m[--r];)m.pop();if(u&&(t.e>y||t.e<-y))throw Error(h+A(t));return t}function M(t,e){var n,r,i,o,s,a,c,l,h,f,d=t.constructor,p=d.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new d(t),u?C(e,p):e;if(c=t.d,f=e.d,r=e.e,l=t.e,c=c.slice(),s=l-r){for((h=s<0)?(n=c,s=-s,a=f.length):(n=f,r=l,a=c.length),s>(i=Math.max(Math.ceil(p/7),a)+2)&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for((h=(i=c.length)<(a=f.length))&&(a=i),i=0;i<a;i++)if(c[i]!=f[i]){h=c[i]<f[i];break}s=0}for(h&&(n=c,c=f,f=n,e.s=-e.s),a=c.length,i=f.length-a;i>0;--i)c[a++]=0;for(i=f.length;i>s;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=g-1;--c[o],c[i]+=g}c[i]-=f[i]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=r,u?C(e,p):e):new d(0)}function D(t,e,n){var r,i=A(t),o=w(t.d),s=o.length;return e?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+P(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+P(-i-1)+o,n&&(r=n-s)>0&&(o+=P(r))):i>=s?(o+=P(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+P(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=P(r))),t.s<0?"-"+o:o}function k(t,e){if(t.length>e)return t.length=e,!0}function j(t){if(!t||"object"!==typeof t)throw Error(c+"Object expected");var e,n,r,i=["precision",1,s,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(f(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}a=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"===typeof t){if(0*t!==0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):T(e,t.toString())}if("string"!==typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!p.test(t))throw Error(l+t);T(e,t)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=j,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(a),a.default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},8141:function(t,e,n){"use strict";var r=n(5318);
1e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,i.default)(t,e)||("string"===typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var i=r(n(404));t.exports=e.default},404:function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},602:function(t){"use strict";function e(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,n){t.classList?t.classList.remove(n):"string"===typeof t.className?t.className=e(t.className,n):t.setAttribute("class",e(t.className&&t.className.baseVal||"",n))}},9187:function(t){"use strict";function e(t,e,o){o=o||2;var s,a,u,h,f,p,g,m=e&&e.length,y=m?e[0]*o:t.length,v=n(t,0,y,o,!0),b=[];if(!v||v.next===v.prev)return b;if(m&&(v=function(t,e,i,o){var s,a,u,h=[];for(s=0,a=e.length;s<a;s++)(u=n(t,e[s]*o,s<a-1?e[s+1]*o:t.length,o,!1))===u.next&&(u.steiner=!0),h.push(d(u));for(h.sort(c),s=0;s<h.length;s++)i=r(i=l(h[s],i),i.next);return i}(t,e,v,o)),t.length>80*o){s=u=t[0],a=h=t[1];for(var _=o;_<y;_+=o)(f=t[_])<s&&(s=f),(p=t[_+1])<a&&(a=p),f>u&&(u=f),p>h&&(h=p);g=0!==(g=Math.max(u-s,h-a))?1/g:0}return i(v,b,o,s,a,g),b}function n(t,e,n,r,i){var o,s;if(i===P(t,e,n,r)>0)for(o=e;o<n;o+=r)s=E(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=E(o,t[o],t[o+1],s);return s&&y(s,s.next)&&(A(s),s=s.next),s}function r(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!y(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(A(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function i(t,e,n,c,l,h,d){if(t){!d&&h&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=f(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){var e,n,r,i,o,s,a,u,c=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(u=c;a>0||u>0&&r;)0!==a&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1)}(i)}(t,c,l,h);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,h?s(t,c,l,h):o(t))e.push(p.i/n),e.push(t.i/n),e.push(g.i/n),A(t),t=g.next,m=g.next;else if((t=g)===m){d?1===d?i(t=a(r(t),e,n),e,n,c,l,h,2):2===d&&u(t,e,n,c,l,h):i(r(t),e,n,c,l,h,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(m(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(p(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&m(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function s(t,e,n,r){var i=t.prev,o=t,s=t.next;if(m(i,o,s)>=0)return!1;for(var a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,u=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,c=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,l=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=f(a,u,e,n,r),d=f(c,l,e,n,r),g=t.prevZ,y=t.nextZ;g&&g.z>=h&&y&&y.z<=d;){if(g!==t.prev&&g!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;if(g=g.prevZ,y!==t.prev&&y!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,y.x,y.y)&&m(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;g&&g.z>=h;){if(g!==t.prev&&g!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;y&&y.z<=d;){if(y!==t.prev&&y!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,y.x,y.y)&&m(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function a(t,e,n){var i=t;do{var o=i.prev,s=i.next.next;!y(o,s)&&v(o,i,i.next,s)&&w(o,s)&&w(s,o)&&(e.push(o.i/n),e.push(i.i/n),e.push(s.i/n),A(i),A(i.next),i=t=s),i=i.next}while(i!==t);return r(i)}function u(t,e,n,o,s,a){var u=t;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&g(u,c)){var l=x(u,c);return u=r(u,u.next),l=r(l,l.next),i(u,e,n,o,s,a),void i(l,e,n,o,s,a)}c=c.next}u=u.next}while(u!==t)}function c(t,e){return t.x-e.x}function l(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y
vendor: 4,517 bytes, line 1
1);if(a<=i&&a>s){if(s=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===s)return n;var u,c=n,l=n.x,f=n.y,d=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&p(o<f?i:s,o,l,f,o<f?s:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),w(r,t)&&(u<d||u===d&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,d=u)),r=r.next}while(r!==c);return n}(t,e);if(!n)return e;var i=x(n,t),o=r(n,n.next);return r(i,i.next),e===n?o:e}function h(t,e){return m(t.prev,t,e.prev)<0&&m(e.next,t,t.next)<0}function f(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function p(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&v(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(w(t,e)&&w(e,t)&&function(t,e){var 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}(t,e)&&(m(t.prev,t,e.prev)||m(t,e.prev,e))||y(t,e)&&m(t.prev,t,t.next)>0&&m(e.prev,e,e.next)>0)}function m(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,n,r){var i=_(m(t,e,n)),o=_(m(t,e,r)),s=_(m(n,r,t)),a=_(m(n,r,e));return i!==o&&s!==a||(!(0!==i||!b(t,n,e))||(!(0!==o||!b(t,r,e))||(!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r)))))}function b(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 _(t){return t>0?1:t<0?-1:0}function w(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function x(t,e){var n=new S(t.i,t.x,t.y),r=new S(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 E(t,e,n,r){var i=new S(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 A(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 S(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function P(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(P(t,0,o,n));if(i)for(var a=0,u=e.length;a<u;a++){var c=e[a]*n,l=a<u-1?e[a+1]*n:t.length;s-=Math.abs(P(t,c,l,n))}var h=0;for(a=0;a<r.length;a+=3){var f=r[a]*n,d=r[a+1]*n,p=r[a+2]*n;h+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},6729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,s){if("function"!==typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||t,s),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},a.prototype.emit=function(t,e,r,i,o,s){var a=n?n+t:t;if(!this._events[a])return!1;var u,c,l=this._events[a],h=arguments.length;
1if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,i),!0;case 5:return l.fn.call(l.context,e,r,i,o),!0;case 6:return l.fn.call(l.context,e,r,i,o,s),!0}for(c=1,u=new Array(h-1);c<h;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var f,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),h){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,i);break;default:if(!u)for(f=1,u=new Array(h-1);f<h;f++)u[f-1]=arguments[f];l[c].fn.apply(l[c].context,u)}}return!0},a.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},a.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},a.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==e||i&&!a[u].once||r&&a[u].context!==r)&&c.push(a[u]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a},4858:function(t,e){!function(t){"use strict";var e="function"===typeof WeakSet,n=Object.keys;function r(t,e){return t===e||t!==t&&e!==e}function i(t){return t.constructor===Object||null==t.constructor}function o(t){return!!t&&"function"===typeof t.then}function s(t){return!(!t||!t.$$typeof)}function a(){var t=[];return{add:function(e){t.push(e)},has:function(e){return-1!==t.indexOf(e)}}}var u=e?function(){return new WeakSet}:a;function c(t){return function(e){var n=t||e;return function(t,e,r){void 0===r&&(r=u());var i=!!t&&"object"===typeof t,o=!!e&&"object"===typeof e;if(i||o){var s=i&&r.has(t),a=o&&r.has(e);if(s||a)return s&&a;i&&r.add(t),o&&r.add(e)}return n(t,e,r)}}}function l(t,e,n,r){var i=t.length;if(e.length!==i)return!1;for(;i-- >0;)if(!n(t[i],e[i],r))return!1;return!0}function h(t,e,n,r){var i=t.size===e.size;if(i&&t.size){var o={};t.forEach((function(t,s){if(i){var a=!1,u=0;e.forEach((function(e,i){a||o[u]||(a=n(s,i,r)&&n(t,e,r))&&(o[u]=!0),u++})),i=a}}))}return i}var f="_owner",d=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function p(t,e,r,i){var o=n(t),a=o.length;if(n(e).length!==a)return!1;if(a)for(var u=void 0;a-- >0;){if((u=o[a])===f){var c=s(t),l=s(e);if((c||l)&&c!==l)return!1}if(!d(e,u)||!r(t[u],e[u],i))return!1}return!0}function g(t,e){return t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.unicode===e.unicode&&t.sticky===e.sticky&&t.lastIndex===e.lastIndex}function m(t,e,n,r){var i=t.size===e.size;if(i&&t.size){var o={};t.forEach((function(t){if(i){var s=!1,a=0;e.forEach((function(e){s||o[a]||(s=n(t,e,r))&&(o[a]=!0),a++})),i=s}}))}return i}var y="function"===typeof Map,v="function"===typeof Set;function b(t){var e="function"===typeof t?t(n):n;function n(t,n,s){if(t===n)return!0;if(t&&n&&"object"===typeof t&&"object"===typeof n){if(i(t)&&i(n))return p(t,n,e,s);var a=Array.isArray(t),u=Array.isArray(n);return a||u?a===u&&l(t,n,e,s):(a=t instanceof Date,u=n instanceof Date,a||u?a===u&&r(t.getTime(),n.getTime()):(a=t instanceof RegExp,u=n instanceof RegExp,a||u?a===u&&g(t,n):o(t)||o(n)?t===n:y&&(a=t instanceof Map,u=n instanceof Map,a||u)?a===u&&h(t,n,e,s):v&&(a=t instanceof Set,u=n instanceof Set,a||u)?a===u&&m(t,n,e,s):p(t,n,e,s)))}return t!==t&&n!==n}return n}var _=b(),w=b((function(){return r})),x=b(c()),E=b(c(r));t.circularDeepEqual=x,t.circularShallowEqual=E,t.createCustomEqual=b,t.deepEqual=_,t.sameValueZeroEqual=r,t.shallowEqual=w,Object.defineProperty(t,"__esModule",{value:!0})}(e)},9671:function(t,e,n){const r=n(1701);t.exports=o;const i=Object.hasOwnProperty;function o(){if(!(this instanceof o))return new o;this.reset()}function s(t,e){return"string"!==typeof t?"":(e||(t=t.toLowerCase()),t.replace(r,"").replace(/ /g,"-"))}o.prototype.slug=function(t,e){const n=this;let r=s(t,!0===e);const o=r;for(;i.call(n.occurrences,r);)n.occurrences[o]++,r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r},o.prototype.reset=function(){this.occurrences=Object.create(null)},o.slug=s},1701:function(t){t.exports=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085
1F\u086B-\u089F\u08B5\u08BE-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D04\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1ABF-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31BB-\u31EF\u3200-\u33FF\u4DB6-\u4DFF\u9FF0-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7C7-\uA7F6\uA828-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB68-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uD
1F37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD47-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD-\uDDCF\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC60-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD00-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD823-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D-\uD83F\uD87B-\uD87D\uD87F-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD822[\uDEF3-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD869[\uDED7-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g},9685:function(t,e,n){"use strict";n.d(e,{Ib:function(){return r},WT:function(){return i}});var r=1e-6,i="undefined"!==typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},5975:function(t,e,n){"use strict";n.d(e,{p4:function(){return i},U_:function(){return o},GH:function(){return s},Jp:function(){return a},Iu:function(){return u},bA:function(){return c},U1:function(){return l},lM:function(){return h},uD:function(){return f},jI:function(){return d},en:function(){return p},oy:function(){return g},G3:function(){return m},M5:function(){return y},zB:function(){return v}});var r=n(9685);function i(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function o(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],m=e[14],y=e[15],v=n*a-r*s,b=n*u-i*s,_=n*c-o*s,w=r*u-i*a,x=r*c-o*a,E=i*c-o*u,A=l*g-h*p,S=l*m-f*p,P=l*y-d*p,O=h*m-f*g,T=h*y-d*g,C=f*y-d*m,M=v*C-b*T+_*O+w*P-x*S+E*A;return M?(M=1/M,t[0]=(a*C-u*T+c*O)*M,t[1]=(i*T-r*C-o*O)*M,t[2]=(g*E-m*x+y*w)*M,t[3]=(f*x-h*E-d*w)*M,t[4]=(u*P-s*C-c*S)
1*M,t[5]=(n*C-i*P+o*S)*M,t[6]=(m*_-p*E-y*b)*M,t[7]=(l*E-f*_+d*b)*M,t[8]=(s*T-a*P+c*A)*M,t[9]=(r*P-n*T-o*A)*M,t[10]=(p*x-g*_+y*v)*M,t[11]=(h*_-l*x-d*v)*M,t[12]=(a*S-s*O-u*A)*M,t[13]=(n*O-r*S+i*A)*M,t[14]=(g*b-p*w-m*v)*M,t[15]=(l*w-h*b+f*v)*M,t):null}function s(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],u=t[7],c=t[8],l=t[9],h=t[10],f=t[11],d=t[12],p=t[13],g=t[14],m=t[15];return(e*s-n*o)*(h*m-f*g)-(e*a-r*o)*(l*m-f*p)+(e*u-i*o)*(l*g-h*p)+(n*a-r*s)*(c*m-f*d)-(n*u-i*s)*(c*g-h*d)+(r*u-i*a)*(c*p-l*d)}function a(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],m=e[13],y=e[14],v=e[15],b=n[0],_=n[1],w=n[2],x=n[3];return t[0]=b*r+_*a+w*h+x*g,t[1]=b*i+_*u+w*f+x*m,t[2]=b*o+_*c+w*d+x*y,t[3]=b*s+_*l+w*p+x*v,b=n[4],_=n[5],w=n[6],x=n[7],t[4]=b*r+_*a+w*h+x*g,t[5]=b*i+_*u+w*f+x*m,t[6]=b*o+_*c+w*d+x*y,t[7]=b*s+_*l+w*p+x*v,b=n[8],_=n[9],w=n[10],x=n[11],t[8]=b*r+_*a+w*h+x*g,t[9]=b*i+_*u+w*f+x*m,t[10]=b*o+_*c+w*d+x*y,t[11]=b*s+_*l+w*p+x*v,b=n[12],_=n[13],w=n[14],x=n[15],t[12]=b*r+_*a+w*h+x*g,t[13]=b*i+_*u+w*f+x*m,t[14]=b*o+_*c+w*d+x*y,t[15]=b*s+_*l+w*p+x*v,t}function u(t,e,n){var r,i,o,s,a,u,c,l,h,f,d,p,g=n[0],m=n[1],y=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*y+e[12],t[13]=e[1]*g+e[5]*m+e[9]*y+e[13],t[14]=e[2]*g+e[6]*m+e[10]*y+e[14],t[15]=e[3]*g+e[7]*m+e[11]*y+e[15]):(r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=u,t[6]=c,t[7]=l,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*g+a*m+h*y+e[12],t[13]=i*g+u*m+f*y+e[13],t[14]=o*g+c*m+d*y+e[14],t[15]=s*g+l*m+p*y+e[15]),t}function c(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function l(t,e,n,i){var o,s,a,u,c,l,h,f,d,p,g,m,y,v,b,_,w,x,E,A,S,P,O,T,C=i[0],M=i[1],D=i[2],k=Math.hypot(C,M,D);return k<r.Ib?null:(C*=k=1/k,M*=k,D*=k,o=Math.sin(n),a=1-(s=Math.cos(n)),u=e[0],c=e[1],l=e[2],h=e[3],f=e[4],d=e[5],p=e[6],g=e[7],m=e[8],y=e[9],v=e[10],b=e[11],_=C*C*a+s,w=M*C*a+D*o,x=D*C*a-M*o,E=C*M*a-D*o,A=M*M*a+s,S=D*M*a+C*o,P=C*D*a+M*o,O=M*D*a-C*o,T=D*D*a+s,t[0]=u*_+f*w+m*x,t[1]=c*_+d*w+y*x,t[2]=l*_+p*w+v*x,t[3]=h*_+g*w+b*x,t[4]=u*E+f*A+m*S,t[5]=c*E+d*A+y*S,t[6]=l*E+p*A+v*S,t[7]=h*E+g*A+b*S,t[8]=u*P+f*O+m*T,t[9]=c*P+d*O+y*T,t[10]=l*P+p*O+v*T,t[11]=h*P+g*O+b*T,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function h(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],u=e[7],c=e[8],l=e[9],h=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+c*r,t[5]=s*i+l*r,t[6]=a*i+h*r,t[7]=u*i+f*r,t[8]=c*i-o*r,t[9]=l*i-s*r,t[10]=h*i-a*r,t[11]=f*i-u*r,t}function f(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],u=e[3],c=e[8],l=e[9],h=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-c*r,t[1]=s*i-l*r,t[2]=a*i-h*r,t[3]=u*i-f*r,t[8]=o*r+c*i,t[9]=s*r+l*i,t[10]=a*r+h*i,t[11]=u*r+f*i,t}function d(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],u=e[3],c=e[4],l=e[5],h=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+c*r,t[1]=s*i+l*r,t[2]=a*i+h*r,t[3]=u*i+f*r,t[4]=c*i-o*r,t[5]=l*i-s*r,t[6]=h*i-a*r,t[7]=f*i-u*r,t}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,u=i+i,c=n*s,l=r*s,h=r*a,f=i*s,d=i*a,p=i*u,g=o*s,m=o*a,y=o*u;return t[0]=1-h-p,t[1]=l+y,t[2]=f-m,t[3]=0,t[4]=l-y,t[5]=1-c-p,t[6]=d+g,t[7]=0,t[8]=f+m,t[9]=d-g,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n,r,i,o,s){var a=1/(n-e),u=1/(i-r),c=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*u,t[10]=(s+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*c,t[15]=0,t}var m=function(t,e,n,r,i){var o,s=1/Math.tan(e/2);return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t};var y=function(t,e,n,r,i,o,s){var a=1/(e-n),u=1/(r-i),c=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*u,t[14]=(s+o)*c,t[15]=1,t};function v(t,e,n,i){var o,s,a,u,c,l,h,f,d,p,g=e[0],m=e[1],y=e[2],v=i[0],b=i[1],_=i[2],w=n[0],x=n[1],E=n[2];return Math.abs(g-w)<r.Ib&&Math.abs(m-x)<r.Ib&&Math.abs(y-E)<r.Ib?function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}(t):(h=g-w,f=m-x,d=y-E,o=b*(d*=p=1/Math.hypot(h,f,d))-_*(f*=p),s=_*(h*=p)-v*d,a=v*f-b*h,(p=Math.hypot(o,s,a))?(o*=p=1/p,s*=p,a*=p):(o=0,s=0,a=0),u=f*a-d*s,c=d*o-h*a,l=h*s-f*o,(p=Math.hypot(u,c,l))?(u*=p=1/p,c*=p,l*=p):(u=0,c=0,l=0),t[0]=o,t[1]=u,t[2]=h,t[3]=0,t[4]=s,t[5]=c,t[6]=f,t[7]=0,t[8]=a,t[9]=l,t[10]=d,t[11]=0,t[12]=-(o*g+s*m+a*y),t[13]=-(u*g+c*m+l*y),t[14]=-(h*g+f*m+d*y),t[15]=1,t)}},1437:function(t,e,n){"use strict";n.d(e,{IH:function(){return i},bA:function(){return o},kE:function(){return s},tk:function(){return a},t7:function(){return u},fF:function(){return c},lu:function(){return l}});var r=n(9685);function i(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function o(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function s(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function a(t,e){return t[0]=-e[0],t[1]=-e[1],t}function u(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function c(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}var l=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t};!function(){var t=function(){var t=new r.WT(2);
vendor: 4,486 bytes, line 1
1return r.WT!=Float32Array&&(t[0]=0,t[1]=0),t}()}()},7160:function(t,e,n){"use strict";n.d(e,{tk:function(){return i},kC:function(){return o},fF:function(){return s},kK:function(){return a},VC:function(){return u},lM:function(){return c},uD:function(){return l},jI:function(){return h},EU:function(){return f},lu:function(){return d}});var r=n(9685);function i(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function o(t,e,n){var r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],u=n[2];return t[0]=i*u-o*a,t[1]=o*s-r*u,t[2]=r*a-i*s,t}function s(t,e,n){var r=e[0],i=e[1],o=e[2],s=n[3]*r+n[7]*i+n[11]*o+n[15];return s=s||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/s,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/s,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/s,t}function a(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function u(t,e,n){var r=n[0],i=n[1],o=n[2],s=n[3],a=e[0],u=e[1],c=e[2],l=i*c-o*u,h=o*a-r*c,f=r*u-i*a,d=i*f-o*h,p=o*l-r*f,g=r*h-i*l,m=2*s;return l*=m,h*=m,f*=m,d*=2,p*=2,g*=2,t[0]=a+l+d,t[1]=u+h+p,t[2]=c+f+g,t}function c(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function l(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function h(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function f(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],s=e[1],a=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+s*s+a*a),c=u&&function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}(t,e)/u;return Math.acos(Math.min(Math.max(c,-1),1))}var d=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t};!function(){var t=function(){var t=new r.WT(3);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}()}()},8333:function(t,e,n){"use strict";n.d(e,{bA:function(){return i},fF:function(){return o}});var r=n(9685);function i(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function o(t,e,n){var r=e[0],i=e[1],o=e[2],s=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*s,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*s,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*s,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*s,t}!function(){var t=function(){var t=new r.WT(4);return r.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}()}()},840:function(t,e,n){var r;!function(i,o,s,a){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,f=Math.abs,d=Date.now;function p(t,e,n){return setTimeout(w(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function y(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!==typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var v=y((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===a)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),b=y((function(t,e){return v(t,e,!0)}),"merge","Use `assign`.");function _(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function x(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function E(t,e){return t===a?e:t}function A(t,e,n){m(T(e),(function(e){t.addEventListener(e,n,!1)}))}function S(t,e,n){m(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function P(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function O(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}
vendor: 14,378 bytes, line 1
1function C(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function M(t){return Array.prototype.slice.call(t,0)}function D(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];C(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function k(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}return a}var j=1;function F(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var L="ontouchstart"in i,I=k(i,"PointerEvent")!==a,R=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),B="touch",N="mouse",z=24,Z=["x","y"],U=["clientX","clientY"];function V(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){x(t.options.enable,[t])&&n.handler(e)},this.init()}function G(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i===0,s=12&e&&r-i===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=W(e));i>1&&!n.firstMultiple?n.firstMultiple=W(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,c=e.center=H(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=K(u,c),e.distance=Y(u,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=q(e.deltaX,e.deltaY);var l=X(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=f(l.x)>f(l.y)?l.x:l.y,e.scale=s?(h=s.pointers,p=r,Y(p[0],p[1],U)/Y(h[0],h[1],U)):1,e.rotation=s?function(t,e){return K(e[1],e[0],U)+K(t[1],t[0],U)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(u>25||s.velocity===a)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,h=X(u,c,l);r=h.x,i=h.y,n=f(h.x)>f(h.y)?h.x:h.y,o=q(c,l),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var h,p;var g=t.element;P(e.srcEvent.target,g)&&(g=e.srcEvent.target);e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:H(e),deltaX:t.deltaX,deltaY:t.deltaY}}function H(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function X(t,e,n){return{x:e/t||0,y:n/t||0}}function q(t,e){return t===e?1:f(t)>=f(e)?t<0?2:4:e<0?8:16}function Y(t,e,n){n||(n=Z);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function K(t,e,n){n||(n=Z);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(F(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(F(this.element),this.evWin,this.domHandler)}};var $={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Q="mousemove mouseup";function tt(){this.evEl=J,this.evWin=Q,this.pressed=!1,V.apply(this,arguments)}_(tt,V,{handler:function(t){var e=$[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:N,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nt={2:B,3:"pen",4:N,5:"kinect"},rt="pointerdown",it="pointermove pointerup pointercancel";function ot(){this.evEl=rt,this.evWin=it,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(rt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel"),_(ot,V,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=et[r],o=nt[t.pointerType]||t.pointerType,s=o==B,a=C(e,t.pointerId,"pointerId");1&i&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&i&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",ut="touchstart touchmove touchend touchcancel";function ct(){this.evTarget=at,this.evWin=ut,this.started=!1,V.apply(this,arguments)}function lt(t,e){var n=M(t.touches),r=M(t.changedTouches);return 12&e&&(n=D(n.concat(r),"identifier",!0)),[n,r]}_(ct,V,{handler:function(t){var e=st[t.type];if(1===e&&(this.started=!0),this.started){var n=lt.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:B,srcEvent:t})}}});var ht={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ft="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=ft,this.targetIds={},V.apply(this,arguments)}function pt(t,e){var n=M(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=M(t.changedTouches),a=[],u=this.target;if(o=n.filter((function(t){return P(t.target,u)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[D(o.concat(a),"identifier",!0),a]:void 0}_(dt,V,{handler:function(t){var e=ht[t.type],n=pt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:B,srcEvent:t})}});function gt(){V.apply(this,arguments);var t=w(this.handler,this);this.touch=new dt(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function mt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,yt.call(this,e)):12&t&&yt.call(this,e)}function yt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function vt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}_(gt,V,{handler:function(t,e,n){var r=n.pointerType==B,i=n.pointerType==N;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)mt.call(this,e,n);else if(i&&vt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=k(l.style,"touchAction"),_t=bt!==a,wt="compute",xt="auto",Et="manipulation",At="none",St="pan-x",Pt="pan-y",Ot=function(){if(!_t)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function Tt(t,e){this.manager=t,this.set(e)}Tt.prototype={set:function(t){t==wt&&(t=this.compute()),_t&&this.manager.element.style&&Ot[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(O(t,At))return At;var e=O(t,St),n=O(t,Pt);if(e&&n)return At;if(e||n)return e?St:Pt;if(O(t,Et))return Et;return xt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=O(r,At)&&!Ot.none,o=O(r,Pt)&&!Ot["pan-y"],s=O(r,St)&&!Ot["pan-x"];if(i){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}if(!s||!o)return i||o&&6&n||s&&n&z?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ct=32;function Mt(t){this.options=u({},this.defaults,t||{}),this.id=j++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Dt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function kt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function jt(t,e){var n=e.manager;return n?n.get(t):t}function Ft(){Mt.apply(this,arguments)}function Lt(){Ft.apply(this,arguments),this.pX=null,this.pY=null}function It(){Ft.apply(this,arguments)}function Rt(){Mt.apply(this,arguments),this._timer=null,this._input=null}function Bt(){Ft.apply(this,arguments)}function Nt(){Ft.apply(this,arguments)}function zt(){Mt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Zt(t,e){return(e=e||{}).recognizers=E(e.recognizers,Zt.defaults.preset),new Ut(t,e)}Mt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=jt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=jt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===C(e,t=jt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=jt(t,this);var e=C(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Dt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Dt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Ct},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=Ct);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},_(Ft,Mt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:Ct}}),_(Lt,Ft,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(Pt),t&z&&e.push(St),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?1:s<0?8:16,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Ft.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=kt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),_(It,Ft,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),_(Rt,Mt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Ct},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),_(Bt,Ft,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),_(Nt,Ft,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Lt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&z&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=kt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),_(zt,Mt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Et]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||Y(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}
1),e.interval,this),2):8}return Ct},failTimeout:function(){return this._timer=p((function(){this.state=Ct}),this.options.interval,this),Ct},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Zt.VERSION="2.0.7",Zt.defaults={domEvents:!1,touchAction:wt,enable:!0,inputTarget:null,inputClass:null,preset:[[Bt,{enable:!1}],[It,{enable:!1},["rotate"]],[Nt,{direction:6}],[Lt,{direction:6},["swipe"]],[zt],[zt,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ut(t,e){var n;this.options=u({},Zt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(I?ot:R?dt:L?gt:tt))(n,G),this.touchAction=new Tt(this,this.options.touchAction),Vt(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Vt(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,(function(i,o){n=k(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ut.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Mt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=C(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return m(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return m(T(t),(function(t){e?n[t]&&n[t].splice(C(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Vt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Zt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ct,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:z,DIRECTION_ALL:30,Manager:Ut,Input:V,TouchAction:Tt,TouchInput:dt,MouseInput:tt,PointerEventInput:ot,TouchMouseInput:gt,SingleTouchInput:ct,Recognizer:Mt,AttrRecognizer:Ft,Tap:zt,Pan:Lt,Swipe:Nt,Pinch:It,Rotate:Bt,Press:Rt,on:A,off:S,each:m,merge:b,extend:v,assign:u,inherit:_,bindFn:w,prefixed:k}),("undefined"!==typeof i?i:"undefined"!==typeof self?self:{}).Hammer=Zt,(r=function(){return Zt}.call(e,n,e,t))===a||(t.exports=r)}(window,document)},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),i=n(401),o=n(7667),s=n(1327),a=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:function(t,e,n){var r=n(7040),i=n(4125),o=n(2117),s=n(7518),a=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),i=n(1285),o=n(6e3),s=n(9916),a=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},8668:function(t,e,n){var r=n(3369),i=n(619),o=n(2385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},6384:function(t,e,n){var r=n(8407),i=n(7465),o=n(3779),s=n(7599),a=n(4758),u=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6193:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},7443:function(t,e,n){var r=n(2118);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),s=n(4144),a=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),h=!n&&!l&&s(t),f=!n&&!l&&!h&&u(t),d=n||l||h||f,p=d?r(t.length,String):[],g=p.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||p.push(m);return p}},9932:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2908:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4286:function(t){t.exports=function(t){return t.split("")}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},9881:function(t,e,n){var r=n(7816),i=n(9291)(r);t.exports=i},3239:function(t,e,n){var r=n(9881);t.exports=function(t,e){var n=!0;return r(t,(function(t,r,i){return n=!!e(t,r,i)})),n}},6029:function(t,e,n){var r=n(3448);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===u?a===a&&!r(a):n(a,u)))var u=a,c=s}return c}},1848:function(t){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},1078:function(t,e,n){var r=n(2488),i=n(7285);t.exports=function t(e,n,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},6224:function(t,e,n){var r=n(5063)();t.exports=r},7816:function(t,e,n){var r=n(6224),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:function(t,e,n){var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},4055:function(t,e,n){var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;
1t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},3325:function(t){t.exports=function(t,e){return t>e}},13:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:function(t,e,n){var r=n(1848),i=n(2722),o=n(2351);t.exports=function(t,e,n){return e===e?o(t,e,n):r(t,i,n)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:function(t,e,n){var r=n(2492),i=n(7005);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!==e&&n!==n:r(e,n,o,s,t,a))}},2492:function(t,e,n){var r=n(6384),i=n(7114),o=n(8351),s=n(6096),a=n(4160),u=n(1469),c=n(4144),l=n(6719),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,y){var v=u(t),b=u(e),_=v?f:a(t),w=b?f:a(e),x=(_=_==h?d:_)==d,E=(w=w==h?d:w)==d,A=_==w;if(A&&c(t)){if(!c(e))return!1;v=!0,x=!1}if(A&&!x)return y||(y=new r),v||l(t)?i(t,e,n,g,m,y):o(t,e,_,n,g,m,y);if(!(1&n)){var S=x&&p.call(t,"__wrapped__"),P=E&&p.call(e,"__wrapped__");
1if(S||P){var O=S?t.value():t,T=P?e.value():e;return y||(y=new r),m(O,T,n,g,y)}}return!!A&&(y||(y=new r),s(t,e,n,g,m,y))}},2958:function(t,e,n){var r=n(6384),i=n(939);t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],h=t[l],f=c[1];if(u&&c[2]){if(void 0===h&&!(l in t))return!1}else{var d=new r;if(o)var p=o(h,f,l,t,e,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},2722:function(t){t.exports=function(t){return t!==t}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,h=c.hasOwnProperty,f=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:a).test(s(t))}},8749:function(t,e,n){var r=n(4239),i=n(8329),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},7206:function(t,e,n){var r=n(1573),i=n(6432),o=n(6557),s=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},433:function(t){t.exports=function(t,e){return t<e}},9199:function(t,e,n){var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},1573:function(t,e,n){var r=n(2958),i=n(1499),o=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:function(t,e,n){var r=n(939),i=n(7361),o=n(9095),s=n(5403),a=n(9162),u=n(2634),c=n(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},2689:function(t,e,n){var r=n(9932),i=n(7786),o=n(7206),s=n(9199),a=n(1131),u=n(1717),c=n(5022),l=n(6557),h=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var f=-1;e=r(e,u(o));var d=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return a(d,(function(t,e){return c(t,e,n)}))}},371:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:function(t,e,n){var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},98:function(t){var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,o){for(var s=-1,a=n(e((r-t)/(i||1)),0),u=Array(a);a--;)u[o?a:++s]=t,t+=i;return u}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},4259:function(t){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},5076:function(t,e,n){var r=n(9881);t.exports=function(t,e){var n;return r(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}},1131:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:function(t,e,n){var r=n(2705),i=n(9932),o=n(1469),s=n(3448),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},7561:function(t,e,n){var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},5652:function(t,e,n){var r=n(8668),i=n(7443),o=n(1196),s=n(4757),a=n(3593),u=n(1814);t.exports=function(t,e,n){var c=-1,l=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,l=o;else if(h>=200){var g=e?null:a(t);if(g)return u(g);f=!1,l=s,p=new r}else p=e?[]:d;t:for(;++c<h;){var m=t[c],y=e?e(m):m;if(m=n||0!==m?m:0,f&&y===y){for(var v=p.length;v--;)if(p[v]===y)continue t;e&&p.push(y),d.push(m)}else l(p,y,n)||(p!==d&&p.push(y),d.push(m))}return d}},4757:function(t){t.exports=function(t,e){return t.has(e)}},1811:function(t,e,n){var r=n(1469),i=n(5403),o=n(5514),s=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},180:function(t,e,n){var r=n(4259);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},6393:function(t,e,n){var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t===t,s=r(t),a=void 0!==e,u=null===e,c=e===e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}},5022:function(t,e,n){var r=n(6393);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},9291:function(t,e,n){var r=n(8612);
vendor: 1,924 bytes, line 1
1t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},8805:function(t,e,n){var r=n(180),i=n(2036),o=n(3140),s=n(9833);t.exports=function(t){return function(e){e=s(e);var n=i(e)?o(e):void 0,a=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return a[t]()+u}}},7740:function(t,e,n){var r=n(7206),i=n(8612),o=n(3674);t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,s);return c>-1?a[u?e[c]:c]:void 0}}},7445:function(t,e,n){var r=n(98),i=n(6612),o=n(8601);t.exports=function(t){return function(e,n,s){return s&&"number"!=typeof s&&i(e,n,s)&&(n=s=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),s=void 0===s?e<n?1:-1:o(s),r(e,n,s,t)}}},3593:function(t,e,n){var r=n(8525),i=n(308),o=n(1814),s=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=s},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},7114:function(t,e,n){var r=n(8668),i=n(2908),o=n(4757);t.exports=function(t,e,n,s,a,u){var c=1&n,l=t.length,h=e.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var y=t[p],v=e[p];if(s)var b=c?s(v,y,p,e,t,u):s(y,v,p,t,e,u);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(y===t||a(y,t,n,s,u)))return m.push(e)}))){g=!1;break}}else if(y!==v&&!a(y,v,n,s,u)){g=!1;break}}return u.delete(t),u.delete(e),g}},8351:function(t,e,n){var r=n(2705),i=n(1149),o=n(7813),s=n(7114),a=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf
vendor: 2,663 bytes, line 1
1:void 0;t.exports=function(t,e,n,r,c,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var g=f.get(t);if(g)return g==e;r|=2,f.set(t,e);var m=s(d(t),d(e),r,c,h,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:function(t,e,n){var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var h=l;h--;){var f=c[h];if(!(u?f in e:i.call(e,f)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=u;++h<l;){var y=t[f=c[h]],v=e[f];if(o)var b=u?o(v,y,f,e,t,a):o(y,v,f,t,e,a);if(!(void 0===b?y===v||s(y,v,n,o,a):b)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var _=t.constructor,w=e.constructor;_==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(t),a.delete(e),g}},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(4055),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:function(t,e,n){var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(u){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},9551:function(t,e,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},4160:function(t,e,n){var r=n(8552),i=n(7071),o=n(3818),s=n(8525),a=n(577),u=n(4239),c=n(346),l="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),y=c(o),v=c(s),b=c(a),_=u;
vendor: 4,712 bytes, line 1
1(r&&_(new r(new ArrayBuffer(1)))!=p||i&&_(new i)!=l||o&&_(o.resolve())!=h||s&&_(new s)!=f||a&&_(new a)!=d)&&(_=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return l;case y:return h;case v:return f;case b:return d}return e}),t.exports=_},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},222:function(t,e,n){var r=n(1811),i=n(5694),o=n(1469),s=n(5776),a=n(8329),u=n(327);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,h=!1;++c<l;){var f=u(e[c]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++c!=l?h:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(o(t)||i(t))}},2036:function(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},7285:function(t,e,n){var r=n(2705),i=n(5694),o=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),s=n(3218);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},5403:function(t,e,n){var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r=n(4429),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:function(t,e,n){var r=n(3218);t.exports=function(t){return t===t&&!r(t)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:function(t,e,n){var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:function(t){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},4523:function(t,e,n){var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").t
vendor: 9,671 bytes, line 1
1ypes;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=a},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},619:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:function(t){t.exports=function(t){return this.__data__.has(t)}},1814:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},2351:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},3140:function(t,e,n){var r=n(4286),i=n(2036),o=n(5889);t.exports=function(t){return i(t)?o(t):r(t)}},5514:function(t,e,n){var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},327:function(t,e,n){var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},7990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},5889:function(t){var e="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",c=u+a+("(?:\\u200d(?:"+[i,o,s].join("|")+")"+u+a+")*"),l="(?:"+[i+n+"?",n,o,s,e].join("|")+")",h=RegExp(r+"(?="+r+")|"+l+c,"g");t.exports=function(t){return t.match(h)||[]}},5703:function(t){t.exports=function(t){return function(){return t}}},3279:function(t,e,n){var r=n(3218),i=n(7771),o=n(4841),s=Math.max,a=Math.min;t.exports=function(t,e,n){var u,c,l,h,f,d,p=0,g=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var n=u,r=c;return u=c=void 0,p=e,h=t.apply(r,n)}function b(t){return p=t,f=setTimeout(w,e),g?v(t):h}function _(t){var n=t-d;return void 0===d||n>=e||n<0||m&&t-p>=l}function w(){var t=i();if(_(t))return x(t);f=setTimeout(w,function(t){var n=e-(t-d);return m?a(n,l-(t-p)):n}(t))}function x(t){return f=void 0,y&&u?v(t):(u=c=void 0,h)}function E(){var t=i(),n=_(t);if(u=arguments,c=this,d=t,n){if(void 0===f)return b(d);if(m)return clearTimeout(f),f=setTimeout(w,e),v(d)}return void 0===f&&(f=setTimeout(w,e)),h}return e=o(e)||0,r(n)&&(g=!!n.leading,l=(m="maxWait"in n)?s(o(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=d=c=f=void 0},E.flush=function(){return void 0===f?h:x(i())},E}},7813:function(t){t.exports=function(t,e){return t===e||t!==t&&e!==e}},711:function(t,e,n){var r=n(6193),i=n(3239),o=n(7206),s=n(1469),a=n(6612);t.exports=function(t,e,n){var u=s(t)?r:i;return n&&a(t,e,n)&&(e=void 0),u(t,o(e,3))}},3311:function(t,e,n){var r=n(7740)(n(998));t.exports=r},998:function(t,e,n){var r=n(1848),i=n(7206),o=n(554),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(t,i(e,3),u)}},4654:function(t,e,n){var r=n(1078),i=n(5161);t.exports=function(t,e){return r(i(t,e),1)}},7361:function(t,e,n){var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},9095:function(t,e,n){var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(8329);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},1584:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u},8446:function(t,e,n){var r=n(939);t.exports=function(t,e){return r(t,e)}},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8329:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7654:function(t,e,n){var r=n(1763);t.exports=function(t){return r(t)&&t!=+t}},4293:function(t){t.exports=function(t){return null==t}},1763:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7037:function(t,e,n){var r=n(4239),i=n(1469),o=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},3448:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:function(t,e,n){var r=n(8749),i=n(1717),o=n(1167),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},928:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:function(t,e,n){var r=n(9932),i=n(7206),o=n(9199),s=n(1469);t.exports=function(t,e){return(s(t)?r:o)(t,i(e,3))}},6604:function(t,e,n){var r=n(9465),i=n(7816),o=n(7206);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},6162:function(t,e,n){var r=n(6029),i=n(3325),o=n(6557);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},8306:function(t,e,n){var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},3632:function(t,e,n){var r=n(6029),i=n(433),o=n(6557);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},308:function(t){t.exports=function(){}},7771:function(t,e,n){var r=n(5639);t.exports=function(){return r.Date.now()}},9601:function(t,e,n){var r=n(371),i=n(9152),o=n(5403),s=n(327);t.exports=function(t){return o(t)?r(s(t)):i(t)}},6026:function(t,e,n){var r=n(7445)();t.exports=r},9704:function(t,e,n){var r=n(2908),i=n(7206),o=n(5076),s=n(1469),a=n(6612);t.exports=function(t,e,n){var u=s(t)?r:o;return n&&a(t,e,n)&&(e=void 0),u(t,i(e,3))}},9734:function(t,e,n){var r=n(1078),i=n(2689),o=n(5976),s=n(6612),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},3493:function(t,e,n){var r=n(3279),i=n(3218);t.exports=function(t,e,n){var o=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(t,e,{leading:o,maxWait:e,trailing:s})}},8601:function(t,e,n){var r=n(4841),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},554:function(t,e,n){var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},4841:function(t,e,n){var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},9833:function(t,e,n){var r=n(531);t.exports=function(t){return null==t?"":r(t)}},5578:function(t,e,n){var r=n(7206),i=n(5652);
1t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},1700:function(t,e,n){var r=n(8805)("toUpperCase");t.exports=r},7329:function(){},2703:function(t,e,n){"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,s){if(s!==r){var a=new 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 a.name="Invariant Violation",a}}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}},5697:function(t,e,n){t.exports=n(2703)()},414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:function(t,e){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case h:case o:case a:case s:case d:return t;default:switch(t=t&&t.$$typeof){case c:case f:case m:case g:case u:return t;default:return e}}case i:return e}}}function x(t){return w(t)===h}e.isFragment=function(t){return w(t)===o}},9864:function(t,e,n){"use strict";t.exports=n(9921)},4764:function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,s=null,a=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?a="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var u=t.displayName||t.name,c="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:function(){return s}}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},3545:function(t,e,n){"use strict";n.d(e,{Jx:function(){return C},Pv:function(){return j},ZP:function(){return S}});var r=n(1720);const i=r.createContext(null);function o(t){return{longitude:t.center.lng,latitude:t.center.lat,zoom:t.zoom,pitch:t.pitch,bearing:t.bearing,padding:t.padding}}function s(t,e){const n=e.viewState||e;let r=!1;if("longitude"in n&&"latitude"in n){const e=t.center;t.center=new e.constructor(n.longitude,n.latitude),r=r||e!==t.center}if("zoom"in n){const e=t.zoom;t.zoom=n.zoom,r=r||e!==t.zoom}if("bearing"in n){const e=t.bearing;t.bearing=n.bearing,r=r||e!==t.bearing}if("pitch"in n){const e=t.pitch;t.pitch=n.pitch,r=r||e!==t.pitch}return n.padding&&!t.isPaddingEqual(n.padding)&&(r=!0,t.padding=n.padding),r}const a=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function u(t){if(!t)return null;if("string"===typeof t)return t;if("toJS"in t&&(t=t.toJS()),!t.layers)return t;const e={};
1for(const r of t.layers)e[r.id]=r;const n=t.layers.map((t=>{const n=e[t.ref];let r=null;if("interactive"in t&&(r={...t},delete r.interactive),n){r=r||{...t},delete r.ref;for(const t of a)t in n&&(r[t]=n[t])}return r||t}));return{...t,layers:n}}function c(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!c(t[n],e[n]))return!1;return!0}if(Array.isArray(e))return!1;if("object"===typeof t&&"object"===typeof e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const i of n){if(!e.hasOwnProperty(i))return!1;if(!c(t[i],e[i]))return!1}return!0}return!1}var l=n(3454);const h={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},f={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},d={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},p=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],g=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class m{constructor(t,e,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=t=>{const e=this.props[d[t.type]];e&&e(t)},this._onPointerEvent=t=>{"mousemove"!==t.type&&"mouseout"!==t.type||this._updateHover(t);const e=this.props[h[t.type]];if(e){if(this.props.interactiveLayerIds&&"mouseover"!==t.type&&"mouseout"!==t.type){const e=this._hoveredFeatures||this._map.queryRenderedFeatures(t.point,{layers:this.props.interactiveLayerIds});t.features=e}e(t),delete t.features}},this._onCameraEvent=t=>{if(!this._internalUpdate){const e=this.props[f[t.type]];e&&e(t)}t.type in this._deferredEvents&&(this._deferredEvents[t.type]=!1)},this._MapClass=t,this.props=e,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const e=this.props;this.props=t;const n=this._updateSettings(t,e);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,e),this._updateStyleComponents(t,e),this._updateHandlers(t,e),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,e){const n=m.savedMaps.pop();if(!n)return null;const r=n.map,i=r.getContainer();for(e.className=i.className;i.childNodes.length>0;)e.appendChild(i.childNodes[0]);return r._container=e,t.initialViewState&&n._updateViewState(t.initialViewState,!1),r.resize(),n.setProps({...t,styleDiffing:!1}),r.isStyleLoaded()?r.fire("load"):r.once("styledata",(()=>r.fire("load"))),n}_initialize(t){const{props:e}=this,n={...e,...e.initialViewState,accessToken:e.mapboxAccessToken||y()||null,container:t,style:u(e.mapStyle)},r=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[r.longitude||0,r.latitude||0],zoom:r.zoom||0,pitch:r.pitch||0,bearing:r.bearing||0}),e.gl){const t=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=t,e.gl)}const i=new this._MapClass(n);r.padding&&i.setPadding(r.padding),e.cursor&&(i.getCanvas().style.cursor=e.cursor),this._createShadowTransform(i);const o=i._render;i._render=t=>{this._inRender=!0,o.call(i,t),this._inRender=!1};const s=i._renderTaskQueue.run;i._renderTaskQueue.run=t=>{s.call(i._renderTaskQueue,t),this._onBeforeRepaint()},i.on("render",(()=>this._onAfterRepaint()));const a=i.fire;i.fire=this._fireEvent.bind(this,a),i.on("resize",(()=>{this._renderTransform.resize(i.transform.width,i.transform.height)})),i.on("styledata",(()=>this._updateStyleComponents(this.props,{}))),i.on("sourcedata",(()=>this._updateStyleComponents(this.props,{})));for(const u in h)i.on(u,this._onPointerEvent);for(const u in f)i.on(u,this._onCameraEvent);for(const u in d)i.on(u,this._onEvent);this._map=i}recycle(){m.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const e=function(t){const e=t.clone();return e.pixelsToGLUnits=t.pixelsToGLUnits,e}(t.transform);t.painter.transform=e;const n=e.updateElevation;n&&(e.updateElevation=r=>{t.transform.elevation=e.elevation,n.call(e,r),n.call(t.transform,r)}),this._renderTransform=e}_updateSize(t){const{viewState:e}=t;if(e){const t=this._map;if(e.width!==t.transform.width||e.height!==t.transform.height)return t.resize(),!0}return!1}_updateViewState(t,e){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:i,pitch:a,bearing:u}=r,c=n.isMoving();c&&(r.cameraElevationReference="sea");const l=s(r,{...o(n.transform),...t});if(c&&(r.cameraElevationReference="ground"),l&&e){const t=this._deferredEvents;t.move=!0,t.zoom||(t.zoom=i!==r.zoom),t.rotate||(t.rotate=u!==r.bearing),t.pitch||(t.pitch=a!==r.pitch)}return c||s(n.transform,t),l}_updateSettings(t,e){const n=this._map;let r=!1;for(const i of p)i in t&&!c(t[i],e[i])&&(r=!0,n[`set${i[0].toUpperCase()}${i.slice(1)}`](t[i]));return r}
1_updateStyle(t,e){if(t.cursor!==e.cursor&&(this._map.getCanvas().style.cursor=t.cursor),t.mapStyle!==e.mapStyle){const e={diff:t.styleDiffing};return"localIdeographFontFamily"in t&&(e.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(u(t.mapStyle),e),!0}return!1}_updateStyleComponents(t,e){const n=this._map;let r=!1;return n.style.loaded()&&("light"in t&&!c(t.light,e.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&!c(t.fog,e.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&!c(t.terrain,e.terrain)&&(t.terrain&&!n.getSource(t.terrain.source)||(r=!0,n.setTerrain(t.terrain)))),r}_updateHandlers(t,e){const n=this._map;let r=!1;for(const i of g){const o=t[i];c(o,e[i])||(r=!0,o?n[i].enable(o):n[i].disable())}return r}_updateHover(t){var e;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,o=(null===(e=this._hoveredFeatures)||void 0===e?void 0:e.length)>0;let s;if("mousemove"===i)try{s=this._map.queryRenderedFeatures(t.point,{layers:n.interactiveLayerIds})}catch(r){s=[]}else s=[];const a=s.length>0;!a&&o&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=s,a&&!o&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,e,n){const r=this._map,i=r.transform,s="string"===typeof e?e:e.type;return"move"===s&&this._updateViewState(this.props,!1),s in f&&("object"===typeof e&&(e.viewState=o(i)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,e,n),r.transform=i,r):(t.call(r,e,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const e=this._map.transform;this._map.transform=this._renderTransform,this._onAfterRepaint=()=>{this._map.transform=e}}}function y(){let t=null;if("undefined"!==typeof location){const e=/access_token=([^&\/]*)/.exec(location.search);t=e&&e[1]}try{t=t||l.env.MapboxAccessToken}catch(e){}try{t=t||l.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(n){}return t}m.savedMaps=[];const v=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function b(t,e){if(!t)return null;const n=t.map,r={getMap:()=>n,getCenter:()=>t.transform.center,getZoom:()=>t.transform.zoom,getBearing:()=>t.transform.bearing,getPitch:()=>t.transform.pitch,getPadding:()=>t.transform.padding,getBounds:()=>t.transform.getBounds(),project:n=>t.transform.locationPoint(e.LngLat.convert(n)),unproject:n=>t.transform.pointLocation(e.Point.convert(n))};for(const i of function(t){const e=new Set;let n=t;for(;n;){for(const r of Object.getOwnPropertyNames(n))"_"!==r[0]&&"function"===typeof t[r]&&"fire"!==r&&"setEventedParent"!==r&&e.add(r);n=Object.getPrototypeOf(n)}return Array.from(e)}(n))i in r||v.includes(i)||(r[i]=n[i].bind(n));return r}var _="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;const w=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];const x=r.createContext(null),E={minZoom:0,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,mapStyle:{version:8,sources:{},layers:[]},styleDiffing:!0,projection:"mercator",renderWorldCopies:!0,onError:t=>console.error(t.error),RTLTextPlugin:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"},A=(0,r.forwardRef)(((t,e)=>{const o=(0,r.useContext)(i),[s,a]=(0,r.useState)(null),u=(0,r.useRef)(),{current:c}=(0,r.useRef)({mapLib:null,map:null});(0,r.useEffect)((()=>{const e=t.mapLib;let r,i=!0;return Promise.resolve(e||n.e(634).then(n.t.bind(n,6158,23))).then((e=>{if(i){if(e.Map||(e=e.default),!e||!e.Map)throw new Error("Invalid mapLib");if(!e.supported(t))throw new Error("Map is not supported by this browser");!function(t,e){for(const n of w)n in e&&(t[n]=e[n]);e.RTLTextPlugin&&t.getRTLTextPluginStatus&&"unavailable"===t.getRTLTextPluginStatus()&&t.setRTLTextPlugin(e.RTLTextPlugin,(t=>{t&&console.error(t)}),!1)}(e,t),t.reuseMaps&&(r=m.reuse(t,u.current)),r||(r=new m(e.Map,t,u.current)),c.map=b(r,e),c.mapLib=e,a(r),null===o||void 0===o||o.onMapMount(c.map,t.id)}})).catch((e=>{t.onError({type:"error",target:null,originalEvent:null,error:e})})),()=>{i=!1,r&&(null===o||void 0===o||o.onMapUnmount(t.id),t.reuseMaps?r.recycle():r.destroy())}}),[]),_((()=>{s&&s.setProps(t)})),(0,r.useImperativeHandle)(e,(()=>c.map),[s]);const l=(0,r.useMemo)((()=>({position:"relative",width:"100%",height:"100%",...t.style})),[t.style]);return r.createElement("div",{id:t.id,ref:u,style:l},s&&r.createElement(x.Provider,{value:c},t.children))}));A.displayName="Map",A.defaultProps=E;var S=A;const P=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function O(t,e){if(!t||!e)return;const n=t.style;for(const r in e){const t=e[r];Number.isFinite(t)&&!P.test(r)?n[r]=`${t}px`:n[r]=t}}function T(t){const{map:e,mapLib:n}=(0,r.useContext)(x),i=(0,r.useRef)({props:t});i.current.props=t;const o=(0,r.useMemo)((()=>{let e=!1;
1r.Children.forEach(t.children,(t=>{t&&(e=!0)}));const s={...t,element:e?document.createElement("div"):null},a=new n.Marker(s).setLngLat([t.longitude,t.latitude]);return a.getElement().addEventListener("click",(t=>{var e,n;null===(n=(e=i.current.props).onClick)||void 0===n||n.call(e,{type:"click",target:a,originalEvent:t})})),a.on("dragstart",(t=>{var e,n;const r=t;r.lngLat=o.getLngLat(),null===(n=(e=i.current.props).onDragStart)||void 0===n||n.call(e,r)})),a.on("drag",(t=>{var e,n;const r=t;r.lngLat=o.getLngLat(),null===(n=(e=i.current.props).onDrag)||void 0===n||n.call(e,r)})),a.on("dragend",(t=>{var e,n;const r=t;r.lngLat=o.getLngLat(),null===(n=(e=i.current.props).onDragEnd)||void 0===n||n.call(e,r)})),a}),[]);return(0,r.useEffect)((()=>(o.addTo(e.getMap()),()=>{o.remove()})),[]),(0,r.useEffect)((()=>{O(o.getElement(),t.style)}),[t.style]),o.getLngLat().lng===t.longitude&&o.getLngLat().lat===t.latitude||o.setLngLat([t.longitude,t.latitude]),t.offset&&!function(t,e){const n=Array.isArray(t)?t[0]:t?t.x:0,r=Array.isArray(t)?t[1]:t?t.y:0,i=Array.isArray(e)?e[0]:e?e.x:0,o=Array.isArray(e)?e[1]:e?e.y:0;return n===i&&r===o}(o.getOffset(),t.offset)&&o.setOffset(t.offset),o.isDraggable()!==t.draggable&&o.setDraggable(t.draggable),o.getRotation()!==t.rotation&&o.setRotation(t.rotation),o.getRotationAlignment()!==t.rotationAlignment&&o.setRotationAlignment(t.rotationAlignment),o.getPitchAlignment()!==t.pitchAlignment&&o.setPitchAlignment(t.pitchAlignment),o.getPopup()!==t.popup&&o.setPopup(t.popup),(0,r.createPortal)(t.children,o.getElement())}T.defaultProps={draggable:!1,popup:null,rotation:0,rotationAlignment:"auto",pitchAlignment:"auto"};var C=r.memo(T);function M(t){return new Set(t?t.trim().split(/\s+/):[])}r.memo((function(t){const{map:e,mapLib:n}=(0,r.useContext)(x),i=(0,r.useMemo)((()=>document.createElement("div")),[]),o=(0,r.useRef)({props:t});o.current.props=t;const s=(0,r.useMemo)((()=>{const e={...t},r=new n.Popup(e).setLngLat([t.longitude,t.latitude]);return r.once("open",(t=>{var e,n;null===(n=(e=o.current.props).onOpen)||void 0===n||n.call(e,t)})),r}),[]);if((0,r.useEffect)((()=>{const t=t=>{var e,n;null===(n=(e=o.current.props).onClose)||void 0===n||n.call(e,t)};return s.on("close",t),s.setDOMContent(i).addTo(e.getMap()),()=>{s.off("close",t),s.isOpen()&&s.remove()}}),[]),(0,r.useEffect)((()=>{O(s.getElement(),t.style)}),[t.style]),s.isOpen()&&(s.getLngLat().lng===t.longitude&&s.getLngLat().lat===t.latitude||s.setLngLat([t.longitude,t.latitude]),t.offset&&!c(s.options.offset,t.offset)&&s.setOffset(t.offset),s.options.anchor===t.anchor&&s.options.maxWidth===t.maxWidth||(s.options.anchor=t.anchor,s.setMaxWidth(t.maxWidth)),s.options.className!==t.className)){const e=M(s.options.className),n=M(t.className);for(const t of e)n.has(t)||s.removeClassName(t);for(const t of n)e.has(t)||s.addClassName(t);s.options.className=t.className}return(0,r.createPortal)(t.children,i)}));function D(t,e,n){const i=(0,r.useContext)(x),o=(0,r.useMemo)((()=>t(i)),[]);return(0,r.useEffect)((()=>{var t;const{map:r}=i;return r.hasControl(o)||r.addControl(o,null===(t=n||e)||void 0===t?void 0:t.position),()=>{"function"===typeof e&&e(i),r.hasControl(o)&&r.removeControl(o)}}),[]),o}r.memo((function(t){const e=D((({mapLib:e})=>new e.AttributionControl(t)),{position:t.position});return(0,r.useEffect)((()=>{O(e._container,t.style)}),[t.style]),null}));r.memo((function(t){const e=D((({mapLib:e})=>new e.FullscreenControl({container:t.containerId&&document.getElementById(t.containerId)})),{position:t.position});return(0,r.useEffect)((()=>{O(e._controlContainer,t.style)}),[t.style]),null}));const k=(0,r.forwardRef)(((t,e)=>{const n=(0,r.useRef)({props:t}),i=D((({mapLib:e})=>{const r=new e.GeolocateControl(t),i=r._setupUI;return r._setupUI=t=>{r._container.hasChildNodes()||i(t)},r.on("geolocate",(t=>{var e,r;null===(r=(e=n.current.props).onGeolocate)||void 0===r||r.call(e,t)})),r.on("error",(t=>{var e,r;null===(r=(e=n.current.props).onError)||void 0===r||r.call(e,t)})),r.on("outofmaxbounds",(t=>{var e,r;null===(r=(e=n.current.props).onOutOfMaxBounds)||void 0===r||r.call(e,t)})),r.on("trackuserlocationstart",(t=>{var e,r;null===(r=(e=n.current.props).onTrackUserLocationStart)||void 0===r||r.call(e,t)})),r.on("trackuserlocationend",(t=>{var e,r;null===(r=(e=n.current.props).onTrackUserLocationEnd)||void 0===r||r.call(e,t)})),r}),{position:t.position});return n.current.props=t,(0,r.useImperativeHandle)(e,(()=>({trigger:()=>i.trigger()})),[]),(0,r.useEffect)((()=>{O(i._container,t.style)}
1),[t.style]),null}));k.displayName="GeolocateControl";r.memo(k);var j=r.memo((function(t){const e=D((({mapLib:e})=>new e.NavigationControl(t)),{position:t.position});return(0,r.useEffect)((()=>{O(e._container,t.style)}),[t.style]),null}));function F(t){const e=D((({mapLib:e})=>new e.ScaleControl(t)),{position:t.position});return e.options.unit===t.unit&&e.options.maxWidth===t.maxWidth||(e.options.maxWidth=t.maxWidth,e.setUnit(t.unit)),(0,r.useEffect)((()=>{O(e._container,t.style)}),[t.style]),null}F.defaultProps={unit:"metric",maxWidth:100};r.memo(F)},4524:function(t,e,n){"use strict";n.d(e,{ZP:function(){return xt},bO:function(){return _}});var r=n(1720),i=n(5697),o=n.n(i),s=n(4858);function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):requestAnimationFrame(r)};requestAnimationFrame(r)}function u(t){return u="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},u(t)}function c(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=c(r),o=i[0],s=i.slice(1);return"number"===typeof o?void a(n.bind(null,s),o):(n(o),void a(n.bind(null,s)))}"object"===u(r)&&t(r),"function"===typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function f(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 d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=["Webkit","Moz","O","ms"],m=["-webkit-","-moz-","-o-","-ms-"],y=["transform","transformOrigin","transition"],v=function(t){return t},b=function(t,e){return Object.keys(e).reduce((function(n,r){return d(d({},n),{},p({},r,t(r,e[r])))}),{})},_=function(t){return Object.keys(t).reduce((function(t,e){return d(d({},t),function(t,e){if(-1===y.indexOf(t))return p({},t,e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),i=e;return g.reduce((function(t,o,s){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(m[s],"$1"))),d(d({},t),{},p({},o+r,i))}),{})}(e,t[e]))}),t)},w=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")};function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||A(t,e)||function(){throw new TypeError("Invalid attempt to de
1structure 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 S(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||A(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){if(t){if("string"===typeof t)return S(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var P=1e-4,O=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},T=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},C=function(t,e){return function(n){var r=O(t,e);return T(r,n)}},M=function(t,e){return function(n){var r=O(t,e),i=[].concat(E(r.map((function(t,e){return t*e})).slice(1)),[0]);return T(i,n)}},D=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],s=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,s=1;break;case"ease":r=.25,i=.1,o=.25,s=1;break;case"ease-in":r=.42,i=0,o=1,s=1;break;case"ease-out":r=.42,i=0,o=.58,s=1;break;case"ease-in-out":r=0,i=0,o=.58,s=1;break;default:var a=e[0].split("(");if("cubic-bezier"===a[0]&&4===a[1].split(")")[0].split(",").length){var u=a[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),c=x(u,4);r=c[0],i=c[1],o=c[2],s=c[3]}}[r,o,i,s].every((function(t){return"number"===typeof t&&t>=0&&t<=1}));var l=C(r,o),h=C(i,s),f=M(r,o),d=function(t){return t>1?1:t<0?0:t},p=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i=l(n)-e,o=f(n);if(Math.abs(i-e)<P||o<P)return h(n);n=d(n-i/o)}return h(n)};return p.isStepper=!1,p},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,s=void 0===o?17:o,a=function(t,e,r){var o=r+(-(t-e)*n-r*i)*s/1e3,a=r*s/1e3+t;return Math.abs(a-e)<P&&Math.abs(o)<P?[e,0]:[a,o]};return a.isStepper=!0,a.dt=s,a};function j(t){return function(t){if(Array.isArray(t))return N(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||B(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,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 L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||B(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){if(t){if("string"===typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var z=function(t,e,n){return t+(e-t)*n},Z=function(t){return t.from!==t.to},U=function t(e,n,r){var i=b((function(t,n){if(Z(n)){var r=R(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return L(L({},n),{},{from:i,velocity:o})}return n}),n);return r<1?b((function(t,e){return Z(e)?L(L({},e),{},{velocity:z(e.velocity,i[t].velocity,r),from:z(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)},V=function(t,e,n,r,i){var o,s,a,u,c=(o=t,s=e,[Object.keys(o),Object.keys(s)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),l=c.reduce((function(n,r){return L(L({},n),{},I({},r,[t[r],e[r]]))}),{}),h=c.reduce((function(n,r){return L(L({},n),{},I({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),f=-1,d=function(){return null};return d=n.isStepper?function(r){a||(a=r);var o=(r-a)/n.dt;h=U(n,h,o),i(L(L(L({},t),e),b((function(t,e){return e.from}),h))),a=r,Object.values(h).filter(Z).length&&(f=requestAnimationFrame(d))}:function(o){u||(u=o);var s=(o-u)/r,a=b((function(t,e){return z.apply(void 0,j(e).concat([n(s)]))}),l);if(i(L(L(L({},t),e),a)),s<1)f=requestAnimationFrame(d);else{var c=b((function(t,e){return z.apply(void 0,j(e).concat([n(1)])
1)}),l);i(L(L(L({},t),e),c))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(f)}}};function G(t){return G="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},G(t)}function W(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function H(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function q(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 Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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,r.key,r)}}function J(t,e){return J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},J(t,e)}function Q(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nt(t);if(e){var i=nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(t,e){return!e||"object"!==G(e)&&"function"!==typeof e?et(t):e}function et(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}var rt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(a,t);var e,n,i,o=Q(a);function a(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=o.call(this,t,e)).props,i=r.isActive,s=r.attributeName,u=r.from,c=r.to,l=r.steps,h=r.children;if(n.handleStyleChange=n.handleStyleChange.bind(et(n)),n.changeStyle=n.changeStyle.bind(et(n)),!i)return n.state={style:{}},"function"===typeof h&&(n.state={style:c}),tt(n);if(l&&l.length)n.state={style:l[0].style};else if(u){if("function"===typeof h)return n.state={style:u},tt(n);n.state={style:s?K({},s,u):u}}else n.state={style:{}};return n}return e=a,n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,i=e.attributeName,o=e.shouldReAnimate;if(r)if(n){if(!((0,s.deepEqual)(t.to,this.props.to)&&t.canBegin&&t.isActive)){var a=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=a||o?this.props.from:t.to;if(this.state&&this.state.style){var c={style:i?K({},i,u):u};(i&&this.state.style[i]!==u||!i&&this.state.style!==u)&&this.setState(c)}this.runAnimation(Y(Y({},this.props),{},{from:u,begin:0}))}}else{var l={style:i?K({},i,this.props.to):this.props.to};this.state&&this.state.style&&(i&&this.state.style[i]!==this.props.to||!i&&this.state.style!==this.props.to)&&this.setState(l)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,s=t.begin,a=t.onAnimationEnd,u=t.onAnimationStart,c=V(n,r,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return D(r);case"spring":return k();
1default:if("cubic-bezier"===r.split("(")[0])return D(r)}return"function"===typeof r?r:null}(o),i,this.changeStyle);this.manager.start([u,s,function(){e.stopJSAnimation=c()},i,a])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],s=o.style,a=o.duration,u=void 0===a?0:a;return this.manager.start([i].concat(H(n.reduce((function(t,r,i){if(0===i)return t;var o=r.duration,s=r.easing,a=void 0===s?"ease":s,u=r.style,c=r.properties,l=r.onAnimationEnd,h=i>0?n[i-1]:r,f=c||Object.keys(u);if("function"===typeof a||"spring"===a)return[].concat(H(t),[e.runJSAnimation.bind(e,{from:h.style,to:u,duration:o,easing:a}),o]);var d=w(f,o,a),p=Y(Y(Y({},h.style),u),{},{transition:d});return[].concat(H(t),[p,o,l]).filter(v)}),[s,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=h());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,s=t.onAnimationStart,a=t.onAnimationEnd,u=t.steps,c=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof c&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=r?K({},r,i):i,d=w(Object.keys(f),n,o);l.start([s,e,Y(Y({},f),{},{transition:d}),n,a])}else this.runJSAnimation(t)}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration,t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,W(t,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=r.Children.count(e),s=_(this.state.style);if("function"===typeof e)return e(s);if(!n||0===o)return e;var a=function(t){var e=t.props,n=e.style,o=void 0===n?{}:n,a=e.className;return(0,r.cloneElement)(t,Y(Y({},i),{},{style:Y(Y({},o),s),className:a}))};return 1===o?a(r.Children.only(e)):r.default.createElement("div",null,r.Children.map(e,(function(t){return a(t)})))}}],n&&$(e.prototype,n),i&&$(e,i),a}(r.PureComponent);rt.displayName="Animate",rt.propTypes={from:o().oneOfType([o().object,o().string]),to:o().oneOfType([o().object,o().string]),attributeName:o().string,duration:o().number,begin:o().number,easing:o().oneOfType([o().string,o().func]),steps:o().arrayOf(o().shape({duration:o().number.isRequired,style:o().object.isRequired,easing:o().oneOfType([o().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),o().func]),properties:o().arrayOf("string"),onAnimationEnd:o().func})),children:o().oneOfType([o().node,o().func]),isActive:o().bool,canBegin:o().bool,onAnimationEnd:o().func,shouldReAnimate:o().bool,onAnimationStart:o().func,onAnimationReStart:o().func},rt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var it=rt,ot=n(4317);function st(t){return st="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},st(t)}function at(){return at=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},at.apply(this,arguments)}function ut(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ct(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 lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ct(Object(n),!0).forEach((function(e){ht(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(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,r.key,r)}}function pt(t,e){return pt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},pt(t,e)}function gt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yt(t);if(e){var i=yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(t,e){return!e||"object"!==st(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yt(t){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},yt(t)}void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"===typeof t&&isFinite(t)});var vt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(n)?n:0},bt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pt(t,e)}(s,t);var e,n,i,o=gt(s);function s(){var t;ft(this,s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).state={isActive:!1},t.handleEnter=function(e,n){var r=t.props,i=r.appearOptions,o=r.enterOptions;t.handleStyleActive(n?i:o)},t.handleExit=function(){t.handleStyleActive(t.props.leaveOptions)},t}return e=s,(n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(lt(lt({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return vt(e)+vt(n)+vt(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,ut(e,["children","appearOptions","enterOptions","leaveOptions"]));return r.default.createElement(ot.Transition,at({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return r.default.createElement(it,t.state,r.Children.only(n))}))}}])&&dt(e.prototype,n),i&&dt(e,i),s}(r.Component);bt.propTypes={appearOptions:o().object,enterOptions:o().object,leaveOptions:o().object,children:o().element};var _t=bt;function wt(t){var e=t.component,n=t.children,i=t.appear,o=t.enter,s=t.leave;return r.default.createElement(ot.TransitionGroup,{component:e},r.Children.map(n,(function(t,e){return r.default.createElement(_t,{appearOptions:i,enterOptions:o,leaveOptions:s,key:"child-".concat(e)},t)})))}wt.propTypes={appear:o().object,enter:o().object,leave:o().object,children:o().oneOfType([o().array,o().element]),component:o().any},wt.defaultProps={component:"span"};var xt=it},129:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(5697));var r=a(n(8141)),i=a(n(602)),o=a(n(1720)),s=a(n(644));n(4726);function a(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}var c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,i.default)(t,e)}))},h=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),c(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,i=e.getClassNames("enter").doneClassName,o=n?r+" "+i:i;
1e.removeClasses(t,n?"appear":"enter"),c(t,o),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),c(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),c(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"===typeof n,i=r?(r&&n?n+"-":"")+t:n[t];return{className:i,activeClassName:r?i+"-active":n[t+"Active"],doneClassName:r?i+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&l(t,r),i&&l(t,i),o&&l(t,o)},i.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,c(t,e))},i.render=function(){var t=u({},this.props);return delete t.classNames,o.default.createElement(s.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);h.defaultProps={classNames:""},h.propTypes={};var f=h;e.default=f,t.exports=e.default},6093:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;s(n(5697));var r=s(n(1720)),i=n(1720),o=s(n(2381));function s(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e,n;function s(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=s).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=s.prototype;return a.handleLifecycle=function(t,e,n){var o,s=this.props.children,a=r.default.Children.toArray(s)[e];a.props[t]&&(o=a.props)[t].apply(o,n),this.props[t]&&this.props[t]((0,i.findDOMNode)(this))},a.render=function(){var t=this.props,e=t.children,n=t.in,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["children","in"]),s=r.default.Children.toArray(e),a=s[0],u=s[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},s}(r.default.Component);a.propTypes={};var u=a;e.default=u,t.exports=e.default},644:function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(5697)),i=a(n(1720)),o=a(n(1720)),s=n(4764);n(4726);function a(t){return t&&t.__esModule?t:{default:t}}var u="unmounted";e.UNMOUNTED=u;var c="exited";e.EXITED=c;var l="entering";e.ENTERING=l;var h="entered";e.ENTERED=h;var f="exiting";e.EXITING=f;var d=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var i,o=n.transitionGroup,s=o&&!o.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?s?(i=c,r.appearStatus=l):i=h:i=e.unmountOnExit||e.mountOnEnter?u:c,r.state={status:i},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=r.prototype;return s.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==h&&(e=l):n!==l&&n!==h||(e=f)}this.updateStatus(!1,e)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},s.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=o.default.findDOMNode(this);e===l?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},s.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts(),s=i?o.appear:o.enter;e||r?(this.props.onEnter(t,i),this.safeSetState({status:l},(function(){n.props.onEntering(t,i),n.onTransitionEnd(t,s,(function(){n.safeSetState({status:h},(function(){n.props.onEntered(t,i)}
1))}))}))):this.safeSetState({status:h},(function(){n.props.onEntered(t)}))},s.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:f},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(t)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},s.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},s.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(t,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function p(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var g=(0,s.polyfill)(d);e.default=g},2381:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=a(n(5697)),i=a(n(1720)),o=n(4764),s=n(537);function a(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},h=function(t){var e,n;function r(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:i,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,s.getInitialChildMapping)(t,r):(0,s.getNextChildMapping)(t,n,r),firstRender:!1}},o.handleExited=function(t,e){var n=(0,s.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=u({},e.children);return delete n[t.key],{children:n}})))},o.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["component","childFactory"]),o=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?o:i.default.createElement(e,r,o)},r}(i.default.Component);h.childContextTypes={transitionGroup:r.default.object.isRequired},h.propTypes={},h.defaultProps={component:"div",childFactory:function(t){return t}};var f=(0,o.polyfill)(h);e.default=f,t.exports=e.default},4317:function(t,e,n){"use strict";var r=a(n(129)),i=a(n(6093)),o=a(n(2381)),s=a(n(644));function a(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:s.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},537:function(t,e,n){"use strict";
1e.__esModule=!0,e.getChildMapping=i,e.mergeChildMappings=o,e.getInitialChildMapping=function(t,e){return i(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:s(n,"appear",t),enter:s(n,"enter",t),exit:s(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var a=i(t.children),u=o(e,a);return Object.keys(u).forEach((function(i){var o=u[i];if((0,r.isValidElement)(o)){var c=i in e,l=i in a,h=e[i],f=(0,r.isValidElement)(h)&&!h.props.in;!l||c&&!f?l||!c||f?l&&c&&(0,r.isValidElement)(h)&&(u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:h.props.in,exit:s(o,"exit",t),enter:s(o,"enter",t)})):u[i]=(0,r.cloneElement)(o,{in:!1}):u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:s(o,"exit",t),enter:s(o,"enter",t)})}})),u};var r=n(1720);function i(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function o(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),o=[];for(var s in t)s in e?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var u in e){if(i[u])for(r=0;r<i[u].length;r++){var c=i[u][r];a[i[u][r]]=n(c)}a[u]=n(u)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}function s(t,e,n){return null!=n[e]?n[e]:t.props[e]}},4726:function(t,e,n){"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var r;(r=n(5697))&&r.__esModule;
1e.timeoutsShape=null;e.classNamesShape=null},7259:function(t,e,n){"use strict";n.d(e,{$:function(){return R}});var r=n(4293),i=n.n(r),o=n(8446),s=n.n(o),a=n(3560),u=n.n(a),c=n(1469),l=n.n(c),h=n(1720),f=n(4184),d=n.n(f),p=n(4524),g=n(3481),m=n(8710),y=n(6641),v=function(t){return null};v.displayName="Cell";var b=n(2763),_=n(9055),w=n(2017),x=n(7523),E=n(7718),A=n(9896);function S(t){return S="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},S(t)}function P(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function O(){return O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}function T(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 C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(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,r.key,r)}}
1function j(t,e){return j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},j(t,e)}function F(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var i=I(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(t,e){return!e||"object"!==S(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}var R=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}(a,t);var e,n,r,o=F(a);function a(){var t;D(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!1},t.id=(0,_.EL)("recharts-bar-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()},t}return e=a,r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}},{key:"renderRectangle",value:function(t,e){return h.default.isValidElement(t)?h.default.cloneElement(t,e):u()(t)?t(e):h.default.createElement(g.A,e)}}],(n=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props.shape,r=(0,A.L6)(this.props);return t&&t.map((function(t,i){var o=C(C(C({},r),t),{},{index:i});return h.default.createElement(m.m,O({className:"recharts-bar-rectangle"},(0,A.bw)(e.props,t,i),{key:"rectangle-".concat(i)}),a.renderRectangle(n,o))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,o=e.animationBegin,s=e.animationDuration,a=e.animationEasing,u=e.animationId,c=this.state.prevData;return h.default.createElement(p.ZP,{begin:o,duration:s,isActive:i,easing:a,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=n.map((function(t,e){var n=c&&c[e];if(n){var o=(0,_.k4)(n.x,t.x),s=(0,_.k4)(n.y,t.y),a=(0,_.k4)(n.width,t.width),u=(0,_.k4)(n.height,t.height);return C(C({},t),{},{x:o(i),y:s(i),width:a(i),height:u(i)})}if("horizontal"===r){var l=(0,_.k4)(0,t.height)(i);return C(C({},t),{},{y:t.y+t.height-l,height:l})}var h=(0,_.k4)(0,t.width)(i);return C(C({},t),{},{width:h})}));return h.default.createElement(m.m,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&s()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props.data,n=(0,A.L6)(this.props.background);return e.map((function(e,r){e.value;var i=e.background,o=P(e,["value","background"]);if(!i)return null;var s=C(C(C(C(C({},o),{},{fill:"#eee"},i),n),(0,A.bw)(t.props,e,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(t.props.background,s)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.data,n=t.xAxis,r=t.yAxis,i=t.layout,o=t.children,s=(0,w.NN)(o,y.W.displayName);if(!s)return null;var a="vertical"===i?e[0].height/2:e[0].width/2;function u(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,E.F$)(t,e)}}return s.map((function(t,o){return h.default.cloneElement(t,{key:"error-bar-".concat(o),data:e,xAxis:n,yAxis:r,layout:i,offset:a,dataPointFormatter:u})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,o=t.xAxis,s=t.yAxis,a=t.left,u=t.top,c=t.width,l=t.height,f=t.isAnimationActive,p=t.background,g=t.id;if(e||!n||!n.length)return null;var y=this.state.isAnimationFinished,v=d()("recharts-bar",r),_=o&&o.allowDataOverflow||s&&s.allowDataOverflow,w=i()(g)?this.id:g;return h.default.createElement(m.m,{className:v},_?h.default.createElement("defs",null,h.default.createElement("clipPath",{id:"clipPath-".concat(w)},h.default.createElement("rect",{x:a,y:u,width:c,height:l}))):null,h.default.createElement(m.m,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(w,")"):null}
1,p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||y)&&b.e.renderCallByParent(this.props,n))}}])&&k(e.prototype,n),r&&k(e,r),a}(h.PureComponent);R.displayName="Bar",R.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!x.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},R.getComposedData=function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,s=t.yAxis,a=t.xAxisTicks,u=t.yAxisTicks,c=t.stackedData,h=t.dataStartIndex,f=t.displayedData,d=t.offset,p=(0,E.Bu)(r,n);if(!p)return null;var g=e.layout,m=n.props,y=m.dataKey,b=m.children,x=m.minPointSize,A="horizontal"===g?s:o,S=c?A.scale.domain():null,P=(0,E.Yj)({numericAxis:A}),O=(0,w.NN)(b,v.displayName),T=f.map((function(t,e){var r,f,d,m,v,b;if(c?r=(0,E.Vv)(c[h+e],S):(r=(0,E.F$)(t,y),l()(r)||(r=[P,r])),"horizontal"===g){if(f=(0,E.Fy)({axis:o,ticks:a,bandSize:i,offset:p.offset,entry:t,index:e}),d=s.scale(r[1]),m=p.size,v=s.scale(r[0])-s.scale(r[1]),b={x:f,y:s.y,width:m,height:s.height},Math.abs(x)>0&&Math.abs(v)<Math.abs(x)){var w=(0,_.uY)(v||x)*(Math.abs(x)-Math.abs(v));d-=w,v+=w}}else f=o.scale(r[0]),d=(0,E.Fy)({axis:s,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),m=o.scale(r[1])-o.scale(r[0]),v=p.size,b={x:o.x,y:d,width:o.width,height:v},Math.abs(x)>0&&Math.abs(m)<Math.abs(x)&&(m+=(0,_.uY)(m||x)*(Math.abs(x)-Math.abs(m)));return C(C(C({},t),{},{x:f,y:d,width:m,height:v,value:c?r:r[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[(0,E.Qo)(n,t)],tooltipPosition:{x:f+m/2,y:d+v/2}})}));return C({data:T,layout:g},d)}},4195:function(t,e,n){"use strict";n.d(e,{q:function(){return _}});var r=n(3560),i=n.n(r),o=n(1720),s=n(9055),a=n(9896);function u(t){return u="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},u(t)}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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,r.key,r)}}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(h,t);var e,n,r,u=y(h);function h(){return p(this,h),u.apply(this,arguments)}return e=h,r=[{key:"renderLineItem",value:function(t,e){var n;if(o.default.isValidElement(t))n=o.default.cloneElement(t,e);else if(i()(t))n=t(e);else{var r=e.x1,s=e.y1,u=e.x2,h=e.y2,f=e.key,d=l(e,["x1","y1","x2","y2","key"]);n=o.default.createElement("line",c({}
1,(0,a.L6)(d),{x1:r,y1:s,x2:u,y2:h,fill:"none",key:f}))}return n}}],(n=[{key:"renderHorizontal",value:function(t){var e=this,n=this.props,r=n.x,i=n.width,s=n.horizontal;if(!t||!t.length)return null;var a=t.map((function(t,n){var o=f(f({},e.props),{},{x1:r,y1:t,x2:r+i,y2:t,key:"line-".concat(n),index:n});return h.renderLineItem(s,o)}));return o.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}},{key:"renderVertical",value:function(t){var e=this,n=this.props,r=n.y,i=n.height,s=n.vertical;if(!t||!t.length)return null;var a=t.map((function(t,n){var o=f(f({},e.props),{},{x1:t,y1:r,x2:t,y2:r+i,key:"line-".concat(n),index:n});return h.renderLineItem(s,o)}));return o.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,s=n.y,a=n.width,u=n.height,c=t.slice().sort((function(t,e){return t-e}));i!==c[0]&&c.unshift(0);var l=c.map((function(t,n){var l=c[n+1]?c[n+1]-t:i+a-t;if(l<=0)return null;var h=n%e.length;return o.default.createElement("rect",{key:"react-".concat(n),x:Math.round(t+i-i),y:s,width:l,height:u,stroke:"none",fill:e[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,s=n.y,a=n.width,u=n.height,c=t.slice().sort((function(t,e){return t-e}));s!==c[0]&&c.unshift(0);var l=c.map((function(t,n){var l=c[n+1]?c[n+1]-t:s+u-t;if(l<=0)return null;var h=n%e.length;return o.default.createElement("rect",{key:"react-".concat(n),y:Math.round(t+s-s),x:i,height:l,width:a,stroke:"none",fill:e[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,a=e.height;return o.default.createElement("rect",{x:r,y:i,width:s,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,a=t.height,u=t.horizontal,c=t.vertical,l=t.horizontalCoordinatesGenerator,h=t.verticalCoordinatesGenerator,f=t.xAxis,d=t.yAxis,p=t.offset,g=t.chartWidth,m=t.chartHeight;if(!(0,s.hj)(r)||r<=0||!(0,s.hj)(a)||a<=0||!(0,s.hj)(e)||e!==+e||!(0,s.hj)(n)||n!==+n)return null;var y=this.props,v=y.horizontalPoints,b=y.verticalPoints;return v&&v.length||!i()(l)||(v=l({yAxis:d,width:g,height:m,offset:p})),b&&b.length||!i()(h)||(b=h({xAxis:f,width:g,height:m,offset:p})),o.default.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(v),c&&this.renderVertical(b),u&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(b))}}])&&g(e.prototype,n),r&&g(e,r),h}(o.PureComponent);_.displayName="CartesianGrid",_.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]}},6641:function(t,e,n){"use strict";n.d(e,{W:function(){return l}});var r=n(1720),i=n(8710),o=n(9896);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){var e=t.offset,n=t.layout,u=t.width,l=t.dataKey,h=t.data,f=t.dataPointFormatter,d=t.xAxis,p=t.yAxis,g=c(t,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),m=(0,o.L6)(g),y=h.map((function(t,o){var c=f(t,l),h=c.x,g=c.y,y=c.value,v=c.errorVal;if(!v)return null;var b,_,w=[];if(Array.isArray(v)){var x=a(v,2);b=x[0],_=x[1]}else b=_=v;if("vertical"===n){var E=d.scale,A=g+e,S=A+u,P=A-u,O=E(y-b),T=E(y+_);w.push({x1:T,y1:S,x2:T,y2:P}),w.push({x1:O,y1:A,x2:T,y2:A}),w.push({x1:O,y1:S,x2:O,y2:P})}else if("horizontal"===n){var C=p.scale,M=h+e,D=M-u,k=M+u,j=C(y-b),F=C(y+_);w.push({x1:D,y1:F,x2:k,y2:F}),w.push({x1:M,y1:j,x2:M,y2:F}),w.push({x1:D,y1:j,x2:k,y2:j})}return r.default.createElement(i.m,s({className:"recharts-errorBar",key:"bar-".concat(o)},m),w.map((function(t,e){return r.default.createElement("line",s({},t,{key:"line-".concat(e)}))})))}));return r.default.createElement(i.m,{className:"recharts-errorBars"},y)}l.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},l.displayName="ErrorBar"},6880:function(t,e,n){"use strict";n.d(e,{x:function(){return R}});var r=n(8446),i=n.n(r),o=n(3560),s=n.n(o),a=n(4293),u=n.n(a),c=n(1720),l=n(4524),h=n(4184),f=n.n(h),d=n(3508),p=n(3061),g=n(8710),m=n(2763),y=n(6641),v=n(9055),b=n(2017),_=n(7523),w=n(7718),x=n(9896);function E(t){return E="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},E(t)}function A(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(){return S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},S.apply(this,arguments)}function P(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 O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(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,r.key,r)}}
1function j(t,e){return j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},j(t,e)}function F(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var i=I(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(t,e){return!e||"object"!==E(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}var R=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}(a,t);var e,n,r,o=F(a);function a(){var t;D(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).mainCurve=void 0,t.state={isAnimationFinished:!0,totalLength:0},t.getStrokeDasharray=function(t,e,n){for(var r=n.reduce((function(t,e){return t+e})),i=Math.floor(t/r),o=t%r,s=e-t,u=[],c=0,l=0;;l+=n[c],++c)if(l+n[c]>o){u=[].concat(C(n.slice(0,c)),[o-l]);break}var h=u.length%2===0?[0,s]:[s];return[].concat(C(a.repeat(n,i)),C(u),h).map((function(t){return"".concat(t,"px")})).join(", ")},t.id=(0,v.EL)("recharts-line-"),t.pathRef=function(e){t.mainCurve=e},t.handleAnimationEnd=function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()},t.handleAnimationStart=function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()},t}return e=a,r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!==0?[].concat(C(t),[0]):t,r=[],i=0;i<e;++i)r=[].concat(C(r),C(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(c.default.isValidElement(t))n=c.default.cloneElement(t,e);else if(s()(t))n=t(e);else{var r=f()("recharts-line-dot",t?t.className:"");n=c.default.createElement(p.o,S({},e,{className:r}))}return n}}],(n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,r=t.yAxis,i=t.layout,o=t.children,s=(0,b.NN)(o,y.W.displayName);if(!s)return null;function a(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,w.F$)(t.payload,e)}}return s.map((function(t,o){return c.default.cloneElement(t,{key:"bar-".concat(o),data:e,xAxis:n,yAxis:r,layout:i,dataPointFormatter:a})}))}},{key:"renderDots",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,i=n.points,o=n.dataKey,s=(0,x.L6)(this.props),u=(0,x.L6)(r,!0),l=i.map((function(t,e){var n=O(O(O({key:"dot-".concat(e),r:3},s),u),{},{value:t.value,dataKey:o,cx:t.x,cy:t.y,index:e,payload:t.payload});return a.renderDotItem(r,n)})),h={clipPath:t?"url(#clipPath-".concat(e,")"):null};return c.default.createElement(g.m,S({className:"recharts-line-dots",key:"dots"},h),l)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,s=i.layout,a=i.connectNulls,u=(i.ref,A(i,["type","layout","connectNulls","ref"])),l=O(O(O({},(0,x.L6)(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r),{},{type:o,layout:s,connectNulls:a});return c.default.createElement(d.H,S({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,s=r.isAnimationActive,a=r.animationBegin,u=r.animationDuration,h=r.animationEasing,f=r.animationId,d=r.animateNewValues,p=r.width,g=r.height,m=this.state,y=m.prevPoints,b=m.totalLength;return c.default.createElement(l.ZP,{begin:a,duration:u,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var s=r.t;if(y){var a=y.length/i.length,u=i.map((function(t,e){var n=Math.floor(e*a);if(y[n]){var r=y[n],i=(0,v.k4)(r.x,t.x),o=(0,v.k4)(r.y,t.y);return O(O({},t),{},{x:i(s),y:o(s)})}if(d){var u=(0,v.k4)(2*p,t.x),c=(0,v.k4)(g/2,t.y);return O(O({},t),{},{x:u(s),y:c(s)})}return O(O({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var c,l=(0,v.k4)(0,b)(s);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));c=n.getStrokeDasharray(l,b,h)}else c="".concat(l,"px ").concat(b-l,"px");return n.renderCurveStatically(i,t,e,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,o=n.isAnimationActive,s=this.state,a=s.prevPoints,u=s.totalLength;return o&&r&&r.length&&(!a&&u>0||!i()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.xAxis,s=t.yAxis,a=t.to
1p,l=t.left,h=t.width,d=t.height,p=t.isAnimationActive,y=t.id;if(e||!r||!r.length)return null;var v=this.state.isAnimationFinished,b=1===r.length,_=f()("recharts-line",i),w=o&&o.allowDataOverflow||s&&s.allowDataOverflow,x=u()(y)?this.id:y;return c.default.createElement(g.m,{className:_},w?c.default.createElement("defs",null,c.default.createElement("clipPath",{id:"clipPath-".concat(x)},c.default.createElement("rect",{x:l,y:a,width:h,height:d}))):null,!b&&this.renderCurve(w,x),this.renderErrorBar(),(b||n)&&this.renderDots(w,x),(!p||v)&&m.e.renderCallByParent(this.props,r))}}])&&k(e.prototype,n),r&&k(e,r),a}(c.PureComponent);R.displayName="Line",R.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_.x.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},R.getComposedData=function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,s=t.dataKey,a=t.bandSize,c=t.displayedData,l=t.offset,h=e.layout;return O({points:c.map((function(t,e){var c=(0,w.F$)(t,s);return"horizontal"===h?{x:(0,w.Hv)({axis:n,ticks:i,bandSize:a,entry:t,index:e}),y:u()(c)?null:r.scale(c),value:c,payload:t}:{x:u()(c)?null:n.scale(c),y:(0,w.Hv)({axis:r,ticks:o,bandSize:a,entry:t,index:e}),value:c,payload:t}})),layout:h},l)}},3023:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},5358:function(t,e,n){"use strict";n.d(e,{B:function(){return r}});var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},4831:function(t,e,n){"use strict";n.d(e,{v:function(){return u}});var r=n(701),i=n(7259),o=n(3023),s=n(5358),a=n(7187),u=(0,r.z)({chartName:"BarChart",GraphicalChild:i.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:s.B}],formatAxisMap:a.t9})},8687:function(t,e,n){"use strict";n.d(e,{w:function(){return u}});var r=n(701),i=n(6880),o=n(3023),s=n(5358),a=n(7187),u=(0,r.z)({chartName:"LineChart",GraphicalChild:i.x,axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:s.B}],formatAxisMap:a.t9})},701:function(t,e,n){"use strict";n.d(e,{z:function(){return Ne}});var r=n(711),i=n.n(r),o=n(3311),s=n.n(o),a=n(3560),u=n.n(a),c=n(3493),l=n.n(c),h=n(9734),f=n.n(h),d=n(7361),p=n.n(d),g=n(6026),m=n.n(g),y=n(4293),v=n.n(y),b=n(1584),_=n.n(b),w=n(1469),x=n.n(w),E=n(1720),A=n(4184),S=n.n(A),P=n(514),O=n(8710),T=n(4888),C=n(4141),M=n(3508),D=n(9055),k=n(9896);function j(t){return j="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},j(t)}function F(){return F=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(this,arguments)}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(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,r.key,r)}}function R(t,e){return R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},R(t,e)}function B(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=z(t);if(e){var i=z(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return N(this,n)}}function N(t,e){return!e||"object"!==j(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function z(t){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},z(t)}var Z=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(o,t);var e,n,r,i=B(o);function o(){return L(this,o),i.apply(this,arguments)}return e=o,r=[{key:"getPath",value:function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)}}],(n=[{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,s=t.top,a=t.left,u=t.className;return(0,D.hj)(e)&&(0,D.hj)(n)&&(0,D.hj)(r)&&(0,D.hj)(i)&&(0,D.hj)(s)&&(0,D.hj)(a)?E.default.createElement("path",F({},(0,k.L6)(this.props,!0),{className:S()("recharts-cross",u),d:o.getPath(e,n,r,i,s,a)})):null}}])&&I(e.prototype,n),r&&I(e,r),o}(E.PureComponent);Z.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var U=n(48);function V(t){return V="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},V(t)}function G(){return G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},G.apply(this,arguments)}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(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,r.key,r)}}
1function X(t,e){return X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},X(t,e)}function q(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=K(t);if(e){var i=K(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(t,e){return!e||"object"!==V(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}var $=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,s=t.isExternal,a=t.cornerRadius,u=t.cornerIsExternal,c=a*(s?1:-1)+r,l=Math.asin(a/c)/U.Wk,h=u?i:i+o*l,f=u?i-o*l:i;return{center:(0,U.op)(e,n,c,h),circleTangency:(0,U.op)(e,n,r,h),lineTangency:(0,U.op)(e,n,c*Math.cos(l*U.Wk),f),theta:l}},J=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,s=function(t,e){return(0,D.uY)(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),a=o+s,u=(0,U.op)(e,n,i,o),c=(0,U.op)(e,n,i,a),l="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(o>a),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var h=(0,U.op)(e,n,r,o),f=(0,U.op)(e,n,r,a);l+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(o<=a),",\n ").concat(h.x,",").concat(h.y," Z")}else l+="L ".concat(e,",").concat(n," Z");return l},Q=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}(o,t);var e,n,r,i=q(o);function o(){return W(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,a=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,l=t.className;if(i<r||u===c)return null;var h,f=S()("recharts-sector",l),d=i-r,p=(0,D.h1)(o,d,0,!0);return h=p>0&&Math.abs(u-c)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,a=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,l=(0,D.uY)(c-u),h=$({cx:e,cy:n,radius:i,angle:u,sign:l,cornerRadius:o,cornerIsExternal:a}),f=h.circleTangency,d=h.lineTangency,p=h.theta,g=$({cx:e,cy:n,radius:i,angle:c,sign:-l,cornerRadius:o,cornerIsExternal:a}),m=g.circleTangency,y=g.lineTangency,v=g.theta,b=a?Math.abs(u-c):Math.abs(u-c)-p-v;if(b<0)return s?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):J({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c});var _="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(f.x,",").concat(f.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(m.x,",").concat(m.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var w=$({cx:e,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),x=w.circleTangency,E=w.lineTangency,A=w.theta,S=$({cx:e,cy:n,radius:r,angle:c,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),P=S.circleTangency,O=S.lineTangency,T=S.theta,C=a?Math.abs(u-c):Math.abs(u-c)-A-T;if(C<0&&0===o)return"".concat(_,"L").concat(e,",").concat(n,"Z");_+="L".concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(P.x,",").concat(P.y,"\n A").concat(r,",").concat(r,",0,").concat(+(C>180),",").concat(+(l>0),",").concat(x.x,",").concat(x.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,"Z")}else _+="L".concat(e,",").concat(n,"Z");return _}({cx:e,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(p,d/2),forceCornerRadius:s,cornerIsExternal:a,startAngle:u,endAngle:c}):J({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:c}),E.default.createElement("path",G({},(0,k.L6)(this.props,!0),{className:f,d:h}))}}])&&H(e.prototype,n),r&&H(e,r),o}(E.PureComponent);Q.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var tt=n(3061),et=n(3481),nt=n(2017),rt=n(791),it=n(1209),ot=n(8169),st=n(5048),at=n(7523);function ut(t){return ut="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},ut(t)}function ct(){return ct=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ct.apply(this,arguments)}function lt(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 ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?lt(Object(n),!0).forEach((function(e){ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(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,r.key,r)}}function mt(t,e){return mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},mt(t,e)}function yt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bt(t);if(e){var i=bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vt(this,n)}}function vt(t,e){return!e||"object"!==ut(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bt(t){return bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bt(t)}var _t=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mt(t,e)}(o,t);var e,n,r,i=yt(o);function o(){return pt(this,o),i.apply(this,arguments)}return e=o,r=[{key:"getTicks",value:function(t){var e=t.tick,n=t.ticks,r=t.viewBox,i=t.minTickGap,s=t.orientation,a=t.interval,u=t.tickFormatter,c=t.unit;return n&&n.length&&e?(0,D.hj)(a)||at.x.isSsr?o.getNumberIntervalTicks(n,"number"===typeof a&&(0,D.hj)(a)?a:0):"preserveStartEnd"===a?o.getTicksStart({ticks:n,tickFormatter:u,viewBox:r,orientation:s,minTickGap:i,unit:c},!0):"preserveStart"===a?o.getTicksStart({ticks:n,tickFormatter:u,viewBox:r,orientation:s,minTickGap:i,unit:c}):o.getTicksEnd({ticks:n,tickFormatter:u,viewBox:r,orientation:s,minTickGap:i,unit:c}):[]}},{key:"getNumberIntervalTicks",value:function(t,e){return t.filter((function(t,n){return n%(e+1)===0}))}},{key:"getTicksStart",value:function(t,e){var n,r,i=t.ticks,o=t.tickFormatter,s=t.viewBox,a=t.orientation,c=t.minTickGap,l=t.unit,h=s.x,f=s.y,d=s.width,p=s.height,g="top"===a||"bottom"===a?"width":"height",m=(i||[]).slice(),y=l&&"width"===g?(0,it.xE)(l)[g]:0,v=m.length,b=v>=2?(0,D.uY)(m[1].coordinate-m[0].coordinate):1;if(1===b?(n="width"===g?h:f,r="width"===g?h+d:f+p):(n="width"===g?h+d:f+p,r="width"===g?h:f),e){var _=i[v-1],w=u()(o)?o(_.value,v-1):_.value,x=(0,it.xE)(w)[g]+y,E=b*(_.coordinate+b*x/2-r);m[v-1]=_=ht(ht({},_),{},{tickCoord:E>0?_.coordinate-E*b:_.coordinate}),b*(_.tickCoord-b*x/2-n)>=0&&b*(_.tickCoord+b*x/2-r)<=0&&(r=_.tickCoord-b*(x/2+c),m[v-1]=ht(ht({},_),{},{isShow:!0}))}for(var A=e?v-1:v,S=0;S<A;S++){var P=m[S],O=u()(o)?o(P.value,S):P.value,T=(0,it.xE)(O)[g]+y;if(0===S){var C=b*(P.coordinate-b*T/2-n);m[S]=P=ht(ht({},P),{},{tickCoord:C<0?P.coordinate-C*b:P.coordinate})}else m[S]=P=ht(ht({},P),{},{tickCoord:P.coordinate});b*(P.tickCoord-b*T/2-n)>=0&&b*(P.tickCoord+b*T/2-r)<=0&&(n=P.tickCoord+b*(T/2+c),m[S]=ht(ht({},P),{},{isShow:!0}))}return m.filter((function(t){return t.isShow}))}},{key:"getTicksEnd",value:function(t){var e,n,r=t.ticks,i=t.tickFormatter,o=t.viewBox,s=t.orientation,a=t.minTickGap,c=t.unit,l=o.x,h=o.y,f=
1o.width,d=o.height,p="top"===s||"bottom"===s?"width":"height",g=c&&"width"===p?(0,it.xE)(c)[p]:0,m=(r||[]).slice(),y=m.length,v=y>=2?(0,D.uY)(m[1].coordinate-m[0].coordinate):1;1===v?(e="width"===p?l:h,n="width"===p?l+f:h+d):(e="width"===p?l+f:h+d,n="width"===p?l:h);for(var b=y-1;b>=0;b--){var _=m[b],w=u()(i)?i(_.value,y-b-1):_.value,x=(0,it.xE)(w)[p]+g;if(b===y-1){var E=v*(_.coordinate+v*x/2-n);m[b]=_=ht(ht({},_),{},{tickCoord:E>0?_.coordinate-E*v:_.coordinate})}else m[b]=_=ht(ht({},_),{},{tickCoord:_.coordinate});v*(_.tickCoord-v*x/2-e)>=0&&v*(_.tickCoord+v*x/2-n)<=0&&(n=_.tickCoord-v*(x/2+a),m[b]=ht(ht({},_),{},{isShow:!0}))}return m.filter((function(t){return t.isShow}))}},{key:"renderTickItem",value:function(t,e,n){return E.default.isValidElement(t)?E.default.cloneElement(t,e):u()(t)?t(e):E.default.createElement(ot.x,ct({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(n=[{key:"shouldComponentUpdate",value:function(t){var e=t.viewBox,n=dt(t,["viewBox"]),r=this.props,i=r.viewBox,o=dt(r,["viewBox"]);return!(0,rt.w)(e,i)||!(0,rt.w)(n,o)}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,s,a=this.props,u=a.x,c=a.y,l=a.width,h=a.height,f=a.orientation,d=a.tickSize,p=a.mirror,g=a.tickMargin,m=p?-1:1,y=t.tickSize||d,v=(0,D.hj)(t.tickCoord)?t.tickCoord:t.coordinate;switch(f){case"top":e=n=t.coordinate,s=(r=(i=c+ +!p*h)-m*y)-m*g,o=v;break;case"left":r=i=t.coordinate,o=(e=(n=u+ +!p*l)-m*y)-m*g,s=v;break;case"right":r=i=t.coordinate,o=(e=(n=u+ +p*l)+m*y)+m*g,s=v;break;default:e=n=t.coordinate,s=(r=(i=c+ +p*h)+m*y)+m*g,o=v}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:s}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.orientation,s=t.mirror,a=t.axisLine,u=ht(ht(ht({},(0,k.L6)(this.props)),(0,k.L6)(a)),{},{fill:"none"});if("top"===o||"bottom"===o){var c=+("top"===o&&!s||"bottom"===o&&s);u=ht(ht({},u),{},{x1:e,y1:n+c*i,x2:e+r,y2:n+c*i})}else{var l=+("left"===o&&!s||"right"===o&&s);u=ht(ht({},u),{},{x1:e+l*r,y1:n,x2:e+l*r,y2:n+i})}return E.default.createElement("line",ct({},u,{className:S()("recharts-cartesian-axis-line",p()(a,"className"))}))}},{key:"renderTicks",value:function(t){var e=this,n=this.props,r=n.tickLine,i=n.stroke,s=n.tick,a=n.tickFormatter,c=n.unit,l=o.getTicks(ht(ht({},this.props),{},{ticks:t})),h=this.getTickTextAnchor(),f=this.getTickVerticalAnchor(),d=(0,k.L6)(this.props),g=(0,k.L6)(s),m=ht(ht({},d),{},{fill:"none"},(0,k.L6)(r)),y=l.map((function(t,n){var y=e.getTickLineCoord(t),v=y.line,b=y.tick,_=ht(ht(ht(ht({textAnchor:h,verticalAnchor:f},d),{},{stroke:"none",fill:i},g),b),{},{index:n,payload:t,visibleTicksCount:l.length,tickFormatter:a});return E.default.createElement(O.m,ct({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},(0,k.bw)(e.props,t,n)),r&&E.default.createElement("line",ct({},m,v,{className:S()("recharts-cartesian-axis-tick-line",p()(r,"className"))})),s&&o.renderTickItem(s,_,"".concat(u()(a)?a(t.value,n):t.value).concat(c||"")))}));return E.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var t=this.props,e=t.axisLine,n=t.width,r=t.height,i=t.ticksGenerator,o=t.className;if(t.hide)return null;var s=this.props,a=s.ticks,c=dt(s,["ticks"]),l=a;return u()(i)&&(l=a&&a.length>0?i(this.props):i(c)),n<=0||r<=0||!l||!l.length?null:E.default.createElement(O.m,{className:S()("recharts-cartesian-axis",o)},e&&this.renderAxisLine(),this.renderTicks(l),st._.renderCallByParent(this.props))}}])&>(e.prototype,n),r&>(e,r),o}(E.Component);_t.displayName="CartesianAxis",_t.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine
1:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var wt=n(8844),xt=n(7718);function Et(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 At(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Et(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pt=["Webkit","Moz","O","ms"];function Ot(t){return Ot="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},Ot(t)}function Tt(){return Tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Tt.apply(this,arguments)}function Ct(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 Mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach((function(e){Dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kt(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,r.key,r)}}function jt(t,e){return jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},jt(t,e)}function Ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rt(t);if(e){var i=Rt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Lt(this,n)}}function Lt(t,e){return!e||"object"!==Ot(e)&&"function"!==typeof e?It(t):e}function It(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var Bt=function(t){return t.changedTouches&&!!t.changedTouches.length},Nt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jt(t,e)}(o,t);var e,n,r,i=Ft(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).leaveTimer=void 0,e.travellerDragStartHandlers=void 0,e.handleDrag=function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)},e.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])},e.handleDragEnd=function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1}),e.detachDragEndListener()},e.handleLeaveWrapper=function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))},e.handleEnterSlideOrTraveller=function(){e.setState({isTextActive:!0})},e.handleLeaveSlideOrTraveller=function(){e.setState({isTextActive:!1})},e.handleSlideDragStart=function(t){var n=Bt(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()},e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(It(e),"startX"),endX:e.handleTravellerDragStart.bind(It(e),"endX")},e.state={},e}return e=o,r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.stroke,s=Math.floor(n+i/2)-1;return E.default.createElement(E.default.Fragment,null,E.default.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),E.default.createElement("line",{x1:e+1,y1:s,x2:e+r-1,y2:s,fill:"none",stroke:"#fff"}),E.default.createElement("line",{x1:e+1,y1:s+2,x2:e+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return E.default.isValidElement(t)?E.default.cloneElement(t,e):u()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,s=t.updateId,a=t.startIndex,u=t.endIndex;if(n!==e.prevData||s!==e.prevUpdateId)return Mt({prevData:n,prevTravellerWidth:o,prevUpdateId:s,prevX:i,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!e||!e.length)return{};var a=e.length,u=(0,wt.x)().domain(m()(0,a)).range([i,i+o-s]),c=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(n),endX:u(r),scale:u,scaleValues:c}}({data:n,width:r,x:i,travellerWidth:o,startIndex:a,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var c=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:s,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,i=this.props,s=i.gap,a=i.data.length-1,u=Math.min(e,n),c=Math.max(e,n),l=o.getIndexInRange(r,u),h=o.getIndexInRange(r,c);return{startIndex:l-l%s,endIndex:h===a?a:h-h%s}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=(0,xt.F$)(n[t],i,t);return u()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,s=o.x,a=o.width,u=o.travellerWidth,c=o.startIndex,l=o.endIndex,h=o.onChange,f
1=t.pageX-n;f>0?f=Math.min(f,s+a-u-i,s+a-u-r):f<0&&(f=Math.max(f,s-r,s-i));var d=this.getIndex({startX:r+f,endX:i+f});d.startIndex===c&&d.endIndex===l||!h||h(d),this.setState({startX:r+f,endX:i+f,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=Bt(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,s=n.startX,a=this.state[i],u=this.props,c=u.x,l=u.width,h=u.travellerWidth,f=u.onChange,d=u.gap,p=u.data,g={startX:this.state.startX,endX:this.state.endX},m=t.pageX-r;m>0?m=Math.min(m,c+l-h-a):m<0&&(m=Math.max(m,c-a)),g[i]=a+m;var y=this.getIndex(g),v=y.startIndex,b=y.endIndex;this.setState((Dt(e={},i,a+m),Dt(e,"brushMoveStartX",t.pageX),e),(function(){f&&function(){var t=p.length-1;return"startX"===i&&(o>s?v%d===0:b%d===0)||o<s&&b===t||"endX"===i&&(o>s?b%d===0:v%d===0)||o>s&&b===t}()&&f(y)}))}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,s=t.stroke;return E.default.createElement("rect",{stroke:s,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,s=t.children,a=t.padding,u=E.Children.only(s);return u?E.default.cloneElement(u,{x:e,y:n,width:r,height:i,margin:a,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this.props,r=n.y,i=n.travellerWidth,s=n.height,a=n.traveller,u=Math.max(t,this.props.x),c=Mt(Mt({},(0,k.L6)(this.props)),{},{x:u,y:r,width:i,height:s});return E.default.createElement(O.m,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},o.renderTraveller(a,c))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke,s=n.travellerWidth,a=Math.min(t,e)+s,u=Math.max(Math.abs(e-t)-s,0);return E.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:a,y:r,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,s=t.stroke,a=this.state,u=a.startX,c=a.endX,l={pointerEvents:"none",fill:s};return E.default.createElement(O.m,{className:"recharts-brush-texts"},E.default.createElement(ot.x,Tt({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,c)-5,y:r+i/2},l),this.getTextOfTick(e)),E.default.createElement(ot.x,Tt({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,c)+o+5,y:r+i/2},l),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,s=t.width,a=t.height,u=t.alwaysShowText,c=this.state,l=c.startX,h=c.endX,f=c.isTextActive,d=c.isSlideMoving,p=c.isTravellerMoving;if(!e||!e.length||!(0,D.hj)(i)||!(0,D.hj)(o)||!(0,D.hj)(s)||!(0,D.hj)(a)||s<=0||a<=0)return null;var g=S()("recharts-brush",n),m=1===E.default.Children.count(r),y=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=Pt.reduce((function(t,r){return At(At({},t),{},St({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return E.default.createElement(O.m,{className:g,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(l,h),this.renderTravellerLayer(l,"startX"),this.renderTravellerLayer(h,"endX"),(f||d||p||u)&&this.renderText())}}])&&kt(e.prototype,n),r&&kt(e,r),o}(E.PureComponent);Nt.displayName="Brush",Nt.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var zt=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Zt=n(7187),Ut=n(6213);function Vt(){return Vt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vt.apply(this,arguments)}function Gt(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 Wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Gt(Object(n),!0).forEach((function(e){Ht(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xt(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,o=t.clipPathId,s=(0,D.P2)(e),a=(0,D.P2)(n);if((0,Ut.Z)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!a)return null;var u=function(t){var e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=(0,Zt.Ky)({x:r.scale,y:i.scale}),s=o.apply({x:e,y:n},{bandAware:!0});return zt(t,"discard")&&!o.isInRange(s)?null:s}(t);if(!u)return null;var c=u.x,l=u.y,h=t.shape,f=t.className,d=Wt(Wt({clipPath:zt(t,"hidden")?"url(#".concat(o,")"):void 0},(0,k.L6)(t,!0)),{},{cx:c,cy:l});return E.default.createElement(O.m,{className:S()("recharts-reference-dot",f)},Xt.renderDot(h,d),st._.renderCallByParent(t,{x:c-r,y:l-r,width:2*r,height:2*r}))}Xt.displayName="ReferenceDot",Xt.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Xt.renderDot=function(t,e){return E.default.isValidElement(t)?E.default.cloneElement(t,e):u()(t)?t(e):E.default.createElement(tt.o,Vt({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var qt=n(9704),Yt=n.n(qt);function Kt(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 $t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){Jt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return te(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ee(){return ee=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ee.apply(this,arguments)}function ne(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxis,o=t.yAxis,s=t.shape,a=t.className,c=t.alwaysShow,l=t.clipPathId;(0,Ut.Z)(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,n,r,i){var o=i.viewBox,s=o.x,a=o.y,u=o.width,c=o.height,l=i.position;if(n){var h=i.y,f=i.yAxis.orientation,d=t.y.apply(h,{position:l});if(zt(i,"discard")&&!t.y.isInRange(d))return null;var p=[{x:s+u,y:d},{x:s,y:d}];return"left"===f?p.reverse():p}if(e){var g=i.x,m=i.xAxis.orientation,y=t.x.apply(g,{position:l});if(zt(i,"discard")&&!t.x.isInRange(y))return null;var v=[{x:y,y:a+c},{x:y,y:a}];return"top"===m?v.reverse():v}if(r){var b=i.segment.map((function(e){return t.apply(e,{position:l})}));return zt(i,"discard")&&Yt()(b,(function(e){return!t.isInRange(e)}
1))?null:b}return null}((0,Zt.Ky)({x:i.scale,y:o.scale}),(0,D.P2)(e),(0,D.P2)(n),r&&2===r.length,t);if(!h)return null;var f=Qt(h,2),d=f[0],p=d.x,g=d.y,m=f[1],y=m.x,v=m.y,b=$t($t({clipPath:zt(t,"hidden")?"url(#".concat(l,")"):void 0},(0,k.L6)(t,!0)),{},{x1:p,y1:g,x2:y,y2:v});return E.default.createElement(O.m,{className:S()("recharts-reference-line",a)},function(t,e){return E.default.isValidElement(t)?E.default.cloneElement(t,e):u()(t)?t(e):E.default.createElement("line",ee({},e,{className:"recharts-reference-line-line"}))}(s,b),st._.renderCallByParent(t,(0,Zt._b)({x1:p,y1:g,x2:y,y2:v})))}function re(){return re=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},re.apply(this,arguments)}function ie(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 oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(n),!0).forEach((function(e){se(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function se(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}ne.displayName="ReferenceLine",ne.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function ae(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,o=t.className,s=t.alwaysShow,a=t.clipPathId;(0,Ut.Z)(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=(0,D.P2)(e),c=(0,D.P2)(n),l=(0,D.P2)(r),h=(0,D.P2)(i),f=t.shape;if(!u&&!c&&!l&&!h&&!f)return null;var d=function(t,e,n,r,i){var o=i.x1,s=i.x2,a=i.y1,u=i.y2,c=i.xAxis,l=i.yAxis;if(!c||!l)return null;var h=(0,Zt.Ky)({x:c.scale,y:l.scale}),f={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(a,{position:"start"}):h.y.rangeMin},d={x:e?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:r?h.y.apply(u,{position:"end"}):h.y.rangeMax};return!zt(i,"discard")||h.isInRange(f)&&h.isInRange(d)?(0,Zt.O1)(f,d):null}(u,c,l,h,t);if(!d&&!f)return null;var p=zt(t,"hidden")?"url(#".concat(a,")"):void 0;return E.default.createElement(O.m,{className:S()("recharts-reference-area",o)},ae.renderRect(f,oe(oe({clipPath:p},(0,k.L6)(t,!0)),d)),st._.renderCallByParent(t,d))}ae.displayName="ReferenceArea",ae.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ae.renderRect=function(t,e){return E.default.isValidElement(t)?E.default.cloneElement(t,e):u()(t)?t(e):E.default.createElement(et.A,re({},e,{className:"recharts-reference-area-rect"}))};var ue=function(t,e,n,r,i){var o=(0,nt.NN)(t,ne.displayName),s=(0,nt.NN)(t,Xt.displayName),a=o.concat(s),u=(0,nt.NN)(t,ae.displayName),c="".concat(r,"Id"),l=r[0],h=e;if(a.length&&(h=a.reduce((function(t,e){if(e.props[c]===n&&zt(e.props,"extendDomain")&&(0,D.hj)(e.props[l])){var r=e.props[l];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),h)),u.length){var f="".concat(l,"1"),d="".concat(l,"2");h=u.reduce((function(t,e){if(e.props[c]===n&&zt(e.props,"extendDomain")&&(0,D.hj)(e.props[f])&&(0,D.hj)(e.props[d])){var r=e.props[f],i=e.props[d];return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t}),h)}return i&&i.length&&(h=i.reduce((function(t,e){return(0,D.hj)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),h)),h},ce=n(6729),le=new(n.n(ce)());le.setMaxListeners&&le.setMaxListeners(10);var he="recharts.syncMouseEvents";function fe(t){return fe="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},fe(t)}function de(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||Ee(t,e)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(){return pe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pe.apply(this,arguments)}function ge(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function me(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,r.key,r)}}function ye(t,e){return ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ye(t,e)}function ve(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=we(t);if(e){var i=we(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return be(this,n)}}function be(t,e){return!e||"object"!==fe(e)&&"function"!==typeof e?_e(t):e}function _e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t){return we=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},we(t)}function xe(t){return function(t){if(Array.isArray(t))return Ae(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Ee(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(t,e){if(t){if("string"===typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Se(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 Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(n),!0).forEach((function(e){Oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Te={xAxis:["bottom","top"],yAxis:["left","right"]},Ce={x:0,y:0},Me=Number.isFinite?Number.isFinite:isFinite,De="function"===typeof requestAnimationFrame?requestAnimationFrame:"function"===typeof setImmediate?setImmediate:setTimeout,ke="function"===typeof cancelAnimationFrame?cancelAnimationFrame:"function"===typeof clearImmediate?clearImmediate:clearTimeout,je=function(t,e,n){var r=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,s=(r||[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(xe(t),xe(n)):t}),[]);return s&&s.length>0?s:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&(0,D.hj)(i)&&(0,D.hj)(o)?t.slice(i,o+1):[]},Fe=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,s=je(e,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce((function(t,e){if(e.props.hide)return t;var i,a=e.props.data;if(o.dataKey&&!o.allowDuplicatedCategory){var u=void 0===a?s:a;i=(0,D.Ap)(u,o.dataKey,r)}else i=a&&a[n]||s[n];return i?[].concat(xe(t),[(0,xt.Qo)(e,i)]):t}),[])},Le=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,n),s=t.orderedTooltipTicks,a=t.tooltipAxis,u=t.tooltipTicks,c=(0,xt.VO)(o,s,u,a);if(c>=0&&u){var l=u[c]&&u[c].value,h=Fe(t,e,c,l),f=function(t,e,n,r){var i=e.find((function(t){return t&&t.index===n}));if(i){if("horizontal"===t)return{x:i.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:i.coordinate};
1if("centric"===t){var o=i.coordinate,s=r.radius;return Pe(Pe(Pe({},r),(0,U.op)(r.cx,r.cy,s,o)),{},{angle:o,radius:s})}var a=i.coordinate,u=r.angle;return Pe(Pe(Pe({},r),(0,U.op)(r.cx,r.cy,a,u)),{},{angle:u,radius:a})}return Ce}(n,s,c,i);return{activeTooltipIndex:c,activeLabel:l,activePayload:h,activeCoordinate:f}}return null},Ie=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,s=e.stackGroups,a=e.dataStartIndex,u=e.dataEndIndex,c=t.children,l="".concat(r,"Id"),h=(0,nt.NN)(c,i),f={};return h&&h.length?f=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,o=e.axisIdKey,s=e.stackGroups,a=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,l=t.children,h=t.stackOffset,f=(0,xt.NA)(c,i);return n.reduce((function(e,n){var d=n.props,p=d.type,g=d.dataKey,y=d.allowDataOverflow,b=d.allowDuplicatedCategory,_=d.scale,w=d.ticks,x=n.props[o],E=je(t.data,{graphicalItems:r.filter((function(t){return t.props[o]===x})),dataStartIndex:a,dataEndIndex:u}),A=E.length;if(!e[x]){var S,P,O;if(g){if(S=(0,xt.gF)(E,g,p),"category"===p&&f){var T=(0,D.bv)(S);b&&T?(P=S,S=m()(0,A)):b||(S=(0,xt.ko)(n.props.domain,S,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(xe(t),[e])}),[]))}else if("category"===p)S=b?S.filter((function(t){return""!==t&&!v()(t)})):(0,xt.ko)(n.props.domain,S,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||v()(e)?t:[].concat(xe(t),[e])}),[]);else if("number"===p){var C=(0,xt.ZI)(E,r.filter((function(t){return t.props[o]===x&&!t.props.hide})),g,i);C&&(S=C)}!f||"number"!==p&&"auto"===_||(O=(0,xt.gF)(E,g,"category"))}else S=f?m()(0,A):s&&s[x]&&s[x].hasStack&&"number"===p?"expand"===h?[0,1]:(0,xt.EB)(s[x].stackGroups,a,u):(0,xt.s6)(E,r.filter((function(t){return t.props[o]===x&&!t.props.hide})),p,!0);if("number"===p)S=ue(l,S,x,i,w),n.props.domain&&(S=(0,xt.LG)(n.props.domain,S,y));else if("category"===p&&n.props.domain){var M=n.props.domain;S.every((function(t){return M.indexOf(t)>=0}))&&(S=M)}return Pe(Pe({},e),{},Oe({},x,Pe(Pe({},n.props),{},{axisType:i,domain:S,categoricalDomain:O,duplicateDomain:P,originalDomain:n.props.domain,isCategorical:f,layout:c})))}return e}),{})}(t,{axes:h,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:s,dataStartIndex:a,dataEndIndex:u}):o&&o.length&&(f=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,s=e.stackGroups,a=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,l=t.children,h=je(t.data,{graphicalItems:n,dataStartIndex:a,dataEndIndex:u}),f=h.length,d=(0,xt.NA)(c,i),g=-1;return n.reduce((function(t,e){var y,v=e.props[o];return t[v]?t:(g++,d?y=m()(0,f):s&&s[v]&&s[v].hasStack?(y=(0,xt.EB)(s[v].stackGroups,a,u),y=ue(l,y,v,i)):(y=(0,xt.LG)(r.defaultProps.domain,(0,xt.s6)(h,n.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number"),r.defaultProps.allowDataOverflow),y=ue(l,y,v,i)),Pe(Pe({},t),{},Oe({},v,Pe(Pe({axisType:i},r.defaultProps),{},{hide:!0,orientation:p()(Te,"".concat(i,".").concat(g%2),null),domain:y,originalDomain:r.defaultProps.domain,isCategorical:d,layout:c}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:l,stackGroups:s,dataStartIndex:a,dataEndIndex:u})),f},Re=function(t){var e=t.children,n=t.defaultShowTooltip,r=(0,nt.sP)(e,Nt.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||
10,dataEndIndex:r&&r.props&&r.props.endIndex||t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!v()(n)&&n}},Be=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Ne=function(t){var e,n,r=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,h=t.validateTooltipEventTypes,d=void 0===h?["axis"]:h,g=t.axisComponents,m=t.legendContent,y=t.formatAxisMap,b=t.defaultProps,w=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,o=e.updateId,s=e.dataStartIndex,a=e.dataEndIndex,u=t.barSize,c=t.layout,l=t.barGap,h=t.barCategoryGap,f=t.maxBarSize,d=Be(c),p=d.numericAxisName,m=d.cateAxisName,y=function(t){return!(!t||!t.length)&&t.some((function(t){var e=(0,nt.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),b=y&&(0,xt.pt)({barSize:u,stackGroups:r}),_=[];return n.forEach((function(n,u){var d=je(t.data,{dataStartIndex:s,dataEndIndex:a},n),y=n.props,w=y.dataKey,x=y.maxBarSize,E=n.props["".concat(p,"Id")],A=n.props["".concat(m,"Id")],S=g.reduce((function(t,r){var i,o=e["".concat(r.axisType,"Map")],s=n.props["".concat(r.axisType,"Id")],a=o&&o[s];return Pe(Pe({},t),{},(Oe(i={},r.axisType,a),Oe(i,"".concat(r.axisType,"Ticks"),(0,xt.uY)(a)),i))}),{}),P=S[m],O=S["".concat(m,"Ticks")],T=r&&r[E]&&r[E].hasStack&&(0,xt.O3)(n,r[E].stackGroups),C=(0,nt.Gf)(n.type).indexOf("Bar")>=0,M=(0,xt.zT)(P,O),D=[];if(C){var k,j,F=v()(x)?f:x,L=null!==(k=null!==(j=(0,xt.zT)(P,O,!0))&&void 0!==j?j:F)&&void 0!==k?k:0;D=(0,xt.qz)({barGap:l,barCategoryGap:h,bandSize:L!==M?L:M,sizeList:b[A],maxBarSize:F}),L!==M&&(D=D.map((function(t){return Pe(Pe({},t),{},{position:Pe(Pe({},t.position),{},{offset:t.position.offset-L/2})})})))}var I,R=n&&n.type&&n.type.getComposedData;R&&_.push({props:Pe(Pe({},R(Pe(Pe({},S),{},{displayedData:d,props:t,dataKey:w,item:n,bandSize:M,barPosition:D,offset:i,stackedData:T,layout:c,dataStartIndex:s,dataEndIndex:a}))),{},(I={key:n.key||"item-".concat(u)},Oe(I,p,S[p]),Oe(I,m,S[m]),Oe(I,"animationId",o),I)),childIndex:(0,nt.$R)(n,t.children),item:n})})),_},A=function(t,e){var n=t.props,i=t.dataStartIndex,s=t.dataEndIndex,a=t.updateId;if(!(0,nt.TT)({props:n}))return null;var u=n.children,c=n.layout,l=n.stackOffset,h=n.data,d=n.reverseStackOrder,m=Be(c),v=m.numericAxisName,b=m.cateAxisName,_=(0,nt.NN)(u,o),x=(0,xt.wh)(h,_,"".concat(v,"Id"),"".concat(b,"Id"),l,d),E=g.reduce((function(t,e){var r="".concat(e.axisType,"Map");return Pe(Pe({},t),{},Oe({},r,Ie(n,Pe(Pe({},e),{},{graphicalItems:_,stackGroups:e.axisType===v&&x,dataStartIndex:i,dataEndIndex:s}))))}),{}),A=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,s=t.yAxisMap,a=void 0===s?{}:s,u=n.width,c=n.height,l=n.children,h=n.margin||{},f=(0,nt.sP)(l,Nt.displayName),d=(0,nt.sP)(l,C.D.displayName),g=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:Pe(Pe({},t),{},Oe({},r,t[r]+n.width))}),{left:h.left||0,right:h.right||0}),m=Object.keys(o).reduce((function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:Pe(Pe({},t),{},Oe({},r,p()(t,"".concat(r))+n.height))}),{top:h.top||0,bottom:h.bottom||0}),y=Pe(Pe({},m),g),v=y.bottom;return f&&(y.bottom+=f.props.height||Nt.defaultProps.height),d&&e&&(y=(0,xt.By)(y,r,n,e)),Pe(Pe({brushBottom:v},y),{},{width:u-y.left-y.right,height:c-y.top-y.bottom})}(Pe(Pe({},E),{},{props:n,graphicalItems:_}),null===e||void 0===e?void 0:e.legendBBox);
1Object.keys(E).forEach((function(t){E[t]=y(n,E[t],A,t.replace("Map",""),r)}));var S=function(t){var e=(0,D.Kt)(t),n=(0,xt.uY)(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:f()(n,(function(t){return t.coordinate})),tooltipAxis:e,tooltipAxisBandSize:(0,xt.zT)(e,n)}}(E["".concat(b,"Map")]),P=w(n,Pe(Pe({},E),{},{dataStartIndex:i,dataEndIndex:s,updateId:a,graphicalItems:_,stackGroups:x,offset:A}));return Pe(Pe({formattedGraphicalItems:P,graphicalItems:_,offset:A,stackGroups:x},S),E)};return n=e=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ye(t,e)}(h,t);var e,n,o,a=ve(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=a.call(this,t)).uniqueChartId=void 0,e.clipPathId=void 0,e.legendInstance=void 0,e.deferId=void 0,e.container=void 0,e.clearDeferId=function(){!v()(e.deferId)&&ke&&ke(e.deferId),e.deferId=null},e.handleLegendBBoxUpdate=function(t){if(t){var n=e.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;e.setState(Pe({legendBBox:t},A({props:e.props,dataStartIndex:r,dataEndIndex:i,updateId:o},Pe(Pe({},e.state),{},{legendBBox:t}))))}},e.handleReceiveSyncEvent=function(t,n,r){e.props.syncId===t&&n!==e.uniqueChartId&&(e.clearDeferId(),e.deferId=De&&De(e.applySyncEvent.bind(_e(e),r)))},e.handleBrushChange=function(t){var n=t.startIndex,r=t.endIndex;if(n!==e.state.dataStartIndex||r!==e.state.dataEndIndex){var i=e.state.updateId;e.setState((function(){return Pe({dataStartIndex:n,dataEndIndex:r},A({props:e.props,dataStartIndex:n,dataEndIndex:r,updateId:i},e.state))})),e.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter,r=e.getMouseInfo(t);if(r){var i=Pe(Pe({},r),{},{isTooltipActive:!0});e.setState(i),e.triggerSyncEvent(i),u()(n)&&n(i,t)}},e.triggeredAfterMouseMove=function(t){var n=e.props.onMouseMove,r=e.getMouseInfo(t),i=r?Pe(Pe({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(i),e.triggerSyncEvent(i),u()(n)&&n(i,t)},e.handleItemMouseEnter=function(t){e.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))},e.handleItemMouseLeave=function(){e.setState((function(){return{isTooltipActive:!1}}))},e.handleMouseMove=function(t){t&&u()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave,r={isTooltipActive:!1};e.setState(r),e.triggerSyncEvent(r),u()(n)&&n(r,t),e.cancelThrottledTriggerAfterMouseMove()},e.handleOuterEvent=function(t){var n=(0,nt.Bh)(t),r=p()(e.props,"".concat(n));n&&u()(r)&&r(/.*touch.*/i.test(n)?e.getMouseInfo(t.changedTouches[0]):e.getMouseInfo(t),t)},e.handleClick=function(t){var n=e.props.onClick,r=e.getMouseInfo(t);if(r){var i=Pe(Pe({},r),{},{isTooltipActive:!0});e.setState(i),e.triggerSyncEvent(i),u()(n)&&n(i,t)}},e.handleMouseDown=function(t){var n=e.props.onMouseDown;u()(n)&&n(e.getMouseInfo(t),t)},e.handleMouseUp=function(t){var n=e.props.onMouseUp;u()(n)&&n(e.getMouseInfo(t),t)},e.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])},e.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseDown(t.changedTouches[0])},e.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseUp(t.changedTouches[0])},e.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,i=t.offset;return(0,xt.Rf)(_t.getTicks(Pe(Pe(Pe({},_t.defaultProps),e),{},{ticks:(0,xt.uY)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},e.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,i=t.offset;return(0,xt.Rf)(_t.getTicks(Pe(Pe(Pe({},_t.defaultProps),e),{},{ticks:(0,xt.uY)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},e.axesTicksGenerator=function(t){return(0,xt.uY)(t,!0)},e.renderCursor=function(t){var n=e.state,i=n.isTooltipActive,o=n.activeCoordinate,
1s=n.activePayload,a=n.offset,u=n.activeTooltipIndex,c=e.getTooltipEventType();if(!t||!t.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==c)return null;var l,h=e.props.layout,f=M.H;if("ScatterChart"===r)l=o,f=Z;else if("BarChart"===r)l=e.getCursorRectangle(),f=et.A;else if("radial"===h){var d=e.getCursorPoints(),p=d.cx,g=d.cy,m=d.radius;l={cx:p,cy:g,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:m,outerRadius:m},f=Q}else l={points:e.getCursorPoints()},f=M.H;var y=t.key||"_recharts-cursor",v=Pe(Pe(Pe(Pe({stroke:"#ccc",pointerEvents:"none"},a),l),(0,k.L6)(t.props.cursor)),{},{payload:s,payloadIndex:u,key:y,className:"recharts-tooltip-cursor"});return(0,E.isValidElement)(t.props.cursor)?(0,E.cloneElement)(t.props.cursor,v):(0,E.createElement)(f,v)},e.renderPolarAxis=function(t,n,r){var i=p()(t,"type.axisType"),o=p()(e.state,"".concat(i,"Map"))[t.props["".concat(i,"Id")]];return(0,E.cloneElement)(t,Pe(Pe({},o),{},{className:i,key:t.key||"".concat(n,"-").concat(r),ticks:(0,xt.uY)(o,!0)}))},e.renderXAxis=function(t,n,r){var i=e.state.xAxisMap[t.props.xAxisId];return e.renderAxis(i,t,n,r)},e.renderYAxis=function(t,n,r){var i=e.state.yAxisMap[t.props.yAxisId];return e.renderAxis(i,t,n,r)},e.renderGrid=function(t){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,a=n.offset,u=e.props,c=u.width,l=u.height,h=(0,D.Kt)(r),f=s()(o,(function(t){return i()(t.domain,Me)}))||(0,D.Kt)(o),d=t.props||{};return(0,E.cloneElement)(t,{key:t.key||"grid",x:(0,D.hj)(d.x)?d.x:a.left,y:(0,D.hj)(d.y)?d.y:a.top,width:(0,D.hj)(d.width)?d.width:a.width,height:(0,D.hj)(d.height)?d.height:a.height,xAxis:h,yAxis:f,offset:a,chartWidth:c,chartHeight:l,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||e.horizontalCoordinatesGenerator})},e.renderPolarGrid=function(t){var n=t.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,s=e.state,a=s.radiusAxisMap,u=s.angleAxisMap,c=(0,D.Kt)(a),l=(0,D.Kt)(u),h=l.cx,f=l.cy,d=l.innerRadius,p=l.outerRadius;return(0,E.cloneElement)(t,{polarAngles:x()(i)?i:(0,xt.uY)(l,!0).map((function(t){return t.coordinate})),polarRadius:x()(o)?o:(0,xt.uY)(c,!0).map((function(t){return t.coordinate})),cx:h,cy:f,innerRadius:d,outerRadius:p,key:t.key||"polar-grid",radialLines:r})},e.renderLegend=function(){var t=e.state.formattedGraphicalItems,n=e.props,r=n.children,i=n.width,o=n.height,s=e.props.margin||{},a=i-(s.left||0)-(s.right||0),u=(0,xt.zp)({children:r,formattedGraphicalItems:t,legendWidth:a,legendContent:m});if(!u)return null;var c=u.item,l=ge(u,["item"]);return(0,E.cloneElement)(c,Pe(Pe({},l),{},{chartWidth:i,chartHeight:o,margin:s,ref:function(t){e.legendInstance=t},onBBoxUpdate:e.handleLegendBBoxUpdate}))},e.renderTooltip=function(){var t=e.props.children,n=(0,nt.sP)(t,T.u.displayName);if(!n)return null;var r=e.state,i=r.isTooltipActive,o=r.activeCoordinate,s=r.activePayload,a=r.activeLabel,u=r.offset;return(0,E.cloneElement)(n,{viewBox:Pe(Pe({},u),{},{x:u.left,y:u.top}),active:i,label:a,payload:i?s:[],coordinate:o})},e.renderBrush=function(t){var n=e.props,r=n.margin,i=n.data,o=e.state,s=o.offset,a=o.dataStartIndex,u=o.dataEndIndex,c=o.updateId;return(0,E.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,xt.DO)(e.handleBrushChange,null,t.props.onChange),data:i,x:(0,D.hj)(t.props.x)?t.props.x:s.left,y:(0,D.hj)(t.props.y)?t.props.y:s.top+s.height+s.brushBottom-(r.bottom||0),width:(0,D.hj)(t.props.width)?t.props.width:s.width,startIndex:a,endIndex:u,updateId:"brush-".concat(c)})},e.renderReferenceElement=function(t,n,r){if(!t)return null;var i=_e(e).clipPathId,o=e.state,s=o.xAxisMap,a=o.yAxisMap,u=o.offset,c=t.props,l=c.xAxisId,h=c.yAxisId;return(0,E.cloneElement)(t,{key:t.key||"".concat(n,"-").concat(r),xAxis:s[l],yAxis:a[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},e.renderActivePoints=function(t){var e=t.item,n=t.activePoint,r=t.basePoint,i=t.childIndex,o=t.isRange,s=[],a=e.props.key,u=e.item.props,c=u.activeDot,l=Pe(Pe({index:i,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:(0,xt.fk)(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(a,"-activePoint-").concat(i)},(0,k.L6)(c)),(0,k.Ym)(c));return s.push(h.renderActiveDot(c,l)),r?s.push(h.renderActiveDot(c,Pe(Pe({},l),{},{cx:r.x,cy:r.y,key:"".concat(a,"-basePoint-").concat(i)}))):o&&s.push(null),s},e.renderGraphicChild=function(t,n,r){var i=e.filterFormatItem(t,n,r);if(!i)return null;var o=e.getTooltipEventType(),s=e.state,a=s.isTooltipActive,u=s.tooltipAxis,c=s.activeTooltipIndex,l=s.activeLabel,h=e.props.children,f=(0,nt.
1sP)(h,T.u.displayName),d=i.props,p=d.points,g=d.isRange,m=d.baseLine,y=i.item.props,b=y.activeDot,_=!y.hide&&a&&f&&b&&c>=0,w={};"axis"!==o&&f&&"click"===f.props.trigger?w={onClick:(0,xt.DO)(e.handleItemMouseEnter,null,t.props.onCLick)}:"axis"!==o&&(w={onMouseLeave:(0,xt.DO)(e.handleItemMouseLeave,null,t.props.onMouseLeave),onMouseEnter:(0,xt.DO)(e.handleItemMouseEnter,null,t.props.onMouseEnter)});var x=(0,E.cloneElement)(t,Pe(Pe({},i.props),w));if(_){var A,S;if(u.dataKey&&!u.allowDuplicatedCategory){var P="function"===typeof u.dataKey?function(t){return"function"===typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());A=(0,D.Ap)(p,P,l),S=g&&m&&(0,D.Ap)(m,P,l)}else A=p[c],S=g&&m&&m[c];if(!v()(A))return[x].concat(xe(e.renderActivePoints({item:i,activePoint:A,basePoint:S,childIndex:c,isRange:g})))}return g?[x,null,null]:[x,null]},e.renderCustomized=function(t,n,r){return(0,E.cloneElement)(t,Pe(Pe({key:"recharts-customized-".concat(r)},e.props),e.state))},e.uniqueChartId=v()(t.id)?(0,D.EL)("recharts"):t.id,e.clipPathId="".concat(e.uniqueChartId,"-clip"),t.throttleDelay&&(e.triggeredAfterMouseMove=l()(e.triggeredAfterMouseMove,t.throttleDelay)),e.state={},e}return e=h,(n=[{key:"componentDidMount",value:function(){v()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(t){v()(t.syncId)&&!v()(this.props.syncId)&&this.addListener(),!v()(t.syncId)&&v()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),v()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,nt.sP)(this.props.children,T.u.displayName);if(t&&_()(t.props.shared)){var e=t.props.shared?"axis":"item";return d.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=(0,it.os)(this.container),n=(0,it.IR)(t,e),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,s=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&s){var a=(0,D.Kt)(o).scale,u=(0,D.Kt)(s).scale,c=a&&a.invert?a.invert(n.chartX):null,l=u&&u.invert?u.invert(n.chartY):null;return Pe(Pe({},n),{},{xValue:c,yValue:l})}var h=Le(this.state,this.props.data,this.props.layout,r);return h?Pe(Pe({},n),h):null}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-o,width:"horizontal"===t?i:r.width-1,height:"horizontal"===t?r.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,n,r,i=this.props.layout,o=this.state,s=o.activeCoordinate,a=o.offset;if("horizontal"===i)n=t=s.x,e=a.top,r=a.top+a.height;else if("vertical"===i)r=e=s.y,t=a.left,n=a.left+a.width;else if(!v()(s.cx)||!v()(s.cy)){if("centric"!==i){var u=s.cx,c=s.cy,l=s.radius,h=s.startAngle,f=s.endAngle;return{points:[(0,U.op)(u,c,l,h),(0,U.op)(u,c,l,f)],cx:u,cy:c,radius:l,startAngle:h,endAngle:f}}var d=s.cx,p=s.cy,g=s.innerRadius,m=s.outerRadius,y=s.angle,b=(0,U.op)(d,p,g,y),_=(0,U.op)(d,p,m,y);t=b.x,e=b.y,n=_.x,r=_.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>
1=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,s=i.radiusAxisMap;if(o&&s){var a=(0,D.Kt)(o);return(0,U.z3)({x:t,y:e},a)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,nt.sP)(t,T.u.displayName),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Pe(Pe({},(0,k.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){le.on(he,this.handleReceiveSyncEvent),le.setMaxListeners&&le._maxListeners&&le.setMaxListeners(le._maxListeners+1)}},{key:"removeListener",value:function(){le.removeListener(he,this.handleReceiveSyncEvent),le.setMaxListeners&&le._maxListeners&&le.setMaxListeners(le._maxListeners-1)}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;v()(e)||le.emit(he,e,this.uniqueChartId,t)}},{key:"applySyncEvent",value:function(t){var e=this.props,n=e.layout,r=e.syncMethod,i=this.state.updateId,o=t.dataStartIndex,s=t.dataEndIndex;if(v()(t.dataStartIndex)&&v()(t.dataEndIndex))if(v()(t.activeTooltipIndex))this.setState(t);else{var a=t.chartX,u=t.chartY,c=t.activeTooltipIndex,l=this.state,h=l.offset,f=l.tooltipTicks;if(!h)return;if("function"===typeof r)c=r(f,t);else if("value"===r){c=-1;for(var d=0;d<f.length;d++)if(f[d].value===t.activeLabel){c=d;break}}var p=Pe(Pe({},h),{},{x:h.left,y:h.top}),g=Math.min(a,p.x+p.width),m=Math.min(u,p.y+p.height),y=f[c]&&f[c].value,b=Fe(this.state,this.props.data,c),_=f[c]?{x:"horizontal"===n?f[c].coordinate:g,y:"horizontal"===n?m:f[c].coordinate}:Ce;this.setState(Pe(Pe({},t),{},{activeLabel:y,activeCoordinate:_,activePayload:b,activeTooltipIndex:c}))}else this.setState(Pe({dataStartIndex:o,dataEndIndex:s},A({props:this.props,dataStartIndex:o,dataEndIndex:s,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var s=r[i];if(s.item===t||s.props.key===t.key||e===(0,nt.Gf)(s.item.type)&&n===s.childIndex)return s}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,o=i.width,s=i.height;return E.default.createElement(_t,pe({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,o=e.width;return E.default.createElement("defs",null,E.default.createElement("clipPath",{id:t},E.default.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=de(e,2),r=n[0],i=n[1];return Pe(Pe({},t),{},Oe({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=de(e,2),r=n[0],i=n[1];return Pe(Pe({},t),{},Oe({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e,n;return null===(e=this.state.xAxisMap)||void 0===e||null===(n=e[t])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(t){var e,n;return null===(e=this.state.yAxisMap)||void 0===e||null===(n=e[t])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(t){var e=this.state.formattedGraphicalItems;if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var i=e[n],o=i.props,s=i.item,a=(0,nt.Gf)(s.type);if("Bar"===a){var u=(o.data||[]).find((function(e){return(0,et.X)(t,e)}));if(u)return{graphicalItem:i,payload:u}}else if("RadialBar"===a){var c=(o.data||[]).find((function(e){return(0,U.z3)(t,e)}));if(c)return{graphicalItem:i,payload:c}}}return null}},{key:"render",value:function(){var t=this;if(!(0,nt.TT)(this))return null;var e=this.props,n=e.children,r=e.className,i=e.width,o=e.height,s=e.style,a=e.compact,u=ge(e,["children","className","width","height","style","compact"]),c=(0,k.L6)(u),l={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(a)return E.default.createElement(P.T,pe({},c,{width:i,height:o}),this.renderClipPath(),(0,nt.eu)(n,l));var h=this.parseEventsOfWrapper();return E.default.createElement("div",pe({className:S()("recharts-wrapper",r),style:Pe({position:"relative",curs
1or:"default",width:i,height:o},s)},h,{ref:function(e){t.container=e}}),E.default.createElement(P.T,pe({},c,{width:i,height:o}),this.renderClipPath(),(0,nt.eu)(n,l)),this.renderLegend(),this.renderTooltip())}}])&&me(e.prototype,n),o&&me(e,o),h}(E.Component),e.displayName=r,e.defaultProps=Pe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},b),e.getDerivedStateFromProps=function(t,e){var n=t.data,r=t.children,i=t.width,o=t.height,s=t.layout,a=t.stackOffset,u=t.margin;if(v()(e.updateId)){var c=Re(t);return Pe(Pe(Pe({},c),{},{updateId:0},A(Pe(Pe({props:t},c),{},{updateId:0}),e)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:a,prevMargin:u,prevChildren:r})}if(n!==e.prevData||i!==e.prevWidth||o!==e.prevHeight||s!==e.prevLayout||a!==e.prevStackOffset||!(0,rt.w)(u,e.prevMargin)){var l=Re(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},f=Pe(Pe({},Le(e,n,s)),{},{updateId:e.updateId+1}),d=Pe(Pe(Pe({},l),h),f);return Pe(Pe(Pe({},d),A(Pe({props:t},d),e)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:a,prevMargin:u,prevChildren:r})}if(!(0,nt.rL)(r,e.prevChildren)){var p=!v()(n)?e.updateId:e.updateId+1;return Pe(Pe({updateId:p},A(Pe(Pe({props:t},e),{},{updateId:p}),e)),{},{prevChildren:r})}return null},e.renderActiveDot=function(t,e){var n;return n=(0,E.isValidElement)(t)?(0,E.cloneElement)(t,e):u()(t)?t(e):E.default.createElement(tt.o,e),E.default.createElement(O.m,{className:"recharts-active-dot",key:e.key},n)},n}},5048:function(t,e,n){"use strict";n.d(e,{_:function(){return A}});var r=n(3218),i=n.n(r),o=n(3560),s=n.n(o),a=n(4293),u=n.n(a),c=n(1720),l=n(4184),h=n.n(l),f=n(8169),d=n(2017),p=n(9055),g=n(48),m=n(9896);function y(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(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 _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){w(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(){return x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x.apply(this,arguments)}var E=function(t,e,n){var r,i,o=t.position,s=t.viewBox,a=t.offset,l=t.className,f=s,d=f.cx,m=f.cy,y=f.innerRadius,v=f.outerRadius,b=f.startAngle,_=f.endAngle,w=f.clockWise,E=(y+v)/2,A=function(t,e){return(0,p.uY)(e-t)*Math.min(Math.abs(e-t),360)}(b,_),S=A>=0?1:-1;"insideStart"===o?(r=b+S*a,i=w):"insideEnd"===o?(r=_-S*a,i=!w):"end"===o&&(r=_+S*a,i=w),i=A<=0?i:!i;var P=(0,g.op)(d,m,E,r),O=(0,g.op)(d,m,E,r+359*(i?1:-1)),T="M".concat(P.x,",").concat(P.y,"\n A").concat(E,",").concat(E,",0,1,").concat(i?0:1,",\n ").concat(O.x,",").concat(O.y),C=u()(t.id)?(0,p.EL)("recharts-radial-line-"):t.id;return c.default.createElement("text",x({},n,{dominantBaseline:"central",className:h()("recharts-radial-bar-label",l)}),c.default.createElement("defs",null,c.default.createElement("path",{id:C,d:T})),c.default.createElement("textPath",{xlinkHref:"#".concat(C)},e))};function A(t){var e,n=t.viewBox,r=t.position,o=t.value,a=t.children,l=t.content,d=t.className,y=void 0===d?"":d,v=t.textBreakAll;if(!n||u()(o)&&u()(a)&&!(0,c.isValidElement)(l)&&!s()(l))return null;if((0,c.isValidElement)(l))return(0,c.cloneElement)(l,t);if(s()(l)){if(e=(0,c.createElement)(l,t),(0,c.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=u()(t.children)?e:t.children;return s()(n)?n(r):r}(t);var b=function(t){return(0,p.hj)(t.cx)}(n),w=(0,m.L6)(t,!0);if(b&&("insideStart"===r||"insideEnd"===r||"end"===r))return E(t,e,w);var A=b?function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e,o=i.cx,s=i.cy,a=i.innerRadius,u=i.outerRadius,c=(i.startAngle+i.endAngle)/2;if("outside"===r){var l=(0,g.op)(o,s,u+n,c),h=l.x;return{x:h,y:l.y,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var f=(a+u)/2,d=(0,g.op)(o,s,f,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(t):function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,o=t.position,s=e,a=s.x,u=s.y,c=s.width,l=s.height,h=l>=0?1:-1,f=h*r,d=h>0?"end":"start",g=h>0?"start":"end",m=c>=0?1:-1,y=m*r,v=m>0?"end":"start",b=m>0?"start":"end";if("top"===o)return _(_({},{x:a+c/2,y:u-h*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(u-n.y,0),width:c}:{});if("bottom"===o)return _(_({},{x:a+c/2,y:u+l+f,textAnchor:"middle",verticalAnchor:g}),n?{height:Math.max(n.y+n.height-(u+l),0),width:c}:{});if("left"===o){var w={x:a-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"};return _(_({},w),n?{width:Math.max(w.x-n.x,0),height:l}:{})}if("right"===o){var x={x:a+c+y,y:u+l/2,textAnchor:b,verticalAnchor:"middle"};return _(_({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:l}:{})}var E=n?{width:c,height:l}:{};return"insideLeft"===o?_({x:a+y,y:u+l/2,textAnchor:b,verticalAnchor:"middle"},E):"insideRight"===o?_({x:a+c-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"},E):"insideTop"===o?_({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:g},E):"insideBottom"===o?_({x:a+c/2,y:u+l-f,textAnchor:"middle",verticalAnchor:d},E):"insideTopLeft"===o?_({x:a+y,y:u+f,textAnchor:b,verticalAnchor:g},E):"insideTopRight"===o?_({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:g},E):"insideBottomLeft"===o?_({x:a+y,y:u+l-f,textAnchor:b,verticalAnchor:d},E):"insideBottomRight"===o?_({x:a+c-y,y:u+l-f,textAnchor:v,verticalAnchor:d}
1,E):i()(o)&&((0,p.hj)(o.x)||(0,p.hU)(o.x))&&((0,p.hj)(o.y)||(0,p.hU)(o.y))?_({x:a+(0,p.h1)(o.x,c),y:u+(0,p.h1)(o.y,l),textAnchor:"end",verticalAnchor:"end"},E):_({x:a+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},E)}(t);return c.default.createElement(f.x,x({className:h()("recharts-label",y)},w,A,{breakAll:v}),e)}A.displayName="Label",A.defaultProps={offset:5};var S=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,a=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,h=t.y,f=t.top,d=t.left,g=t.width,m=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if((0,p.hj)(g)&&(0,p.hj)(m)){if((0,p.hj)(l)&&(0,p.hj)(h))return{x:l,y:h,width:g,height:m};if((0,p.hj)(f)&&(0,p.hj)(d))return{x:f,y:d,width:g,height:m}}return(0,p.hj)(l)&&(0,p.hj)(h)?{x:l,y:h,width:0,height:0}:(0,p.hj)(e)&&(0,p.hj)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:c||a||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},P=function(t,e){return t?!0===t?c.default.createElement(A,{key:"label-implicit",viewBox:e}):(0,p.P2)(t)?c.default.createElement(A,{key:"label-implicit",viewBox:e,value:t}):(0,c.isValidElement)(t)?t.type===A?(0,c.cloneElement)(t,{key:"label-implicit",viewBox:e}):c.default.createElement(A,{key:"label-implicit",content:t,viewBox:e}):s()(t)?c.default.createElement(A,{key:"label-implicit",content:t,viewBox:e}):i()(t)?c.default.createElement(A,x({viewBox:e},t,{key:"label-implicit"})):null:null};A.parseViewBox=S,A.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=S(t),o=(0,d.NN)(r,A.displayName).map((function(t,n){return(0,c.cloneElement)(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var s=P(t.label,e||i);return[s].concat(y(o))}},2763:function(t,e,n){"use strict";n.d(e,{e:function(){return O}});var r=n(3218),i=n.n(r),o=n(3560),s=n.n(o),a=n(4293),u=n.n(a),c=n(928),l=n.n(c),h=n(1469),f=n.n(h),d=n(1720),p=n(5048),g=n(8710),m=n(2017),y=n(7718),v=n(9896);function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(){return w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w.apply(this,arguments)}function x(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 E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var P={valueAccessor:function(t){return f()(t.value)?l()(t.value):t.value}};function O(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,i=t.clockWise,o=t.id,s=t.textBreakAll,a=S(t,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return e&&e.length?d.default.createElement(g.m,{className:"recharts-label-list"},e.map((function(t,e){var c=u()(r)?n(t,e):(0,y.F$)(t&&t.payload,r),l=u()(o)?{}:{id:"".concat(o,"-").concat(e)};return d.default.createElement(p._,w({},(0,v.L6)(t,!0),a,l,{parentViewBox:t.parentViewBox,index:e,value:c,textBreakAll:s,viewBox:p._.parseViewBox(u()(i)?t:E(E({},t),{},{clockWise:i})),key:"label-".concat(e)}))}))):null}function T(t,e){return t?!0===t?d.default.createElement(O,{key:"labelList-implicit",data:e}):d.default.isValidElement(t)||s()(t)?d.default.createElement(O,{key:"labelList-implicit",data:e,content:t}):i()(t)?d.default.createElement(O,w({data:e},t,{key:"labelList-implicit"})):null:null}O.displayName="LabelList",O.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;
1var r=t.children,i=(0,m.NN)(r,O.displayName).map((function(t,n){return(0,d.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));if(!n)return i;var o=T(t.label,e);return[o].concat(b(i))},O.defaultProps=P},4141:function(t,e,n){"use strict";n.d(e,{D:function(){return vt}});var r=n(3560),i=n.n(r),o=n(5578),s=n.n(o),a=n(1720),u=n(4184),c=n.n(u),l=n(514),h=n(1700),f=n.n(h),d=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),p=2*d;var g={draw:function(t,e){var n=Math.sqrt(e/d);t.moveTo(n,0),t.arc(0,0,n,0,p)}},m={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},y=Math.sqrt(1/3),v=2*y,b={draw:function(t,e){var n=Math.sqrt(e/v),r=n*y;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},_={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},w=Math.sin(d/10)/Math.sin(7*d/10),x=Math.sin(p/10)*w,E=-Math.cos(p/10)*w,A={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=x*n,i=E*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var s=p*o/5,a=Math.cos(s),u=Math.sin(s);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*i,u*r+a*i)}t.closePath()}},S=Math.sqrt(3),P={draw:function(t,e){var n=-Math.sqrt(e/(3*S));t.moveTo(0,2*n),t.lineTo(-S*n,-n),t.lineTo(S*n,-n),t.closePath()}},O=-.5,T=Math.sqrt(3)/2,C=1/Math.sqrt(12),M=3*(C/2+1),D={draw:function(t,e){var n=Math.sqrt(e/M),r=n/2,i=n*C,o=r,s=n*C+n,a=-o,u=s;t.moveTo(r,i),t.lineTo(o,s),t.lineTo(a,u),t.lineTo(O*r-T*i,T*r+O*i),t.lineTo(O*o-T*s,T*o+O*s),t.lineTo(O*a-T*u,T*a+O*u),t.lineTo(O*r+T*i,O*i-T*r),t.lineTo(O*o+T*s,O*s-T*o),t.lineTo(O*a+T*u,O*u-T*a),t.closePath()}},k=n(1108),j=n(6953);var F=n(9896);function L(t){return L="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},L(t)}function I(){return I=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},I.apply(this,arguments)}function R(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(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,r.key,r)}}function N(t,e){return N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},N(t,e)}function z(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(t,e){return!e||"object"!==L(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}var V={symbolCircle:g,symbolCross:m,symbolDiamond:b,symbolSquare:_,symbolStar:A,symbolTriangle:P,symbolWye:D},G=Math.PI/180,W=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&N(t,e)}(o,t);var e,n,r,i=z(o);function o(){return R(this,o),i.apply(this,arguments)}return e=o,n=[{key:"getPath",value:function(){var t=this.props,e=t.size,n=t.sizeType,r=t.type,i=function(t){var e="symbol".concat(f()(t));return V[e]||g}(r),o=function(t,e){var n=null;function r(){var r;if(n||(n=r=(0,k.Z)()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"===typeof t?t:(0,j.Z)(t||g),e="function"===typeof e?e:(0,j.Z)(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"===typeof e?e:(0,j.Z)(e),r):t},r.size=function(t){return arguments.length?(e="function"===typeof t?t:(0,j.Z)(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}().type(i).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*G;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(e,n,r));return o()}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.cx,r=t.cy,i=t.size;return n===+n&&r===+r&&i===+i?a.default.createElement("path",I({}
1,(0,F.L6)(this.props,!0),{className:c()("recharts-symbols",e),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}],n&&B(e.prototype,n),r&&B(e,r),o}(a.PureComponent);function H(t){return H="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},H(t)}function X(){return X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},X.apply(this,arguments)}function q(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 Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function J(t,e){return J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},J(t,e)}function Q(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=et(t);if(e){var i=et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tt(this,n)}}function tt(t,e){return!e||"object"!==H(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function et(t){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},et(t)}W.defaultProps={type:"circle",size:64,sizeType:"area"},W.registerSymbol=function(t,e){V["symbol".concat(f()(t))]=e};var nt=32,rt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(o,t);var e,n,r,i=Q(o);function o(){return K(this,o),i.apply(this,arguments)}return e=o,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,r=nt/6,i=nt/3,o=t.inactive?e:t.color;if("plainline"===t.type)return a.default.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:nt,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return a.default.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(nt,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return a.default.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(nt,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(a.default.isValidElement(t.legendIcon)){var s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete s.legendIcon,a.default.cloneElement(t.legendIcon,s)}return a.default.createElement(W,{fill:o,cx:n,cy:n,size:nt,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,o=e.formatter,s=e.inactiveColor,u={x:0,y:0,width:nt,height:nt},h={display:"horizontal"===i?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i,d=e.formatter||o,p=c()((Y(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Y(i,"inactive",e.inactive),i));if("none"===e.type)return null;var g=e.inactive?s:e.color;return a.default.createElement("li",X({className:p,style:h,key:"legend-item-".concat(n)},(0,F.bw)(t.props,e,n)),a.default.createElement(l.T,{width:r,height:r,viewBox:u,style:f},t.renderIcon(e)),a.default.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},d?d(e.value,e,n):e.value))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return a.default.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&$(e.prototype,n),r&&$(e,r),o}
1(a.PureComponent);rt.displayName="Legend",rt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var it=n(9055);function ot(t){return ot="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},ot(t)}function st(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 at(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?st(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lt(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,r.key,r)}}function ht(t,e){return ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ht(t,e)}function ft(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pt(t);if(e){var i=pt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==ot(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pt(t)}function gt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function mt(t){return t.value}function yt(t,e){return!0===t?s()(e,mt):i()(t)?s()(e,t):e}var vt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}(s,t);var e,n,r,o=ft(s);function s(){var t;ct(this,s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).wrapperNode=void 0,t.state={boxWidth:-1,boxHeight:-1},t}return e=s,r=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&(0,it.hj)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;return e>=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,s=r.verticalAlign,a=r.margin,u=r.chartWidth,c=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{right:a&&a.right||0}:{left:a&&a.left||0}
1),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===s?{top:((c||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===s?{bottom:a&&a.bottom||0}:{top:a&&a.top||0}),at(at({},e),n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,o=e.height,s=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=at(at({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(s)),s);return a.default.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(a.default.isValidElement(t))return a.default.cloneElement(t,e);if(i()(t))return a.default.createElement(t,e);e.ref;var n=gt(e,["ref"]);return a.default.createElement(rt,n)}(n,at(at({},this.props),{},{payload:yt(u,c)})))}}])&<(e.prototype,n),r&<(e,r),s}(a.PureComponent);vt.displayName="Legend",vt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},9253:function(t,e,n){"use strict";n.d(e,{h:function(){return ut}});var r=n(3279),i=n.n(r),o=n(4184),s=n.n(o),a=n(1720),u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)};function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function l(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}var h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var f=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},d="object"==typeof h&&h&&h.Object===Object&&h,p="object"==typeof self&&self&&self.Object===Object&&self,g=d||p||Function("return this")(),m=g,y=function(){return m.Date.now()},v=/\s/;var b=function(t){for(var e=t.length;e--&&v.test(t.charAt(e)););return e},_=/^\s+/;var w=function(t){return t?t.slice(0,b(t)+1).replace(_,""):t},x=g.Symbol,E=x,A=Object.prototype,S=A.hasOwnProperty,P=A.toString,O=E?E.toStringTag:void 0;var T=function(t){var e=S.call(t,O),n=t[O];try{t[O]=void 0;var r=!0}catch(o){}var i=P.call(t);return r&&(e?t[O]=n:delete t[O]),i},C=Object.prototype.toString;var M=T,D=function(t){return C.call(t)},k=x?x.toStringTag:void 0;var j=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":k&&k in Object(t)?M(t):D(t)},F=function(t){return null!=t&&"object"==typeof t};var L=w,I=f,R=function(t){return"symbol"==typeof t||F(t)&&"[object Symbol]"==j(t)},B=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,z=/^0o[0-7]+$/i,Z=parseInt;var U=f,V=y,G=function(t){if("number"==typeof t)return t;if(R(t))return NaN;if(I(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=I(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=L(t);var n=N.test(t);return n||z.test(t)?Z(t.slice(2),n?2:8):B.test(t)?NaN:+t},W=Math.max,H=Math.min;var X=function(t,e,n){var r,i,o,s,a,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function p(t){return c=t,a=setTimeout(m,e),l?d(t):s}function g(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-c>=o}function m(){var t=V();if(g(t))return y(t);a=setTimeout(m,function(t){var n=e-(t-u);return h?H(n,o-(t-c)):n}(t))}function y(t){return a=void 0,f&&r?d(t):(r=i=void 0,s)}function v(){var t=V(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===a)return p(u);if(h)return clearTimeout(a),a=setTimeout(m,e),d(u)}return void 0===a&&(a=setTimeout(m,e)),s}return e=G(e)||0,U(n)&&(l=!!n.leading,o=(h="maxWait"in n)?W(G(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=u=i=a=void 0},v.flush=function(){return void 0===a?s:y(V())},v},q=X,Y=f;var K=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Y(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),q(t,e,{leading:r,maxWait:e,trailing:i})},$=function(t,e,n,r){switch(e){case"debounce":return X(t,n,r);case"throttle":return K(t,n,r);default:return t}},J=function(t){return"function"===typeof t},Q=function(){return"undefined"===typeof window},tt=function(t){return t instanceof Element||t instanceof HTMLDocument},et=function(t,e,n,r){return function(i){var o=i.width,s=i.height;e((function(e){return e.width===o&&e.height===s||e.width===o&&!r||e.height===s&&!n?e:(t&&J(t)&&t(o,s),{width:o,height:s})}
1))}},nt=function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!Q()){e&&e.current&&(n.targetRef.current=e.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(Q())return null;if(e)return document.querySelector(e);if(r&&tt(r))return r;if(n.targetRef&&tt(n.targetRef.current))return n.targetRef.current;var i=(0,a.findDOMNode)(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,i=void 0===r||r,o=e.handleHeight,s=void 0===o||o,a=e.onResize;if(i||s){var u=et(a,n.setState.bind(n),i,s);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,i=e.height;!n.skipOnMount&&!Q()&&u({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return J(e)?"renderProp":J(r)?"childFunction":(0,a.isValidElement)(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,i=e.refreshMode,o=e.refreshRate,s=void 0===o?1e3:o,u=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=(0,a.createRef)(),n.observableElement=null,Q()||(n.resizeHandler=$(n.createResizeHandler,i,s,u),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return c(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){Q()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,r=e.children,i=e.nodeType,o=void 0===i?"div":i,s=this.state,u={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(u);case"childFunction":return(t=r)(u);case"child":if((t=r).type&&"string"===typeof t.type){var c=l(u,["targetRef"]);return(0,a.cloneElement)(t,c)}return(0,a.cloneElement)(t,u);case"childArray":return(t=r).map((function(t){return!!t&&(0,a.cloneElement)(t,u)}));default:return a.createElement(o,null)}},e}(a.PureComponent);Q()?a.useEffect:a.useLayoutEffect;var rt=n(9055),it=n(6213);function ot(){return ot=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ot.apply(this,arguments)}function st(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ut=(0,a.forwardRef)((function(t,e){var n=t.aspect,r=t.width,o=void 0===r?"100%":r,u=t.height,c=void 0===u?"100%":u,l=t.minWidth,h=t.minHeight,f=t.maxHeight,d=t.children,p=t.debounce,g=void 0===p?0:p,m=t.id,y=t.className,v=st((0,a.useState)({containerWidth:-1,containerHeight:-1}),2),b=v[0],_=v[1],w=(0,a.useRef)(null);(0,a.useImperativeHandle)(e,(function(){return w}),[w]);var x=st((0,a.useState)(!1),2),E=x[0],A=x[1],S=function(){return w.current?{containerWidth:w.current.clientWidth,containerHeight:w.current.clientHeight}:null},P=function(){if(E){var t=S();if(t){var e=b.containerWidth,n=b.containerHeight,r=t.containerWidth,i=t.containerHeight;r===e&&i===n||_({containerWidth:r,containerHeight:i})}}},O=g>0?i()(P,g):P;(0,a.useEffect)((function(){if(E){var t=S();t&&_(t)}}),[E]),(0,a.useEffect)((function(){A(!0)}),[]);var T={width:o,height:c,minWidth:l,minHeight:h,maxHeight:f};return a.default.createElement(nt,{handleWidth:!0,handleHeight:!0,onResize:O,targetRef
1:w},a.default.createElement("div",ot({},null!=m?{id:"".concat(m)}:{},{className:s()("recharts-responsive-container",y),style:T,ref:w}),function(){var t=b.containerWidth,e=b.containerHeight;if(t<0||e<0)return null;(0,it.Z)((0,rt.hU)(o)||(0,rt.hU)(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",o,c),(0,it.Z)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,rt.hU)(o)?t:o,i=(0,rt.hU)(c)?e:c;return n&&n>0&&(r?i=r/n:i&&(r=i*n),f&&i>f&&(i=f)),(0,it.Z)(r>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,i,o,c,l,h,n),(0,a.cloneElement)(d,{width:r,height:i})}()))}))},8169:function(t,e,n){"use strict";n.d(e,{x:function(){return k}});var r=n(4293),i=n.n(r),o=n(1720),s=n(4275),a=n.n(s),u=n(4184),c=n.n(u),l=n(9055),h=n(7523),f=n(9896),d=n(1209);function p(t){return p="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},p(t)}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g.apply(this,arguments)}function m(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(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,r.key,r)}}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==p(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("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)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(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 P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?S(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T=/[ \f\n\r\t\v\u2028\u2029]+/,C=function(t){try{var e=[];return i()(t.children)||(e=t.breakAll?t.children.toString().split(""):t.children.toString().split(T)),{wordsWithComputedWidth:e.map((function(e){return{word:e,width:(0,d.xE)(e,t.style).width}})),spaceWidth:t.breakAll?0:(0,d.xE)("\xa0",t.style).width}}catch(n){return null}},M=function(t){return[{words:i()(t)?[]:t.toString().split(T)}]},D=function(t,e){if((t.width||t.scaleToFit)&&!h.x.isSsr&&e){var n=C(t);return n?function(t,e,n,r,i){var o=(0,l.hj)(t.maxLines),s=t.children,a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,s=e.width,a=t[t.length-1];if(a&&(null==r||i||a.width+s+n<r))a.words.push(o),a.width+=s+n;else{var u={words:[o],width:s};t.push(u)}return t}),[])},u=a(e);if(!o)return u;for(var c,h=function(e){var n=s.slice(0,e),i=C(P(P({},t),{},{children:n+"\u2026"})).wordsWithComputedWidth,o=a(i),u=o.length>t.maxLines||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>r;return[u,o]},f=0,d=s.length-1,p=0;f<=d&&p<=s.length-1;){var g=Math.floor((f+d)/2),m=E(h(g-1),2),y=m[0],v=m[1],b=E(h(g),1)[0];if(y||b||(f=g+1),y&&b&&(d=g-1),!y&&b){c=v;break}p++}return c||u}(t,n.wordsWithComputedWidth,n.spaceWidth,t.width,t.scaleToFit):M(t.children)}return M(t.children)},k=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(s,t);var e,n,r,i=_(s);function s(){var t;y(this,s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={},t}return e=s,r=[{key:"getDerivedStateFromProps",value:function(t,e){if(t.width!==e.prevWidth||t.scaleToFit!==e.prevScaleToFit||t.children!==e.prevChildren||t.style!==e.prevStyle||t.breakAll!==e.prevBreakAll){var n=t.children!==e.prevChildren||t.style!==e.prevStyle||t.breakAll!==e.prevBreakAll;return{prevWidth:t.width,prevScaleToFit:t.scaleToFit,prevChildren:t.children,prevStyle:t.style,wordsByLines:D(t,n)}}return null}}],(n=[{key:"render",value:function(){var t=this.props,e=t.dx,n=t.dy,r=t.textAnchor,i=t.verticalAnchor,s=t.scaleToFit,u=t.angle,h=t.lineHeight,d=t.capHeight,p=t.className,y=t.breakAll,v=m(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),b=this.state.wordsByLines;if(!(0,l.P2)(v.x)||!(0,l.P2)(v.y))return null;var _,w=v.x+((0,l.hj)(e)?e:0),x=v.y+((0,l.hj)(n)?n:0);switch(i){case"start":_=a()("calc(".concat(d,")"));break;case"middle":_=a()("calc(".concat((b.length-1)/2," * -").concat(h," + (").concat(d," / 2))"));break;default:_=a()("calc(".concat(b.length-1," * -").concat(h,")"))}var E=[];if(s){var A=b[0].width,S=this.props.width;E.push("scale(".concat(((0,l.hj)(S)?S/A:1)/A,")"))}return u&&E.push("rotate(".concat(u,", ").concat(w,", ").concat(x,")")),E.length&&(v.transform=E.join(" ")),o.default.createElement("text",g({},(0,f.L6)(v,!0),{x:w,y:x,className:c()("recharts-text",p),textAnchor:r}),b.map((function(t,e){return o.default.createElement("tspan",{x:w,dy:0===e?_:h,key:e},t.words.join(y?"":" "))})))}}])&&v(e.prototype,n),r&&v(e,r),s}(o.Component);k.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"}},4888:function(t,e,n){"use strict";n.d(e,{u:function(){return W}});var r=n(4293),i=n.n(r),o=n(3560),s=n.n(o),a=n(5578),u=n.n(a),c=n(1720),l=n(4524),h=n(4184),f=n.n(h),d=n(9734),p=n.n(d),g=n(1469),m=n.n(g),y=n(9055);function v(t){return v="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},v(t)}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(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 x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(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,r.key,r)}}function P(t,e){return P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},P(t,e)}function O(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C(t);if(e){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T(this,n)}}function T(t,e){return!e||"object"!==v(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}function M(t){return m()(t)&&(0,y.P2)(t[0])&&(0,y.P2)(t[1])?t.join(" ~ "):t}var D=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(s,t);var e,n,r,o=O(s);function s(){return A(this,s),o.apply(this,arguments)}return e=s,(n=[{key:"renderContent",value:function(){var t=this.props,e=t.payload,n=t.separator,r=t.formatter,i=t.itemStyle,o=t.itemSorter;if(e&&e.length){var s=(o?p()(e,o):e).map((function(t,o){if("none"===t.type)return null;var s=x({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},i),a=t.formatter||r||M,u=t.name,l=t.value;if(a){var h=a(l,u,t,o,e);if(Array.isArray(h)){var f=b(h,2);l=f[0],u=f[1]}else l=h}return c.default.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(o),style:s},(0,y.P2)(u)?c.default.createElement("span",{className:"recharts-tooltip-item-name"},u):null,(0,y.P2)(u)?c.default.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,c.default.createElement("span",{className:"recharts-tooltip-item-value"},l),c.default.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return c.default.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},s)}return null}},{key:"render",value:function(){var t=this.props,e=t.wrapperClassName,n=t.contentStyle,r=t.labelClassName,o=t.labelStyle,s=t.label,a=t.labelFormatter,u=t.payload,l=x({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),h=x({margin:0},o),d=!i()(s),p=d?s:"",g=f()("recharts-default-tooltip",e),m=f()("recharts-tooltip-label",r);return d&&a&&void 0!==u&&null!==u&&(p=a(s,u)),c.default.createElement("div",{className:g,style:l},c.default.createElement("p",{className:m,style:h},c.default.isValidElement(p)?p:"".concat(p)),this.renderContent())}}])&&S(e.prototype,n),r&&S(e,r),s}(c.PureComponent);D.displayName="DefaultTooltipContent",D.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var k=n(7523);function j(t){return j="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},j(t)}function F(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 L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?F(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(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,r.key,r)}}function N(t,e){return N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},N(t,e)}function z(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(t,e){return!e||"object"!==j(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}var V="recharts-tooltip-wrapper";function G(t){return t.dataKey}var W=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&N(t,e)}(a,t);var e,n,r,o=z(a);function a(){var t;R(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).state={boxWidth:-1,boxHeight:-1},t.wrapperNode=void 0,t.getTranslate=function(e){var n=e.key,r=e.tooltipDimension,i=e.viewBoxDimension,o=t.props,s=o.allowEscapeViewBox,a=o.coordinate,u=o.offset,c=o.position,l=o.viewBox;if(c&&(0,y.hj)(c[n]))return c[n];var h=a[n]-r-u,f=a[n]+u;return s[n]?f:a[n]+r+u>l[n]+i?Math.max(h,l[n]):Math.max(f,l[n])},t}return e=a,(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,o=this.props,a=o.payload,h=o.isAnimationActive,d=o.animationDuration,p=o.animationEasing,g=o.filterNull,m=function(t,e){return!0===t?u()(e,G):s()(t)?u()(e,t):e}(o.payloadUniqBy,g&&a&&a.length?a.filter((function(t){return!i()(t.value)})):a),v=m&&m.length,b=this.props,_=b.content,w=b.viewBox,x=b.coordinate,E=b.position,A=b.active,S=L({pointerEvents:"none",visibility:A&&v?"visible":"hidden",position:"absolute",top:0,left:0},b.wrapperStyle);if(E&&(0,y.hj)(E.x)&&(0,y.hj)(E.y))e=E.x,n=E.y;else{var P=this.state,O=P.boxWidth,T=P.boxHeight;O>0&&T>0&&x?(e=this.getTranslate({key:"x",tooltipDimension:O,viewBoxDimension:w.width}),n=this.getTranslate({key:"y",tooltipDimension:T,viewBoxDimension:w.height})):S.visibility="hidden"}S=L(L({},(0,l.bO)({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})),S),h&&A&&(S=L(L({},(0,l.bO)({transition:"transform ".concat(d,"ms ").concat(p)})),S));var C=f()(V,(I(t={},"".concat(V,"-right"),(0,y.hj)(e)&&x&&(0,y.hj)(x.x)&&e>=x.x),I(t,"".concat(V,"-left"),(0,y.hj)(e)&&x&&(0,y.hj)(x.x)&&e<x.x),I(t,"".concat(V,"-bottom"),(0,y.hj)(n)&&x&&(0,y.hj)(x.y)&&n>=x.y),I(t,"".concat(V,"-top"),(0,y.hj)(n)&&x&&(0,y.hj)(x.y)&&n<x.y),t));return c.default.createElement("div",{className:C,style:S,ref:function(t){r.wrapperNode=t}},function(t,e){return c.default.isValidElement(t)?c.default.cloneElement(t,e):s()(t)?c.default.createElement(t,e):c.default.createElement(D,e)}(_,L(L({},this.props),{},{payload:m})))}}])&&B(e.prototype,n),r&&B(e,r),a}(c.PureComponent);W.displayName="Tooltip",W.defaultProps={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0}
vendor: 9,749 bytes, line 1
1,coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!k.x.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1}},8710:function(t,e,n){"use strict";n.d(e,{m:function(){return c}});var r=n(1720),i=n(4184),o=n.n(i),s=n(9896);function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){var e=t.children,n=t.className,i=u(t,["children","className"]),c=o()("recharts-layer",n);return r.default.createElement("g",a({className:c},(0,s.L6)(i,!0)),e)}},514:function(t,e,n){"use strict";n.d(e,{T:function(){return c}});var r=n(1720),i=n(4184),o=n.n(i),s=n(9896);function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){var e=t.children,n=t.width,i=t.height,c=t.viewBox,l=t.className,h=t.style,f=u(t,["children","width","height","viewBox","className","style"]),d=c||{width:n,height:i,x:0,y:0},p=o()("recharts-surface",l);return r.default.createElement("svg",a({},(0,s.L6)(f,!0,!0),{className:p,width:n,height:i,style:h,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),version:"1.1"}),e)}},3508:function(t,e,n){"use strict";n.d(e,{H:function(){return tt}});var r=n(1469),i=n.n(r),o=n(1700),s=n.n(o),a=n(3560),u=n.n(a),c=n(1720);function l(){}function h(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function f(t){this._context=t}function d(t){this._context=t}function p(t){this._context=t}function g(t){this._context=t}function m(t){this._context=t}function y(t){return new m(t)}function v(t){return t<0?-1:1}function b(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(v(o)+v(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function _(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function w(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,s-a*n,o,s)}function x(t){this._context=t}function E(t){this._context=new A(t)}function A(t){this._context=t}function S(t){this._context=t}function P(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function O(t,e){this._context=t,this._t=e}f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:h(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:h(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},d.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:h(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:h(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},g.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:w(this,this._t0,_(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,w(this,_(this,n=b(this,t,e)),n);break;default:w(this,this._t0,n=b(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(E.prototype=Object.create(x.prototype)).point=function(t,e){x.prototype.point.call(this,e,t)},A.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=P(t),i=P(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},O.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var T=n(1108),C=n(5742),M=n(6953);function D(t){return t[0]}function k(t){return t[1]}function j(t,e){var n=(0,M.Z)(!0),r=null,i=y,o=null;function s(s){var a,u,c,l=(s=(0,C.Z)(s)).length,h=!1;for(null==r&&(o=i(c=(0,T.Z)())),a=0;a<=l;++a)!(a<l&&n(u=s[a],a,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,a,s),+e(u,a,s));if(c)return o=null,c+""||null}return t="function"===typeof t?t:void 0===t?D:(0,M.Z)(t),e="function"===typeof e?e:void 0===e?k:(0,M.Z)(e),s.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,M.Z)(+e),s):t},s.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,M.Z)(+t),s):e},s.defined=function(t){return arguments.length?(n="function"===typeof t?t:(0,M.Z)(!!t),s):n}
1,s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}function F(t,e,n){var r=null,i=(0,M.Z)(!0),o=null,s=y,a=null;function u(u){var c,l,h,f,d,p=(u=(0,C.Z)(u)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(a=s(d=(0,T.Z)())),c=0;c<=p;++c){if(!(c<p&&i(f=u[c],c,u))===g)if(g=!g)l=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=c-1;h>=l;--h)a.point(m[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(m[c]=+t(f,c,u),y[c]=+e(f,c,u),a.point(r?+r(f,c,u):m[c],n?+n(f,c,u):y[c]))}if(d)return a=null,d+""||null}function c(){return j().defined(i).curve(s).context(o)}return t="function"===typeof t?t:void 0===t?D:(0,M.Z)(+t),e="function"===typeof e?e:void 0===e?(0,M.Z)(0):(0,M.Z)(+e),n="function"===typeof n?n:void 0===n?k:(0,M.Z)(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,M.Z)(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:(0,M.Z)(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:(0,M.Z)(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,M.Z)(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,M.Z)(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,M.Z)(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:(0,M.Z)(!!t),u):i},u.curve=function(t){return arguments.length?(s=t,null!=o&&(a=s(o)),u):s},u.context=function(t){return arguments.length?(null==t?o=a=null:a=s(o=t),u):o},u}var L=n(4184),I=n.n(L),R=n(9896),B=n(9055);function N(t){return N="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},N(t)}function z(){return z=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},z.apply(this,arguments)}function Z(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 U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(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,r.key,r)}}function H(t,e){return H=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},H(t,e)}function X(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Y(t);if(e){var i=Y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==N(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Y(t)}var K={curveBasisClosed:function(t){return new d(t)},curveBasisOpen:function(t){return new p(t)},curveBasis:function(t){return new f(t)},curveLinearClosed:function(t){return new g(t)},curveLinear:y,curveMonotoneX:function(t){return new x(t)},curveMonotoneY:function(t){return new E(t)},curveNatural:function(t){return new S(t)},curveStep:function(t){return new O(t,.5)},curveStepAfter:function(t){return new O(t,1)},curveStepBefore:function(t){return new O(t,0)}},$=function(t){return t.x===+t.x&&t.y===+t.y},J=function(t){return t.x},Q=function(t){return t.y},tt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H(t,e)}(a,t);var e,n,r,o=X(a);function a(){return G(this,a),o.apply(this,arguments)}return e=a,n=[{key:"getPath",value:function(){var t,e=this.props,n=e.type,r=e.points,o=e.baseLine,a=e.layout,c=e.connectNulls,l=function(t,e){if(u()(t))return t;var n="curve".concat(s()(t));return"curveMonotone"===n&&e?K["".concat(n).concat("vertical"===e?"Y":"X")]:K[n]||y}(n,a),h=c?r.filter((function(t){return $(t)})):r;if(i()(o)){var f=c?o.filter((function(t){return $(t)})):o,d=h.map((function(t,e){return U(U({},t),{},{base:f[e]})}));return(t="vertical"===a?F().y(Q).x1(J).x0((function(t){return t.base.x})):F().x(J).y1(Q).y0((function(t){return t.base.y}))).defined($).curve(l),t(d)}return(t="vertical"===a&&(0,B.hj)(o)?F().y(Q).x1(J).x0(o):(0,B.hj)(o)?F().x(J).y1(Q).y0(o):j().x(J).y(Q)).defined($).curve(l),t(h)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.points,r=t.path,i=t.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?this.getPath():r;return c.default.createElement("path",z({},(0,R.L6)(this.props),(0,R.Ym)(this.props),{className:I()("recharts-curve",e),d:o,ref:i}))}}],n&&W(e.prototype,n),r&&W(e,r),a}(c.PureComponent);tt.defaultProps={type:"linear",points:[],connectNulls:!1}},3061:function(t,e,n){"use strict";n.d(e,{o:function(){return g}});var r=n(1720),i=n(4184),o=n.n(i),s=n(9896);function a(t){return a="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},a(t)}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(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,r.key,r)}}
1function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(d,t);var e,n,i,a=f(d);function d(){return c(this,d),a.apply(this,arguments)}return e=d,(n=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,i=t.r,a=t.className,c=o()("recharts-dot",a);return e===+e&&n===+n&&i===+i?r.default.createElement("circle",u({},(0,s.L6)(this.props),(0,s.Ym)(this.props),{className:c,cx:e,cy:n,r:i})):null}}])&&l(e.prototype,n),i&&l(e,i),d}(r.PureComponent)},3481:function(t,e,n){"use strict";n.d(e,{X:function(){return y},A:function(){return v}});var r=n(1720),i=n(4184),o=n.n(i),s=n(4524),a=n(9896);function u(t){return u="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},u(t)}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(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,r.key,r)}}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=function(t,e,n,r,i){var o,s=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(s>0&&i instanceof Array){for(var l=[0,0,0,0],h=0;h<4;h++)l[h]=i[h]>s?s:i[h];o="M".concat(t,",").concat(e+a*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(e)),o+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(t+n,",").concat(e+a*l[1])),o+="L ".concat(t+n,",").concat(e+r-a*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(t+n-u*l[2],",").concat(e+r)),o+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+r-a*l[3])),o+="Z"}else if(s>0&&i===+i&&i>0){var f=Math.min(s,i);o="M ".concat(t,",").concat(e+a*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+u*f,",").concat(e,"\n L ").concat(t+n-u*f,",").concat(e,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+n,",").concat(e+a*f,"\n L ").concat(t+n,",").concat(e+r-a*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+n-u*f,",").concat(e+r,"\n L ").concat(t+u*f,",").concat(e+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t,",").concat(e+r-a*f," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},y=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,s=e.width,a=e.height;if(Math.abs(s)>0&&Math.abs(a)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),l=Math.min(o,o+a),h=Math.max(o,o+a);return n>=u&&n<=c&&r>=l&&r<=h}return!1},v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(p,t);var e,n,i,u=d(p);function p(){var t;l(this,p);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=u.call.apply(u,[this].concat(n))).state={totalLength:-1},t.node=void 0,t}return e=p,(n=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var t=this.node.getTotalLength();t&&this.setState({totalLength:t})}catch(e){}}},{key:"render",value:function(){var t=this,e=this.props,n=e.x,i=e.y,u=e.width,l=e.height,h=e.radius,f=e.className,d=this.state.totalLength,p=this.props,g=p.animationEasing,y=p.animationDuration,v=p.animationBegin,b=p.isAnimationActive,_=p.isUpdateAnimationActive;if(n!==+n||i!==+i||u!==+u||l!==+l||0===u||0===l)return null;var w=o()("recharts-rectangle",f);return _?r.default.createElement(s.ZP,{canBegin:d>0,from:{width:u,height:l,x:n,y:i},to:{width:u,height:l,x:n,y:i},duration:y,animationEasing:g,isActive:_}
1,(function(e){var n=e.width,i=e.height,o=e.x,u=e.y;return r.default.createElement(s.ZP,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:b,easing:g},r.default.createElement("path",c({},(0,a.L6)(t.props,!0),{className:w,d:m(o,u,n,i,h),ref:function(e){t.node=e}})))})):r.default.createElement("path",c({},(0,a.L6)(this.props,!0),{className:w,d:m(n,i,u,l,h)}))}}])&&h(e.prototype,n),i&&h(e,i),p}(r.PureComponent);v.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"}},7187:function(t,e,n){"use strict";n.d(e,{t9:function(){return p},O1:function(){return g},_b:function(){return m},Ky:function(){return v}});var r=n(711),i=n.n(r),o=n(6604),s=n.n(o),a=n(7718),u=n(2017),c=n(9055);function l(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,r.key,r)}}function h(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e,n,r,i){var o=t.width,s=t.height,l=t.layout,h=t.children,p=Object.keys(e),g={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},m=!!(0,u.sP)(h,"Bar");return p.reduce((function(o,s){var u,h,p,y,v,b=e[s],_=b.orientation,w=b.domain,x=b.padding,E=void 0===x?{}:x,A=b.mirror,S=b.reversed,P="".concat(_).concat(A?"Mirror":"");if("number"===b.type&&("gap"===b.padding||"no-gap"===b.padding)){var O=w[1]-w[0],T=1/0,C=b.categoricalDomain.sort();C.forEach((function(t,e){e>0&&(T=Math.min((t||0)-(C[e-1]||0),T))}));var M=T/O,D="vertical"===b.layout?n.height:n.width;if("gap"===b.padding&&(u=M*D/2),"no-gap"===b.padding){var k=(0,c.h1)(t.barCategoryGap,M*D),j=M*D/2;u=j-k-(j-k)/D*k}}h="xAxis"===r?[n.left+(E.left||0)+(u||0),n.left+n.width-(E.right||0)-(u||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(E.bottom||0),n.top+(E.top||0)]:[n.top+(E.top||0)+(u||0),n.top+n.height-(E.bottom||0)-(u||0)]:b.range,S&&(h=[h[1],h[0]]);var F=(0,a.Hq)(b,i,m),L=F.scale,I=F.realScaleType;L.domain(w).range(h),(0,a.zF)(L);var R=(0,a.g$)(L,f(f({},b),{},{realScaleType:I}));"xAxis"===r?(v="top"===_&&!A||"bottom"===_&&A,p=n.left,y=g[P]-v*b.height):"yAxis"===r&&(v="left"===_&&!A||"right"===_&&A,p=g[P]-v*b.width,y=n.top);var B=f(f(f({},b),R),{},{realScaleType:I,x:p,y:y,scale:L,width:"xAxis"===r?n.width:b.width,height:"yAxis"===r?n.height:b.height});return B.bandSize=(0,a.zT)(B,R),b.hide||"xAxis"!==r?b.hide||(g[P]+=(v?-1:1)*B.width):g[P]+=(v?-1:1)*B.height,f(f({},o),{},d({},s,B))}),{})},g=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},m=function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return g({x:e,y:n},{x:r,y:i})},y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=void 0,this.scale=e}var e,n,r;return e=t,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&l(e.prototype,n),r&&l(e,r),t}();y.EPS=1e-4;var v=function(t){var e=Object.keys(t).reduce((function(e,n){return f(f({},e),{},d({},n,y.create(t[n])))}),{});return f(f({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return s()(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:i})}))},isInRange:function(t){return i()(t,(function(t,n){return e[n].isInRange(t)}
1))}})}},7718:function(t,e,n){"use strict";n.d(e,{By:function(){return To},VO:function(){return Eo},zF:function(){return Bo},DO:function(){return Lo},Bu:function(){return No},zT:function(){return Qo},qz:function(){return Oo},pt:function(){return Po},Yj:function(){return Xo},Fy:function(){return Ho},Hv:function(){return Wo},Rf:function(){return jo},gF:function(){return xo},s6:function(){return Do},EB:function(){return Yo},zp:function(){return So},fk:function(){return Ao},wh:function(){return Vo},O3:function(){return qo},uY:function(){return Fo},g$:function(){return Go},Qo:function(){return es},F$:function(){return wo},NA:function(){return ko},ko:function(){return ts},ZI:function(){return Mo},Hq:function(){return Io},LG:function(){return Jo},Vv:function(){return zo}});var r={};n.r(r),n.d(r,{scaleBand:function(){return tt.Z},scaleDiverging:function(){return to},scaleDivergingLog:function(){return eo},scaleDivergingPow:function(){return ro},scaleDivergingSqrt:function(){return io},scaleDivergingSymlog:function(){return no},scaleIdentity:function(){return Le},scaleImplicit:function(){return Ye.O},scaleLinear:function(){return Fe},scaleLog:function(){return Ge},scaleOrdinal:function(){return Ye.Z},scalePoint:function(){return tt.x},scalePow:function(){return tn},scaleQuantile:function(){return fn},scaleQuantize:function(){return dn},scaleRadial:function(){return on},scaleSequential:function(){return Hi},scaleSequentialLog:function(){return Xi},scaleSequentialPow:function(){return Yi},scaleSequentialQuantile:function(){return $i},scaleSequentialSqrt:function(){return Ki},scaleSequentialSymlog:function(){return qi},scaleSqrt:function(){return en},scaleSymlog:function(){return qe},scaleThreshold:function(){return pn},scaleTime:function(){return Ui},scaleUtc:function(){return Vi},tickFormat:function(){return ke}});var i=n(8446),o=n.n(i),s=n(9734),a=n.n(s),u=n(7654),c=n.n(u),l=n(1700),h=n.n(l),f=n(7037),d=n.n(f),p=n(1469),g=n.n(p),m=n(6162),y=n.n(m),v=n(3632),b=n.n(v),_=n(4654),w=n.n(_),x=n(3560),E=n.n(x),A=n(7361),S=n.n(A),P=n(4293),O=n.n(P),T=n(9887),C=n.n(T);function M(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var k=function(t){return t},j={"@@functional/placeholder":!0},F=function(t){return t===j},L=function(t){return function e(){return 0===arguments.length||1===arguments.length&&F(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},I=function t(e,n){return 1===e?n:L((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter((function(t){return t!==j})).length;return s>=e?n.apply(void 0,i):t(e-s,L((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=i.map((function(t){return F(t)?e.shift():t}));return n.apply(void 0,M(o).concat(e))})))}))},R=function(t){return I(t.length,t)},B=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},N=R((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),z=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return k;var r=e.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},Z=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},U=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every((function(t,n){return t===e[n]}))?n:(e=i,n=t.apply(void 0,i))}};var V={rangeStep:function(t,e,n){for(var r=new(C())(t),i=0,o=[];r.lt(e)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new(C())(t).abs().log(10).toNumber())+1},interpolateNumber:R((function(t,e,n){var r=+t;return r+n*(+e-r)})),uninterpolateNumber:R((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),uninterpolateTruncation:R((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}))};function G(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||H(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||H(t,e)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){if(t){if("string"===typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,e):void 0}}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function q(t){var e=W(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Y(t,e,n){if(t.lte(0))return new(C())(0);var r=V.getDigitCount(t.toNumber()),i=new(C())(10).pow(r),o=t.div(i),s=1!==r?.05:.1,a=new(C())(Math.ceil(o.div(s).toNumber())).add(n).mul(s).mul(i);return e?a:new(C())(Math.ceil(a))}function K(t,e,n){var r=1,i=new(C())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(C())(10).pow(V.getDigitCount(t)-1),i=new(C())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(C())(Math.floor(t)))}else 0===t?i=new(C())(Math.floor((e-1)/2)):n||(i=new(C())(Math.floor(t)));var s=Math.floor((e-1)/2);return z(N((function(t){return i.add(new(C())(t-s).mul(r)).toNumber()})),B)(0,e)}function $(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(C())(0),tickMin:new(C())(0),tickMax:new(C())(0)};var o,s=Y(new(C())(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new(C())(0):(o=new(C())(t).add(e).div(2)).sub(new(C())(o).mod(s));var a=Math.ceil(o.sub(t).div(s).toNumber()),u=Math.ceil(new(C())(e).sub(o).div(s).toNumber()),c=a+u+1;return c>n?$(t,e,n,r,i+1):(c<n&&(u=e>0?u+(n-c):u,a=e>0?a:a+(n-c)),{step:s,tickMin:o.sub(new(C())(a).mul(s)),tickMax:o.add(new(C())(u).mul(s))})}var J=U((function(t){var e=W(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(i,2),a=q([n,r]),u=W(a,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var h=l===1/0?[c].concat(G(B(0,i-1).map((function(){return 1/0})))):[].concat(G(B(0,i-1).map((function(){return-1/0}))),[l]);return n>r?Z(h):h}if(c===l)return K(c,i,o);var f=$(c,l,s,o),d=f.step,p=f.tickMin,g=f.tickMax,m=V.rangeStep(p,g.add(new(C())(.1).mul(d)),d);return n>r?Z(m):m})),Q=(U((function(t){var e=W(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(i,2),a=q([n,r]),u=W(a,2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,r];if(c===l)return K(c,i,o);var h=Y(new(C())(l).sub(c).div(s-1),o,0),f=z(N((function(t){return new(C())(c).add(new(C())(t).mul(h)).toNumber()})),B),d=f(0,s).filter((function(t){return t>=c&&t<=l}));return n>r?Z(d):d})),U((function(t,e){var n=W(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=q([r,i]),a=W(s,2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[r,i];if(u===c)return[u];var l=Math.max(e,2),h=Y(new(C())(c).sub(u).div(l-1),o,0),f=[].concat(G(V.rangeStep(new(C())(u),new(C())(c).sub(new(C())(.99).mul(h)),h)),[c]);return r>i?Z(f):f}))),tt=n(8844),et=Math.sqrt(50),nt=Math.sqrt(10),rt=Math.sqrt(2);function it(t,e,n){var r,i,o,s,a=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(s=ot(t,e,n))||!isFinite(s))return[];if(s>0){let n=Math.round(t/s),r=Math.round(e/s);for(n*s<t&&++n,r*s>e&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)*s}else{s=-s;let n=Math.round(t*s),r=Math.round(e*s);for(n/s<t&&++n,r/s>e&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)/s}return r&&o.reverse(),o}function ot(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=et?10:o>=nt?5:o>=rt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=et?10:o>=nt?5:o>=rt?2:1)}function st(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=et?i*=10:o>=nt?i*=5:o>=rt&&(i*=2),e<t?-i:i}function at(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ut(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>at(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const s=r(t,n,i,o-1);return s>i&&e(t[s-1],n)>-e(t[s],n)?s-1:s},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}function ct(t){return null===t?NaN:+t}const lt=ut(at),ht=lt.right;lt.left,ut(ct).center;var ft=ht;function dt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function pt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function gt(){}var mt=.7,yt=1/mt,vt="\\s*([+-]?\\d+)\\s*",bt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wt=/^#([0-9a-f]{3,8}
vendor: 3,217 bytes, line 1
1)$/,xt=new RegExp("^rgb\\("+[vt,vt,vt]+"\\)$"),Et=new RegExp("^rgb\\("+[_t,_t,_t]+"\\)$"),At=new RegExp("^rgba\\("+[vt,vt,vt,bt]+"\\)$"),St=new RegExp("^rgba\\("+[_t,_t,_t,bt]+"\\)$"),Pt=new RegExp("^hsl\\("+[bt,_t,_t]+"\\)$"),Ot=new RegExp("^hsla\\("+[bt,_t,_t,bt]+"\\)$"),Tt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ct(){return this.rgb().formatHex()}function Mt(){return this.rgb().formatRgb()}function Dt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=wt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?kt(e):3===n?new It(e>>8&15|e>>4&240,e>>
vendor: 7,929 bytes, line 1
14&15|240&e,(15&e)<<4|15&e,1):8===n?jt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?jt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=xt.exec(t))?new It(e[1],e[2],e[3],1):(e=Et.exec(t))?new It(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=At.exec(t))?jt(e[1],e[2],e[3],e[4]):(e=St.exec(t))?jt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Pt.exec(t))?zt(e[1],e[2]/100,e[3]/100,1):(e=Ot.exec(t))?zt(e[1],e[2]/100,e[3]/100,e[4]):Tt.hasOwnProperty(t)?kt(Tt[t]):"transparent"===t?new It(NaN,NaN,NaN,0):null}function kt(t){return new It(t>>16&255,t>>8&255,255&t,1)}function jt(t,e,n,r){return r<=0&&(t=e=n=NaN),new It(t,e,n,r)}function Ft(t){return t instanceof gt||(t=Dt(t)),t?new It((t=t.rgb()).r,t.g,t.b,t.opacity):new It}function Lt(t,e,n,r){return 1===arguments.length?Ft(t):new It(t,e,n,null==r?1:r)}function It(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Rt(){return"#"+Nt(this.r)+Nt(this.g)+Nt(this.b)}function Bt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Nt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function zt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ut(t,e,n,r)}function Zt(t){if(t instanceof Ut)return new Ut(t.h,t.s,t.l,t.opacity);if(t instanceof gt||(t=Dt(t)),!t)return new Ut;if(t instanceof Ut)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=u<.5?o+i:2-o-i,s*=60):a=u>0&&u<1?0:s,new Ut(s,a,u,t.opacity)}function Ut(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Vt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Gt(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}dt(gt,Dt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ct,formatHex:Ct,formatHsl:function(){return Zt(this).formatHsl()},formatRgb:Mt,toString:Mt}),dt(It,Lt,pt(gt,{brighter:function(t){return t=null==t?yt:Math.pow(yt,t),new It(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?mt:Math.pow(mt,t),new It(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rt,formatHex:Rt,formatRgb:Bt,toString:Bt})),dt(Ut,(function(t,e,n,r){return 1===arguments.length?Zt(t):new Ut(t,e,n,null==r?1:r)}),pt(gt,{brighter:function(t){return t=null==t?yt:Math.pow(yt,t),new Ut(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?mt:Math.pow(mt,t),new Ut(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new It(Vt(t>=240?t-240:t+120,i,r),Vt(t,i,r),Vt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Wt=t=>()=>t;function Ht(t,e){return function(n){return t+n*e}}function Xt(t){return 1===(t=+t)?qt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Wt(isNaN(e)?n:e)}}function qt(t,e){var n=e-t;return n?Ht(t,n):Wt(isNaN(t)?e:t)}var Yt=function t(e){var n=Xt(e);function r(t,e){var r=n((t=Lt(t)).r,(e=Lt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=qt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function Kt(t){return function(e){var n,r,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Lt(e[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=t(o),s=t(s),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=a(t),r+""}}}Kt((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return Gt((n-r/e)*e,s,i,o,a)}})),Kt((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],a=t[(r+2)%e];return Gt((n-r/e)*e,i,o,s,a)}}));function $t(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=oe(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<i;++n)s[n]=o[n](t);return s}}function Jt(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Qt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function te(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=oe(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var ee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ne=new RegExp(ee.source,"g");function re(t,e){var n,r,i,o=ee.lastIndex=ne.lastIndex=0,s=-1,a=[],u=[];for(t+="",e+="";(n=ee.exec(t))&&(r=ne.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:Qt(n,r)})),o=ne.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)a[(n=u[r]).i]=n.x(t);return a.join("")})}function ie(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function oe(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?Wt(e):("number"===i?Qt:"string"===i?(n=Dt(e))?(e=n,Yt):re:e instanceof Dt?Yt:e instanceof Date?Jt:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?$t:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?te:Qt:ie))(t,e)}function se(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ae(t){return+t}var ue=[0,1];function ce(t){return t}function le(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function he(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=le(i,r),o=n(s,o)):(r=le(r,i),o=n(o,s)),function(t){return o(r(t))}}function fe(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=le(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=ft(t,e,1,r)-1;return o[n](i[n](e))}}function de(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function pe(){var t,e,n,r,i,o,s=ue,a=ue,u=oe,c=ce;function l(){var t=Math.min(s.length,a.length);return c!==ce&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),r=t>2?fe:he,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(s.map(t),a,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(a,s.map(t),Qt)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,ae),l()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),l()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),u=se,l()},h.clamp=function(t){return arguments.length?(c=!!t||ce,l()):c!==ce},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n}
vendor: 4,717 bytes, line 1
1,function(n,r){return t=n,e=r,l()}}function ge(){return pe()(ce,ce)}var me,ye=n(8348),ve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function be(t){if(!(e=ve.exec(t)))throw new Error("invalid format: "+t);var e;return new _e({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function _e(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function we(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function xe(t){return(t=we(Math.abs(t)))?t[1]:NaN}function Ee(t,e){var n=we(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}be.prototype=_e.prototype,_e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ae={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ee(100*t,e),r:Ee,s:function(t,e){var n=we(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(me=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+we(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Se(t){return t}var Pe,Oe,Te,Ce=Array.prototype.map,Me=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function De(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Se:(e=Ce.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=e[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(t.substring(i-=a,i+a)),!((u+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Se:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ce.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=be(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Ae[v]||(void 0===m&&(m=12),y=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===f?o:/[%p]/.test(v)?u:"",w=Ae[v],x=/[defgprs%]/.test(v);function E(t){var i,o,u,f=b,E=_;if("c"===v)E=w(t)+E,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0===+t&&"+"!==h&&(A=!1),f=(A?"("===h?h:c:"-"===h||"("===h?"":h)+f,E=("s"===v?Me[8+me/3]:"")+E+(A&&"("===h?")":""),x)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){E=(46===u?s+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var S=f.length+t.length+E.length,P=S<p?new Array(p-S+1).join(e):"";switch(g&&d&&(t=r(P+t,P.length?p-E.length:1/0),P=""),n){case"<":t=f+t+E+P;break;case"=":t=f+P+t+E;break;case"^":t=P.slice(0,S=P.length>>1)+f+t+E+P.slice(S);break;default:t=P+f+t+E}return a(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),E.toString=function(){return t+""},E}return{format:h,formatPrefix:function(t,e){var n=h(((t=be(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(xe(e)/3))),i=Math.pow(10,-r),o=Me[8+r/3];return function(t){return n(i*t)+o}}}}function ke(t,e,n,r){var i,o=st(t,e,n);switch((r=be(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xe(e)/3)))-xe(Math.abs(t)))}
vendor: 2,020 bytes, line 1
1(o,s))||(r.precision=i),Te(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,xe(e)-xe(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-xe(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Oe(r)}function je(t){var e=t.domain;return t.ticks=function(t){var n=e();return it(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ke(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,a=o.length-1,u=o[s],c=o[a],l=10;for(c<u&&(i=u,u=c,c=i,i=s,s=a,a=i);l-- >0;){if((i=ot(u,c,n))===r)return o[s]=u,o[a]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Fe(){var t=ge();return t.copy=function(){return de(t,Fe())},ye.o.apply(t,arguments),je(t)}function Le(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,ae),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Le(t).unknown(e)},t=arguments.length?Array.from(t,ae):[0,1],je(n)}function Ie(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],s=t[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),t[r]=e.floor(o),t[i]=e.ceil(s),t}function Re(t){return Math.log(t)}function Be(t){return Math.exp(t)}function Ne(t){return-Math.log(-t)}function ze(t){return-Math.exp(-t)}function Ze(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ue(t){return function(e){return-t(-e)}}function Ve(t){var e,n,r=t(Re,Be),i=r.domain,o=10;function s(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(o),n=function(t){return 10===t?Ze:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(o),i()[0]<0?(e=Ue(e),n=Ue(n),t(Ne,ze)):t(Re,Be),r}
vendor: 6,089 bytes, line 1
1return r.base=function(t){return arguments.length?(o=+t,s()):o},r.domain=function(t){return arguments.length?(i(t),s()):i()},r.ticks=function(t){var r,s=i(),a=s[0],u=s[s.length-1];(r=u<a)&&(f=a,a=u,u=f);var c,l,h,f=e(a),d=e(u),p=null==t?10:+t,g=[];if(!(o%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1,c=n(f);l<o;++l)if(!((h=c*l)<a)){if(h>u)break;g.push(h)}}else for(;f<=d;++f)for(l=o-1,c=n(f);l>=1;--l)if(!((h=c*l)<a)){if(h>u)break;g.push(h)}2*g.length<p&&(g=it(a,u,p))}else g=it(f,d,Math.min(d-f,p)).map(n);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Oe(i)),t===1/0)return i;null==t&&(t=10);var s=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=s?i(t):""}},r.nice=function(){return i(Ie(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Ge(){var t=Ve(pe()).domain([1,10]);return t.copy=function(){return de(t,Ge()).base(t.base())},ye.o.apply(t,arguments),t}function We(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function He(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Xe(t){var e=1,n=t(We(e),He(e));return n.constant=function(n){return arguments.length?t(We(e=+n),He(e)):e},je(n)}function qe(){var t=Xe(pe());return t.copy=function(){return de(t,qe()).constant(t.constant())},ye.o.apply(t,arguments)}Pe=De({thousands:",",grouping:[3],currency:["$",""]}),Oe=Pe.format,Te=Pe.formatPrefix;var Ye=n(7603);function Ke(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function $e(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Je(t){return t<0?-t*t:t*t}function Qe(t){var e=t(ce,ce),n=1;function r(){return 1===n?t(ce,ce):.5===n?t($e,Je):t(Ke(n),Ke(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},je(e)}function tn(){var t=Qe(pe());return t.copy=function(){return de(t,tn()).exponent(t.exponent())},ye.o.apply(t,arguments),t}function en(){return tn.apply(null,arguments).exponent(.5)}function nn(t){return Math.sign(t)*t*t}function rn(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function on(){var t,e=ge(),n=[0,1],r=!1;function i(n){var i=rn(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(nn(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,ae)).map(nn)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return on(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},ye.o.apply(i,arguments),je(i)}function sn(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function an(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function un(t,e,n=0,r=t.length-1,i=at){for(;r>n;){if(r-n>600){const o=r-n+1,s=e-n+1,a=Math.log(o),u=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*u*(o-u)/o)*(s-o/2<0?-1:1);un(t,e,Math.max(n,Math.floor(e-s*u/o+c)),Math.min(r,Math.floor(e+(o-s)*u/o+c)),i)}const o=t[e];let s=n,a=r;for(cn(t,n,e),i(t[r],o)>0&&cn(t,n,r);s<a;){for(cn(t,s,a),++s,--a;i(t[s],o)<0;)++s;for(;i(t[a],o)>0;)--a}0===i(t[n],o)?cn(t,n,a):(++a,cn(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function cn(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function ln(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return an(t);if(e>=1)return sn(t);var r,i=(r-1)*e,o=Math.floor(i),s=sn(un(t,o).subarray(0,o+1));return s+(an(t.subarray(o+1))-s)*(i-o)}}function hn(t,e,n=ct){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(i-o)}}function fn(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=hn(e,t/i);return o}function o(e){return null==e||isNaN(e=+e)?t:n[ft(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(at),i()},o.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return fn().domain(e).range(n).unknown(t)},ye.o.apply(o,arguments)}function dn(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function s(e){return null!=e&&e<=e?o[ft(i,e,0,r)]:t}function a(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return s}return s.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,a()):[e,n]},s.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,a()):o.slice()},s.invertExtent=function(t){var s=o.indexOf(t);return s<0?[NaN,NaN]:s<1?[e,i[0]]:s>=r?[i[r-1],n]:[i[s-1],i[s]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return dn().domain([e,n]).range(o).unknown(t)},ye.o.apply(je(s),arguments)}function pn(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[ft(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t}
1,i.copy=function(){return pn().domain(e).range(n).unknown(t)},ye.o.apply(i,arguments)}const gn=1e3,mn=6e4,yn=36e5,vn=864e5,bn=6048e5,_n=2592e6,wn=31536e6;var xn=new Date,En=new Date;function An(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s<n&&n<r);return a},i.filter=function(n){return An((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return xn.setTime(+e),En.setTime(+r),t(xn),t(En),Math.floor(n(xn,En))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var Sn=An((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Sn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?An((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Sn:null};var Pn=Sn,On=(Sn.range,An((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*gn)}),(function(t,e){return(e-t)/gn}),(function(t){return t.getUTCSeconds()}))),Tn=On,Cn=(On.range,An((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*gn)}),(function(t,e){t.setTime(+t+e*mn)}),(function(t,e){return(e-t)/mn}),(function(t){return t.getMinutes()}))),Mn=Cn,Dn=(Cn.range,An((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*gn-t.getMinutes()*mn)}),(function(t,e){t.setTime(+t+e*yn)}),(function(t,e){return(e-t)/yn}),(function(t){return t.getHours()}))),kn=Dn,jn=(Dn.range,An((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mn)/vn),(t=>t.getDate()-1))),Fn=jn;jn.range;function Ln(t){return An((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mn)/bn}))}var In=Ln(0),Rn=Ln(1),Bn=Ln(2),Nn=Ln(3),zn=Ln(4),Zn=Ln(5),Un=Ln(6),Vn=(In.range,Rn.range,Bn.range,Nn.range,zn.range,Zn.range,Un.range,An((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Gn=Vn,Wn=(Vn.range,An((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Wn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Hn=Wn,Xn=(Wn.range,An((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*mn)}),(function(t,e){return(e-t)/mn}),(function(t){return t.getUTCMinutes()}))),qn=Xn,Yn=(Xn.range,An((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*yn)}),(function(t,e){return(e-t)/yn}),(function(t){return t.getUTCHours()}))),Kn=Yn,$n=(Yn.range,An((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/vn}),(function(t){return t.getUTCDate()-1}))),Jn=$n;$n.range;function Qn(t){return An((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/bn}))}var tr=Qn(0),er=Qn(1),nr=Qn(2),rr=Qn(3),ir=Qn(4),or=Qn(5),sr=Qn(6),ar=(tr.range,er.range,nr.range,rr.range,ir.range,or.range,sr.range,An((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),ur=ar,cr=(ar.range,An((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));cr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var lr=cr;cr.range;function hr(t,e,n,r,i,o){const s=[[Tn,1,gn],[Tn,5,5e3],[Tn,15,15e3],[Tn,30,3e4],[o,1,mn],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,yn],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,vn],[r,2,1728e5],[n,1,bn],[e,1,_n],[e,3,7776e6],[t,1,wn]];function a(e,n,r){const i=Math.abs(n-e)/r,o=ut((([,,t])=>t)).right(s,i);if(o===s.length)return t.every(st(e/wn,n/wn,r));if(0===o)return Pn.every(Math.max(st(e,n,r),1));const[a,u]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:a(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},a]}const[fr,dr]=hr(lr,ur,tr,Jn,Kn,qn),[pr,gr]=hr(Hn,Gn,In,Fn,kn,Mn);function mr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function yr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function vr(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var br,_r,wr,xr={"-":"",_:" ",0:"0"},Er=/^\s*\d+/,Ar=/^%/,Sr=/[\\^$*+?|[\]().{}]/g;function Pr(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Or(t){return t.replace(Sr,"\\$&")}function Tr(t){return new RegExp("^(?:"+t.map(Or).join("|")+")","i")}function Cr(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Mr(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function kr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function jr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=Er.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}
vendor: 5,807 bytes, line 1
1function Rr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Br(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Nr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function zr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=Er.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Gr(t,e,n){var r=Er.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=Er.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=Er.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xr(t,e,n){var r=Ar.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function qr(t,e,n){var r=Er.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=Er.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Kr(t,e){return Pr(t.getDate(),e,2)}function $r(t,e){return Pr(t.getHours(),e,2)}function Jr(t,e){return Pr(t.getHours()%12||12,e,2)}function Qr(t,e){return Pr(1+Fn.count(Hn(t),t),e,3)}function ti(t,e){return Pr(t.getMilliseconds(),e,3)}function ei(t,e){return ti(t,e)+"000"}function ni(t,e){return Pr(t.getMonth()+1,e,2)}function ri(t,e){return Pr(t.getMinutes(),e,2)}function ii(t,e){return Pr(t.getSeconds(),e,2)}function oi(t){var e=t.getDay();return 0===e?7:e}function si(t,e){return Pr(In.count(Hn(t)-1,t),e,2)}function ai(t){var e=t.getDay();return e>=4||0===e?zn(t):zn.ceil(t)}function ui(t,e){return t=ai(t),Pr(zn.count(Hn(t),t)+(4===Hn(t).getDay()),e,2)}function ci(t){return t.getDay()}function li(t,e){return Pr(Rn.count(Hn(t)-1,t),e,2)}function hi(t,e){return Pr(t.getFullYear()%100,e,2)}function fi(t,e){return Pr((t=ai(t)).getFullYear()%100,e,2)}function di(t,e){return Pr(t.getFullYear()%1e4,e,4)}function pi(t,e){var n=t.getDay();return Pr((t=n>=4||0===n?zn(t):zn.ceil(t)).getFullYear()%1e4,e,4)}function gi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Pr(e/60|0,"0",2)+Pr(e%60,"0",2)}function mi(t,e){return Pr(t.getUTCDate(),e,2)}function yi(t,e){return Pr(t.getUTCHours(),e,2)}function vi(t,e){return Pr(t.getUTCHours()%12||12,e,2)}function bi(t,e){return Pr(1+Jn.count(lr(t),t),e,3)}function _i(t,e){return Pr(t.getUTCMilliseconds(),e,3)}function wi(t,e){return _i(t,e)+"000"}function xi(t,e){return Pr(t.getUTCMonth()+1,e,2)}function Ei(t,e){return Pr(t.getUTCMinutes(),e,2)}function Ai(t,e){return Pr(t.getUTCSeconds(),e,2)}function Si(t){var e=t.getUTCDay();return 0===e?7:e}function Pi(t,e){return Pr(tr.count(lr(t)-1,t),e,2)}function Oi(t){var e=t.getUTCDay();return e>=4||0===e?ir(t):ir.ceil(t)}function Ti(t,e){return t=Oi(t),Pr(ir.count(lr(t),t)+(4===lr(t).getUTCDay()),e,2)}function Ci(t){return t.getUTCDay()}function Mi(t,e){return Pr(er.count(lr(t)-1,t),e,2)}function Di(t,e){return Pr(t.getUTCFullYear()%100,e,2)}function ki(t,e){return Pr((t=Oi(t)).getUTCFullYear()%100,e,2)}function ji(t,e){return Pr(t.getUTCFullYear()%1e4,e,4)}function Fi(t,e){var n=t.getUTCDay();return Pr((t=n>=4||0===n?ir(t):ir.ceil(t)).getUTCFullYear()%1e4,e,4)}function Li(){return"+0000"}function Ii(){return"%"}function Ri(t){return+t}function Bi(t){return Math.floor(+t/1e3)}function Ni(t){return new Date(t)}function zi(t){return t instanceof Date?+t:+new Date(+t)}function Zi(t,e,n,r,i,o,s,a,u,c){var l=ge(),h=l.invert,f=l.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),v=c("%b %d"),b=c("%B"),_=c("%Y");function w(t){return(u(t)<t?d:a(t)<t?p:s(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?y:v:n(t)<t?b:_)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,zi)):f().map(Ni)},l.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?w:c(e)},l.nice=function(t){var n=f();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Ie(n,t)):l},l.copy=function(){return de(l,Zi(t,e,n,r,i,o,s,a,u,c))},l}function Ui(){return ye.o.apply(Zi(pr,gr,Hn,Gn,In,Fn,kn,Mn,Tn,_r).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vi(){return ye.o.apply(Zi(fr,dr,lr,ur,tr,Jn,Kn,qn,Tn,wr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gi(){var t,e,n,r,i,o=0,s=1,a=ce,u=!1;function c(e){return null==e||isNaN(e=+e)?i:a(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var n,r;return arguments.length?([n,r]=e,a=t(n,r),c):[a(0),a(1)]}}return c.domain=function(i){return arguments.length?([o,s]=i,t=r(o=+o),e=r(s=+s),n=t===e?0:1/(e-t),c):[o,s]},c.clamp=function(t){return arguments.length?(u=!!t,c):u},c.interpolator=function(t){return arguments.length?(a=t,c):a},c.range=l(oe),c.rangeRound=l(se),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),e=i(s),n=t===e?0:1/(e-t),c}}function Wi(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Hi(){var t=je(Gi()(ce));return t.copy=function(){return Wi(t,Hi())},ye.O.apply(t,arguments)}function Xi(){var t=Ve(Gi()).domain([1,10]);return t.copy=function(){return Wi(t,Xi()).base(t.base())},ye.O.apply(t,arguments)}function qi(){var t=Xe(Gi());return t.copy=function(){return Wi(t,qi()).constant(t.constant())},ye.O.apply(t,arguments)}function Yi(){var t=Qe(Gi());return t.copy=function(){return Wi(t,Yi()).exponent(t.exponent())},ye.O.apply(t,arguments)}function Ki(){return Yi.apply(null,arguments).exponent(.5)}function $i(){var t=[],e=ce;
vendor: 4,424 bytes, line 1
1function n(n){if(null!=n&&!isNaN(n=+n))return e((ft(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(at),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>ln(t,r/e)))},n.copy=function(){return $i(e).domain(t)},ye.O.apply(n,arguments)}function Ji(t,e){void 0===e&&(e=t,t=oe);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function Qi(){var t,e,n,r,i,o,s,a=0,u=.5,c=1,l=1,h=ce,f=!1;function d(t){return isNaN(t=+t)?s:(t=.5+((t=+o(t))-e)*(l*t<l*e?r:i),h(f?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,h=Ji(t,[n,r,i]),d):[h(0),h(.5),h(1)]}}return d.domain=function(s){return arguments.length?([a,u,c]=s,t=o(a=+a),e=o(u=+u),n=o(c=+c),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),l=e<t?-1:1,d):[a,u,c]},d.clamp=function(t){return arguments.length?(f=!!t,d):f},d.interpolator=function(t){return arguments.length?(h=t,d):h},d.range=p(oe),d.rangeRound=p(se),d.unknown=function(t){return arguments.length?(s=t,d):s},function(s){return o=s,t=s(a),e=s(u),n=s(c),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),l=e<t?-1:1,d}}function to(){var t=je(Qi()(ce));return t.copy=function(){return Wi(t,to())},ye.O.apply(t,arguments)}function eo(){var t=Ve(Qi()).domain([.1,1,10]);return t.copy=function(){return Wi(t,eo()).base(t.base())},ye.O.apply(t,arguments)}function no(){var t=Xe(Qi());return t.copy=function(){return Wi(t,no()).constant(t.constant())},ye.O.apply(t,arguments)}function ro(){var t=Qe(Qi());return t.copy=function(){return Wi(t,ro()).exponent(t.exponent())},ye.O.apply(t,arguments)}function io(){return ro.apply(null,arguments).exponent(.5)}function oo(t,e){if((i=t.length)>1)for(var n,r,i,o=1,s=t[e[0]],a=s.length;o<i;++o)for(r=s,s=t[e[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}!function(t){br=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,u=t.shortMonths,c=Tr(i),l=Cr(i),h=Tr(o),f=Cr(o),d=Tr(s),p=Cr(s),g=Tr(a),m=Cr(a),y=Tr(u),v=Cr(u),b={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Kr,e:Kr,f:ei,g:fi,G:pi,H:$r,I:Jr,j:Qr,L:ti,m:ni,M:ri,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ri,s:Bi,S:ii,u:oi,U:si,V:ui,w:ci,W:li,x:null,X:null,y:hi,Y:di,Z:gi,"%":Ii},_={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:mi,e:mi,f:wi,g:ki,G:Fi,H:yi,I:vi,j:bi,L:_i,m:xi,M:Ei,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ri,s:Bi,S:Ai,u:Si,U:Pi,V:Ti,w:Ci,W:Mi,x:null,X:null,y:Di,Y:ji,Z:Li,"%":Ii},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return A(t,e,n,r)},d:zr,e:zr,f:Hr,g:Ir,G:Lr,H:Ur,I:Ur,j:Zr,L:Wr,m:Nr,M:Vr,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:Br,Q:qr,s:Yr,S:Gr,u:Dr,U:kr,V:jr,w:Mr,W:Fr,x:function(t,e,r){return A(t,n,e,r)},X:function(t,e,n){return A(t,r,e,n)},y:Ir,Y:Lr,Z:Rr,"%":Xr};function x(t,e){return function(n){var r,i,o,s=[],a=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(s.push(t.slice(u,a)),null!=(i=xr[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),s.push(r),u=a+1);return s.push(t.slice(u,a)),s.join("")}}function E(t,e){return function(n){var r,i,o=vr(1900,void 0,1);if(A(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){
1if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=yr(vr(o.y,0,1))).getUTCDay(),r=i>4||0===i?er.ceil(r):er(r),r=Jn.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=mr(vr(o.y,0,1))).getDay(),r=i>4||0===i?Rn.ceil(r):Rn(r),r=Fn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?yr(vr(o.y,0,1)).getUTCDay():mr(vr(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,yr(o)):mr(o)}}function A(t,e,n,r){for(var i,o,s=0,a=e.length,u=n.length;s<a;){if(r>=u)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=w[i in xr?e.charAt(s++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),_.x=x(n,_),_.X=x(r,_),_.c=x(e,_),{format:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}(t),_r=br.format,br.parse,wr=br.utcFormat,br.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var so=n(5742),ao=n(6953);function uo(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function co(t,e){return t[e]}function lo(t){const e=[];return e.key=t,e}var ho=n(9055),fo=n(4141),po=n(2017),go=n(9896);function mo(t){return function(t){if(Array.isArray(t))return yo(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return yo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yo(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vo(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 bo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vo(Object(n),!0).forEach((function(e){_o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wo(t,e,n){return O()(t)||O()(e)?n:(0,ho.P2)(e)?S()(t,e,n):E()(e)?e(t):n}function xo(t,e,n,r){var i=w()(t,(function(t){return wo(t,e)}));if("number"===n){var o=i.filter((function(t){return(0,ho.hj)(t)||parseFloat(t)}));return o.length?[b()(o),y()(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!O()(t)})):i).map((function(t){return(0,ho.P2)(t)||t instanceof Date?t:""}))}var Eo=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=null!==(e=null===n||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(s>
11){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var a=i.range,u=0;u<s;u++){var c=u>0?r[u-1].coordinate:r[s-1].coordinate,l=r[u].coordinate,h=u>=s-1?r[0].coordinate:r[u+1].coordinate,f=void 0;if((0,ho.uY)(l-c)!==(0,ho.uY)(h-l)){var d=[];if((0,ho.uY)(h-l)===(0,ho.uY)(a[1]-a[0])){f=h;var p=l+a[1]-a[0];d[0]=Math.min(p,(p+c)/2),d[1]=Math.max(p,(p+c)/2)}else{f=c;var g=h+a[1]-a[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var m=[Math.min(l,(f+l)/2),Math.max(l,(f+l)/2)];if(t>m[0]&&t<=m[1]||t>=d[0]&&t<=d[1]){o=r[u].index;break}}else{var y=Math.min(c,h),v=Math.max(c,h);if(t>(y+l)/2&&t<=(v+l)/2){o=r[u].index;break}}}else for(var b=0;b<s;b++)if(0===b&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<s-1&&t>(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===s-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}}else o=0;return o},Ao=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},So=function(t){var e,n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=(0,po.sP)(n,fo.D.displayName);return s?(e=s.props&&s.props.payload?s.props&&s.props.payload:"children"===o?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map((function(t){return{type:s.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:s.props.iconType||o||"square",color:Ao(e),value:i||r,payload:e.props}})),bo(bo(bo({},s.props),fo.D.getWithHeight(s,i)),{},{payload:e,item:s})):null},Po=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),s=0,a=o.length;s<a;s++)for(var u=r[o[s]].stackGroups,c=Object.keys(u),l=0,h=c.length;l<h;l++){var f=u[c[l]],d=f.items,p=f.cateAxisId,g=d.filter((function(t){return(0,po.Gf)(t.type).indexOf("Bar")>=0}));if(g&&g.length){var m=g[0].props.barSize,y=g[0].props[p];i[y]||(i[y]=[]),i[y].push({item:g[0],stackList:g.slice(1),barSize:O()(m)?e:m})}}return i},Oo=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,s=t.maxBarSize,a=o.length;if(a<1)return null;var u,c=(0,ho.h1)(e,r,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,h=r/a,f=o.reduce((function(t,e){return t+e.barSize||0}),0);(f+=(a-1)*c)>=r&&(f-=(a-1)*c,c=0),f>=r&&h>0&&(l=!0,f=a*(h*=.9));var d={offset:((r-f)/2>>0)-c,size:0};u=o.reduce((function(t,e){var n=[].concat(mo(t),[{item:e.item,position:{offset:d.offset+d.size+c,size:l?h:e.barSize}}]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),[])}else{var p=(0,ho.h1)(n,r,0,!0);r-2*p-(a-1)*c<=0&&(c=0);var g=(r-2*p-(a-1)*c)/a;g>1&&(g>>=0);var m=s===+s?Math.min(g,s):g;u=o.reduce((function(t,e,n){var r=[].concat(mo(t),[{item:e.item,position:{offset:p+(g+c)*n+(g-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return u},To=function(t,e,n,r){var i=n.children,o=n.width,s=n.margin,a=o-(s.left||0)-(s.right||0),u=So({children:i,legendWidth:a}),c=t;if(u){var l=r||{},h=u.align,f=u.verticalAlign,d=u.layout;("vertical"===d||"horizontal"===d&&"center"===f)&&(0,ho.hj)(t[h])&&(c=bo(bo({},t),{},_o({},h,c[h]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===h)&&(0,ho.hj)(t[f])&&(c=bo(bo({},t),{},_o({},f,c[f]+(l.height||0))))}return c},Co=function(t,e,n,r){var i=e.props.children,o=(0,po.NN)(i,"ErrorBar").filter((function(t){var e=t.props.direction;return!(!O()(e)&&!O()(r))||r.indexOf(e)>=0}));if(o&&o.length){var s=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=wo(e,n,0),i=g()(r)?[b()(r),y()(r)]:[r,r],o=s.reduce((function(t,n){var r=wo(e,n,0),o=i[0]-Math.abs(g()(r)?r[0]:r),s=i[1]+Math.abs(g()(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(s,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},Mo=function(t,e,n,r){var i=e.map((function(e){return Co(t,e,n,r)}
1)).filter((function(t){return!O()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},Do=function(t,e,n,r){var i=e.map((function(e){var i=e.props.dataKey;return"number"===n&&i&&Co(t,e,i)||xo(t,i,n,r)}));if("number"===n)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)o[e[n]]||(o[e[n]]=!0,t.push(e[n]));return t}),[])},ko=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},jo=function(t,e,n){var r,i,o=t.map((function(t){return t.coordinate===e&&(r=!0),t.coordinate===n&&(i=!0),t.coordinate}));return r||o.push(e),i||o.push(n),o},Fo=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,s=t.range,a="scaleBand"===t.realScaleType?r.bandwidth()/2:2,u=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/a:0;return u="angleAxis"===t.axisType?2*(0,ho.uY)(s[0]-s[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+u,value:t,offset:u}})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+u,value:t,offset:u}})):r.domain().map((function(t,e){return{coordinate:r(t)+u,value:i?i[t]:t,index:e,offset:u}}))},Lo=function(t,e,n){var r;return E()(n)?r=n:E()(e)&&(r=e),E()(t)||r?function(e,n,i,o){E()(t)&&t(e,n,i,o),E()(r)&&r(e,n,i,o)}:null},Io=function(t,e,n){var i=t.scale,o=t.type,s=t.layout,a=t.axisType;if("auto"===i)return"radial"===s&&"radiusAxis"===a?{scale:tt.Z(),realScaleType:"band"}:"radial"===s&&"angleAxis"===a?{scale:Fe(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>
1=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:tt.x(),realScaleType:"point"}:"category"===o?{scale:tt.Z(),realScaleType:"band"}:{scale:Fe(),realScaleType:"linear"};if(d()(i)){var u="scale".concat(h()(i));return{scale:(r[u]||tt.x)(),realScaleType:r[u]?u:"point"}}return E()(i)?{scale:i}:{scale:tt.x(),realScaleType:"point"}},Ro=1e-4,Bo=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-Ro,o=Math.max(r[0],r[1])+Ro,s=t(e[0]),a=t(e[n-1]);(s<i||s>o||a<i||a>o)&&t.domain([e[0],e[n-1]])}},No=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},zo=function(t,e){if(!e||2!==e.length||!(0,ho.hj)(e[0])||!(0,ho.hj)(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!(0,ho.hj)(t[0])||t[0]<n)&&(i[0]=n),(!(0,ho.hj)(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Zo={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,s=0;s<e;++s){var a=c()(t[s][n][1])?t[s][n][0]:t[s][n][1];a>=0?(t[s][n][0]=i,t[s][n][1]=i+a,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+a,o=t[s][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,s=t[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}oo(t,e)}},none:oo,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=t[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}oo(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,u=0,c=0;a<i;++a){for(var l=t[e[a]],h=l[s][1]||0,f=(h-(l[s-1][1]||0))/2,d=0;d<a;++d){var p=t[e[d]];f+=(p[s][1]||0)-(p[s-1][1]||0)}u+=h,c+=f*h}n[s-1][1]+=n[s-1][0]=o,u&&(o-=c/u)}n[s-1][1]+=n[s-1][0]=o,oo(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0;o<e;++o){var s=c()(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},Uo=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=function(){var t=(0,ao.Z)([]),e=uo,n=oo,r=co;function i(i){var o,s,a=Array.from(t.apply(this,arguments),lo),u=a.length,c=-1;for(const t of i)for(o=0,++c;o<u;++o)(a[o][c]=[0,+r(t,a[o].key,c,i)]).data=t;for(o=0,s=(0,so.Z)(e(a));o<u;++o)a[s[o]].index=o;return n(a,s),a}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:(0,ao.Z)(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:(0,ao.Z)(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?uo:"function"===typeof t?t:(0,ao.Z)(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?oo:t,i):n},i}().keys(r).value((function(t,e){return+wo(t,e,0)})).order(uo).offset(Zo[n]);return i(t)},Vo=function(t,e,n,r,i,o){if(!t)return null;var s=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var s=e.props[n],a=t[s]||{hasStack:!1,stackGroups:{}};if((0,ho.P2)(o)){var u=a.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),a.hasStack=!0,a.stackGroups[o]=u}else a.stackGroups[(0,ho.EL)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return bo(bo({},t),{},_o({},s,a))}),{});return Object.keys(s).reduce((function(e,o){var a=s[o];return a.hasStack&&(a.stackGroups=Object.keys(a.stackGroups).reduce((function(e,o){var s=a.stackGroups[o];return bo(bo({},e),{},_o({},o,{numericAxisId:n,cateAxisId:r,items:s.items,stackedData:Uo(t,s.items,i)}))}),{})),bo(bo({},e),{},_o({},o,a))}),{})},Go=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,s=e.allowDecimals,a=n||e.scale;if("auto"!==a&&"linear"!==a)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var c=J(u,i,s);return t.domain(function(t,e){return"number"===e?[b()(t),y()(t)]:t}(c,r)),{niceTicks:c}}if(i&&"number"===r){var l=t.domain();return{niceTicks:Q(l,i,s)}}return null}
1,Wo=function(t){var e=t.axis,n=t.ticks,r=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!O()(i[e.dataKey])){var a=(0,ho.Ap)(n,"value",i[e.dataKey]);if(a)return a.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=wo(i,O()(s)?e.dataKey:s);return O()(u)?null:e.scale(u)},Ho=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,s=t.index;if("category"===e.type)return n[s]?n[s].coordinate+r:null;var a=wo(o,e.dataKey,e.domain[s]);return O()(a)?null:e.scale(a)-i/2+r},Xo=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},qo=function(t,e){var n=t.props.stackId;if((0,ho.P2)(n)){var r=e[n];if(r&&r.items.length){for(var i=-1,o=0,s=r.items.length;o<s;o++)if(r.items[o]===t){i=o;break}return i>=0?r.stackedData[i]:null}}return null},Yo=function(t,e,n){return Object.keys(t).reduce((function(r,i){var o=t[i].stackedData.reduce((function(t,r){var i=r.slice(e,n+1).reduce((function(t,e){return[b()(e.concat([t[0]]).filter(ho.hj)),y()(e.concat([t[1]]).filter(ho.hj))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},Ko=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$o=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jo=function(t,e,n){if(E()(t))return t(e,n);if(!g()(t))return e;var r=[];if((0,ho.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(Ko.test(t[0])){var i=+Ko.exec(t[0])[1];r[0]=e[0]-i}else E()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,ho.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if($o.test(t[1])){var o=+$o.exec(t[1])[1];r[1]=e[1]+o}else E()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Qo=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=a()(e,(function(t){return t.coordinate})),o=1/0,s=1,u=i.length;s<u;s++){var c=i[s],l=i[s-1];o=Math.min((c.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},ts=function(t,e,n){return t&&t.length?o()(t,S()(n,"type.defaultProps.domain"))?e:t:e},es=function(t,e){var n=t.props,r=n.dataKey,i=n.name,o=n.unit,s=n.formatter,a=n.tooltipType,u=n.chartType;return bo(bo({},(0,go.L6)(t)),{},{dataKey:r,unit:o,formatter:s,name:i||r,color:Ao(t),value:wo(e,r),type:a,payload:e,chartType:u})}},1209:function(t,e,n){"use strict";n.d(e,{xE:function(){return p},os:function(){return g},IR:function(){return m}});var r=n(7523);function i(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 o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var c={widthCache:{},cacheCount:0},l={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},h=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],f="recharts_measurement_span";var d=function(t){return Object.keys(t).reduce((function(e,n){return"".concat(e).concat((o=n,o.split("").reduce((function(t,e){return e===e.toUpperCase()?[].concat(a(t),["-",e.toLowerCase()]):[].concat(a(t),[e])}),[]).join("")),":").concat((r=n,i=t[n],h.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||r.x.isSsr)return{width:0,height:0};var n="".concat(t),i=d(e),s="".concat(n,"-").concat(i);if(c.widthCache[s])return c.widthCache[s];try{var a=document.getElementById(f);a||((a=document.createElement("span")).setAttribute("id",f),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var u=o(o({},l),e);Object.keys(u).map((function(t){return a.style[t]=u[t],t})),a.textContent=n;var h=a.getBoundingClientRect(),p={width:h.width,height:h.height};return c.widthCache[s]=p,++c.cacheCount>2e3&&(c.cacheCount=0,c.widthCache={}),p}catch(g){return{width:0,height:0}}},g=function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}},m=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}},9055:function(t,e,n){"use strict";n.d(e,{uY:function(){return d},hU:function(){return p},hj:function(){return g},P2:function(){return m},EL:function(){return v},h1:function(){return b},Kt:function(){return _},bv:function(){return w},k4:function(){return x},Ap:function(){return E}});var r=n(7361),i=n.n(r),o=n(1469),s=n.n(o),a=n(7654),u=n.n(a),c=n(1763),l=n.n(c),h=n(7037),f=n.n(h),d=function(t){return 0===t?0:t>0?1:-1},p=function(t){return f()(t)&&t.indexOf("%")===t.length-1},g=function(t){return l()(t)&&!u()(t)},m=function(t){return g(t)||f()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},b=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!g(t)&&!f()(t))return r;if(p(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return u()(n)&&(n=r),i&&n>e&&(n=e),n},_=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},w=function(t){if(!s()(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1},x=function(t,e){return g(t)&&g(e)?function(n){return t+n*(e-t)}:function(){return e}};function E(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"===typeof e?e(t):i()(t,e))===n})):null}},7523:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var r={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return r[t]},set:function(t,e){if("string"===typeof t)r[t]=e;else{var n=Object.keys(t);
1n&&n.length&&n.forEach((function(e){r[e]=t[e]}))}}}},6213:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]}},48:function(t,e,n){"use strict";n.d(e,{Wk:function(){return s},op:function(){return u},z3:function(){return h}});n(4293);function r(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=Math.PI/180,a=function(t){return 180*t/Math.PI},u=function(t,e,n,r){return{x:t+Math.cos(-s*r)*n,y:e+Math.sin(-s*r)*n}},c=function(t,e){var n=t.x,r=t.y,i=e.cx,o=e.cy,s=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(s<=0)return{radius:s};var u=(n-i)/s,c=Math.acos(u);return r>o&&(c=2*Math.PI-c),{radius:s,angle:a(c),angleInRadian:c}},l=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},h=function(t,e){var n=t.x,r=t.y,o=c({x:n,y:r},e),s=o.radius,a=o.angle,u=e.innerRadius,h=e.outerRadius;if(s<u||s>h)return!1;if(0===s)return!0;var f,d=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),p=d.startAngle,g=d.endAngle,m=a;if(p<=g){for(;m>g;)m-=360;for(;m<p;)m+=360;f=m>=p&&m<=g}else{for(;m>p;)m-=360;for(;m<g;)m+=360;f=m>=g&&m<=p}return f?i(i({},e),{},{radius:s,angle:l(m,e)}):null}},2017:function(t,e,n){"use strict";n.d(e,{Gf:function(){return y},NN:function(){return w},sP:function(){return x},TT:function(){return E},rL:function(){return P},eu:function(){return T},Bh:function(){return C},$R:function(){return M}});var r=n(7037),i=n.n(r),o=n(7361),s=n.n(o),a=n(4293),u=n.n(a),c=n(1469),l=n.n(c),h=n(1720),f=n(9864),d=n(9055),p=n(791);function g(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var m={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},y=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":""},v=null,b=null,_=function t(e){if(e===v&&l()(b))return b;var n=[];return h.Children.forEach(e,(function(e){u()(e)||((0,f.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),b=n,v=e,n},w=function(t,e){var n=[],r=[];return r=l()(e)?e.map((function(t){return y(t)})):[y(e)],_(t).forEach((function(t){var e=s()(t,"type.displayName")||s()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n},x=function(t,e){var n=w(t,e);return n&&n[0]},E=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!(0,d.hj)(n)||n<=0||!(0,d.hj)(r)||r<=0)},A=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],S=function(t){return t&&t.type&&i()(t.type)&&A.indexOf(t.type)>=0},P=function t(e,n){if(e===n)return!0;var r=h.Children.count(e);
1if(r!==h.Children.count(n))return!1;if(0===r)return!0;if(1===r)return O(l()(e)?e[0]:e,l()(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],s=n[i];if(l()(o)||l()(s)){if(!t(o,s))return!1}else if(!O(o,s))return!1}return!0},O=function(t,e){if(u()(t)&&u()(e))return!0;if(!u()(t)&&!u()(e)){var n=t.props||{},r=n.children,i=g(n,["children"]),o=e.props||{},s=o.children,a=g(o,["children"]);return r&&s?(0,p.w)(i,a)&&P(r,s):!r&&!s&&(0,p.w)(i,a)}return!1},T=function(t,e){var n=[],r={};return _(t).forEach((function(t,i){if(S(t))n.push(t);else if(t){var o=y(t.type),s=e[o]||{},a=s.handler,u=s.once;if(a&&(!u||!r[o])){var c=a(t,o,i);n.push(c),r[o]=!0}}})),n},C=function(t){var e=t&&t.type;return e&&m[e]?m[e]:null},M=function(t,e){return _(e).indexOf(t)}},791:function(t,e,n){"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{w:function(){return r}})},9896:function(t,e,n){"use strict";n.d(e,{L6:function(){return l},Ym:function(){return h},bw:function(){return f}});var r=n(3218),i=n.n(r),o=n(1720);function s(t){return s="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},s(t)}var a=["viewBox","children"],u=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],c=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
1ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],l=function(t,e,n){if(!t||"function"===typeof t||"boolean"===typeof t)return null;var r=t;if((0,o.isValidElement)(t)&&(r=t.props),!i()(r))return null;var s={};return Object.keys(r).forEach((function(t){(u.includes(t)||n&&a.includes(t)||e&&c.includes(t))&&(s[t]=r[t])})),s},h=function(t,e){if(!t||"function"===typeof t||"boolean"===typeof t)return null;var n=t;if((0,o.isValidElement)(t)&&(n=t.props),!i()(n))return null;var r={};return Object.keys(n).forEach((function(t){c.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})})),r},f=function(t,e,n){if(!i()(t)||"object"!==s(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];c.includes(i)&&"function"===typeof o&&(r||(r={}),r[i]=function(t,e,n){return function(r){return t(e,n,r),null}}(o,e,n))})),r}},4275:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(8336)),i=n(210),o=a(n(174)),s=a(n(3697));function a(t){return t&&t.__esModule?t:{default:t}}var u=/((?:\-[a-z]+\-)?calc)/;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(t).walk((function(t){if("function"===t.type&&u.test(t.value)){var n=r.default.stringify(t.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var a=i.parser.parse(n),c=(0,o.default)(a,e);t.type="word",t.value=(0,s.default)(t.value,c,e)}}}),!0).toString()},t.exports=e.default},460:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(3258),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){switch(t.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(t,e,n){e.type===t.type&&(e={type:t.type,value:(0,o.default)(e.value,e.unit,t.unit,n),unit:t.unit});return{left:t,right:e}}(t,e,n);default:return{left:t,right:e}}},t.exports=e.default},174:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.flip=c;var r,i=n(460),o=(r=i)&&r.__esModule?r:{default:r};function s(t,e){return"MathExpression"===t.type?function(t,e){switch(t=function(t,e){var n=(0,o.default)(t.left,t.right,e),r=s(n.left,e),i=s(n.right,e);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(a(r.right,i.right)?n=(0,o.default)(r.left,i.left,e):a(r.right,i.left)&&(n=(0,o.default)(r.left,i.right,e)),r=s(n.left,e),i=s(n.right,e));return t.left=r,t.right=i,t}(t,e),t.operator){case"+":case"-":return function(t,e){var n=t,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return t;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return l(i);r.type===i.type&&u(r.type)&&((t=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(u(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(t=Object.assign({},t)).left=s({type:"MathExpression",operator:o,left:r,right:i.left},e),t.right=i.right,t.operator="-"===o?c(i.operator):i.operator,s(t,e);if(r.type===i.right.type)return(t=Object.assign({},t)).left=s({type:"MathExpression",operator:"-"===o?c(i.operator):i.operator,left:r,right:i.right},e),t.right=i.left,s(t,e)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&u(i.type)){if(i.type===r.left.type)return(t=Object.assign({},r)).left=s({type:"MathExpression",operator:o,left:r.left,right:i},e),s(t,e);if(i.type===r.right.type)return t=Object.assign({},r),"-"===r.operator?(t.right=s({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},e),t.operator="-"===o?"-":"+"):t.right=s({type:"MathExpression",operator:o,left:r.right,right:i},e),t.right.value<0&&(t.right.value*=-1,t.operator="-"===t.operator?"+":"-"),s(t,e)}return t}(t,e);case"/":return function(t,e){if(!u(t.right.type))return t;if("Value"!==t.right.type)throw new Error('Cannot divide by "'+t.right.unit+'", number expected');if(0===t.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===t.left.type)return u(t.left.left.type)&&u(t.left.right.type)?(t.left.left.value/=t.right.value,t.left.right.value/=t.right.value,s(t.left,e)):t;if(u(t.left.type))return t.left.value/=t.right.value,t.left;return t}(t,e);case"*":return function(t){if("MathExpression"===t.left.type&&"Value"===t.right.type){if(u(t.left.left.type)&&u(t.left.right.type))return t.left.left.value*=t.right.value,t.left.right.value*=t.right.value,t.left}else{if(u(t.left.type)&&"Value"===t.right.type)return t.left.value*=t.right.value,t.left;if("Value"===t.left.type&&"MathExpression"===t.right.type){if(u(t.right.left.type)&&u(t.right.right.type))return t.right.left.value*=t.left.value,t.right.right.value*=t.left.value,t.right}else if("Value"===t.left.type&&u(t.right.type))return t.right.value*=t.left.value,t.right}return t}(t)}return t}(t,e):"Calc"===t.type?s(t.value,e):t}function a(t,e){return t.type===e.type&&t.value===e.value}function u(t){switch(t){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function c(t){return"+"===t?"-":"+"}function l(t){return u(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=l(t.left),t.right=l(t.right)),t}e.default=s},3697:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=s(e,n);return"MathExpression"===e.type&&(r=t+"("+r+")"),r};var r=n(174),i={"*":0,"/":0,"+":1,"-":1};function o(t,e){if(!1!==e){var n=Math.pow(10,e);return Math.round(t*n)/n}return t}function s(t,e){switch(t.type){case"MathExpression":var n=t.left,a=t.right,u=t.operator,c="";return"MathExpression"===n.type&&i[u]<i[n.operator]?c+="("+s(n,e)+")":c+=s(n,e),c+=" "+t.operator+" ","MathExpression"===a.type&&i[u]<i[a.operator]?c+="("+s(a,e)+")":"MathExpression"===a.type&&"-"===u&&["+","-"].includes(a.operator)?(a.operator=(0,r.flip)(a.operator),c+=s(a,e)):c+=s(a,e),c;case"Value":return o(t.value,e);case"CssVariable":return t.fallback?"var("+t.value+", "+s(t.fallback,e)+")":"var("+t.value+")";case"Calc":return t.prefix?"-"+t.prefix+"-calc("+s(t.value,e)+")":"calc("+s(t.value,e)+")";default:return o(t.value,e)+t.unit}}t.exports=e.default},210:function(t,e){var n=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}function e(t,e,n){n=n||0;for(var r=0;r<e;r++)this.push(t),t+=n}function n(t,e){for(e+=t=this.length-t;t<e;t++)this.push(this[t])}function r(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];"function"===typeof i?(n++,i.apply(e,t[n])):e.push(i)}return e}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonParserError";var i={trace:function(){},JisonParserError:t,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(t){return'"'+t+'"'},getSymbolName:function(t){if(this.terminals_[t])return this.terminals_[t];var e=this.symbols_;for(var n in e)if(e[n]===t)return n;return null},describeSymbol:function(t){if(t!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[t])return this.terminal_descriptions_[t];if(t===this.EOF)return"end of input";var e=this.getSymbolName(t);return e?this.quoteName(e):null},collect_expected_token_set:function(t,e){var n=this.TERROR,r=[],i={};if(!e&&this.state_descriptions_&&this.state_descriptions_[t])return[this.state_descriptions_[t]];for(var o in this.table[t])if((o=+o)!==n){var s=e?o:this.describeSymbol(o);s&&!i[s]&&(r.push(s),i[s]=!0)}return r},productions_:function(t){for(var e=[],n=t.pop,r=t.rule,i=0,o=n.length;i<o;i++)e.push([n[i],r[i]]);return e}({pop:r([29,e,[30,10],31,31,32,32,e,[33,15]]),rule:r([2,e,[3,5],4,7,e,[1,4],2,4,6,e,[1,14],2])}),performAction:function(t,e,n){var r=this.yy;r.parser,r.lexer;switch(t){case 0:case 6:this.$=n[e-1];break;case 1:return this.$=n[e-1],n[e-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:n[e-1],left
1:n[e-2],right:n[e]};break;case 7:this.$={type:"Calc",value:n[e-1]};break;case 8:this.$={type:"Calc",value:n[e-1],prefix:n[e-5]};break;case 9:case 10:case 11:this.$=n[e];break;case 12:this.$={type:"Value",value:parseFloat(n[e])};break;case 13:this.$={type:"Value",value:-1*parseFloat(n[e])};break;case 14:this.$={type:"CssVariable",value:n[e-1]};break;case 15:this.$={type:"CssVariable",value:n[e-3],fallback:n[e-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(n[e]),unit:/[a-z]+/.exec(n[e])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(n[e]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(n[e]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(n[e]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(n[e]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(n[e]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(n[e]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(n[e]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(n[e]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(n[e]),unit:"%"};break;case 30:var i=n[e];i.value*=-1,this.$=i}},table:function(t){for(var e=[],n=t.len,r=t.symbol,i=t.type,o=t.state,s=t.mode,a=t.goto,u=0,c=n.length;u<c;u++){for(var l=n[u],h={},f=0;f<l;f++){var d=r.shift();switch(i.shift()){case 2:h[d]=[s.shift(),a.shift()];break;case 0:h[d]=o.shift();break;default:h[d]=[3]}}e.push(h)}return e}({len:r([24,1,5,23,1,18,e,[0,3],1,e,[0,16],e,[23,4],n,[28,3],0,0,16,1,6,6,e,[0,3],5,1,2,n,[37,3],n,[20,3],5,0,0]),symbol:r([4,7,9,11,12,e,[15,19,1],1,1,e,[3,4,1],n,[30,19],n,[29,4],7,4,10,11,n,[22,14],n,[19,3],n,[43,22],n,[23,69],n,[139,4],8,n,[51,24],4,n,[138,15],13,n,[186,5],8,n,[6,6],n,[5,5],9,8,14,n,[159,47],n,[60,10]]),type:r([e,[2,19],e,[0,5],1,e,[2,24],e,[0,4],n,[22,19],n,[43,42],n,[23,70],n,[28,25],n,[45,25],n,[113,54]]),state:r([1,2,8,6,7,30,n,[4,3],33,37,n,[5,3],38,n,[4,3],39,n,[4,3],40,n,[4,3],42,n,[21,4],50,n,[5,3],51,n,[4,3]]),mode:r([e,[1,179],e,[2,3],n,[5,5],n,[6,4],e,[1,57]]),goto:r([5,3,4,24,e,[9,15,1],e,[25,5,1],n,[24,19],31,35,32,34,n,[18,14],36,n,[38,19],n,[19,57],n,[118,4],41,n,[24,19],43,35,n,[16,14],44,e,[2,3],28,29,2,e,[3,3],28,29,3,n,[53,4],e,[45,5,1],n,[100,42],52,n,[5,4],53])}),defaultActions:function(t){for(var e={},n=t.idx,r=t.goto,i=0,o=n.length;i<o;i++){e[n[i]]=r[i]}return e}({idx:r([6,7,8,e,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:r([9,10,11,e,[16,14,1],12,1,30,13,e,[4,4,1],14,15,8])}),parseError:function(t,e,n){if(!e.recoverable)throw"function"===typeof this.trace&&this.trace(t),n||(n=this.JisonParserError),new n(t,e);"function"===typeof this.trace&&this.trace(t),e.destroy()},parse:function(t){var e,n=this,r=new Array(128),i=new Array(128),o=new Array(128),s=this.table,a=0,u=0,c=(this.TERROR,this.EOF),l=(this.options.errorRecoveryTokenDiscardCount,[0,54]);e=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var h={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};function f(){var t=e.fastLex();return"number"!==typeof t&&(t=n.symbols_[t]||t),t||c}"function"!==typeof assert||assert,this.yyGetSharedState=function(){return h},function(t,e){for(var n in e)"undefined"===typeof t[n]&&Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}(h,this.yy),h.lexer=e,h.parser=this,"function"===typeof h.parseError?this.parseError=function(t,e,n){return n||(n=this.JisonParserError),h.parseError.call(this,t,e,n)}:this.parseError=this.originalParseError,"function"===typeof h.quoteName?this.quoteName=function(t){return h.quoteName.call(this,t)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(t,n,s){var u,c;n&&((h.post_parse||this.post_parse)&&(c=this.constructParseErrorInfo(null,null,null,!1)),h.post_parse&&"undefined"!==typeof(u=h.post_parse.call(this,h,t,c))&&(t=u),this.post_parse&&"undefined"!==typeof(u=this.post_parse.call(this,h,t,c))&&(t=u),c&&c.destroy&&c.destroy());if(this.__reentrant_call_depth>
11)return t;if(e.cleanupAfterLex&&e.cleanupAfterLex(s),h&&(h.lexer=void 0,h.parser=void 0,e.yy===h&&(e.yy=void 0)),h=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,i.length=0,o.length=0,a=0,!s){for(var l=this.__error_infos.length-1;l>=0;l--){var f=this.__error_infos[l];f&&"function"===typeof f.destroy&&f.destroy()}this.__error_infos.length=0}return t},this.constructParseErrorInfo=function(t,n,s,c){var l={errStr:t,exception:n,text:e.match,value:e.yytext,token:this.describeSymbol(u)||u,token_id:u,line:e.yylineno,expected:s,recoverable:c,state:d,action:p,new_state:_,symbol_stack:r,state_stack:i,value_stack:o,stack_pointer:a,yy:h,lexer:e,parser:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"===typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(l),l};var d,p,g,m,y,v,b,_,w=function(){var t=e.lex();return"number"!==typeof t&&(t=n.symbols_[t]||t),t||c},x={$:!0,_$:void 0,yy:h},E=!1;try{if(this.__reentrant_call_depth++,e.setInput(t,h),"function"===typeof e.canIUse)e.canIUse().fastLex&&(w=f);for(o[a]=null,i[a]=0,r[a]=0,++a,this.pre_parse&&this.pre_parse.call(this,h),h.pre_parse&&h.pre_parse.call(this,h),_=i[a-1];;){if(d=_,this.defaultActions[d])p=2,_=this.defaultActions[d];else if(u||(u=w()),m=s[d]&&s[d][u]||l,_=m[1],!(p=m[0])){var A,S=this.describeSymbol(u)||u,P=this.collect_expected_token_set(d);A="number"===typeof e.yylineno?"Parse error on line "+(e.yylineno+1)+": ":"Parse error: ","function"===typeof e.showPosition&&(A+="\n"+e.showPosition(69,10)+"\n"),P.length?A+="Expecting "+P.join(", ")+", got unexpected "+S:A+="Unexpected "+S,y=this.constructParseErrorInfo(A,null,P,!1),"undefined"!==typeof(g=this.parseError(y.errStr,y,this.JisonParserError))&&(E=g);break}switch(p){default:if(p instanceof Array){y=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+d+", token: "+u,null,null,!1),"undefined"!==typeof(g=this.parseError(y.errStr,y,this.JisonParserError))&&(E=g);break}y=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),"undefined"!==typeof(g=this.parseError(y.errStr,y,this.JisonParserError))&&(E=g);break;case 1:r[a]=u,o[a]=e.yytext,i[a]=_,++a,u=0;continue;case 2:if(v=(b=this.productions_[_-1])[1],"undefined"!==typeof(g=this.performAction.call(x,_,a-1,o))){E=g;break}a-=v;var O=b[0];r[a]=O,o[a]=x.$,_=s[i[a-1]][O],i[a]=_,++a;continue;case 3:-2!==a&&(E=!0,a--,"undefined"!==typeof o[a]&&(E=o[a]))}break}}catch(T){if(T instanceof this.JisonParserError)throw T;if(e&&"function"===typeof e.JisonLexerError&&T instanceof e.JisonLexerError)throw T;y=this.constructParseErrorInfo("Parsing aborted due to exception.",T,null,!1),E=!1,"undefined"!==typeof(g=this.parseError(y.errStr,y,this.JisonParserError))&&(E=g)}finally{E=this.cleanupAfterParse(E,!0,!0),this.__reentrant_call_depth--}return E}};i.originalParseError=i.parseError,i.originalQuoteName=i.quoteName;var o=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonLexerError";var e={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(t,e,n){if(t=""+t,void 0==n&&(n=!(t.indexOf("\n")>0&&t.indexOf("^")>0)),this.yylloc&&n)if("function"===typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(t)||(t+="\n"),t+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"===typeof this.showPosition){var r=this.showPosition();r&&(t.length&&"\n"!==t[t.length-1]&&"\n"!==r[0]?t+="\n"+r:t+=r)}var i={errStr:t,recoverable:!!e,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"===typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(i),i},parseError:function(t,e,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"===typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,t,e,n)||this.ERROR;if("function"===typeof this.yy.parseError)return this.yy.parseError.call(this,t,e,n)||this.ERROR}throw new n(t,e)},yyerror:function(t){var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+e+": "+t,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1
1);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(t){if(this.setInput("",{}),!t){for(var e=this.__error_infos.length-1;e>=0;e--){var n=this.__error_infos[e];n&&"function"===typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var t=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:t,last_line:this.yylineno+1,last_column:t,range:[this.offset,this.offset]}},setInput:function(t,e){if(this.yy=e||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,i=n.length;r<i;r++){"number"===typeof(f=n[r])&&(n[r]=n[f])}var o=this.conditions;for(var s in o){var a=o[s],u=a.rules,c=(i=u.length,new Array(i+1)),l=new Array(i+1);for(r=0;r<i;r++){var h=u[r],f=n[h];c[r+1]=f,l[r+1]=h}a.rules=l,a.__rule_regexes=c,a.__rule_count=i}this.__decompressed=!0}return this._input=t||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(t,e){var n=t.call(this,this._input,e);return"string"!==typeof n?n&&(this._input=""+n):this._input=n,this},input:function(){if(!this._input)return null;var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=1,n=!1;if("\n"===t)n=!0;else if("\r"===t){n=!0;var r=this._input[1];"\n"===r&&(e++,t+=r,this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,this.yylloc.range[1]++)}return n?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(e),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);if(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.yyleng=this.yytext.length,this.offset-=e,this.match=this.match.substr(0,this.match.length-e),this.matched=this.matched.substr(0,this.matched.length-e),n.length>1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,i=r.split(/(?:\r\n?|\n)/g);1===i.length&&(i=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=i[i.length-1].length}else this.yylloc.last_column-=e;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var e=this.constructLexErrorInfo("Lexical error"+t+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(e.errStr,e,this.JisonLexerError)||this.ERROR}return this},less:function(t){return this.unput(this.match.slice(t))},pastInput:function(t,e){var n=this.matched.substring(0,this.matched.length-this.match.length);t<0?t=n.length:t||(t=20),e<0?e=n.length:e||(e=1);var r=(n=n.substr(2*-t-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-e)).join("\n")).length>t&&(n="..."+n.substr(-t)),n},upcomingInput:function(t,e){var n=this.match;t<0?t=n.length+this._input.length:t||(t=20),e<0?e=t:e||(e=1),n.length<2*t+2&&(n+=this._input.substring(0,2*t+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,e)).join("\n")).length>t&&(n=n.substring(0,t)+"..."),n},showPosition:function(t,e){var n=this.pastInput(t).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(e).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(t,e,n,r){var i={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return t&&(i.first_line=0|t.first_line,i.last_line=0|t.last_line,i.first_column=0|t.first_column,i.last_column=0|t.last_column,t.range&&(i.range[0]=0|t.range[0],i.range[1]=0|t.range[1])),(i.first_line<=0||i.last_line<i.first_line)&&(i.first_line<=0&&e&&(i.first_line=0|e.last_line,i.first_column=0|e.last_column,e.range&&(i.range[0]=0|t.range[1])),(i.last_line<=0||i.last_line<i.first_line)&&n&&(i.last_line=0|n.first_line,i.last_column=0|n.first_column,n.range&&(i.range[1]=0|t.range[0])),i.first_line<=0&&r&&(i.last_line<=0||r.last_line<=i.last_line)&&(i.first_line=0|r.first_line,i.first_column=0|r.first_column,r.range&&(i.range[0]=0|r.range[0])),i.last_line<=0&&r&&(i.first_line<=0||r.first_line>=i.first_line)&&(i.last_line=0|r.last_line,i.last_column=0|r.last_column,r.range&&(i.range[1]=0|r.range[1]))),i.last_line<=0&&(i.first_line<=0?(i.first_line=this.yylloc.first_line,i.last_line=this.yylloc.last_line,i.first_column=this.yylloc.first_column,i.last_column=this.yylloc.last_column,i.range[0]=this.yylloc.range[0],i.range[1]=this.yylloc.range[1]):(i.last_line=this.yylloc.last_line,i.last_column=this.yylloc.last_column,i.range[1]=this.yylloc.range[1])),i.first_line<=0&&(i.first_line=i.last_line,i.first_column=0,i.range[1]=i.range[0]),i.first_column<0&&(i.first_column=0),i.last_column<0&&(i.last_column=i.first_column>0?i.first_column:80),i},prettyPrintRange:function(t,e,n){t=this.deriveLocationInfo(t,e,n);var r=(this.matched+this._input).split("\n"),i=Math.max(1,e?e.first_line:t.first_line-3),o=Math.max(1,n?n.last_line:t.last_line+1),s=1+Math.log10(1|o)|0,a=new Array(s).join(" "),u=[],c=r.slice(i-1,o+1).map((function(e,n){var r=n+i,o=(a+r).substr(-s)+": "+e,c=new Array(s+1).join("^"),l=3,h=0;(r===t.first_line?(l+=t.first_column,h=Math.max(2,(r===t.last_line?t.last_column:e.length)-t.first_column+1)):r===t.last_line?h=Math.max(2,t.last_column+1):r>t.first_line&&r<t.last_line&&(h=Math.max(2,e.length+1)),h)&&(o+="\n"+c+new Array(l).join(".")+new Array(h).join("^"),e.trim().length>0&&u.push(n));return o=o.replace(/\t/g," ")}));if(u.length>4){var l=u[1]+1,h=u[u.length-2]-1,f=new Array(s+1).join(" ")+" (...continued...)";f+="\n"+new Array(s+1).join("-")+" (---------------)",c.splice(l,h-l+1,f)}return c.join("\n")},describeYYLLOC:function(t,e){var n,r=t.first_line,i=t.last_line,o=t.first_column,s=t.last_column;if(0===i-r?(n="line "+r+", ",n+=s-o<=1?"column "+o:"columns "+o+" .. "+s):n="lines "+r+"(column "+o+") .. "+i+"(column "+s+")",t.range&&e){var a=t.range[0],u=t.range[1]-1;n+=u<=a?" {String Offset: "+a+"}":" {String Offset range: "+a+" .. "+u+"}"}return n},test_match:function(t,e){var n,r,i,o,s;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),s=(o=t[0]).length,(r=o.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=s,this.yytext+=o,this.match+=o,this.matched+=o,this.matches=t,this.yyleng=this.yytext.length,this.yylloc.range[1]+=s,this.offset+=s,this._more=!1,this._backtrack=!1,this._input=this._input.slice(s),n=this.performAction.call(this,this.yy,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||this.clear();var i=this.__currentRuleSet__;if(!i&&(!(i=this.__currentRuleSet__=this._currentRules())||!i.rules)){var o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));var s=this.constructLexErrorInfo("Internal lexer engine error"+o+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(s.errStr,s,this.JisonLexerError)||this.ERROR}for(var a=i.rules,u=i.__rule_regexes,c=i.__rule_count,l=1;l<=c;l++)if((n=this._input.match(u[l]))&&(!e||n[0].length>e[0].length)){if(e=n,r=l,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,a[l])))return t;if(this._backtrack){e=void 0;continue}return!1}if(!this.options.flex)break}if(e)return!1!==(t=this.test_match(e,a[r]))&&t;if(this._input){o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));s=this.constructLexErrorInfo("Lexical error"+o+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var h=this._input,f=this.topState(),d=this.conditionStack.length;return(t=this.parseError(s.errStr,s,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||h!==this._input||f!==this.topState()||d!==this.conditionStack.length||this.input()),t}return this.done=!0,this.clear(),this.EOF},lex:function(){var t;for("function"===typeof this.pre_lex&&(t=this.pre_lex.call(this,0)),"function"===typeof this.options.pre_lex&&(t=this.options.pre_lex.call(this,t)||t),this.yy&&"function"===typeof this.yy.pre_lex&&(t=this.yy.pre_lex.call(this,t)||t);!t;)t=this.next();return this.yy&&"function"===typeof this.yy.post_lex&&(t=this.yy.post_lex.call(this,t)||t),"function"===typeof this.options.post_lex&&(t=this.options.post_lex.call(this,t)||t),"function"===typeof this.post_lex&&(t=this.post_lex.call(this,t)||t),t},fastLex:function(){for(var t;!t;)t=this.next();return t},canIUse:function(){return{fastLex:!("function"===typeof this.pre_lex||"function"===typeof this.options.pre_lex||this.yy&&"function"===typeof this.yy.pre_lex||this.yy&&"function"===typeof this.yy.post_lex||"function"===typeof this.options.post_lex||"function"===typeof this.post_lex)&&"function"===typeof this.fastLex}},begin:function(t){return this.pushState(t)},pushState:function(t){return this.conditionStack.push(t),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:t,performAction:function(t,e,n){if(1!==e)return this.simpleCaseActionClusters[e]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return e}();function s(){this.yy={}}return i.lexer=o,s.prototype=i,i.Parser=s,new s}();e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)}},8336:function(t,e,n){var r=n(8219),i=n(6461),o=n(1088);function s(t){return this instanceof s?(this.nodes=r(t),this):new s(t)}s.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},s.prototype.walk=function(t,e){return i(this.nodes,t,e),this},s.unit=n(4386),s.walk=i,s.stringify=o,t.exports=s},8219:function(t){var e="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),s="/".charCodeAt(0),a=",".charCodeAt(0),u=":".charCodeAt(0),c="*".charCodeAt(0);t.exports=function(t){for(var l,h,f,d,p,g,m,y,v=[],b=t,_=0,w=b.charCodeAt(_),x=b.length,E=[{nodes:v}],A=0,S="",P="",O="";_<x;)if(w<=32){l=_;do{l+=1,w=b.charCodeAt(l)}while(w<=32);d=b.slice(_,l),f=v[v.length-1],w===n&&A?O=d:f&&"div"===f.type?f.after=d:w===a||w===u||w===s&&b.charCodeAt(l+1)!==c?P=d:v.push({type:"space",sourceIndex:_,value:d}),_=l}else if(w===r||w===i){l=_,d={type:"string",sourceIndex:_,quote:h=w===r?"'":'"'};do{if(p=!1,~(l=b.indexOf(h,l+1)))for(g=l;b.charCodeAt(g-1)===o;)g-=1,p=!p;else l=(b+=h).length-1,d.unclosed=!0}while(p);d.value=b.slice(_+1,l),v.push(d),_=l+1,w=b.charCodeAt(_)}else if(w===s&&b.charCodeAt(_+1)===c)d={type:"comment",sourceIndex:_},-1===(l=b.indexOf("*/",_))&&(d.unclosed=!0,l=b.length),d.value=b.slice(_+2,l),v.push(d),_=l+2,w=b.charCodeAt(_);else if(w===s||w===a||w===u)d=b[_],v.push({type:"div",sourceIndex:_-P.length,value:d,before:P,after:""}),P="",_+=1,w=b.charCodeAt(_);else if(e===w){l=_;do{l+=1,w=b.charCodeAt(l)}while(w<=32);if(d={type:"function",sourceIndex:_-S.length,value:S,before:b.slice(_+1,l)},_=l,"url"===S&&w!==r&&w!==i){l-=1;do{if(p=!1,~(l=b.indexOf(")",l+1)))for(g=l;b.charCodeAt(g-1)===o;)g-=1,p=!p;else l=(b+=")").length-1,d.unclosed=!0}while(p);m=l;do{m-=1,w=b.charCodeAt(m)}while(w<=32);d.nodes=_!==m+1?[{type:"word",sourceIndex:_,value:b.slice(_,m+1)}]:[],d.unclosed&&m+1!==l?(d.after="",d.nodes.push({type:"space",sourceIndex:m+1,value:b.slice(m+1,l)})):d.after=b.slice(m+1,l),_=l+1,w=b.charCodeAt(_),v.push(d)}else A+=1,d.after="",v.push(d),E.push(d),v=d.nodes=[],y=d;S=""}else if(n===w&&A)_+=1,w=b.charCodeAt(_),y.after=O,O="",A-=1,E.pop(),v=(y=E[A]).nodes;else{l=_;do{w===o&&(l+=1),l+=1,w=b.charCodeAt(l)}while(l<x&&!(w<=32||w===r||w===i||w===a||w===u||w===s||w===e||w===n&&A));d=b.slice(_,l),e===w?S=d:v.push({type:"word",sourceIndex:_,value:d}),_=l}for(_=E.length-1;_;_-=1)E[_].unclosed=!0;return E[0].nodes}},1088:function(t){function e(t,e){var r,i,o=t.type,s=t.value;return e&&void 0!==(i=e(t))?i:"word"===o||"space"===o?s:"string"===o?(r=t.quote||"")+s+(t.unclosed?"":r):"comment"===o?"/*"+s+(t.unclosed?"":"*/"):"div"===o?(t.before||"")+s+(t.after||""):Array.isArray(t.nodes)?(r=n(t.nodes),"function"!==o?r:s+"("+(t.before||"")+r+(t.after||"")+(t.unclosed?"":")")):s}function n(t,n){var r,i;if(Array.isArray(t)){for(r="",i=t.length-1;~i;i-=1)r=e(t[i],n)+r;return r}return e(t,n)}t.exports=n},4386:function(t){var e="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);t.exports=function(t){for(var s,a=0,u=t.length,c=!1,l=-1,h=!1;a<u;){if((s=t.charCodeAt(a))>=48&&s<=57)h=!0;else if(s===i||s===o){if(l>-1)break;l=a}else if(s===r){if(c)break;c=!0}else{if(s!==n&&s!==e)break;if(0!==a)break}a+=1}return l+1===a&&a--,!!h&&{number:t.slice(0,a),unit:t.slice(a)}}},6461:function(t){t.exports=function t(e,n,r){var i,o,s,a;for(i=0,o=e.length;i<o;i+=1)s=e[i],r||(a=n(s,i,e)),!1!==a&&"function"===s.type&&Array.isArray(s.nodes)&&t(s.nodes,n,r),r&&n(s,i,e)}},4207:function(t,e,n){var r=n(3454);!function(){"use strict";var e={583:function(t){t.exports=function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}}
1,590:function(t,e,n){e.__esModule=!0,e.computeId=function(t,e){if(!e)return"jsx-"+t;var n=String(e),r=t+n;o[r]||(o[r]="jsx-"+(0,i.default)(t+"-"+n));return o[r]},e.computeSelector=function(t,e){"undefined"===typeof window&&(e=e.replace(/\/style/gi,"\\/style"));var n=t+e;o[n]||(o[n]=e.replace(/__jsx-style-dynamic-selector/g,t));return o[n]};var r,i=(r=n(583))&&r.__esModule?r:{default:r};var o={}},503:function(t,e){function n(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,r.key,r)}}e.__esModule=!0,e.default=void 0;var i="undefined"!==typeof r&&r.env&&!0,o=function(t){return"[object String]"===Object.prototype.toString.call(t)},s=function(){function t(t){var e=void 0===t?{}:t,n=e.name,r=void 0===n?"stylesheet":n,s=e.optimizeForSpeed,u=void 0===s?i:s,c=e.isBrowser,l=void 0===c?"undefined"!==typeof window:c;a(o(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",a("boolean"===typeof u,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=u,this._isBrowser=l,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var h=this._isBrowser&&document.querySelector('meta[property="csp-nonce"]');this._nonce=h?h.getAttribute("content"):null}var e,r,s,u=t.prototype;return u.setOptimizeForSpeed=function(t){a("boolean"===typeof t,"`setOptimizeForSpeed` accepts a boolean"),a(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},u.isOptimizeForSpeed=function(){return this._optimizeForSpeed},u.inject=function(){var t=this;if(a(!this._injected,"sheet already injected"),this._injected=!0,this._isBrowser&&this._optimizeForSpeed)return this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),void(this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0));this._serverSheet={cssRules:[],insertRule:function(e,n){return"number"===typeof n?t._serverSheet.cssRules[n]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),n},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},u.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]},u.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},u.insertRule=function(t,e){if(a(o(t),"`insertRule` accepts only strings"),!this._isBrowser)return"number"!==typeof e&&(e=this._serverSheet.cssRules.length),this._serverSheet.insertRule(t,e),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!==typeof e&&(e=n.cssRules.length);try{n.insertRule(t,e)}catch(s){return i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,r))}return this._rulesCount++},u.replaceRule=function(t,e){if(this._optimizeForSpeed||!this._isBrowser){var n=this._isBrowser?this.getSheet():this._serverSheet;if(e.trim()||(e=this._deletedRulePlaceholder),!n.cssRules[t])return t;n.deleteRule(t);try{n.insertRule(e,t)}catch(o){i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,t)}}else{var r=this._tags[t];a(r,"old rule at index `"+t+"` not found"),r.textContent=e}return t},u.deleteRule=function(t){if(this._isBrowser)if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];a(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}else this._serverSheet.deleteRule(t)},u.flush=function(){this._injected=!1,this._rulesCount=0,this._isBrowser?(this._tags.forEac
1h((function(t){return t&&t.parentNode.removeChild(t)})),this._tags=[]):this._serverSheet.cssRules=[]},u.cssRules=function(){var t=this;return this._isBrowser?this._tags.reduce((function(e,n){return n?e=e.concat(Array.prototype.map.call(t.getSheetForTag(n).cssRules,(function(e){return e.cssText===t._deletedRulePlaceholder?null:e}))):e.push(null),e}),[]):this._serverSheet.cssRules},u.makeStyleTag=function(t,e,n){e&&a(o(e),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+t,""),e&&r.appendChild(document.createTextNode(e));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},e=t,(r=[{key:"length",get:function(){return this._rulesCount}}])&&n(e.prototype,r),s&&n(e,s),t}();function a(t,e){if(!t)throw new Error("StyleSheet: "+e+".")}e.default=s},449:function(t,e,n){e.__esModule=!0,e.default=c;var r,i=(r=n(522))&&r.__esModule?r:{default:r},o=n(147),s=n(590);var a=i.default.useInsertionEffect||i.default.useLayoutEffect,u="undefined"!==typeof window?(0,o.createStyleRegistry)():void 0;function c(t){var e=u||(0,o.useStyleRegistry)();return e?"undefined"===typeof window?(e.add(t),null):(a((function(){return e.add(t),function(){e.remove(t)}}),[t.id,String(t.dynamic)]),null):null}c.dynamic=function(t){return t.map((function(t){var e=t[0],n=t[1];return(0,s.computeId)(e,n)})).join(" ")}},147:function(t,e,n){e.__esModule=!0,e.createStyleRegistry=l,e.StyleRegistry=function(t){var e=t.registry,n=t.children,r=(0,i.useContext)(c),o=(0,i.useState)((function(){return r||e||l()}))[0];return i.default.createElement(c.Provider,{value:o},n)},e.useStyleRegistry=function(){return(0,i.useContext)(c)},e.StyleSheetContext=e.StyleSheetRegistry=void 0;var r,i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=r?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=t[i]}n.default=t,e&&e.set(t,n);return n}(n(522)),o=(r=n(503))&&r.__esModule?r:{default:r},s=n(590);function a(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}var u=function(){function t(t){var e=void 0===t?{}:t,n=e.styleSheet,r=void 0===n?null:n,i=e.optimizeForSpeed,s=void 0!==i&&i,a=e.isBrowser,u=void 0===a?"undefined"!==typeof window:a;this._sheet=r||new o.default({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),r&&"boolean"===typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._isBrowser=u,this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._isBrowser&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce((function(t,e){return t[e]=0,t}),{}));var n=this.getIdAndRules(t),r=n.styleId,i=n.rules;if(r in this._instancesCounts)this._instancesCounts[r]+=1;else{var o=i.map((function(t){return e._sheet.insertRule(t)})).filter((function(t){return-1!==t}));this._indices[r]=o,this._instancesCounts[r]=1}},e.remove=function(t){var e=this,n=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw new Error("StyleSheetRegistry: "+e+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach((function(t){return e._sheet.deleteRule(t)})),delete this._indices[n]),delete this._instancesCounts[n]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map((function(e){return[e,t._fromServer[e]]})):[],n=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map((function(e){return[e,t._indices[e].map((function(t){return n[t].cssText})).join(t._optimizeForSpeed?"":"\n")]})).filter((function(t){return Boolean(t[1])})))},e.styles=function(t){return function(t,e){return void 0===e&&(e={}),t.map((function(t){var n=t[0],r=t[1];return i.default.createElement("style",{id:"__"+n,key:"__"+n,nonce:e.nonce?e.nonce:void 0,dangerouslySetInnerHTML:{__html:r}}
1)}))}(this.cssRules(),t)},e.getIdAndRules=function(t){var e=t.children,n=t.dynamic,r=t.id;if(n){var i=(0,s.computeId)(r,n);return{styleId:i,rules:Array.isArray(e)?e.map((function(t){return(0,s.computeSelector)(i,t)})):[(0,s.computeSelector)(i,e)]}}return{styleId:(0,s.computeId)(r),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce((function(t,e){return t[e.id.slice(2)]=e,t}),{})},t}();e.StyleSheetRegistry=u;var c=(0,i.createContext)(null);function l(){return new u}e.StyleSheetContext=c},522:function(t){t.exports=n(1720)}},i={};function o(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={exports:{}},s=!0;try{e[t](r,r.exports,o),s=!1}finally{s&&delete i[t]}return r.exports}o.ab="//";var s={};!function(){var t=s;t.__esModule=!0,t.style=t.useStyleRegistry=t.createStyleRegistry=t.StyleRegistry=void 0;var e=o(147);t.StyleRegistry=e.StyleRegistry,t.createStyleRegistry=e.createStyleRegistry,t.useStyleRegistry=e.useStyleRegistry;var n,r=(n=o(449))&&n.__esModule?n:{default:n};t.style=r.default}(),t.exports=s}()},5988:function(t,e,n){t.exports=n(4207).style},4942:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.