@arcgis/core 5.2.0-next.144 → 5.2.0-next.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
- package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
- package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
- package/arcade/featureSetUtils.js +1 -1
- package/arcgisGlobal.d.ts +5 -5
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
- package/assets/esri/core/workers/chunks/18f20fd43ec9ce03cef1.js +1 -0
- package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
- package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
- package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
- package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 392bcef780df52fb4cca.js} +1 -1
- package/assets/esri/core/workers/chunks/{d4926545193414cf2f16.js → 4ed8655770a3e018e366.js} +1 -1
- package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
- package/assets/esri/core/workers/chunks/532a1b6ff9a7c950e325.js +1 -0
- package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
- package/assets/esri/core/workers/chunks/{5b3cfe95314a75a735c1.js → 588e677f33df86a595bf.js} +1 -1
- package/assets/esri/core/workers/chunks/{25e6013e2c095629b236.js → 58c252289411b0d86473.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c0975c2dd1d0e2710bb.js → 6883a5c6883eccaddf64.js} +1 -1
- package/assets/esri/core/workers/chunks/{f74e32d2ffe81778826b.js → 6c1d5577a17a5c8ccf39.js} +1 -1
- package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +1 -0
- package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
- package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
- package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
- package/assets/esri/core/workers/chunks/77ebacfdf8e57f2e03f1.js +1118 -0
- package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +1 -0
- package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
- package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → 9c1e69ac82e2bf746191.js} +1 -1
- package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
- package/assets/esri/core/workers/chunks/b61008f28b788f759e2a.js +1 -0
- package/assets/esri/core/workers/chunks/{402a82c77420254831bc.js → b7d77dd2abb255fd2e5a.js} +1 -1
- package/assets/esri/core/workers/chunks/{8b54589f173259c1ba55.js → b8054adc45bca069b948.js} +1 -1
- package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +1 -0
- package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
- package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +1 -0
- package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
- package/assets/esri/core/workers/chunks/{43fc42405167a5537039.js → f095cf98940e3f95d51e.js} +1 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +0 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
- package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
- package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
- package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
- package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
- package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
- package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
- package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
- package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
- package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
- package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
- package/{basemaps → basemapGallery}/types.d.ts +2 -2
- package/chunks/GlobalIllumination.glsl.js +4 -2
- package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
- package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
- package/config.js +1 -1
- package/core/colorUtils.js +1 -1
- package/form/elements/inputs/DynamicChoiceInput.d.ts +35 -5
- package/kernel.js +1 -1
- package/layers/ParquetLayer.d.ts +9 -8
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/transferFeatures.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/support/ParquetPortalItemData.d.ts +2 -0
- package/layers/support/ParquetPortalItemData.js +1 -1
- package/layers/support/PortalItemData.d.ts +21 -0
- package/layers/support/parquetUtils.d.ts +1 -1
- package/layers/support/types.d.ts +1 -1
- package/package.json +2 -2
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
- package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/layers/support/FeatureMemory.js +1 -1
- package/views/3d/layers/support/FeatureTile.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
- package/views/SceneView.d.ts +4 -10
- package/views/View.d.ts +4 -12
- package/views/interactive/options/SnappingOptions.d.ts +29 -12
- package/views/interactive/options/TooltipOptions.d.ts +9 -1
- package/views/interactive/options/ValueOptions.d.ts +9 -2
- package/views/interactive/options/ViewOptions.d.ts +82 -6
- package/views/interactive/support/Units.d.ts +1 -0
- package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
- package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
- package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
- package/widgets/BasemapGallery/types.d.ts +3 -3
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +6 -0
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +13 -8
- package/widgets/Editor.d.ts +9 -9
- package/widgets/FeatureForm.d.ts +2 -2
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +13 -8
- package/widgets/Sketch.d.ts +9 -9
- package/assets/esri/core/workers/chunks/14a3808427deaaa85bf2.js +0 -1
- package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
- package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
- package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
- package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
- package/assets/esri/core/workers/chunks/4097edb2ad522dff50ce.js +0 -1
- package/assets/esri/core/workers/chunks/4a0216ee6382d9276f1c.js +0 -1
- package/assets/esri/core/workers/chunks/55766692b578e60dd70e.js +0 -1742
- package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
- package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
- package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
- package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
- package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
- package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
- package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +0 -1
- package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
- package/assets/esri/core/workers/chunks/de24fc414a3f243d675e.js +0 -1
- package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
- package/assets/esri/core/workers/chunks/ea746d9bbea170719a1c.js +0 -1
- package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
- /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5992],{32198(t,e,n){function r(t,e,n,r){var o,a=arguments.length,u=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function u(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,e,n){var r=n(32198),o=n(69622),a=(n(44208),n(4718)),u=(n(53966),n(97768)),i=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),s=t=>{var e;let n=t,o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){let e=(0,i.oY)(this);(0,u.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,o={},l=new Map;for(let e in n){let u=n[e],i=r?.originOf(e),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;let s=this[e],f=null;if("function"==typeof c)f=c(s,t);else if("reference"===c)f=s;else if(f=(0,a.TU)(s,t),null!=s&&null==f)continue;0===i?l.set(e,f):o[e]=f}let c=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let t=(0,i.oY)(c)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=s(o.A);n.d(e,["OU",0,s,"Pw",0,f])},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,u,i,l){return[t,e,n,r,o,a,u,i,l]}n.d(e,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b){return[t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function u(){return a(1,1)}function i(){return a(-1,-1)}function l(){return a(1,0)}function c(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const s=u(),f=i(),h=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:h,UNIT_Y:M,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,negativeOnes:i,ones:u,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function u(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function s(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],M=l(),d=c(),b=s(),m=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:b,UNIT_Z:m,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:l,unitX:c,unitY:s,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,m,"Cw",0,d,"JP",0,b,"Un",0,M,"uY",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=a(),h=u(),M=i(),d=l(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:M,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,s,"v7",0,b])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function l(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},77690(t,e,n){n.d(e,{B8:()=>i,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t,e,n,r,o,a,u,i,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t}function u(t,e){if(t===e){let n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function i(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;return d?(d=1/d,t[0]=f*d,t[1]=(-s*r+o*c)*d,t[2]=(i*r-o*u)*d,t[3]=h*d,t[4]=(s*n-o*l)*d,t[5]=(-i*n+o*a)*d,t[6]=M*d,t[7]=(-c*n+r*l)*d,t[8]=(u*n-r*a)*d,t):null}function l(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8];return t[0]=u*s-i*c,t[1]=o*c-r*s,t[2]=r*i-o*u,t[3]=i*l-a*s,t[4]=n*s-o*l,t[5]=o*a-n*i,t[6]=a*c-u*l,t[7]=r*l-n*c,t[8]=n*u-r*a,t}function c(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8];return e*(c*a-u*l)+n*(-c*o+u*i)+r*(l*o-a*i)}function s(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1],d=n[2],b=n[3],m=n[4],p=n[5],g=n[6],y=n[7],w=n[8];return t[0]=h*r+M*u+d*c,t[1]=h*o+M*i+d*s,t[2]=h*a+M*l+d*f,t[3]=b*r+m*u+p*c,t[4]=b*o+m*i+p*s,t[5]=b*a+m*l+p*f,t[6]=g*r+y*u+w*c,t[7]=g*o+y*i+w*s,t[8]=g*a+y*l+w*f,t}function f(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function h(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[3]=s-p,t[6]=h+m,t[1]=s+p,t[4]=1-c-d,t[7]=M-b,t[2]=h-m,t[5]=M+b,t[8]=1-c-f,t}function M(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,T=f*m-h*b,U=f*p-M*b,x=h*p-M*m,E=g*x-y*U+w*T+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*U+c*T)*E,t[1]=(l*O-u*x-c*C)*E,t[2]=(u*U-i*O+c*I)*E,t[3]=(o*U-r*x-a*T)*E,t[4]=(n*x-o*O+a*C)*E,t[5]=(r*O-n*U-a*I)*E,t[6]=(b*S-m*A+p*v)*E,t[7]=(m*w-d*S-p*y)*E,t[8]=(d*A-b*w+p*g)*E,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,m=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=e[0],M=e[1],d=e[2],b=e[3],m=e[4],p=e[5],g=e[6],y=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-h)<=v*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-M)<=v*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(l-p)<=v*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-g)<=v*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(o*o+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,multiplyScalar:function(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[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;if(!d)return null;let b=1/d;return t[0]=f*b,t[1]=(-s*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(s*n-o*l)*b,t[5]=(-i*n+o*a)*b,t[6]=M*b,t[7]=(-c*n+r*l)*b,t[8]=(u*n-r*a)*b,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*u,t[1]=M*o+h*i,t[2]=M*a+h*l,t[3]=M*u-h*r,t[4]=M*i-h*o,t[5]=M*l-h*a,t[6]=c,t[7]=s,t[8]=f,t},scale:f,scaleByVec2:function(t,e,n){let r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=l,t[6]=h*r+M*u+c,t[7]=h*o+M*i+s,t[8]=h*a+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>p,$h:()=>T,B8:()=>s,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>c,Tl:()=>h,X_:()=>S,e$:()=>d,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>M,kN:()=>m,l:()=>I,lw:()=>f,mg:()=>l,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>U,tZ:()=>_,ut:()=>F});var r=n(51850),o=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],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}function u(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t[9]=s,t[10]=f,t[11]=h,t[12]=M,t[13]=d,t[14]=b,t[15]=m,t}function i(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}function l(t,e){if(t===e){let n=e[1],r=e[2],o=e[3],a=e[6],u=e[7],i=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]=a,t[11]=e[14],t[12]=o,t[13]=u,t[14]=i}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 c(t,e){return s(t,e)||i(t),t}function s(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,T=f*m-h*b,U=f*p-M*b,x=h*p-M*m,E=g*x-y*U+w*T+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*U+c*T)*E,t[1]=(o*U-r*x-a*T)*E,t[2]=(b*S-m*A+p*v)*E,t[3]=(h*A-f*S-M*v)*E,t[4]=(l*O-u*x-c*C)*E,t[5]=(n*x-o*O+a*C)*E,t[6]=(m*w-d*S-p*y)*E,t[7]=(s*S-h*w+M*y)*E,t[8]=(u*U-i*O+c*I)*E,t[9]=(r*O-n*U-a*I)*E,t[10]=(d*A-b*w+p*g)*E,t[11]=(f*w-s*A-M*g)*E,t[12]=(i*C-u*T-l*I)*E,t[13]=(n*T-r*C+o*I)*E,t[14]=(b*y-d*v-m*g)*E,t[15]=(s*v-f*y+h*g)*E,t):null}function f(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=e[9],M=e[10],d=e[11],b=e[12],m=e[13],p=e[14],g=e[15],y=n[0],w=n[1],v=n[2],A=n[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*l+v*h+A*m,t[2]=y*a+w*c+v*M+A*p,t[3]=y*u+w*s+v*d+A*g,y=n[4],w=n[5],v=n[6],A=n[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*l+v*h+A*m,t[6]=y*a+w*c+v*M+A*p,t[7]=y*u+w*s+v*d+A*g,y=n[8],w=n[9],v=n[10],A=n[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*l+v*h+A*m,t[10]=y*a+w*c+v*M+A*p,t[11]=y*u+w*s+v*d+A*g,y=n[12],w=n[13],v=n[14],A=n[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*l+v*h+A*m,t[14]=y*a+w*c+v*M+A*p,t[15]=y*u+w*s+v*d+A*g,t}function h(t,e,n){let r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{let n=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7],M=e[8],d=e[9],b=e[10],m=e[11];t[0]=n,t[1]=u,t[2]=i,t[3]=l,t[4]=c,t[5]=s,t[6]=f,t[7]=h,t[8]=M,t[9]=d,t[10]=b,t[11]=m,t[12]=n*r+c*o+M*a+e[12],t[13]=u*r+s*o+d*a+e[13],t[14]=i*r+f*o+b*a+e[14],t[15]=l*r+h*o+m*a+e[15]}return t}function M(t,e,n){let r=n[0],o=n[1],a=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]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let u=r[0],i=r[1],l=r[2],c=Math.sqrt(u*u+i*i+l*l);if(c<=(0,o.FD)())return void a(t,e);c=1/c,u*=c,i*=c,l*=c;let s=Math.sin(n),f=Math.cos(n),h=1-f,M=e[0],d=e[1],b=e[2],m=e[3],p=e[4],g=e[5],y=e[6],w=e[7],v=e[8],A=e[9],S=e[10],I=e[11],C=u*u*h+f,O=i*u*h+l*s,T=l*u*h-i*s,U=u*i*h-l*s,x=i*i*h+f,E=l*i*h+u*s,F=u*l*h+i*s,_=i*l*h-u*s,P=l*l*h+f;t[0]=M*C+p*O+v*T,t[1]=d*C+g*O+A*T,t[2]=b*C+y*O+S*T,t[3]=m*C+w*O+I*T,t[4]=M*U+p*x+v*E,t[5]=d*U+g*x+A*E,t[6]=b*U+y*x+S*E,t[7]=m*U+w*x+I*E,t[8]=M*F+p*_+v*P,t[9]=d*F+g*_+A*P,t[10]=b*F+y*_+S*P,t[11]=m*F+w*_+I*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function b(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[4],u=e[5],i=e[6],l=e[7],c=e[8],s=e[9],f=e[10],h=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]=a*o+c*r,t[5]=u*o+s*r,t[6]=i*o+f*r,t[7]=l*o+h*r,t[8]=c*o-a*r,t[9]=s*o-u*r,t[10]=f*o-i*r,t[11]=h*o-l*r,t}function m(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return i(t);let r=n[0],a=n[1],u=n[2],l=Math.sqrt(r*r+a*a+u*u);if(l<=(0,o.FD)())return null;l=1/l,r*=l,a*=l,u*=l;let c=Math.sin(e),s=Math.cos(e),f=1-s;return t[0]=r*r*f+s,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+s,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,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}function w(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=r+r,l=o+o,c=a+a,s=r*i,f=r*l,h=r*c,M=o*l,d=o*c,b=a*c,m=u*i,p=u*l,g=u*c;return t[0]=1-(M+b),t[1]=f+g,t[2]=h-p,t[3]=0,t[4]=f-g,t[5]=1-(s+b),t[6]=d+m,t[7]=0,t[8]=h+p,t[9]=d-m,t[10]=1-(s+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(l*l+c*c+s*s),t}function I(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function C(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3],l=o+o,c=a+a,s=u+u,f=o*l,h=o*c,M=o*s,d=a*c,b=a*s,m=u*s,p=i*l,g=i*c,y=i*s,w=r[0],v=r[1],A=r[2];return t[0]=(1-(d+m))*w,t[1]=(h+y)*w,t[2]=(M-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+m))*v,t[6]=(b+p)*v,t[7]=0,t[8]=(M+g)*A,t[9]=(b-p)*A,t[10]=(1-(f+d))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,o){let a=e[0],u=e[1],i=e[2],l=e[3],c=a+a,s=u+u,f=i+i,h=a*c,M=a*s,d=a*f,b=u*s,m=u*f,p=i*f,g=l*c,y=l*s,w=l*f,v=r[0],A=r[1],S=r[2],I=o[0],C=o[1],O=o[2],T=(1-(b+p))*v,U=(M+w)*v,x=(d-y)*v,E=(M-w)*A,F=(1-(h+p))*A,_=(m+g)*A,P=(d+y)*S,q=(m-g)*S,D=(1-(h+b))*S;return t[0]=T,t[1]=U,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=_,t[7]=0,t[8]=P,t[9]=q,t[10]=D,t[11]=0,t[12]=n[0]+I-(T*I+E*C+P*O),t[13]=n[1]+C-(U*I+F*C+q*O),t[14]=n[2]+O-(x*I+_*C+D*O),t[15]=1,t}function T(t,e,n,r,o,a,u){let i=1/(n-e),l=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function U(t,e,n,r){let a=e[0],u=e[1],l=e[2],c=a-n[0],s=u-n[1],f=l-n[2],h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(s)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+s*s+f*f);c*=M,s*=M,f*=M;let d=r[0],b=r[1],m=r[2],p=b*f-m*s,g=m*c-d*f,y=d*s-b*c;M=Math.sqrt(p*p+g*g+y*y),M?(M=1/M,p*=M,g*=M,y*=M):(p=0,g=0,y=0);let w=s*y-f*g,v=f*p-c*y,A=c*g-s*p;M=Math.sqrt(w*w+v*v+A*A),M?(M=1/M,w*=M,v*=M,A*=M):(w=0,v=0,A=0),t[0]=p,t[1]=w,t[2]=c,t[3]=0,t[4]=g,t[5]=v,t[6]=s,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(p*a+g*u+y*l),t[13]=-(w*a+v*u+A*l),t[14]=-(c*a+s*u+f*l),t[15]=1}function x(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&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]}function F(t){let e=(0,o.FD)(),n=t[0],r=t[1],a=t[2],u=t[4],i=t[5],l=t[6],c=t[8],s=t[9],f=t[10];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(r*r+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e}function _(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15];return t[0]=i*(h*p-M*m)-f*(l*p-c*m)+b*(l*M-c*h),t[1]=-(r*(h*p-M*m)-f*(o*p-a*m)+b*(o*M-a*h)),t[2]=r*(l*p-c*m)-i*(o*p-a*m)+b*(o*c-a*l),t[3]=-(r*(l*M-c*h)-i*(o*M-a*h)+f*(o*c-a*l)),t[4]=-(u*(h*p-M*m)-s*(l*p-c*m)+d*(l*M-c*h)),t[5]=n*(h*p-M*m)-s*(o*p-a*m)+d*(o*M-a*h),t[6]=-(n*(l*p-c*m)-u*(o*p-a*m)+d*(o*c-a*l)),t[7]=n*(l*M-c*h)-u*(o*M-a*h)+s*(o*c-a*l),t[8]=u*(f*p-M*b)-s*(i*p-c*b)+d*(i*M-c*f),t[9]=-(n*(f*p-M*b)-s*(r*p-a*b)+d*(r*M-a*f)),t[10]=n*(i*p-c*b)-u*(r*p-a*b)+d*(r*c-a*i),t[11]=-(n*(i*M-c*f)-u*(r*M-a*f)+s*(r*c-a*i)),t[12]=-(u*(f*m-h*b)-s*(i*m-l*b)+d*(i*h-l*f)),t[13]=n*(f*m-h*b)-s*(r*m-o*b)+d*(r*h-o*f),t[14]=-(n*(i*m-l*b)-u*(r*m-o*b)+d*(r*l-o*i)),t[15]=n*(i*h-l*f)-u*(r*h-o*f)+s*(r*l-o*i),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8],s=t[9],f=t[10],h=t[11],M=t[12],d=t[13],b=t[14],m=t[15];return(e*u-n*a)*(f*m-h*b)-(e*i-r*a)*(s*m-h*d)+(e*l-o*a)*(s*b-f*d)+(n*i-r*u)*(c*m-h*M)-(n*l-o*u)*(c*b-f*M)+(r*l-o*i)*(c*d-s*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=t[9],M=t[10],d=t[11],b=t[12],m=t[13],p=t[14],g=t[15],y=e[0],w=e[1],v=e[2],A=e[3],S=e[4],I=e[5],C=e[6],O=e[7],T=e[8],U=e[9],x=e[10],E=e[11],F=e[12],_=e[13],P=e[14],q=e[15],D=(0,o.FD)();return Math.abs(n-y)<=D*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-S)<=D*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-I)<=D*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(s-O)<=D*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(f-T)<=D*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(h-U)<=D*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(M-x)<=D*Math.max(1,Math.abs(M),Math.abs(x))&&Math.abs(d-E)<=D*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(m-_)<=D*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[1]=s+p,t[2]=h-m,t[3]=0,t[4]=s-p,t[5]=1-c-d,t[6]=M+b,t[7]=0,t[8]=h+m,t[9]=M-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],o=-e[1],a=-e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=r*r+o*o+a*a+u*u;return f>0?(n[0]=2*(i*u+s*r+l*a-c*o)/f,n[1]=2*(l*u+s*o+c*r-i*a)/f,n[2]=2*(c*u+s*a+i*o-l*r)/f):(n[0]=2*(i*u+s*r+l*a-c*o),n[1]=2*(l*u+s*o+c*r-i*a),n[2]=2*(c*u+s*a+i*o-l*r)),w(t,e,n),t},fromRotation:p,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:T,getRotation:I,getScale:S,getTranslation:A,hasIdentityRotation:_,identity:i,invert:s,invertOrIdentity:c,isOrthoNormal:F,lookAt:U,mul:P,multiply:f,multiplyScalar:function(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[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,u){let i=1/(e-n),l=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){let a,u=1/Math.tan(e/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,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!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(u+i),c=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*l*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:b,rotateY:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[8],s=e[9],f=e[10],h=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]=a*o-c*r,t[1]=u*o-s*r,t[2]=i*o-f*r,t[3]=l*o-h*r,t[8]=a*r+c*o,t[9]=u*r+s*o,t[10]=i*r+f*o,t[11]=l*r+h*o,t},rotateZ:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=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]=a*o+c*r,t[1]=u*o+s*r,t[2]=i*o+f*r,t[3]=l*o+h*r,t[4]=c*o-a*r,t[5]=s*o-u*r,t[6]=f*o-i*r,t[7]=h*o-l*r,t},scale:M,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:x,targetTo:function(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=r[0],l=r[1],c=r[2],s=o-n[0],f=a-n[1],h=u-n[2],M=s*s+f*f+h*h;M>0&&(M=1/Math.sqrt(M),s*=M,f*=M,h*=M);let d=l*h-c*f,b=c*s-i*h,m=i*f-l*s;return M=d*d+b*b+m*m,M>0&&(M=1/Math.sqrt(M),d*=M,b*=M,m*=M),t[0]=d,t[1]=b,t[2]=m,t[3]=0,t[4]=f*m-h*b,t[5]=h*d-s*m,t[6]=s*b-f*d,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>b,WQ:()=>l,Z0:()=>T,_S:()=>M,aI:()=>q,ei:()=>U,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>m,jk:()=>d,lw:()=>s,m3:()=>w,oW:()=>D,t2:()=>P,tn:()=>h,ze:()=>v});var r=n(51850),o=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],o=e[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function O(t,e,n,r){let o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function T(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function U(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function x(t,e,n){return E(t,e,n[0],n[1],n[2],n[3])}function E(t,e,n,r,o,a){let u=e[0],i=e[1],l=e[2],c=r*l-o*i,s=o*u-n*l,f=n*i-r*u,h=r*f-o*s,M=o*c-n*f,d=n*s-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+s*b+2*M,t[2]=l+f*b+2*d,t}const F=(0,r.vt)(),_=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],c=(0,o.FD)();return Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const k=c,j=s,R=f,z=g,N=y,B=a,L=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){S(F,t),S(_,e);let n=I(F,_);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){let u=1-a,i=u*u,l=a*a,c=i*u,s=3*a*i,f=3*l*u,h=l*a;return t[0]=e[0]*c+n[0]*s+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*s+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*s+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=o*l-a*i,s=a*u-r*l,f=r*i-o*u,h=Math.sqrt(c*c+s*s+f*f);return t[0]=c/h,t[1]=s/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:R,divide:f,dot:I,equals:q,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){let u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,c=u*(a-1),s=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*c+o[0]*s,t[1]=e[1]*i+n[1]*l+r[1]*c+o[1]*s,t[2]=e[2]*i+n[2]*l+r[2]*c+o[2]*s,t},inverse:A,len:B,length:a,lerp:O,max:b,min:d,mul:j,multiply:s,negate:v,normalize:S,random:function(t,e=1){let n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/B(t))},set:i,sign:M,sqrDist:N,sqrLen:L,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:k,subtract:c,transformMat3:U,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,B,"jb",0,k,"lo",0,N,"uE",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>S,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>s,m3:()=>p,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function s(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function f(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function M(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 d(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function m(t){let e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function p(t){let e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function g(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n*n+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=n*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t[3]=i+r*(n[3]-i),t}function v(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*u,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*u,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*u,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*u,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=e[0],l=e[1],c=e[2],s=e[3],f=(0,r.FD)();return Math.abs(n-i)<=f*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-s)<=f*Math.max(1,Math.abs(u),Math.abs(s))}const I=i,C=l,O=c,T=d,U=b,x=m,E=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:T,distance:d,div:O,divide:c,dot:y,equals:S,exactEquals:A,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:x,length:m,lerp:w,max:f,min:s,mul:C,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,o,a,u,i,l,c=r.Ov;do{n=2*c()-1,o=2*c()-1,i=n*n+o*o}while(i>=1);do{a=2*c()-1,u=2*c()-1,l=a*a+u*u}while(l>=1);let s=Math.sqrt((1-i)/l);return t[0]=e*n,t[1]=e*o,t[2]=e*a*s,t[3]=e*u*s,t},round:h,scale:M,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:U,sqrLen:E,squaredDistance:b,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:i,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=n[3],s=c*r+i*a-l*o,f=c*o+l*r-u*a,h=c*a+u*o-i*r,M=-u*r-i*o-l*a;return t[0]=s*c+M*-u+f*-l-h*-i,t[1]=f*c+M*-i+h*-u-s*-l,t[2]=h*c+M*-l+s*-i-f*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,n){n.d(e,{$8:()=>I,Cc:()=>i,Hx:()=>m,Io:()=>A,KJ:()=>s,OS:()=>T,Sp:()=>M,XM:()=>f,YN:()=>h,ZH:()=>b,b6:()=>S,cU:()=>o,gg:()=>d,hs:()=>l,kU:()=>c,mP:()=>u,or:()=>O,pF:()=>x,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function a(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e){return 0===e?0:Math.ceil(t/e)*e}function i(t,e,n){return t+(e-t)*n}function l(t,e,n,r,o){return i(r,o,(t-e)/(n-e))}function c(t){return t*Math.PI/180}function s(t){return 180*t/Math.PI}function f(t){return Math.acos(a(t,-1,1))}function h(t){return Math.asin(a(t,-1,1))}function M(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function d(t,e,n=1e-6){return!M(t,e,n)&&t>e}function b(t,e,n=1e-6){return!M(t,e,n)&&t<e}function m(t,e,n=1e-6){return M(t,e,n)||t>e}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function g(t){return p.setFloat64(0,t),p.getBigInt64(0)}const y=1000000n,w=v(1);function v(t){let e=g(t=Math.abs(t)),n=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(e<=y?y:e-y);return Math.abs(t-n)}function A(t,e,n=w){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&v(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=g(t),o=g(e);return!(r<0!=o<0||(r<o?o-r:r-o)>y)}function S(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),o=Math.abs(t),a=Math.abs(e);if(0===t||0===e||o<1e-12&&a<1e-12){if(r>.01*n)return!1}else if(r/(o+a)>n)return!1;return!0}function I(t){return C(Math.max(-U,Math.min(t,U)))}function C(t){return r[0]=t,r[0]}function O(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(e,1)&&M(n,1)&&M(r,1))}function T(t,e){return(t%e+e)%e}const U=C(34028234663852886e22);function x(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,U])},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(49208);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){let l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;let e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}let c=n+3*i;for(let e=n,r=u;e<c;e+=3,r+=3)l(t,e,o,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>s,pO:()=>d,s7:()=>g,wy:()=>h});var r=n(34727),o=n(86211),a=n(73941),u=n(79258),i=n(34403),l=n(21325);const c={2:{5:d,7:null,9:null,10:d,1:C,6:null,8:null,0:null,3:g,11:y,2:d,4:_},5:{5:d,7:null,9:null,10:d,1:C,6:null,8:null,0:null,3:g,11:y,2:d,4:_},7:{5:null,7:d,9:null,10:d,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:m,6:null,8:null,0:null,3:d,11:v,2:b,4:p},4:{5:P,7:null,9:null,10:P,1:q,6:null,8:null,0:null,3:D,11:function(t,e,n,r){P(t,e,n,r),y(n,r,n,r)},2:P,4:d},1:{5:x,7:null,9:null,10:x,1:d,6:null,8:null,0:null,3:E,11:function(t,e,n,r){x(t,e,n,r),y(n,r,n,r)},2:x,4:F},6:{5:null,7:U,9:null,10:U,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:C,6:I,8:S,0:null,3:g,11:y,2:d,4:_},11:{5:w,7:null,9:null,10:w,1:function(t,e,n,r){w(t,e,n,r),C(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){w(t,e,n,r),g(n,r,n,r)},11:d,2:w,4:function(t,e,n,r){w(t,e,n,r),_(n,r,n,r)}}};function s(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(k.source.spatialReference===t&&k.dest.spatialReference===e)return k;let n=M(t,k.source),r=M(e,k.dest);return 0===n&&0===r?(0,l.aI)(t,e)?k.projector=d:k.projector=null:k.projector=c[n][r],k}function h(t,e){switch(s(t,e)){case d:return"copy3";case C:return"wgs84ToSphericalECEF";case g:return"wgs84ToWebMercator";case y:return"wgs84ToPlateCarree";case _:return"wgs84ToWGS84ECEF";case b:return"webMercatorToWGS84";case m:return"webMercatorToSphericalECEF";case p:return"webMercatorToWGS84ECEF";case v:return"webMercatorToPlateCarree";case P:return"wgs84ECEFToWGS84";case q:return"wgs84ECEFToSphericalECEF";case D:return"wgs84ECEFToWebMercator";case x:return"sphericalECEFToWGS84";case E:return"sphericalECEFToWebMercator";case U:return"sphericalMarsPCPFToMars2000";case T:return"sphericalMoonPCPFToMoon2000";case F:return"sphericalECEFToWGS84ECEF";case I:return"mars2000ToSphericalPCPF";case S:return"moon2000ToSphericalPCPF";default:return null}}function M(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),e.spatialReferenceId=(0,a.jA)(t)?1:(0,l.oT)(t)?2:(0,l.K8)(t)?3:(0,l.r1)(t)?11:t.wkt===a.Ro.wkt?4:4490===t.wkid?5:t.wkt===a.FY.wkt?6:t.wkt===a.LJ.wkt?8:(0,a.q8)(t)?7:(0,a.KQ)(t)?9:0):0}function d(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function b(t,e,n,r){n[r]=R*(t[e]/N),n[r+1]=R*(z-2*Math.atan(Math.exp(-t[e+1]/N))),n[r+2]=t[e+2]??0}function m(t,e,n,r){let o=t[e]/N,a=z-2*Math.atan(Math.exp(-t[e+1]/N)),u=N+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u}function p(t,e,n,r){b(t,e,n,r),_(n,r,n,r)}function g(t,e,n,o){!function(t,e,n,o,a){let u=.4999999*Math.PI,i=(0,r.qE)(j*t[e+1],-u,u),l=Math.sin(i);n[o++]=j*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function y(t,e,n,r){n[r]=t[e]*B,n[r+1]=t[e+1]*B,n[r+2]=t[e+2]??0}function w(t,e,n,r){n[r]=t[e]*L,n[r+1]=t[e+1]*L,n[r+2]=t[e+2]??0}function v(t,e,n,r){b(t,e,n,r),y(n,r,n,r)}function A(t,e,n,r,o){let a=o+(t[e+2]??0),u=j*t[e],i=j*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function S(t,e,n,r){A(t,e,n,r,u.Sw.radius)}function I(t,e,n,r){A(t,e,n,r,u.sH.radius)}function C(t,e,n,r){A(t,e,n,r,u.$O.radius)}function O(t,e,n,o,a){let u=t[e],i=t[e+1],l=t[e+2]??0,c=Math.sqrt(u*u+i*i+l*l),s=(0,r.YN)(l/(0===c?1:c)),f=Math.atan2(i,u);n[o++]=R*f,n[o++]=R*s,n[o]=c-a}function T(t,e,n,r){O(t,e,n,r,u.Sw.radius)}function U(t,e,n,r){O(t,e,n,r,u.sH.radius)}function x(t,e,n,r){O(t,e,n,r,u.$O.radius)}function E(t,e,n,r){x(t,e,n,r),g(n,r,n,r)}function F(t,e,n,r){x(t,e,n,r),_(n,r,n,r)}function _(t,e,n,r){!function(t,e,n,r,o){let a=j*t[e],u=j*t[e+1],i=t[e+2]??0,l=Math.sin(u),c=Math.cos(u),s=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(s+i)*c*Math.cos(a),n[r++]=(s+i)*c*Math.sin(a),n[r++]=(s*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function P(t,e,n,r){let o,a,l,c,s,f,h,M,d,b,m,p,g,y,w,v,A,S,I,C,O,T=i.TP,U=t[e],x=t[e+1],E=t[e+2]??0;o=Math.abs(E),a=U*U+x*x,l=Math.sqrt(a),c=a+E*E,s=Math.sqrt(c),C=Math.atan2(x,U),f=E*E/c,h=a/c,y=T.a2/s,w=T.a3-T.a4/s,h>.3?(M=o/s*(1+h*(T.a1+y+f*w)/s),I=Math.asin(M),b=M*M,d=Math.sqrt(1-b)):(d=l/s*(1-f*(T.a5-y-h*w)/s),I=Math.acos(d),b=1-d*d,M=Math.sqrt(b)),m=1-u.$O.eccentricitySquared*b,p=u.$O.radius/Math.sqrt(m),g=T.a6*p,y=l-p*d,w=o-g*M,A=d*y+M*w,v=d*w-M*y,S=v/(g/m+A),I+=S,O=A+v*S/2,E<0&&(I=-I),n[r++]=R*C,n[r++]=R*I,n[r]=O}function q(t,e,n,r){P(t,e,n,r),C(n,r,n,r)}function D(t,e,n,r){P(t,e,n,r),g(n,r,n,r)}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},j=(0,r.kU)(1),R=(0,r.KJ)(1),z=.5*Math.PI,N=u.$O.radius,B=N*Math.PI/180,L=180/(N*Math.PI);n.d(e,["w5",0,c])},98764(t,e,n){n.d(e,{lO:()=>s});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function s(t){let e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{let e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===h?n=i:t===M&&(n=l)}}}return f.set(t,n),n}const f=new Map,h=i.wkt.toUpperCase(),M=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,c])},34403(t,e,n){var r=n(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,u])},64798(t,e,n){n.r(e),n.d(e,{default:()=>q});var r=n(4576),o=n(34275),a=n(82534),u=n(35522);function i(){return new Float32Array(3)}function l(t){let e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(t,e,n){let r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function d(){return c(0,0,1)}const b=s(),m=f(),p=h(),g=M(),y=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:l,create:i,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:d,zeros:s},Symbol.toStringTag,{value:"Module"}));var w=n(51850),v=n(16930),A=n(9762),S=n(63531),I=n(69846),C=n(48425),O=n(59418),T=n(37203);function U(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){let n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let e=0;for(let n of t||[])e|=1<<n;return e}var F=n(57005);class _{transform(t){let e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(let t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){let e=function(t,e){if(null==t.encoding||""===t.encoding){let n=(0,O.wH)(e,t);if(null==n.vertexAttributes.position)return;let r=(0,O.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,l=new Float64Array(3*i);for(let t=0;t<i;t++)l[3*t]=r[3*t]*u[0]+a[0],l[3*t+1]=r[3*t+1]*u[1]+a[1],l[3*t+2]=r[3*t+2]*u[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,T.Me)(e).result}(t.schema,t.geometryBuffer),n=e.length/3,o=null,a=[],s=U(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});let f=U(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&f&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:f});let h=function(t,e,n,r){let{rendererJSON:o,isRGBRenderer:a}=t,u=null,i=null;if(e&&a)u=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);let t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=I.A.fromJSON(o);let t=i.stops;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){let n=(r-t[e-1].value)/(t[e].value-t[e-1].value);u[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),u[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),u[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=S.A.fromJSON(o);let t=i.colorClassBreakInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(n&&i?.colorModulation){let t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){let r=n[a],i=r>=e?1:r<=t?o:o+.7*(r-t)/(e-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,s,f,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){let u=t.filterAttributesData.filter(r.Ru).map(t=>{let r=U(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){let a=t.length/3,u=function(t){return t.map(t=>{let{filterJSON:e}=t;switch(e.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(e.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(e.requiredClearBits),requiredMask:E(e.requiredSetBits)};default:return t}})}(r),i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){let{clearMask:e,filterJSON:n,requiredMask:i,valuesSet:l}=u[t],c=o[t].values[r];switch(n.type){case"pointCloudValueFilter":{let t="exclude"===n.mode;l.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":((c&i)!==i||0!==(c&e))&&(a=!1);break;case"pointCloudReturnFilter":{let t=15&c,e=c>>>4&15,r=e>1,o=1===t,u=t===e,i=!1;for(let t of n.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(n[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],e[3*i]=e[3*r],e[3*i+1]=e[3*r+1],e[3*i+2]=e[3*r+2],i++)}return i}(e,h,o,t.filterInfo,u)}for(let r of t.userAttributesData){let t=U(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<h.length&&(h=h.slice(0,3*n)),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);let M=function(t,e,n,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,e))throw Error("Can't reproject");let a=l(n.getCenter((0,w.vt)())),s=i(),f=i(),h=c(n.halfSizeX,n.halfSizeY,n.halfSizeZ);n.getQuaternionConjugate(P);let M=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-a[0],s[1]=t[e+1]-a[1],s[2]=t[e+2]-a[2],(0,u.gL)(f,s,P),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[e++]=s[0],M[e++]=s[1],M[e]=s[2]}return n.setHalfSize(h),M}(e,n,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:M,rgb:h,attributes:a,pointIdFilterMap:o}}}const P=(0,a.vt)();function q(){return new _}},59418(t,e,n){n.d(e,{qs:()=>m,wH:()=>b,MA:()=>h,E5:()=>M,m0:()=>g});var r=n(49186),o=n(4718),a=n(53966),u=n(34275),i=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",a=0;for(;a<n;){let u=t[e+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let i=(31&u)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(15&u)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(7&u)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){let t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function s(t,e){let n={byteOffset:0,byteCount:0,fields:Object.create(null)},r=0;for(let o=0;o<e.length;o++){let a=e[o],u=a.valueType||a.type,i=w[u];n.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){let o,a=[],u=0,i=0;for(;i<t;i+=1){if(o=e[i],o>0){if(a.push(c(n,u,o-1)),0!==n[u+o-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else a.push(null);u+=o}return a}function h(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function M(t,e){if(!t)return null;let n=t[e];return(0,u.IY)(t)?-32768===n?null:n:(0,u._G)(t)?n===u.h2?null:n:n==n?n:null}function d(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){let n=s(t,e&&e.header),r=n.byteCount,o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,u=null==a.vertexCount?a.count:a.vertexCount;for(let t of e.ordering){if(!e.vertexAttributes[t])continue;let n={...e.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=n,r+=A(n.valueType)*n.valuesPerElement*u}let i=a.faceCount;if(e.faces&&i){o.faces={};for(let t of e.ordering){if(!e.faces[t])continue;let n={...e.faces[t],byteOffset:r,count:i};o.faces[t]=n,r+=A(n.valueType)*n.valuesPerElement*i}}let l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(let t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;let n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*l}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function m(t,e){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){let e={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t)switch(n){case"position":break;case"normal":e.normal=!0;break;case"uv0":e.uv0=!0;break;case"color":e.color=!0;break;case"uv-region":e.uvRegion=!0;break;case"feature-index":e.featureIndex=!0}return e}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){let e={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t.ordering)if(t.vertexAttributes[n])switch(n){case"position":break;case"normal":e.normal=!0;break;case"color":e.color=!0;break;case"uv0":e.uv0=!0;break;case"region":e.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(e.featureIndex=!0),e}(e)}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");let u=function(t,e,n){let a=null==e.header?{byteOffset:0,byteCount:0,fields:{count:n}}:s(t,e.header),u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)},i=a.byteCount;for(let t=0;t<e.ordering.length;t++){let n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=i,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let t=A(l.valueType);i+=i%t===0?0:t-i%t,l.byteOffset=i,l.byteCount=t*l.valuesPerElement*l.count}}i+=l.byteCount??0,u.entries[n]=l}return u.byteCount=i-u.byteOffset,u}(e,t,n);d(u.byteOffset+u.byteCount,e.byteLength,"attribute");let c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){let t=u.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,c);return c.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{let e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?h(e,c):function(t,e){let n=h(t,e);if(n.length>=1024)return n;let r=[];return n.forEach((t,e)=>r.push(M(n,e))),r}(e,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>c,Me:()=>a,mb:()=>l});var r=n(49186);function o(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,!0),checksum:e.getUint32(n+12,!0)}}function a(t){let e=new DataView(t,0),n=0,{identifier:a,version:i}=o(t,e,n);if(n+=16,"LEPCC "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),minX:c.getFloat64(s+8,!0),minY:c.getFloat64(s+16,!0),minZ:c.getFloat64(s+24,!0),maxX:c.getFloat64(s+32,!0),maxY:c.getFloat64(s+40,!0),maxZ:c.getFloat64(s+48,!0),errorX:c.getFloat64(s+56,!0),errorY:c.getFloat64(s+64,!0),errorZ:c.getFloat64(s+72,!0),count:c.getUint32(s+80,!0),reserved:c.getUint32(s+84,!0)});var c,s;if(n+=88,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Float64Array(3*l.count),h=[],M=[],d=[],b=[];if(n=u(t,n,h),n=u(t,n,M),n=u(t,n,d),n=u(t,n,b),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,p=0;for(let t=0;t<h.length;t++){p+=h[t];let e=0;for(let n=0;n<M[t];n++){e+=d[m];let t=b[m];f[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*e),f[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),f[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*t),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:f}}function u(t,e,n){let r=[];e=i(t,e,r);let o=[];for(let a=0;a<r.length;a++){o.length=0,e=i(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function i(t,e,n){let o=new DataView(t,e),a=o.getUint8(0),u=31&a,i=!!(32&a),l=(192&a)>>6,c=0;if(0===l)c=o.getUint32(1,!0),e+=5;else if(1===l)c=o.getUint16(1,!0),e+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");c=o.getUint8(1),e+=2}if(i)throw new r.A("lepcc-decode-error","LUT not implemented");let s=Math.ceil(c*u/8),f=new Uint8Array(t,e,s),h=0,M=0,d=0,b=-1>>>32-u;for(let t=0;t<c;t++){for(;M<u;)h|=f[d]<<M,M+=8,d+=1;n[t]=h&b,h>>>=u,M-=u,M+u>32&&(h|=f[d-1]>>8-M)}return e+d}function l(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"ClusterRGB"!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let i=(c=n,{sizeLo:(l=e).getUint32(c+0,!0),sizeHi:l.getUint32(c+4,!0),count:l.getUint32(c+8,!0),colorMapCount:l.getUint16(c+12,!0),lookupMethod:l.getUint8(c+14),compressionMethod:l.getUint8(c+15)});var l,c;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");let e=new Uint8Array(t,n,3*i.colorMapCount),o=new Uint8Array(t,n+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){let n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");let o=e.getUint8(n),a=e.getUint8(n+1),u=e.getUint8(n+2),l=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)l[3*t]=o,l[3*t+1]=a,l[3*t+2]=u;return l}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function c(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"Intensity "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),count:c.getUint32(s+8,!0),scaleFactor:c.getUint16(s+12,!0),bitsPerPoint:c.getUint8(s+14),reserved:c.getUint8(s+15)});var c,s;if(n+=16,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else{let e=[];if(i(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}return f}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9944],{61294(e,t,r){r.d(t,{J:()=>i});var n=function(){function e(e){this.message="JPEG error: "+e}return e.prototype=Error(),e.prototype.name="JpegError",e.constructor=e,e}(),i=function(){if(!self||!self.Uint8ClampedArray)return null;var e=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),t=4017,r=799,i=3406,o=2276,l=1567,a=3784,s=5793,u=2896;function h(){this.decodeTransform=null,this.colorTransform=-1}function f(e,t){for(var r,n,i=0,o=[],l=16;l>0&&!e[l-1];)l--;o.push({children:[],index:0});var a,s=o[0];for(r=0;r<l;r++){for(n=0;n<e[r];n++){for((s=o.pop()).children[s.index]=t[i];s.index>0;)s=o.pop();for(s.index++,o.push(s);o.length<=r;)o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a;i++}r+1<l&&(o.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a)}return o[0].children}function c(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function p(t,r,i,o,l,a,s,u,h){var f=i.mcusPerLine,p=i.progressive,d=r,g=0,y=0;function w(){if(y>0)return y--,g>>y&1;if(255===(g=t[r++])){var e=t[r++];if(e)throw new n("unexpected marker "+(g<<8|e).toString(16))}return y=7,g>>>7}function C(e){for(var t=e;;){if("number"==typeof(t=t[w()]))return t;if("object"!=typeof t)throw new n("invalid huffman sequence")}}function A(e){for(var t=0;e>0;)t=t<<1|w(),e--;return t}function x(e){if(1===e)return 1===w()?1:-1;var t=A(e);return t>=1<<e-1?t:t+(-1<<e)+1}var b,v=0,M=0;function k(e,t,r,n,i){var o=r%f;t(e,c(e,(r/f|0)*e.v+n,o*e.h+i))}function T(e,t,r){t(e,c(e,r/e.blocksPerLine|0,r%e.blocksPerLine))}for(var S,I,E,P,R,L,D,U,G=o.length,O=p?0===a?0===u?function(e,t){var r=C(e.huffmanTableDC),n=0===r?0:x(r)<<h;e.blockData[t]=e.pred+=n}:function(e,t){e.blockData[t]|=w()<<h}:0===u?function(t,r){if(v>0)v--;else for(var n=a,i=s;n<=i;){var o=C(t.huffmanTableAC),l=15&o,u=o>>4;if(0!==l){var f=e[n+=u];t.blockData[r+f]=x(l)*(1<<h),n++}else{if(u<15){v=A(u)+(1<<u)-1;break}n+=16}}}:function(t,r){for(var i,o,l=a,u=s,f=0;l<=u;){var c=e[l];switch(M){case 0:if(f=(o=C(t.huffmanTableAC))>>4,0==(i=15&o))f<15?(v=A(f)+(1<<f),M=4):(f=16,M=1);else{if(1!==i)throw new n("invalid ACn encoding");b=x(i),M=f?2:3}continue;case 1:case 2:t.blockData[r+c]?t.blockData[r+c]+=w()<<h:0===--f&&(M=2===M?3:0);break;case 3:t.blockData[r+c]?t.blockData[r+c]+=w()<<h:(t.blockData[r+c]=b<<h,M=0);break;case 4:t.blockData[r+c]&&(t.blockData[r+c]+=w()<<h)}l++}4===M&&0===--v&&(M=0)}:function(t,r){var n=C(t.huffmanTableDC),i=0===n?0:x(n);t.blockData[r]=t.pred+=i;for(var o=1;o<64;){var l=C(t.huffmanTableAC),a=15&l,s=l>>4;if(0!==a){var u=e[o+=s];t.blockData[r+u]=x(a),o++}else{if(s<15)break;o+=16}}},B=0,N=1===G?o[0].blocksPerLine*o[0].blocksPerColumn:f*i.mcusPerColumn;B<N;){var F=l?Math.min(N-B,l):N;for(I=0;I<G;I++)o[I].pred=0;if(v=0,1===G)for(S=o[0],R=0;R<F;R++)T(S,O,B),B++;else for(R=0;R<F;R++){for(I=0;I<G;I++)for(D=(S=o[I]).h,U=S.v,E=0;E<U;E++)for(P=0;P<D;P++)k(S,O,B,E,P);B++}y=0,(L=m(t,r))&&L.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+L.invalid),r=L.offset);var V=L&&L.marker;if(!V||V<=65280)throw new n("marker was not found");if(!(V>=65488&&V<=65495))break;r+=2}return(L=m(t,r))&&L.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+L.invalid),r=L.offset),r-d}function d(e,h,f){var c,p,d,g,m,y,w,C,A,x,b,v,M,k,T,S,I,E=e.quantizationTable,P=e.blockData;if(!E)throw new n("missing required Quantization Table.");for(var R=0;R<64;R+=8)A=P[h+R],x=P[h+R+1],b=P[h+R+2],v=P[h+R+3],M=P[h+R+4],k=P[h+R+5],T=P[h+R+6],S=P[h+R+7],A*=E[R],0!==(x|b|v|M|k|T|S)?(x*=E[R+1],b*=E[R+2],v*=E[R+3],M*=E[R+4],k*=E[R+5],T*=E[R+6],S*=E[R+7],p=(c=(c=s*A+128>>8)+(p=s*M+128>>8)+1>>1)-p,I=(d=b)*a+(g=T)*l+128>>8,d=d*l-g*a+128>>8,w=(m=(m=u*(x-S)+128>>8)+(w=k<<4)+1>>1)-w,y=(C=(C=u*(x+S)+128>>8)+(y=v<<4)+1>>1)-y,g=(c=c+(g=I)+1>>1)-g,d=(p=p+d+1>>1)-d,I=m*o+C*i+2048>>12,m=m*i-C*o+2048>>12,C=I,I=y*r+w*t+2048>>12,y=y*t-w*r+2048>>12,w=I,f[R]=c+C,f[R+7]=c-C,f[R+1]=p+w,f[R+6]=p-w,f[R+2]=d+y,f[R+5]=d-y,f[R+3]=g+m,f[R+4]=g-m):(I=s*A+512>>10,f[R]=I,f[R+1]=I,f[R+2]=I,f[R+3]=I,f[R+4]=I,f[R+5]=I,f[R+6]=I,f[R+7]=I);for(var L=0;L<8;++L)A=f[L],0!==((x=f[L+8])|(b=f[L+16])|(v=f[L+24])|(M=f[L+32])|(k=f[L+40])|(T=f[L+48])|(S=f[L+56]))?(p=(c=4112+((c=s*A+2048>>12)+(p=s*M+2048>>12)+1>>1))-p,I=(d=b)*a+(g=T)*l+2048>>12,d=d*l-g*a+2048>>12,g=I,w=(m=(m=u*(x-S)+2048>>12)+(w=k)+1>>1)-w,y=(C=(C=u*(x+S)+2048>>12)+(y=v)+1>>1)-y,I=m*o+C*i+2048>>12,m=m*i-C*o+2048>>12,C=I,I=y*r+w*t+2048>>12,y=y*t-w*r+2048>>12,A=(A=(c=c+g+1>>1)+C)<16?0:A>=4080?255:A>>4,x=(x=(p=p+d+1>>1)+(w=I))<16?0:x>=4080?255:x>>4,b=(b=(d=p-d)+y)<16?0:b>=4080?255:b>>4,v=(v=(g=c-g)+m)<16?0:v>=4080?255:v>>4,M=(M=g-m)<16?0:M>=4080?255:M>>4,k=(k=d-y)<16?0:k>=4080?255:k>>4,T=(T=p-w)<16?0:T>=4080?255:T>>4,S=(S=c-C)<16?0:S>=4080?255:S>>4,P[h+L]=A,P[h+L+8]=x,P[h+L+16]=b,P[h+L+24]=v,P[h+L+32]=M,P[h+L+40]=k,P[h+L+48]=T,P[h+L+56]=S):(I=(I=s*A+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,P[h+L]=I,P[h+L+8]=I,P[h+L+16]=I,P[h+L+24]=I,P[h+L+32]=I,P[h+L+40]=I,P[h+L+48]=I,P[h+L+56]=I)}function g(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,i=new Int16Array(64),o=0;o<n;o++)for(var l=0;l<r;l++)d(t,c(t,o,l),i);return t.blockData}function m(e,t,r){function n(t){return e[t]<<8|e[t+1]}var i=e.length-1,o=r<t?r:t;if(t>=i)return null;var l=n(t);if(l>=65472&&l<=65534)return{invalid:null,marker:l,offset:t};for(var a=n(o);!(a>=65472&&a<=65534);){if(++o>=i)return null;a=n(o)}return{invalid:l.toString(16),marker:a,offset:o}}return h.prototype={parse:function(t){function r(){var e=t[s]<<8|t[s+1];return s+=2,e}function i(){var e=r(),n=s+e-2,i=m(t,n,s);i&&i.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+i.invalid),n=i.offset);var o=t.subarray(s,n);return s+=o.length,o}function o(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0;n<e.components.length;n++){N=e.components[n];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*N.h/e.maxH),o=Math.ceil(Math.ceil(e.scanLines/8)*N.v/e.maxV),l=t*N.h,a=r*N.v*64*(l+1);N.blockData=new Int16Array(a),N.blocksPerLine=i,N.blocksPerColumn=o}e.mcusPerLine=t,e.mcusPerColumn=r}var l,a,s=0,u=null,h=null,c=[],d=[],y=[],w=r();if(65496!==w)throw new n("SOI not found");for(w=r();65497!==w;){var C,A,x;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var b=i();65504===w&&74===b[0]&&70===b[1]&&73===b[2]&&70===b[3]&&0===b[4]&&(u={version:{major:b[5],minor:b[6]},densityUnits:b[7],xDensity:b[8]<<8|b[9],yDensity:b[10]<<8|b[11],thumbWidth:b[12],thumbHeight:b[13],thumbData:b.subarray(14,14+3*b[12]*b[13])}),65518===w&&65===b[0]&&100===b[1]&&111===b[2]&&98===b[3]&&101===b[4]&&(h={version:b[5]<<8|b[6],flags0:b[7]<<8|b[8],flags1:b[9]<<8|b[10],transformCode:b[11]});break;case 65499:for(var v=r()+s-2;s<v;){var M=t[s++],k=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new n("DQT - invalid table spec");for(A=0;A<64;A++)k[e[A]]=r()}else for(A=0;A<64;A++)k[e[A]]=t[s++];c[15&M]=k}break;case 65472:case 65473:case 65474:if(l)throw new n("Only single frame JPEGs supported");r(),(l={}).extended=65473===w,l.progressive=65474===w,l.precision=t[s++],l.scanLines=r(),l.samplesPerLine=r(),l.components=[],l.componentIds={};var T,S=t[s++],I=0,E=0;for(C=0;C<S;C++){T=t[s];var P=t[s+1]>>4,R=15&t[s+1];I<P&&(I=P),E<R&&(E=R);var L=t[s+2];x=l.components.push({h:P,v:R,quantizationId:L,quantizationTable:null}),l.componentIds[T]=x-1,s+=3}l.maxH=I,l.maxV=E,o(l);break;case 65476:var D=r();for(C=2;C<D;){var U=t[s++],G=new Uint8Array(16),O=0;for(A=0;A<16;A++,s++)O+=G[A]=t[s];var B=new Uint8Array(O);for(A=0;A<O;A++,s++)B[A]=t[s];C+=17+O,(U>>4?d:y)[15&U]=f(G,B)}break;case 65501:r(),a=r();break;case 65498:r();var N,F=t[s++],V=[];for(C=0;C<F;C++){var j=l.componentIds[t[s++]];N=l.components[j];var Z=t[s++];N.huffmanTableDC=y[Z>>4],N.huffmanTableAC=d[15&Z],V.push(N)}var W=t[s++],_=t[s++],z=t[s++],H=p(t,s,l,V,a,W,_,z>>4,15&z);s+=H;break;case 65535:255!==t[s]&&s--;break;default:if(255===t[s-3]&&t[s-2]>=192&&t[s-2]<=254){s-=3;break}throw new n("unknown marker "+w.toString(16))}w=r()}for(this.width=l.samplesPerLine,this.height=l.scanLines,this.jfif=u,this.eof=s,this.adobe=h,this.components=[],C=0;C<l.components.length;C++){var K=c[(N=l.components[C]).quantizationId];K&&(N.quantizationTable=K),this.components.push({output:g(0,N),scaleX:N.h/l.maxH,scaleY:N.v/l.maxV,blocksPerLine:N.blocksPerLine,blocksPerColumn:N.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,n,i,o,l,a,s,u,h,f,c,p=this.width/e,d=this.height/t,g=0,m=this.components.length,y=e*t*m,w=new Uint8ClampedArray(y),C=new Uint32Array(e),A=4294967288;for(s=0;s<m;s++){for(n=(r=this.components[s]).scaleX*p,i=r.scaleY*d,g=s,c=r.output,o=r.blocksPerLine+1<<3,l=0;l<e;l++)u=0|l*n,C[l]=(u&A)<<3|7&u;for(a=0;a<t;a++)for(f=o*((u=0|a*i)&A)|(7&u)<<3,l=0;l<e;l++)w[g]=c[f+C[l]],g+=m}var x=this.decodeTransform;if(x)for(s=0;s<y;)for(u=0,h=0;u<m;u++,s++,h+=2)w[s]=(w[s]*x[h]>>8)+x[h+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(e){for(var t,r,n,i=0,o=e.length;i<o;i+=3)t=e[i],r=e[i+1],n=e[i+2],e[i]=t-179.456+1.402*n,e[i+1]=t+135.459-.344*r-.714*n,e[i+2]=t-226.816+1.772*r;return e},_convertYcckToRgb:function(e){for(var t,r,n,i,o=0,l=0,a=e.length;l<a;l+=4)t=e[l],r=e[l+1],n=e[l+2],i=e[l+3],e[o++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*t+.00048449797120281*i-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),e[o++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*t+.000426105652938837*i-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),e[o++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return e},_convertYcckToCmyk:function(e){for(var t,r,n,i=0,o=e.length;i<o;i+=4)t=e[i],r=e[i+1],n=e[i+2],e[i]=434.456-t-1.402*n,e[i+1]=119.541-t+.344*r+.714*n,e[i+2]=481.816-t-1.772*r;return e},_convertCmykToRgb:function(e){for(var t,r,n,i,o=0,l=1/255,a=0,s=e.length;a<s;a+=4)t=e[a]*l,r=e[a+1]*l,n=e[a+2]*l,i=e[a+3]*l,e[o++]=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*n+212.25662451639585*i-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n-17.873870861415444*i-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*i+17.5119270841813)-i*(21.86122147463605*i+189.48180835922747),e[o++]=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*n+31.159100130055922*i-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*i-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*i-24.86741582555878)-i*(20.737325471181034*i+187.80453709719578),e[o++]=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*n-.23883238689178934*i-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*i-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*i-193.58209356861505)-i*(22.33816807309886*i+180.12613974708367);return e},getData:function(e,t,r){if(this.numComponents>4)throw new n("Unsupported color mode");var i=this._getLinearizedBlockData(e,t);if(1===this.numComponents&&r){for(var o=i.length,l=new Uint8ClampedArray(3*o),a=0,s=0;s<o;s++){var u=i[s];l[a++]=u,l[a++]=u,l[a++]=u}return l}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(i);if(4===this.numComponents){if(this._isColorConversionNeeded())return r?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(r)return this._convertCmykToRgb(i)}return i}},h}()},85334(e,t,r){r.d(t,{$:()=>w,IB:()=>a,Iy:()=>M,KV:()=>b,N2:()=>C,RH:()=>x,ZD:()=>A,sn:()=>v});var n=r(68197),i=r(4576),o=r(4718),l=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function s(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const f=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function p(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let o=e.length,l=e[0].length,a=0;for(r=0;r<o;r++){for(a=0,n=0;n<l;n++)a+=e[r][n]*t[n];i.push(a)}return i}function d(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=p(f,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function g(e){let t=p(c,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function y(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function w(e){return a(e)?e:h(e)?function(e){return g(y(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return g(y(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?g(e):s(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,o=i*n,l=o*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:o,g:l,b:0};break;case 1:t={r:l,g:o,b:0};break;case 2:t={r:0,g:o,b:l};break;case 3:t={r:0,g:l,b:o};break;case 4:t={r:l,g:0,b:o};break;case 5:case 6:t={r:o,g:0,b:l};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-o),t.g=Math.round(t.g+i-o),t.b=Math.round(t.b+i-o),t}(e):e}function C(e){return s(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),o=i-Math.min(t,r,n),l=i,a=0===o?0:i===t?(r-n)/o%6:i===r?(n-t)/o+2:(t-r)/o+4,s=0===o?0:o/l;return a<0&&(a+=6),a*=60,s*=100,l*=100/255,{h:a,s,v:l}}(w(e))}function A(e){return u(e)?e:function(e){return m(d(e))}(w(e))}function x(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o=o>0?o:o+2*Math.PI,{l:t,c:i,h:o}}(m(d(e)))}(w(e))}function b(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function v(e){return e.length=4,b(e),e[3]??=1,(0,l.qE)(e[3],0,1),e}function M(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,o.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],o=e.length-1,l=Math.ceil((t-e.length)/o);e:for(let i=0;i<o;i++){let o=e[i],a=e[i+1];for(let i=1;i<=l;i++){let s=i/(l+1);if(n.push(T(o,a,s,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const k=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function T(e,t,r,o={}){let l=e.r,a=e.g,s=e.b,u=t.r,h=t.g,f=t.b,c=Math.round(l+(u-l)*r),p=Math.round(a+(h-a)*r),d=Math.round(s+(f-s)*r);if(!o.offset)return new n.A([c,p,d]);let g=(0,i.Mo)(o.seed);return new n.A([k(c,g),k(p,g),k(d,g)])}},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(){return i(1,1,1,1)}function l(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function s(){return i(0,0,1,0)}function u(){return i(0,0,0,1)}r.d(t,{_Y:()=>u,fA:()=>i,vt:()=>n});const h=[0,0,0,0],f=o(),c=l(),p=a(),d=s(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:g,UNIT_X:c,UNIT_Y:p,UNIT_Z:d,ZEROS:h,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:function(e,t,r,n){return[e,t,r,n]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:o,unitW:u,unitX:l,unitY:a,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,h,"v7",0,g])},78955(e,t,r){r.d(t,{Bw:()=>m,C:()=>i,Cc:()=>A,LI:()=>c,Om:()=>C,S8:()=>w,T9:()=>f,WQ:()=>l,Z0:()=>x,aI:()=>v,hG:()=>g,hZ:()=>o,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>b});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function h(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function c(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function p(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function d(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function g(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function m(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function y(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function w(e,t){let r=t[0],n=t[1],i=t[2],o=t[3],l=r*r+n*n+i*i+o*o;return l>0&&(l=1/Math.sqrt(l),e[0]=r*l,e[1]=n*l,e[2]=i*l,e[3]=o*l),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function A(e,t,r,n){let i=t[0],o=t[1],l=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=l+n*(r[2]-l),e[3]=a+n*(r[3]-a),e}function x(e,t,r){let n=t[0],i=t[1],o=t[2],l=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*l,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*l,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*l,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*l,e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function v(e,t){let r=e[0],i=e[1],o=e[2],l=e[3],a=t[0],s=t[1],u=t[2],h=t[3],f=(0,n.FD)();return Math.abs(r-a)<=f*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=f*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=f*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(l-h)<=f*Math.max(1,Math.abs(l),Math.abs(h))}const M=a,k=s,T=u,S=d,I=g,E=m,P=y;Object.freeze(Object.defineProperty({__proto__:null,add:l,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:d,div:T,divide:u,dot:C,equals:v,exactEquals:b,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:E,length:m,lerp:A,max:f,min:h,mul:k,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:w,random:function(e,t=1){let r,i,o,l,a,s,u=n.Ov;do{r=2*u()-1,i=2*u()-1,a=r*r+i*i}while(a>=1);do{o=2*u()-1,l=2*u()-1,s=o*o+l*l}while(s>=1);let h=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*o*h,e[3]=t*l*h,e},round:c,scale:p,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:I,sqrLen:P,squaredDistance:g,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:a,transformMat4:x,transformQuat:function(e,t,r){let n=t[0],i=t[1],o=t[2],l=r[0],a=r[1],s=r[2],u=r[3],h=u*n+a*o-s*i,f=u*i+s*n-l*o,c=u*o+l*i-a*n,p=-l*n-a*i-s*o;return e[0]=h*u+p*-l+f*-s-c*-a,e[1]=f*u+p*-a+c*-l-h*-s,e[2]=c*u+p*-s+h*-a-f*-l,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},9334(e,t,r){function n(e,t){let r=0,n="",i=0,o=0,l=e.length;for(;r<l;)o=e[r++],i=o>>4,i<8?i=1:15===i?(i=4,o=(7&o)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]):14===i?(i=3,o=(15&o)<<12|(63&e[r++])<<6|63&e[r++]):(i=2,o=(31&o)<<6|63&e[r++]),(0!==o||t)&&(n+=String.fromCharCode(o));return n}r.d(t,{w:()=>n})},53593(e,t,r){r.d(t,{D:()=>l,E:()=>p});var n=r(49186),i=r(17676),o=r(8003);async function l(e,t,r){if(!e||e.byteLength<10)throw new n.A("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:o,height:l,format:h}=t,{applyJpegMask:p}=t;if(p&&(!o||!l))throw new n.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");let d=null;"jpg"===h&&p&&o&&l&&(d=await c(e,{width:o,height:l}));try{let n=new Blob([new Uint8Array(e)],{type:f(h)}),o=await createImageBitmap(n);(0,i.Te)(r);let{useTiledDecoding:l,tileIndex:c,tileSize:p}=t;if(l&&null==c)return s(o,d,p);if(null!=c&&null!=p)return u(o,c,p);try{return a(o,d)}catch(e){if((0,i.QP)(e),o.width>4096||o.height>4096)return s(o,d);throw e}}catch(e){throw(0,i.QP)(e),new n.A("imagecanvasdecoder: decode","cannot load image")}}function a(e,t){let{width:r,height:i}=e,o=new OffscreenCanvas(r,i),l=o.getContext("2d");if(!l)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");l.drawImage(e,0,0,r,i);let a=h(l.getImageData(0,0,r,i),r,i,t);return o.width=0,o.height=0,a}function s(e,t,r=[2048,2048]){let[i,o]=r,l=new OffscreenCanvas(i,o),a=l.getContext("2d",{willReadFrequently:!0});if(!a)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");let{width:s,height:u}=e,h=s*u,f=new Uint8Array(h),c=new Uint8Array(h),p=new Uint8Array(h),d=null==t;t||=new Uint8Array(h);for(let r=0;r<u;r+=o){let n=Math.min(o,u-r);for(let o=0;o<s;o+=i){let l=Math.min(i,s-o);a.clearRect(0,0,l,n),a.drawImage(e,o,r,l,n,0,0,l,n);let{data:u}=a.getImageData(0,0,l,n);for(let e=0;e<n;e++){let n=e*l*4,i=(r+e)*s+o;for(let e=0;e<l;e++,n+=4,i++)f[i]=u[n],c[i]=u[n+1],p[i]=u[n+2],d&&(t[i]=u[n+3])}}}let g={width:s,height:u,pixels:[f,c,p],mask:t,pixelType:"u8"};return l.width=0,l.height=0,console.log(`decodeFullImageTiled: ${s}x${u} using tile ${i}x${o}`,g),g}function u(e,t,r){let[i,o,l]=t,[a,s]=r,u=Math.ceil(e.width/2**i),f=Math.ceil(e.height/2**i),c=Math.ceil(f/s),p=Math.ceil(u/a);if(o>=c||l>=p)return null;let d=new OffscreenCanvas(u,f),g=d.getContext("2d");if(!g)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");g.drawImage(e,0,0,u,f);let m=l*a,y=o*s,w=Math.min(a,u-m),C=Math.min(s,f-y),A=h(g.getImageData(m,y,w,C),a,s);return d.width=0,d.height=0,A}function h(e,t,r,n){let i=t*r,o=new Uint8Array(i),l=new Uint8Array(i),a=new Uint8Array(i),s=null==n;n||=new Uint8Array(i);let u={width:t,height:r,pixels:[o,l,a],mask:n,pixelType:"u8"},{width:h,height:f,data:c}=e;if(h===t&&f===r){for(let e=0,t=0;e<i;e++,t+=4)o[e]=c[t],l[e]=c[t+1],a[e]=c[t+2],s&&(n[e]=c[t+3]);return u}for(let e=0;e<f;e++){let r=e*h*4;for(let i=0;i<h;i++){let u=e*t+i;o[u]=c[r+4*i],l[u]=c[r+4*i+1],a[u]=c[r+4*i+2],s&&(n[u]=c[r+4*i+3])}}return u}function f(e){return`image/${"jpg"===e?"jpeg":e}`}async function c(e,t){try{let r=new Uint8Array(e),n=Math.ceil(r.length/2),i=r.length-2;for(;n<i&&(255!==r[n]||217!==r[n+1]);n++);n+=2;let o=null;return n<r.length-1&&(o=await p(r.subarray(n,-4),t.width*t.height)),o}catch{return null}}async function p(e,t){try{let r=await(0,o.U)(e),n=new Uint8Array(t);for(let e=0,t=0;e<r.length;e++)for(let i=7;i>=0;i--)n[t++]=r[e]>>i&1;return n}catch{return null}}},85951(e,t,r){r.d(t,{D:()=>l,R:()=>o});var n=r(53593),i=r(61294);function o(e){let t=new Uint8Array(e),r=t.length;if(255!==t[0]||216!==t[1])return null;let n=2;for(;n<r&&255===t[n++];){for(;255===t[n];)n++;if(n>=r)break;let e=t[n++];if(217===e||218===e)break;if(e>=208&&e<=215||1===e)continue;let i=t[n]<<8|t[n+1];if(e>=192&&e<=207&&196!==e&&200!==e&&204!==e&&i>=8){let e=n+2,r=t[e+1]<<8|t[e+2];return{width:t[e+3]<<8|t[e+4],height:r,planes:t[e+5]}}n+=i}return null}async function l(e,t={}){let r=new Uint8Array(e),o=new i.J;o.parse(r);let{width:l,height:a,numComponents:s,eof:u}=o,h=t.decodeJpegAsRgb??1!==s,f=o.getData(l,a,h),c=l*a,p=null,{applyJpegMask:d=!1}=t;d&&u<r.length-1&&(p=await(0,n.E)(r.subarray(u,-4),c));let g,m=h?3:s;if(1===m&&f.length===l*a){let e=new Uint8Array(f.buffer);g=[e,e,e]}else{g=[];for(let e=0;e<m;e++)g.push(new Uint8Array(c));for(let e=0,t=0;e<c;e++)for(let r=0;r<m;r++)g[r][e]=f[t++]}return{width:l,height:a,pixels:g,mask:p}}},96381(e,t,r){r.d(t,{D:()=>X,g:()=>Y});var n=r(49186),i=r(97768),o=r(17676),l=r(53593),a=r(85951),s=r(2741);const u=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let h=null;function f(){return h||(h=r.e(382).then(()=>r(30382)).then(({default:e})=>e({locateFile:e=>(0,s.s)(`esri/layers/raster/formats/${e}`)})).then(e=>{!function(e){let t,{_malloc:r,_free:n,memory:i,_lerc_getBlobInfo:o,_lerc_getDataRanges:l,_lerc_decode_4D:a}=e,s=e=>{let n=e.map(e=>function(e){return 16+(e>>3<<3)}(e)),o=n.reduce((e,t)=>e+t),l=r(o);t=new Uint8Array(i.buffer);let a=n[0];n[0]=l;for(let e=1;e<n.length;e++){let t=n[e];n[e]=n[e-1]+a,a=t}return n};c.getBlobInfo=e=>{let r=new Uint8Array(48),a=new Uint8Array(24),[u,h,f]=s([e.length,r.length,a.length]);t.set(e,u),t.set(r,h),t.set(a,f);let c=o(u,e.length,h,f,12,3);if(c)throw n(u),Error(`lerc-getBlobInfo: error code is ${c}`);t=new Uint8Array(i.buffer),p(t,h,r),p(t,f,a);let d=new Uint32Array(r.buffer),g=new Float64Array(a.buffer),[m,y,,w,C,A,x,b,v,M,k]=d,T=0===x,S={version:m,depthCount:M,width:w,height:C,validPixelCount:x,bandCount:A,blobSize:b,maskCount:v,dataType:y,minValue:g[0],maxValue:g[1],maxZerror:g[2],statistics:[],bandCountWithNoData:k};if(k&&M>1)return n(u),S;if(1===M&&1===A){n(u);let e=T?0:g[0],t=T?0:g[1];return S.statistics.push({minValue:e,maxValue:t}),S}let I=M*A*8,E=new Uint8Array(I),P=new Uint8Array(I),R=u,L=0,D=0,U=!1;if(t.byteLength<u+2*I?(n(u),U=!0,[R,L,D]=s([e.length,I,I]),t.set(e,R)):[L,D]=s([I,I]),t.set(E,L),t.set(P,D),c=l(R,e.length,M,A,L,D),c)throw n(R),U||n(L),Error(`lerc-getDataRanges: error code is ${c}`);t=new Uint8Array(i.buffer),p(t,L,E),p(t,D,P);let G=new Float64Array(E.buffer),O=new Float64Array(P.buffer),B=S.statistics;for(let e=0;e<A;e++)if(M>1){let t=G.slice(e*M,(e+1)*M),r=O.slice(e*M,(e+1)*M),n=T?0:Math.min.apply(null,t),i=T?0:Math.max.apply(null,r);B.push({minValue:n,maxValue:i,depthStats:{minValues:t,maxValues:r}})}else B.push({minValue:T?0:G[e],maxValue:T?0:O[e]});return n(R),U||n(L),S},c.decode=(e,r)=>{let{maskCount:o,depthCount:l,bandCount:h,width:f,height:c,dataType:d,bandCountWithNoData:g,validPixelCount:m}=r,y=u[d],w=f*c,C=new Uint8Array(w*h),A=w*l*h*y.size,x=new Uint8Array(A),b=new Uint8Array(h),v=new Uint8Array(8*h);if(0===m)return{data:x,maskData:C,noDataValues:null};let[M,k,T,S,I]=s([e.length,C.length,x.length,b.length,v.length]);t.set(e,M),t.set(C,k),t.set(x,T),t.set(b,S),t.set(v,I);let E=a(M,e.length,o,k,l,f,c,h,d,T,S,I);if(E)throw n(M),Error(`lerc-decode: error code is ${E}`);t=new Uint8Array(i.buffer),p(t,T,x),p(t,k,C);let P=null;if(g){p(t,S,b),p(t,I,v),P=[];let e=new Float64Array(v.buffer);for(let t=0;t<b.length;t++)P.push(b[t]?e[t]:null)}return n(M),{data:x,maskData:C,noDataValues:P}}}(e)}),h)}const c={getBlobInfo:null,decode:null};function p(e,t,r){r.set(e.slice(t,t+r.length))}function d(e,t,r,n,i){if(r<2)return e;let o=new n(t*r);for(let n=0,i=0;n<t;n++)for(let l=0,a=n;l<r;l++,a+=t)o[a]=e[i++];return o}function g(e,t={}){let r=t.inputOffset??0,n=e instanceof Uint8Array?e.subarray(r):new Uint8Array(e,r),i=c.getBlobInfo(n),{data:o,maskData:l,noDataValues:a}=c.decode(n,i),{width:s,height:h,bandCount:f,depthCount:p,dataType:g,maskCount:m,statistics:y}=i,w=u[g],C=new w.ctor(o.buffer),A=[],x=[],b=s*h,v=b*p,M=u.find(e=>e.pixelType===t.outputPixelType)??w,k=M.pixelType!==w.pixelType;for(let e=0;e<f;e++){let r=e*v,n=r+v,i=C.subarray(r,n),o=k?new M.ctor(i):i;if(t.returnInterleaved)A.push(o);else{let e=d(o,b,p,M.ctor);A.push(e)}x.push(l.subarray(r,n))}let T=0===m?null:1===m?x[0]:new Uint8Array(b);if(m>1){T.set(x[0]);for(let e=1;e<x.length;e++){let t=x[e];for(let e=0;e<b;e++)T[e]=T[e]&t[e]}}let{noDataValue:S}=t,I=null!=S&&M.range[0]<=S&&M.range[1]>=S,{validPixelCount:E}=i;if(m>0&&I)for(let e=0;e<f;e++){let t=A[e];if(0===E)t.fill(S);else{let r=x[e]||T;for(let e=0;e<b;e++)0===r[e]&&(t[e]=S)}}let P=m===f&&f>1?x:null;return{width:s,height:h,bandCount:f,pixelType:M.pixelType,depthCount:p,statistics:y,pixels:A,mask:T,validPixelCount:E,bandMasks:P,noDataValues:a}}function m(){let e=[];for(let t=0;t<=257;t++)e[t]=[t];return e}function y(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}const w=new Set;function C(e,t,r,n=!0){let i=function(e,t,r,n=!0){if(t%4!=0||r%4!=0){let i=new ArrayBuffer(4*Math.ceil(r/4)),o=new Uint8Array(i),l=new Uint8Array(e,t,r);if(n)for(let e=0;e<o.length;e+=4)o[e]=l[e+3],o[e+1]=l[e+2],o[e+2]=l[e+1],o[e+3]=l[e];else o.set(l);return new Uint32Array(o.buffer)}if(n){let n=new Uint8Array(e,t,r),i=new Uint8Array(n.length);for(let e=0;e<i.length;e+=4)i[e]=n[e+3],i[e+1]=n[e+2],i[e+2]=n[e+1],i[e+3]=n[e];return new Uint32Array(i.buffer)}return new Uint32Array(e,t,r/4)}(e,t,r,n),o=9,l=m(),a=32,s=l.length,u=[],h=1,f=i[0],c=0,p=i.length,d=8*(4*p-r),g=[];for(;null!=f;){if(a>=o)a-=o,c=f>>>32-o,f<<=o;else{c=f>>>32-a,f=i[h++];let e=o-a;a=32-e,c=(c<<e)+(f>>>a),f<<=e}if(257===c)break;if(256===c){o=9,l=m(),s=l.length,u=[];continue}let e=l[c];if(null==e){if(c>l.length)throw Error("data integrity issue: code does not exist on code page");u.push(u[0]),l[s++]=u.slice(),y(g,u)}else y(g,e),u.push(e[0]),u.length>1&&(l[s++]=u.slice()),u=e.slice();if(w.has(s)&&o++,0===a&&(f=i[h++],a=32),h>p||h===p&&a<=d)break}return new Uint8Array(g)}w.add(511),w.add(1023),w.add(2047),w.add(4095),w.add(8191);var A=r(94778);const x=new Set(["uint8","int8","uint16","int16","uint32","int32","int64","uint64"]),b=new Map([["uint8",{byteCount:1,pixelType:"u8",ctor:Uint8Array}],["int8",{byteCount:1,pixelType:"s8",ctor:Int8Array}],["uint16",{byteCount:2,pixelType:"u16",ctor:Uint16Array}],["int16",{byteCount:2,pixelType:"s16",ctor:Int16Array}],["uint32",{byteCount:4,pixelType:"u32",ctor:Uint32Array}],["int32",{byteCount:4,pixelType:"s32",ctor:Int32Array}],["uint64",{byteCount:8,pixelType:"f64",ctor:BigUint64Array}],["int64",{byteCount:8,pixelType:"f64",ctor:BigInt64Array}]]);let v;const M={getBlobInfo:null,decode:null};function k(e){if(!b.has(e))throw Error("Unsupported data type: "+e);return b.get(e)}const T=(e,t)=>{let r=t.width*t.height,n=t.pixelType;return Math.floor(e.byteLength/(r*S(n)))},S=e=>{let t=1;switch(e){case Uint8Array:case Int8Array:t=1;break;case Uint16Array:case Int16Array:t=2;break;case Uint32Array:case Int32Array:case Float32Array:t=4;break;case Float64Array:t=8}return t};r(44208);var I=r(61294),E=r(44094),P=r(10713),R=r(8003);function L(e,t){let r="unknown";return 3===e?r=64===t?"f64":"f32":1===e?1===t?r="u1":2===t?r="u2":4===t?r="u4":t<=8?r="u8":t<=16?r="u16":t<=32&&(r="u32"):2===e&&(t<=8?r="s8":t<=16?r="s16":t<=32&&(r="s32")),r}function D(e){let t=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f64":t=Float64Array;break;default:t=Float32Array}return t}function U(e,t){if(t%8==0)return e;let r=t>16?32:t>8?16:8;r>8&&(e=O(e,32===r?4:2));let n=32===r?Uint32Array:16===r?Uint16Array:Uint8Array,i=new n(e),o=Math.floor(8*e.byteLength/t+1e-6),l=new n(o),a=(1<<t)-1,s=0,u=0,h=0;for(let e=0;e<o;e++)if(0===u&&(h=i[s++],u=r),u>=t)l[e]=h>>>u-t&a,u-=t;else{let n=t-u,o=(h&a)<<n&a;h=i[s++],u=r-n,o+=h>>>u,l[e]=o}return l.buffer}function G(e,t,r){let n=new I.J;n.parse(e),n.colorTransform=6===r?-1:0;let i=n.getData(n.width,n.height,1!==t&&4!==t);return new Uint8Array(i.buffer)}function O(e,t){let r=new Uint8Array(e),n=new Uint8Array(r.length);if(2===t)for(let e=0;e<r.length;e+=2)n[e]=r[e+1],n[e+1]=r[e];else if(4===t)for(let e=0;e<r.length;e+=4)n[e]=r[e+3],n[e+1]=r[e+2],n[e+2]=r[e+1],n[e+3]=r[e];else for(let e=0;e<r.length;e+=8)n[e]=r[e+7],n[e+1]=r[e+6],n[e+2]=r[e+5],n[e+3]=r[e+4],n[e+4]=r[e+3],n[e+5]=r[e+2],n[e+6]=r[e+1],n[e+7]=r[e];return n.buffer}async function B(e,t,r,i,o){let l=P.Z===t,a=(0,E.LZ)(r,"BITSPERSAMPLE"),s=(0,E.LZ)(r,"SAMPLESPERPIXEL")??1,u=(0,E.LZ)(r,"PHOTOMETRICINTERPRETATION"),h=(0,E.LZ)(r,"SAMPLEFORMAT")??1,c=L(h,a),p=(0,E.ni)(r);if(34887===p)return await async function(e,t){return await f(),g(e,{inputOffset:t}).pixels[0]}(e,i);let d,m,y,w=D(c);switch(p){case 1:d=e.slice(i,i+o),m=new Uint8Array(d);break;case 8:case 32946:m=await(0,R.U)(new Uint8Array(e,i,o)),d=m.buffer;break;case 6:m=G(new Uint8Array(e,i,o),s,u),d=m.buffer;break;case 7:{let t=r.get("JPEGTABLES").values,n=t.length-2,l=new Uint8Array(n+o-2);for(let e=0;e<n;e++)l[e]=t[e];let a=new Uint8Array(e,i+2,o-2);for(let e=0;e<a.length;e++)l[n+e]=a[e];m=G(l,s,u),d=m.buffer}break;case 5:m=C(e,i,o,t),d=m.buffer;break;default:throw new n.A("tiff-reader:decode-data","unsupported compression "+p)}if(d=U(d,a),l||a<=8)y=new w(d);else{let e=a>32?8:a>16?4:2;y=new w(O(m.buffer,e))}let A=(0,E.LZ)(r,"PREDICTOR")??1,x=(0,E.LZ)(r,"TILEWIDTH"),b=(0,E.LZ)(r,"TILELENGTH");if(A>1&&(5===p||8===p||32946===p)&&x&&b){let e=(0,E.XO)(r),t=new w(y.length);t.set(y),y=function(e,t,r,n,i){let o=n?4:1,l=r*o*i;n&&(e=new Uint8Array(e.buffer));for(let r=0;r<t;r++){let t=r*l;for(let r=i;r<l;r++)e[t+r]+=e[t+r-i]}if(!n)return e;let a=new Uint8Array(e.length),s=r*i;for(let r=0;r<t;r++){let t=r*l;for(let r=0;r<s;r++)for(let n=0;n<o;n++)a[t+r*o+n]=e[t+r+(o-n-1)*s]}return new Float32Array(a.buffer)}(t,b,x,3===h&&3===A,e?1:s)}return y}var N=r(14140),F=r(4151);async function V(e,t){if(!P.Z)throw new n.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await f();let{width:r,height:i,pixelType:o,statistics:l,depthCount:a,noDataValues:s,bandMasks:u,pixels:h,mask:c,validPixelCount:p}=g(e,{inputOffset:t.offset,returnInterleaved:t.returnInterleaved});return new N.A({width:r,height:i,pixelType:o.toLowerCase(),pixels:h,mask:c,validPixelCount:p,statistics:l.map(({minValue:e,maxValue:t})=>new F.A(e,t)),bandMasks:u,depthCount:a,noDataValues:s})}async function j(e,t){await(v??=r.e(6154).then(()=>r(56154)).then(({default:e})=>e({locateFile:e=>(0,s.s)(`esri/layers/raster/formats/${e}`)})).then(e=>{!function(e){let{_GetInfo:t,_decode:r,_malloc:n,_free:i,writeArrayToMemory:o,UTF8ToString:l}=e;M.getBlobInfo=e=>{e.length>1e3&&(e=e.slice(0,1e3));let r=n(e.length);o(e,r);let a=t(r,e.length);if(i(r),!a)return null;let s=l(a);i(a);try{let e=JSON.parse(s);return{width:e.xsize,height:e.ysize,bandCount:e.nbands,dataType:e.dtype,mode:e.mode,bandMap:e.bandmap}}catch{return null}},M.decode=(t,n)=>{let{dataType:i,width:o,height:l,bandCount:a}=n;if(!x.has(i))throw Error("Unsupported data type: "+i);let{_malloc:s,_free:u}=e,h=s(t.length);e.writeArrayToMemory(t,h);let{ctor:f,byteCount:c}=k(i),p=o*l*a*c,d=s(p),g=s(1024);if(0===r(h,t.length,d,g))throw u(h),u(d),u(g),Error("Decoding failed: "+e.UTF8ToString(g));let m=new f(e.HEAPU8.slice(d,d+p).buffer);if(u(h),u(d),u(g),m instanceof BigInt64Array||m instanceof BigUint64Array){let e=new Float64Array(m.length);for(let t=0;t<m.length;t++)e[t]=Number(m[t]);return e}return m}}(e)}),v);let i=function(e){let t=new Uint8Array(e),r=M.getBlobInfo(t);if(!r)return null;let n=M.decode(t,r);if(!n)return null;let{width:i,height:o,bandCount:l,dataType:a}=r,{ctor:s,pixelType:u}=k(a),h=s===BigInt64Array||s===BigUint64Array?Float64Array:s,f=Array.from({length:l},()=>new h(i*o));for(let e=0,t=0;e<i*o;e++)for(let r=0;r<l;r++)f[r][e]=n[t++];return{width:i,height:o,pixelType:u,pixels:f}}(e);if(!i)throw new n.A("rasterCodec:decode","failed to decode the input data.");let{width:o,height:l,pixels:a,pixelType:u}=i;return new N.A({width:o,height:l,pixelType:u,pixels:a})}async function Z(e,t){let r=await async function(e,t={}){let r=t.pyramidLevel||0,i=t.headerInfo||(0,E.RW)(e),{ifds:o,noData:l}=i;if(0===o.length)throw new n.A("tiff-reader:decode","no valid image file directory");let a=(0,E._J)(i);if(a)throw new n.A("tiff-reader:decode",a);let s=-1===r?o[o.length-1]:o[r],u=l??t.noDataValue,h=i.tileWidth?await async function(e,t,r){let n=(0,E.wc)(r,"TILEOFFSETS"),i=(0,E.wc)(r,"TILEBYTECOUNTS");if(null==n||null==i)return null;let{width:o,height:l,pixelType:a,tileWidth:s,tileHeight:u}=(0,E.uc)([r]),h=(0,E.XO)(r,t),f=(0,E.LZ)(r,"SAMPLESPERPIXEL")||t.planes,c=o*l,p=(0,E.LZ)(r,"BITSPERSAMPLE"),d=34887===(0,E.ni)(r),g=D(a),m=[];for(let e=0;e<f;e++)m.push(new g(c));let y=Math.ceil(o/s),w=new Uint8Array(c).fill(255),C=null,A=!1;if(p%8==0)if(d&&h&&f>1){let a=Math.round(n.length/f);for(let h=0;h<a;h++){let a=Math.floor(h/y)*u,c=h%y*s,p=a*o+c;for(let d=0;d<f;d++){let g=h*f+d;0===i[g]?(C=null,A=!0):C=await B(e,t.littleEndian,r,n[g],i[g]);let y=Math.min(s,o-c),x=Math.min(u,l-a),b=m[d];for(let e=0;e<x;e++){let t=p+e*o,r=e*s;for(let e=0;e<y;e++,t++,r++)C?b[t]=C[r]:w[t]=0}}}}else for(let a=0;a<n.length;a++){let c=Math.floor(a/y)*u,p=a%y*s,g=c*o+p;0===i[a]?(C=null,A=!0):C=await B(e,t.littleEndian,r,n[a],i[a]);let x=Math.min(s,o-p),b=Math.min(u,l-c);for(let e=0;e<f;e++){let t=m[e];if(h||d)for(let r=0;r<b;r++){let n=g+r*o,i=s*u*e+r*s;for(let e=0;e<x;e++,n++,i++)C?t[n]=C[i]:w[n]=0}else for(let r=0;r<b;r++){let n=g+r*o,i=r*s*f+e;for(let e=0;e<x;e++,n++,i+=f)C?t[n]=C[i]:w[n]=0}}}return{width:o,height:l,pixelType:a,pixels:m,mask:A?w:void 0}}(e,i,s):await async function(e,t,r){let n=P.Z===t.littleEndian,i=(0,E.wc)(r,"STRIPOFFSETS"),o=(0,E.wc)(r,"STRIPBYTECOUNTS");if(null==i||null==o)return null;let l,a,s,u,{width:h,height:f,pixelType:c}=(0,E.uc)([r]),p=(0,E.LZ)(r,"SAMPLESPERPIXEL")||t.planes,d=(0,E.LZ)(r,"PHOTOMETRICINTERPRETATION"),g=h*f,m=(0,E.LZ)(r,"BITSPERSAMPLE"),y=D(c),w=new y(g*p),A=(0,E.LZ)(r,"ROWSPERSTRIP"),x=(0,E.ni)(r);if(m%8==0)for(let r=0;r<i.length;r++){let f=A*h*r*p;if("u8"===c||"s8"===c||n)8===x||32946===x?(s=new Uint8Array(e,i[r],o[r]),s=await(0,R.U)(s),a=s.buffer):6===x?(s=new Uint8Array(e,i[r],o[r]),s=G(s,p,d),a=s.buffer):5===x?(s=C(e,i[r],o[r],t.littleEndian),a=s.buffer):a=e.slice(i[r],i[r]+o[r]),a=U(a,m),l=new y(a);else{switch(6===x||8===x||32946===x?(s=new Uint8Array(e,i[r],o[r]),u=await(0,R.U)(s),a=u.buffer):(a=new ArrayBuffer(o[r]),s=new Uint8Array(e,i[r],o[r]),u=new Uint8Array(a)),c){case"u16":case"s16":for(let e=0;e<s.length;e+=2)u[e]=s[e+1],u[e+1]=s[e];break;case"u32":case"s32":case"f32":for(let e=0;e<s.length;e+=4)u[e]=s[e+3],u[e+1]=s[e+2],u[e+2]=s[e+1],u[e+3]=s[e]}a=U(a,m),l=new y(a)}w.set(l,f)}let b=[];if(1===p)b.push(w);else for(let e=0;e<p;e++){let t=new y(g);for(let r=0;r<g;r++)t[r]=w[r*p+e];b.push(t)}return{width:h,height:f,pixelType:c,pixels:b}}(e,i,s);if(!h)return h;if(null!=u){let e=null==l&&t?.matchAllNoData;(0,A.Sp)(h,u,{matchAllNoData:e})}return h}(e,{...t,noDataValue:t.tiffNoDataValue,matchAllNoData:t.matchAllNoData});return(0,i.Lw)(r),new N.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,bandMasks:r.bandMasks})}function W(e,t){let r=t.pixelType||"u8",n=N.A.getPixelArrayConstructor(r),i="u8"===r?e:new n(e.buffer),o=[],l=t.planes||1;if(1===l)o.push(i);else for(let r=0;r<l;r++){let a=(t.width||1)*(t.height||e.length),s=new n(a);for(let e=0;e<a;e++)s[e]=i[e*l+r];o.push(s)}return new N.A({width:t.width||1,height:t.height||e.length,pixels:o,pixelType:r})}async function _(e,t){return W(await(0,R.U)(new Uint8Array(e)),t)}function z(e,t){return W(C(e,t.offset,t.eof,!t.isInputBigEndian),t)}function H(e,t){let r=t.format,{pixelTypeCtor:n}=function(e){let t=null,r=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":r=255,t=Uint8Array;break;case"u16":r||=65535,t=Uint16Array;break;case"u32":r||=2**32-1,t=Uint32Array;break;case"s8":r||=-128,t=Int8Array;break;case"s16":r||=-32768,t=Int16Array;break;case"s32":r||=0-2**31,t=Int32Array;break;default:t=Float32Array}return{pixelTypeCtor:t,noDataValue:r}}(t.pixelType),i=function(e,t){let r=t.pixelType,n=[],i=t.width*t.height,o=T(e,t),{bandIds:l,format:a}=t,s=l?.length||T(e,t),u=e.byteLength-e.byteLength%(i*S(r)),h=new r(e,0,i*o);if("bip"===a)for(let e=0;e<s;e++){let t=new r(i),a=l?l[e]:e;for(let e=0;e<i;e++)t[e]=h[e*o+a];n.push(t)}else if("bsq"===a)for(let e=0;e<s;e++){let t=l?l[e]:e;n.push(h.subarray(t*i,(t+1)*i))}let f=null;return u<e.byteLength-1&&(f=((e,t)=>{if(8*e.byteLength<t)return null;let r=new Uint8Array(e,0,Math.ceil(t/8)),n=new Uint8Array(t),i=0,o=0;for(let e=0;e<r.length-1;e++){o=r[e];for(let e=7;e>=0;e--)n[i++]=o>>e&1}let l=7;for(;i<t-1;)o=r[r.length-1],n[i++]=o>>l&1,l--;return n})(e.slice(u),i)),{pixels:n,mask:f}}(e,{width:t.width,height:t.height,pixelType:n,format:r});return new N.A({width:t.width,height:t.height,pixels:i.pixels,pixelType:t.pixelType,mask:i.mask})}async function K(e,t,r){let n=await(0,l.D)(e,t,r);return new N.A(n)}async function q(e,t,r){let i=t.format||Y(e),l={...t,format:i},{canvasUsage:s}=t;if("no-canvas"!==s||"png"===i)try{return await K(e,l,r)}catch(e){if((0,o.zf)(e))throw e;if("canvas-only"===s)throw new n.A("rasterCodec:decode",`failed to decode the input data with canvas for format ${i}`)}return await async function(e,t){let r=await(0,a.D)(e,t);return new N.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:"u8",mask:r.mask})}(e,l)}function Y(e){if(!e)return;let t,r=new Uint8Array(e,0,10);return 255===r[0]&&216===r[1]?t="jpg":137===r[0]&&80===r[1]&&78===r[2]&&71===r[3]?t="png":67===r[0]&&110===r[1]&&116===r[2]&&90===r[3]&&73===r[4]&&109===r[5]&&97===r[6]&&103===r[7]&&101===r[8]&&32===r[9]||76===r[0]&&101===r[1]&&114===r[2]&&99===r[3]&&50===r[4]&&32===r[5]?t="lerc":73===r[0]&&73===r[1]&&42===r[2]&&0===r[3]||77===r[0]&&77===r[1]&&0===r[2]&&42===r[3]||73===r[0]&&73===r[1]&&43===r[2]&&0===r[3]||77===r[0]&&77===r[1]&&0===r[2]&&43===r[3]?t="tiff":71===r[0]&&73===r[1]&&70===r[2]?t="gif":66===r[0]&&77===r[1]?t="bmp":81===r[0]&&66===r[1]&&51===r[2]&&(t="qb3"),t}async function X(e,t={},r){if(null==e)throw new n.A("rasterCodec:decode","missing encodeddata parameter.");let i=t.format?.toLowerCase();if(!("bsq"!==i&&"bip"!==i||null!=t.width&&null!=t.height))throw new n.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===i&&t.customOptions)return async function(e,t){let r=await async function(e,t){let{headerInfo:r,ifd:n,offsets:i,sizes:o}=t,l=[];for(let t=0;t<i.length;t++){o[t];let a=await B(e,r.littleEndian,n,i[t],o[t]||e.byteLength);l.push(a)}let a,s=(0,E.XO)(n,r),u=(0,E.LZ)(n,"BITSPERSAMPLE"),h=L((0,E.LZ)(n,"SAMPLEFORMAT")??1,u),f=(0,E.LZ)(n,"SAMPLESPERPIXEL")||r.planes,c=D(h),p=(0,E.LZ)(n,"TILEWIDTH"),d=(0,E.LZ)(n,"TILELENGTH"),g=34887===(0,E.ni)(n),m=p*d,y=[],w=l[0];for(let e=0;e<f;e++){if(a=new c(m),l.length===f)w=l[e],w.length===m&&(a=w);else if(w.length)if(s||g)a=w.length===m?w:w.slice(m*e,m*(e+1));else for(let t=0;t<m;t++)a[t]=w[t*f+e];y.push(a)}let C=r.noData?r.noData[0]:t.noDataValue,x=r.metadata?r.metadata.statistics:null,b=x?x.map(e=>e.min):null,v=x?x.map(e=>e.max):null,M={pixelType:h,width:p,height:d,pixels:y,noDataValue:C};return null==C?b&&v&&t.applyMinMaxConstraint&&(M.mask=function(e,t,r){if(!(e&&e.length>0&&t&&r))return null;let n,i,o,l=e[0].length,a=e.length,s=new Uint8Array(l);for(let u=0;u<a;u++)if(n=e[u],i=t[u],o=r[u],0===u)for(let e=0;e<l;e++)s[e]=n[e]<i||n[e]>o?0:1;else for(let e=0;e<l;e++)s[e]&&(s[e]=n[e]<i||n[e]>o?0:1);return s}(y,b,v)):(0,A.Sp)(M,C,{matchAllNoData:t?.matchAllNoData}),M}(e,t.customOptions),n=new N.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask});return t.skipStatistics||n.updateStatistics(),n}(e,t);if(!i||"bsq"!==i&&"bip"!==i&&"deflate"!==i&&"lzw"!==i){if(i=Y(e),!i)throw String.fromCharCode.apply(null,[...new Uint8Array(e,0,10)]).toLowerCase().includes("error")?new n.A("rasterCodec:decode","input data contains error"):new n.A("rasterCodec:decode","unsupported raster format");t={...t,format:i}}let o=function(e){let t=null;switch(e){case"lerc":t=V;break;case"jpg":case"png":t=q;break;case"bmp":case"gif":t=K;break;case"bsq":case"bip":t=H;break;case"tiff":t=Z;break;case"deflate":t=_;break;case"lzw":t=z;break;case"qb3":t=j;break;default:t=()=>{throw new n.A("rasterCodec:decode",`unsupported raster format ${e}`)}}return t}(i);t.isPoint&&(null!=(t={...t}).width&&t.width++,null!=t.height&&t.height++);let l,{offsets:a}=t;if(a&&a.length>1){let n=a.map((n,i)=>o(e.slice(n,a[i+1]),t,r)),i=await Promise.all(n);l=i[0],l.pixels=i.map(e=>e.pixels[0]);let s=i.map(e=>e.mask);s.some(e=>null!=e)&&(s.forEach((e,t)=>{s[t]??=new Uint8Array(l.width*l.height).fill(255)}),l.bandMasks=s,l.mask=N.A.combineBandMasks(s))}else l=await o(e,{...t,offset:a?.[0]??t.offset},r);return"jpg"!==i&&null!=t.noDataValue&&1===l.depthCount&&(0,A.Sp)(l,t.noDataValue,{customFloatTolerance:t.tolerance}),t.isPoint&&function(e,t="bilinear"){if(!e)return;let{pixels:r,width:n,height:i,mask:o}=e;if(!r||0===r.length)return;let l=n-1,a=i-1,s=[],u=null,h=N.A.getPixelArrayConstructor(e.pixelType);if("nearest"===t){for(let e of r){let t=new h(l*a);for(let r=0;r<a;r++){let i=r*n;for(let n=0;n<l;n++)t[r*l+n]=e[i+n]}s.push(t)}if(null!=o){u=new Uint8Array(l*a);for(let e=0;e<a;e++){let t=e*n;for(let r=0;r<l;r++)u[e*l+r]=o[t+r]}}}else{for(let e of r){let t=new h(l*a);for(let r=0;r<a;r++){let i=r*n;for(let o=0;o<l;o++)t[r*l+o]=(e[i+o]+e[i+o+1]+e[i+n+o]+e[i+n+o+1])/4}s.push(t)}if(o){u=new Uint8Array(l*a);for(let e=0;e<a;e++){let t=e*n;for(let r=0;r<l;r++)u[e*l+r]=Math.min.apply(null,[o[t+r],o[t+r+1],o[t+n+r],o[t+n+r+1]])}}}e.width=l,e.height=a,e.mask=u,e.pixels=s}(l),!l.statistics?.length&&!t.skipStatistics&&l.updateStatistics(),l}},8003(e,t,r){async function n(e,t){t??=function(e){return(t=e).length>=2&&31===t[0]&&139===t[1]?"gzip":function(e){if(e.length<2)return!1;let[t,r]=e.subarray(0,2);return!(8!=(15&t)||t>>4>7)&&(65535&(t<<8|r))%31==0}(e)?"deflate":null;var t}(e)??"deflate-raw";let r=new Response(e).body.pipeThrough(new DecompressionStream(t)),n=await new Response(r).arrayBuffer();return new Uint8Array(n)}r.d(t,{U:()=>n})},94778(e,t,r){r.d(t,{$p:()=>s,Sp:()=>u,X1:()=>o,hP:()=>i,yM:()=>a,zw:()=>l});const n={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function i(e){return n[e]??[-34028234663852886e22,34028234663852886e22]}function o(e,t){return null==e||null==t?"s32":e<0?e>=-128&&t<128?"s8":e>=-32768&&t<32768?"s16":"s32":t<256?"u8":t<65536?"u16":"u32"}function l(e){return(e?.startsWith("s")||e?.startsWith("u"))??!1}function a(e,t,r,n){let[o,a]=i(r),s=l(r);return s&&(o-=1e-5,a+=1e-5),s?r.startsWith("u")?function(e,t,r,n){let[i,o]=n;for(let n=0;n<t.length;n++)if(t[n]){let l=e[n];l<i||l>o?t[n]=0:r[n]=l+.5|0}}(e,t,n,[o,a]):function(e,t,r,n){let[i,o]=n;for(let n=0;n<t.length;n++)if(t[n]){let l=e[n];l<i||l>o?t[n]=0:r[n]=l+(l>0?.5:-.5)|0}}(e,t,n,[o,a]):function(e,t,r,n){let[i,o]=n;for(let n=0;n<t.length;n++)if(t[n]){let l=e[n];l<i||l>o?t[n]=0:r[n]=l}}(e,t,n,[o,a])}function s(e,t){for(let r=0;r<t.length;r++)t[r]&&isNaN(e[r])&&(t[r]=0,e[r]=0)}function u(e,t,r){if(e.depthCount&&e.depthCount>1)return;let{pixels:n,statistics:o,pixelType:l}=e,a=n[0].length,s=e.bandMasks??[],u=e.mask??new Uint8Array(a).fill(255),h="f32"===l||"f64"===l,f=i(l),c=!1;for(let e=0;e<n.length;e++){let i="number"==typeof t?t:t[e];if(null==i)continue;let a=o?.[e]?.minValue??f[0],p=o?.[e]?.maxValue??f[1];if(a>i+2**-52||p<i-2**-52)continue;let d=s[e]||u.slice(),g=n[e],m=r?.customFloatTolerance;if(h&&0!==m){let e=m;e||=Math.abs(i)>=9999999e31?2e-7*Math.abs(i):"f32"===l?2**-23:2**-52;for(let t=0;t<g.length;t++)d[t]&&Math.abs(g[t]-i)<e&&(g[t]=0,d[t]=0,u[t]=0,c=!0)}else for(let e=0;e<g.length;e++)d[e]&&g[e]===i&&(g[e]=0,d[e]=0,u[e]=0,c=!0);s[e]=d}if(c){let t=e.bandMasks||e.pixels.length>1?s:null;r?.matchAllNoData?e.mask=t&&t.length>1?function(e){if(e.length<2)return e[0];let t=e[0].length,r=new Uint8Array(t).fill(0);for(let n=0;n<e.length;n++){let i=e[n];for(let e=0;e<t;e++)i[e]&&(r[e]=255)}return r}(t):u:(e.bandMasks=t,e.mask=u)}c&&"updateStatistics"in e&&e.updateStatistics()}},44094(e,t,r){r.d(t,{Cr:()=>w,JM:()=>I,LZ:()=>p,RW:()=>P,XO:()=>b,_J:()=>x,ni:()=>v,r9:()=>S,uT:()=>E,uc:()=>k,wc:()=>f,zS:()=>T});var n=r(49186),i=r(9334),o=r(94213);const l=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],a=4294967296,s=new Map([[1,(e,t)=>e.getUint8(t)],[2,(e,t)=>e.getUint8(t)],[3,(e,t,r)=>e.getUint16(t,r)],[4,(e,t,r)=>e.getUint32(t,r)],[5,(e,t,r)=>e.getUint32(t,r)/e.getUint32(t+4,r)],[6,(e,t)=>e.getInt8(t)],[7,(e,t)=>e.getUint8(t)],[8,(e,t,r)=>e.getInt16(t,r)],[9,(e,t,r)=>e.getInt32(t,r)],[10,(e,t,r)=>e.getInt32(t,r)/e.getInt32(t+4,r)],[11,(e,t,r)=>e.getFloat32(t,r)],[12,(e,t,r)=>e.getFloat64(t,r)],[13,(e,t,r)=>e.getUint32(t,r)],[16,(e,t,r)=>u(e,t,r)],[17,(e,t,r)=>function(e,t,r){let n=r?e.getInt32(t,r):e.getUint32(t,r),i=r?e.getUint32(t+4,r):e.getInt32(t+4,r),o=(r?n:i)>=0?1:-1;return r?n*=o:i*=o,o*(r?i*a+n:n*a+i)}(e,t,r)],[18,(e,t,r)=>u(e,t,r)]]);function u(e,t,r){let n=e.getUint32(t,r),i=e.getUint32(t+4,r);return r?i*a+n:n*a+i}function h(e,t){return{x:t[0]*e.x+t[1]*e.y+t[2],y:t[3]*e.x+t[4]*e.y+t[5]}}function f(e,t){return e.get(t)?.values}function c(e,t){return e.get(t)?.values?.[0]}function p(e,t){return e.get(t)?.values?.[0]}function d(e,t,r,n){return n?u(e,t,r):e.getUint32(t,r)}function g(e,t,r,n=0,i=o.NB,l=4){let a=8===l,s=a?u(new DataView(e,r,8),0,t):new DataView(e,r,2).getUint16(0,t),h=4+2*l,f=a?8:2,c=f+s*h;if(r+c>e.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:c};let p=8===l?8:4,g=r+c+p<=e.byteLength?d(new DataView(e,r+c,p),0,t,8===l):null,m=r+f,y=new Map;for(let r=0;r<s;r++){let a=new DataView(e,m+h*r,h),s=a.getUint16(0,t),u=a.getUint16(2,t),f=(0,o.kq)(s,i),c=[],p=0,g=0;2===l?(p=a.getUint16(4,t),g=a.getUint16(6,t)):4===l?(p=a.getUint32(4,t),g=a.getUint32(8,t)):8===l&&(p=d(a,4,t,!0),g=d(a,12,t,!0),c.push(a.getUint32(12,t)),c.push(a.getUint32(16,t)));let C={id:s,type:u,valueCount:p,valueOffset:g,valueOffsets:c,values:null};w(e,t,C,n,!1,l),y.set(f,C)}return{success:!0,ifd:y,nextIFD:g,requiredBufferSize:c}}function m(e,t,r,n){let{type:i,valueCount:o}=t,a=l[i];if(null==a||a<=0)return[];let u=o*a,h=u/a,f=new DataView(e,r,u),c=[],p=s.get(i);if(!p)return[];for(let e=0,t=0;e<h;e++,t+=a)c.push(p(f,t,n));return c}function y(e,t,r=4){let{type:n,valueCount:i,valueOffsets:o}=e,s=8*l[n],u=i*l[n]*8,{valueOffset:h}=e,f=8===r?64:32;if(!t)if(f<=32)h>>>=32-u;else{let e=o?.length?o[0]:h>>>0,t=o?.length?o[1]:Math.round((h-e)/a);u<=32?(h=e>>>32-u,o[0]=h):(h=e*2**(32-u)+(t>>>32-u),o[0]=e,o[1]=t>>>32-u)}if(1===i&&s===f)return[h];let c=[];if(64===f){let e=o?.length?o[0]:h>>>0,t=o?.length?o[1]:Math.round((h-e)/a),r=e,n=32;for(let e=1;e<=i;e++){let i=32-s*e%32;if(n<s){let e=r<<i>>>32-n,o=t<<32-n>>>32-n;r=t,c.push(e+o*2**(s-n)),n-=32-(s-n)}else c.push(r<<i>>>32-s),n-=s;0===n&&(n=32,r=t)}return c}for(let e=1;e<=i;e++){let t=32-s*e;c.push(h<<t>>>32-s)}return c}function w(e,t,r,n=0,o=!1,a=4){if(r.values)return!0;let{type:s,valueCount:u}=r,h=r.valueOffset,f=u*l[s],c=u*l[s]*8,p=8===a?64:32;if(c>p&&f>(o?e.byteLength:e?e.byteLength-h+n:0))return r.offlineOffsetSize=[h,f],r.values=null,!1;let d=[];return c<=p?d=y(r,t,a):(h-=n,o&&(h=0),d=m(e,r,h,t)),r.values=2===s?[d.length?(0,i.w)(d instanceof Uint8Array?d:new Uint8Array(d)):""]:d,!0}function C(e){let t=p(e,"PHOTOMETRICINTERPRETATION"),r=f(e,"COLORMAP");if(null!=t&&t<=3&&r?.length&&r.length%3==0){let e=[],t=r.length/3;for(let n=0;n<t;n++)e.push([n,r[n]>>>8,r[n+t]>>>8,r[n+2*t]>>>8]);return e}}function A(e){let t,r=f(e,"GEOTIEPOINTS"),n=f(e,"GEOPIXELSCALE"),i=f(e,"GEOTRANSMATRIX"),o=e.get("GEOKEYDIRECTORY")?.data,l=!!o&&2===p(o,"GTRasterTypeGeoKey"),{spatialReference:a,isPseudoGeographic:s}=function(e){let t=c(e,"GEOASCIIPARAMS"),r=null;if(t){let e=t.split("|").find(e=>e.includes("ESRI PE String = ")),n=e?e.replace("ESRI PE String = ",""):"";r=n.startsWith("COMPD_CS")||n.startsWith("PROJCS")||n.startsWith("GEOGCS")?{wkid:null,wkt:n}:null}let n=!1,i=e.get("GEOKEYDIRECTORY")?.data;if(i){let e=p(i,"GTModelTypeGeoKey");if(2===e){let e=p(i,"GeographicTypeGeoKey");e>=1024&&e<=32766&&(r={wkid:e}),!r&&32767===e&&(n=!0,r={wkid:4326})}else if(1===e){let e=p(i,"ProjectedCSTypeGeoKey");e>=1024&&e<=32766&&(r={wkid:e})}}return{spatialReference:r,isPseudoGeographic:n}}(e);n&&r&&r.length>=6?(t=[n[0],0,r[3]-r[0]*n[0],0,-Math.abs(n[1]),r[4]-r[1]*n[1]],l&&(t[2]-=.5*t[0]+.5*t[1],t[5]-=.5*t[3]+.5*t[4])):16===i?.length&&(t=l?[i[0],i[1],i[3]-.5*i[0],i[4],i[5],i[7]-.5*i[5]]:[i[0],i[1],i[3],i[4],i[5],i[7]]);let u,d=p(e,"IMAGEWIDTH"),g=p(e,"IMAGELENGTH");if(t){let e,r=[{x:0,y:g},{x:0,y:0},{x:d,y:g},{x:d,y:0}],n=1/0,i=1/0,o=-1/0,l=-1/0;for(let a=0;a<r.length;a++)e=h(r[a],t),n=e.x>n?n:e.x,o=e.x<o?o:e.x,i=e.y>i?i:e.y,l=e.y<l?l:e.y;u={xmin:n,xmax:o,ymin:i,ymax:l,spatialReference:a}}else u={xmin:-.5,ymin:.5-g,xmax:d-.5,ymax:.5,spatialReference:a};return s&&(u.xmax-u.xmin>400||Math.max(Math.abs(u.xmin),Math.abs(u.xmax))>361)&&(u.spatialReference=null),{extent:u,isPseudoGeographic:s,affine:n?void 0:t}}function x(e){let{width:t,height:r,tileHeight:n,tileWidth:i}=e,o=e.planes,l=i?i*n:t*r,a=p(e.ifds[0],"BITSPERSAMPLE"),s="";return l*o>2**30/(a>8?a/8:1)&&(s=i?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),s}function b(e,t){let r=p(e,"PLANARCONFIGURATION");return null==r?!!t&&t.isBSQ:2===r}function v(e){return p(e,"COMPRESSION")??1}function M(e){let t,r=v(e),n=!1;switch(r){case 1:t="NONE",n=!0;break;case 2:case 3:case 4:case 32771:t="CCITT";break;case 5:t="LZW",n=!0;break;case 6:case 7:t="JPEG",n=!0;break;case 32773:t="PACKBITS";break;case 8:case 32946:t="DEFLATE",n=!0;break;case 34712:t="JPEG2000";break;case 34887:t="LERC",n=!0;break;default:t=String(r)}return{compression:t,supported:n}}function k(e){let t=e[0],r=p(t,"TILEWIDTH"),n=p(t,"TILELENGTH"),i=p(t,"IMAGEWIDTH"),o=p(t,"IMAGELENGTH"),l=p(t,"BITSPERSAMPLE"),a=p(t,"SAMPLESPERPIXEL"),s=p(t,"SAMPLEFORMAT")??1,u=function(e,t){let r="unknown";return 3===e?r=64===t?"f64":"f32":1===e?1===t?r="u1":2===t?r="u2":4===t?r="u4":t<=8?r="u8":t<=16?r="u16":t<=32&&(r="u32"):2===e&&(t<=8?r="s8":t<=16?r="s16":t<=32&&(r="s32")),r}(s,l),h=b(t),f=function(e){return e.get("GDAL_NODATA")?.values}(t),d=null;f?.length&&(d=f.map(e=>parseFloat(e)),d.some(e=>isNaN(e))&&(d=null));let g=!0,m="",{compression:y,supported:w}=M(t);w||(g=!1,m+="unsupported tag compression "+y),s>3&&(g=!1,m+="unsupported tag sampleFormat "+s),l>32&&64!==l&&(g=!1,m+="unsupported tag bitsPerSample "+l);let v,k,I,E,P,{extent:R,isPseudoGeographic:L,affine:D}=A(t),U=T(e);if(U.length>0){I=Math.round(Math.log(i/p(U[0],"IMAGEWIDTH"))/Math.LN2);let e=U[U.length-1];E=U.length,v=p(e,"TILEWIDTH"),k=p(e,"TILELENGTH")}v=null!=E&&E>0?v||r:null,k=null!=E&&E>0?k||n:null,r&&(P=[{maxCol:Math.ceil(i/r)-1,maxRow:Math.ceil(o/n)-1,minRow:0,minCol:0}],U.forEach(e=>{P.push({maxCol:Math.ceil(p(e,"IMAGEWIDTH")/p(e,"TILEWIDTH"))-1,maxRow:Math.ceil(p(e,"IMAGELENGTH")/p(e,"TILELENGTH"))-1,minRow:0,minCol:0})}));let G=function(e){if(!e)return null;let t=e.match(/<Item(.*?)Item>/gi);if(!t||0===t.length)return null;let r=new Map;for(let e=0;e<t.length;e++){let n=t[e],i=n.indexOf("sample="),o=i>-1?n.slice(i+8,n.indexOf('"',i+8)):null;i=n.indexOf("name=");let l=i>-1?n.slice(i+6,n.indexOf('"',i+6)):n.slice(6,n.indexOf(">"));if(l){let e=n.slice(n.indexOf(">")+1,n.indexOf("</Item>")).trim();null==o?r.set(l,e):r.has(l)?r.get(l)[o]=e:r.set(l,[e])}}let n=r.get("STATISTICS_MINIMUM"),i=r.get("STATISTICS_MAXIMUM"),o=r.get("STATISTICS_MEAN"),l=r.get("STATISTICS_STDDEV"),a=null;if(n&&i){a=[];for(let e=0;e<n.length;e++)a.push({min:parseFloat(n[e]),max:parseFloat(i[e]),avg:o&&parseFloat(o[e]),stddev:l&&parseFloat(l[e])})}let s=r.get("BandName"),u=r.get("WavelengthMin"),h=r.get("WavelengthMax"),f=null;if(s){f=[];for(let e=0;e<s.length;e++)f.push({BandName:s[e],WavelengthMin:u&&parseFloat(u[e]),WavelengthMax:h&&parseFloat(h[e])})}return{statistics:a,bandProperties:f,dataType:r.get("DataType"),rawMetadata:r}}(c(e[0],"GDAL_METADATA"));m+=" "+x({width:i,height:o,tileWidth:r,tileHeight:n,planes:a,ifds:e});let O=S(e).length===U.length+1,B=U?.length?U.map(e=>({x:i/p(e,"IMAGEWIDTH"),y:o/p(e,"IMAGELENGTH")})):void 0,N=C(t);return{width:i,height:o,tileWidth:r,tileHeight:n,planes:a,isBSQ:h,pixelType:u,compression:y,noData:d,hasMaskBand:O,isSupported:g,pyramidResolutions:B,message:m,extent:R,isPseudoGeographic:L,affine:D,firstPyramidLevel:I,maximumPyramidLevel:E,pyramidBlockWidth:v,pyramidBlockHeight:k,tileBoundary:P,metadata:G,colormap:N}}function T(e){return e.filter(e=>1===p(e,"NEWSUBFILETYPE"))}function S(e){return e.filter(e=>{let t=!(4&~(p(e,"NEWSUBFILETYPE")??0)),r=4===p(e,"PHOTOMETRICINTERPRETATION");return t&&r})}function I(e,t,r,n=0,l=o.NB,a=4){let s,u=g(e,t,r,n,l,a),h=u.ifd;if(h){if(o.RR.forEach((r,i)=>{h.has(i)&&(s=h.get(i),s.data=g(e,t,s.valueOffset-n,n,r).ifd)}),h.has("GEOKEYDIRECTORY")){s=h.get("GEOKEYDIRECTORY");let r=s.values;if(r&&r.length>4){let i=r[0]+"."+r[1]+"."+r[2];s.data=g(e,t,s.valueOffset+6-n,n,o.YC,2).ifd,s.data&&s.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[i]})}}if(h.has("XMP")){s=h.get("XMP");let e=s.values;"number"==typeof e[0]&&7===s.type&&(s.values=[(0,i.w)(new Uint8Array(e))])}}return u}function E(e){let t=new DataView(e,0,16),r=t.getUint16(0,!1),i=null;if(18761===r)i=!0;else{if(19789!==r)throw new n.A("tiff-reader:parse-signature","unexpected endianness byte");i=!1}let o=t.getUint16(2,i);if(42!==o&&43!==o)throw new n.A("tiff-reader:parse-signature","unexpected tiff identifier");let l=4,a=43===o;if(a){let e=t.getUint16(l,i);if(l+=2,8!==e||0!==t.getUint16(l,i))throw new n.A("tiff-reader:parse-signature","unsupported bigtiff version");l+=2}return{littleEndian:i,isBigTiff:a,firstIFDPos:d(t,l,i,a)}}function P(e){let{littleEndian:t,isBigTiff:r,firstIFDPos:n}=E(e),i=n,l=[];do{let n=I(e,t,i,0,o.NB,r?8:4);if(!n.success)break;l.push(n.ifd),i=n.nextIFD}while(i>0);return{...k(l),littleEndian:t,isBigTiff:r,ifds:l,pyramidIFDs:T(l),maskIFDs:S(l)}}},94213(e,t,r){const n=(()=>{let e=[];return e[254]="NEWSUBFILETYPE",e[255]="SUBFILETYPE",e[256]="IMAGEWIDTH",e[257]="IMAGELENGTH",e[258]="BITSPERSAMPLE",e[259]="COMPRESSION",e[262]="PHOTOMETRICINTERPRETATION",e[263]="THRESHHOLDING",e[264]="CELLWIDTH",e[265]="CELLLENGTH",e[266]="FILLORDER",e[269]="DOCUMENTNAME",e[270]="IMAGEDESCRIPTION",e[271]="MAKE",e[272]="MODEL",e[273]="STRIPOFFSETS",e[274]="ORIENTATION",e[277]="SAMPLESPERPIXEL",e[278]="ROWSPERSTRIP",e[279]="STRIPBYTECOUNTS",e[280]="MINSAMPLEVALUE",e[281]="MAXSAMPLEVALUE",e[282]="XRESOLUTION",e[283]="YRESOLUTION",e[284]="PLANARCONFIGURATION",e[285]="PAGENAME",e[286]="XPOSITION",e[287]="YPOSITION",e[288]="FREEOFFSETS",e[289]="FREEBYTECOUNTS",e[290]="GRAYRESPONSEUNIT",e[291]="GRAYRESPONSECURVE",e[292]="T4OPTIONS",e[293]="T6OPTIONS",e[296]="RESOLUTIONUNIT",e[297]="PAGENUMBER",e[300]="COLORRESPONSEUNIT",e[301]="TRANSFERFUNCTION",e[305]="SOFTWARE",e[306]="DATETIME",e[315]="ARTIST",e[316]="HOSTCOMPUTER",e[317]="PREDICTOR",e[318]="WHITEPOINT",e[319]="PRIMARYCHROMATICITIES",e[320]="COLORMAP",e[321]="HALFTONEHINTS",e[322]="TILEWIDTH",e[323]="TILELENGTH",e[324]="TILEOFFSETS",e[325]="TILEBYTECOUNTS",e[326]="BADFAXLINES",e[327]="CLEANFAXDATA",e[328]="CONSECUTIVEBADFAXLINES",e[330]="SUBIFD",e[332]="INKSET",e[333]="INKNAMES",e[334]="NUMBEROFINKS",e[336]="DOTRANGE",e[337]="TARGETPRINTER",e[338]="EXTRASAMPLES",e[339]="SAMPLEFORMAT",e[340]="SMINSAMPLEVALUE",e[341]="SMAXSAMPLEVALUE",e[342]="TRANSFERRANGE",e[347]="JPEGTABLES",e[512]="JPEGPROC",e[513]="JPEGIFOFFSET",e[514]="JPEGIFBYTECOUNT",e[515]="JPEGRESTARTINTERVAL",e[517]="JPEGLOSSLESSPREDICTORS",e[518]="JPEGPOINTTRANSFORM",e[519]="JPEGQTABLES",e[520]="JPEGDCTABLES",e[521]="JPEGACTABLES",e[529]="YCBCRCOEFFICIENTS",e[530]="YCBCRSUBSAMPLING",e[531]="YCBCRPOSITIONING",e[532]="REFERENCEBLACKWHITE",e[700]="XMP",e[33550]="GEOPIXELSCALE",e[33922]="GEOTIEPOINTS",e[33432]="COPYRIGHT",e[42112]="GDAL_METADATA",e[42113]="GDAL_NODATA",e[50844]="RPCCOEFFICIENT",e[34264]="GEOTRANSMATRIX",e[34735]="GEOKEYDIRECTORY",e[34736]="GEODOUBLEPARAMS",e[34737]="GEOASCIIPARAMS",e[34665]="EXIFIFD",e[34853]="GPSIFD",e[40965]="INTEROPERABILITYIFD",e})(),i=(()=>{let e=n.slice();return e[36864]="ExifVersion",e[40960]="FlashpixVersion",e[40961]="ColorSpace",e[42240]="Gamma",e[37121]="ComponentsConfiguration",e[37122]="CompressedBitsPerPixel",e[40962]="PixelXDimension",e[40963]="PixelYDimension",e[37500]="MakerNote",e[37510]="UserComment",e[40964]="RelatedSoundFile",e[36867]="DateTimeOriginal",e[36868]="DateTimeDigitized",e[36880]="OffsetTime",e[36881]="OffsetTimeOriginal",e[36882]="OffsetTimeDigitized",e[37520]="SubSecTime",e[37521]="SubSecTimeOriginal",e[37522]="SubSecTimeDigitized",e[37888]="Temperature",e[37889]="Humidity",e[37890]="Pressure",e[37891]="WaterDepth",e[37892]="Acceleration",e[37893]="CameraElevationAngle",e[42016]="ImageUniqueID",e[42032]="CameraOwnerName",e[42033]="BodySerialNumber",e[42034]="LensSpecification",e[42035]="LensMake",e[42036]="LensModel",e[42037]="LensSerialNumber",e[33434]="ExposureTime",e[33437]="FNumber",e[34850]="ExposureProgram",e[34852]="SpectralSensitivity",e[34855]="PhotographicSensitivity",e[34856]="OECF",e[34864]="SensitivityType",e[34865]="StandardOutputSensitivity",e[34866]="RecommendedExposureIndex",e[34867]="ISOSpeed",e[34868]="ISOSpeedLatitudeyyy",e[34869]="ISOSpeedLatitudezzz",e[37377]="ShutterSpeedValue",e[37378]="ApertureValue",e[37379]="BrightnessValue",e[37380]="ExposureBiasValue",e[37381]="MaxApertureValue",e[37382]="SubjectDistance",e[37383]="MeteringMode",e[37384]="LightSource",e[37385]="Flash",e[37386]="FocalLength",e[37396]="SubjectArea",e[41483]="FlashEnergy",e[41484]="SpatialFrequencyResponse",e[41486]="FocalPlaneXResolution",e[41487]="FocalPlaneYResolution",e[41488]="FocalPlaneResolutionUnit",e[41492]="SubjectLocation",e[41493]="ExposureIndex",e[41495]="SensingMethod",e[41728]="FileSource",e[41729]="SceneType",e[41730]="CFAPattern",e[41985]="CustomRendered",e[41986]="ExposureMode",e[41987]="WhiteBalance",e[41988]="DigitalZoomRatio",e[41989]="FocalLengthIn35mmFilm",e[41990]="SceneCaptureType",e[41991]="GainControl",e[41992]="Contrast",e[41993]="Saturation",e[41994]="Sharpness",e[41995]="DeviceSettingDescription",e[41996]="SubjectDistanceRange",e})(),o="GPSVersionID.GPSLatitudeRef.GPSLatitude.GPSLongitudeRef.GPSLongitude.GPSAltitudeRef.GPSAltitude.GPSTimeStamp.GPSSatellites.GPSStatus.GPSMeasureMode.GPSDOP.GPSSpeedRef.GPSSpeed.GPSTrackRef.GPSTrack.GPSImgDirectionRef.GPSImgDirection.GPSMapDatum.GPSDestLatitudeRef.GPSDestLatitude.GPSDestLongitudeRef.GPSDestLongitude.GPSDestBearingRef.GPSDestBearing.GPSDestDistanceRef.GPSDestDistance.GPSProcessingMethod.GPSAreaInformation.GPSDateStamp.GPSDifferential.GPSHPositioningError".split("."),l=(()=>{let e=[];return e[1024]="GTModelTypeGeoKey",e[1025]="GTRasterTypeGeoKey",e[1026]="GTCitationGeoKey",e[2048]="GeographicTypeGeoKey",e[2049]="GeogCitationGeoKey",e[2050]="GeogGeodeticDatumGeoKey",e[2051]="GeogPrimeMeridianGeoKey",e[2052]="GeogLinearUnitsGeoKey",e[2053]="GeogLinearUnitSizeGeoKey",e[2054]="GeogAngularUnitsGeoKey",e[2055]="GeogAngularUnitSizeGeoKey",e[2056]="GeogEllipsoidGeoKey",e[2057]="GeogSemiMajorAxisGeoKey",e[2058]="GeogSemiMinorAxisGeoKey",e[2059]="GeogInvFlatteningGeoKey",e[2061]="GeogPrimeMeridianLongGeoKey",e[2060]="GeogAzimuthUnitsGeoKey",e[3072]="ProjectedCSTypeGeoKey",e[3073]="PCSCitationGeoKey",e[3074]="ProjectionGeoKey",e[3075]="ProjCoordTransGeoKey",e[3076]="ProjLinearUnitsGeoKey",e[3077]="ProjLinearUnitSizeGeoKey",e[3078]="ProjStdParallel1GeoKey",e[3079]="ProjStdParallel2GeoKey",e[3080]="ProjNatOriginLongGeoKey",e[3081]="ProjNatOriginLatGeoKey",e[3082]="ProjFalseEastingGeoKey",e[3083]="ProjFalseNorthingGeoKey",e[3084]="ProjFalseOriginLongGeoKey",e[3085]="ProjFalseOriginLatGeoKey",e[3086]="ProjFalseOriginEastingGeoKey",e[3087]="ProjFalseOriginNorthingGeoKey",e[3088]="ProjCenterLongGeoKey",e[3090]="ProjCenterEastingGeoKey",e[3091]="ProjCenterNorthingGeoKey",e[3092]="ProjScaleAtNatOriginGeoKey",e[3093]="ProjScaleAtCenterGeoKey",e[3094]="ProjAzimuthAngleGeoKey",e[3095]="ProjStraightVertPoleLongGeoKey",e[4096]="VerticalCSTypeGeoKey",e[4097]="VerticalCitationGeoKey",e[4098]="VerticalDatumGeoKey",e[4099]="VerticalUnitsGeoKey",e})(),a=new Map([["EXIFIFD",i],["GPSIFD",o]]);r.d(t,["NB",0,n,"RR",0,a,"YC",0,l,"kq",0,(e,t)=>{let r=(t||n)[e];return void 0===r&&(r="unknown"+String(e)),r}])},10713(e,t,r){const n=(()=>{let e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]})();r.d(t,["Z",0,n])},47520(e,t,r){r.d(t,{$Q:()=>D,$i:()=>F,AB:()=>a,Ew:()=>w,Hx:()=>m,J$:()=>O,L:()=>V,LY:()=>k,QF:()=>N,UK:()=>c,Wt:()=>M,Wy:()=>s,XU:()=>v,YD:()=>x,_F:()=>g,bL:()=>y,dK:()=>b,eH:()=>f,lD:()=>G,qL:()=>h,z$:()=>I,z7:()=>S,zg:()=>u});var n=r(34727),i=r(94778),o=r(14140);const l="PixelID";function a(e){return null!=e&&e.pixels?.length>0}function s(e){if(!e?.length||e.some(e=>!a(e)))return null;if(1===e.length)return e[0]?.clone()??null;let t=e,{width:r,height:n,pixelType:i}=t[0];if(t.some(e=>e.width!==r||e.height!==n))return null;let l=t.map(({mask:e})=>e).filter(e=>null!=e),s=null;l.length&&(s=new Uint8Array(r*n),s.set(l[0]),l.length>1&&x(l.slice(1),s));let u=[];t.forEach(({pixels:e})=>u.push(...e));let h=null!=s&&u.length===t.length?t.map(({width:e,height:t,mask:r})=>r??new Uint8Array(e*t).fill(255)):null,f=t.map(({statistics:e})=>e).filter(e=>e?.length),c=[];return f.forEach(e=>c.push(...e)),new o.A({pixelType:i,width:r,height:n,mask:s,bandMasks:h,pixels:u,statistics:c.length?c:null})}function u(e){if(!e)return;let t=e.colormap;if(!t||0===t.length)return;let r=t.sort((e,t)=>e[0]-t[0]),n=r[0][0]<0?r[0][0]:0,i=Math.max(256,r[r.length-1][0]-n+1),o=new Uint8Array(4*i),l=[],a=5===r[0].length;if(i>65536)return r.forEach(e=>{l[e[0]-n]=a?e.slice(1):e.slice(1).concat([255])}),{indexed2DColormap:l,offset:n,alphaSpecified:a};if(e.fillUnspecified){let e=r[0];for(let t=e[0]-n,l=0;t<i;t++)o[4*t]=e[1],o[4*t+1]=e[2],o[4*t+2]=e[3],o[4*t+3]=a?e[4]:255,t===e[0]-n&&(e=l===r.length-1?e:r[++l])}else for(let e=0;e<r.length;e++){let t=r[e],i=4*(t[0]-n);o[i]=t[1],o[i+1]=t[2],o[i+2]=t[3],o[i+3]=a?t[4]:255}return{indexedColormap:o,offset:n,alphaSpecified:a}}function h(e,t){if(!a(e)||!t||!t.indexedColormap&&!t.indexed2DColormap)return e;let r=e.clone(),n=r.pixels,i=r.mask,o=r.width*r.height;if(1!==n.length)return e;let l,{indexedColormap:s,indexed2DColormap:u,offset:h,alphaSpecified:f}=t,c=n[0],p=new Uint8Array(c.length),d=new Uint8Array(c.length),g=new Uint8Array(c.length),m=0;if(s){let e=s.length-1;if(null!=i)for(let t=0;t<o;t++)i[t]&&(m=4*(c[t]-h),m<h||m>e?i[t]=0:(p[t]=s[m],d[t]=s[m+1],g[t]=s[m+2],i[t]=s[m+3]));else{i=new Uint8Array(o);for(let t=0;t<o;t++)m=4*(c[t]-h),m<h||m>e?i[t]=0:(p[t]=s[m],d[t]=s[m+1],g[t]=s[m+2],i[t]=s[m+3]);r.mask=i}}else if(u)if(null!=i)for(let e=0;e<o;e++)i[e]&&(l=u[c[e]],p[e]=l[0],d[e]=l[1],g[e]=l[2],i[e]=l[3]);else{i=new Uint8Array(o);for(let e=0;e<o;e++)l=u[c[e]],p[e]=l[0],d[e]=l[1],g[e]=l[2],i[e]=l[3];r.mask=i}return r.pixels=[p,d,g],r.statistics=null,r.pixelType="u8",r.maskIsAlpha=f,r}function f(e,t){if(!a(e))return null;let{pixels:r,mask:n}=e,i=r.length,l=t.lut,{offset:s}=t;l&&1===l[0].length&&(l=r.map(()=>l));let u=[],h=t.outputPixelType||"u8";for(let e=0;e<i;e++){let t=c(r[e],n,l[e],s||0,h);u.push(t)}let f=new o.A({width:e.width,height:e.height,pixels:u,mask:n,pixelType:h});return f.updateStatistics(),f}function c(e,t,r,n,i){let l=e.length,a=o.A.createEmptyBand(i,l);if(t)for(let i=0;i<l;i++)t[i]&&(a[i]=r[e[i]-n]);else for(let t=0;t<l;t++)a[t]=r[e[t]-n];return a}function p(e,t,r,n){let{width:i,height:o,pixels:l,mask:a}=e,s=i*o,{bandId:u,ranges:h}=r,f=l[u];if(!f)return;let c=1===h.length,[p,d]=h[0];for(let e=0;e<s;e++)if(!a||a[e]){let r=f[e];if(c)r>=p&&r<=d&&(t[e]=n);else for(let i=0;i<h.length;i++){let[o,l]=h[i];if(r>=o&&r<=l){t[e]=n;break}}}}function d(e,t,r,n){let{width:i,height:o,xyMask:l,xBandId:a,yBandId:s,xBandRange:u,yBandRange:h}=r,{pixels:f,mask:c}=e,p=f[a],d=f[s],[g,m]=u,[y,w]=h,C=(m-g)/i,A=(w-y)/o;for(let e=0;e<p.length;e++)if(!c||c[e]){let r=p[e],a=d[e];if(r<g||r>m||a<y||a>w)continue;l?(r=(r-g)*C,r=r>i-1?i-1:r<0?0:255&r,a=(w-a)*A,a=a>o-1?o-1:a<0?0:255&a,l[a*i+r]&&(t[e]=n)):t[e]=n}}function g(e){let{pixelBlock:t,renderedPixelBlock:r,highlightOptions:n}=e;if(!a(t))return;let{width:i,height:o}=t,l=i*o,s=new Uint8Array(l);for(let e=1;e<=n.length;e++){let r=n[e-1];"bandId"in r?p(t,s,r,e):d(t,s,r,e)}let{pixels:u}=r;1===u.length&&(u[1]=u[0].slice(),u[2]=u[0].slice());let h=n.map(e=>e.color),[f,c,g]=u;if(r.mask){let e=r.mask;for(let t=0;t<l;t++)if(e[t]){e[t]=255;let r=s[t];if(r){let n=h[r-1];f[t]=n[0],c[t]=n[1],g[t]=n[2],e[t]=n[3]}}}else{let e=new Uint8Array(l).fill(255);for(let t=0;t<l;t++){let r=s[t];if(r){let n=h[r-1];f[t]=n[0],c[t]=n[1],g[t]=n[2],e[t]=n[3]}}r.mask=e}r.maskIsAlpha=!0}function m(e,t){if(!a(e))return null;let r=e.clone(),{pixels:n}=r,i=r.width*r.height,o=t.length,l=Math.floor(o/2),s=t[Math.floor(l)],u=n[0],h=new Uint8Array(i),f=new Uint8Array(i),c=new Uint8Array(i),p=r.mask,d=4===t[0].mappedColor.length;p||(p=new Uint8Array(i),p.fill(d?255:1),r.mask=p);for(let e=0;e<i;e++)if(p[e]){let r=u[e],n=!1,i=l,a=s,d=0,g=o-1;for(;g-d>1;){if(r===a.value){n=!0;break}r>a.value?d=i:g=i,i=Math.floor((d+g)/2),a=t[Math.floor(i)]}n||(r===t[d].value?(a=t[d],n=!0):r===t[g].value?(a=t[g],n=!0):r<t[d].value?n=!1:r>t[d].value&&(r<t[g].value?(a=t[d],n=!0):g===o-1?n=!1:(a=t[g],n=!0))),n?(h[e]=a.mappedColor[0],f[e]=a.mappedColor[1],c[e]=a.mappedColor[2],p[e]=a.mappedColor[3]):h[e]=f[e]=c[e]=p[e]=0}return r.pixels=[h,f,c],r.mask=p,r.pixelType="u8",r.maskIsAlpha=d,r}function y(e,t,r=!1){let i=1e-5,o=new Float32Array(27),l=t.length;for(let a=0;a<9;a++)o[3*a]=e[2*a]??n.pq-1,o[3*a+1]=e[2*a+1]??n.pq,o[3*a+2]=t[a]??0,a<l&&(a>0&&(o[3*a]-=i),e[2*a+1]!==e[2*a]&&(a<l-1||!r)&&(o[3*a+1]-=i));return o}function w(e,t){if(!a(e))return null;let{width:r,height:n}=e,{inputRanges:l,outputValues:s,outputPixelType:u,noDataRanges:h,allowUnmatched:f,replacementValue:c,isLastInputRangeInclusive:p}=t,d=e.pixels[0],g=o.A.createEmptyBand(u,d.length),m=e.mask,y=new Uint8Array(r*n);m?y.set(m):y.fill(255);let w=e.pixelType.startsWith("f")?1e-6:0,C=l.map(e=>e-w);C[0]=l[0],C[C.length-1]=l[l.length-1]+(p?1e-6:0);let A=l.length/2,[x,b]=(0,i.hP)(u);for(let e=0;e<n;e++)for(let t=0;t<r;t++){let n=e*r+t;if(y[n]){let e=d[n],t=!1;for(let r=A-1;r>=0;r--)if(e===l[2*r]||e>C[2*r]&&e<C[2*r+1]){g[n]=s[r],t=!0;break}t||(f?g[n]=e>b?b:e<x?x:c??e:y[n]=0)}}let v=h?.length;if(v)for(let e=0;e<n;e++)for(let t=0;t<r;t++){let n=e*r+t;if(!m||m[n]){let e=d[n];for(let t=0;t<v;t+=2)if(e>=h[t]&&e<=h[t+1]){g[n]=0,y[n]=0;break}}}return new o.A({width:r,height:n,pixelType:u,pixels:[g],mask:y})}function C(e,t,r,n){let i=null!=r&&r.length>=2?new Set(r):null,o=1===r?.length?r[0]:null,l=!!t?.length;for(let r=0;r<e.length;r++)if(n[r]){let a=e[r];if(l){let e=!1;for(let r=0;r<t.length;r+=2)if(a>=t[r]&&a<=t[r+1]){e=!0;break}e||(n[r]=0)}n[r]&&(a===o||i?.has(a))&&(n[r]=0)}}function A(e,t){let r=e[0].length;t??=new Uint8Array(r).fill(255);for(let n=0;n<r;n++)if(t[n]){let r=!1;for(let t=0;t<e.length;t++)if(e[t][n]){r=!0;break}r||(t[n]=0)}return t}function x(e,t){let r=e[0].length;t??=new Uint8Array(r).fill(255);for(let n=0;n<r;n++)if(t[n]){let r=!1;for(let t=0;t<e.length;t++)if(0===e[t][n]){r=!0;break}r&&(t[n]=0)}return t}function b(e,t){if(!a(e))return null;let{width:r,height:n,pixels:i}=e,l=r*n,s=new Uint8Array(l);e.mask?s.set(e.mask):s.fill(255);let u=i.length,{includedRanges:h,noDataValues:f,outputPixelType:p,matchAll:d,lookups:g}=t;if(g){let e=[];for(let t=0;t<u;t++){let r=g[t],n=c(i[t],s,r.lut,r.offset||0,"u8");e.push(n)}1===e.length?s.set(e[0]):d?A(e,s):x(e,s)}else if(d){let e=[];for(let t=0;t<u;t++){let r=new Uint8Array(l);r.set(s),C(i[t],h?.slice(2*t,2*t+2),f?.[t],r),e.push(r)}1===e.length?s.set(e[0]):A(e,s)}else for(let e=0;e<u;e++)C(i[e],h?.slice(2*e,2*e+2),f?.[e],s);return new o.A({width:r,height:n,pixelType:p,pixels:i,mask:s})}function v(e){let{srcPixelType:t,inputRanges:r,outputValues:n,allowUnmatched:l,noDataRanges:a,isLastInputRangeInclusive:s,outputPixelType:u}=e;if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;let h=t.includes("16")?65536:256,f=t.includes("s")?-h/2:0,c=o.A.createEmptyBand(u,h),p=new Uint8Array(h);l&&p.fill(255);let[d,g]=(0,i.hP)(u);if(r?.length&&n?.length){let e=r.map(e=>e-1e-6);e[0]=r[0],s&&(e[e.length-1]=r[r.length-1]);for(let t=0;t<e.length;t++){let i=n[t]>g?g:n[t]<d?d:n[t],o=Math.ceil(e[2*t]-f),l=r[2*t+1]===r[2*t]?o:Math.floor(e[2*t+1]-f);for(let e=o;e<=l;e++)c[e]=i,p[e]=255}}if(a?.length)for(let e=0;e<a.length;e++){let t=Math.ceil(a[2*e]-f),r=Math.floor(a[2*e+1]-f);for(let e=t;e<=r;e++)p[e]=0}return{lut:c,offset:f,mask:p}}function M(e,t,r){if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;let n=e.includes("16")?65536:256,i=e.includes("s")?-n/2:0,o=new Uint8Array(n);if(t)for(let e=0;e<t.length;e++){let r=Math.ceil(t[2*e]-i),n=Math.floor(t[2*e+1]-i);for(let e=r;e<=n;e++)o[e]=255}else o.fill(255);if(r)for(let e=0;e<r.length;e++)o[r[e]-i]=0;return{lut:o,offset:i}}function k(e,t){if(!e||0===e.length)return null;let r=e.find(e=>e.pixelBlock);if(null==r?.pixelBlock)return null;let n=(r.extent.xmax-r.extent.xmin)/r.pixelBlock.width,i=(r.extent.ymax-r.extent.ymin)/r.pixelBlock.height,o=.01*Math.min(n,i),l=e.sort((e,t)=>Math.abs(e.extent.ymax-t.extent.ymax)>o?t.extent.ymax-e.extent.ymax:Math.abs(e.extent.xmin-t.extent.xmin)>o?e.extent.xmin-t.extent.xmin:0),a=Math.min.apply(null,l.map(e=>e.extent.xmin)),s=Math.min.apply(null,l.map(e=>e.extent.ymin)),u=Math.max.apply(null,l.map(e=>e.extent.xmax)),h=Math.max.apply(null,l.map(e=>e.extent.ymax)),f={x:Math.round((t.xmin-a)/n),y:Math.round((h-t.ymax)/i)},c={width:Math.round((u-a)/n),height:Math.round((h-s)/i)},p={width:Math.round((t.xmax-t.xmin)/n),height:Math.round((t.ymax-t.ymin)/i)};return Math.round(c.width/r.pixelBlock.width)*Math.round(c.height/r.pixelBlock.height)!==l.length||f.x<0||f.y<0||c.width<p.width||c.height<p.height?null:{extent:t,pixelBlock:S(l.map(e=>e.pixelBlock),c,{clipOffset:f,clipSize:p})}}function T(e,t,r,n,i,o){let{width:l,height:a}=r.block,{x:s,y:u}=r.offset,{width:h,height:f}=r.mosaic,c=function(e,t,r,n,i,o,l,a){return{xmin:i<=r*e?0:i<r*e+e?i-r*e:e,ymin:o<=n*t?0:o<n*t+t?o-n*t:t,xmax:i+l<=r*e?0:i+l<r*e+e?i+l-r*e:e,ymax:o+a<=n*t?0:o+a<n*t+t?o+a-n*t:t}}(l,a,n,i,s,u,h,f),p=0,d=0;if(o){let e=o.hasGCSSShiftTransform?360:o.halfWorldWidth??0,t=l*o.resolutionX,r=o.startX+n*t;r<e&&r+t>e?d=o.rightPadding:r>=e&&(p=o.leftMargin-o.rightPadding,d=0)}if(c.xmax-=d,"number"!=typeof t)for(let r=c.ymin;r<c.ymax;r++){let o=(i*a+r-u)*h+(n*l-s)+p,f=r*l;for(let r=c.xmin;r<c.xmax;r++)e[o+r]=t[f+r]}else for(let r=c.ymin;r<c.ymax;r++){let o=(i*a+r-u)*h+(n*l-s)+p;for(let r=c.xmin;r<c.xmax;r++)e[o+r]=t}}function S(e,t,r={}){let{clipOffset:n,clipSize:i,alignmentInfo:l,blockWidths:s}=r;if(s)return function(e,t,r){let n=e.find(e=>null!=e);if(null==n)return null;let i=e.some(e=>null==e||!!e.mask),{width:l,height:s}=t,u=i?new Uint8Array(l*s):null,{blockWidths:h}=r,f=[],c=n.getPlaneCount(),p=o.A.getPixelArrayConstructor(n.pixelType);if(i)for(let t=0,r=0;t<e.length;r+=h[t],t++){let n=e[t];if(!a(n))continue;let i=n.mask;for(let e=0;e<s;e++)for(let o=0;o<h[t];o++)u[e*l+o+r]=null==i?255:i[e*n.width+o]}let d=e.some(e=>e?.bandMasks&&e.bandMasks.length>1),g=d?[]:void 0,m=l*s;for(let t=0;t<c;t++){let r=new p(m),n=d?new Uint8Array(m):void 0;for(let i=0,o=0;i<e.length;o+=h[i],i++){let u=e[i];if(!a(u))continue;let f=u.pixels[t];if(null!=f){for(let e=0;e<s;e++)for(let t=0;t<h[i];t++)r[e*l+t+o]=f[e*u.width+t];if(n){let e=u.bandMasks?.[t]??u.mask;for(let t=0;t<s;t++)for(let r=0;r<h[i];r++)n[t*l+r+o]=e?e[t*u.width+r]:255}}}f.push(r),g&&n&&g.push(n)}let y=new o.A({width:l,height:s,mask:u,bandMasks:g,pixels:f,pixelType:n.pixelType});return y.updateStatistics(),y}(e,t,{blockWidths:s});let u=e.find(e=>a(e));if(null==u)return null;let h,f,c=i?i.width:t.width,p=i?i.height:t.height,d=u.width,g=u.height,m=t.width/d,y=t.height/g,w={offset:n||{x:0,y:0},mosaic:i||t,block:{width:d,height:g}},C=u.pixelType,A=o.A.getPixelArrayConstructor(C),x=u.pixels.length,b=[];for(let t=0;t<x;t++){f=new A(c*p);for(let r=0;r<y;r++)for(let n=0;n<m;n++){let i=e[r*m+n];a(i)&&(h=i.pixels[t],T(f,h,w,n,r,l))}b.push(f)}let v=e.some(e=>null==e||null!=e.mask&&e.mask.length>0),M=e.some(e=>e?.bandMasks&&e.bandMasks.length>1),k=v?new Uint8Array(c*p):void 0,S=M?[]:void 0;if(k){for(let t=0;t<y;t++)for(let r=0;r<m;r++){let n=e[t*m+r];T(k,(null==n?null:n.mask)??(n?255:0),w,r,t,l)}if(S)for(let t=0;t<x;t++){let r=new Uint8Array(c*p);for(let n=0;n<y;n++)for(let i=0;i<m;i++){let o=e[n*m+i];T(r,o?.bandMasks?.[t]??o?.mask??(o?255:0),w,i,n,l)}S.push(r)}}let I=new o.A({width:c,height:p,pixels:b,pixelType:C,bandMasks:S,mask:k});return I.updateStatistics(),I}function I(e,t,r){if(!a(e))return null;let{width:n,height:i}=e,o=t.x,l=t.y,s=r.width+o,u=r.height+l;if(o<0||l<0||s>n||u>i||0===o&&0===l&&s===n&&u===i)return e;e.mask||=new Uint8Array(n*i);let h=e.mask;for(let e=0;e<i;e++){let t=e*n;for(let r=0;r<n;r++)h[t+r]=e<l||e>=u||r<o||r>=s?0:1}return e.updateStatistics(),e}function E(e){if(!a(e))return null;let t=e.clone(),{width:r,height:n,pixels:i}=e,o=i[0],l=t.pixels[0],s=e.mask;for(let e=2;e<n-1;e++){let t=new Map;for(let n=e-2;n<e+2;n++)for(let e=0;e<4;e++){let i=n*r+e;L(t,o[i],s?s[i]:1)}l[e*r]=P(t),l[e*r+1]=l[e*r+2]=l[e*r];let n=3;for(;n<r-1;n++){let i=(e-2)*r+n+1;L(t,o[i],s?s[i]:1),i=(e-1)*r+n+1,L(t,o[i],s?s[i]:1),i=e*r+n+1,L(t,o[i],s?s[i]:1),i=(e+1)*r+n+1,L(t,o[i],s?s[i]:1),i=(e-2)*r+n-3,R(t,o[i],s?s[i]:1),i=(e-1)*r+n-3,R(t,o[i],s?s[i]:1),i=e*r+n-3,R(t,o[i],s?s[i]:1),i=(e+1)*r+n-3,R(t,o[i],s?s[i]:1),l[e*r+n]=P(t)}l[e*r+n+1]=l[e*r+n]}for(let e=0;e<r;e++)l[e]=l[r+e]=l[2*r+e],l[(n-1)*r+e]=l[(n-2)*r+e];return t.updateStatistics(),t}function P(e){if(0===e.size)return 0;let t=0,r=-1,n=0,i=e.keys(),o=i.next();for(;!o.done;)n=e.get(o.value),n>t&&(r=o.value,t=n),o=i.next();return r}function R(e,t,r){if(0===r)return;let n=e.get(t);1===n?e.delete(t):e.set(t,n-1)}function L(e,t,r){0!==r&&e.set(t,e.has(t)?e.get(t)+1:1)}function D(e,t,r){let{x:n,y:i}=t,{width:l,height:s}=r;if(0===n&&0===i&&s===e.height&&l===e.width)return e;let{width:u,height:h}=e,f=Math.max(0,i),c=Math.max(0,n),p=Math.min(n+l,u),d=Math.min(i+s,h);if(p<0||d<0||!a(e))return null;n=Math.max(0,-n),i=Math.max(0,-i);let{pixels:g}=e,m=l*s,y=g.length,w=[];for(let t=0;t<y;t++){let r=g[t],a=o.A.createEmptyBand(e.pixelType,m);for(let e=f;e<d;e++){let t=e*u,o=(e+i-f)*l+n;for(let e=c;e<p;e++)a[o++]=r[t+e]}w.push(a)}let C=new Uint8Array(m),A=e.mask;for(let e=f;e<d;e++){let t=e*u,r=(e+i-f)*l+n;for(let e=c;e<p;e++)C[r++]=A?A[t+e]:1}let x=new o.A({width:r.width,height:r.height,pixelType:e.pixelType,pixels:w,mask:C});return x.updateStatistics(),x}function U(e,t=!0){if(!a(e))return null;let{pixels:r,width:n,height:i,mask:l,pixelType:s}=e,u=[],h=Math.round(n/2),f=Math.round(i/2),c=i-1,p=n-1;for(let e=0;e<r.length;e++){let l=r[e],a=o.A.createEmptyBand(s,h*f),d=0;for(let e=0;e<i;e+=2)for(let r=0;r<n;r+=2){let i=l[e*n+r];if(t){let t=r===p?i:l[e*n+r+1],o=e===c?i:l[e*n+r+n],s=r===p?o:e===c?t:l[e*n+r+n+1];a[d++]=(i+t+o+s)/4}else a[d++]=i}u.push(a)}let d=null;if(null!=l){d=new Uint8Array(h*f);let e=0;for(let r=0;r<i;r+=2)for(let i=0;i<n;i+=2){let o=l[r*n+i];if(t){let t=i===p?o:l[r*n+i+1],a=r===c?o:l[r*n+i+n],s=i===p?a:r===c?t:l[r*n+i+n+1];d[e++]=o*t*a*s?1:0}else d[e++]=o}}return new o.A({width:h,height:f,pixelType:s,pixels:u,mask:d})}function G(e,t,r=0,n=!0){if(!a(e))return null;let{width:i,height:o}=t,{width:l,height:s}=e,u=new Map,h={x:0,y:0},f=1+r,c=e;for(let e=0;e<f;e++){let r=Math.ceil(l/i),a=Math.ceil(s/o);for(let n=0;n<a;n++){h.y=n*o;for(let o=0;o<r;o++){h.x=o*i;let r=D(c,h,t);u.set(`${e}/${n}/${o}`,r)}}e<f-1&&(c=U(c,n)),l=Math.round(l/2),s=Math.round(s/2)}return u}function O(e){let{pixelBlock:t,tileSize:r,level:n,row:i,col:o,useBilinear:l}=e;if(!a(t))return null;let{width:s,height:u}=r,h=2**n,f=h*s,c=h*u,p=D(t,{y:i*c,x:o*f},{width:f,height:c});if(!p)return null;for(let e=n;e>0;e--)p=U(p,l);return p}function B(e,t,r,n,i=0){let o,l,a,s,u,h,f,c,p,{width:d,height:g}=e,{width:m,height:y}=t,w=n.cols,C=n.rows,A=Math.ceil(m/w-.1/w),x=Math.ceil(y/C-.1/C),b=A*w,v=b*x*C,M=new Float32Array(v),k=new Float32Array(v),T=new Uint32Array(v),S=new Uint32Array(v),I=0;for(let e=0;e<x;e++)for(let t=0;t<A;t++){o=12*(e*A+t),l=r[o],a=r[o+1],s=r[o+2],u=r[o+3],h=r[o+4],f=r[o+5];for(let r=0;r<C;r++){I=(e*C+r)*b+t*w,p=(r+.5)/C;for(let e=0;e<r;e++)c=(e+.5)/w,M[I+e]=(l*c+a*p+s)*d+i,k[I+e]=(u*c+h*p+f)*g+i,T[I+e]=Math.floor(M[I+e]),S[I+e]=Math.floor(k[I+e])}o+=6,l=r[o],a=r[o+1],s=r[o+2],u=r[o+3],h=r[o+4],f=r[o+5];for(let r=0;r<C;r++){I=(e*C+r)*b+t*w,p=(r+.5)/C;for(let e=r;e<w;e++)c=(e+.5)/w,M[I+e]=(l*c+a*p+s)*d+i,k[I+e]=(u*c+h*p+f)*g+i,T[I+e]=Math.floor(M[I+e]),S[I+e]=Math.floor(k[I+e])}}return{offsets_x:M,offsets_y:k,offsets_xi:T,offsets_yi:S,gridWidth:b}}function N(e,t){let{coefficients:r,spacing:n}=t,{offsets_x:i,offsets_y:o,gridWidth:l}=B(e,e,r,{rows:n[0],cols:n[1]}),{width:a,height:s}=e,u=new Float32Array(a*s),h=180/Math.PI;for(let e=0;e<s;e++)for(let t=0;t<a;t++){let r=e*l+t,n=0===e?r:r-l,f=e===s-1?r:r+l,c=i[n]-i[f],p=o[f]-o[n];if(isNaN(c)||isNaN(p))u[e*a+t]=90;else{let r=Math.atan2(p,c)*h;r=(360+r)%360,u[e*a+t]=r}}return u}function F(e,t,r,n,i="nearest"){if(!a(e))return null;"majority"===i&&(e=E(e));let{pixels:l,mask:s,bandMasks:u,pixelType:h}=e,f=e.width,c=e.height,p=o.A.getPixelArrayConstructor(h),d=l.length,{width:g,height:m}=t,y=!1;for(let e=0;e<r.length;e+=3)-1===r[e]&&-1===r[e+1]&&-1===r[e+2]&&(y=!0);let w,C,{offsets_x:A,offsets_y:x,offsets_xi:b,offsets_yi:v,gridWidth:M}=B({width:f,height:c},t,r,n,"majority"===i?.5:0),k=(e,t,r,n)=>{let i=e instanceof Float32Array||e instanceof Float64Array?0:.5;for(let o=0;o<m;o++){w=o*M;for(let l=0;l<g;l++){if(A[w]<0||x[w]<0)e[o*g+l]=0;else if(n)e[o*g+l]=t[b[w]+v[w]*f];else{let n=Math.floor(A[w]),a=Math.floor(x[w]),s=Math.ceil(A[w]),u=Math.ceil(x[w]),h=A[w]-n,c=x[w]-a;if(!r||r[n+a*f]&&r[s+a*f]&&r[n+u*f]&&r[s+u*f]){let r=(1-h)*t[n+a*f]+h*t[s+a*f],p=(1-h)*t[n+u*f]+h*t[s+u*f];e[o*g+l]=(1-c)*r+c*p+i}else e[o*g+l]=t[b[w]+v[w]*f]}w++}}},T=[],S=u?.length===d,I=[];for(let e=0;e<d;e++){if(S){let t=new Uint8Array(g*m);k(t,u[e],u[e],!0),I.push(t)}C=new p(g*m),k(C,l[e],S?u[e]:s,"nearest"===i||"majority"===i),T.push(C)}let P=new o.A({width:g,height:m,pixelType:h,pixels:T,bandMasks:S?I:void 0});if(null!=s)P.mask=new Uint8Array(g*m),k(P.mask,s,s,!0);else if(y){P.mask=new Uint8Array(g*m);for(let e=0;e<g*m;e++)P.mask[e]=A[e]<0||x[e]<0?0:1}return P.updateStatistics(),P}function V(e){let{pixelBlock:t,extent:r,fieldNames:n,skipFactor:i,skipSpatialReference:o=!1,pixelIdOffset:a=0}=e,s=[],{width:u,height:h,pixels:f,mask:c}=t,p=e.imageRowSize??u,d=r.width/u,g=r.height/h,m=f.length,y=Math.floor(i/2),{xmin:w,ymax:C}=r,A=o?void 0:r.spatialReference.toJSON();for(let e=y;e<h;e+=i)for(let t=y;t<u;t+=i){let r=e*u+t;if(!c||c[r]){let i={x:w+(t+.5)*d,y:C-(e+.5)*g,spatialReference:A},o={[l]:a+e*p+t};for(let e=0;e<m;e++)o[n[e+1]]=f[e][r];s.push({geometry:i,attributes:o})}}return s}},34251(e,t,r){r.d(t,{FI:()=>d,KL:()=>u,Lu:()=>f,Rn:()=>g,Wu:()=>y,Y2:()=>p});var n=r(66552),i=r(47520),o=r(14140);const l=new Map;l.set("meter-per-second",1),l.set("kilometer-per-hour",.277778),l.set("knots",.514444),l.set("feet-per-second",.3048),l.set("mile-per-hour",.44704);const a=180/Math.PI,s=new n.J({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function u(e,t){return l.get(e)/l.get(t)||1}function h(e){return(450-e)%360}function f(e,t="geographic"){let[r,n]=e,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r)*a;return o=(360+o)%360,"geographic"===t&&(o=h(o)),[i,o]}function c(e,t="geographic"){let r=e[1];"geographic"===t&&(r=h(r)),r%=360;let n=e[0];return[n*Math.cos(r/a),n*Math.sin(r/a)]}function p(e,t,r,n="geographic"){if(!(0,i.AB)(e)||null==r)return e;let o="vector-magdir"===t?e.clone():d(e,t),l=o.pixels[1];for(let e=0;e<l.length;e++)l[e]="geographic"===n?(l[e]+r[e]+270)%360:(l[e]+360-r[e])%360;return"vector-magdir"===t?o:d(o,"vector-magdir")}function d(e,t,r="geographic",n=1){if(!(0,i.AB)(e))return e;let{pixels:l,width:a,height:s}=e,u=a*s,h=l[0],p=l[1],d=e.pixelType.startsWith("f")?e.pixelType:"f32",g=o.A.createEmptyBand(d,u),m=o.A.createEmptyBand(d,u),y=0;for(let e=0;e<s;e++)for(let e=0;e<a;e++)"vector-uv"===t?([g[y],m[y]]=f([h[y],p[y]],r),g[y]*=n):([g[y],m[y]]=c([h[y],p[y]],r),g[y]*=n,m[y]*=n),y++;let w=new o.A({pixelType:d,width:e.width,height:e.height,mask:e.mask,validPixelCount:e.validPixelCount,maskIsAlpha:e.maskIsAlpha,pixels:[g,m]});return w.updateStatistics(),w}function g(e,t,r=1){if(1===r||!(0,i.AB)(e))return e;let n=e.clone(),{pixels:o,width:l,height:a}=n,s=o[0],u=o[1],h=0;for(let e=0;e<a;e++)for(let e=0;e<l;e++)"vector-uv"===t?(s[h]*=r,u[h]*=r):s[h]*=r,h++;return n.updateStatistics(),n}function m(e,t,r,n=1){let i=Math.sqrt(e*e+t*t)/n,o=(2*Math.PI+Math.atan2(t,e))%(2*Math.PI);return[i,(2*Math.PI+o-r)%(2*Math.PI)]}function y(e,t,r,n=[0,0],i=.5){let{width:l,height:a,mask:s}=e,[u,h]=e.pixels,[p,d]=n,g=Math.round((l-p)/r),m=Math.round((a-d)/r),y=g*m,w=new Float32Array(y),C=new Float32Array(y),A=new Uint8Array(y),x="vector-uv"===t;for(let e=0;e<m;e++)for(let t=0;t<g;t++){let n=0,o=e*g+t,m=Math.max(0,e*r+d),y=Math.max(0,t*r+p),b=Math.min(a,m+r),v=Math.min(l,y+r);for(let e=m;e<b;e++)for(let t=y;t<v;t++){let r=e*l+t;if(!s||s[r]){n++;let e=x?[u[r],h[r]]:[u[r],(360+h[r])%360],[t,i]=x?e:c(e);w[o]+=t,C[o]+=i}}if(n>=(b-m)*(v-y)*(1-i)){A[o]=1;let[e,t]=f([w[o]/n,C[o]/n]);w[o]=e,C[o]=t}else A[o]=0,w[o]=0,C[o]=0}let b=new o.A({width:g,height:m,pixels:[w,C],mask:A});return b.updateStatistics(),b}!function(e=0,t=0,r=Math.PI,n=!0){n&&(r=(2*Math.PI-r)%(2*Math.PI));let i=n?-1:1,o=13*i,l=-7*i,a=-2*i,s=-16*i,u=21.75,[h,f]=m(0,t+o,r,u),[c,p]=m(e-5.5,t+l,r,u),[d,g]=m(e+5.5,t+l,r,u),[y,w]=m(e-1.5,t+a,r,u),[C,A]=m(e+1.5,t+a,r,u),[x,b]=m(e-1.5,t+s,r,u),[v,M]=m(e+1.5,t+s,r,u)}(0,0,0),r.d(t,["MD",0,s])},14140(e,t,r){r.d(t,{A:()=>c});var n,i=r(32198),o=r(49186),l=r(25482),a=r(4718),s=r(53966),u=r(91429),h=r(94778),f=r(4151);let c=class extends l.o{static{n=this}static createEmptyBand(e,t){return new(n.getPixelArrayConstructor(e))(t)}static combineBandMasks(e){if(e.length<2)return e[0];let t=e[0].length,r=new Uint8Array(t).fill(255);for(let n=0;n<e.length;n++){let i=e[n];for(let e=0;e<t;e++)i[e]||(r[e]=0)}return r}static getPixelArrayConstructor(e){let t;switch(e){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":t=Float32Array;break;case"f64":t=Float64Array}return t}constructor(e){super(e),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(e){if(!e)return"f32";let t=e.toLowerCase();return["u1","u2","u4"].includes(t)?t="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(t)||(t="f32"),t}getPlaneCount(){return this.pixels?.length}addData(e){if(!e.pixels||e.pixels.length!==this.width*this.height)throw new o.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||=[],this.statistics||=[],this.pixels.push(e.pixels),this.statistics.push(e.statistics??new f.A)}getAsRGBA(){let e=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(e);break;default:this._fillFrom8Bit(e)}return new Uint8ClampedArray(e)}getAsRGBAFloat(){let e=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(e),e}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(e=>function(e,t){let r,n=1/0,i=-1/0,o=e.length,l=0;if(null!=t)for(r=0;r<o;r++)t[r]&&(l=e[r],n=l<n?l:n,i=l>i?l:i);else for(r=0;r<o;r++)l=e[r],n=l<n?l:n,i=l>i?l:i;return new f.A(n,i)}(e,this.mask));let e=this.mask,t=0;if(null!=e)for(let r=0;r<e.length;r++)e[r]&&t++;else t=this.width*this.height;this.validPixelCount=t}clamp(e){if(!e||"f64"===e||"f32"===e||!this.pixels)return;let t,r,i,[o,l]=(0,h.hP)(e),a=this.pixels,s=this.width*this.height,u=a.length,f=[];for(let h=0;h<u;h++){i=n.createEmptyBand(e,s),t=a[h];for(let e=0;e<s;e++)r=t[e],i[e]=r>l?l:r<o?o:r;f.push(i)}this.pixels=f,this.pixelType=e}extractBands(e){let{pixels:t,statistics:r}=this;if(null==e||0===e.length||!t||0===t.length)return this;let i=t.length,o=e.some(e=>e>=t.length),l=i===e.length&&!e.some((e,t)=>e!==t);if(o||l)return this;let a=this.bandMasks?.length===i?e.map(e=>this.bandMasks[e]):void 0,{mask:s,validPixelCount:u}=this,{width:h,height:f}=this;return a?.length&&(s=n.combineBandMasks(a),u=s.filter(e=>!!e).length),new n({pixelType:this.pixelType,width:h,height:f,mask:s,bandMasks:a,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:e.map(e=>t[e]),statistics:r&&e.map(e=>r[e])})}clone(){let e=new n({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});null!=this.mask&&(e.mask=new Uint8Array(this.mask)),this.noDataValues&&(e.noDataValues=[...this.noDataValues]),this.bandMasks&&(e.bandMasks=this.bandMasks.map(e=>new Uint8Array(e)));let t,r=n.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){e.pixels=[];let n=!!this.pixels[0].slice;for(t=0;t<this.pixels.length;t++)e.pixels[t]=n?this.pixels[t].slice():new r(this.pixels[t])}if(this.statistics)for(e.statistics=[],t=0;t<this.statistics.length;t++)e.statistics[t]=(0,a.o8)(this.statistics[t]);return e}getTransferableObject(){let{pixels:e,bandMasks:t,mask:r}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;let n=this.toJSON();this.pixels=e,this.bandMasks=t,this.mask=r,n.pixels=e&&[...e],n.bandMasks=t&&[...t],n.mask=r;let i=[];return[...e??[],r,...t??[]].filter(e=>null!=e&&ArrayBuffer.isView(e)).forEach(e=>{e&&!i.includes(e.buffer)&&i.push(e.buffer)}),{pixelBlock:n,transferList:i}}_fillFrom8Bit(e){let t,r,n,i,{mask:o,maskIsAlpha:l,premultiplyAlpha:a,pixels:u}=this;if(!e||!u?.length)return void s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");t=r=n=u[0],u.length>=3?(r=u[1],n=u[2]):2===u.length&&(r=u[1]);let h=new Uint32Array(e),f=this.width*this.height;if(t.length===f)if(null!=o&&o.length===f)if(l)for(i=0;i<f;i++){let e=o[i];if(e){let o=e/255;h[i]=a?e<<24|n[i]*o<<16|r[i]*o<<8|t[i]*o:e<<24|n[i]<<16|r[i]<<8|t[i]}}else for(i=0;i<f;i++)o[i]&&(h[i]=255<<24|n[i]<<16|r[i]<<8|t[i]);else for(i=0;i<f;i++)h[i]=255<<24|n[i]<<16|r[i]<<8|t[i];else s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(e){let{pixels:t,mask:r,statistics:n}=this;if(!e||!t?.length)return void s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i=this.pixelType,o=1,l=0,a=1;if(n&&n.length>0){for(let e of n)if(null!=e.minValue&&(l=Math.min(l,e.minValue)),null!=e.maxValue&&null!=e.minValue){let t=e.maxValue-e.minValue;a=Math.max(a,t)}o=255/a}else{let e=255;"s8"===i?(l=-128,e=127):"u16"===i?e=65535:"s16"===i?(l=-32768,e=32767):"u32"===i?e=4294967295:"s32"===i?(l=-2147483648,e=2147483647):"f32"===i?(l=-34e38,e=34e38):"f64"===i&&(l=-Number.MAX_VALUE,e=Number.MAX_VALUE),o=255/(e-l)}let u,h,f,c,p,d=new Uint32Array(e),g=this.width*this.height;if(u=h=f=t[0],u.length!==g)return s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(t.length>=2)if(h=t[1],t.length>=3&&(f=t[2]),null!=r&&r.length===g)for(c=0;c<g;c++)r[c]&&(d[c]=255<<24|(f[c]-l)*o<<16|(h[c]-l)*o<<8|(u[c]-l)*o);else for(c=0;c<g;c++)d[c]=255<<24|(f[c]-l)*o<<16|(h[c]-l)*o<<8|(u[c]-l)*o;else if(null!=r&&r.length===g)for(c=0;c<g;c++)p=(u[c]-l)*o,r[c]&&(d[c]=255<<24|p<<16|p<<8|p);else for(c=0;c<g;c++)p=(u[c]-l)*o,d[c]=255<<24|p<<16|p<<8|p}_fillFrom32Bit(e){let t,r,n,i,{pixels:o,mask:l}=this;if(!e||!o?.length)return s.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");t=r=n=o[0],o.length>=3?(r=o[1],n=o[2]):2===o.length&&(r=o[1]);let a=this.width*this.height;if(t.length!==a)return s.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=l&&l.length===a)for(i=0;i<a;i++)e[u++]=t[i],e[u++]=r[i],e[u++]=n[i],e[u++]=1&l[i];else for(i=0;i<a;i++)e[u++]=t[i],e[u++]=r[i],e[u++]=n[i],e[u++]=1}};(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"width",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"height",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"pixelType",void 0),(0,i.Cg)([(0,u.wg)("pixelType")],c.prototype,"castPixelType",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"validPixelCount",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"mask",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"maskIsAlpha",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"pixels",void 0),(0,i.Cg)([(0,u.MZ)()],c.prototype,"premultiplyAlpha",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"statistics",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"depthCount",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"noDataValues",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],c.prototype,"bandMasks",void 0),c=n=(0,i.Cg)([(0,u.$K)("esri.layers.support.PixelBlock")],c)},87186(e,t,r){r.d(t,{A:()=>A});var n,i=r(32198),o=r(25482),l=r(4718),a=r(91429),s=r(5443),u=r(16930);function h(e){return e=Number(e),isNaN(e)?void 0:e}let f=class extends o.o{static{n=this}constructor(e){super(e),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new n({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,i.Cg)([(0,a.MZ)({json:{name:"BandName",write:!0}})],f.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:{source:["WavelengthMin","Wavelength","WAVELENGTH"],reader:(e,t)=>h(t.WavelengthMin??t.Wavelength??t.WAVELENGTH)},write:{target:"WavelengthMin"}}})],f.prototype,"minWavelength",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"WavelengthMax",read:{reader:h},write:!0}})],f.prototype,"maxWavelength",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"RadianceBias",read:{reader:h},write:!0}})],f.prototype,"radianceBias",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"RadianceGain",read:{reader:h},write:!0}})],f.prototype,"radianceGain",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"ReflectanceBias",read:{reader:h},write:!0}})],f.prototype,"reflectanceBias",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"ReflectanceGain",read:{reader:h},write:!0}})],f.prototype,"reflectanceGain",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SolarIrradiance",read:{reader:h},write:!0}})],f.prototype,"solarIrradiance",void 0),f=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterBandInfo")],f);var c,p=r(13868),d=r(36005),g=r(43937);function m(e){return e=Number(e),isNaN(e)?void 0:e}let y=class extends o.o{static{c=this}constructor(e){super(e),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(e){return new Date(e)}writeAcquisitionDate(e,t){t.AcquisitionDate=e.getTime()}clone(){return new c({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,i.Cg)([(0,a.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],y.prototype,"acquisitionDate",void 0),(0,i.Cg)([(0,d.w)("acquisitionDate")],y.prototype,"readAcquisitionDate",null),(0,i.Cg)([(0,g.K)("acquisitionDate")],y.prototype,"writeAcquisitionDate",null),(0,i.Cg)([(0,a.MZ)({json:{name:"CloudCover",read:{reader:m},write:!0}})],y.prototype,"cloudCover",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"ProductName",write:!0}})],y.prototype,"productName",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SensorName",write:!0}})],y.prototype,"sensorName",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SensorAzimuth",read:{reader:m},write:!0}})],y.prototype,"sensorAzimuth",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SensorElevation",read:{reader:m},write:!0}})],y.prototype,"sensorElevation",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SunAzimuth",read:{reader:m},write:!0}})],y.prototype,"sunAzimuth",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"SunElevation",read:{reader:m},write:!0}})],y.prototype,"sunElevation",void 0),y=c=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterSensorInfo")],y);var w,C=r(20223);let A=class extends o.o{static{w=this}constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){let e=this.keyProperties.BandProperties,{bandCount:t}=this;if(!e?.length||e.length<t){let e=[];for(let r=1;r<=t;r++)e.push(new f({name:"band_"+r}));return e}let r=e.map(e=>f.fromJSON(e));for(let e=0;e<r.length;e++)r[e].name=r[e].name||"band_"+(e+1);return r}get dataType(){let e=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===e?"standard-time":e}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(e){e&&this._set("nativeExtent",e)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;let e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return y.fromJSON(this.keyProperties)}clone(){return new w({attributeTable:(0,l.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,l.o8)(this.colormap),extent:(0,l.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,l.o8)(this.histograms),keyProperties:(0,l.o8)(this.keyProperties),multidimensionalInfo:(0,l.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,l.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,l.o8)(this.spatialReference),statistics:(0,l.o8)(this.statistics),storageInfo:(0,l.o8)(this.storageInfo),transform:(0,l.o8)(this.transform)})}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"attributeTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"bandCount",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],A.prototype,"bandInfos",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"colormap",void 0),(0,i.Cg)([(0,a.MZ)({type:String,readOnly:!0})],A.prototype,"dataType",null),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],A.prototype,"extent",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],A.prototype,"nativeExtent",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"nativePixelSize",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"format",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"height",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"width",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"hasMultidimensionalTranspose",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"histograms",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"keyProperties",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"multidimensionalInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"noDataValue",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"pixelSize",void 0),(0,i.Cg)([(0,a.MZ)({type:p.e8.apiValues,json:{write:!0}})],A.prototype,"pixelType",void 0),(0,i.Cg)([(0,a.MZ)()],A.prototype,"isPseudoSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],A.prototype,"sensorInfo",null),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],A.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"statistics",void 0),(0,i.Cg)([(0,a.MZ)({type:C.A,json:{write:!0}})],A.prototype,"storageInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"transform",void 0),A=w=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterInfo")],A)},20223(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(25482),l=r(4718),a=r(91429),s=r(86738);let u=class extends o.o{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{n=this}clone(){return new n({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,l.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,l.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,l.o8)(this.tileInfo),transposeInfo:(0,l.o8)(this.transposeInfo),blockBoundary:(0,l.o8)(this.blockBoundary)})}};(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockWidth",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockHeight",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"compression",void 0),(0,i.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],u.prototype,"origin",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"firstPyramidLevel",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"maximumPyramidLevel",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"pyramidResolutions",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidScalingFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockWidth",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockHeight",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"isBsqTile",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isVirtualTileInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tileInfo",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"transposeInfo",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"blockBoundary",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.RasterStorageInfo")],u)},4151(e,t,r){r.d(t,{A:()=>n});class n{constructor(e=null,t=null,r=null){this.minValue=e,this.maxValue=t,this.noDataValue=r}}},13868(e,t,r){var n=r(66552);const i=(0,n.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),o=(0,n.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),l=(0,n.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"});r.d(t,["SZ",0,i,"e8",0,l,"hm",0,o])},67369(e,t,r){r.d(t,{M5:()=>c,R8:()=>m,S2:()=>y,hf:()=>A,hs:()=>f,iv:()=>g,vL:()=>x});var n=r(85334),i=r(66552),o=r(12195);const l=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],a=new i.J({Aspect:"aspect","Black to White":"black-to-white","Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function s(e,t){if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]>t[r]+2||e[r]<t[r]-2)return!1;return!0}function u(e){let t=e.clone();return t.fromColor=e.toColor,t.toColor=e.fromColor,t}function h(e,t){let r=t??l;if("algorithmic"===e.type){let t=e.fromColor.toRgb(),n=e.toColor.toRgb();return r.find(e=>s(t,e.fromColor)&&s(n,e.toColor))?.id}if(e.weights?.length)return;let n=e.colorRamps?.map(e=>({fromColor:e.fromColor.toRgb(),toColor:e.toColor.toRgb()}));return r.find(e=>{let t=e.colorRamps;return!(!n||n.length!==t?.length)&&t.every((e,t)=>s(n[t].fromColor,e.fromColor)&&s(n[t].toColor,e.toColor))})?.id}function f(e,t=!1){let r="string"==typeof e?e:function(e,t,r=!1){if(!e)return;let n=!1,i=h(e,t);return null==i&&!r&&(n=!0,e=function(e){if("multipart"===e.type){let t=e.clone();return t.colorRamps?.length&&(t.colorRamps=t.colorRamps.reverse().map(e=>u(e))),t}return u(e)}(e),i=h(e,t)),i?{id:i,inverted:n}:void 0}(e,void 0,t)?.id;return r?a.toJSON(r):null}function c(e,t="esriCIELabAlgorithm"){let r=l.find(({id:t})=>t===e);return r?r.colorRamps?{type:"multipart",colorRamps:r.colorRamps.map(e=>({type:"algorithmic",algorithm:t,fromColor:[...e.fromColor],toColor:[...e.toColor]}))}:{type:"algorithmic",algorithm:t,fromColor:[...r.fromColor],toColor:[...r.toColor]}:null}function p(e){e??={};let t=e.numColors||256,r=e.distanceOffset||0,n=null==e.isCustomInterval?null!==e.distanceInterval&&e.distanceInterval!==1/(t-1):e.isCustomInterval,i=e.distanceInterval||1/(t-1);return{...e,numColors:t,distanceOffset:r,interpolateAlpha:!!e.interpolateAlpha,distanceInterval:i,isCustomInterval:n,weights:e.weights}}function d(e,t){let{fromColor:r,toColor:i}=e,o=3===r.length?[...r,255]:[...r],l=3===i.length?[...i,255]:[...i],a=e.algorithm||"esriCIELabAlgorithm",s=p(t),{numColors:u,distanceOffset:h,isCustomInterval:f,interpolateAlpha:c}=s;if(1===u&&0===h)return[o];if(2===u&&0===h&&!f)return[o,l];let d={r:o[0],g:o[1],b:o[2]},g={r:l[0],g:l[1],b:l[2]},m="esriCIELabAlgorithm"===a?function(e,t,r){let{numColors:n,distanceOffset:i,distanceInterval:o,isCustomInterval:l}=r,{l:a,a:s,b:u}=e,h=(t.l-a)*o,f=(t.a-s)*o,c=(t.b-u)*o,p=[];if(i){let e=i/o;a+=e*h,s+=e*f,u+=e*c}for(let e=0;e<n-1;e++)p.push({l:a,a:s,b:u}),a+=h,s+=f,u+=c;return p.push(l?{l:a,a:s,b:u}:t),p}((0,n.ZD)(d),(0,n.ZD)(g),s):"esriHSVAlgorithm"===a?function(e,t,r){let{numColors:n,distanceOffset:i,distanceInterval:o,isCustomInterval:l}=r,a=0===e.s,s=0===t.s,u=e.h,h=t.h;a&&!s?u=h:s&&!a&&(t={...t,h:u},h=u);let f=Math.abs(h-u),c=0;f<180?c=(h-u)*o:(f=360-f,c=u>h?f*o:-f*o);let p=(t.s-e.s)*o,d=(t.v-e.v)*o,{s:g,v:m}=e,y=u;if(i){let e=i/o;y=(y+e*c+360)%360,g+=e*p,m+=e*d}let w=[];for(let e=0;e<n-1;e++)w.push({h:y,s:g,v:m}),y=(y+c+360)%360,g+=p,m+=d;return w.push(l?{h:y,s:g,v:m}:t),w}((0,n.N2)(d),(0,n.N2)(g),s):function(e,t,r){let{numColors:n,distanceOffset:i,distanceInterval:o,isCustomInterval:l}=r,a=e.h,s=t.h,u=2*Math.PI,h=0;if(a<=s){let e=s-a,t=s-a-u;h=Math.abs(t)<Math.abs(e)?t:e}else{let e=s+u-a,t=s-a;h=Math.abs(t)<Math.abs(e)?t:e}let f=h*o,c=(t.l-e.l)*o,p=(t.c-e.c)*o,{l:d,c:g,h:m}=e;if(i){let e=i/o;d+=e*c,g+=e*p,m=(m+e*f+u)%u}let y=[];for(let e=0;e<n-1;e++)y.push({l:d,c:g,h:m}),d+=c,g+=p,m=(m+f+u)%u;return y.push(l?{l:d,c:g,h:m}:t),y}((0,n.RH)(d),(0,n.RH)(g),s),y=[],w=o[3]??255,C=((l[3]??255)-w)/(u-1);for(let e=0;e<u;e++){let{r:t,g:r,b:i}=(0,n.$)(m[e]),o=c?Math.round(w+C*e):255;y.push([t,r,i,o])}return y}function g(e,t){let r=(0,o.W)(e)?e.toJSON():e;return"multipart"===r.type?function(e,t){let{numColors:r,interpolateAlpha:n}=p(t),i=function(e,t){let{colorRamps:r}=e;if(t??=r.map(({start:e,stop:t})=>null==e||null==t?-1:t-e),t.length!==r.length||t.some(e=>e<0))return Array.from({length:r.length},()=>1/r.length);let n=t.reduce((e,t)=>e+t);return t.map(e=>e/n)}(e,t?.weights),{colorRamps:o}=e,l=[],a=1/(r-1),s=0,u=!1;for(let e=0;e<o.length;e++){let t=l.length,h=u?0:t*a-s;s+=i[e];let f=e===o.length-1?r-1-t:(i[e]-h)/a;if(u=Math.ceil(f)===f,f=Math.ceil(f),0===f)continue;let c=d(o[e],{numColors:f,interpolateAlpha:n,distanceOffset:h/i[e],distanceInterval:a/i[e]});l.push(...c)}let h=[...o[o.length-1].toColor];return 3===h.length&&h.push(255),l.push(h),l}(r,t):d(r,t)}function m(e,t){let r=g(e,t),n=t?.interpolateAlpha;return r.forEach((e,t)=>{e.unshift(t),n||e.pop()}),r}function y(e){let t=[];for(let r=0;r<e.length;r+=4){let i=(0,n.N2)({r:e[r],g:e[r+1],b:e[r+2]});t.push([i.h/60,i.s/100,255*i.v/100])}return t}function w(e){let t=(0,n.N2)(e);return{type:"HsvColor",Hue:t.h,Saturation:t.s,Value:t.v,AlphaValue:255}}function C(e){return{Algorithm:e.toJSON()?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:w(e.fromColor),ToColor:w(e.toColor)}}function A(e){let t=f(e);if(!t)return null;if("algorithmic"===e.type)return{...C(e),Name:t};if(e.colorRamps){let r=e.colorRamps.map(C);return{type:"MultiPartColorRamp",NumColorRamps:r.length,ArrayOfColorRamp:r,Name:t}}return null}function x(e){let t=[...e].reverse().map(e=>{let t=e.toString(16);return t.length<2?"0"+t:t});return 4294967295&Number.parseInt(t.join(""),16)}r.d(t,["L7",0,["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],"kH",0,a,"vj",0,l])},88178(e,t,r){function n(e,t){let{attributeTable:r,bandCount:n}=e;return!(null!=r||(i=e,!["u8","s8"].includes(i.pixelType)||null==i.statistics?.[0]?.min||null==i.statistics[0]?.max||1!==i.bandCount))||!(null==r||n>1||t&&null==r.fields.find(e=>e.name.toLowerCase()===t.toLowerCase()));var i}function i(e){let{bandCount:t,dataType:r,pixelType:n}=e;return"elevation"===r||"generic"===r&&1===t&&("s16"===n||"s32"===n||"f32"===n||"f64"===n)}function o(e,t=!1){let{bandCount:r,colormap:n,pixelType:i}=e;return 1===r&&(!!n?.length||!t&&"u8"===i)}function l(e,t=!1){let{attributeTable:r,bandCount:n}=e;return 1===n&&(!t||null!=r||null!=e.histograms)}function a(e){let{dataType:t}=e;return"vector-uv"===t||"vector-magdir"===t}function s(e){let{dataType:t}=e;return"vector-uv"===t||"vector-magdir"===t}function u(e){return!!e?.length&&e.length<=16384}r.d(t,{FA:()=>o,QJ:()=>s,WN:()=>u,hu:()=>n,iL:()=>i,rd:()=>a,xX:()=>l})},70274(e,t,r){const n=new(r(66552).J)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"});r.d(t,["u",0,n,"x",0,{0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}])},491(e,t,r){r.d(t,{CW:()=>c});var n=r(44208),i=r(53966),o=r(17676);function l(e){let t=new Float32Array(a(e));return a(e,t),t}function a(e,t){let r=0;t&&(t[r]=e.length),r++;for(let n of e){t&&(t[r]=n.stage),r++,t&&(t[r]=n.vertices.length),r++;for(let e of n.vertices)t&&(t[r]=e.x,t[r+1]=e.y,t[r+2]=e.time,t[r+3]=e.speed),r+=4}return r}const s=[1,2],u=[1,2,3,4];var h=r(97441);const f=()=>i.A.getLogger("esri.views.2d.engine.flow.dataUtils");async function c(e,t,r,i,a){let c=performance.now();(0,h.dF)(r);let p=function(e,t){let{perturb:r}=t;if(r){let{rotation:t}=r;null!=t&&(e=function(e,t){let r=Math.cos(t),n=Math.sin(t);return(t,i)=>{let[o,l]=e(t,i);return[r*o+n*l,-n*o+r*l]}}(e,t));let{scale:n}=r;null!=n&&(e=function(e,t){return(r,n)=>{let[i,o]=e(r,n);return[i*t,o*t]}}(e,n))}return e}((0,h.DE)(t,r),t),d=performance.now(),g=(0,h.S1)(t,p,r.width,r.height,i),m=performance.now(),y=function(e){let t=e.reduce((e,t)=>e+t.vertices.length,0),r=new Float32Array(4*t),n=Array(e.length),i=0,o=0;for(let{vertices:t}of e){let e=i;for(let e of t)r[4*i]=e.x,r[4*i+1]=e.y,r[4*i+2]=e.time,r[4*i+3]=e.speed,i++;n[o++]={startVertex:e,numberOfVertices:t.length,firstTime:t[0].time,lastTime:t[t.length-1].time}}return{lineVertices:r,lineDescriptors:n}}(g),w=performance.now(),C="Streamlines"===e?function(e,t,r){let{lineVertices:n,lineDescriptors:i}=e,o=0,a=0;for(let e of i)o+=2*e.numberOfVertices,a+=6*(e.numberOfVertices-1);let s=new Float32Array(9*o),u=new Uint32Array(a),h=0,f=0;function c(){u[f++]=h-2,u[f++]=h,u[f++]=h-1,u[f++]=h,u[f++]=h+1,u[f++]=h-1}function p(e,t,r,n,i,o,l,a){let u=9*h,f=0;s[u+f++]=e,s[u+f++]=t,s[u+f++]=1,s[u+f++]=r,s[u+f++]=o,s[u+f++]=l,s[u+f++]=n/2,s[u+f++]=i/2,s[u+f++]=a,h++,s[u+f++]=e,s[u+f++]=t,s[u+f++]=-1,s[u+f++]=r,s[u+f++]=o,s[u+f++]=l,s[u+f++]=-n/2,s[u+f++]=-i/2,s[u+f++]=a,h++}for(let e of i){let{firstTime:t,lastTime:r}=e,i=null,o=null,l=null,a=null,s=null,u=null;for(let h=0;h<e.numberOfVertices;h++){let f=n[4*(e.startVertex+h)],d=n[4*(e.startVertex+h)+1],g=n[4*(e.startVertex+h)+2],m=n[4*(e.startVertex+h)+3],y=null,w=null,C=null,A=null;if(h>0){y=f-i,w=d-o;let e=Math.sqrt(y*y+w*w);if(y/=e,w/=e,h>1){let e=y+s,t=w+u,r=Math.sqrt(e*e+t*t);e/=r,t/=r;let n=Math.min(1/(e*y+t*w),10);e*=n,t*=n,C=-t,A=e}else C=-w,A=y;null!==C&&null!==A&&(p(i,o,l,C,A,t,r,m),c())}i=f,o=d,l=g,s=y,u=w,a=m}p(i,o,l,-u,s,t,r,a)}return{vertexData:s,indexData:u,pathData:l(r)}}(y,0,g):function(e,t){let{lineVertices:r,lineDescriptors:n}=e,i=0,o=0;for(let e of n){let t=e.numberOfVertices-1;i+=4*t*2,o+=6*t*2}let a,h,f,c,p,d,g,m,y,w,C,A,x,b,v=new Float32Array(16*i),M=new Uint32Array(o),k=0,T=0;function S(e,t,r,n,i,o,l,a,h,f,c,p,d,g){let m=16*k,y=0;for(let w of s)for(let s of u)v[m+y++]=e,v[m+y++]=t,v[m+y++]=r,v[m+y++]=n,v[m+y++]=l,v[m+y++]=a,v[m+y++]=h,v[m+y++]=f,v[m+y++]=w,v[m+y++]=s,v[m+y++]=d,v[m+y++]=g,v[m+y++]=i/2,v[m+y++]=o/2,v[m+y++]=c/2,v[m+y++]=p/2,k++}function I(e,t){let r=y+C,n=w+A,i=Math.sqrt(r*r+n*n);r/=i,n/=i;let o=y*r+w*n;r/=o,n/=o;let l=C+x,s=A+b,u=Math.sqrt(l*l+s*s);l/=u,s/=u;let v=C*l+A*s;l/=v,s/=v,S(a,h,f,c,-n,r,p,d,g,m,-s,l,e,t),M[T++]=k-8,M[T++]=k-7,M[T++]=k-6,M[T++]=k-7,M[T++]=k-5,M[T++]=k-6,M[T++]=k-4,M[T++]=k-3,M[T++]=k-2,M[T++]=k-3,M[T++]=k-1,M[T++]=k-2}function E(e,t,r,n,i,o){if(y=C,w=A,C=x,A=b,null==y&&null==w&&(y=C,w=A),null!=p&&null!=d){x=e-p,b=t-d;let r=Math.sqrt(x*x+b*b);x/=r,b/=r}null!=y&&null!=w&&I(i,o),a=p,h=d,f=g,c=m,p=e,d=t,g=r,m=n}function P(e,t){y=C,w=A,C=x,A=b,null==y&&null==w&&(y=C,w=A),null!=y&&null!=w&&I(e,t)}for(let e of n){a=null,h=null,f=null,c=null,p=null,d=null,g=null,m=null,y=null,w=null,C=null,A=null,x=null,b=null;let{firstTime:t,lastTime:n}=e;for(let i=0;i<e.numberOfVertices;i++)E(r[4*(e.startVertex+i)],r[4*(e.startVertex+i)+1],r[4*(e.startVertex+i)+2],r[4*(e.startVertex+i)+3],t,n);P(t,n)}return{vertexData:v,indexData:M,pathData:l(t)}}(y,g),A=performance.now();return(0,n.A)("esri-2d-profiler")&&(f().info("I.1","_createFlowFieldFromData (ms)",Math.round(d-c)),f().info("I.2","_getStreamlines (ms)",Math.round(m-d)),f().info("I.3","createAnimatedLinesData (ms)",Math.round(w-m)),f().info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(A-w)),f().info("I.5","createFlowMesh (ms)",Math.round(A-c)),f().info("I.6","Mesh size (bytes)",C.vertexData.buffer.byteLength+C.indexData.buffer.byteLength)),await Promise.resolve(),(0,o.Te)(a),C}},97441(e,t,r){r.d(t,{DE:()=>s,S1:()=>l,dF:()=>a}),r(44208),r(53966);var n=r(34727),i=r(87811),o=r(78659);function l(e,t,r,n,o){if(e.density<=0)return[];let{positions:l}=o,a=[],s=new i.A,f=1/Math.max(e.lineCollisionWidth,1),c=Math.round(r*f),p=Math.round(n*f),d=new Int32Array(c*p);for(let e=0;e<d.length;e++)d[e]=-1;let g={raster:d,width:c,height:p,resolutionFactor:f},m={},y=e.lineSpacing/Math.sqrt(e.density),w=Math.floor(n/y),C=Math.floor(r/y);for(let e=0;e<w;e++){let t=e*y;for(let r=0;r<C;r++){let n=r*y;m[`${r}-${e}`]={x:n,y:t,positions:[]}}}for(let{x:e,y:t}of l){let r=m[`${Math.floor(e/y)}-${Math.floor(t/y)}`];r&&r.positions.push([e,t])}let A=[];for(let e in m){let t=m[e];if(0===t.positions.length)A.push({x:t.x+y/2,y:t.y+y/2,sort:.66+.33*s.getFloat(),stage:0});else{let[e]=t.positions.splice(0,1);A.push({x:e[0],y:e[1],sort:.33*s.getFloat(),stage:1});for(let[e,r]of t.positions)A.push({x:e,y:r,sort:.33+.33*s.getFloat(),stage:2})}}A.sort((e,t)=>e.sort-t.sort);for(let{x:i,y:o,stage:l}of A){if(a.length>=e.maxNumberOfStreamlines)break;let f=e.onlyForwardTracing?u(1,e,t,i,o,[r,n],a.length,g):h(e,t,i,o,[r,n],a.length,s,g);f.length<2||a.push({stage:l,vertices:f})}return a}function a(e){for(let t=0;t<e.mask.length;t++)0===e.mask[t]&&(e.data[2*t]=0,e.data[2*t+1]=0)}function s(e,t){let r=function(e,t,r,n){if(0===n)return e;let i=Math.round(3*n),o=Array(2*i+1),l=0;for(let e=-i;e<=i;e++){let t=Math.exp(-e*e/(n*n));o[e+i]=t,l+=t}for(let e=-i;e<=i;e++)o[e+i]/=l;let a=new Float32Array(e.length);for(let n=0;n<r;n++)for(let r=0;r<t;r++){let l=0,s=0;for(let a=-i;a<=i;a++){if(r+a<0||r+a>=t)continue;let u=o[a+i];l+=u*e[2*(n*t+(r+a))],s+=u*e[2*(n*t+(r+a))+1]}a[2*(n*t+r)]=l,a[2*(n*t+r)+1]=s}let s=new Float32Array(e.length);for(let e=0;e<t;e++)for(let n=0;n<r;n++){let l=0,u=0;for(let s=-i;s<=i;s++){if(n+s<0||n+s>=r)continue;let h=o[s+i];l+=h*a[2*((n+s)*t+e)],u+=h*a[2*((n+s)*t+e)+1]}s[2*(n*t+e)]=l,s[2*(n*t+e)+1]=u}return s}(t.data,t.width,t.height,e.smoothing);return e.interpolate?(e,n)=>{let i=Math.floor(e),o=Math.floor(n);if(i<0||i>=t.width||o<0||o>=t.height)return[0,0];let l=e-i,a=n-o,s=i,u=o,h=i<t.width-1?i+1:i,f=o<t.height-1?o+1:o,c=r[2*(u*t.width+s)],p=r[2*(u*t.width+h)],d=r[2*(f*t.width+s)],g=r[2*(f*t.width+h)],m=r[2*(u*t.width+s)+1],y=r[2*(u*t.width+h)+1];return[(c*(1-a)+d*a)*(1-l)+(p*(1-a)+g*a)*l,(m*(1-a)+r[2*(f*t.width+s)+1]*a)*(1-l)+(y*(1-a)+r[2*(f*t.width+h)+1]*a)*l]}:(e,n)=>{let i=Math.round(e),o=Math.round(n);return i<0||i>=t.width||o<0||o>=t.height?[0,0]:[r[2*(o*t.width+i)],r[2*(o*t.width+i)+1]]}}function u(e,t,r,i,l,a,s,u){let h=[],{raster:f,width:c,height:p,resolutionFactor:d}=u,g=i,m=l,y=(0,o.Kp)(0),[w,C]=r(g,m);w*=t.velocityScale,C*=t.velocityScale;let A,x,b=Math.sqrt(w*w+C*C);h.push({x:g,y:m,time:y,speed:b});for(let i=0;i<t.verticesPerLine;i++){let[i,l]=r(g,m);i*=t.velocityScale,l*=t.velocityScale;let u=Math.sqrt(i*i+l*l);if(u<t.minSpeedThreshold)return h;let w=e*i/u,C=e*l/u;g+=w*t.segmentLength,m+=C*t.segmentLength,t.wrapAround&&(g=(0,n.OS)(g,a[0]));let b=e*t.segmentLength/u;if(y=(0,o.Kp)(y+b),Math.acos(w*A+C*x)>t.maxTurnAngle)return h;if(t.collisions){let e=Math.round(g*d),r=Math.round(m*d);if(t.wrapAround&&(e=(0,n.OS)(e,c)),e<0||e>c-1||r<0||r>p-1)return h;let i=f[r*c+e];if(-1!==i&&i!==s)return h;f[r*c+e]=s}h.push({x:g,y:m,time:y,speed:u}),A=w,x=C}return h}function h(e,t,r,n,i,o,l,a){let s=Math.round((.2+.6*l.getFloat())*e.verticesPerLine),h=e.verticesPerLine-s,f=u(-1,{...e,verticesPerLine:h},t,r,n,i,o,a),c=u(1,{...e,verticesPerLine:s},t,r,n,i,o,a),p=f.reverse();return p.splice(-1,1),p.concat(c)}r(5443),r(21325)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1843],{48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function u(){return n(1,1)}function f(){return n(-1,-1)}function h(){return n(1,0)}function c(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const l=u(),d=f(),o=h(),a=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:l,UNIT_X:o,UNIT_Y:a,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:f,ones:u,unitX:h,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,l])},91829(e,t,r){function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function n(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function f(){return i(0,1,0,0)}function h(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>i,vt:()=>s});const l=[0,0,0,0],d=n(),o=u(),a=f(),p=h(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:o,UNIT_Y:a,UNIT_Z:p,ZEROS:l,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,freeze:function(e,t,r,s){return[e,t,r,s]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:i,ones:n,unitW:c,unitX:u,unitY:f,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,l,"v7",0,y])},78955(e,t,r){r.d(t,{Bw:()=>E,C:()=>i,Cc:()=>S,LI:()=>o,Om:()=>_,S8:()=>T,T9:()=>d,WQ:()=>u,Z0:()=>m,aI:()=>R,hG:()=>y,hZ:()=>n,hs:()=>a,jk:()=>l,m3:()=>B,t2:()=>A});var s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function n(e,t,r,s,i){return e[0]=t,e[1]=r,e[2]=s,e[3]=i,e}function u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function f(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function l(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function o(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function a(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+s*s+i*i+n*n)}function y(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return r*r+s*s+i*i+n*n}function E(e){let t=e[0],r=e[1],s=e[2],i=e[3];return Math.sqrt(t*t+r*r+s*s+i*i)}function B(e){let t=e[0],r=e[1],s=e[2],i=e[3];return t*t+r*r+s*s+i*i}function T(e,t){let r=t[0],s=t[1],i=t[2],n=t[3],u=r*r+s*s+i*i+n*n;return u>0&&(u=1/Math.sqrt(u),e[0]=r*u,e[1]=s*u,e[2]=i*u,e[3]=n*u),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function S(e,t,r,s){let i=t[0],n=t[1],u=t[2],f=t[3];return e[0]=i+s*(r[0]-i),e[1]=n+s*(r[1]-n),e[2]=u+s*(r[2]-u),e[3]=f+s*(r[3]-f),e}function m(e,t,r){let s=t[0],i=t[1],n=t[2],u=t[3];return e[0]=r[0]*s+r[4]*i+r[8]*n+r[12]*u,e[1]=r[1]*s+r[5]*i+r[9]*n+r[13]*u,e[2]=r[2]*s+r[6]*i+r[10]*n+r[14]*u,e[3]=r[3]*s+r[7]*i+r[11]*n+r[15]*u,e}function A(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function R(e,t){let r=e[0],i=e[1],n=e[2],u=e[3],f=t[0],h=t[1],c=t[2],l=t[3],d=(0,s.FD)();return Math.abs(r-f)<=d*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-h)<=d*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(u-l)<=d*Math.max(1,Math.abs(u),Math.abs(l))}const M=f,N=h,I=c,b=p,C=y,F=E,O=B;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:b,distance:p,div:I,divide:c,dot:_,equals:R,exactEquals:A,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:F,length:E,lerp:S,max:d,min:l,mul:N,multiply:h,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:T,random:function(e,t=1){let r,i,n,u,f,h,c=s.Ov;do{r=2*c()-1,i=2*c()-1,f=r*r+i*i}while(f>=1);do{n=2*c()-1,u=2*c()-1,h=n*n+u*u}while(h>=1);let l=Math.sqrt((1-f)/h);return e[0]=t*r,e[1]=t*i,e[2]=t*n*l,e[3]=t*u*l,e},round:o,scale:a,scaleAndAdd:function(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e[3]=t[3]+r[3]*s,e},set:n,sqrDist:C,sqrLen:O,squaredDistance:y,squaredLength:B,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:f,transformMat4:m,transformQuat:function(e,t,r){let s=t[0],i=t[1],n=t[2],u=r[0],f=r[1],h=r[2],c=r[3],l=c*s+f*n-h*i,d=c*i+h*s-u*n,o=c*n+u*i-f*s,a=-u*s-f*i-h*n;return e[0]=l*c+a*-u+d*-h-o*-f,e[1]=d*c+a*-f+o*-u-l*-h,e[2]=o*c+a*-h+l*-f-d*-u,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},13030(e,t,r){r.d(t,{Y$:()=>E,XW:()=>y,qB:()=>b,Qt:()=>Z,My:()=>J,bf:()=>X,jZ:()=>R,j0:()=>M,Sx:()=>N,E$:()=>I,Qy:()=>se,h:()=>x,P:()=>w,SL:()=>G,dy:()=>te,ES:()=>ie,gH:()=>T,ZD:()=>B,si:()=>C,mJ:()=>$,UL:()=>Q,D6:()=>j,Yi:()=>P,An:()=>Y,LC:()=>g,xs:()=>S,EC:()=>_,Xm:()=>F,Vp:()=>k,zD:()=>K,m8:()=>q,nS:()=>D,H$:()=>H,eI:()=>L,td:()=>re,Eq:()=>A,jz:()=>m,Aj:()=>O,E7:()=>W,Y4:()=>ee,TX:()=>z,Uz:()=>v,ml:()=>V,XP:()=>U});var s=r(34727),i=r(37585),n=r(48163),u=r(78955),f=r(91829);class h{static{this.ElementCount=9}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=9;let n=this.TypedArrayConstructor;void 0===s&&(s=9*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;for(let e=0;e<9;++e)s[n++]=i[u++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=16}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=16;let n=this.TypedArrayConstructor;void 0===s&&(s=16*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){let s=this.typedBuffer,i=e*this.typedBufferStride;for(let e=0;e<16;++e)s[i++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=1}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=1;let n=this.TypedArrayConstructor;void 0===s&&(s=n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.stride=s,this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class d{static{this.ElementCount=2}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;let n=this.TypedArrayConstructor;void 0===s&&(s=2*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,i.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var o=r(35522);class a{static{this.ElementCount=3}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=3;let n=this.TypedArrayConstructor;void 0===s&&(s=3*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=s}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;let n=this.TypedArrayConstructor;void 0===s&&(s=4*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,u.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s,i){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=s,this.typedBuffer[e]=i}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class y extends l{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class E extends l{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}static{this.ElementType="f32"}}class B extends d{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(B,e,t)}static{this.ElementType="f16"}}class T extends d{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f32"}}class _ extends a{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f16"}}class S extends a{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(S,e,t)}static fromTypedArray(e,t){return new S(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class m extends p{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(m,e,t)}static{this.ElementType="f16"}}class A extends p{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f32"}}class R extends h{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class M extends h{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="f32"}}class I extends c{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class b extends l{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f64"}}class C extends d{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="f64"}}class F extends a{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(F,e,t)}static fromTypedArray(e,t){return new F(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class O extends p{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(O,e,t)}static{this.ElementType="f64"}}class G extends l{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u8"}}class g extends d{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="u8"}}class L extends a{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static fromTypedArray(e,t){return new L(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class U extends p{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u8"}}class x extends l{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="u16"}}class P extends d{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class D extends a{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class v extends p{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="u16"}}class w extends l{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="u32"}}class Y extends d{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="u32"}}class H extends a{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="u32"}}class V extends p{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class X extends l{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i8"}}class j extends d{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class q extends a{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="i8"}}class z extends p{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i8"}}class Z extends l{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class k extends a{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="i16"}}class W extends p{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class J extends l{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class Q extends d{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i32"}}class K extends a{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends G{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,s.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends U{constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,u.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,u.jk)(ue,(0,u.T9)(ue,t,f.uY),f.Un),(0,u.hs)(ue,ue,255),(0,u.LI)(ue,ue),super.setVec(e,ue)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,s.qE)(r,0,1)))}setValues(e,t,r,s,i){(0,u.hZ)(ue,t,r,s,i),this.setVec(e,ue)}slice(e,t){return this.sliceBuffer(re,e,t)}}class se extends Z{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,s.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(se,e,t)}}class ie extends ${constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,i.hZ)(ne,-1,-1),(0,i.T9)(t,(0,i.hs)(t,super.getVec(e,t),1/32767),ne)}setVec(e,t){(0,i.qE)(ne,t,n.IA,n.Un),(0,i.hs)(ne,ne,32767),(0,i.LI)(ne,ne),super.setVec(e,ne)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,s.qE)(r,-1,1)))}setValues(e,t,r){(0,i.hZ)(ne,t,r),this.setVec(e,ne)}slice(e,t){return this.sliceBuffer(ie,e,t)}}const ne=(0,n.vt)(),ue=(0,f.vt)()},90239(e,t,r){function s(e){switch(e){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(t,{GJ:()=>s})},1843(e,t,r){r.d(t,{BP:()=>l,l5:()=>d});var s=r(13030),i=r(90239),n=r(4431),u=r(620),f=r(85079);class h{constructor(e,t,r=0){this.layout=e,this.byteOffset=r,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(let t of e.fields.keys()){let s=e.fields.get(t);this[t]=new s.constructor(this.buffer,r+s.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(e,t){let r=this[e];return r&&r.elementCount===t.ElementCount&&r.elementType===t.ElementType?r:null}slice(e,t){return new h(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t=0,r=0,s=e.count){let i=this.stride,n=e.byteOffset+t*i,u=this.byteOffset+r*i,f=s*i;if(i%4==0&&n%4==0&&u%4==0){let t=new Uint32Array(e.buffer,n,f/4);new Uint32Array(this.buffer,u,f/4).set(t)}else{let t=new Uint8Array(e.buffer,n,f);new Uint8Array(this.buffer,u,f).set(t)}return this}get usedMemory(){return this.byteLength}dispose(){}}class c{constructor(e){this._stride=0,this._fields=new Map,e&&(this._stride=e.stride,e.fields.forEach(e=>this._fields.set(e[0],{...e[1],constructor:p(e[1].constructor)})))}freeze(){return this}get locations(){return(0,f.Xk)((0,n.U)(this))}vec2f16(e,t){return this._appendField(e,s.ZD,t),this}vec2f(e,t){return this._appendField(e,s.gH,t),this}vec2f64(e,t){return this._appendField(e,s.si,t),this}vec3f16(e,t){return this._appendField(e,s.EC,t),this}vec3f(e,t){return this._appendField(e,s.xs,t),this}vec3f64(e,t){return this._appendField(e,s.Xm,t),this}vec4f16(e,t){return this._appendField(e,s.jz,t),this}vec4f(e,t){return this._appendField(e,s.Eq,t),this}vec4f64(e,t){return this._appendField(e,s.Aj,t),this}mat3f(e,t){return this._appendField(e,s.jZ,t),this}mat3f64(e,t){return this._appendField(e,s.j0,t),this}mat4f(e,t){return this._appendField(e,s.Sx,t),this}mat4f64(e,t){return this._appendField(e,s.E$,t),this}vec4u8(e,t){return this._appendField(e,s.XP,t),this}f16(e,t){return this._appendField(e,s.XW,t),this}f32(e,t){return this._appendField(e,s.Y$,t),this}f64(e,t){return this._appendField(e,s.qB,t),this}u8(e,t){return this._appendField(e,s.SL,t),this}u16(e,t){return this._appendField(e,s.h,t),this}i8(e,t){return this._appendField(e,s.bf,t),this}vec2i8(e,t){return this._appendField(e,s.D6,t),this}vec2i16(e,t){return this._appendField(e,s.mJ,t),this}vec2u8(e,t){return this._appendField(e,s.LC,t),this}vec2u16(e,t){return this._appendField(e,s.Yi,t),this}vec4u16(e,t){return this._appendField(e,s.Uz,t),this}vec4i16(e,t){return this._appendField(e,s.E7,t),this}u32(e,t){return this._appendField(e,s.P,t),this}_appendField(e,t,r){this._fields.has(e)&&(0,u.vA)(!1,`${e} already added to vertex buffer layout`);let s=t.ElementCount*(0,i.GJ)(t.ElementType),n=this._stride;this._fields.set(e,{constructor:t,size:s,offset:n,optional:r}),this._alignFields()}_alignFields(){let e=0,t=1;this._fields.forEach(r=>{let s=(0,i.GJ)(r.constructor.ElementType);e=Math.floor((e+s-1)/s)*s,r.offset=e,e+=r.size,t=Math.max(t,s)}),e=Math.floor((e+t-1)/t)*t,this._stride=e}createBuffer(e){return new h(this,e)}createView(e,t){return new h(this,e,t)}clone(){let e=new c;return e._stride=this._stride,e._fields=new Map,this._fields.forEach((t,r)=>e._fields.set(r,t)),e}get stride(){return this._stride}get fields(){return this._fields}}function l(){return new c}class d{constructor(e){this.fields=[],e.fields.forEach((e,t)=>{let r={...e,constructor:a(e.constructor)};this.fields.push([t,r])}),this.stride=e.stride}}const o=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function a(e){return`${e.ElementType}_${e.ElementCount}`}function p(e){return y.get(e)}const y=new Map;o.forEach(e=>y.set(a(e),e))},4431(e,t,r){r.d(t,{U:()=>n});var s=r(63907),i=r(74038);function n(e,t=0){let r=e.stride;return e.fields.entries().map(([e,n])=>{let u=n.constructor.ElementCount,f=function(e){switch(e){case"u8":return s.pe.UNSIGNED_BYTE;case"u16":return s.pe.UNSIGNED_SHORT;case"u32":return s.pe.UNSIGNED_INT;case"i8":return s.pe.BYTE;case"i16":return s.pe.SHORT;case"i32":return s.pe.INT;case"f16":return s.pe.HALF_FLOAT;case"f32":return s.pe.FLOAT;default:throw Error("BufferType not supported in WebGL")}}(n.constructor.ElementType),h=n.offset,c=n.optional?.glNormalized??!1,l=n.optional?.integer??!1;return new i._(e,u,f,h,r,c,t,l)}).toArray()}},620(e,t,r){r.d(t,{O_:()=>n,vA:()=>i}),r(48163),r(78955),(0,r(91829).vt)();class s{constructor(e){this.message=e}toString(){return`AssertException: ${this.message}`}}function i(e,t="Assertion"){if(!e){let e=Error(t).stack;throw new s(`${t} at ${e}`)}}function n(e,t,r,s){let i,n=(r[0]-e[0])/t[0],u=(s[0]-e[0])/t[0];n>u&&(i=n,n=u,u=i);let f=(r[1]-e[1])/t[1],h=(s[1]-e[1])/t[1];if(f>h&&(i=f,f=h,h=i),n>h||f>u)return!1;f>n&&(n=f),h<u&&(u=h);let c=(r[2]-e[2])/t[2],l=(s[2]-e[2])/t[2];return c>l&&(i=c,c=l,l=i),!(n>l||c>u||(l<u&&(u=l),u<0))}},85079(e,t,r){r.d(t,{Sk:()=>u,Xk:()=>i,_u:()=>n});var s=r(21818);function i(e){let t=0;return(0,s.z)(new Map(e.map(({name:e,count:r})=>{let s=[e,t];return 16===r?t+=4:9===r?t+=3:++t,s})))}function n(e){let t=new Map,r=0;return e.forEach(e=>e.forEach(({name:e,count:s})=>{t.set(e,r),16===s?r+=4:9===s?r+=3:++r})),t}function u(e){return n(Array.from(e.values()).map(({layout:e})=>e))}},74038(e,t,r){r.d(t,{_:()=>s});class s{constructor(e,t,r,s,i,n=!1,u=0,f=!1){this.name=e,this.count=t,this.type=r,this.offset=s,this.stride=i,this.normalized=n,this.divisor=u,this.integer=f}}},63907(e,t,r){const s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},n=Object.values(i),u={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(t,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,n,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,s,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
File without changes
|