@arcgis/core 5.0.0-next.33 → 5.0.0-next.34
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{9252854b512237b6a0ef.js → 0446562aee0639c61485.js} +1 -1
- package/assets/esri/core/workers/chunks/{b56c07c0b43cb1999070.js → 1fa55d4c4b092a98bdd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{e7f4d135ef9665de1468.js → 33431e8131f6017de2f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{096e5f94eaa226814569.js → 4356274cfa477eb6d749.js} +1 -1
- package/assets/esri/core/workers/chunks/{866a608d489bf56bc371.js → 486e69261aa2caf9ec3c.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c1e50c3505e5e7c946a.js → 4d5591c1b4ef37075921.js} +1 -1
- package/assets/esri/core/workers/chunks/{d21ae4980741be98f948.js → 59889855d23baec1adf9.js} +1 -1
- package/assets/esri/core/workers/chunks/5f9e64f00329cb646f0c.js +1 -0
- package/assets/esri/core/workers/chunks/{c2596f48b37092dd566c.js → 61cb30e2e8edd18ebbf0.js} +1 -1
- package/assets/esri/core/workers/chunks/{d786b17cc9062b1450ac.js → 726a797f5df7eeee0b3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2cee5ac0d4df0108425.js → 82cc758bddd9f8397b9f.js} +1 -1
- package/assets/esri/core/workers/chunks/{433d249c35c56bf15806.js → 97650ee3d0eecb69ccbb.js} +3 -3
- package/assets/esri/core/workers/chunks/{add17e95f47e6904bf6d.js → a59dab47a58695c639da.js} +1 -1
- package/assets/esri/core/workers/chunks/{f441fc74451330384fb0.js → abb05a903440d97a6a74.js} +1 -1
- package/assets/esri/core/workers/chunks/{5baef729beef0199c3d9.js → b536fdb655ad293d9024.js} +1 -1
- package/assets/esri/core/workers/chunks/{1d4ea8db272655c0608c.js → c7c721de93bc8688e13c.js} +1 -1
- package/assets/esri/core/workers/chunks/{446f76356fc116204ec3.js → c8d2cce4a426c72ab173.js} +1 -1
- package/assets/esri/core/workers/chunks/{14feb12826e0c8ba7fb8.js → d14bd320f72d8e8a0ad8.js} +1 -1
- package/assets/esri/core/workers/chunks/{4b6a44c6265c8959abd8.js → d3db7244fac7398cc700.js} +1 -1
- package/assets/esri/core/workers/chunks/{7aa730e5ac7b268e3c98.js → dd34d56caafa38d4b8e4.js} +1 -1
- package/assets/esri/core/workers/chunks/{2a17991923abc64c84c6.js → f55328aabf84770c8e6a.js} +1 -1
- package/assets/esri/core/workers/chunks/{e32fc0b2c6530d28ce85.js → fa01d1813fa78034526e.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/chunks/ComponentShader.glsl.js +19 -21
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +9 -11
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/vec32.js +1 -1
- package/config.js +1 -1
- package/core/deprecate.js +1 -1
- package/core/has.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/geometry/operators/integrateOperator.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +45 -25
- package/intl/locale.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +1 -1
- package/layers/support/layerOriginUtils.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/package.json +3 -3
- package/request/config.js +1 -1
- package/request/process.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/controllers/FovController.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/{shader/ComponentData.glsl.js → ComponentData.glsl.js} +2 -2
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentShader.glsl.js +5 -0
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/{shader/DecodeSymbolColor.glsl.js → DecodeSymbolColor.glsl.js} +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/SegmentLabels.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/widgets/Attachments/AttachmentsViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
- package/widgets/BuildingExplorer.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/ShadowCast/DiscreteOptions.js +1 -1
- package/widgets/ShadowCast/DurationOptions.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/ShadowCast/ThresholdOptions.js +1 -1
- package/widgets/ShadowCast.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/f3127bdf28a1d9b8db27.js +0 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +0 -5
- /package/views/3d/webgl-engine/collections/Component/Material/{shader/ComponentDataConstants.js → ComponentDataConstants.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8535],{17136:(e,t,r)=>{r.d(t,{Y_:()=>S,O7:()=>B,el:()=>A});var n=r(92602),o=r(69052),s=r(49186),i=r(53966),a=r(39829),u=r(82799),l=r(16930),c=r(80754),f=r(21325),d=r(28735),p=r(11254),m=r(65864),h=r(2272),g=r(84952),y=r(92300);const x=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function v(e,t,r){if(t){const t=function(e,t){if(!(e instanceof u.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(e),new s.A("internal:geometry",e)}const r=(0,c.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const o=e[n][0],s=e[n][1],i=e[n+1][0],a=e[n+1][1],u=Math.sqrt((i-o)*(i-o)+(a-s)*(a-s)),l=(a-s)/u,c=(i-o)/u,f=u/t;if(f>1){for(let e=1;e<=f-1;e++){const n=e*t,i=c*n+o,a=l*n+s;r.push([i,a])}const e=(u+Math.floor(f-1)*t)/2,n=c*e+o,i=l*e+s;r.push([n,i])}r.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:n,spatialReference:e.spatialReference}):new u.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function T(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,c.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,c.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,c.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,c.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function M(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const o=t.cutIndexes[n],s=t.geometries[n],i=(0,c.r8)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(n,0))}return!0}})}if(o===r){if(w(e))for(const t of(0,c.r8)(s))e[o]=e[o].addRing(t);else if(b(e))for(const t of(0,c.r8)(s))e[o]=e[o].addPath(t)}else r=o,e[o]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const o="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,i,l,w,b,B,R,S,I=0;const _=[],E=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,i=(0,f.Vp)(s),l=s.isWebMercator,B=l?102100:4326,w=c.j7[B].maxX,b=c.j7[B].minX,R=c.j7[B].plus180Line,S=c.j7[B].minus180Line),i)if("mesh"===t.type)E.push(t);else if("point"===t.type)E.push(T(t.clone(),w,b));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>T(e,w,b)),E.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);E.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,b)*(2*w);let n=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:o,xmax:s}=e;o=Number(o.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(R)&&s!==w?(I=s>I?s:I,n=v(n,l),_.push(n),E.push("cut")):e.intersects(S)&&o!==b?(I=s*(2*w)>I?s*(2*w):I,n=v(n,l,360),_.push(n),E.push("cut")):E.push(n)}else E.push(t.clone());else E.push(t);else E.push(t);let P=(0,c.kd)(I,w),O=-90;const U=P,L=new u.A;for(;P>0;){const e=360*P-180;L.addPath([[e,O],[e,-1*O]]),O*=-1,P--}if(_.length>0&&U>0){const t=M(_,await async function(e,t,r,n){const o=(0,h.Dl)(e),s=t[0].spatialReference,i={...n,responseType:"json",query:{...o.query,f:"json",sr:(0,f.YX)(s),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,p.A)(o.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=s,t})}}(o,_,L,r)),n=[],s=[];for(let r=0;r<E.length;r++){const o=E[r];if("cut"!==o)s.push(o);else{const o=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&o.rings.length>=i.rings.length?(n.push(o),s.push("simplify")):s.push(l?(0,d.Gh)(o):o)}}if(!n.length)return s;const i=await async function(e,t,r){const n="string"==typeof e?(0,g.An)(e):e,o=t[0].spatialReference,s=(0,m.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,f.YX)(o),geometries:JSON.stringify((0,y.X)(t))}},{data:a}=await(0,p.A)(n.path+"/simplify",i);return(0,y.V)(a.geometries,s,o)}(o,n,r),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(l?(0,d.Gh)(i.shift()):i.shift())}return a}const k=[];for(let e=0;e<E.length;e++){const t=E[e];if("cut"!==t)k.push(t);else{const e=_.shift();k.push(!0===l?(0,d.Gh)(e):e)}}return k}function B(e,t,r){const n=(0,f.Vp)(r);if(null==n)return e;const[o,s]=n.valid,i=2*s;let a=0,u=0;t>s?a=Math.ceil(Math.abs(t-s)/i):t<o&&(a=-Math.ceil(Math.abs(t-o)/i)),e>s?u=Math.ceil(Math.abs(e-s)/i):e<o&&(u=-Math.ceil(Math.abs(e-o)/i));let l=e+(a-u)*i;const c=l-t;return c>s?l-=i:c<o&&(l+=i),l}function R(e){const t=(0,f.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new o.hr(r,n)}const S=R(l.A.WGS84);R(l.A.WebMercator)},21015:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(11254),o=r(60999),s=r(49186),i=r(74887),a=r(84952);class u{constructor(e=e=>e){this._resolveURI=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,a.DB)(e)?((0,i.Te)(t),(0,a.lJ)(e)):this._load("array-buffer",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){t=this._resolveURI(t);const a=await(0,o.Ke)((0,n.A)(t,{responseType:e,...r}));if(a.ok)return a.value.data;throw(0,i.QP)(a.error),new s.A("gltf-loader-request-error",`Request for resource failed: ${a.error}`)}}},43609:(e,t,r)=>{r.d(t,{a:()=>s,f:()=>i,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let i=0,a=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[i]=t[a],e[i+1]=t[a+1],i+=r,a+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[i]=Math.max(t[a]/u,-1),e[i+1]=Math.max(t[a+1]/u,-1),i+=r,a+=o;else for(let n=0;n<s;++n)e[i]=t[a]/u,e[i+1]=t[a+1]/u,i+=r,a+=o}function i(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,i=n?.count??e.count;let a=(n?.dstIndex??0)*s;for(let e=0;e<i;++e)o[a]=t,o[a+1]=r,a+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:i,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},51530:(e,t,r)=>{r.d(t,{KB:()=>i,Xi:()=>o,pn:()=>a,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function i(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function a(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const i=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(i)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),i.removeEventListener("load",r),i.removeEventListener("error",n)};i.addEventListener("load",r),i.addEventListener("error",n),i.src=s});try{i.src=s,await i.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(s),i}},61473:(e,t,r)=>{function n(e){return e=e||globalThis.location.hostname,l.some(t=>null!=e?.match(t))}function o(e,t){return e?(t=t||globalThis.location.hostname)?null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(i)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e:null}r.d(t,{EM:()=>o,b5:()=>n});const s=/^devext\.arcgis\.com$/,i=/^qaext\.arcgis\.com$/,a=/^[\w-]*\.mapsdevext\.arcgis\.com$/,u=/^[\w-]*\.mapsqa\.arcgis\.com$/,l=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,s,i,/^jsapps\.esri\.com$/,a,u]},64304:(e,t,r)=>{r.d(t,{fetch:()=>J});var n=r(40876),o=r(61473),s=r(34727),i=r(77690),a=r(29242),u=r(58083),l=r(9093),c=r(48163),f=r(38954),d=r(51850),p=r(70328),m=r(11868),h=r(13030),g=r(73354),y=r(65686),x=r(43609),w=r(21015),b=r(84498),v=r(51530),T=r(88340);function M(e){if(null==e)return null;const t=null!=e.offset?e.offset:T.uY,r=null!=e.rotation?e.rotation:0,n=null!=e.scale?e.scale:T.Un,o=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),u=(0,a.fA)(n[0],0,0,0,n[1],0,0,0,1),l=(0,a.vt)();return(0,i.lw)(l,s,u),(0,i.lw)(l,o,l),l}class A{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class B{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new A,this.numberOfVertices=0}}var R=r(11254),S=r(60999),I=r(49186),_=r(53966),E=r(69397);class P{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get outerSize(){return this._outer.size}get size(){let e=0;for(const t of this._outer.values())e+=t.size;return e}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,r){const n=this._outer.get(e);n?n.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}pop(e,t){const r=this.get(e,t);return this.delete(e,t),r}*outerMap(){for(const e of this._outer)yield e}*values(){for(const e of this._outer.values())yield*e.values()}*[Symbol.iterator](){for(const[e,t]of this._outer)for(const[r,n]of t)yield[e,r,n]}forEach(e){this._outer.forEach((t,r)=>e(t,r))}forAll(e){this._outer.forEach((t,r)=>t.forEach((t,n)=>e(t,r,n)))}copy(){const e=new P;return this.forAll((t,r,n)=>e.set(r,n,t)),e}}var O=r(74887),U=r(46140),L=r(97146),k=r(31217),j=r(46610),z=r(87170),F=r(46859),V=r(2495);const C=()=>_.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");class ${constructor(e,t,r){this.resource=e,this.textures=t,this.usedMemory=r}}function N(e){const t=e.params,r=t.topology;let n=!0;switch(t.vertexAttributes||(C().warn("Geometry must specify vertex attributes"),n=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(C().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),n=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(C().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),n=!1)):(C().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),n=!1)}}else C().warn("Indexed geometries must specify faces"),n=!1;break}default:C().warn(`Unsupported topology '${r}'`),n=!1}e.params.material||(C().warn("Geometry requires material"),n=!1);const o=e.params.vertexAttributes;for(const e in o)o[e].values||(C().warn("Geometries with externally defined attributes are not yet supported"),n=!1);return n}function q(e){const t=(0,p.Ie)();return e.forEach(e=>{const r=e.boundingInfo;null!=r&&((0,p.iT)(t,r.bbMin),(0,p.iT)(t,r.bbMax))}),t}function G(e){switch(e){case"mask":return 2;case"maskAndTransparency":return 3;case"none":return 1;default:return 0}}function X(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const W=new U.R(1,2,"wosr");var D=r(74810);async function J(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,o.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=await(0,S.Ke)((0,R.A)(e,t));if(r.ok)return r.value.data;(0,O.QP)(r.error),function(e){throw new I.A("",`Request for object resource failed: ${e}`)}(r.error)}(e,t),n=await async function(e,t){const r=new Array;for(const n in e){const o=e[n],s=o.images[0].data;if(!s){C().warn("Externally referenced texture data is not yet supported");continue}const i=o.encoding+";base64,"+s,a="/textureDefinitions/"+n,u="rgba"===o.channels?o.alphaChannelUsage||"transparency":"none",l={noUnpackFlip:!0,wrap:{s:10497,t:10497},preMultiplyAlpha:1!==G(u)},c=t?.disableTextures?Promise.resolve(null):(0,k.D)(i,t);r.push(c.then(e=>({refId:a,image:e,parameters:l,alphaChannelUsage:u})))}const n=await Promise.all(r),o={};for(const e of n)o[e.refId]=e;return o}(r.textureDefinitions??{},t);let o=0;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];o+=t?.image?t.image.width*t.image.height*4:0}return new $(r,n,o+(0,E.Qh)(r))}(a.url,t)),{engineResources:r,referenceBoundingBox:n}=function(e,t){const r=new Array,n=new Array,o=new Array,s=new P,i=e.resource,a=U.R.parse(i.version||"1.0","wosr");W.validate(a);const u=i.model.name,l=i.model.geometries,c=i.materialDefinitions??{},f=e.textures;let p=0;const m=new Map;for(let e=0;e<l.length;e++){const i=l[e];if(!N(i))continue;const a=X(i),u=i.params.vertexAttributes,h=[],g=e=>{if("PerAttributeArray"===i.params.topology)return null;const t=i.params.faces;for(const r in t)if(r===e)return t[r].values;return null},y=u.position,x=y.values.length/y.valuesPerElement;for(const e in u){const t=u[e],r=t.values,n=g(e)??(0,L.tM)(x);h.push([e,new j.n(r,n,t.valuesPerElement,!0)])}const w=a.texture,b=f&&f[w];if(b&&!m.has(w)){const{image:e,parameters:t}=b,r=new F.h(e,t);n.push(r),m.set(w,r)}const v=m.get(w),T=v?v.id:void 0,M=a.material;let A=s.get(M,w);if(null==A){const e=c[M.slice(M.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=b?G(b.alphaChannelUsage):void 0,n={ambient:(0,d.ci)(e.diffuse),diffuse:(0,d.ci)(e.diffuse),opacity:1-(e.transparency||0),textureAlphaMode:r,textureAlphaCutoff:.33,textureId:T,doubleSided:!0,cullFace:0,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:b?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(n,t.materialParameters),A=new V.$U(n,t),s.set(M,w,A)}o.push(A);const B=new z.V(A,h);p+=h.find(e=>"position"===e[0])?.[1]?.indices.length??0,r.push(B)}return{engineResources:[{name:u,stageResources:{textures:n,materials:o,geometries:r},pivotOffset:i.model.pivotOffset,numberOfVertices:p,lodThreshold:null}],referenceBoundingBox:q(r)}}(e,t);return{lods:r,referenceBoundingBox:n,isEsriSymbolResource:!1,isWosr:!0}}let T;if(t.cache)T=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(1698).then(r.bind(r,51698));T=await e(new w.R,a.url,t,t.usePBR)}const A=T.model.meta?.ESRI_proxyEllipsoid,_=T.meta.isEsriSymbolResource&&null!=A&&"EsriRealisticTreesStyle"===T.meta.ESRI_webstyle;_&&!T.customMeta.esriTreeRendering&&(T.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const o=e.model.lods[r];for(const s of o.parts){const o=s.attributes.normal;if(null==o)return;const i=s.attributes.position,a=i.count,c=(0,d.vt)(),p=(0,d.vt)(),m=(0,d.vt)(),g=new Float32Array(4*a),y=new Float32Array(3*a),x=(0,u.B8)((0,l.vt)(),s.transform);let w=0,b=0;for(let u=0;u<a;u++){i.getVec(u,p),o.getVec(u,c),(0,f.p)(p,p,s.transform),(0,f.e)(m,p,t.center),(0,f.B)(m,m,t.radius);const a=m[2],l=(0,f.b)(m),d=Math.min(.45+.55*l*l,1)**n.Tf;(0,f.B)(m,m,t.radius),null!==x&&(0,f.p)(m,m,x),(0,f.n)(m,m),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,f.l)(m,m,c,a>-1?.2:Math.min(-4*a-3.8,1)),y[w]=m[0],y[w+1]=m[1],y[w+2]=m[2],w+=3,g[b]=d,g[b+1]=d,g[b+2]=d,g[b+3]=1,b+=4}s.attributes.normal=new h.xs(y.buffer),s.attributes.color=new h.Eq(g.buffer)}}}(T,A));const J=!!t.usePBR,Q=T.meta.isEsriSymbolResource?{usePBR:J,isSchematic:!1,treeRendering:_,mrrFactors:D.SY}:{usePBR:J,isSchematic:!1,treeRendering:!1,mrrFactors:D.mb},K={...t.materialParameters,treeRendering:_},{engineResources:H,referenceBoundingBox:Z}=function(e,t,r,o,a,u){const l=e.model,f=new Array,d=new Map,w=new Map,T=l.lods.length,A=(0,p.Ie)();return l.lods.forEach((e,R)=>{const S=!0===o.skipHighLods&&(T>1&&0===R||T>3&&1===R)||!1===o.skipHighLods&&null!=a&&R!==a;if(S&&0!==R)return;const I=new B(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach(e=>{const a=S?new V.$U({},o):function(e,t,r,o,s,i,a,u,l){const f=e.materials.get(t.material);if(null==f)return null;const{normal:d,color:p,texCoord0:m,tangent:h}=t.attributes,g=t.material+(d?"_normal":"")+(p?"_color":"")+(m?"_texCoord0":"")+(h?"_tangent":""),y=null!=t.attributes.texCoord0,x=null!=t.attributes.normal,w=function(e){switch(e){case"BLEND":return 0;case"MASK":return 2;case"OPAQUE":case null:case void 0:return 1}}(f.alphaMode);if(!i.has(g)){if(y){const t=(t,r=!1,n=!1)=>{if(null!=t&&!a.has(t)){const o=e.textures.get(t);if(o){const e=o.data,s=r&&!(0,v.x3)(e)?u.compressionOptions:void 0;a.set(t,new F.h((0,v.x3)(e)?e.data:e,{...o.parameters,preMultiplyAlpha:!(0,v.x3)(e)&&n,encoding:(0,v.x3)(e)?e.encoding:void 0,compressionOptions:s}))}}},r=1!==w&&!l;t(f.colorTexture,r,1!==w),t(f.normalTexture),t(f.occlusionTexture,!0),t(f.emissiveTexture),t(f.metallicRoughnessTexture,!0)}const r=(0,n.xV)(f.color[0]),d=(0,n.xV)(f.color[1]),p=(0,n.xV)(f.color[2]),m=null!=f.colorTexture&&y?a.get(f.colorTexture):null,h=(0,D.Jr)(f),b=null!=f.normalTextureTransform?.scale?f.normalTextureTransform?.scale:c.Un;i.set(g,new V.$U({...o,customDepthTest:1,textureAlphaMode:w,textureAlphaCutoff:f.alphaCutoff,diffuse:[r,d,p],ambient:[r,d,p],opacity:"OPAQUE"===f.alphaMode?1:f.opacity,doubleSided:f.doubleSided,doubleSidedType:"winding-order",cullFace:f.doubleSided?0:2,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:x?0:2,castShadows:!0,receiveShadows:f.receiveShadows,receiveAmbientOcclusion:f.receiveAmbientOcclusion,textureId:null!=m?m.id:void 0,colorMixMode:f.colorMixMode,normalTextureId:null!=f.normalTexture&&y?a.get(f.normalTexture).id:void 0,textureAlphaPremultiplied:null!=m&&!!m.parameters.preMultiplyAlpha,occlusionTextureId:null!=f.occlusionTexture&&y?a.get(f.occlusionTexture).id:void 0,emissiveTextureId:null!=f.emissiveTexture&&y?a.get(f.emissiveTexture).id:void 0,metallicRoughnessTextureId:null!=f.metallicRoughnessTexture&&y?a.get(f.metallicRoughnessTexture).id:void 0,emissiveBaseColor:[f.emissiveFactor[0],f.emissiveFactor[1],f.emissiveFactor[2]],mrrFactors:h?D.Bt:[f.metallicFactor,f.roughnessFactor,o.mrrFactors[2]],isSchematic:h,colorTextureTransformMatrix:M(f.colorTextureTransform),normalTextureTransformMatrix:M(f.normalTextureTransform),scale:[b[0],b[1]],occlusionTextureTransformMatrix:M(f.occlusionTextureTransform),emissiveTextureTransformMatrix:M(f.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:M(f.metallicRoughnessTextureTransform),...s},u))}const b=i.get(g);if(r.stageResources.materials.push(b),y){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(f.colorTexture),e(f.normalTexture),e(f.occlusionTexture),e(f.emissiveTexture),e(f.metallicRoughnessTexture)}return b}(l,e,I,t,r,d,w,o,u),{geometry:f,vertexCount:T}=function(e,t){const r=e.attributes.position.count,n=(0,b.x)(e.indices||r,e.primitiveType),o=(0,m.oe)(3*r),{typedBuffer:a,typedBufferStride:u}=e.attributes.position;(0,g.t)(o,a,e.transform,3,u);const l=[["position",new j.n(o,n,3,!0)]];if(null!=e.attributes.normal){const t=(0,m.oe)(3*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.normal;(0,i.Ge)(Y,e.transform),(0,g.b)(t,o,Y,3,a),(0,s.or)(Y)&&(0,g.n)(t,t),l.push(["normal",new j.n(t,n,3,!0)])}if(null!=e.attributes.tangent){const t=(0,m.oe)(4*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.tangent;(0,i.z0)(Y,e.transform),(0,y.t)(t,o,Y,4,a),(0,s.or)(Y)&&(0,g.n)(t,t,4),l.push(["tangent",new j.n(t,n,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,m.oe)(2*r),{typedBuffer:o,typedBufferStride:s}=e.attributes.texCoord0;(0,x.a)(t,o,2,s),l.push(["uv0",new j.n(t,n,2,!0)])}const c=e.attributes.color;if(null!=c){const t=new Uint8Array(4*r);4===c.elementCount?c instanceof h.Eq?(0,y.b)(t,c,1,255):(c instanceof h.XP||c instanceof h.Uz)&&(0,y.b)(t,c,1/255,255):(t.fill(255),c instanceof h.xs?(0,g.f)(t,c.typedBuffer,1,255,4,c.typedBufferStride):(e.attributes.color instanceof h.eI||e.attributes.color instanceof h.nS)&&(0,g.f)(t,c.typedBuffer,1/255,255,4,e.attributes.color.typedBufferStride)),l.push(["color",new j.n(t,n,4,!0)])}return{geometry:new z.V(t,l),vertexCount:r}}(e,a??new V.$U({},o)),B=f.boundingInfo;null!=B&&0===R&&((0,p.iT)(A,B.bbMin),(0,p.iT)(A,B.bbMax)),null!=a&&(I.stageResources.geometries.push(f),I.numberOfVertices+=T)}),S||f.push(I)}),{engineResources:f,referenceBoundingBox:A}}(T,Q,K,t,a.specifiedLodIndex,_);return{lods:H,referenceBoundingBox:Z,isEsriSymbolResource:T.meta.isEsriSymbolResource,isWosr:!1}}const Y=(0,a.vt)()},69052:(e,t,r)=>{r.d(t,{hr:()=>o,ie:()=>u,uC:()=>a});var n=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+i(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,o=0,s=!1){return(n-=o)<t?n+=i(e,t-n):n>r&&(n-=i(e,n-r)),s&&n===r&&(n=t),n+o}function i(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new o(0,2*Math.PI),u=(new o(-Math.PI,Math.PI),new o(0,360))},69397:(e,t,r)=>{r.d(t,{$B:()=>o,Qf:()=>l,Qh:()=>a,RS:()=>s,ez:()=>d,lM:()=>i,qK:()=>f});var n=r(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=d;for(let n=0;n<t;n++)r+=u(e[n]);return r}(e);let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):f;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+p:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return d+e.length*t}const f=32,d=16,p=145},73354:(e,t,r)=>{r.d(t,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>d,f:()=>c,l:()=>l,n:()=>p,t:()=>s});var n=r(40876);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[4],c=r[5],f=r[6],d=r[8],p=r[9],m=r[10],h=r[12],g=r[13],y=r[14];let x=0,w=0;for(let r=0;r<s;r++){const r=t[x],s=t[x+1],b=t[x+2];e[w]=i*r+l*s+d*b+h,e[w+1]=a*r+c*s+p*b+g,e[w+2]=u*r+f*s+m*b+y,x+=o,w+=n}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[3],c=r[4],f=r[5],d=r[6],p=r[7],m=r[8];let h=0,g=0;for(let r=0;r<s;r++){const r=t[h],s=t[h+1],y=t[h+2];e[g]=i*r+l*s+d*y,e[g+1]=a*r+c*s+p*y,e[g+2]=u*r+f*s+m*y,h+=o,g+=n}}function u(e,t,r,n=3,o=n){const s=Math.min(e.length/n,t.length/o);let i=0,a=0;for(let u=0;u<s;u++)e[a]=r*t[i],e[a+1]=r*t[i+1],e[a+2]=r*t[i+2],i+=o,a+=n;return e}function l(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,o,s=3,i=s){const a=Math.min(e.length/s,t.length/i);let u=0,l=0;const c=1/n.Tf;for(let n=0;n<a;n++)e[l]=o*(r*t[u])**c,e[l+1]=o*(r*t[u+1])**c,e[l+2]=o*(r*t[u+2])**c,u+=i,l+=s}function f(e,t,r,n=3,o=n){const s=e.length/n;if(s!==Math.ceil(t.length/o))return e;let i=0,a=0;for(let u=0;u<s;u++)e[a]=t[i]+r[0],e[a+1]=t[i+1]+r[1],e[a+2]=t[i+2]+r[2],i+=o,a+=n;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],u=t[s+2],l=o*o+a*a+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*u}s+=n,i+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:p,normalizeView:d,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let u=0,l=0;for(let e=0;e<n;e++)o[l]=i[u]>>r,o[l+1]=i[u+1]>>r,o[l+2]=i[u+2]>>r,u+=a,l+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>u,kd:()=>a,r8:()=>l});var n=r(82799),o=r(16930),s=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const r=l(e);for(const e of r)for(const r of e)r[0]+=t;return e}function l(e){return(0,s.Bi)(e)?e.rings:e.paths}},84498:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(34275),o=r(97146),s=r(63907);function i(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],i=0;for(let t=0;t<r;++t){const r=e[t+2];n[i++]=o,n[i++]=s,n[i++]=r,s=r}return n}(e)}}},88340:(e,t,r)=>{function n(){return new Float32Array(2)}function o(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function s(){return n()}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}r.d(t,{Un:()=>c,fA:()=>o,uY:()=>l,vt:()=>n});const l=s(),c=i(),f=a(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:d,ZEROS:l,clone:function(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t},create:n,fromValues:o,ones:i,unitX:a,unitY:u,zeros:s},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>s,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const o=(0,n.xD)(t);return e.map(e=>{const t=o.fromJSON(e);return t.spatialReference=r,t})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8535],{17136:(e,t,r)=>{r.d(t,{Y_:()=>S,O7:()=>R,el:()=>A});var n=r(92602),o=r(69052),s=r(49186),i=r(53966),a=r(39829),u=r(82799),l=r(16930),c=r(80754),f=r(21325),d=r(28735),p=r(11254),m=r(65864),h=r(2272),g=r(84952),y=r(92300);const x=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function v(e,t,r){if(t){const t=function(e,t){if(!(e instanceof u.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(e),new s.A("internal:geometry",e)}const r=(0,c.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const o=e[n][0],s=e[n][1],i=e[n+1][0],a=e[n+1][1],u=Math.sqrt((i-o)*(i-o)+(a-s)*(a-s)),l=(a-s)/u,c=(i-o)/u,f=u/t;if(f>1){for(let e=1;e<=f-1;e++){const n=e*t,i=c*n+o,a=l*n+s;r.push([i,a])}const e=(u+Math.floor(f-1)*t)/2,n=c*e+o,i=l*e+s;r.push([n,i])}r.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:n,spatialReference:e.spatialReference}):new u.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function T(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,c.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,c.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,c.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,c.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function M(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const o=t.cutIndexes[n],s=t.geometries[n],i=(0,c.r8)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(n,0))}return!0}})}if(o===r){if(w(e))for(const t of(0,c.r8)(s))e[o]=e[o].addRing(t);else if(b(e))for(const t of(0,c.r8)(s))e[o]=e[o].addPath(t)}else r=o,e[o]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const o="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let s,i,l,w,b,R,B,S,I=0;const _=[],E=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,i=(0,f.Vp)(s),l=s.isWebMercator,R=l?102100:4326,w=c.j7[R].maxX,b=c.j7[R].minX,B=c.j7[R].plus180Line,S=c.j7[R].minus180Line),i)if("mesh"===t.type)E.push(t);else if("point"===t.type)E.push(T(t.clone(),w,b));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>T(e,w,b)),E.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);E.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,b)*(2*w);let n=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:o,xmax:s}=e;o=Number(o.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(B)&&s!==w?(I=s>I?s:I,n=v(n,l),_.push(n),E.push("cut")):e.intersects(S)&&o!==b?(I=s*(2*w)>I?s*(2*w):I,n=v(n,l,360),_.push(n),E.push("cut")):E.push(n)}else E.push(t.clone());else E.push(t);else E.push(t);let P=(0,c.kd)(I,w),O=-90;const U=P,L=new u.A;for(;P>0;){const e=360*P-180;L.addPath([[e,O],[e,-1*O]]),O*=-1,P--}if(_.length>0&&U>0){const t=M(_,await async function(e,t,r,n){const o=(0,h.Dl)(e),s=t[0].spatialReference,i={...n,responseType:"json",query:{...o.query,f:"json",sr:(0,f.YX)(s),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,p.A)(o.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=s,t})}}(o,_,L,r)),n=[],s=[];for(let r=0;r<E.length;r++){const o=E[r];if("cut"!==o)s.push(o);else{const o=t.shift(),i=e[r];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&o.rings.length>=i.rings.length?(n.push(o),s.push("simplify")):s.push(l?(0,d.Gh)(o):o)}}if(!n.length)return s;const i=await async function(e,t,r){const n="string"==typeof e?(0,g.An)(e):e,o=t[0].spatialReference,s=(0,m.$B)(t[0]),i={...r,query:{...n.query,f:"json",sr:(0,f.YX)(o),geometries:JSON.stringify((0,y.X)(t))}},{data:a}=await(0,p.A)(n.path+"/simplify",i);return(0,y.V)(a.geometries,s,o)}(o,n,r),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(l?(0,d.Gh)(i.shift()):i.shift())}return a}const k=[];for(let e=0;e<E.length;e++){const t=E[e];if("cut"!==t)k.push(t);else{const e=_.shift();k.push(!0===l?(0,d.Gh)(e):e)}}return k}function R(e,t,r){const n=(0,f.Vp)(r);if(null==n)return e;const[o,s]=n.valid,i=2*s;let a=0,u=0;t>s?a=Math.ceil(Math.abs(t-s)/i):t<o&&(a=-Math.ceil(Math.abs(t-o)/i)),e>s?u=Math.ceil(Math.abs(e-s)/i):e<o&&(u=-Math.ceil(Math.abs(e-o)/i));let l=e+(a-u)*i;const c=l-t;return c>s?l-=i:c<o&&(l+=i),l}function B(e){const t=(0,f.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new o.hr(r,n)}const S=B(l.A.WGS84);B(l.A.WebMercator)},21015:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(11254),o=r(60999),s=r(49186),i=r(74887),a=r(84952);class u{constructor(e=e=>e){this._resolveURI=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,a.DB)(e)?((0,i.Te)(t),(0,a.lJ)(e)):this._load("array-buffer",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){t=this._resolveURI(t);const a=await(0,o.Ke)((0,n.A)(t,{responseType:e,...r}));if(a.ok)return a.value.data;throw(0,i.QP)(a.error),new s.A("gltf-loader-request-error",`Request for resource failed: ${a.error}`)}}},43609:(e,t,r)=>{r.d(t,{a:()=>s,f:()=>i,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let i=0,a=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[i]=t[a],e[i+1]=t[a+1],i+=r,a+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[i]=Math.max(t[a]/u,-1),e[i+1]=Math.max(t[a+1]/u,-1),i+=r,a+=o;else for(let n=0;n<s;++n)e[i]=t[a]/u,e[i+1]=t[a+1]/u,i+=r,a+=o}function i(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,i=n?.count??e.count;let a=(n?.dstIndex??0)*s;for(let e=0;e<i;++e)o[a]=t,o[a+1]=r,a+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:i,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},51530:(e,t,r)=>{r.d(t,{KB:()=>i,Xi:()=>o,pn:()=>a,x3:()=>s});var n=r(44208);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding="image/ktx2"}}function s(e){return"encoded-mesh-texture"===e?.type}async function i(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function a(e,t){if("image/ktx2"===t)return new o(e);const r=new Blob([e],{type:t});let s=URL.createObjectURL(r);switch(t){case"image/jpeg":s+="#.jpg";break;case"image/png":s+="#.png"}const i=new Image;if((0,n.A)("esri-iPhone"))return new Promise((e,t)=>{const r=()=>{o(),e(i)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(s),i.removeEventListener("load",r),i.removeEventListener("error",n)};i.addEventListener("load",r),i.addEventListener("error",n),i.src=s});try{i.src=s,await i.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(s),i}},61473:(e,t,r)=>{function n(e){return e=e||globalThis.location.hostname,l.some(t=>null!=e?.match(t))}function o(e,t){return e?(t=t||globalThis.location.hostname)?null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(i)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e:null}r.d(t,{EM:()=>o,b5:()=>n});const s=/^devext\.arcgis\.com$/,i=/^qaext\.arcgis\.com$/,a=/^[\w-]*\.mapsdevext\.arcgis\.com$/,u=/^[\w-]*\.mapsqa\.arcgis\.com$/,l=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,s,i,/^jsapps\.esri\.com$/,a,u]},64304:(e,t,r)=>{r.d(t,{fetch:()=>J});var n=r(40876),o=r(61473),s=r(34727),i=r(77690),a=r(29242),u=r(58083),l=r(9093),c=r(48163),f=r(38954),d=r(51850),p=r(70328),m=r(11868),h=r(13030),g=r(73354),y=r(65686),x=r(43609),w=r(21015),b=r(84498),v=r(51530),T=r(88340);function M(e){if(null==e)return null;const t=null!=e.offset?e.offset:T.uY,r=null!=e.rotation?e.rotation:0,n=null!=e.scale?e.scale:T.Un,o=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),u=(0,a.fA)(n[0],0,0,0,n[1],0,0,0,1),l=(0,a.vt)();return(0,i.lw)(l,s,u),(0,i.lw)(l,o,l),l}class A{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class R{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new A,this.numberOfVertices=0}}var B=r(11254),S=r(60999),I=r(49186),_=r(53966),E=r(69397);class P{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get outerSize(){return this._outer.size}get size(){let e=0;for(const t of this._outer.values())e+=t.size;return e}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,r){const n=this._outer.get(e);n?n.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}pop(e,t){const r=this.get(e,t);return this.delete(e,t),r}*outerMap(){for(const e of this._outer)yield e}*values(){for(const e of this._outer.values())yield*e.values()}*[Symbol.iterator](){for(const[e,t]of this._outer)for(const[r,n]of t)yield[e,r,n]}forEach(e){this._outer.forEach((t,r)=>e(t,r))}forAll(e){this._outer.forEach((t,r)=>t.forEach((t,n)=>e(t,r,n)))}copy(){const e=new P;return this.forAll((t,r,n)=>e.set(r,n,t)),e}}var O=r(74887),U=r(46140),L=r(97146),k=r(31217),j=r(46610),z=r(87170),C=r(46859),F=r(2495);const V=()=>_.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");class ${constructor(e,t,r){this.resource=e,this.textures=t,this.usedMemory=r}}function N(e){const t=e.params,r=t.topology;let n=!0;switch(t.vertexAttributes||(V().warn("Geometry must specify vertex attributes"),n=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&(V().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),n=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&(V().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),n=!1)):(V().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),n=!1)}}else V().warn("Indexed geometries must specify faces"),n=!1;break}default:V().warn(`Unsupported topology '${r}'`),n=!1}e.params.material||(V().warn("Geometry requires material"),n=!1);const o=e.params.vertexAttributes;for(const e in o)o[e].values||(V().warn("Geometries with externally defined attributes are not yet supported"),n=!1);return n}function q(e){const t=(0,p.Ie)();return e.forEach(e=>{const r=e.boundingInfo;null!=r&&((0,p.iT)(t,r.bbMin),(0,p.iT)(t,r.bbMax))}),t}function G(e){switch(e){case"mask":return 2;case"maskAndTransparency":return 3;case"none":return 1;default:return 0}}function X(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const W=new U.R(1,2,"wosr");var D=r(74810);async function J(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,o.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=await(0,S.Ke)((0,B.A)(e,t));if(r.ok)return r.value.data;(0,O.QP)(r.error),function(e){throw new I.A("",`Request for object resource failed: ${e}`)}(r.error)}(e,t),n=await async function(e,t){const r=new Array;for(const n in e){const o=e[n],s=o.images[0].data;if(!s){V().warn("Externally referenced texture data is not yet supported");continue}const i=o.encoding+";base64,"+s,a="/textureDefinitions/"+n,u="rgba"===o.channels?o.alphaChannelUsage||"transparency":"none",l={noUnpackFlip:!0,wrap:{s:10497,t:10497},preMultiplyAlpha:1!==G(u)},c=t?.disableTextures?Promise.resolve(null):(0,k.D)(i,t);r.push(c.then(e=>({refId:a,image:e,parameters:l,alphaChannelUsage:u})))}const n=await Promise.all(r),o={};for(const e of n)o[e.refId]=e;return o}(r.textureDefinitions??{},t);let o=0;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];o+=t?.image?t.image.width*t.image.height*4:0}return new $(r,n,o+(0,E.Qh)(r))}(a.url,t)),{engineResources:r,referenceBoundingBox:n}=function(e,t){const r=new Array,n=new Array,o=new Array,s=new P,i=e.resource,a=U.R.parse(i.version||"1.0","wosr");W.validate(a);const u=i.model.name,l=i.model.geometries,c=i.materialDefinitions??{},f=e.textures;let p=0;const m=new Map;for(let e=0;e<l.length;e++){const i=l[e];if(!N(i))continue;const a=X(i),u=i.params.vertexAttributes,h=[],g=e=>{if("PerAttributeArray"===i.params.topology)return null;const t=i.params.faces;for(const r in t)if(r===e)return t[r].values;return null},y=u.position,x=y.values.length/y.valuesPerElement;for(const e in u){const t=u[e],r=t.values,n=g(e)??(0,L.tM)(x);h.push([e,new j.n(r,n,t.valuesPerElement,!0)])}const w=a.texture,b=f&&f[w];if(b&&!m.has(w)){const{image:e,parameters:t}=b,r=new C.h(e,t);n.push(r),m.set(w,r)}const v=m.get(w),T=v?v.id:void 0,M=a.material;let A=s.get(M,w);if(null==A){const e=c[M.slice(M.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=b?G(b.alphaChannelUsage):void 0,n={ambient:(0,d.ci)(e.diffuse),diffuse:(0,d.ci)(e.diffuse),opacity:1-(e.transparency||0),textureAlphaMode:r,textureAlphaCutoff:.33,textureId:T,doubleSided:!0,cullFace:0,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:b?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(n,t.materialParameters),A=new F.$U(n,t),s.set(M,w,A)}o.push(A);const R=new z.V(A,h);p+=h.find(e=>"position"===e[0])?.[1]?.indices.length??0,r.push(R)}return{engineResources:[{name:u,stageResources:{textures:n,materials:o,geometries:r},pivotOffset:i.model.pivotOffset,numberOfVertices:p,lodThreshold:null}],referenceBoundingBox:q(r)}}(e,t);return{lods:r,referenceBoundingBox:n,isEsriSymbolResource:!1,isWosr:!0}}let T;if(t.cache)T=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(1698).then(r.bind(r,51698));T=await e(new w.R,a.url,t,t.usePBR)}const A=T.model.meta?.ESRI_proxyEllipsoid,_=T.meta.isEsriSymbolResource&&null!=A&&"EsriRealisticTreesStyle"===T.meta.ESRI_webstyle;_&&!T.customMeta.esriTreeRendering&&(T.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const o=e.model.lods[r];for(const s of o.parts){const o=s.attributes.normal;if(null==o)return;const i=s.attributes.position,a=i.count,c=(0,d.vt)(),p=(0,d.vt)(),m=(0,d.vt)(),g=new Float32Array(4*a),y=new Float32Array(3*a),x=(0,u.B8)((0,l.vt)(),s.transform);let w=0,b=0;for(let u=0;u<a;u++){i.getVec(u,p),o.getVec(u,c),(0,f.p)(p,p,s.transform),(0,f.e)(m,p,t.center),(0,f.C)(m,m,t.radius);const a=m[2],l=(0,f.b)(m),d=Math.min(.45+.55*l*l,1)**n.Tf;(0,f.C)(m,m,t.radius),null!==x&&(0,f.p)(m,m,x),(0,f.n)(m,m),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,f.l)(m,m,c,a>-1?.2:Math.min(-4*a-3.8,1)),y[w]=m[0],y[w+1]=m[1],y[w+2]=m[2],w+=3,g[b]=d,g[b+1]=d,g[b+2]=d,g[b+3]=1,b+=4}s.attributes.normal=new h.xs(y.buffer),s.attributes.color=new h.Eq(g.buffer)}}}(T,A));const J=!!t.usePBR,Q=T.meta.isEsriSymbolResource?{usePBR:J,isSchematic:!1,treeRendering:_,mrrFactors:D.SY}:{usePBR:J,isSchematic:!1,treeRendering:!1,mrrFactors:D.mb},K={...t.materialParameters,treeRendering:_},{engineResources:H,referenceBoundingBox:Z}=function(e,t,r,o,a,u){const l=e.model,f=new Array,d=new Map,w=new Map,T=l.lods.length,A=(0,p.Ie)();return l.lods.forEach((e,B)=>{const S=!0===o.skipHighLods&&(T>1&&0===B||T>3&&1===B)||!1===o.skipHighLods&&null!=a&&B!==a;if(S&&0!==B)return;const I=new R(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach(e=>{const a=S?new F.$U({},o):function(e,t,r,o,s,i,a,u,l){const f=e.materials.get(t.material);if(null==f)return null;const{normal:d,color:p,texCoord0:m,tangent:h}=t.attributes,g=t.material+(d?"_normal":"")+(p?"_color":"")+(m?"_texCoord0":"")+(h?"_tangent":""),y=null!=t.attributes.texCoord0,x=null!=t.attributes.normal,w=function(e){switch(e){case"BLEND":return 0;case"MASK":return 2;case"OPAQUE":case null:case void 0:return 1}}(f.alphaMode);if(!i.has(g)){if(y){const t=(t,r=!1,n=!1)=>{if(null!=t&&!a.has(t)){const o=e.textures.get(t);if(o){const e=o.data,s=r&&!(0,v.x3)(e)?u.compressionOptions:void 0;a.set(t,new C.h((0,v.x3)(e)?e.data:e,{...o.parameters,preMultiplyAlpha:!(0,v.x3)(e)&&n,encoding:(0,v.x3)(e)?e.encoding:void 0,compressionOptions:s}))}}},r=1!==w&&!l;t(f.colorTexture,r,1!==w),t(f.normalTexture),t(f.occlusionTexture,!0),t(f.emissiveTexture),t(f.metallicRoughnessTexture,!0)}const r=(0,n.xV)(f.color[0]),d=(0,n.xV)(f.color[1]),p=(0,n.xV)(f.color[2]),m=null!=f.colorTexture&&y?a.get(f.colorTexture):null,h=(0,D.Jr)(f),b=null!=f.normalTextureTransform?.scale?f.normalTextureTransform?.scale:c.Un;i.set(g,new F.$U({...o,customDepthTest:1,textureAlphaMode:w,textureAlphaCutoff:f.alphaCutoff,diffuse:[r,d,p],ambient:[r,d,p],opacity:"OPAQUE"===f.alphaMode?1:f.opacity,doubleSided:f.doubleSided,doubleSidedType:"winding-order",cullFace:f.doubleSided?0:2,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:x?0:2,castShadows:!0,receiveShadows:f.receiveShadows,receiveAmbientOcclusion:f.receiveAmbientOcclusion,textureId:null!=m?m.id:void 0,colorMixMode:f.colorMixMode,normalTextureId:null!=f.normalTexture&&y?a.get(f.normalTexture).id:void 0,textureAlphaPremultiplied:null!=m&&!!m.parameters.preMultiplyAlpha,occlusionTextureId:null!=f.occlusionTexture&&y?a.get(f.occlusionTexture).id:void 0,emissiveTextureId:null!=f.emissiveTexture&&y?a.get(f.emissiveTexture).id:void 0,metallicRoughnessTextureId:null!=f.metallicRoughnessTexture&&y?a.get(f.metallicRoughnessTexture).id:void 0,emissiveBaseColor:[f.emissiveFactor[0],f.emissiveFactor[1],f.emissiveFactor[2]],mrrFactors:h?D.Bt:[f.metallicFactor,f.roughnessFactor,o.mrrFactors[2]],isSchematic:h,colorTextureTransformMatrix:M(f.colorTextureTransform),normalTextureTransformMatrix:M(f.normalTextureTransform),scale:[b[0],b[1]],occlusionTextureTransformMatrix:M(f.occlusionTextureTransform),emissiveTextureTransformMatrix:M(f.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:M(f.metallicRoughnessTextureTransform),...s},u))}const b=i.get(g);if(r.stageResources.materials.push(b),y){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(f.colorTexture),e(f.normalTexture),e(f.occlusionTexture),e(f.emissiveTexture),e(f.metallicRoughnessTexture)}return b}(l,e,I,t,r,d,w,o,u),{geometry:f,vertexCount:T}=function(e,t){const r=e.attributes.position.count,n=(0,b.x)(e.indices||r,e.primitiveType),o=(0,m.oe)(3*r),{typedBuffer:a,typedBufferStride:u}=e.attributes.position;(0,g.t)(o,a,e.transform,3,u);const l=[["position",new j.n(o,n,3,!0)]];if(null!=e.attributes.normal){const t=(0,m.oe)(3*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.normal;(0,i.Ge)(Y,e.transform),(0,g.b)(t,o,Y,3,a),(0,s.or)(Y)&&(0,g.n)(t,t),l.push(["normal",new j.n(t,n,3,!0)])}if(null!=e.attributes.tangent){const t=(0,m.oe)(4*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.tangent;(0,i.z0)(Y,e.transform),(0,y.t)(t,o,Y,4,a),(0,s.or)(Y)&&(0,g.n)(t,t,4),l.push(["tangent",new j.n(t,n,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,m.oe)(2*r),{typedBuffer:o,typedBufferStride:s}=e.attributes.texCoord0;(0,x.a)(t,o,2,s),l.push(["uv0",new j.n(t,n,2,!0)])}const c=e.attributes.color;if(null!=c){const t=new Uint8Array(4*r);4===c.elementCount?c instanceof h.Eq?(0,y.b)(t,c,1,255):(c instanceof h.XP||c instanceof h.Uz)&&(0,y.b)(t,c,1/255,255):(t.fill(255),c instanceof h.xs?(0,g.f)(t,c.typedBuffer,1,255,4,c.typedBufferStride):(e.attributes.color instanceof h.eI||e.attributes.color instanceof h.nS)&&(0,g.f)(t,c.typedBuffer,1/255,255,4,e.attributes.color.typedBufferStride)),l.push(["color",new j.n(t,n,4,!0)])}return{geometry:new z.V(t,l),vertexCount:r}}(e,a??new F.$U({},o)),R=f.boundingInfo;null!=R&&0===B&&((0,p.iT)(A,R.bbMin),(0,p.iT)(A,R.bbMax)),null!=a&&(I.stageResources.geometries.push(f),I.numberOfVertices+=T)}),S||f.push(I)}),{engineResources:f,referenceBoundingBox:A}}(T,Q,K,t,a.specifiedLodIndex,_);return{lods:H,referenceBoundingBox:Z,isEsriSymbolResource:T.meta.isEsriSymbolResource,isWosr:!1}}const Y=(0,a.vt)()},69052:(e,t,r)=>{r.d(t,{hr:()=>o,ie:()=>u,uC:()=>a});var n=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+i(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,o=0,s=!1){return(n-=o)<t?n+=i(e,t-n):n>r&&(n-=i(e,n-r)),s&&n===r&&(n=t),n+o}function i(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new o(0,2*Math.PI),u=(new o(-Math.PI,Math.PI),new o(0,360))},69397:(e,t,r)=>{r.d(t,{$B:()=>o,Qf:()=>l,Qh:()=>a,RS:()=>s,ez:()=>d,lM:()=>i,qK:()=>f});var n=r(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=d;for(let n=0;n<t;n++)r+=u(e[n]);return r}(e);let t=f;for(const r in e)e.hasOwnProperty(r)&&(t+=u(e[r]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):f;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+p:Array.isArray(t)?c(t,s):0:0),0)}function c(e,t){return d+e.length*t}const f=32,d=16,p=145},73354:(e,t,r)=>{r.d(t,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>d,f:()=>c,l:()=>l,n:()=>p,t:()=>s});var n=r(40876);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[4],c=r[5],f=r[6],d=r[8],p=r[9],m=r[10],h=r[12],g=r[13],y=r[14];let x=0,w=0;for(let r=0;r<s;r++){const r=t[x],s=t[x+1],b=t[x+2];e[w]=i*r+l*s+d*b+h,e[w+1]=a*r+c*s+p*b+g,e[w+2]=u*r+f*s+m*b+y,x+=o,w+=n}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const s=e.length/n,i=r[0],a=r[1],u=r[2],l=r[3],c=r[4],f=r[5],d=r[6],p=r[7],m=r[8];let h=0,g=0;for(let r=0;r<s;r++){const r=t[h],s=t[h+1],y=t[h+2];e[g]=i*r+l*s+d*y,e[g+1]=a*r+c*s+p*y,e[g+2]=u*r+f*s+m*y,h+=o,g+=n}}function u(e,t,r,n=3,o=n){const s=Math.min(e.length/n,t.length/o);let i=0,a=0;for(let u=0;u<s;u++)e[a]=r*t[i],e[a+1]=r*t[i+1],e[a+2]=r*t[i+2],i+=o,a+=n;return e}function l(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,o,s=3,i=s){const a=Math.min(e.length/s,t.length/i);let u=0,l=0;const c=1/n.Tf;for(let n=0;n<a;n++)e[l]=o*(r*t[u])**c,e[l+1]=o*(r*t[u+1])**c,e[l+2]=o*(r*t[u+2])**c,u+=i,l+=s}function f(e,t,r,n=3,o=n){const s=e.length/n;if(s!==Math.ceil(t.length/o))return e;let i=0,a=0;for(let u=0;u<s;u++)e[a]=t[i]+r[0],e[a+1]=t[i+1]+r[1],e[a+2]=t[i+2]+r[2],i+=o,a+=n;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],u=t[s+2],l=o*o+a*a+u*u;if(l>0){const t=1/Math.sqrt(l);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*u}s+=n,i+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:l,normalize:p,normalizeView:d,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let u=0,l=0;for(let e=0;e<n;e++)o[l]=i[u]>>r,o[l+1]=i[u+1]>>r,o[l+2]=i[u+2]>>r,u+=a,l+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},80754:(e,t,r)=>{r.d(t,{j7:()=>i,kS:()=>u,kd:()=>a,r8:()=>l});var n=r(82799),o=r(16930),s=r(65864);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const r=l(e);for(const e of r)for(const r of e)r[0]+=t;return e}function l(e){return(0,s.Bi)(e)?e.rings:e.paths}},84498:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(34275),o=r(97146),s=r(63907);function i(e,t){switch(t){case s.WR.TRIANGLES:return function(e){return"number"==typeof e?(0,o.tM)(e):(0,n.mg)(e)?new Uint16Array(e):e}(e);case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],i=0;for(let t=0;t<r;++t){const r=e[t+2];n[i++]=o,n[i++]=s,n[i++]=r,s=r}return n}(e)}}},88340:(e,t,r)=>{function n(){return new Float32Array(2)}function o(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function s(){return n()}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}r.d(t,{Un:()=>c,fA:()=>o,uY:()=>l,vt:()=>n});const l=s(),c=i(),f=a(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:d,ZEROS:l,clone:function(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t},create:n,fromValues:o,ones:i,unitX:a,unitY:u,zeros:s},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>s,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const o=(0,n.xD)(t);return e.map(e=>{const t=o.fromJSON(e);return t.spatialReference=r,t})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5066],{24770:(t,n,r)=>{r.d(n,{$I:()=>p,AU:()=>M,g7:()=>m,i4:()=>f,ui:()=>l,up:()=>v,vt:()=>c,yo:()=>g});var e=r(34727),o=r(58083),s=r(67026),a=r(82534),i=r(38954),u=r(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,n,r=c()){return(0,i.d)(r,t),r[3]=n,r}function l(t,n=c()){const r=(0,o.l)(b,t);return d(n,(0,e.KJ)((0,s.Xd)(n,r))),n}function h(t,n,r=c()){return(0,s.x8)(b,t,p(t)),(0,s.x8)(y,n,p(n)),(0,s.lw)(b,y,b),d(r,(0,e.KJ)((0,s.Xd)(r,b)))}function M(t,n,r,e=c()){return f(u.Cw,t,w),f(u.JP,n,A),f(u.Cb,r,x),h(w,A,w),h(w,x,e),e}function g(t){return t}function m(t){return t[3]}function p(t){return(0,e.kU)(t[3])}function d(t,n){return t[3]=n,t}const v=[0,0,1,0],b=(0,a.vt)(),y=(0,a.vt)(),w=(c(),c()),A=c(),x=c()},27921:(t,n,r)=>{r.d(n,{$Q:()=>I,C:()=>c,Cr:()=>M,LV:()=>u,O_:()=>h,Qj:()=>f,T7:()=>q,Tj:()=>S,Ui:()=>x,_I:()=>Z,fA:()=>l,gv:()=>_,lU:()=>g,mN:()=>P,mP:()=>w,mR:()=>A,vE:()=>C,vt:()=>i});var e=r(34727),o=r(38954),s=r(51850),a=(r(87317),r(44280),r(32114));function i(t=N){return[t[0],t[1],t[2],t[3]]}function u(t=N[0],n=N[1],r=N[2],e=N[3]){return l(t,n,r,e,a.Km.get())}function c(t,n){return l(n[0],n[1],n[2],n[3],t)}function f(t){return t}function l(t,n,r,e,o=i()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,r,e=i()){const o=r[0]-n[0],s=r[1]-n[1],a=r[2]-n[2],u=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=s*f-a*c,h=a*u-o*f,M=o*c-s*u,g=l*l+h*h+M*M,m=Math.abs(g-1)>1e-5&&g>1e-12?1/Math.sqrt(g):1;return e[0]=l*m,e[1]=h*m,e[2]=M*m,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function g(t,n,r,e=0,s=Math.floor(r*(1/3)),a=Math.floor(r*(2/3))){if(r<3)return!1;n(p,e);let i=s,u=!1;for(;i<r-1&&!u;)n(d,i),i++,u=!(0,o.m)(p,d);if(!u)return!1;for(i=Math.max(i,a),u=!1;i<r&&!u;)n(v,i),i++,(0,o.e)(b,p,d),(0,o.n)(b,b),(0,o.e)(y,d,v),(0,o.n)(y,y),u=!(0,o.m)(p,v)&&!(0,o.m)(d,v)&&Math.abs((0,o.g)(b,y))<m;return u?(M(p,d,v,t),!0):(0!==e||1!==s||2!==a)&&g(t,n,r,0,1,2)}r(32728);const m=.99619469809,p=(0,s.vt)(),d=(0,s.vt)(),v=(0,s.vt)(),b=(0,s.vt)(),y=(0,s.vt)();function w(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.g)(t,r),t}function A(t,n,r,e){return(0,o.f)(v,n,t),h(r,v,e)}function x(t,n,r){return null!=n&&j(C(t,n.origin,n.direction,X,r))}function q(t,n,r){return j(C(t,n.origin,n.vector,0,r))}function _(t,n,r){return j(C(t,n.origin,n.vector,1,r))}function S(t,n){return P(t,n)>=0}function I(t,n){const r=(0,o.g)(t,n.ray.direction),e=-P(t,n.ray.origin);if(e<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return e>0;if((e<0||r<0)&&!(e<0&&r<0))return!0;const s=e/r;return r>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function Z(t,n,r){const e=(0,o.j)(a.rq.get(),t,-t[3]),s=function(t,n,r){const e=(0,o.j)(a.rq.get(),t,(0,o.g)(t,n));return(0,o.e)(r,n,e),r}(t,(0,o.e)(a.rq.get(),n,e),a.rq.get());return(0,o.i)(r,s,e),r}function P(t,n){return(0,o.g)(t,n)+t[3]}function j(t){return 0===t||1===t}function C(t,n,r,s,a){const i=(0,o.g)(t,r),u=P(t,n);if(0===i)return u>=0?2:3;let c=-u/i;return 1&s&&(c=(0,e.qE)(c,0,1)),!(4&s)&&c<0||!(8&s)&&c>1?u>=0?2:3:((0,o.i)(a,n,(0,o.j)(a,r,c)),u>=0?0:1)}const N=[0,0,1,0],X=8},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>g,rq:()=>l,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),s=r(9093),a=r(82534),i=r(48163),u=r(51850),c=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(i.vt)}static createVec3f64(){return new f(u.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(s.vt)}static createQuatf64(){return new f(a.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),M=(f.createMat3f64(),f.createMat4f64()),g=f.createQuatf64()},32728:(t,n,r)=>{r.d(n,{nu:()=>a,wp:()=>s}),r(34727);var e=r(38954),o=r(51850);function s(t,n){const r=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,e.h)(t,r,o,s),t}function a(t,n,r,s=(0,o.vt)()){const a=(0,e.b)(t),c=(0,e.b)(n),f=(0,e.g)(t,n)/(a*c);if(f<.9999999999999999){const o=Math.acos(f),l=((1-r)*a+r*c)/Math.sin(o),h=l/a*Math.sin((1-r)*o),M=l/c*Math.sin(r*o);return(0,e.j)(i,t,h),(0,e.j)(u,n,M),(0,e.i)(s,i,u)}return(0,e.l)(s,t,n,r)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const i=(0,o.vt)(),u=(0,o.vt)()},38954:(t,n,r)=>{r.d(n,{A:()=>f,B:()=>l,C:()=>v,D:()=>O,E:()=>y,F:()=>X,G:()=>R,H:()=>F,a:()=>T,b:()=>s,c:()=>d,d:()=>a,e:()=>c,f:()=>_,g:()=>q,h:()=>i,i:()=>u,j:()=>p,l:()=>S,m:()=>N,n:()=>x,o:()=>A,p:()=>I,q:()=>w,r:()=>P,s:()=>b,t:()=>Z,u:()=>h,v:()=>z,w:()=>k,x:()=>m,y:()=>g,z:()=>M});var e=r(51850),o=r(34304);function s(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function g(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function m(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function p(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function d(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function y(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const r=n[0],e=n[1],o=n[2];let s=r*r+e*e+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function q(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2];return t[0]=o*u-s*i,t[1]=s*a-e*u,t[2]=e*i-o*a,t}function S(t,n,r,e){const o=n[0],s=n[1],a=n[2];return t[0]=o+e*(r[0]-o),t[1]=s+e*(r[1]-s),t[2]=a+e*(r[2]-a),t}function I(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*s+r[12],t[1]=r[1]*e+r[5]*o+r[9]*s+r[13],t[2]=r[2]*e+r[6]*o+r[10]*s+r[14],t}function Z(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=e*r[0]+o*r[3]+s*r[6],t[1]=e*r[1]+o*r[4]+s*r[7],t[2]=e*r[2]+o*r[5]+s*r[8],t}function P(t,n,r){const e=r[0],o=r[1],s=r[2],a=r[3],i=n[0],u=n[1],c=n[2],f=o*c-s*u,l=s*i-e*c,h=e*u-o*i,M=o*h-s*l,g=s*f-e*h,m=e*l-o*f,p=2*a;return t[0]=i+f*p+2*M,t[1]=u+l*p+2*g,t[2]=c+h*p+2*m,t}const j=(0,e.vt)(),C=(0,e.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function X(t,n){if(t===n)return!0;const r=t[0],e=t[1],s=t[2],a=n[0],i=n[1],u=n[2],c=(0,o.FD)();return Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function O(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],s=r[2]-n[2];let a=e*e+o*o+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=e*a,t[1]=o*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=c,Y=f,E=l,R=v,z=b,F=s,k=y;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){x(j,t),x(C,n);const r=q(j,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,s){const a=1-s,i=a*a,u=s*s,c=i*a,f=3*s*i,l=3*u*a,h=u*s;return t[0]=n[0]*c+r[0]*f+e[0]*l+o[0]*h,t[1]=n[1]*c+r[1]*f+e[1]*l+o[1]*h,t[2]=n[2]*c+r[2]*f+e[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:a,cross:_,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2],c=o*u-s*i,f=s*a-e*u,l=e*i-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:O,dist:R,distance:v,div:E,divide:l,dot:q,equals:X,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,s){const a=s*s,i=a*(2*s-3)+1,u=a*(s-2)+s,c=a*(s-1),f=a*(3-2*s);return t[0]=n[0]*i+r[0]*u+e[0]*c+o[0]*f,t[1]=n[1]*i+r[1]*u+e[1]*c+o[1]*f,t[2]=n[2]*i+r[2]*u+e[2]*c+o[2]*f,t},inverse:A,len:F,length:s,lerp:S,max:m,min:g,mul:Y,multiply:f,negate:w,normalize:x,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(e)*a,t[1]=Math.sin(e)*a,t[2]=s*n,t},rotateX:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),s[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),s[1]=o[1],s[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),s[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:d,set:i,sign:M,sqrDist:z,sqrLen:k,squaredDistance:b,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:c,transformMat3:Z,transformMat4:I,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>p,extractMesh:()=>m,meshFeatureSetFromJSON:()=>g});var e=r(52106),o=r(53966),s=r(91869),a=r(5443),i=r(40036),u=r(16930),c=r(63579),f=r(20557),l=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function g(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const s=l.A.fromJSON(r);if(s.geometryType="mesh",!r.assetMaps)return s;const a=p(n,r.assetMaps),i=t.sourceSpatialReference??u.A.WGS84,c=r.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(M=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=m(t,c,i,n,a);s.features.push(new e.A({geometry:r,attributes:h(t)}))}return s}function m(t,n,r,e,o){const s=t.attributes[n],u=o.get(s);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,r,e.transformFieldRoles),l=a.A.fromJSON(t.geometry);l.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),g=r.isGeographic?"local":"georeferenced",m=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(u);return m?i.default.createWithExternalSource(f,m,{extent:l,transform:M,vertexSpace:g,unitConversionDisabled:!0}):i.default.createIncomplete(f,{extent:l,transform:M,vertexSpace:g})}function p(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,a=e.assetType,i=e.assetHash,u=e.assetURL,c=e.conversionStatus,l=e.seqNo,h=(0,f.Fm)(a,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}const g=(0,s.tE)(r,n,()=>({files:new Map}));(0,s.tE)(g.files,o,()=>({name:o,type:a,mimeType:h,status:d(c),parts:[]})).parts[l]={hash:i,url:u}}return r}function d(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},44280:(t,n,r)=>{r.d(n,{EJ:()=>u,g7:()=>i,gr:()=>a});var e=r(34727),o=r(38954),s=r(51850);function a(t,n){return(0,o.g)(t,n)/(0,o.b)(t)}function i(t,n){const r=(0,o.g)(t,n)/((0,o.b)(t)*(0,o.b)(n));return-(0,e.XM)(r)}function u(t,n,r){(0,o.n)(c,t),(0,o.n)(f,n);const s=(0,o.g)(c,f),a=(0,e.XM)(s),i=(0,o.f)(c,c,f);return(0,o.g)(i,r)<0?2*Math.PI-a:a}const c=(0,s.vt)(),f=(0,s.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function a(){return s(1,1)}function i(){return s(1,0)}function u(){return s(0,1)}r.d(n,{Un:()=>c,fA:()=>s,o8:()=>o,vt:()=>e});const c=a(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:s,ones:a,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),s=r(51850);function a(t,n,r){const e=Math.sin(t),o=Math.cos(t),s=Math.sin(n),a=Math.cos(n),i=r;return i[0]=-e,i[4]=-s*o,i[8]=a*o,i[12]=0,i[1]=o,i[5]=-s*e,i[9]=a*e,i[13]=0,i[2]=0,i[6]=a,i[10]=s,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}var i=r(37539),u=r(21325);function c(t,n,r,e){const s=(0,i.Tp)(t,e);if(null==s)return!1;const c=s.source.spatialReferenceId,g=s.dest.spatialReferenceId;if(c===g&&!f(g)&&(0!==c||(0,u.aI)(t,e)))return(0,o.kN)(r,n),!0;if(f(g)){const t=i.w5[c][10],e=i.w5[10][g];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),a(l*h[0],l*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const m=f(c);if((3===g||11===g||2===g||5===g)&&(2===c||m||3===c||5===c)){const t=i.w5[c][10],e=i.w5[10][g];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),m?function(t,n,r){a(t,n,r),(0,o.mg)(r,r)}(l*h[0],l*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,e.kU)(1),h=(0,s.vt)(),M=(0,s.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>a});var e=r(51850),o=r(91218),s=r(9762);function a(t,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return i[0]=t.x,i[1]=t.y,i[2]=t.z??0,(0,s.projectBuffer)(i,t.spatialReference,0,n,r,0);const e=(0,o.tryProjectWithZConversion)(t,r);return!!e&&(n[0]=e.x,n[1]=e.y,n[2]=e.z??0,!0)}const i=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>m,Xd:()=>f,Xr:()=>M,hZ:()=>d,lw:()=>l,t2:()=>Z,x8:()=>c});var e=r(29242),o=r(82534),s=r(51850),a=r(34304),i=r(38954),u=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function f(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,a.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,n,r){const e=n[0],o=n[1],s=n[2],a=n[3],i=r[0],u=r[1],c=r[2],f=r[3];return t[0]=e*f+a*i+o*c-s*u,t[1]=o*f+a*u+s*i-e*c,t[2]=s*f+a*c+e*u-o*i,t[3]=a*f-e*i-o*u-s*c,t}function h(t,n,r,e){const o=n[0],s=n[1],i=n[2],u=n[3];let c,f,l,h,M,g=r[0],m=r[1],p=r[2],d=r[3];return f=o*g+s*m+i*p+u*d,f<0&&(f=-f,g=-g,m=-m,p=-p,d=-d),1-f>(0,a.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-e)*c)/l,M=Math.sin(e*c)/l):(h=1-e,M=e),t[0]=h*o+M*g,t[1]=h*s+M*m,t[2]=h*i+M*p,t[3]=h*u+M*d,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function g(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,s=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*s+s]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+s]-n[3*s+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[s]=(n[3*s+r]+n[3*r+s])*e}return t}function m(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const s=Math.sin(n),a=Math.cos(n),i=Math.sin(r),u=Math.cos(r),c=Math.sin(e),f=Math.cos(e);return t[0]=s*u*f-a*i*c,t[1]=a*i*f+s*u*c,t[2]=a*u*c-s*i*f,t[3]=a*u*f+s*i*c,t}const p=u.d,d=u.s,v=u.h,b=l,y=u.c,w=u.g,A=u.l,x=u.i,q=x,_=u.b,S=_,I=u.n,Z=u.a,P=u.e,j=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),X=(0,o.vt)(),O=(0,o.vt)(),T=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:p,dot:w,equals:P,exactEquals:Z,fromEuler:m,fromMat3:g,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],s=n[3],a=r*r+e*e+o*o+s*s,i=a?1/a:0;return t[0]=-r*i,t[1]=-e*i,t[2]=-o*i,t[3]=s*i,t},len:q,length:x,lerp:A,mul:b,multiply:l,normalize:I,random:function(t){const n=a.Ov,r=n(),e=n(),o=n(),s=Math.sqrt(1-r),i=Math.sqrt(r);return t[0]=s*Math.sin(2*Math.PI*e),t[1]=s*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*o),t[3]=i*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+a*i,t[1]=o*u+s*i,t[2]=s*u-o*i,t[3]=a*u-e*i,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u-s*i,t[1]=o*u+a*i,t[2]=s*u+e*i,t[3]=a*u-o*i,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+o*i,t[1]=o*u-e*i,t[2]=s*u+a*i,t[3]=a*u-s*i,t},rotationTo:function(t,n,r){const e=(0,i.g)(n,r);return e<-.999999?((0,i.f)(j,C,n),(0,i.H)(j)<1e-6&&(0,i.f)(j,N,n),(0,i.n)(j,j),c(t,j,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,i.f)(j,n,r),t[0]=j[0],t[1]=j[1],t[2]=j[2],t[3]=1+e,I(t,t))},scale:y,set:d,setAxes:function(t,n,r,e){const o=T;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],I(t,g(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,s){return h(X,n,o,s),h(O,r,e,s),h(t,X,O,2*s*(1-s)),t},sqrLen:S,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>M});var e=r(31635),o=r(69540),s=r(25482),a=r(91429),i=r(58083),u=r(9093),c=r(67026),f=r(82534),l=r(51850),h=r(24770);let M=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(g,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,i.o1)(t,g,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}};(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"translation",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAxis",void 0),(0,e.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAngle",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"scale",void 0),(0,e.Cg)([(0,a.MZ)()],M.prototype,"rotation",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrix",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrixInverse",null),M=(0,e.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],M);const g=(0,f.vt)()},77793:(t,n,r)=>{r.d(n,{V:()=>s,f:()=>a});var e=r(86738),o=r(73836);function s(t,n,r=i){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function a(t,n=i){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const i={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>f});var e=r(73941),o=r(16930),s=r(21325);const a=new o.A(e.fv),i=new o.A(e.FY),u=new o.A(e.LJ),c=new o.A(e.Ro);function f(t){const n=l.get(t);if(n)return n;let r=a;if(t)if(t===i)r=i;else if(t===u)r=u;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,s.tl)(n)||(0,s.tl)(e)?r=i:((0,s.ZL)(n)||(0,s.ZL)(e))&&(r=u);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=i:t===M&&(r=u)}}}return l.set(t,r),r}const l=new Map,h=i.wkt.toUpperCase(),M=u.wkt.toUpperCase()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5066],{24770:(t,n,r)=>{r.d(n,{$I:()=>p,AU:()=>M,g7:()=>m,i4:()=>f,ui:()=>l,up:()=>v,vt:()=>c,yo:()=>g});var e=r(34727),o=r(58083),s=r(67026),a=r(82534),i=r(38954),u=r(51850);function c(t=v){return[t[0],t[1],t[2],t[3]]}function f(t,n,r=c()){return(0,i.d)(r,t),r[3]=n,r}function l(t,n=c()){const r=(0,o.l)(b,t);return d(n,(0,e.KJ)((0,s.Xd)(n,r))),n}function h(t,n,r=c()){return(0,s.x8)(b,t,p(t)),(0,s.x8)(y,n,p(n)),(0,s.lw)(b,y,b),d(r,(0,e.KJ)((0,s.Xd)(r,b)))}function M(t,n,r,e=c()){return f(u.Cw,t,w),f(u.JP,n,A),f(u.Cb,r,x),h(w,A,w),h(w,x,e),e}function g(t){return t}function m(t){return t[3]}function p(t){return(0,e.kU)(t[3])}function d(t,n){return t[3]=n,t}const v=[0,0,1,0],b=(0,a.vt)(),y=(0,a.vt)(),w=(c(),c()),A=c(),x=c()},27921:(t,n,r)=>{r.d(n,{$Q:()=>I,C:()=>c,Cr:()=>M,LV:()=>u,O_:()=>h,Qj:()=>f,T7:()=>q,Tj:()=>S,Ui:()=>x,_I:()=>Z,fA:()=>l,gv:()=>_,lU:()=>g,mN:()=>P,mP:()=>w,mR:()=>A,vE:()=>C,vt:()=>i});var e=r(34727),o=r(38954),s=r(51850),a=(r(87317),r(44280),r(32114));function i(t=N){return[t[0],t[1],t[2],t[3]]}function u(t=N[0],n=N[1],r=N[2],e=N[3]){return l(t,n,r,e,a.Km.get())}function c(t,n){return l(n[0],n[1],n[2],n[3],t)}function f(t){return t}function l(t,n,r,e,o=i()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,r,e=i()){const o=r[0]-n[0],s=r[1]-n[1],a=r[2]-n[2],u=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=s*f-a*c,h=a*u-o*f,M=o*c-s*u,g=l*l+h*h+M*M,m=Math.abs(g-1)>1e-5&&g>1e-12?1/Math.sqrt(g):1;return e[0]=l*m,e[1]=h*m,e[2]=M*m,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function g(t,n,r,e=0,s=Math.floor(r*(1/3)),a=Math.floor(r*(2/3))){if(r<3)return!1;n(p,e);let i=s,u=!1;for(;i<r-1&&!u;)n(d,i),i++,u=!(0,o.m)(p,d);if(!u)return!1;for(i=Math.max(i,a),u=!1;i<r&&!u;)n(v,i),i++,(0,o.e)(b,p,d),(0,o.n)(b,b),(0,o.e)(y,d,v),(0,o.n)(y,y),u=!(0,o.m)(p,v)&&!(0,o.m)(d,v)&&Math.abs((0,o.g)(b,y))<m;return u?(M(p,d,v,t),!0):(0!==e||1!==s||2!==a)&&g(t,n,r,0,1,2)}r(32728);const m=.99619469809,p=(0,s.vt)(),d=(0,s.vt)(),v=(0,s.vt)(),b=(0,s.vt)(),y=(0,s.vt)();function w(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.g)(t,r),t}function A(t,n,r,e){return(0,o.f)(v,n,t),h(r,v,e)}function x(t,n,r){return null!=n&&j(C(t,n.origin,n.direction,X,r))}function q(t,n,r){return j(C(t,n.origin,n.vector,0,r))}function _(t,n,r){return j(C(t,n.origin,n.vector,1,r))}function S(t,n){return P(t,n)>=0}function I(t,n){const r=(0,o.g)(t,n.ray.direction),e=-P(t,n.ray.origin);if(e<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return e>0;if((e<0||r<0)&&!(e<0&&r<0))return!0;const s=e/r;return r>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function Z(t,n,r){const e=(0,o.j)(a.rq.get(),t,-t[3]),s=function(t,n,r){const e=(0,o.j)(a.rq.get(),t,(0,o.g)(t,n));return(0,o.e)(r,n,e),r}(t,(0,o.e)(a.rq.get(),n,e),a.rq.get());return(0,o.i)(r,s,e),r}function P(t,n){return(0,o.g)(t,n)+t[3]}function j(t){return 0===t||1===t}function C(t,n,r,s,a){const i=(0,o.g)(t,r),u=P(t,n);if(0===i)return u>=0?2:3;let c=-u/i;return 1&s&&(c=(0,e.qE)(c,0,1)),!(4&s)&&c<0||!(8&s)&&c>1?u>=0?2:3:((0,o.i)(a,n,(0,o.j)(a,r,c)),u>=0?0:1)}const N=[0,0,1,0],X=8},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>g,rq:()=>l,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),s=r(9093),a=r(82534),i=r(48163),u=r(51850),c=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(i.vt)}static createVec3f64(){return new f(u.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(s.vt)}static createQuatf64(){return new f(a.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),M=(f.createMat3f64(),f.createMat4f64()),g=f.createQuatf64()},32728:(t,n,r)=>{r.d(n,{nu:()=>a,wp:()=>s}),r(34727);var e=r(38954),o=r(51850);function s(t,n){const r=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,e.h)(t,r,o,s),t}function a(t,n,r,s=(0,o.vt)()){const a=(0,e.b)(t),c=(0,e.b)(n),f=(0,e.g)(t,n)/(a*c);if(f<.9999999999999999){const o=Math.acos(f),l=((1-r)*a+r*c)/Math.sin(o),h=l/a*Math.sin((1-r)*o),M=l/c*Math.sin(r*o);return(0,e.j)(i,t,h),(0,e.j)(u,n,M),(0,e.i)(s,i,u)}return(0,e.l)(s,t,n,r)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const i=(0,o.vt)(),u=(0,o.vt)()},38954:(t,n,r)=>{r.d(n,{A:()=>f,B:()=>F,C:()=>l,D:()=>v,E:()=>O,F:()=>y,G:()=>X,H:()=>R,a:()=>T,b:()=>s,c:()=>d,d:()=>a,e:()=>c,f:()=>_,g:()=>q,h:()=>i,i:()=>u,j:()=>p,l:()=>S,m:()=>N,n:()=>x,o:()=>A,p:()=>I,q:()=>w,r:()=>P,s:()=>b,t:()=>Z,u:()=>h,v:()=>z,w:()=>k,x:()=>m,y:()=>g,z:()=>M});var e=r(51850),o=r(34304);function s(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function g(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function m(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function p(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function d(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function y(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function w(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const r=n[0],e=n[1],o=n[2];let s=r*r+e*e+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function q(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2];return t[0]=o*u-s*i,t[1]=s*a-e*u,t[2]=e*i-o*a,t}function S(t,n,r,e){const o=n[0],s=n[1],a=n[2];return t[0]=o+e*(r[0]-o),t[1]=s+e*(r[1]-s),t[2]=a+e*(r[2]-a),t}function I(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*s+r[12],t[1]=r[1]*e+r[5]*o+r[9]*s+r[13],t[2]=r[2]*e+r[6]*o+r[10]*s+r[14],t}function Z(t,n,r){const e=n[0],o=n[1],s=n[2];return t[0]=e*r[0]+o*r[3]+s*r[6],t[1]=e*r[1]+o*r[4]+s*r[7],t[2]=e*r[2]+o*r[5]+s*r[8],t}function P(t,n,r){const e=r[0],o=r[1],s=r[2],a=r[3],i=n[0],u=n[1],c=n[2],f=o*c-s*u,l=s*i-e*c,h=e*u-o*i,M=o*h-s*l,g=s*f-e*h,m=e*l-o*f,p=2*a;return t[0]=i+f*p+2*M,t[1]=u+l*p+2*g,t[2]=c+h*p+2*m,t}const j=(0,e.vt)(),C=(0,e.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function X(t,n){if(t===n)return!0;const r=t[0],e=t[1],s=t[2],a=n[0],i=n[1],u=n[2],c=(0,o.FD)();return Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function O(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],s=r[2]-n[2];let a=e*e+o*o+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=e*a,t[1]=o*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=c,Y=f,E=l,R=v,z=b,F=s,k=y;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:u,angle:function(t,n){x(j,t),x(C,n);const r=q(j,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,s){const a=1-s,i=a*a,u=s*s,c=i*a,f=3*s*i,l=3*u*a,h=u*s;return t[0]=n[0]*c+r[0]*f+e[0]*l+o[0]*h,t[1]=n[1]*c+r[1]*f+e[1]*l+o[1]*h,t[2]=n[2]*c+r[2]*f+e[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:a,cross:_,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],s=n[2],a=r[0],i=r[1],u=r[2],c=o*u-s*i,f=s*a-e*u,l=e*i-o*a,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:O,dist:R,distance:v,div:E,divide:l,dot:q,equals:X,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,s){const a=s*s,i=a*(2*s-3)+1,u=a*(s-2)+s,c=a*(s-1),f=a*(3-2*s);return t[0]=n[0]*i+r[0]*u+e[0]*c+o[0]*f,t[1]=n[1]*i+r[1]*u+e[1]*c+o[1]*f,t[2]=n[2]*i+r[2]*u+e[2]*c+o[2]*f,t},inverse:A,len:F,length:s,lerp:S,max:m,min:g,mul:Y,multiply:f,negate:w,normalize:x,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(e)*a,t[1]=Math.sin(e)*a,t[2]=s*n,t},rotateX:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0],s[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),s[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),s[1]=o[1],s[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],s=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],s[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),s[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),s[2]=o[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:p,scaleAndAdd:d,set:i,sign:M,sqrDist:z,sqrLen:k,squaredDistance:b,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:c,transformMat3:Z,transformMat4:I,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>p,extractMesh:()=>m,meshFeatureSetFromJSON:()=>g});var e=r(52106),o=r(53966),s=r(91869),a=r(5443),i=r(40036),u=r(16930),c=r(63579),f=r(20557),l=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function g(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const s=l.A.fromJSON(r);if(s.geometryType="mesh",!r.assetMaps)return s;const a=p(n,r.assetMaps),i=t.sourceSpatialReference??u.A.WGS84,c=r.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(M=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=m(t,c,i,n,a);s.features.push(new e.A({geometry:r,attributes:h(t)}))}return s}function m(t,n,r,e,o){const s=t.attributes[n],u=o.get(s);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,r,e.transformFieldRoles),l=a.A.fromJSON(t.geometry);l.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),g=r.isGeographic?"local":"georeferenced",m=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(u);return m?i.default.createWithExternalSource(f,m,{extent:l,transform:M,vertexSpace:g,unitConversionDisabled:!0}):i.default.createIncomplete(f,{extent:l,transform:M,vertexSpace:g})}function p(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,a=e.assetType,i=e.assetHash,u=e.assetURL,c=e.conversionStatus,l=e.seqNo,h=(0,f.Fm)(a,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${a}, but it does not list it as a supported type`);continue}const g=(0,s.tE)(r,n,()=>({files:new Map}));(0,s.tE)(g.files,o,()=>({name:o,type:a,mimeType:h,status:d(c),parts:[]})).parts[l]={hash:i,url:u}}return r}function d(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},44280:(t,n,r)=>{r.d(n,{EJ:()=>u,g7:()=>i,gr:()=>a});var e=r(34727),o=r(38954),s=r(51850);function a(t,n){return(0,o.g)(t,n)/(0,o.b)(t)}function i(t,n){const r=(0,o.g)(t,n)/((0,o.b)(t)*(0,o.b)(n));return-(0,e.XM)(r)}function u(t,n,r){(0,o.n)(c,t),(0,o.n)(f,n);const s=(0,o.g)(c,f),a=(0,e.XM)(s),i=(0,o.f)(c,c,f);return(0,o.g)(i,r)<0?2*Math.PI-a:a}const c=(0,s.vt)(),f=(0,s.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function a(){return s(1,1)}function i(){return s(1,0)}function u(){return s(0,1)}r.d(n,{Un:()=>c,fA:()=>s,o8:()=>o,vt:()=>e});const c=a(),f=i(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:s,ones:a,unitX:i,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),s=r(51850);function a(t,n,r){const e=Math.sin(t),o=Math.cos(t),s=Math.sin(n),a=Math.cos(n),i=r;return i[0]=-e,i[4]=-s*o,i[8]=a*o,i[12]=0,i[1]=o,i[5]=-s*e,i[9]=a*e,i[13]=0,i[2]=0,i[6]=a,i[10]=s,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}var i=r(37539),u=r(21325);function c(t,n,r,e){const s=(0,i.Tp)(t,e);if(null==s)return!1;const c=s.source.spatialReferenceId,g=s.dest.spatialReferenceId;if(c===g&&!f(g)&&(0!==c||(0,u.aI)(t,e)))return(0,o.kN)(r,n),!0;if(f(g)){const t=i.w5[c][10],e=i.w5[10][g];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),a(l*h[0],l*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const m=f(c);if((3===g||11===g||2===g||5===g)&&(2===c||m||3===c||5===c)){const t=i.w5[c][10],e=i.w5[10][g];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),m?function(t,n,r){a(t,n,r),(0,o.mg)(r,r)}(l*h[0],l*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,e.kU)(1),h=(0,s.vt)(),M=(0,s.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>a});var e=r(51850),o=r(91218),s=r(9762);function a(t,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return i[0]=t.x,i[1]=t.y,i[2]=t.z??0,(0,s.projectBuffer)(i,t.spatialReference,0,n,r,0);const e=(0,o.tryProjectWithZConversion)(t,r);return!!e&&(n[0]=e.x,n[1]=e.y,n[2]=e.z??0,!0)}const i=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>m,Xd:()=>f,Xr:()=>M,hZ:()=>d,lw:()=>l,t2:()=>Z,x8:()=>c});var e=r(29242),o=r(82534),s=r(51850),a=r(34304),i=r(38954),u=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function f(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,a.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,n,r){const e=n[0],o=n[1],s=n[2],a=n[3],i=r[0],u=r[1],c=r[2],f=r[3];return t[0]=e*f+a*i+o*c-s*u,t[1]=o*f+a*u+s*i-e*c,t[2]=s*f+a*c+e*u-o*i,t[3]=a*f-e*i-o*u-s*c,t}function h(t,n,r,e){const o=n[0],s=n[1],i=n[2],u=n[3];let c,f,l,h,M,g=r[0],m=r[1],p=r[2],d=r[3];return f=o*g+s*m+i*p+u*d,f<0&&(f=-f,g=-g,m=-m,p=-p,d=-d),1-f>(0,a.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-e)*c)/l,M=Math.sin(e*c)/l):(h=1-e,M=e),t[0]=h*o+M*g,t[1]=h*s+M*m,t[2]=h*i+M*p,t[3]=h*u+M*d,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function g(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,s=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*s+s]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+s]-n[3*s+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[s]=(n[3*s+r]+n[3*r+s])*e}return t}function m(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const s=Math.sin(n),a=Math.cos(n),i=Math.sin(r),u=Math.cos(r),c=Math.sin(e),f=Math.cos(e);return t[0]=s*u*f-a*i*c,t[1]=a*i*f+s*u*c,t[2]=a*u*c-s*i*f,t[3]=a*u*f+s*i*c,t}const p=u.d,d=u.s,v=u.h,b=l,y=u.c,w=u.g,A=u.l,x=u.i,q=x,_=u.b,S=_,I=u.n,Z=u.a,P=u.e,j=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),X=(0,o.vt)(),O=(0,o.vt)(),T=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:p,dot:w,equals:P,exactEquals:Z,fromEuler:m,fromMat3:g,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],s=n[3],a=r*r+e*e+o*o+s*s,i=a?1/a:0;return t[0]=-r*i,t[1]=-e*i,t[2]=-o*i,t[3]=s*i,t},len:q,length:x,lerp:A,mul:b,multiply:l,normalize:I,random:function(t){const n=a.Ov,r=n(),e=n(),o=n(),s=Math.sqrt(1-r),i=Math.sqrt(r);return t[0]=s*Math.sin(2*Math.PI*e),t[1]=s*Math.cos(2*Math.PI*e),t[2]=i*Math.sin(2*Math.PI*o),t[3]=i*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+a*i,t[1]=o*u+s*i,t[2]=s*u-o*i,t[3]=a*u-e*i,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u-s*i,t[1]=o*u+a*i,t[2]=s*u+e*i,t[3]=a*u-o*i,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],s=n[2],a=n[3],i=Math.sin(r),u=Math.cos(r);return t[0]=e*u+o*i,t[1]=o*u-e*i,t[2]=s*u+a*i,t[3]=a*u-s*i,t},rotationTo:function(t,n,r){const e=(0,i.g)(n,r);return e<-.999999?((0,i.f)(j,C,n),(0,i.B)(j)<1e-6&&(0,i.f)(j,N,n),(0,i.n)(j,j),c(t,j,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,i.f)(j,n,r),t[0]=j[0],t[1]=j[1],t[2]=j[2],t[3]=1+e,I(t,t))},scale:y,set:d,setAxes:function(t,n,r,e){const o=T;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],I(t,g(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,s){return h(X,n,o,s),h(O,r,e,s),h(t,X,O,2*s*(1-s)),t},sqrLen:S,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>M});var e=r(31635),o=r(69540),s=r(25482),a=r(91429),i=r(58083),u=r(9093),c=r(67026),f=r(82534),l=r(51850),h=r(24770);let M=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,u.vt)();return(0,c.x8)(g,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,i.o1)(t,g,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,u.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}};(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"translation",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAxis",void 0),(0,e.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],M.prototype,"rotationAngle",void 0),(0,e.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],M.prototype,"scale",void 0),(0,e.Cg)([(0,a.MZ)()],M.prototype,"rotation",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrix",null),(0,e.Cg)([(0,a.MZ)()],M.prototype,"localMatrixInverse",null),M=(0,e.Cg)([(0,a.$K)("esri.geometry.support.MeshTransform")],M);const g=(0,f.vt)()},77793:(t,n,r)=>{r.d(n,{V:()=>s,f:()=>a});var e=r(86738),o=r(73836);function s(t,n,r=i){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function a(t,n=i){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const i={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>f});var e=r(73941),o=r(16930),s=r(21325);const a=new o.A(e.fv),i=new o.A(e.FY),u=new o.A(e.LJ),c=new o.A(e.Ro);function f(t){const n=l.get(t);if(n)return n;let r=a;if(t)if(t===i)r=i;else if(t===u)r=u;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,s.tl)(n)||(0,s.tl)(e)?r=i:((0,s.ZL)(n)||(0,s.ZL)(e))&&(r=u);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=i:t===M&&(r=u)}}}return l.set(t,r),r}const l=new Map,h=i.wkt.toUpperCase(),M=u.wkt.toUpperCase()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8243],{1843:(t,e,n)=>{n.d(e,{BP:()=>c,l5:()=>f});var r=n(20498),i=n(13030),s=n(90239),a=n(4431),h=n(620),o=n(85079);class u{constructor(t,e){this.layout=t,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,e){const n=this[t];return n&&n.elementCount===e.ElementCount&&n.elementType===e.ElementType?n:null}slice(t,e){return new u(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,n=0,r=t.count){const i=this.stride;if(i%4==0){const s=new Uint32Array(t.buffer,e*i,r*i/4);new Uint32Array(this.buffer,n*i,r*i/4).set(s)}else{const s=new Uint8Array(t.buffer,e*i,r*i);new Uint8Array(this.buffer,n*i,r*i).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class l{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,o.Xk)((0,a.U)(this))}vec2f16(t,e){return this._appendField(t,r.SX?i.ZD:i.gH,e),this}vec2f(t,e){return this._appendField(t,i.gH,e),this}vec2f64(t,e){return this._appendField(t,i.si,e),this}vec3f16(t,e){return this._appendField(t,r.SX?i.EC:i.xs,e),this}vec3f(t,e){return this._appendField(t,i.xs,e),this}vec3f64(t,e){return this._appendField(t,i.Xm,e),this}vec4f16(t,e){return this._appendField(t,r.SX?i.jz:i.Eq,e),this}vec4f(t,e){return this._appendField(t,i.Eq,e),this}vec4f64(t,e){return this._appendField(t,i.Aj,e),this}mat3f(t,e){return this._appendField(t,i.jZ,e),this}mat3f64(t,e){return this._appendField(t,i.j0,e),this}mat4f(t,e){return this._appendField(t,i.Sx,e),this}mat4f64(t,e){return this._appendField(t,i.E$,e),this}vec4u8(t,e){return this._appendField(t,i.XP,e),this}f16(t,e){return this._appendField(t,r.SX?i.XW:i.Y$,e),this}f32(t,e){return this._appendField(t,i.Y$,e),this}f64(t,e){return this._appendField(t,i.qB,e),this}u8(t,e){return this._appendField(t,i.SL,e),this}u16(t,e){return this._appendField(t,i.h,e),this}i8(t,e){return this._appendField(t,i.bf,e),this}vec2i8(t,e){return this._appendField(t,i.D6,e),this}vec2i16(t,e){return this._appendField(t,i.mJ,e),this}vec2u8(t,e){return this._appendField(t,i.LC,e),this}vec2u16(t,e){return this._appendField(t,i.Yi,e),this}vec4u16(t,e){return this._appendField(t,i.Uz,e),this}vec4i16(t,e){return this._appendField(t,i.E7,e),this}u32(t,e){return this._appendField(t,i.P,e),this}_appendField(t,e,n){this._fields.has(t)&&(0,h.vA)(!1,`${t} already added to vertex buffer layout`);const r=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:r,offset:i,optional:n}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(n=>{const r=(0,s.GJ)(n.constructor.ElementType);t=Math.floor((t+r-1)/r)*r,n.offset=t,t+=n.size,e=Math.max(e,r)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new u(this,t)}createView(t){return new u(this,t)}clone(){const t=new l;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,n)=>t._fields.set(n,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function c(){return new l}class f{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const n={...t,constructor:_(t.constructor)};this.fields.push([e,n])}),this.stride=t.stride}}const d=[i.Y$,i.gH,i.xs,i.Eq,i.jZ,i.Sx,i.qB,i.si,i.Xm,i.Aj,i.j0,i.E$,i.SL,i.LC,i.eI,i.XP,i.h,i.Yi,i.nS,i.Uz,i.P,i.An,i.H$,i.ml,i.bf,i.D6,i.m8,i.TX,i.Qt,i.mJ,i.Vp,i.E7,i.My,i.UL,i.zD,i.Y4];function _(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return p.get(t)}const p=new Map;d.forEach(t=>p.set(_(t),t))},4431:(t,e,n)=>{n.d(e,{U:()=>s}),n(44208);var r=n(63907),i=n(74038);function s(t,e=0){const n=t.stride;return Array.from(t.fields.keys()).map(s=>{const a=t.fields.get(s),h=a.constructor.ElementCount,o=function(t){switch(t){case"u8":return r.pe.UNSIGNED_BYTE;case"u16":return r.pe.UNSIGNED_SHORT;case"u32":return r.pe.UNSIGNED_INT;case"i8":return r.pe.BYTE;case"i16":return r.pe.SHORT;case"i32":return r.pe.INT;case"f16":return r.pe.HALF_FLOAT;case"f32":return r.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(a.constructor.ElementType),u=a.offset,l=a.optional?.glNormalized??!1;return new i._(s,h,o,u,n,l,e)})}},11868:(t,e,n)=>{n.d(e,{Wz:()=>s,oe:()=>i});var r=n(34275);function i(t,e=!1){return t<=r.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function s(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=r.y9?Array.from(t):new Float32Array(t)}},15142:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(4576),i=n(21818);const s=(t,e,n,r)=>{let i=e,s=e;const a=n>>>1,h=t[i-1];for(;s<=a;){s=i<<1,s<n&&r(t[s-1],t[s])<0&&++s;const e=t[s-1];if(r(e,h)<=0)break;t[i-1]=e,i=s}t[i-1]=h},a=(t,e)=>t<e?-1:t>e?1:0;function h(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=a);for(let i=n>>>1;i>e;i--)s(t,i,n,r);const i=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,s(t,i,a,r)}}function*o(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=a);for(let i=n>>>1;i>e;i--)s(t,i,n,r),yield;const i=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,s(t,i,a,r),yield}}class u{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>l(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let n=0;n<this._length;n++){const r=this.data[n];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const n=this.data.indexOf(t,e);return-1!==n&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let n=0;n<e;n++)this.data[this._length++]=t[n]}fill(t,e){for(let n=0;n<e;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,l(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,r.qh)(this.data,(0,i.zI)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.zI)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,n){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,n),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const n=this.data[t];this.data[t]=this.data[e],this.data[e]=n}sort(t){h(this.data,0,this.length,t)}iterableSort(t){return o(this.data,0,this.length,t)}some(t,e){for(let n=0;n<this.length;++n)if(t.call(e,this.data[n],n,this.data))return!0;return!1}find(t,e){const{data:n,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,n[i]))return n[i]}filterInPlace(t,e){let n=0;for(let r=0;r<this._length;++r){const i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[n],this.data[n]=i,n++)}if(this._deallocator)for(let t=n;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=n,this._shrink(),this}forAll(t,e){const{data:n,length:r}=this;for(let i=0;i<r;++i)t.call(e,n[i],i,n)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const n=new Array(this.length);for(let r=0;r<this.length;++r)n[r]=t.call(e,this.data[r],r,this.data);return n}reduce(t,e){let n=e;for(let e=0;e<this.length;++e)n=t(n,this.data[e],e,this.data);return n}has(t){const e=this.length,n=this.data;for(let r=0;r<e;++r)if(n[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function l(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},63907:(t,e,n)=>{n.d(e,{$0:()=>c,CQ:()=>p,Fq:()=>_,H0:()=>s,SB:()=>o,WR:()=>r,XN:()=>a,iE:()=>h,ld:()=>u,nI:()=>E,pe:()=>i,r6:()=>f,vt:()=>l,yI:()=>d});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={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},a=Object.values(s),h={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},o={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:i.FLOAT,UNSIGNED_BYTE:i.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:i.BYTE,UNSIGNED_SHORT:i.UNSIGNED_SHORT,SHORT:i.SHORT,UNSIGNED_INT:i.UNSIGNED_INT,INT:i.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},l={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},c=0,f=36064,d=36065,_=36066,E=33306,p={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}},71936:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(1843);function i(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var s=n(52586),a=n(93406),h=n(431);class o{async extract(t){const e=u(t),n=(0,h.o6)(e),r=[e.data.buffer];return{result:l(n,r),transferList:r}}async extractComponentsEdgeLocations(t){const e=u(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),r=[];return{result:i((0,a.K)(n,f).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const e=u(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),r=[];return{result:i((0,a.K)(n,c).regular.instancesData,r),transferList:r}}}function u(t){return{data:s.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function l(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:i(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:i(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return h.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1)}},f=new class{allocate(t){return h.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex)}}},74038:(t,e,n)=>{n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,s=!1,a=0){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=a}}},85079:(t,e,n)=>{n.d(e,{Xk:()=>i,_u:()=>s});var r=n(21818);function i(t){let e=0;return(0,r.zI)(new Map(t.map(({name:t,count:n})=>{const r=[t,e];return 16===n?e+=4:9===n?e+=3:++e,r})))}function s(t){const e=new Map;let n=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,n),16===r?n+=4:9===r?n+=3:++n})),e}},87317:(t,e,n)=>{n.d(e,{a:()=>S,b:()=>_,c:()=>l,d:()=>i,e:()=>T,f:()=>f,g:()=>p,h:()=>a,i:()=>d,l:()=>g,n:()=>E,s:()=>s,t:()=>R});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function a(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 h(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 o(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 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 l(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 c(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function f(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return n*n+r*r+i*i+s*s}function d(t){const e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function _(t){const e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function E(t,e){const n=e[0],r=e[1],i=e[2],s=e[3];let a=n*n+r*r+i*i+s*s;return a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=s*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function g(t,e,n,r){const i=e[0],s=e[1],a=e[2],h=e[3];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=a+r*(n[2]-a),t[3]=h+r*(n[3]-h),t}function R(t,e,n){const r=e[0],i=e[1],s=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*a,t}function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){const n=t[0],i=t[1],s=t[2],a=t[3],h=e[0],o=e[1],u=e[2],l=e[3],c=(0,r.FD)();return Math.abs(n-h)<=c*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-o)<=c*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}const A=h,y=o,I=u,N=c,m=f,M=d,G=_;Object.freeze(Object.defineProperty({__proto__:null,add:a,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:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:N,distance:c,div:I,divide:u,dot:p,equals:T,exactEquals:S,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:M,length:d,lerp:g,max:function(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},min:function(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},mul:y,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:E,random:function(t,e=1){const n=r.Ov;let i,s,a,h,o,u;do{i=2*n()-1,s=2*n()-1,o=i*i+s*s}while(o>=1);do{a=2*n()-1,h=2*n()-1,u=a*a+h*h}while(u>=1);const l=Math.sqrt((1-o)/u);return t[0]=e*i,t[1]=e*s,t[2]=e*a*l,t[3]=e*h*l,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[3]=Math.round(e[3]),t},scale:l,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:s,sqrDist:m,sqrLen:G,squaredDistance:f,squaredLength:_,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:h,transformMat4:R,transformQuat:function(t,e,n){const r=e[0],i=e[1],s=e[2],a=n[0],h=n[1],o=n[2],u=n[3],l=u*r+h*s-o*i,c=u*i+o*r-a*s,f=u*s+a*i-h*r,d=-a*r-h*i-o*s;return t[0]=l*u+d*-a+c*-o-f*-h,t[1]=c*u+d*-h+f*-a-l*-o,t[2]=f*u+d*-o+l*-h-c*-a,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},90239:(t,e,n)=>{function r(t){switch(t){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}}n.d(e,{GJ:()=>r})},91829:(t,e,n)=>{function r(){return[0,0,0,0]}function i(t){return[t[0],t[1],t[2],t[3]]}function s(t,e,n,r){return[t,e,n,r]}function a(t,e,n,r){return[t,e,n,r]}function h(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function o(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function l(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function f(){return s(0,0,0,1)}n.d(e,{CN:()=>a,Un:()=>_,ci:()=>h,fA:()=>s,o8:()=>i,uY:()=>d,vt:()=>r});const d=[0,0,0,0],_=o(),E=u(),p=l(),g=c(),R=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_W:R,UNIT_X:E,UNIT_Y:p,UNIT_Z:g,ZEROS:d,clone:i,create:r,freeze:a,fromArray:h,fromValues:s,ones:o,unitW:f,unitX:u,unitY:l,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},97146:(t,e,n)=>{n.d(e,{Dg:()=>s,my:()=>a,tM:()=>l,uW:()=>i});var r=n(34275);function i(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<r.y9)return t}else if(t.length<r.y9)return Array.from(t);let n=!0,i=!0;return t.some((t,e)=>(n=n&&0===t,i=i&&t===e,!n&&!i)),n?function(t){if(1===t)return o;if(t<r.y9)return new Array(t).fill(0);if(t>f.length){const e=Math.max(2*f.length,t);f=new Uint8Array(e)}return new Uint8Array(f.buffer,0,t)}(t.length):i?l(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const n of t){if(n>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function a(t){return t<=r.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let h=c(131072);const o=[0],u=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function l(t){return 1===t?o:t<r.y9?Array.from(new Uint16Array(u.buffer,0,t)):t<u.length?new Uint16Array(u.buffer,0,t):(t>h.length&&(h=c(Math.max(2*h.length,t))),new Uint32Array(h.buffer,0,t))}function c(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let f=new Uint8Array(65536)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8243],{1843:(t,e,n)=>{n.d(e,{BP:()=>c,l5:()=>f});var r=n(20498),i=n(13030),s=n(90239),a=n(4431),h=n(620),o=n(85079);class u{constructor(t,e){this.layout=t,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,e){const n=this[t];return n&&n.elementCount===e.ElementCount&&n.elementType===e.ElementType?n:null}slice(t,e){return new u(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,n=0,r=t.count){const i=this.stride;if(i%4==0){const s=new Uint32Array(t.buffer,e*i,r*i/4);new Uint32Array(this.buffer,n*i,r*i/4).set(s)}else{const s=new Uint8Array(t.buffer,e*i,r*i);new Uint8Array(this.buffer,n*i,r*i).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class l{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,o.Xk)((0,a.U)(this))}vec2f16(t,e){return this._appendField(t,r.SX?i.ZD:i.gH,e),this}vec2f(t,e){return this._appendField(t,i.gH,e),this}vec2f64(t,e){return this._appendField(t,i.si,e),this}vec3f16(t,e){return this._appendField(t,r.SX?i.EC:i.xs,e),this}vec3f(t,e){return this._appendField(t,i.xs,e),this}vec3f64(t,e){return this._appendField(t,i.Xm,e),this}vec4f16(t,e){return this._appendField(t,r.SX?i.jz:i.Eq,e),this}vec4f(t,e){return this._appendField(t,i.Eq,e),this}vec4f64(t,e){return this._appendField(t,i.Aj,e),this}mat3f(t,e){return this._appendField(t,i.jZ,e),this}mat3f64(t,e){return this._appendField(t,i.j0,e),this}mat4f(t,e){return this._appendField(t,i.Sx,e),this}mat4f64(t,e){return this._appendField(t,i.E$,e),this}vec4u8(t,e){return this._appendField(t,i.XP,e),this}f16(t,e){return this._appendField(t,r.SX?i.XW:i.Y$,e),this}f32(t,e){return this._appendField(t,i.Y$,e),this}f64(t,e){return this._appendField(t,i.qB,e),this}u8(t,e){return this._appendField(t,i.SL,e),this}u16(t,e){return this._appendField(t,i.h,e),this}i8(t,e){return this._appendField(t,i.bf,e),this}vec2i8(t,e){return this._appendField(t,i.D6,e),this}vec2i16(t,e){return this._appendField(t,i.mJ,e),this}vec2u8(t,e){return this._appendField(t,i.LC,e),this}vec2u16(t,e){return this._appendField(t,i.Yi,e),this}vec4u16(t,e){return this._appendField(t,i.Uz,e),this}vec4i16(t,e){return this._appendField(t,i.E7,e),this}u32(t,e){return this._appendField(t,i.P,e),this}_appendField(t,e,n){this._fields.has(t)&&(0,h.vA)(!1,`${t} already added to vertex buffer layout`);const r=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:r,offset:i,optional:n}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(n=>{const r=(0,s.GJ)(n.constructor.ElementType);t=Math.floor((t+r-1)/r)*r,n.offset=t,t+=n.size,e=Math.max(e,r)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new u(this,t)}createView(t){return new u(this,t)}clone(){const t=new l;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,n)=>t._fields.set(n,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function c(){return new l}class f{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const n={...t,constructor:_(t.constructor)};this.fields.push([e,n])}),this.stride=t.stride}}const d=[i.Y$,i.gH,i.xs,i.Eq,i.jZ,i.Sx,i.qB,i.si,i.Xm,i.Aj,i.j0,i.E$,i.SL,i.LC,i.eI,i.XP,i.h,i.Yi,i.nS,i.Uz,i.P,i.An,i.H$,i.ml,i.bf,i.D6,i.m8,i.TX,i.Qt,i.mJ,i.Vp,i.E7,i.My,i.UL,i.zD,i.Y4];function _(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return p.get(t)}const p=new Map;d.forEach(t=>p.set(_(t),t))},4431:(t,e,n)=>{n.d(e,{U:()=>s}),n(44208);var r=n(63907),i=n(74038);function s(t,e=0){const n=t.stride;return Array.from(t.fields.keys()).map(s=>{const a=t.fields.get(s),h=a.constructor.ElementCount,o=function(t){switch(t){case"u8":return r.pe.UNSIGNED_BYTE;case"u16":return r.pe.UNSIGNED_SHORT;case"u32":return r.pe.UNSIGNED_INT;case"i8":return r.pe.BYTE;case"i16":return r.pe.SHORT;case"i32":return r.pe.INT;case"f16":return r.pe.HALF_FLOAT;case"f32":return r.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(a.constructor.ElementType),u=a.offset,l=a.optional?.glNormalized??!1;return new i._(s,h,o,u,n,l,e)})}},11868:(t,e,n)=>{n.d(e,{Wz:()=>s,oe:()=>i});var r=n(34275);function i(t,e=!1){return t<=r.y9?e?new Array(t).fill(0):new Array(t):new Float32Array(t)}function s(t){return(Array.isArray(t)?t.length:t.byteLength/8)<=r.y9?Array.from(t):new Float32Array(t)}},15142:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(4576),i=n(21818);const s=(t,e,n,r)=>{let i=e,s=e;const a=n>>>1,h=t[i-1];for(;s<=a;){s=i<<1,s<n&&r(t[s-1],t[s])<0&&++s;const e=t[s-1];if(r(e,h)<=0)break;t[i-1]=e,i=s}t[i-1]=h},a=(t,e)=>t<e?-1:t>e?1:0;function h(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=a);for(let i=n>>>1;i>e;i--)s(t,i,n,r);const i=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,s(t,i,a,r)}}function*o(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=a);for(let i=n>>>1;i>e;i--)s(t,i,n,r),yield;const i=e+1;for(let a=n-1;a>e;a--){const n=t[e];t[e]=t[a],t[a]=n,s(t,i,a,r),yield}}class u{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>l(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let n=0;n<this._length;n++){const r=this.data[n];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const n=this.data.indexOf(t,e);return-1!==n&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let n=0;n<e;n++)this.data[this._length++]=t[n]}fill(t,e){for(let n=0;n<e;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,l(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,r.qh)(this.data,(0,i.zI)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.zI)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,n){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,n),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const n=this.data[t];this.data[t]=this.data[e],this.data[e]=n}sort(t){h(this.data,0,this.length,t)}iterableSort(t){return o(this.data,0,this.length,t)}some(t,e){for(let n=0;n<this.length;++n)if(t.call(e,this.data[n],n,this.data))return!0;return!1}find(t,e){const{data:n,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,n[i]))return n[i]}filterInPlace(t,e){let n=0;for(let r=0;r<this._length;++r){const i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[n],this.data[n]=i,n++)}if(this._deallocator)for(let t=n;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=n,this._shrink(),this}forAll(t,e){const{data:n,length:r}=this;for(let i=0;i<r;++i)t.call(e,n[i],i,n)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const n=new Array(this.length);for(let r=0;r<this.length;++r)n[r]=t.call(e,this.data[r],r,this.data);return n}reduce(t,e){let n=e;for(let e=0;e<this.length;++e)n=t(n,this.data[e],e,this.data);return n}has(t){const e=this.length,n=this.data;for(let r=0;r<e;++r)if(n[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function l(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},63907:(t,e,n)=>{n.d(e,{$0:()=>c,CQ:()=>p,Fq:()=>_,H0:()=>s,SB:()=>o,WR:()=>r,XN:()=>a,iE:()=>h,ld:()=>u,nI:()=>E,pe:()=>i,r6:()=>f,vt:()=>l,yI:()=>d});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={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},a=Object.values(s),h={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},o={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},u={FLOAT:i.FLOAT,UNSIGNED_BYTE:i.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:i.BYTE,UNSIGNED_SHORT:i.UNSIGNED_SHORT,SHORT:i.SHORT,UNSIGNED_INT:i.UNSIGNED_INT,INT:i.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},l={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},c=0,f=36064,d=36065,_=36066,E=33306,p={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}},71936:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(1843);function i(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var s=n(84521),a=n(93406),h=n(431);class o{async extract(t){const e=u(t),n=(0,h.o6)(e),r=[e.data.buffer];return{result:l(n,r),transferList:r}}async extractComponentsEdgeLocations(t){const e=u(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),r=[];return{result:i((0,a.K)(n,f).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const e=u(t),n=(0,h.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),r=[];return{result:i((0,a.K)(n,c).regular.instancesData,r),transferList:r}}}function u(t){return{data:s.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function l(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:i(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:i(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return h.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1)}},f=new class{allocate(t){return h.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,n){t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex)}}},74038:(t,e,n)=>{n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,s=!1,a=0){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=a}}},85079:(t,e,n)=>{n.d(e,{Xk:()=>i,_u:()=>s});var r=n(21818);function i(t){let e=0;return(0,r.zI)(new Map(t.map(({name:t,count:n})=>{const r=[t,e];return 16===n?e+=4:9===n?e+=3:++e,r})))}function s(t){const e=new Map;let n=0;return t.forEach(t=>t.forEach(({name:t,count:r})=>{e.set(t,n),16===r?n+=4:9===r?n+=3:++n})),e}},87317:(t,e,n)=>{n.d(e,{a:()=>S,b:()=>_,c:()=>l,d:()=>i,e:()=>T,f:()=>f,g:()=>p,h:()=>a,i:()=>d,l:()=>g,n:()=>E,s:()=>s,t:()=>R});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function a(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 h(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 o(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 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 l(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 c(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function f(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],s=e[3]-t[3];return n*n+r*r+i*i+s*s}function d(t){const e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function _(t){const e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function E(t,e){const n=e[0],r=e[1],i=e[2],s=e[3];let a=n*n+r*r+i*i+s*s;return a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=s*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function g(t,e,n,r){const i=e[0],s=e[1],a=e[2],h=e[3];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=a+r*(n[2]-a),t[3]=h+r*(n[3]-h),t}function R(t,e,n){const r=e[0],i=e[1],s=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*a,t}function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){const n=t[0],i=t[1],s=t[2],a=t[3],h=e[0],o=e[1],u=e[2],l=e[3],c=(0,r.FD)();return Math.abs(n-h)<=c*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-o)<=c*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}const A=h,y=o,I=u,N=c,m=f,M=d,G=_;Object.freeze(Object.defineProperty({__proto__:null,add:a,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:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:N,distance:c,div:I,divide:u,dot:p,equals:T,exactEquals:S,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:M,length:d,lerp:g,max:function(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},min:function(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},mul:y,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:E,random:function(t,e=1){const n=r.Ov;let i,s,a,h,o,u;do{i=2*n()-1,s=2*n()-1,o=i*i+s*s}while(o>=1);do{a=2*n()-1,h=2*n()-1,u=a*a+h*h}while(u>=1);const l=Math.sqrt((1-o)/u);return t[0]=e*i,t[1]=e*s,t[2]=e*a*l,t[3]=e*h*l,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[3]=Math.round(e[3]),t},scale:l,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:s,sqrDist:m,sqrLen:G,squaredDistance:f,squaredLength:_,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:h,transformMat4:R,transformQuat:function(t,e,n){const r=e[0],i=e[1],s=e[2],a=n[0],h=n[1],o=n[2],u=n[3],l=u*r+h*s-o*i,c=u*i+o*r-a*s,f=u*s+a*i-h*r,d=-a*r-h*i-o*s;return t[0]=l*u+d*-a+c*-o-f*-h,t[1]=c*u+d*-h+f*-a-l*-o,t[2]=f*u+d*-o+l*-h-c*-a,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},90239:(t,e,n)=>{function r(t){switch(t){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}}n.d(e,{GJ:()=>r})},91829:(t,e,n)=>{function r(){return[0,0,0,0]}function i(t){return[t[0],t[1],t[2],t[3]]}function s(t,e,n,r){return[t,e,n,r]}function a(t,e,n,r){return[t,e,n,r]}function h(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function o(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function l(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function f(){return s(0,0,0,1)}n.d(e,{CN:()=>a,Un:()=>_,ci:()=>h,fA:()=>s,o8:()=>i,uY:()=>d,vt:()=>r});const d=[0,0,0,0],_=o(),E=u(),p=l(),g=c(),R=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_W:R,UNIT_X:E,UNIT_Y:p,UNIT_Z:g,ZEROS:d,clone:i,create:r,freeze:a,fromArray:h,fromValues:s,ones:o,unitW:f,unitX:u,unitY:l,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},97146:(t,e,n)=>{n.d(e,{Dg:()=>s,my:()=>a,tM:()=>l,uW:()=>i});var r=n(34275);function i(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<r.y9)return t}else if(t.length<r.y9)return Array.from(t);let n=!0,i=!0;return t.some((t,e)=>(n=n&&0===t,i=i&&t===e,!n&&!i)),n?function(t){if(1===t)return o;if(t<r.y9)return new Array(t).fill(0);if(t>f.length){const e=Math.max(2*f.length,t);f=new Uint8Array(e)}return new Uint8Array(f.buffer,0,t)}(t.length):i?l(t.length):(0,r.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const n of t){if(n>=65536)return(0,r.iu)(t)?t:new Uint32Array(t);n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function a(t){return t<=r.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let h=c(131072);const o=[0],u=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function l(t){return 1===t?o:t<r.y9?Array.from(new Uint16Array(u.buffer,0,t)):t<u.length?new Uint16Array(u.buffer,0,t):(t>h.length&&(h=c(Math.max(2*h.length,t))),new Uint32Array(h.buffer,0,t))}function c(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let f=new Uint8Array(65536)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4724],{10838:(a,e,t)=>{t.d(e,{ao:()=>h,ud:()=>u,xO:()=>T});var n=t(49186),r=t(36563),i=t(74887),o=t(73444);const d={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function s(a){if(function(a){return a in d}(a)){const e=d[a];return!0===e?a:e}return null}const m=[],l=new Map;function c(a){for(const e of l.keys())S(a.pattern,e)&&l.delete(e)}function h(a){return m.includes(a)||(c(a),m.unshift(a)),(0,r.hA)(()=>{const e=m.indexOf(a);e>-1&&(m.splice(e,1),c(a))})}async function u(a){const e=(0,o.JK)();l.has(a)||l.set(a,async function(a,e){const t=[];for(const n of m)if(S(n.pattern,a))try{return await n.fetchMessageBundle(a,e)}catch(a){t.push(a)}if(t.length)throw new n.A("intl:message-bundle-error",`Errors occurred while loading "${a}"`,{errors:t});throw new n.A("intl:no-message-bundle-loader",`No loader found for message bundle "${a}"`)}(a,e));const t=l.get(a);return t&&await A.add(t),t}function T(a){const e=(0,o.lR)(a);return e?s(a)??s(e):null}function S(a,e){return"string"==typeof a?e.startsWith(a):a.test(e)}(0,o.Ml)(()=>{l.clear()});const A=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(a){return this._increase(),a.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},56400:(a,e,t)=>{t.d(e,{ZS:()=>s,hv:()=>m,wr:()=>l,P6:()=>d});var n=t(98623);const r=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=t(28097);const o="shortOffset";function d(a,e=!1){return{json:{read:{source:a,reader:(e,t)=>t[a]?s(t[a]):null},write:!!e&&{allowNull:!0,writer(e,t){t[a]=e?function(a){return{timeZoneIANA:a}}(e):null}}}}}function s(a,e=n.qU){return a?"timeZoneIANA"in a?a.timeZoneIANA:function(a,e=n.qU){if(!a||!r.has(a.timeZone))return e;const t=r.get(a.timeZone);return a.timeZone.startsWith("UTC")||a.respectsDaylightSaving?t:function(a){const e=i.c9.local().setZone(a),t=Math.min(e.set({month:1,day:1}).offset,e.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${i.mQ.instance(-t).formatOffset(0,"narrow")}`}(t)}(a,e):e}function m(a,e,t,r,i){if(e&&"date"===i)return{timeZone:n.n$,timeZoneName:void 0};const d=r.hour,s=t===n.L5;return{timeZone:s?"timestamp-offset"===i?void 0:a??n.n$:t,timeZoneName:s&&d?o:void 0}}function l(a){const e=new Set(["etc/utc","etc/gmt","gmt"]),t=new Set(Intl.supportedValuesOf("timeZone").map(a=>a.toLowerCase()));return a===n.qU||a===n.L5||e.has(a.toLowerCase())||t.has(a.toLowerCase())}},65529:(a,e,t)=>{t.d(e,{Zt:()=>i,a$:()=>o,bk:()=>d,nJ:()=>s});var n=t(69622),r=t(36563);const i=a=>{const e=a;return class extends e{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(a,e){let t=this._listenersMap?.get(a);if(!t)return!1;let n=!1;for(const a of t.slice()){const t="deref"in a?a.deref():a;t?t?.call(this,e):n=!0}return n&&(t=t.filter(a=>!("deref"in a)||null!=a.deref()),this._listenersMap.set(a,t)),t.length>0}on(a,e){if(Array.isArray(a)){const t=a.map(a=>this.on(a,e));return(0,r.vE)(t)}if(a.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const t=this._listenersMap.get(a)||[];return t.push(e),this._listenersMap.set(a,t),(0,r.hA)(()=>{const t=this._listenersMap?.get(a),n=t?.indexOf(e)??-1;n>=0&&t.splice(n,1)})}once(a,e){const t=this.on(a,a=>{t.remove();const n="deref"in e?e.deref():e;n?.call(null,a)});return t}hasEventListener(a){const e=this._listenersMap?.get(a);return null!=e&&e.length>0}}},o=i(class{}),d=o,s=i(n.A)},73444:(a,e,t)=>{t.d(e,{JK:()=>s,Ml:()=>A,QC:()=>c,lR:()=>l,oQ:()=>T});var n=t(36563);let r;t(44208);const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,o=globalThis.document?.documentElement;function d(){const a=o?.getAttribute("lang"),e=globalThis.navigator?.language;return i??a??e??"en"}function s(){return void 0===r&&(r=d()),r}const m=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function l(a=s()){return h(a)?.language}function c(a=s()){const e=h(a);return e?.language&&e?.extlang?a.replace(`${e.language}-`,""):a}function h(a=s()){return m.exec(a)?.groups}const u=[];function T(a){return u.push(a),(0,n.hA)(()=>{u.splice(u.indexOf(a),1)})}new Map;const S=[];function A(a){return S.push(a),(0,n.hA)(()=>S.splice(S.indexOf(a),1))}function g(){const a=d();r!==a&&([...S].forEach(e=>e(a)),r=a,[...u].forEach(e=>e(a)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},97770:(a,e,t)=>{t.d(e,{Ey:()=>P,F8:()=>G,J2:()=>b,Yq:()=>L,_m:()=>_,_v:()=>M,iS:()=>U,wj:()=>D});var n=t(66552),r=t(73444),i=t(98623),o=(t(56400),t(28097));const d={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},s={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},m={timeZone:i.n$},l={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},h={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},T={hour:"numeric",minute:"numeric"},S={...T,second:"numeric"},A={hourCycle:"h23"},g={...T,...A},f={...S,...A},y={"short-date":l,"short-date-short-time":{...l,...T},"short-date-short-time-24":{...l,...g},"short-date-long-time":{...l,...S},"short-date-long-time-24":{...l,...f},"short-date-le":l,"short-date-le-short-time":{...l,...T},"short-date-le-short-time-24":{...l,...g},"short-date-le-long-time":{...l,...S},"short-date-le-long-time-24":{...l,...f},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...T},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...S},"long-month-day-year-long-time-24":{...c,...f},"day-short-month-year":h,"day-short-month-year-short-time":{...h,...T},"day-short-month-year-short-time-24":{...h,...g},"day-short-month-year-long-time":{...h,...S},"day-short-month-year-long-time-24":{...h,...f},"long-date":u,"long-date-short-time":{...u,...T},"long-date-short-time-24":{...u,...g},"long-date-long-time":{...u,...S},"long-date-long-time-24":{...u,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":T,"long-time":S},M=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),E={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},p=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),C=p.find(({type:a})=>"month"===a)?.value.toLowerCase();function k(){const a=(0,r.lR)();return(a&&E[a])??(0,r.QC)()}"mart"!==C&&(E.bs="sr-Latn-CS");let v=new WeakMap;const w=y["short-date-short-time"];function b(a){return y[a]}function _(a){const{dateStyle:e,timeStyle:t,hour12:n,year:r,month:i}=a,o={};return e?o.dateStyle=e:r&&(o.year=r,o.month=i||void 0),t&&!o.year&&(o.timeStyle=t,o.hour12="auto"===n?void 0:"always"===n),o}function L(a,e=w){return function(a){let e=v.get(a);if(!e){const t=k(),n=D(a.timeZone??i.qU),r={...a,timeZone:n};e=new Intl.DateTimeFormat(t,r),v.set(a,e)}return e}(e).format(a)}function U(a,e=w){return L(new Date(a),{...e,...m,...s})}function G(a,e=w){return L(new Date(`1970-01-01T${a}Z`),{...e,...m,...d})}function P(a,e=w){if(e.timeZone)return L(new Date(a),e);const t=o.c9.fromISO(a,{setZone:!0}),n=0===t.offset?i.n$:e.timeZone,r={...e,timeZone:n};return t.toLocaleString(r,{locale:k()})}function D(a){switch(a){case i.qU:return i.N5;case i.L5:return i.n$;default:return a}}y["short-date"],(0,r.Ml)(()=>{v=new WeakMap})},98623:(a,e,t)=>{t.d(e,{L5:()=>r,N5:()=>o,n$:()=>i,qU:()=>n});const n="system",r="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4724],{10838:(a,e,t)=>{t.d(e,{ao:()=>h,ud:()=>u,xO:()=>T});var n=t(49186),r=t(36563),i=t(74887),o=t(73444);const d={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function s(a){if(function(a){return a in d}(a)){const e=d[a];return!0===e?a:e}return null}const m=[],c=new Map;function l(a){for(const e of c.keys())S(a.pattern,e)&&c.delete(e)}function h(a){return m.includes(a)||(l(a),m.unshift(a)),(0,r.hA)(()=>{const e=m.indexOf(a);e>-1&&(m.splice(e,1),l(a))})}async function u(a){const e=(0,o.JK)();c.has(a)||c.set(a,async function(a,e){const t=[];for(const n of m)if(S(n.pattern,a))try{return await n.fetchMessageBundle(a,e)}catch(a){t.push(a)}if(t.length)throw new n.A("intl:message-bundle-error",`Errors occurred while loading "${a}"`,{errors:t});throw new n.A("intl:no-message-bundle-loader",`No loader found for message bundle "${a}"`)}(a,e));const t=c.get(a);return t&&await A.add(t),t}function T(a){const e=(0,o.lR)(a);return e?s(a)??s(e):null}function S(a,e){return"string"==typeof a?e.startsWith(a):a.test(e)}(0,o.Ml)(()=>{c.clear()});const A=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(a){return this._increase(),a.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},56400:(a,e,t)=>{t.d(e,{ZS:()=>s,hv:()=>m,wr:()=>c,P6:()=>d});var n=t(98623);const r=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=t(28097);const o="shortOffset";function d(a,e=!1){return{json:{read:{source:a,reader:(e,t)=>t[a]?s(t[a]):null},write:!!e&&{allowNull:!0,writer(e,t){t[a]=e?function(a){return{timeZoneIANA:a}}(e):null}}}}}function s(a,e=n.qU){return a?"timeZoneIANA"in a?a.timeZoneIANA:function(a,e=n.qU){if(!a||!r.has(a.timeZone))return e;const t=r.get(a.timeZone);return a.timeZone.startsWith("UTC")||a.respectsDaylightSaving?t:function(a){const e=i.c9.local().setZone(a),t=Math.min(e.set({month:1,day:1}).offset,e.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${i.mQ.instance(-t).formatOffset(0,"narrow")}`}(t)}(a,e):e}function m(a,e,t,r,i){if(e&&"date"===i)return{timeZone:n.n$,timeZoneName:void 0};const d=r.hour,s=t===n.L5;return{timeZone:s?"timestamp-offset"===i?void 0:a??n.n$:t,timeZoneName:s&&d?o:void 0}}function c(a){const e=new Set(["etc/utc","etc/gmt","gmt"]),t=new Set(Intl.supportedValuesOf("timeZone").map(a=>a.toLowerCase()));return a===n.qU||a===n.L5||e.has(a.toLowerCase())||t.has(a.toLowerCase())}},65529:(a,e,t)=>{t.d(e,{Zt:()=>i,a$:()=>o,bk:()=>d,nJ:()=>s});var n=t(69622),r=t(36563);const i=a=>{const e=a;return class extends e{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(a,e){let t=this._listenersMap?.get(a);if(!t)return!1;let n=!1;for(const a of t.slice()){const t="deref"in a?a.deref():a;t?t?.call(this,e):n=!0}return n&&(t=t.filter(a=>!("deref"in a)||null!=a.deref()),this._listenersMap.set(a,t)),t.length>0}on(a,e){if(Array.isArray(a)){const t=a.map(a=>this.on(a,e));return(0,r.vE)(t)}if(a.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const t=this._listenersMap.get(a)||[];return t.push(e),this._listenersMap.set(a,t),(0,r.hA)(()=>{const t=this._listenersMap?.get(a),n=t?.indexOf(e)??-1;n>=0&&t.splice(n,1)})}once(a,e){const t=this.on(a,a=>{t.remove();const n="deref"in e?e.deref():e;n?.call(null,a)});return t}hasEventListener(a){const e=this._listenersMap?.get(a);return null!=e&&e.length>0}}},o=i(class{}),d=o,s=i(n.A)},73444:(a,e,t)=>{t.d(e,{JK:()=>s,Ml:()=>A,QC:()=>l,lR:()=>c,oQ:()=>T});var n=t(36563);let r;t(44208);const i=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function d(){const a=o?.getAttribute("lang"),e=globalThis.navigator?.language;return i??a??e??"en"}function s(){return void 0===r&&(r=d()),r}const m=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(a=s()){return h(a)?.language}function l(a=s()){const e=h(a);return e?.language&&e?.extlang?a.replace(`${e.language}-`,""):a}function h(a=s()){return m.exec(a)?.groups}const u=[];function T(a){return u.push(a),(0,n.hA)(()=>{u.splice(u.indexOf(a),1)})}new Map;const S=[];function A(a){return S.push(a),(0,n.hA)(()=>S.splice(S.indexOf(a),1))}function g(){const a=d();r!==a&&([...S].forEach(e=>e(a)),r=a,[...u].forEach(e=>e(a)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},97770:(a,e,t)=>{t.d(e,{Ey:()=>P,F8:()=>G,J2:()=>b,Yq:()=>L,_m:()=>_,_v:()=>M,iS:()=>U,wj:()=>D});var n=t(66552),r=t(73444),i=t(98623),o=(t(56400),t(28097));const d={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},s={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},m={timeZone:i.n$},c={year:"numeric",month:"numeric",day:"numeric"},l={year:"numeric",month:"long",day:"numeric"},h={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},T={hour:"numeric",minute:"numeric"},S={...T,second:"numeric"},A={hourCycle:"h23"},g={...T,...A},f={...S,...A},y={"short-date":c,"short-date-short-time":{...c,...T},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...S},"short-date-long-time-24":{...c,...f},"short-date-le":c,"short-date-le-short-time":{...c,...T},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...S},"short-date-le-long-time-24":{...c,...f},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...T},"long-month-day-year-short-time-24":{...l,...g},"long-month-day-year-long-time":{...l,...S},"long-month-day-year-long-time-24":{...l,...f},"day-short-month-year":h,"day-short-month-year-short-time":{...h,...T},"day-short-month-year-short-time-24":{...h,...g},"day-short-month-year-long-time":{...h,...S},"day-short-month-year-long-time-24":{...h,...f},"long-date":u,"long-date-short-time":{...u,...T},"long-date-short-time-24":{...u,...g},"long-date-long-time":{...u,...S},"long-date-long-time-24":{...u,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":T,"long-time":S},M=(0,n.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),E={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},p=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),C=p.find(({type:a})=>"month"===a)?.value.toLowerCase();function k(){const a=(0,r.lR)();return(a&&E[a])??(0,r.QC)()}"mart"!==C&&(E.bs="sr-Latn-CS");let v=new WeakMap;const w=y["short-date-short-time"];function b(a){return y[a]}function _(a){const{dateStyle:e,timeStyle:t,hour12:n,year:r,month:i}=a,o={};return e?o.dateStyle=e:r&&(o.year=r,o.month=i||void 0),t&&!o.year&&(o.timeStyle=t,o.hour12="auto"===n?void 0:"always"===n),o}function L(a,e=w){return function(a){let e=v.get(a);if(!e){const t=k(),n=D(a.timeZone??i.qU),r={...a,timeZone:n};e=new Intl.DateTimeFormat(t,r),v.set(a,e)}return e}(e).format(a)}function U(a,e=w){return L(new Date(a),{...e,...m,...s})}function G(a,e=w){return L(new Date(`1970-01-01T${a}Z`),{...e,...m,...d})}function P(a,e=w){if(e.timeZone)return L(new Date(a),e);const t=o.c9.fromISO(a,{setZone:!0}),n=0===t.offset?i.n$:e.timeZone,r={...e,timeZone:n};return t.toLocaleString(r,{locale:k()})}function D(a){switch(a){case i.qU:return i.N5;case i.L5:return i.n$;default:return a}}y["short-date"],(0,r.Ml)(()=>{v=new WeakMap})},98623:(a,e,t)=>{t.d(e,{L5:()=>r,N5:()=>o,n$:()=>i,qU:()=>n});const n="system",r="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6052],{11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}},96052:(r,e,t)=>{t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,a="./this.program",o="";try{o=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,u,s,f,l,c,p,v,d,h,g,y,m,w,T=console.log.bind(console),b=console.error.bind(console),A=!1,C=!1;function P(){var r=f.buffer;l=new Int8Array(r),p=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),v=new Uint16Array(r),d=new Int32Array(r),n.HEAPU32=h=new Uint32Array(r),g=new Float32Array(r),n.HEAPF64=y=new Float64Array(r),m=new BigInt64Array(r),w=new BigUint64Array(r)}var W,E=0,F=null;function _(r){n.onAbort?.(r),b(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw s?.(e),e}async function R(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==W&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}var x=r=>{for(;r.length>0;)r.shift()(n)},k=[],$=r=>k.push(r),S=[],I=r=>S.push(r);class O{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){h[this.ptr+4>>2]=r}get_type(){return h[this.ptr+4>>2]}set_destructor(r){h[this.ptr+8>>2]=r}get_destructor(){return h[this.ptr+8>>2]}set_caught(r){r=r?1:0,l[this.ptr+12]=r}get_caught(){return 0!=l[this.ptr+12]}set_rethrown(r){r=r?1:0,l[this.ptr+13]=r}get_rethrown(){return 0!=l[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){h[this.ptr+16>>2]=r}get_adjusted_ptr(){return h[this.ptr+16>>2]}}var U={},D=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function M(r){return this.fromWireType(h[r>>2])}var B={},V={},j={},N=class extends Error{constructor(r){super(r),this.name="InternalError"}},L=r=>{throw new N(r)},H=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&L("Mismatched type converter count");for(var a=0;a<r.length;++a)J(r[a],n[a])}r.forEach(r=>j[r]=e);var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{V.hasOwnProperty(r)?a[e]=V[r]:(o.push(r),B.hasOwnProperty(r)||(B[r]=[]),B[r].push(()=>{a[e]=V[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},z={},G=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Y=class extends Error{constructor(r){super(r),this.name="BindingError"}},q=r=>{throw new Y(r)};function J(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||q(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;q(`Cannot register type '${n}' twice`)}if(V[r]=e,delete j[r],B.hasOwnProperty(r)){var a=B[r];delete B[r],a.forEach(r=>r())}}(r,e,t)}var K=(r,e,t)=>{switch(e){case 1:return t?r=>l[r]:r=>c[r];case 2:return t?r=>p[r>>1]:r=>v[r>>1];case 4:return t?r=>d[r>>2]:r=>h[r>>2];case 8:return t?r=>m[r>>3]:r=>w[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Q=[],X=[0,1,,1,null,1,!0,1,!1,1],Z=r=>{r>9&&0===--X[r+1]&&(X[r]=void 0,Q.push(r))},rr=r=>(r||q(`Cannot use deleted val. handle = ${r}`),X[r]),er=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Q.pop()||X.length;return X[e]=r,X[e+1]=1,e}}},tr={name:"emscripten::val",fromWireType:r=>{var e=rr(r);return Z(r),e},toWireType:(r,e)=>er(e),argPackAdvance:8,readValueFromPointer:M,destructorFunction:null},nr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(y[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}};var ar,or=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||q(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ir=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&q(`Cannot register public name '${r}' twice`),or(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},ur=(r,e,t)=>{n.hasOwnProperty(r)||L("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},sr=[],fr=r=>{var e=sr[r];return e||(sr[r]=e=ar.get(r)),e},lr=(r,e,t=!1)=>{r=G(r);var n=fr(e);return"function"!=typeof n&&q(`unknown function pointer with signature ${r}: ${e}`),n};class cr extends Error{}var pr,vr,dr,hr,gr=r=>{var e=vr(r),t=G(e);return hr(e),t},yr=(r,e,t)=>((r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.codePointAt(i);if(u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u,i++}}return e[t]=0,t-a})(r,c,e,t),mr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},wr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Tr=(r,e=0,t=NaN)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&wr)return wr.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var f=i-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},br=(r,e)=>r?Tr(c,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Cr=(r,e)=>{for(var t=r>>1,n=t+e/2,a=t;!(a>=n)&&v[a];)++a;if(a-t>16&&Ar)return Ar.decode(v.subarray(t,a));for(var o="",i=t;!(i>=n);++i){var u=v[i];if(0==u)break;o+=String.fromCharCode(u)}return o},Pr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},Wr=r=>2*r.length,Er=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var a=d[r+4*n>>2];if(!a)break;t+=String.fromCodePoint(a)}return t},Fr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.codePointAt(o);if(i>65535&&o++,d[e>>2]=i,(e+=4)+4>a)break}return d[e>>2]=0,e-n},_r=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},Rr={},xr=(r,e)=>Math.ceil(r/e)*e,kr=r=>{var e=(r-f.buffer.byteLength+65535)/65536|0;try{return f.grow(e),P(),1}catch(r){}},$r={},Sr=()=>{if(!Sr.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:a||"./this.program"};for(var e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Sr.strings=t}return Sr.strings},Ir=[null,[],[]],Or=(r,e)=>{var t=Ir[r];0===e||10===e?((1===r?T:b)(Tr(t)),t.length=0):t.push(e)},Ur=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},Dr=[],Mr=(r,e)=>{ar.set(r,e),sr[r]=ar.get(r)};n.noExitRuntime&&n.noExitRuntime,n.print&&(T=n.print),n.printErr&&(b=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(a=n.thisProgram),n.addFunction=(r,e)=>{var t=(r=>(pr||(pr=new WeakMap,((r,e)=>{if(pr)for(var t=0;t<0+e;t++){var n=fr(t);n&&pr.set(n,t)}})(0,ar.length)),pr.get(r)||0))(r);if(t)return t;var n=(()=>{if(Dr.length)return Dr.pop();try{ar.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return ar.length-1})();try{Mr(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var a=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};for(var o of(e.push(96),Ur(n.length,e),n))e.push(a[o]);"v"==t?e.push(0):e.push(1,a[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];Ur(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:r}}).exports.f})(r,e);Mr(n,a)}return pr.set(r,n),n},n.UTF8ToString=br;var Br={b:(r,e,t)=>{throw new O(r).init(e,t),r},y:()=>_(""),l:r=>{var e=U[r];delete U[r];var t=e.elements,n=t.length,a=t.map(r=>r.getterReturnType).concat(t.map(r=>r.setterArgumentType)),o=e.rawConstructor,i=e.rawDestructor;H([r],a,r=>(t.forEach((e,t)=>{var a=r[t],o=e.getter,i=e.getterContext,u=r[t+n],s=e.setter,f=e.setterContext;e.read=r=>a.fromWireType(o(i,r)),e.write=(r,e)=>{var t=[];s(f,r,u.toWireType(t,e)),D(t)}}),[{name:e.name,fromWireType:r=>{for(var e=new Array(n),a=0;a<n;++a)e[a]=t[a].read(r);return i(r),e},toWireType:(r,a)=>{if(n!==a.length)throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${a.length}`);for(var u=o(),s=0;s<n;++s)t[s].write(u,a[s]);return null!==r&&r.push(i,u),u},argPackAdvance:8,readValueFromPointer:M,destructorFunction:i}]))},o:r=>{var e=z[r];delete z[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));H([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=r[t].optional,s=e.getter,f=e.getterContext,l=r[t+a.length],c=e.setter,p=e.setterContext;o[n]={read:r=>i.fromWireType(s(f,r)),write:(r,e)=>{var t=[];c(p,r,l.toWireType(t,e)),D(t)},optional:u}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:M,destructorFunction:n}]})},t:(r,e,t,n,a)=>{e=G(e);const o=0n===n;let i=r=>r;if(o){const r=8*t;i=e=>BigInt.asUintN(r,e),a=i(a)}J(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:K(e,t,!o),destructorFunction:null})},D:(r,e,t,n)=>{J(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},B:r=>J(r,tr),s:(r,e,t)=>{J(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:nr(e,t),destructorFunction:null})},c:(r,e,t,n,a,o,i,u)=>{var s=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(h[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=G(r)),a=lr(n,a,i),ir(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||V[e]||(j[e]?j[e].forEach(r):(t.push(e),n[e]=!0))}),new cr(`${r}: `+t.map(gr).join([", "]))})(`Cannot call ${r} due to unbound types`,s)},e-1),H([],s,t=>{var n=[t[0],null].concat(t.slice(1));return ur(r,function(r,e,t,n,a){var o=e.length;o<2&&q("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,f=new Array(s),l=[],c=[];return((r,e)=>Object.defineProperty(e,"name",{value:r}))(r,function(...r){c.length=0,l.length=1,l[0]=a;for(var t=0;t<s;++t)f[t]=e[t+2].toWireType(c,r[t]),l.push(f[t]);return function(r){if(i)D(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:f[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...l))})}(r,n,0,a,o),e-1),[]})},j:(r,e,t,n,a)=>{e=G(e);let o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i,a=o(a)}J(r,{name:e,fromWireType:o,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:K(e,t,0!==n),destructorFunction:null})},d:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function a(r){var e=h[r>>2],t=h[r+4>>2];return new n(l.buffer,t,e)}J(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},C:(r,e)=>{J(r,{name:e=G(e),fromWireType(r){for(var e,t=h[r>>2],n=r+4,a=n,o=0;o<=t;++o){var i=n+o;if(o==t||0==c[i]){var u=br(a,i-a);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),a=i+1}}return hr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||q("Cannot pass non-string to std::string"),t=n?mr(e):e.length;var a=dr(4+t+1),o=a+4;return h[a>>2]=t,n?yr(e,o,t+1):c.set(e,o),null!==r&&r.push(hr,a),a},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){hr(r)}})},n:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Cr,a=Pr,i=Wr,o=r=>v[r>>1]):4===e&&(n=Er,a=Fr,i=_r,o=r=>h[r>>2]),J(r,{name:t,fromWireType:r=>{for(var t,a=h[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var f=n(i,s-i);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),i=s+e}}return hr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&q(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=dr(4+o+e);return h[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(hr,u),u},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){hr(r)}})},m:(r,e,t,n,a,o)=>{U[r]={name:G(e),rawConstructor:lr(t,n),rawDestructor:lr(a,o),elements:[]}},f:(r,e,t,n,a,o,i,u,s)=>{U[r].elements.push({getterReturnType:e,getter:lr(t,n),getterContext:a,setterArgumentType:o,setter:lr(i,u),setterContext:s})},p:(r,e,t,n,a,o)=>{z[r]={name:G(e),rawConstructor:lr(t,n),rawDestructor:lr(a,o),fields:[]}},e:(r,e,t,n,a,o,i,u,s,f)=>{z[r].fields.push({fieldName:G(e),getterReturnType:t,getter:lr(n,a),getterContext:o,setterArgumentType:i,setter:lr(u,s),setterContext:f})},u:(r,e)=>{J(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},a:Z,r:r=>{r>9&&(X[r+1]+=1)},A:()=>er([]),i:r=>er((r=>{var e=Rr[r];return void 0===e?G(r):e})(r)),k:()=>er({}),g:(r,e,t)=>{r=rr(r),e=rr(e),t=rr(t),r[e]=t},h:(r,e)=>{var t=(r=(r=>{var e=V[r];return void 0===e&&q(`_emval_take_value has unknown type ${gr(r)}`),e})(r)).readValueFromPointer(e);return er(t)},v:(r,e,t,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),u=o.getTimezoneOffset(),s=i.getTimezoneOffset(),f=Math.max(u,s);h[r>>2]=60*f,d[e>>2]=Number(u!=s);var l=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=l(u),p=l(s);s<u?(yr(c,t,17),yr(p,n,17)):(yr(c,n,17),yr(p,t,17))},z:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var o=Math.min(t,xr(Math.max(r,a),65536));if(kr(o))return!0}return!1},w:(r,e)=>{var t=0,n=0;for(var a of Sr()){var o=e+t;h[r+n>>2]=o,t+=yr(a,o,1/0)+1,n+=4}return 0},x:(r,e)=>{var t=Sr();h[r>>2]=t.length;var n=0;for(var a of t)n+=mr(a)+1;return h[e>>2]=n,0},q:(r,e,t,n)=>{for(var a=0,o=0;o<t;o++){var i=h[e>>2],u=h[e+4>>2];e+=8;for(var s=0;s<u;s++)Or(r,c[i+s]);a+=u}return h[n>>2]=a,0}},Vr=await async function(){function r(r,e){return Vr=r.exports,f=Vr.E,P(),ar=Vr.H,function(r){vr=r.G,n._malloc=dr=r.I,n._free=hr=r.J}(Vr),function(){if(E--,n.monitorRunDependencies?.(E),0==E&&F){var r=F;F=null,r()}}(),Vr}E++,n.monitorRunDependencies?.(E);var e={a:Br};return n.instantiateWasm?new Promise((t,a)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(W??=function(r){return n.locateFile?n.locateFile(r,o):o+r}("lyr3DMain.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){b(`wasm streaming compile failed: ${r}`),b("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await R(r);return await WebAssembly.instantiate(t,e)}catch(r){b(`failed to asynchronously prepare wasm: ${r}`),_(r)}}(e,t)}(i,W,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,A||(C=!0,Vr.F(),u?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)$(n.postRun.shift());x(k)}())}E>0?F=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)I(n.preRun.shift());x(S)}(),E>0?F=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),C?n:new Promise((r,e)=>{u=r,s=e})},r.exports=t,r.exports.default=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6052],{11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}},96052:(r,e,t)=>{t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,a="./this.program",o="";try{o=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,u,s,f,l,c,p,v,d,h,g,y,m,w,T=console.log.bind(console),b=console.error.bind(console),A=!1,C=!1;function P(){var r=f.buffer;l=new Int8Array(r),p=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),v=new Uint16Array(r),d=new Int32Array(r),n.HEAPU32=h=new Uint32Array(r),g=new Float32Array(r),n.HEAPF64=y=new Float64Array(r),m=new BigInt64Array(r),w=new BigUint64Array(r)}var W,E=0,F=null;function _(r){n.onAbort?.(r),b(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw s?.(e),e}async function R(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==W&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}var x=r=>{for(;r.length>0;)r.shift()(n)},k=[],$=r=>k.push(r),S=[],I=r=>S.push(r);class O{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){h[this.ptr+4>>2]=r}get_type(){return h[this.ptr+4>>2]}set_destructor(r){h[this.ptr+8>>2]=r}get_destructor(){return h[this.ptr+8>>2]}set_caught(r){r=r?1:0,l[this.ptr+12]=r}get_caught(){return 0!=l[this.ptr+12]}set_rethrown(r){r=r?1:0,l[this.ptr+13]=r}get_rethrown(){return 0!=l[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){h[this.ptr+16>>2]=r}get_adjusted_ptr(){return h[this.ptr+16>>2]}}var U={},D=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function M(r){return this.fromWireType(h[r>>2])}var B={},V={},j={},N=class extends Error{constructor(r){super(r),this.name="InternalError"}},L=r=>{throw new N(r)},H=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&L("Mismatched type converter count");for(var a=0;a<r.length;++a)J(r[a],n[a])}r.forEach(r=>j[r]=e);var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{V.hasOwnProperty(r)?a[e]=V[r]:(o.push(r),B.hasOwnProperty(r)||(B[r]=[]),B[r].push(()=>{a[e]=V[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},z={},G=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Y=class extends Error{constructor(r){super(r),this.name="BindingError"}},q=r=>{throw new Y(r)};function J(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||q(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;q(`Cannot register type '${n}' twice`)}if(V[r]=e,delete j[r],B.hasOwnProperty(r)){var a=B[r];delete B[r],a.forEach(r=>r())}}(r,e,t)}var K=(r,e,t)=>{switch(e){case 1:return t?r=>l[r]:r=>c[r];case 2:return t?r=>p[r>>1]:r=>v[r>>1];case 4:return t?r=>d[r>>2]:r=>h[r>>2];case 8:return t?r=>m[r>>3]:r=>w[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Q=[],X=[0,1,,1,null,1,!0,1,!1,1],Z=r=>{r>9&&0===--X[r+1]&&(X[r]=void 0,Q.push(r))},rr=r=>(r||q(`Cannot use deleted val. handle = ${r}`),X[r]),er=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Q.pop()||X.length;return X[e]=r,X[e+1]=1,e}}},tr={name:"emscripten::val",fromWireType:r=>{var e=rr(r);return Z(r),e},toWireType:(r,e)=>er(e),argPackAdvance:8,readValueFromPointer:M,destructorFunction:null},nr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(y[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}};var ar,or=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||q(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ir=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&q(`Cannot register public name '${r}' twice`),or(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},ur=(r,e,t)=>{n.hasOwnProperty(r)||L("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},sr=[],fr=r=>{var e=sr[r];return e||(sr[r]=e=ar.get(r)),e},lr=(r,e,t=!1)=>{r=G(r);var n=fr(e);return"function"!=typeof n&&q(`unknown function pointer with signature ${r}: ${e}`),n};class cr extends Error{}var pr,vr,dr,hr,gr=r=>{var e=vr(r),t=G(e);return hr(e),t},yr=(r,e,t)=>((r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.codePointAt(i);if(u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u,i++}}return e[t]=0,t-a})(r,c,e,t),mr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},wr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Tr=(r,e=0,t=NaN)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&wr)return wr.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var f=i-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},br=(r,e)=>r?Tr(c,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Cr=(r,e)=>{for(var t=r>>1,n=t+e/2,a=t;!(a>=n)&&v[a];)++a;if(a-t>16&&Ar)return Ar.decode(v.subarray(t,a));for(var o="",i=t;!(i>=n);++i){var u=v[i];if(0==u)break;o+=String.fromCharCode(u)}return o},Pr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},Wr=r=>2*r.length,Er=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var a=d[r+4*n>>2];if(!a)break;t+=String.fromCodePoint(a)}return t},Fr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.codePointAt(o);if(i>65535&&o++,d[e>>2]=i,(e+=4)+4>a)break}return d[e>>2]=0,e-n},_r=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},Rr={},xr=(r,e)=>Math.ceil(r/e)*e,kr=r=>{var e=(r-f.buffer.byteLength+65535)/65536|0;try{return f.grow(e),P(),1}catch(r){}},$r={},Sr=()=>{if(!Sr.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:a||"./this.program"};for(var e in $r)void 0===$r[e]?delete r[e]:r[e]=$r[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Sr.strings=t}return Sr.strings},Ir=[null,[],[]],Or=(r,e)=>{var t=Ir[r];0===e||10===e?((1===r?T:b)(Tr(t)),t.length=0):t.push(e)},Ur=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},Dr=[],Mr=(r,e)=>{ar.set(r,e),sr[r]=ar.get(r)};n.noExitRuntime&&n.noExitRuntime,n.print&&(T=n.print),n.printErr&&(b=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(a=n.thisProgram),n.addFunction=(r,e)=>{var t=(r=>(pr||(pr=new WeakMap,((r,e)=>{if(pr)for(var t=0;t<0+e;t++){var n=fr(t);n&&pr.set(n,t)}})(0,ar.length)),pr.get(r)||0))(r);if(t)return t;var n=(()=>{if(Dr.length)return Dr.pop();try{ar.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return ar.length-1})();try{Mr(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var a=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};for(var o of(e.push(96),Ur(n.length,e),n))e.push(a[o]);"v"==t?e.push(0):e.push(1,a[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];Ur(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:r}}).exports.f})(r,e);Mr(n,a)}return pr.set(r,n),n},n.UTF8ToString=br;var Br={c:(r,e,t)=>{throw new O(r).init(e,t),r},y:()=>_(""),l:r=>{var e=U[r];delete U[r];var t=e.elements,n=t.length,a=t.map(r=>r.getterReturnType).concat(t.map(r=>r.setterArgumentType)),o=e.rawConstructor,i=e.rawDestructor;H([r],a,r=>(t.forEach((e,t)=>{var a=r[t],o=e.getter,i=e.getterContext,u=r[t+n],s=e.setter,f=e.setterContext;e.read=r=>a.fromWireType(o(i,r)),e.write=(r,e)=>{var t=[];s(f,r,u.toWireType(t,e)),D(t)}}),[{name:e.name,fromWireType:r=>{for(var e=new Array(n),a=0;a<n;++a)e[a]=t[a].read(r);return i(r),e},toWireType:(r,a)=>{if(n!==a.length)throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${a.length}`);for(var u=o(),s=0;s<n;++s)t[s].write(u,a[s]);return null!==r&&r.push(i,u),u},argPackAdvance:8,readValueFromPointer:M,destructorFunction:i}]))},o:r=>{var e=z[r];delete z[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));H([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=r[t].optional,s=e.getter,f=e.getterContext,l=r[t+a.length],c=e.setter,p=e.setterContext;o[n]={read:r=>i.fromWireType(s(f,r)),write:(r,e)=>{var t=[];c(p,r,l.toWireType(t,e)),D(t)},optional:u}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:M,destructorFunction:n}]})},t:(r,e,t,n,a)=>{e=G(e);const o=0n===n;let i=r=>r;if(o){const r=8*t;i=e=>BigInt.asUintN(r,e),a=i(a)}J(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:K(e,t,!o),destructorFunction:null})},D:(r,e,t,n)=>{J(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},B:r=>J(r,tr),s:(r,e,t)=>{J(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:nr(e,t),destructorFunction:null})},b:(r,e,t,n,a,o,i,u)=>{var s=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(h[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=G(r)),a=lr(n,a,i),ir(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||V[e]||(j[e]?j[e].forEach(r):(t.push(e),n[e]=!0))}),new cr(`${r}: `+t.map(gr).join([", "]))})(`Cannot call ${r} due to unbound types`,s)},e-1),H([],s,t=>{var n=[t[0],null].concat(t.slice(1));return ur(r,function(r,e,t,n,a){var o=e.length;o<2&&q("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,f=new Array(s),l=[],c=[];return((r,e)=>Object.defineProperty(e,"name",{value:r}))(r,function(...r){c.length=0,l.length=1,l[0]=a;for(var t=0;t<s;++t)f[t]=e[t+2].toWireType(c,r[t]),l.push(f[t]);return function(r){if(i)D(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:f[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...l))})}(r,n,0,a,o),e-1),[]})},j:(r,e,t,n,a)=>{e=G(e);let o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i,a=o(a)}J(r,{name:e,fromWireType:o,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:K(e,t,0!==n),destructorFunction:null})},d:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function a(r){var e=h[r>>2],t=h[r+4>>2];return new n(l.buffer,t,e)}J(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},C:(r,e)=>{J(r,{name:e=G(e),fromWireType(r){for(var e,t=h[r>>2],n=r+4,a=n,o=0;o<=t;++o){var i=n+o;if(o==t||0==c[i]){var u=br(a,i-a);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),a=i+1}}return hr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||q("Cannot pass non-string to std::string"),t=n?mr(e):e.length;var a=dr(4+t+1),o=a+4;return h[a>>2]=t,n?yr(e,o,t+1):c.set(e,o),null!==r&&r.push(hr,a),a},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){hr(r)}})},n:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Cr,a=Pr,i=Wr,o=r=>v[r>>1]):4===e&&(n=Er,a=Fr,i=_r,o=r=>h[r>>2]),J(r,{name:t,fromWireType:r=>{for(var t,a=h[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var f=n(i,s-i);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),i=s+e}}return hr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&q(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=dr(4+o+e);return h[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(hr,u),u},argPackAdvance:8,readValueFromPointer:M,destructorFunction(r){hr(r)}})},m:(r,e,t,n,a,o)=>{U[r]={name:G(e),rawConstructor:lr(t,n),rawDestructor:lr(a,o),elements:[]}},f:(r,e,t,n,a,o,i,u,s)=>{U[r].elements.push({getterReturnType:e,getter:lr(t,n),getterContext:a,setterArgumentType:o,setter:lr(i,u),setterContext:s})},p:(r,e,t,n,a,o)=>{z[r]={name:G(e),rawConstructor:lr(t,n),rawDestructor:lr(a,o),fields:[]}},e:(r,e,t,n,a,o,i,u,s,f)=>{z[r].fields.push({fieldName:G(e),getterReturnType:t,getter:lr(n,a),getterContext:o,setterArgumentType:i,setter:lr(u,s),setterContext:f})},u:(r,e)=>{J(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},a:Z,r:r=>{r>9&&(X[r+1]+=1)},A:()=>er([]),i:r=>er((r=>{var e=Rr[r];return void 0===e?G(r):e})(r)),k:()=>er({}),g:(r,e,t)=>{r=rr(r),e=rr(e),t=rr(t),r[e]=t},h:(r,e)=>{var t=(r=(r=>{var e=V[r];return void 0===e&&q(`_emval_take_value has unknown type ${gr(r)}`),e})(r)).readValueFromPointer(e);return er(t)},v:(r,e,t,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),u=o.getTimezoneOffset(),s=i.getTimezoneOffset(),f=Math.max(u,s);h[r>>2]=60*f,d[e>>2]=Number(u!=s);var l=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=l(u),p=l(s);s<u?(yr(c,t,17),yr(p,n,17)):(yr(c,n,17),yr(p,t,17))},z:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var o=Math.min(t,xr(Math.max(r,a),65536));if(kr(o))return!0}return!1},w:(r,e)=>{var t=0,n=0;for(var a of Sr()){var o=e+t;h[r+n>>2]=o,t+=yr(a,o,1/0)+1,n+=4}return 0},x:(r,e)=>{var t=Sr();h[r>>2]=t.length;var n=0;for(var a of t)n+=mr(a)+1;return h[e>>2]=n,0},q:(r,e,t,n)=>{for(var a=0,o=0;o<t;o++){var i=h[e>>2],u=h[e+4>>2];e+=8;for(var s=0;s<u;s++)Or(r,c[i+s]);a+=u}return h[n>>2]=a,0}},Vr=await async function(){function r(r,e){return Vr=r.exports,f=Vr.E,P(),ar=Vr.H,function(r){vr=r.G,n._malloc=dr=r.I,n._free=hr=r.J}(Vr),function(){if(E--,n.monitorRunDependencies?.(E),0==E&&F){var r=F;F=null,r()}}(),Vr}E++,n.monitorRunDependencies?.(E);var e={a:Br};return n.instantiateWasm?new Promise((t,a)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(W??=function(r){return n.locateFile?n.locateFile(r,o):o+r}("lyr3DMain.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){b(`wasm streaming compile failed: ${r}`),b("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await R(r);return await WebAssembly.instantiate(t,e)}catch(r){b(`failed to asynchronously prepare wasm: ${r}`),_(r)}}(e,t)}(i,W,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,A||(C=!0,Vr.F(),u?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)$(n.postRun.shift());x(k)}())}E>0?F=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)I(n.preRun.shift());x(S)}(),E>0?F=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),C?n:new Promise((r,e)=>{u=r,s=e})},r.exports=t,r.exports.default=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
|