@arcgis/core 5.0.0-next.35 → 5.0.0-next.36
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/06462b267ff8d5984882.js +1 -0
- package/assets/esri/core/workers/chunks/{b48bb38e5d60fc7a9097.js → 08ef90e3fcfd4eda4301.js} +1 -1
- package/assets/esri/core/workers/chunks/0a58b57e1777a8b0ea23.js +1 -0
- package/assets/esri/core/workers/chunks/{7115c52e22b7becff8de.js → 103153951ba312dc5e9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f55328aabf84770c8e6a.js → 1817cf11e85afca947d3.js} +1 -1
- package/assets/esri/core/workers/chunks/20e4243ea563d05a5256.js +1 -0
- package/assets/esri/core/workers/chunks/24a3c6f0154787968724.js +1 -0
- package/assets/esri/core/workers/chunks/{fafbacf2467e6883b6c9.js → 28db329528def851efd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{2367bd1cb34799a3f08a.js → 30184e39129d9c66ea54.js} +1 -1
- package/assets/esri/core/workers/chunks/3f03165487c1c2340fff.js +1 -0
- package/assets/esri/core/workers/chunks/48e2737182c75005fb8f.js +1 -0
- package/assets/esri/core/workers/chunks/{05e55118dc0023d500fc.js → 5000a37fba27464d10ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa01d1813fa78034526e.js → 51355866a0dcf41cfded.js} +1 -1
- package/assets/esri/core/workers/chunks/{a372d9af43ade7c6314c.js → 52c8687b473c9953c2f2.js} +1 -1
- package/assets/esri/core/workers/chunks/640085b5ade5c7f16228.js +1 -0
- package/assets/esri/core/workers/chunks/727804cf901094b1d620.js +1 -0
- package/assets/esri/core/workers/chunks/{0446562aee0639c61485.js → 7420fa18ba12014b22ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{c9c2e00fed979c21e2f0.js → 8a946cbc816f373c136b.js} +1 -1
- package/assets/esri/core/workers/chunks/8c271e9272e4eaf1325a.js +1 -0
- package/assets/esri/core/workers/chunks/{2a0fe1aede5c68374ccf.js → 8ec238b5b59ef18a1713.js} +1 -1
- package/assets/esri/core/workers/chunks/{f1dfb1323d50247e80f9.js → 9110287f272141f60c35.js} +1 -1
- package/assets/esri/core/workers/chunks/951a3442d4342539f2ea.js +1 -0
- package/assets/esri/core/workers/chunks/9664d9e679abc41f6c42.js +1 -0
- package/assets/esri/core/workers/chunks/{2921f05a40fda12f9f81.js → a00bba1c7cbf8cd7892c.js} +1 -1
- package/assets/esri/core/workers/chunks/a716b8fdeda4e16f03ab.js +1 -0
- package/assets/esri/core/workers/chunks/aead7c9830fa310e5b53.js +1 -0
- package/assets/esri/core/workers/chunks/{483dc4ee5d73cdfe6229.js → b075d3714fab0591d67c.js} +1 -1
- package/assets/esri/core/workers/chunks/{82cc758bddd9f8397b9f.js → b451dc416eebd0931ef8.js} +4 -4
- package/assets/esri/core/workers/chunks/b59be95949445ff5afab.js +1 -0
- package/assets/esri/core/workers/chunks/b6dec5dfdeca54bae88d.js +1 -0
- package/assets/esri/core/workers/chunks/{4356274cfa477eb6d749.js → bfb9cbe59d36d18f9157.js} +1 -1
- package/assets/esri/core/workers/chunks/{6afd59412bfc134bdf75.js → c052fb8c952cda0b5d13.js} +1 -1
- package/assets/esri/core/workers/chunks/{f2ebd6471e1259a6eac0.js → c9e7cc5d853908ab5b2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{97650ee3d0eecb69ccbb.js → d8623f5f13a084e439c2.js} +5 -5
- package/assets/esri/core/workers/chunks/dd105d6e0fcedee32644.js +1 -0
- package/assets/esri/core/workers/chunks/e1148067ceae7d9eaaf8.js +1 -0
- package/assets/esri/core/workers/chunks/{b536fdb655ad293d9024.js → eb6218634a492667506a.js} +1 -1
- package/assets/esri/core/workers/chunks/{7804be2f5b3d86188a24.js → edc3d98f33d7bf959154.js} +1 -1
- package/assets/esri/core/workers/chunks/eefad79be500667af96e.js +1 -0
- package/assets/esri/core/workers/chunks/{63933cbcb5c12df09715.js → f1ac1c8b1331ec79e898.js} +1 -1
- package/assets/esri/core/workers/chunks/{2b7f9a57a2cfbc108673.js → f1b99529e2055873b65a.js} +1 -1
- package/assets/esri/core/workers/chunks/f693a4d97b2762d0e6ff.js +1 -0
- package/assets/esri/core/workers/chunks/f8caceeaa14d99c35526.js +1 -0
- package/assets/esri/core/workers/chunks/febce0d80f019dc2a427.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Attribution.scss +1 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/Magnifier.glsl.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/vec42.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec4.js +1 -1
- package/geometry/support/aaBoundingRect.js +1 -1
- package/geometry/support/buffer/BufferView.js +1 -1
- package/geometry/support/buffer/internals/Vec4.js +1 -1
- package/interfaces.d.ts +108 -0
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraph/DataModel.js +1 -1
- package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.d.ts +4 -0
- package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.js +5 -0
- package/rest/knowledgeGraph/GraphProperty.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
- package/rest/knowledgeGraphService.d.ts +3 -0
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/layers/DrapedSubView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/ScaleRangeQueries.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TextureFader.js +1 -1
- package/views/3d/terrain/TextureReference.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/ComponentData.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js +2 -2
- 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/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ensureColor4.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +5 -5
- package/views/SceneView.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/support/GroundElevationSampler.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/032444974011118127d7.js +0 -1
- package/assets/esri/core/workers/chunks/089221bac1f019692f48.js +0 -1
- package/assets/esri/core/workers/chunks/1bfe0b2bf38d4dee7fd6.js +0 -1
- package/assets/esri/core/workers/chunks/27bd88e1101873d4ce12.js +0 -1
- package/assets/esri/core/workers/chunks/53d95ba86d010231fc4e.js +0 -1
- package/assets/esri/core/workers/chunks/7d3e665613927904ba4f.js +0 -1
- package/assets/esri/core/workers/chunks/a5f2da24497349239648.js +0 -1
- package/assets/esri/core/workers/chunks/a7b1b42bdb9cb9ecac45.js +0 -1
- package/assets/esri/core/workers/chunks/acaaefd4997316d319b8.js +0 -1
- package/assets/esri/core/workers/chunks/ad138b989c2c7a1168ac.js +0 -1
- package/assets/esri/core/workers/chunks/cc7c37f9ed3f831fd25c.js +0 -1
- package/assets/esri/core/workers/chunks/d14bd320f72d8e8a0ad8.js +0 -1
- package/assets/esri/core/workers/chunks/d86e59da76eea888ba86.js +0 -1
- package/assets/esri/core/workers/chunks/de99c4fd1582a8e610cf.js +0 -1
- package/assets/esri/core/workers/chunks/ded3ef385d5a3a2ec8ca.js +0 -1
- package/assets/esri/core/workers/chunks/e3a994587f9b2e88db85.js +0 -1
- package/assets/esri/core/workers/chunks/eab0938d4ad7d7cc7309.js +0 -1
- package/assets/esri/core/workers/chunks/ed1dabed10ff9f4e0369.js +0 -1
- package/assets/esri/core/workers/chunks/ef5b13ee3362763c1096.js +0 -1
- package/assets/esri/core/workers/chunks/effbc4d240752e8ba0ab.js +0 -1
- package/assets/esri/core/workers/chunks/f403d8e414766fab2936.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{27921:(t,n,e)=>{e.d(n,{$Q:()=>A,C:()=>u,Cr:()=>d,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>p,Tj:()=>I,Ui:()=>x,_I:()=>y,fA:()=>f,gv:()=>w,lU:()=>M,mN:()=>z,mP:()=>P,mR:()=>q,vE:()=>C,vt:()=>o});var r=e(34727),a=e(38954),s=e(51850),i=(e(87317),e(44280),e(32114));function o(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],n=N[1],e=N[2],r=N[3]){return f(t,n,e,r,i.Km.get())}function u(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*a,e[1]=n[1]*a,e[2]=n[2]*a,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function d(t,n,e,r=o()){const a=e[0]-n[0],s=e[1]-n[1],i=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-i*u,l=i*c-a*h,d=a*u-s*c,M=f*f+l*l+d*d,m=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=f*m,r[1]=l*m,r[2]=d*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,e,r=0,s=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(_,r);let o=s,c=!1;for(;o<e-1&&!c;)n(v,o),o++,c=!(0,a.m)(_,v);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(g,o),o++,(0,a.e)(b,_,v),(0,a.n)(b,b),(0,a.e)(j,v,g),(0,a.n)(j,j),c=!(0,a.m)(_,g)&&!(0,a.m)(v,g)&&Math.abs((0,a.g)(b,j))<m;return c?(d(_,v,g,t),!0):(0!==r||1!==s||2!==i)&&M(t,n,e,0,1,2)}e(32728);const m=.99619469809,_=(0,s.vt)(),v=(0,s.vt)(),g=(0,s.vt)(),b=(0,s.vt)(),j=(0,s.vt)();function P(t,n,e){return n!==t&&u(t,n),t[3]=-(0,a.g)(t,e),t}function q(t,n,e,r){return(0,a.f)(g,n,t),l(e,g,r)}function x(t,n,e){return null!=n&&S(C(t,n.origin,n.direction,V,e))}function p(t,n,e){return S(C(t,n.origin,n.vector,0,e))}function w(t,n,e){return S(C(t,n.origin,n.vector,1,e))}function I(t,n){return z(t,n)>=0}function A(t,n){const e=(0,a.g)(t,n.ray.direction),r=-z(t,n.ray.origin);if(r<0&&e>=0)return!1;if(e>-1e-6&&e<1e-6)return r>0;if((r<0||e<0)&&!(r<0&&e<0))return!0;const s=r/e;return e>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function y(t,n,e){const r=(0,a.j)(i.rq.get(),t,-t[3]),s=function(t,n,e){const r=(0,a.j)(i.rq.get(),t,(0,a.g)(t,n));return(0,a.e)(e,n,r),e}(t,(0,a.e)(i.rq.get(),n,r),i.rq.get());return(0,a.i)(e,s,r),e}function z(t,n){return(0,a.g)(t,n)+t[3]}function S(t){return 0===t||1===t}function C(t,n,e,s,i){const o=(0,a.g)(t,e),c=z(t,n);if(0===o)return c>=0?2:3;let u=-c/o;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,a.i)(i,n,(0,a.j)(i,e,u)),c>=0?0:1)}const N=[0,0,1,0],V=8},32114:(t,n,e)=>{e.d(n,{Rc:()=>d,J8:()=>M,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),a=e(29242),s=e(9093),i=e(82534),o=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.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 h(o.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(a.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(i.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64()),M=h.createQuatf64()},32728:(t,n,e)=>{e.d(n,{nu:()=>i,wp:()=>s}),e(34727);var r=e(38954),a=e(51850);function s(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),a=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,r.h)(t,e,a,s),t}function i(t,n,e,s=(0,a.vt)()){const i=(0,r.b)(t),u=(0,r.b)(n),h=(0,r.g)(t,n)/(i*u);if(h<.9999999999999999){const a=Math.acos(h),f=((1-e)*i+e*u)/Math.sin(a),l=f/i*Math.sin((1-e)*a),d=f/u*Math.sin(e*a);return(0,r.j)(o,t,l),(0,r.j)(c,n,d),(0,r.i)(s,o,c)}return(0,r.l)(s,t,n,e)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),c=(0,a.vt)()},38954:(t,n,e)=>{e.d(n,{A:()=>h,B:()=>D,C:()=>f,D:()=>g,E:()=>O,F:()=>j,G:()=>V,H:()=>E,a:()=>T,b:()=>s,c:()=>v,d:()=>i,e:()=>u,f:()=>w,g:()=>p,h:()=>o,i:()=>c,j:()=>_,l:()=>I,m:()=>N,n:()=>x,o:()=>q,p:()=>A,q:()=>P,r:()=>z,s:()=>b,t:()=>y,u:()=>l,v:()=>X,w:()=>Y,x:()=>m,y:()=>M,z:()=>d});var r=e(51850),a=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function _(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function v(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function j(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function P(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function q(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],a=n[2];let s=e*e+r*r+a*a;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 p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];return t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i,t}function I(t,n,e,r){const a=n[0],s=n[1],i=n[2];return t[0]=a+r*(e[0]-a),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function A(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*s+e[12],t[1]=e[1]*r+e[5]*a+e[9]*s+e[13],t[2]=e[2]*r+e[6]*a+e[10]*s+e[14],t}function y(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=r*e[0]+a*e[3]+s*e[6],t[1]=r*e[1]+a*e[4]+s*e[7],t[2]=r*e[2]+a*e[5]+s*e[8],t}function z(t,n,e){const r=e[0],a=e[1],s=e[2],i=e[3],o=n[0],c=n[1],u=n[2],h=a*u-s*c,f=s*o-r*u,l=r*c-a*o,d=a*l-s*f,M=s*h-r*l,m=r*f-a*h,_=2*i;return t[0]=o+h*_+2*d,t[1]=c+f*_+2*M,t[2]=u+l*_+2*m,t}const S=(0,r.vt)(),C=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function V(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],o=n[1],c=n[2],u=(0,a.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function O(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],s=e[2]-n[2];let i=r*r+a*a+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=a*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,F=h,Q=f,E=g,X=b,D=s,Y=j;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,n){x(S,t),x(C,n);const e=p(S,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,s){const i=1-s,o=i*i,c=s*s,u=o*i,h=3*s*o,f=3*c*i,l=c*s;return t[0]=n[0]*u+e[0]*h+r[0]*f+a[0]*l,t[1]=n[1]*u+e[1]*h+r[1]*f+a[1]*l,t[2]=n[2]*u+e[2]*h+r[2]*f+a[2]*l,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,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2],u=a*c-s*o,h=s*i-r*c,f=r*o-a*i,l=Math.sqrt(u*u+h*h+f*f);return t[0]=u/l,t[1]=h/l,t[2]=f/l,t},direction:O,dist:E,distance:g,div:Q,divide:f,dot:p,equals:V,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,e,r,a,s){const i=s*s,o=i*(2*s-3)+1,c=i*(s-2)+s,u=i*(s-1),h=i*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+a[0]*h,t[1]=n[1]*o+e[1]*c+r[1]*u+a[1]*h,t[2]=n[2]*o+e[2]*c+r[2]*u+a[2]*h,t},inverse:q,len:D,length:s,lerp:I,max:m,min:M,mul:F,multiply:h,negate:P,normalize:x,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,s=2*e()-1,i=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*n,t},rotateX:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0],s[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),s[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),s[1]=a[1],s[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),s[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),s[2]=a[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[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:_,scaleAndAdd:v,set:o,sign:d,sqrDist:X,sqrLen:Y,squaredDistance:b,squaredLength:j,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:y,transformMat4:A,transformQuat:z},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,e)=>{e.d(n,{EJ:()=>c,g7:()=>o,gr:()=>i});var r=e(34727),a=e(38954),s=e(51850);function i(t,n){return(0,a.g)(t,n)/(0,a.b)(t)}function o(t,n){const e=(0,a.g)(t,n)/((0,a.b)(t)*(0,a.b)(n));return-(0,r.XM)(e)}function c(t,n,e){(0,a.n)(u,t),(0,a.n)(h,n);const s=(0,a.g)(u,h),i=(0,r.XM)(s),o=(0,a.f)(u,u,h);return(0,a.g)(o,e)<0?2*Math.PI-i:i}const u=(0,s.vt)(),h=(0,s.vt)()},46610:(t,n,e)=>{e.d(n,{K:()=>r,n:()=>a});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends r{constructor(t,n,e,r=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=r}}},48163:(t,n,e)=>{function r(){return[0,0]}function a(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function i(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>a,vt:()=>r});const u=i(),h=o(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:i,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),a=e(58083),s=e(51850);function i(t,n,e){const r=Math.sin(t),a=Math.cos(t),s=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-s*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-s*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=s,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function u(t,n,e,r){const s=(0,o.Tp)(t,r);if(null==s)return!1;const u=s.source.spatialReferenceId,M=s.dest.spatialReferenceId;if(u===M&&!h(M)&&(0!==u||(0,c.aI)(t,r)))return(0,a.kN)(e,n),!0;if(h(M)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=h(u);if((3===M||11===M||2===M||5===M)&&(2===u||m||3===u||5===u)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),m?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,s.vt)(),d=(0,s.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>bt,gm:()=>zt});var r=e(77690),a=e(29242),s=e(9093),i=e(67026),o=e(82534),c=e(38954),u=e(51850),h=e(87317),f=e(91829),l=e(73941),d=e(98764),M=e(48353),m=e(9762),_=e(37539),v=e(27921),g=e(21325),b=e(32114),j=e(48163),P=e(46610);const q=1e-6,x=(0,u.vt)(),p=(0,u.vt)();function w(t,n,e,r,a,s,i,o,c,u){return function(t,n,e){let r=vt(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=vt(t.maxVert[n],t.minVert[n]);e>r&&(r=e,a=n)}dt(n,t.minVert[a]),dt(e,t.maxVert[a])}(t,r,a),vt(r,a)<q?1:(ft(i,r,a),mt(i,i),function(t,n,e,r){const{data:a,size:s}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=s){T[0]=a[t]-n[0],T[1]=a[t+1]-n[1],T[2]=a[t+2]-n[2];const r=e[0]*T[0]+e[1]*T[1]+e[2]*T[2],s=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=T[0]*T[0]+T[1]*T[1]+T[2]*T[2]-r*r/s;c>i&&(i=c,o=t)}return dt(r,a,o),i}(n,r,i,s)<q?2:(ft(o,a,s),mt(o,o),ft(c,s,r),mt(c,c),Mt(e,o,i),mt(e,e),k(n,e,i,o,c,u),0))}const I=(0,u.vt)(),A=(0,u.vt)(),y=(0,u.vt)(),z=(0,u.vt)(),S=(0,u.vt)(),C=(0,u.vt)(),N=(0,u.vt)(),V=(0,u.vt)();function O(t,n,e,r,a,s,i,o,c){(function(t,n,e,r,a){!function(t,n,e,r,a){const{data:s,size:i}=t;dt(r,s),dt(a,r),e[0]=gt(Z,n),e[1]=e[0];for(let t=i;t<s.length;t+=i){const i=s[t]*n[0]+s[t+1]*n[1]+s[t+2]*n[2];i<e[0]&&(e[0]=i,dt(r,s,t)),i>e[1]&&(e[1]=i,dt(a,s,t))}}(t,n,F,a,r);const s=gt(e,n);F[1]-q<=s&&(r[0]=void 0),F[0]+q>=s&&(a[0]=void 0)})(t,n,e,I,A),void 0!==I[0]&&(ft(y,I,e),mt(y,y),ft(z,I,r),mt(z,z),ft(S,I,a),mt(S,S),Mt(C,z,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,y,o),mt(V,V),k(t,C,s,z,y,c),k(t,N,i,S,z,c),k(t,V,o,y,S,c)),void 0!==A[0]&&(ft(y,A,e),mt(y,y),ft(z,A,r),mt(z,z),ft(S,A,a),mt(S,S),Mt(C,z,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,y,o),mt(V,V),k(t,C,s,z,y,c),k(t,N,i,S,z,c),k(t,V,o,y,S,c))}const T=[0,0,0],F=(0,j.vt)(),Q=(0,u.vt)(),E=(0,u.vt)(),X=(0,u.vt)(),D=(0,u.vt)(),Y=(0,u.vt)(),R=(0,u.vt)();function k(t,n,e,r,a,s){if(_t(n)<q)return;Mt(Q,e,n),Mt(E,r,n),Mt(X,a,n),B(t,n,F),Y[1]=F[0],D[1]=F[1],R[1]=D[1]-Y[1];const i=[e,r,a],o=[Q,E,X];for(let e=0;e<3;++e){B(t,i[e],F),Y[0]=F[0],D[0]=F[1],B(t,o[e],F),Y[2]=F[0],D[2]=F[1],R[0]=D[0]-Y[0],R[2]=D[2]-Y[2];const r=ut(R);r<s.quality&&(dt(s.b0,i[e]),dt(s.b1,n),dt(s.b2,o[e]),s.quality=r)}}const Z=(0,u.vt)();function B(t,n,e){const{data:r,size:a}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=a){const a=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];e[0]=Math.min(e[0],a),e[1]=Math.max(e[1],a)}}function U(t,n,e){e.center=t,e.halfSize=(0,c.j)(n,n,.5),e.quaternion=o.zK}const H=(0,u.vt)(),K=(0,u.vt)(),L=(0,u.vt)(),G=(0,u.vt)(),W=(0,u.vt)(),J=(0,u.vt)();function $(t,n,e){dt(H,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?H[0]=0:Math.abs(n[1])>Math.abs(n[2])?H[1]=0:H[2]=0,_t(H)<q&&(H[0]=H[1]=H[2]=1),Mt(K,n,H),mt(K,K),Mt(L,n,K),mt(L,L),tt(t,n,K,L,G,W),ft(J,W,G),it(n,K,L,G,W,J,e)}function tt(t,n,e,r,a,s){B(t,n,F),a[0]=F[0],s[0]=F[1],B(t,e,F),a[1]=F[0],s[1]=F[1],B(t,r,F),a[2]=F[0],s[2]=F[1]}const nt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),at=(0,a.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function it(t,n,e,r,a,s,i){at[0]=t[0],at[1]=t[1],at[2]=t[2],at[3]=n[0],at[4]=n[1],at[5]=n[2],at[6]=e[0],at[7]=e[1],at[8]=e[2],i.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,a=(e+2)%3;let s=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*a+a]+1);t[e]=.5*s,s=.5/s,t[3]=(n[3*r+a]-n[3*a+r])*s,t[r]=(n[3*r+e]+n[3*e+r])*s,t[a]=(n[3*a+e]+n[3*e+a])*s}return t}(st,at),ht(nt,r,a),lt(nt,nt,.5),lt(et,t,nt[0]),lt(rt,n,nt[1]),ht(et,et,rt),lt(rt,e,nt[2]),i.center=(0,c.i)(et,et,rt),i.halfSize=(0,c.j)(nt,s,.5)}class ot{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:a,size:s}=t;for(let t=0;t<a.length;t+=s){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];dt(this.minVert[t],a,n),n=r[t],dt(this.maxVert[t],a,n)}}}class ct{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function lt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function dt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function Mt(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function gt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class bt{constructor(t=u.uY,n=kt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return bt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new bt;return n._copyFromData(t),n}static fromJSON(t){return new bt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get center(){return(0,c.h)(b.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.h)(b.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,i.hZ)(b.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const a=t[r];a[0]=(1&r?-1:1)*n[3],a[1]=(2&r?-1:1)*n[4],a[2]=(4&r?-1:1)*n[5],(0,c.r)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}}doesIntersectFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectSphere(t){xt[0]=this._data[0]-t.center[0],xt[1]=this._data[1]-t.center[1],xt[2]=this._data[2]-t.center[2];const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(xt,xt,jt),(0,c.u)(xt,xt),pt[0]=Math.min(xt[0],this._data[3]),pt[1]=Math.min(xt[1],this._data[4]),pt[2]=Math.min(xt[2],this._data[5]),(0,c.v)(pt,xt)<t.radius*t.radius}intersectSphereWithMBS(t,n=this.radius){const e=this._data;xt[0]=e[0]-t.center[0],xt[1]=e[1]-t.center[1],xt[2]=e[2]-t.center[2];const r=t.radius,a=r+n;return!((0,c.w)(xt)>a*a)&&(jt[0]=-e[6],jt[1]=-e[7],jt[2]=-e[8],jt[3]=e[9],(0,c.r)(xt,xt,jt),(0,c.u)(xt,xt),pt[0]=Math.min(xt[0],e[3]),pt[1]=Math.min(xt[1],e[4]),pt[2]=Math.min(xt[2],e[5]),(0,c.v)(pt,xt)<r*r)}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,a=jt;a[0]=-r[6],a[1]=-r[7],a[2]=-r[8],a[3]=r[9],xt[0]=t[0]-r[0],xt[1]=t[1]-r[1],xt[2]=t[2]-r[2];const s=(0,c.r)(xt,xt,jt),i=(0,c.r)(pt,n,jt);let o=-1/0,u=1/0;const h=this.getHalfSize(Ft);for(let t=0;t<3;t++){const n=s[t],r=i[t],a=h[t]+e;if(Math.abs(r)>1e-6){const t=(a-n)/r,e=(-a-n)/r;o=Math.max(o,Math.min(t,e)),u=Math.min(u,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=u}projectedArea(t,n,e,a){const s=this.getQuaternion(Pt);(0,i.Xr)(jt,s),xt[0]=t[0]-this._data[0],xt[1]=t[1]-this._data[1],xt[2]=t[2]-this._data[2],(0,c.r)(xt,xt,jt);const o=this.getHalfSize(Ft),u=xt[0]<-o[0]?-1:xt[0]>o[0]?1:0,f=xt[1]<-o[1]?-1:xt[1]>o[1]?1:0,l=xt[2]<-o[2]?-1:xt[2]>o[2]?1:0,d=Math.abs(u)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const M=1===d?4:6,m=6*(u+3*f+9*l+13);(0,r.I0)(Qt,s),(0,r.hs)(Qt,Qt,o);const _=this.getCenter(Ot);for(let t=0;t<M;t++){const e=yt[m+t];(0,c.h)(xt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.t)(xt,xt,Qt),(0,c.i)(wt,_,xt),wt[3]=1,(0,h.t)(wt,wt,n);const r=1/Math.max(1e-6,wt[3]);At[2*t]=wt[0]*r,At[2*t+1]=wt[1]*r}const v=2*M-2;let g=At[0]*(At[3]-At[v+1])+At[v]*(At[1]-At[v-1]);for(let t=2;t<v;t+=2)g+=At[t]*(At[t+3]-At[t-1]);return Math.abs(g)*e*a*.125}projectedRadius(t){const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(xt,t,jt),Math.abs(xt[0]*this._data[3])+Math.abs(xt[1]*this._data[4])+Math.abs(xt[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,v.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,v.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Qt,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),s=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-s,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+s,t[5]=this._data[2]+i}transform(t,n,e,r=0,a=(0,d.lO)(e),s=(0,d.lO)(n),o=(0,_.jd)(n,s)){if(e===a)n.isGeographic?function(t,n,e,r,a=(0,d.lO)(e)){const s=(0,l.tO)(e),o=1+Math.max(0,r)/(s.radius+t.centerZ);t.getCenter(Vt),Vt[2]+=r,(0,m.projectBuffer)(Vt,e,0,Vt,a,0),n.center=Vt;const u=t.getQuaternion(Pt);n.quaternion=u,(0,i.Xr)(jt,u),(0,c.h)(Dt,0,0,1),(0,c.r)(Dt,Dt,jt);const h=t.getHalfSize(Ft);(0,c.h)(Dt,h[0]*Math.abs(Dt[0]),h[1]*Math.abs(Dt[1]),h[2]*Math.abs(Dt[2])),(0,c.j)(Dt,Dt,s.inverseFlattening),(0,c.i)(Dt,h,Dt),n.halfSize=(0,c.j)(Dt,Dt,o)}(this,t,n,r,s):function(t,n,e,r,a=(0,d.lO)(e),s=(0,_.jd)(e,a)){t.getCorners(Xt),t.getCenter(Vt),Vt[2]+=r,(0,M.l)(e,Vt,Et,a),n.setCenter(Et[12],Et[13],Et[14]);const o=2*Math.sqrt(1+Et[0]+Et[5]+Et[10]);jt[0]=(Et[6]-Et[9])/o,jt[1]=(Et[8]-Et[2])/o,jt[2]=(Et[1]-Et[4])/o,jt[3]=.25*o;const u=t.getQuaternion(Pt);n.quaternion=(0,i.lw)(jt,jt,u),(0,i.Xr)(jt,jt),(0,c.h)(Yt,0,0,0);const h=n.getCenter(Tt);for(const t of Xt)t[2]+=r,s(t,0,t,0),(0,c.a)(Dt,t,h),(0,c.r)(Dt,Dt,jt),(0,c.u)(Dt,Dt),(0,c.x)(Yt,Yt,Dt);n.halfSize=Yt}(this,t,n,r,s,o);else if(n.isWGS84&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a;const s=(0,d.lO)(e);(0,m.projectBuffer)(Ot,t,0,Ot,s,0),St(s,n,Ot,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a,St(t,n,Ot,e,r)}(n,this,e,t,r);else{const a=this.getCenter(Ot);a[2]+=r,(0,m.projectBuffer)(a,n,0,a,e,0),t.center=a,this!==t&&(t.quaternion=this.getQuaternion(Pt),t.halfSize=this.getHalfSize(Ft))}}}const jt=(0,o.vt)(),Pt=(0,o.vt)(),qt=(0,o.vt)(),xt=(0,u.vt)(),pt=(0,u.vt)(),wt=(0,f.vt)();function It(t,n=new bt){return function(t,n){const{data:e,size:r}=t,a=e.length/r;if(a<=0)return;const s=new ot(t);ht(x,s.minProj,s.maxProj),lt(x,x,.5),ft(p,s.maxProj,s.minProj);const i=ut(p),o=new ct;o.quality=i,a<14&&(t=new P.K(new Float64Array(s.buffer,112,42),3));const c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),l=(0,u.vt)(),d=(0,u.vt)(),M=(0,u.vt)(),m=(0,u.vt)();switch(w(s,t,m,c,h,f,l,d,M,o)){case 1:return void U(x,p,n);case 2:return void $(t,l,n)}O(t,m,c,h,f,l,d,M,o),tt(t,o.b0,o.b1,o.b2,G,W);const _=(0,u.vt)();ft(_,W,G),o.quality=ut(_),o.quality<i?it(o.b0,o.b1,o.b2,G,W,_,n):U(x,p,n)}(t,n),n}const At=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],yt=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function zt(t,n,e,r,a){const s=t.getQuaternion(Pt);a.quaternion=s,(0,i.Xr)(jt,s);const o=t.getCenter(Ot),h=t.getHalfSize(Ft);if(1===r){(0,c.r)(Dt,o,jt),(0,c.u)(Yt,Dt),(0,c.y)(Rt,Yt,h),(0,c.a)(Rt,Yt,Rt);const r=(0,c.b)(Rt);(0,c.i)(Rt,Yt,h);const s=(0,c.b)(Rt);if(r<e)a.center=o,(0,c.h)(Dt,e,e,e),a.halfSize=(0,c.i)(Dt,h,Dt);else{const i=s>0?1+n/s:1,o=r>0?1+e/r:1,u=(o+i)/2,f=(o-i)/2;(0,c.j)(Rt,Yt,f),a.halfSize=(0,c.c)(Rt,Rt,h,u),(0,c.j)(Rt,Yt,u),(0,c.c)(Rt,Rt,h,f),(0,c.z)(Dt,Dt),(0,c.A)(Dt,Rt,Dt);const l=t.getQuaternion(qt);a.center=(0,c.r)(Dt,Dt,l)}}else{a.center=(0,c.c)(Dt,o,u.Cb,(e+n)/2);const t=(0,c.r)(Dt,u.Cb,jt);(0,c.u)(t,t),a.halfSize=(0,c.c)(Yt,h,t,(e-n)/2)}return a}function St(t,n,e,a,s){const i=n.getQuaternion(Pt),o=(0,r.I0)(Qt,i),c=n.getHalfSize(Ft);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Vt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=Vt[t]*o[3*t+n];Ct[3*t+n]=r}}(0,m.projectBuffer)(Ct,t,0,Ct,a,0,8),It(Nt,s)}const Ct=new Array(24),Nt=new P.K(Ct,3),Vt=(0,u.vt)(),Ot=(0,u.vt)(),Tt=(0,u.vt)(),Ft=(0,u.vt)(),Qt=(0,a.vt)(),Et=(0,s.vt)(),Xt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Dt=(0,u.vt)(),Yt=(0,u.vt)(),Rt=(0,u.vt)(),kt=(0,u.CN)(-1,-1,-1)},67026:(t,n,e)=>{e.d(n,{A6:()=>m,Xd:()=>h,Xr:()=>d,hZ:()=>v,lw:()=>f,t2:()=>y,x8:()=>u});var r=e(29242),a=e(82534),s=e(51850),i=e(34304),o=e(38954),c=e(87317);function u(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function h(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],a=n[1],s=n[2],i=n[3],o=e[0],c=e[1],u=e[2],h=e[3];return t[0]=r*h+i*o+a*u-s*c,t[1]=a*h+i*c+s*o-r*u,t[2]=s*h+i*u+r*c-a*o,t[3]=i*h-r*o-a*c-s*u,t}function l(t,n,e,r){const a=n[0],s=n[1],o=n[2],c=n[3];let u,h,f,l,d,M=e[0],m=e[1],_=e[2],v=e[3];return h=a*M+s*m+o*_+c*v,h<0&&(h=-h,M=-M,m=-m,_=-_,v=-v),1-h>(0,i.FD)()?(u=Math.acos(h),f=Math.sin(u),l=Math.sin((1-r)*u)/f,d=Math.sin(r*u)/f):(l=1-r,d=r),t[0]=l*a+d*M,t[1]=l*s+d*m,t[2]=l*o+d*_,t[3]=l*c+d*v,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,s=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*a+s]-n[3*s+a])*r,t[a]=(n[3*a+e]+n[3*e+a])*r,t[s]=(n[3*s+e]+n[3*e+s])*r}return t}function m(t,n,e,r){const a=.5*Math.PI/180;n*=a,e*=a,r*=a;const s=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),u=Math.sin(r),h=Math.cos(r);return t[0]=s*c*h-i*o*u,t[1]=i*o*h+s*c*u,t[2]=i*c*u-s*o*h,t[3]=i*c*h+s*o*u,t}const _=c.d,v=c.s,g=c.h,b=f,j=c.c,P=c.g,q=c.l,x=c.i,p=x,w=c.b,I=w,A=c.n,y=c.a,z=c.e,S=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),V=(0,a.vt)(),O=(0,a.vt)(),T=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],a=n[2];return t[0]=e,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-a*a)),t},conjugate:d,copy:_,dot:P,equals:z,exactEquals:y,fromEuler:m,fromMat3:M,getAxisAngle:h,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],a=n[2],s=n[3],i=e*e+r*r+a*a+s*s,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-a*o,t[3]=s*o,t},len:p,length:x,lerp:q,mul:b,multiply:f,normalize:A,random:function(t){const n=i.Ov,e=n(),r=n(),a=n(),s=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=s*Math.sin(2*Math.PI*r),t[1]=s*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=a*c+s*o,t[2]=s*c-a*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-s*o,t[1]=a*c+i*o,t[2]=s*c+r*o,t[3]=i*c-a*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*o,t[1]=a*c-r*o,t[2]=s*c+i*o,t[3]=i*c-s*o,t},rotationTo:function(t,n,e){const r=(0,o.g)(n,e);return r<-.999999?((0,o.f)(S,C,n),(0,o.B)(S)<1e-6&&(0,o.f)(S,N,n),(0,o.n)(S,S),u(t,S,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.f)(S,n,e),t[0]=S[0],t[1]=S[1],t[2]=S[2],t[3]=1+r,A(t,t))},scale:j,set:v,setAxes:function(t,n,e,r){const a=T;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=r[0],a[4]=r[1],a[7]=r[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],A(t,M(t,a))},setAxisAngle:u,slerp:l,sqlerp:function(t,n,e,r,a,s){return l(V,n,a,s),l(O,e,r,s),l(t,V,O,2*s*(1-s)),t},sqrLen:I,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>h});var r=e(73941),a=e(16930),s=e(21325);const i=new a.A(r.fv),o=new a.A(r.FY),c=new a.A(r.LJ),u=new a.A(r.Ro);function h(t){const n=f.get(t);if(n)return n;let e=i;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,s.tl)(n)||(0,s.tl)(r)?e=o:((0,s.ZL)(n)||(0,s.ZL)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===l?e=o:t===d&&(e=c)}}}return f.set(t,e),e}const f=new Map,l=o.wkt.toUpperCase(),d=c.wkt.toUpperCase()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{27921:(t,n,e)=>{e.d(n,{$Q:()=>A,C:()=>u,Cr:()=>d,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>p,Tj:()=>I,Ui:()=>x,_I:()=>y,fA:()=>f,gv:()=>w,lU:()=>M,mN:()=>z,mP:()=>P,mR:()=>q,vE:()=>C,vt:()=>o});var r=e(34727),a=e(38954),s=e(51850),i=(e(87317),e(44280),e(32114));function o(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],n=N[1],e=N[2],r=N[3]){return f(t,n,e,r,i.Km.get())}function u(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*a,e[1]=n[1]*a,e[2]=n[2]*a,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function d(t,n,e,r=o()){const a=e[0]-n[0],s=e[1]-n[1],i=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-i*u,l=i*c-a*h,d=a*u-s*c,M=f*f+l*l+d*d,m=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=f*m,r[1]=l*m,r[2]=d*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,e,r=0,s=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(_,r);let o=s,c=!1;for(;o<e-1&&!c;)n(v,o),o++,c=!(0,a.m)(_,v);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(g,o),o++,(0,a.e)(b,_,v),(0,a.n)(b,b),(0,a.e)(j,v,g),(0,a.n)(j,j),c=!(0,a.m)(_,g)&&!(0,a.m)(v,g)&&Math.abs((0,a.g)(b,j))<m;return c?(d(_,v,g,t),!0):(0!==r||1!==s||2!==i)&&M(t,n,e,0,1,2)}e(32728);const m=.99619469809,_=(0,s.vt)(),v=(0,s.vt)(),g=(0,s.vt)(),b=(0,s.vt)(),j=(0,s.vt)();function P(t,n,e){return n!==t&&u(t,n),t[3]=-(0,a.g)(t,e),t}function q(t,n,e,r){return(0,a.f)(g,n,t),l(e,g,r)}function x(t,n,e){return null!=n&&S(C(t,n.origin,n.direction,V,e))}function p(t,n,e){return S(C(t,n.origin,n.vector,0,e))}function w(t,n,e){return S(C(t,n.origin,n.vector,1,e))}function I(t,n){return z(t,n)>=0}function A(t,n){const e=(0,a.g)(t,n.ray.direction),r=-z(t,n.ray.origin);if(r<0&&e>=0)return!1;if(e>-1e-6&&e<1e-6)return r>0;if((r<0||e<0)&&!(r<0&&e<0))return!0;const s=r/e;return e>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function y(t,n,e){const r=(0,a.j)(i.rq.get(),t,-t[3]),s=function(t,n,e){const r=(0,a.j)(i.rq.get(),t,(0,a.g)(t,n));return(0,a.e)(e,n,r),e}(t,(0,a.e)(i.rq.get(),n,r),i.rq.get());return(0,a.i)(e,s,r),e}function z(t,n){return(0,a.g)(t,n)+t[3]}function S(t){return 0===t||1===t}function C(t,n,e,s,i){const o=(0,a.g)(t,e),c=z(t,n);if(0===o)return c>=0?2:3;let u=-c/o;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,a.i)(i,n,(0,a.j)(i,e,u)),c>=0?0:1)}const N=[0,0,1,0],V=8},32114:(t,n,e)=>{e.d(n,{Rc:()=>d,J8:()=>M,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),a=e(29242),s=e(9093),i=e(82534),o=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.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 h(o.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(a.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(i.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64()),M=h.createQuatf64()},32728:(t,n,e)=>{e.d(n,{nu:()=>i,wp:()=>s}),e(34727);var r=e(38954),a=e(51850);function s(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),a=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,r.h)(t,e,a,s),t}function i(t,n,e,s=(0,a.vt)()){const i=(0,r.b)(t),u=(0,r.b)(n),h=(0,r.g)(t,n)/(i*u);if(h<.9999999999999999){const a=Math.acos(h),f=((1-e)*i+e*u)/Math.sin(a),l=f/i*Math.sin((1-e)*a),d=f/u*Math.sin(e*a);return(0,r.j)(o,t,l),(0,r.j)(c,n,d),(0,r.i)(s,o,c)}return(0,r.l)(s,t,n,e)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),c=(0,a.vt)()},38954:(t,n,e)=>{e.d(n,{A:()=>h,B:()=>D,C:()=>f,D:()=>g,E:()=>O,F:()=>j,G:()=>V,H:()=>E,a:()=>T,b:()=>s,c:()=>v,d:()=>i,e:()=>u,f:()=>w,g:()=>p,h:()=>o,i:()=>c,j:()=>_,l:()=>I,m:()=>N,n:()=>x,o:()=>q,p:()=>A,q:()=>P,r:()=>z,s:()=>b,t:()=>y,u:()=>l,v:()=>X,w:()=>Y,x:()=>m,y:()=>M,z:()=>d});var r=e(51850),a=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function _(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function v(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function j(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function P(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function q(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],a=n[2];let s=e*e+r*r+a*a;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 p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];return t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i,t}function I(t,n,e,r){const a=n[0],s=n[1],i=n[2];return t[0]=a+r*(e[0]-a),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function A(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*s+e[12],t[1]=e[1]*r+e[5]*a+e[9]*s+e[13],t[2]=e[2]*r+e[6]*a+e[10]*s+e[14],t}function y(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=r*e[0]+a*e[3]+s*e[6],t[1]=r*e[1]+a*e[4]+s*e[7],t[2]=r*e[2]+a*e[5]+s*e[8],t}function z(t,n,e){const r=e[0],a=e[1],s=e[2],i=e[3],o=n[0],c=n[1],u=n[2],h=a*u-s*c,f=s*o-r*u,l=r*c-a*o,d=a*l-s*f,M=s*h-r*l,m=r*f-a*h,_=2*i;return t[0]=o+h*_+2*d,t[1]=c+f*_+2*M,t[2]=u+l*_+2*m,t}const S=(0,r.vt)(),C=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function V(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],o=n[1],c=n[2],u=(0,a.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function O(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],s=e[2]-n[2];let i=r*r+a*a+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=a*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,F=h,Q=f,E=g,X=b,D=s,Y=j;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,n){x(S,t),x(C,n);const e=p(S,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,s){const i=1-s,o=i*i,c=s*s,u=o*i,h=3*s*o,f=3*c*i,l=c*s;return t[0]=n[0]*u+e[0]*h+r[0]*f+a[0]*l,t[1]=n[1]*u+e[1]*h+r[1]*f+a[1]*l,t[2]=n[2]*u+e[2]*h+r[2]*f+a[2]*l,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,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2],u=a*c-s*o,h=s*i-r*c,f=r*o-a*i,l=Math.sqrt(u*u+h*h+f*f);return t[0]=u/l,t[1]=h/l,t[2]=f/l,t},direction:O,dist:E,distance:g,div:Q,divide:f,dot:p,equals:V,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,e,r,a,s){const i=s*s,o=i*(2*s-3)+1,c=i*(s-2)+s,u=i*(s-1),h=i*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+a[0]*h,t[1]=n[1]*o+e[1]*c+r[1]*u+a[1]*h,t[2]=n[2]*o+e[2]*c+r[2]*u+a[2]*h,t},inverse:q,len:D,length:s,lerp:I,max:m,min:M,mul:F,multiply:h,negate:P,normalize:x,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,s=2*e()-1,i=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*n,t},rotateX:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0],s[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),s[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),s[1]=a[1],s[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),s[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),s[2]=a[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[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:_,scaleAndAdd:v,set:o,sign:d,sqrDist:X,sqrLen:Y,squaredDistance:b,squaredLength:j,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:y,transformMat4:A,transformQuat:z},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,e)=>{e.d(n,{EJ:()=>c,g7:()=>o,gr:()=>i});var r=e(34727),a=e(38954),s=e(51850);function i(t,n){return(0,a.g)(t,n)/(0,a.b)(t)}function o(t,n){const e=(0,a.g)(t,n)/((0,a.b)(t)*(0,a.b)(n));return-(0,r.XM)(e)}function c(t,n,e){(0,a.n)(u,t),(0,a.n)(h,n);const s=(0,a.g)(u,h),i=(0,r.XM)(s),o=(0,a.f)(u,u,h);return(0,a.g)(o,e)<0?2*Math.PI-i:i}const u=(0,s.vt)(),h=(0,s.vt)()},46610:(t,n,e)=>{e.d(n,{K:()=>r,n:()=>a});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends r{constructor(t,n,e,r=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=r}}},48163:(t,n,e)=>{function r(){return[0,0]}function a(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function i(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>a,vt:()=>r});const u=i(),h=o(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:i,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),a=e(58083),s=e(51850);function i(t,n,e){const r=Math.sin(t),a=Math.cos(t),s=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-s*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-s*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=s,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function u(t,n,e,r){const s=(0,o.Tp)(t,r);if(null==s)return!1;const u=s.source.spatialReferenceId,M=s.dest.spatialReferenceId;if(u===M&&!h(M)&&(0!==u||(0,c.aI)(t,r)))return(0,a.kN)(e,n),!0;if(h(M)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=h(u);if((3===M||11===M||2===M||5===M)&&(2===u||m||3===u||5===u)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),m?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,s.vt)(),d=(0,s.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>bt,gm:()=>zt});var r=e(77690),a=e(29242),s=e(9093),i=e(67026),o=e(82534),c=e(38954),u=e(51850),h=e(87317),f=e(91829),l=e(73941),d=e(98764),M=e(48353),m=e(9762),_=e(37539),v=e(27921),g=e(21325),b=e(32114),j=e(48163),P=e(46610);const q=1e-6,x=(0,u.vt)(),p=(0,u.vt)();function w(t,n,e,r,a,s,i,o,c,u){return function(t,n,e){let r=vt(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=vt(t.maxVert[n],t.minVert[n]);e>r&&(r=e,a=n)}dt(n,t.minVert[a]),dt(e,t.maxVert[a])}(t,r,a),vt(r,a)<q?1:(ft(i,r,a),mt(i,i),function(t,n,e,r){const{data:a,size:s}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=s){T[0]=a[t]-n[0],T[1]=a[t+1]-n[1],T[2]=a[t+2]-n[2];const r=e[0]*T[0]+e[1]*T[1]+e[2]*T[2],s=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=T[0]*T[0]+T[1]*T[1]+T[2]*T[2]-r*r/s;c>i&&(i=c,o=t)}return dt(r,a,o),i}(n,r,i,s)<q?2:(ft(o,a,s),mt(o,o),ft(c,s,r),mt(c,c),Mt(e,o,i),mt(e,e),k(n,e,i,o,c,u),0))}const I=(0,u.vt)(),A=(0,u.vt)(),y=(0,u.vt)(),z=(0,u.vt)(),S=(0,u.vt)(),C=(0,u.vt)(),N=(0,u.vt)(),V=(0,u.vt)();function O(t,n,e,r,a,s,i,o,c){(function(t,n,e,r,a){!function(t,n,e,r,a){const{data:s,size:i}=t;dt(r,s),dt(a,r),e[0]=gt(Z,n),e[1]=e[0];for(let t=i;t<s.length;t+=i){const i=s[t]*n[0]+s[t+1]*n[1]+s[t+2]*n[2];i<e[0]&&(e[0]=i,dt(r,s,t)),i>e[1]&&(e[1]=i,dt(a,s,t))}}(t,n,F,a,r);const s=gt(e,n);F[1]-q<=s&&(r[0]=void 0),F[0]+q>=s&&(a[0]=void 0)})(t,n,e,I,A),void 0!==I[0]&&(ft(y,I,e),mt(y,y),ft(z,I,r),mt(z,z),ft(S,I,a),mt(S,S),Mt(C,z,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,y,o),mt(V,V),k(t,C,s,z,y,c),k(t,N,i,S,z,c),k(t,V,o,y,S,c)),void 0!==A[0]&&(ft(y,A,e),mt(y,y),ft(z,A,r),mt(z,z),ft(S,A,a),mt(S,S),Mt(C,z,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,y,o),mt(V,V),k(t,C,s,z,y,c),k(t,N,i,S,z,c),k(t,V,o,y,S,c))}const T=[0,0,0],F=(0,j.vt)(),Q=(0,u.vt)(),E=(0,u.vt)(),X=(0,u.vt)(),D=(0,u.vt)(),Y=(0,u.vt)(),R=(0,u.vt)();function k(t,n,e,r,a,s){if(_t(n)<q)return;Mt(Q,e,n),Mt(E,r,n),Mt(X,a,n),B(t,n,F),Y[1]=F[0],D[1]=F[1],R[1]=D[1]-Y[1];const i=[e,r,a],o=[Q,E,X];for(let e=0;e<3;++e){B(t,i[e],F),Y[0]=F[0],D[0]=F[1],B(t,o[e],F),Y[2]=F[0],D[2]=F[1],R[0]=D[0]-Y[0],R[2]=D[2]-Y[2];const r=ut(R);r<s.quality&&(dt(s.b0,i[e]),dt(s.b1,n),dt(s.b2,o[e]),s.quality=r)}}const Z=(0,u.vt)();function B(t,n,e){const{data:r,size:a}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=a){const a=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];e[0]=Math.min(e[0],a),e[1]=Math.max(e[1],a)}}function U(t,n,e){e.center=t,e.halfSize=(0,c.j)(n,n,.5),e.quaternion=o.zK}const H=(0,u.vt)(),K=(0,u.vt)(),L=(0,u.vt)(),G=(0,u.vt)(),W=(0,u.vt)(),J=(0,u.vt)();function $(t,n,e){dt(H,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?H[0]=0:Math.abs(n[1])>Math.abs(n[2])?H[1]=0:H[2]=0,_t(H)<q&&(H[0]=H[1]=H[2]=1),Mt(K,n,H),mt(K,K),Mt(L,n,K),mt(L,L),tt(t,n,K,L,G,W),ft(J,W,G),it(n,K,L,G,W,J,e)}function tt(t,n,e,r,a,s){B(t,n,F),a[0]=F[0],s[0]=F[1],B(t,e,F),a[1]=F[0],s[1]=F[1],B(t,r,F),a[2]=F[0],s[2]=F[1]}const nt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),at=(0,a.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function it(t,n,e,r,a,s,i){at[0]=t[0],at[1]=t[1],at[2]=t[2],at[3]=n[0],at[4]=n[1],at[5]=n[2],at[6]=e[0],at[7]=e[1],at[8]=e[2],i.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,a=(e+2)%3;let s=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*a+a]+1);t[e]=.5*s,s=.5/s,t[3]=(n[3*r+a]-n[3*a+r])*s,t[r]=(n[3*r+e]+n[3*e+r])*s,t[a]=(n[3*a+e]+n[3*e+a])*s}return t}(st,at),ht(nt,r,a),lt(nt,nt,.5),lt(et,t,nt[0]),lt(rt,n,nt[1]),ht(et,et,rt),lt(rt,e,nt[2]),i.center=(0,c.i)(et,et,rt),i.halfSize=(0,c.j)(nt,s,.5)}class ot{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:a,size:s}=t;for(let t=0;t<a.length;t+=s){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];dt(this.minVert[t],a,n),n=r[t],dt(this.maxVert[t],a,n)}}}class ct{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function lt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function dt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function Mt(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function _t(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function vt(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function gt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class bt{constructor(t=u.uY,n=kt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return bt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new bt;return n._copyFromData(t),n}static fromJSON(t){return new bt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get center(){return(0,c.h)(b.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.h)(b.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,i.hZ)(b.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const a=t[r];a[0]=(1&r?-1:1)*n[3],a[1]=(2&r?-1:1)*n[4],a[2]=(4&r?-1:1)*n[5],(0,c.r)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}}doesIntersectFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectSphere(t){xt[0]=this._data[0]-t.center[0],xt[1]=this._data[1]-t.center[1],xt[2]=this._data[2]-t.center[2];const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(xt,xt,jt),(0,c.u)(xt,xt),pt[0]=Math.min(xt[0],this._data[3]),pt[1]=Math.min(xt[1],this._data[4]),pt[2]=Math.min(xt[2],this._data[5]),(0,c.v)(pt,xt)<t.radius*t.radius}intersectSphereWithMBS(t,n=this.radius){const e=this._data;xt[0]=e[0]-t.center[0],xt[1]=e[1]-t.center[1],xt[2]=e[2]-t.center[2];const r=t.radius,a=r+n;return!((0,c.w)(xt)>a*a)&&(jt[0]=-e[6],jt[1]=-e[7],jt[2]=-e[8],jt[3]=e[9],(0,c.r)(xt,xt,jt),(0,c.u)(xt,xt),pt[0]=Math.min(xt[0],e[3]),pt[1]=Math.min(xt[1],e[4]),pt[2]=Math.min(xt[2],e[5]),(0,c.v)(pt,xt)<r*r)}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,v.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,a=jt;a[0]=-r[6],a[1]=-r[7],a[2]=-r[8],a[3]=r[9],xt[0]=t[0]-r[0],xt[1]=t[1]-r[1],xt[2]=t[2]-r[2];const s=(0,c.r)(xt,xt,jt),i=(0,c.r)(pt,n,jt);let o=-1/0,u=1/0;const h=this.getHalfSize(Ft);for(let t=0;t<3;t++){const n=s[t],r=i[t],a=h[t]+e;if(Math.abs(r)>1e-6){const t=(a-n)/r,e=(-a-n)/r;o=Math.max(o,Math.min(t,e)),u=Math.min(u,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=u}projectedArea(t,n,e,a){const s=this.getQuaternion(Pt);(0,i.Xr)(jt,s),xt[0]=t[0]-this._data[0],xt[1]=t[1]-this._data[1],xt[2]=t[2]-this._data[2],(0,c.r)(xt,xt,jt);const o=this.getHalfSize(Ft),u=xt[0]<-o[0]?-1:xt[0]>o[0]?1:0,f=xt[1]<-o[1]?-1:xt[1]>o[1]?1:0,l=xt[2]<-o[2]?-1:xt[2]>o[2]?1:0,d=Math.abs(u)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const M=1===d?4:6,m=6*(u+3*f+9*l+13);(0,r.I0)(Qt,s),(0,r.hs)(Qt,Qt,o);const _=this.getCenter(Ot);for(let t=0;t<M;t++){const e=yt[m+t];(0,c.h)(xt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.t)(xt,xt,Qt),(0,c.i)(wt,_,xt),wt[3]=1,(0,h.t)(wt,wt,n);const r=1/Math.max(1e-6,wt[3]);At[2*t]=wt[0]*r,At[2*t+1]=wt[1]*r}const v=2*M-2;let g=At[0]*(At[3]-At[v+1])+At[v]*(At[1]-At[v-1]);for(let t=2;t<v;t+=2)g+=At[t]*(At[t+3]-At[t-1]);return Math.abs(g)*e*a*.125}projectedRadius(t){const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(xt,t,jt),Math.abs(xt[0]*this._data[3])+Math.abs(xt[1]*this._data[4])+Math.abs(xt[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,v.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,v.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Qt,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),s=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-s,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+s,t[5]=this._data[2]+i}transform(t,n,e,r=0,a=(0,d.lO)(e),s=(0,d.lO)(n),o=(0,_.jd)(n,s)){if(e===a)n.isGeographic?function(t,n,e,r,a=(0,d.lO)(e)){const s=(0,l.tO)(e),o=1+Math.max(0,r)/(s.radius+t.centerZ);t.getCenter(Vt),Vt[2]+=r,(0,m.projectBuffer)(Vt,e,0,Vt,a,0),n.center=Vt;const u=t.getQuaternion(Pt);n.quaternion=u,(0,i.Xr)(jt,u),(0,c.h)(Dt,0,0,1),(0,c.r)(Dt,Dt,jt);const h=t.getHalfSize(Ft);(0,c.h)(Dt,h[0]*Math.abs(Dt[0]),h[1]*Math.abs(Dt[1]),h[2]*Math.abs(Dt[2])),(0,c.j)(Dt,Dt,s.inverseFlattening),(0,c.i)(Dt,h,Dt),n.halfSize=(0,c.j)(Dt,Dt,o)}(this,t,n,r,s):function(t,n,e,r,a=(0,d.lO)(e),s=(0,_.jd)(e,a)){t.getCorners(Xt),t.getCenter(Vt),Vt[2]+=r,(0,M.l)(e,Vt,Et,a),n.setCenter(Et[12],Et[13],Et[14]);const o=2*Math.sqrt(1+Et[0]+Et[5]+Et[10]);jt[0]=(Et[6]-Et[9])/o,jt[1]=(Et[8]-Et[2])/o,jt[2]=(Et[1]-Et[4])/o,jt[3]=.25*o;const u=t.getQuaternion(Pt);n.quaternion=(0,i.lw)(jt,jt,u),(0,i.Xr)(jt,jt),(0,c.h)(Yt,0,0,0);const h=n.getCenter(Tt);for(const t of Xt)t[2]+=r,s(t,0,t,0),(0,c.a)(Dt,t,h),(0,c.r)(Dt,Dt,jt),(0,c.u)(Dt,Dt),(0,c.x)(Yt,Yt,Dt);n.halfSize=Yt}(this,t,n,r,s,o);else if(n.isWGS84&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a;const s=(0,d.lO)(e);(0,m.projectBuffer)(Ot,t,0,Ot,s,0),St(s,n,Ot,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a,St(t,n,Ot,e,r)}(n,this,e,t,r);else{const a=this.getCenter(Ot);a[2]+=r,(0,m.projectBuffer)(a,n,0,a,e,0),t.center=a,this!==t&&(t.quaternion=this.getQuaternion(Pt),t.halfSize=this.getHalfSize(Ft))}}}const jt=(0,o.vt)(),Pt=(0,o.vt)(),qt=(0,o.vt)(),xt=(0,u.vt)(),pt=(0,u.vt)(),wt=(0,f.vt)();function It(t,n=new bt){return function(t,n){const{data:e,size:r}=t,a=e.length/r;if(a<=0)return;const s=new ot(t);ht(x,s.minProj,s.maxProj),lt(x,x,.5),ft(p,s.maxProj,s.minProj);const i=ut(p),o=new ct;o.quality=i,a<14&&(t=new P.K(new Float64Array(s.buffer,112,42),3));const c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),l=(0,u.vt)(),d=(0,u.vt)(),M=(0,u.vt)(),m=(0,u.vt)();switch(w(s,t,m,c,h,f,l,d,M,o)){case 1:return void U(x,p,n);case 2:return void $(t,l,n)}O(t,m,c,h,f,l,d,M,o),tt(t,o.b0,o.b1,o.b2,G,W);const _=(0,u.vt)();ft(_,W,G),o.quality=ut(_),o.quality<i?it(o.b0,o.b1,o.b2,G,W,_,n):U(x,p,n)}(t,n),n}const At=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],yt=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function zt(t,n,e,r,a){const s=t.getQuaternion(Pt);a.quaternion=s,(0,i.Xr)(jt,s);const o=t.getCenter(Ot),h=t.getHalfSize(Ft);if(1===r){(0,c.r)(Dt,o,jt),(0,c.u)(Yt,Dt),(0,c.y)(Rt,Yt,h),(0,c.a)(Rt,Yt,Rt);const r=(0,c.b)(Rt);(0,c.i)(Rt,Yt,h);const s=(0,c.b)(Rt);if(r<e)a.center=o,(0,c.h)(Dt,e,e,e),a.halfSize=(0,c.i)(Dt,h,Dt);else{const i=s>0?1+n/s:1,o=r>0?1+e/r:1,u=(o+i)/2,f=(o-i)/2;(0,c.j)(Rt,Yt,f),a.halfSize=(0,c.c)(Rt,Rt,h,u),(0,c.j)(Rt,Yt,u),(0,c.c)(Rt,Rt,h,f),(0,c.z)(Dt,Dt),(0,c.A)(Dt,Rt,Dt);const l=t.getQuaternion(qt);a.center=(0,c.r)(Dt,Dt,l)}}else{a.center=(0,c.c)(Dt,o,u.Cb,(e+n)/2);const t=(0,c.r)(Dt,u.Cb,jt);(0,c.u)(t,t),a.halfSize=(0,c.c)(Yt,h,t,(e-n)/2)}return a}function St(t,n,e,a,s){const i=n.getQuaternion(Pt),o=(0,r.I0)(Qt,i),c=n.getHalfSize(Ft);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Vt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=Vt[t]*o[3*t+n];Ct[3*t+n]=r}}(0,m.projectBuffer)(Ct,t,0,Ct,a,0,8),It(Nt,s)}const Ct=new Array(24),Nt=new P.K(Ct,3),Vt=(0,u.vt)(),Ot=(0,u.vt)(),Tt=(0,u.vt)(),Ft=(0,u.vt)(),Qt=(0,a.vt)(),Et=(0,s.vt)(),Xt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Dt=(0,u.vt)(),Yt=(0,u.vt)(),Rt=(0,u.vt)(),kt=(0,u.CN)(-1,-1,-1)},67026:(t,n,e)=>{e.d(n,{A6:()=>m,Xd:()=>h,Xr:()=>d,hZ:()=>v,lw:()=>f,t2:()=>y,x8:()=>u});var r=e(29242),a=e(82534),s=e(51850),i=e(34304),o=e(38954),c=e(87317);function u(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function h(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],a=n[1],s=n[2],i=n[3],o=e[0],c=e[1],u=e[2],h=e[3];return t[0]=r*h+i*o+a*u-s*c,t[1]=a*h+i*c+s*o-r*u,t[2]=s*h+i*u+r*c-a*o,t[3]=i*h-r*o-a*c-s*u,t}function l(t,n,e,r){const a=n[0],s=n[1],o=n[2],c=n[3];let u,h,f,l,d,M=e[0],m=e[1],_=e[2],v=e[3];return h=a*M+s*m+o*_+c*v,h<0&&(h=-h,M=-M,m=-m,_=-_,v=-v),1-h>(0,i.FD)()?(u=Math.acos(h),f=Math.sin(u),l=Math.sin((1-r)*u)/f,d=Math.sin(r*u)/f):(l=1-r,d=r),t[0]=l*a+d*M,t[1]=l*s+d*m,t[2]=l*o+d*_,t[3]=l*c+d*v,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,s=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*a+s]-n[3*s+a])*r,t[a]=(n[3*a+e]+n[3*e+a])*r,t[s]=(n[3*s+e]+n[3*e+s])*r}return t}function m(t,n,e,r){const a=.5*Math.PI/180;n*=a,e*=a,r*=a;const s=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),u=Math.sin(r),h=Math.cos(r);return t[0]=s*c*h-i*o*u,t[1]=i*o*h+s*c*u,t[2]=i*c*u-s*o*h,t[3]=i*c*h+s*o*u,t}const _=c.f,v=c.c,g=c.i,b=f,j=c.s,P=c.h,q=c.l,x=c.j,p=x,w=c.d,I=w,A=c.n,y=c.a,z=c.e,S=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),V=(0,a.vt)(),O=(0,a.vt)(),T=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],a=n[2];return t[0]=e,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-a*a)),t},conjugate:d,copy:_,dot:P,equals:z,exactEquals:y,fromEuler:m,fromMat3:M,getAxisAngle:h,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],a=n[2],s=n[3],i=e*e+r*r+a*a+s*s,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-a*o,t[3]=s*o,t},len:p,length:x,lerp:q,mul:b,multiply:f,normalize:A,random:function(t){const n=i.Ov,e=n(),r=n(),a=n(),s=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=s*Math.sin(2*Math.PI*r),t[1]=s*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=a*c+s*o,t[2]=s*c-a*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-s*o,t[1]=a*c+i*o,t[2]=s*c+r*o,t[3]=i*c-a*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*o,t[1]=a*c-r*o,t[2]=s*c+i*o,t[3]=i*c-s*o,t},rotationTo:function(t,n,e){const r=(0,o.g)(n,e);return r<-.999999?((0,o.f)(S,C,n),(0,o.B)(S)<1e-6&&(0,o.f)(S,N,n),(0,o.n)(S,S),u(t,S,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.f)(S,n,e),t[0]=S[0],t[1]=S[1],t[2]=S[2],t[3]=1+r,A(t,t))},scale:j,set:v,setAxes:function(t,n,e,r){const a=T;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=r[0],a[4]=r[1],a[7]=r[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],A(t,M(t,a))},setAxisAngle:u,slerp:l,sqlerp:function(t,n,e,r,a,s){return l(V,n,a,s),l(O,e,r,s),l(t,V,O,2*s*(1-s)),t},sqrLen:I,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>h});var r=e(73941),a=e(16930),s=e(21325);const i=new a.A(r.fv),o=new a.A(r.FY),c=new a.A(r.LJ),u=new a.A(r.Ro);function h(t){const n=f.get(t);if(n)return n;let e=i;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,s.tl)(n)||(0,s.tl)(r)?e=o:((0,s.ZL)(n)||(0,s.ZL)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===l?e=o:t===d&&(e=c)}}}return f.set(t,e),e}const f=new Map,l=o.wkt.toUpperCase(),d=c.wkt.toUpperCase()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9708],{965:(e,t,i)=>{i.d(t,{A:()=>x});var n,o=i(31635),s=i(25482),r=i(4718),l=i(3483),p=i(91429),a=i(36005);let u=n=class extends s.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new n({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],u.prototype,"returnType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),u=n=(0,o.Cg)([(0,p.$K)("esri.form.ExpressionInfo")],u);const d=u;var y,m=i(39410),c=i(95898),h=i(30524),g=i(43937);const w=(0,c.sb)(m.A);let x=y=class extends s.o{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return(0,c.dp)(e,w)}readElements(e,t){return(0,c.rS)(t.formElements,w)}writeElements(e,t){t.formElements=(0,c.U2)(e,w)}clone(){return new y({description:this.description,expressionInfos:(0,r.o8)(this.expressionInfos),elements:(0,r.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:n,elements:o,expressionInfos:s,title:r}=this;if(C(i,e,n),C(i,e,r),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=f(e),n=[];for(const e of t)i.has(e.name)&&n.push(e.expression);return n}(o,s).map(t=>(0,h.Dx)(i,e,null,t));await Promise.all(l);for(const n of o)v(i,{fieldsIndex:e,relationships:t},n);return Array.from(i).sort()}};function v(e,t,i){const{fieldsIndex:n}=t;if(!n||n.fields.length!==e.size)switch(C(e,n,i.label),C(e,n,i.description),i.type){case"field":(0,h.rq)(e,n,i.fieldName);break;case"group":i.elements.forEach(i=>v(e,t,i));break;case"relationship":if(t.relationships){const o=t.relationships.find(e=>e.id===i.relationshipId);o&&(0,h.rq)(e,n,o.keyField)}(0,h._w)(e,n,i.orderByFields?.map(e=>e.field));break;case"text":C(e,n,i.text)}}function f(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!(0,c.oo)(i))if((0,c.CG)(i))(0,l.FB)(t,f(i.elements));else if((0,l.kb)(t,i.editableExpression),(0,c.jt)(i)){const{requiredExpression:e,valueExpression:n}=i;(0,l.FB)(t,[e,n])}return t}function C(e,t,i){(0,h._w)(e,t,(0,h.nw)(i))}(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],x.prototype,"elements",void 0),(0,o.Cg)([(0,p.wg)("elements")],x.prototype,"castElements",null),(0,o.Cg)([(0,a.w)("elements",["formElements"])],x.prototype,"readElements",null),(0,o.Cg)([(0,g.K)("elements")],x.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:[d],json:{write:!0}})],x.prototype,"expressionInfos",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"title",void 0),x=y=(0,o.Cg)([(0,p.$K)("esri.form.FormTemplate")],x)},6455:(e,t,i)=>{i.d(t,{FJ:()=>w,Dp:()=>x,KV:()=>v});var n=i(31635),o=i(93637),s=i(91429),r=i(89317),l=i(69540),p=i(7762),a=i(25482),u=i(83960),d=i(13069);const y={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends((0,l.OU)(a.o)){constructor(e){super(e),this.id=(0,d.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:y})],m.prototype,"maxScale",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:y})],m.prototype,"minScale",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,n.Cg)([(0,s.$K)("esri.layers.support.DisplayFilter")],m);var c=i(41560),h=i(43937);let g=class extends((0,l.OU)(a.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(p.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,n){const o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{const i=(0,u.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===i?n:i}),t[i]=o.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,c.mW)(this,t))}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,s.MZ)({type:p.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,n.Cg)([(0,h.K)("filters")],g.prototype,"writeFilters",null),(0,n.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,n.Cg)([(0,s.$K)("esri.layers.support.DisplayFilterInfo")],g);const w=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,s.MZ)(x)],i.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,s.MZ)(v)],i.prototype,"displayFilterInfo",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},x={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:r.K,writer(e,t,i){(0,o.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:r.K},origins:{"web-scene":{write:!1,read:!1}}}}},10184:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(31635),o=i(69540),s=i(25482),r=i(88930),l=i(91429),p=i(73133),a=i(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,r.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,a.e)(p.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,l.$K)("esri.time.TimeInterval")],u)},17036:(e,t,i)=>{i.d(t,{p:()=>p});var n=i(44208),o=i(53966),s=i(20437),r=i(95466),l=i(30524);function p(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return r.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},21774:(e,t,i)=>{i.d(t,{A:()=>p});var n,o=i(31635),s=i(91429),r=i(28787);let l=n=class extends r.A{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new n({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"textFormat",void 0),(0,o.Cg)([(0,s.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=n=(0,o.Cg)([(0,s.$K)("esri.form.elements.TextElement")],l);const p=l},28787:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(31635),o=i(25482),s=i(10107),r=i(64108);let l=class extends o.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"visibilityExpression",void 0),l=(0,n.Cg)([(0,r.$)("esri.form.elements.Element")],l)},33421:(e,t,i)=>{i.d(t,{A:()=>u});var n,o=i(31635),s=i(4718),r=i(91429),l=i(28787),p=i(49852);let a=n=class extends l.A{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new n({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],a.prototype,"displayCount",void 0),(0,o.Cg)([(0,r.MZ)({type:["list"],json:{write:!0}})],a.prototype,"displayType",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"editableExpression",void 0),(0,o.Cg)([(0,r.MZ)({type:[p.A],json:{write:!0}})],a.prototype,"orderByFields",void 0),(0,o.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],a.prototype,"relationshipId",void 0),(0,o.Cg)([(0,r.MZ)({type:["relationship"],json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=n=(0,o.Cg)([(0,r.$K)("esri.form.elements.RelationshipElement")],a);const u=a},39410:(e,t,i)=>{i.d(t,{A:()=>c});var n,o=i(31635),s=i(4718),r=i(91429),l=i(79901),p=i(43937),a=i(28787),u=i(95898),d=i(36005);let y=n=class extends a.A{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return(0,u.dp)(e,m,!1)}readElements(e,t){return(0,u.rS)(t.formElements,m,!1)}writeElements(e,t){t.formElements=(0,u.U2)(e,m,!1)}clone(){return new n({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,r.MZ)({json:{write:!0}})],y.prototype,"elements",void 0),(0,o.Cg)([(0,l.w)("elements")],y.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],y.prototype,"readElements",null),(0,o.Cg)([(0,p.K)("elements")],y.prototype,"writeElements",null),(0,o.Cg)([(0,r.MZ)({type:["collapsed","expanded"],json:{write:!0}})],y.prototype,"initialState",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=n=(0,o.Cg)([(0,r.$K)("esri.form.elements.GroupElement")],y);const m=(0,u.sb)(y),c=y},58769:(e,t,i)=>{i.d(t,{A:()=>Q});var n=i(31635),o=i(91429),s=i(28787),r=i(25482);let l=class extends r.o{constructor(e){super(e),this.type=null}};(0,n.Cg)([(0,o.MZ)()],l.prototype,"type",void 0),l=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.Input")],l);const p=l;let a=class extends p{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"maxLength",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"minLength",void 0),a=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextInput")],a);const u=a;var d;let y=d=class extends u{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new d({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=d=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.BarcodeScannerInput")],y);const m=y;var c;let h=c=class extends p{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new c({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"noValueOptionLabel",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"showNoValueOption",void 0),(0,n.Cg)([(0,o.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=c=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.ComboBoxInput")],h);const g=h;var w,x=i(36005),v=i(43937);function f(e){return null!=e?e:null}function C(e){return null!=e?e:null}let M=w=class extends p{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return f(t.max)}writeMax(e,t){t.max=C(e)}readMin(e,t){return f(t.min)}writeMin(e,t){t.min=C(e)}clone(){return new w({max:this.max,min:this.min})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],M.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],M.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],M.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],M.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],M.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],M.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],M.prototype,"type",void 0),M=w=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DatePickerInput")],M);const b=M;var j;function Z(e){return null!=e?e:null}function T(e){return null!=e?e:null}let E=j=class extends p{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return Z(t.max)}writeMax(e,t){t.max=T(e)}readMin(e,t){return Z(t.min)}writeMin(e,t){t.min=T(e)}readTimeResolution(e,t){return Z(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=T(e)}clone(){return new j({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"includeTimeOffset",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],E.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],E.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],E.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],E.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"timeResolution",void 0),(0,n.Cg)([(0,x.w)("timeResolution")],E.prototype,"readTimeResolution",null),(0,n.Cg)([(0,v.K)("timeResolution")],E.prototype,"writeTimeResolution",null),(0,n.Cg)([(0,o.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=j=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],E);const S=E;var I;function A(e){return null!=e?new Date(e):null}function O(e){return e?e.getTime():null}let F=I=class extends p{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return A(t.max)}writeMax(e,t){t.max=O(e)}readMin(e,t){return A(t.min)}writeMin(e,t){t.min=O(e)}clone(){return new I({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"includeTime",void 0),(0,n.Cg)([(0,o.MZ)({type:Date,json:{type:Number,write:!0}})],F.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],F.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],F.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{type:Number,write:!0}})],F.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],F.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],F.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],F.prototype,"type",void 0),F=I=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DateTimePickerInput")],F);const N=F;var K;let k=K=class extends p{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new K({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],k.prototype,"noValueOptionLabel",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"showNoValueOption",void 0),(0,n.Cg)([(0,o.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],k.prototype,"type",void 0),k=K=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.RadioButtonsInput")],k);const R=k;var $;let U=$=class extends p{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new $({offValue:this.offValue,onValue:this.onValue})}};(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],U.prototype,"offValue",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],U.prototype,"onValue",void 0),(0,n.Cg)([(0,o.MZ)({type:["switch"],json:{read:!1,write:!0}})],U.prototype,"type",void 0),U=$=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.SwitchInput")],U);const V=U;var L;let B=L=class extends u{constructor(e){super(e),this.type="text-area"}clone(){return new L({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["text-area"],json:{read:!1,write:!0}})],B.prototype,"type",void 0),B=L=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextAreaInput")],B);const D=B;var W;let q=W=class extends u{constructor(e){super(e),this.type="text-box"}clone(){return new W({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["text-box"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=W=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextBoxInput")],q);const G=q;var _;function P(e){return null!=e?e:null}function J(e){return null!=e?e:null}let z=_=class extends p{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return P(t.max)}writeMax(e,t){t.max=J(e)}readMin(e,t){return P(t.min)}writeMin(e,t){t.min=J(e)}readTimeResolution(e,t){return P(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=J(e)}clone(){return new _({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],z.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],z.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],z.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],z.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],z.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],z.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],z.prototype,"timeResolution",void 0),(0,n.Cg)([(0,x.w)("timeResolution")],z.prototype,"readTimeResolution",null),(0,n.Cg)([(0,v.K)("timeResolution")],z.prototype,"writeTimeResolution",null),(0,n.Cg)([(0,o.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],z.prototype,"type",void 0),z=_=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TimePickerInput")],z);const H={base:p,key:"type",typeMap:{"barcode-scanner":m,"combo-box":g,"date-picker":b,"datetime-picker":N,"datetimeoffset-picker":S,"radio-buttons":R,switch:V,"text-area":D,"text-box":G,"time-picker":z}};var X,Y=i(80451);let Q=X=class extends s.A{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new X({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,o.MZ)({types:Y.gK,json:{read:{reader:Y.rS},write:!0}})],Q.prototype,"domain",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],Q.prototype,"editable",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"editableExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"fieldName",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"hint",void 0),(0,n.Cg)([(0,o.MZ)({types:H,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Q.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"requiredExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!0}})],Q.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"valueExpression",void 0),Q=X=(0,n.Cg)([(0,o.$K)("esri.form.elements.FieldElement")],Q)},73133:(e,t,i)=>{i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,i)=>{i.d(t,{B:()=>y,e:()=>m});var n=i(31635),o=i(91429),s=i(89317),r=i(30524),l=i(96184),p=i(73133),a=i(79677),u=i(10184),d=i(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},m=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,o=p.j.fromJSON(i.timeOffsetUnits);return n&&o?new u.A({value:n,unit:o}):null}set timeInfo(e){(0,r.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,n.Cg)([(0,o.MZ)({type:u.A})],i.prototype,"timeOffset",void 0),(0,n.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,n.Cg)([(0,o.MZ)({value:null,type:l.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,n.Cg)([(0,o.MZ)(y)],i.prototype,"useViewTime",void 0),i=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>r,oW:()=>p,zx:()=>l});var n=i(34727),o=i(86211);const s=96;function r(e,t){const i=t||e.extent,n=e.width,r=(0,o.GA)(i?.spatialReference);return i&&n?i.width/n*r*o.dy*s:0}function l(e,t,i){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,i)}function p(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},85105:(e,t,i)=>{i.d(t,{A:()=>A});var n=i(31635),o=i(91429),s=i(28787),r=i(36005),l=i(69540),p=i(25482);let a=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.type=null}};(0,n.Cg)([(0,o.MZ)()],a.prototype,"type",void 0),a=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.Input")],a);const u=a;var d=i(56507);const y=["any","capture","upload"];let m=class extends u{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,n.Cg)([(0,o.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],m.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],m.prototype,"inputMethod",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxDuration",void 0),m=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.AudioInput")],m);const c=m;let h=class extends u{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,n.Cg)([(0,o.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],h.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],h.prototype,"maxFileSize",void 0),h=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.DocumentInput")],h);const g=h;let w=class extends u{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,n.Cg)([(0,o.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],w.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],w.prototype,"inputMethod",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],w.prototype,"maxImageSize",void 0),w=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.ImageInput")],w);const x=w;let v=class extends u{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,n.Cg)([(0,o.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],v.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],v.prototype,"inputMethod",void 0),v=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.SignatureInput")],v);const f=v;let C=class extends u{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,n.Cg)([(0,o.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],C.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],C.prototype,"inputMethod",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDuration",void 0),C=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.VideoInput")],C);const M=C;function b(e){return{nestableTypes:{base:u,key:"type",typeMap:{audio:c,document:g,image:x,signature:f,video:M}},allTypes:{base:u,key:"type",typeMap:{attachment:e,audio:c,document:g,image:x,signature:f,video:M}}}}var j=i(43937);let Z=class extends u{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map(e=>(0,d.aq)(t.nestableTypes,e)):null}(e,T)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,T)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,T)}};(0,n.Cg)([(0,o.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],Z.prototype,"attachmentAssociationType",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:{isRequired:!0}}})],Z.prototype,"inputTypes",void 0),(0,n.Cg)([(0,o.wg)("inputTypes")],Z.prototype,"castInputs",null),(0,n.Cg)([(0,r.w)("inputTypes")],Z.prototype,"readInputs",null),(0,n.Cg)([(0,j.K)("inputTypes")],Z.prototype,"writeInputs",null),Z=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.AttachmentInput")],Z);const T=b(Z);var E;const S=b(Z);let I=E=class extends s.A{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new E({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"allowUserRename",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],I.prototype,"attachmentKeyword",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"displayFilename",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"editableExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"filenameExpression",void 0),(0,n.Cg)([(0,o.MZ)({types:S.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],I.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],I.prototype,"maxAttachmentCount",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],I.prototype,"minAttachmentCount",void 0),(0,n.Cg)([(0,o.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"useOriginalFilename",void 0),I=E=(0,n.Cg)([(0,o.$K)("esri.form.elements.AttachmentElement")],I);const A=I},93885:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(31635),o=i(69540),s=i(91429),r=i(28787),l=i(83342);let p=class extends((0,o.OU)(r.A)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,n.Cg)([(0,s.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],p.prototype,"associationTypes",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"editableExpression",void 0),(0,n.Cg)([(0,s.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,n.Cg)([(0,s.$K)("esri.form.elements.UtilityNetworkAssociationsElement")],p);const a=p},95898:(e,t,i)=>{i.d(t,{CG:()=>d,U2:()=>h,dp:()=>g,jt:()=>u,oo:()=>y,rS:()=>c,sb:()=>m});var n=i(56507),o=i(85105),s=i(28787),r=i(58769),l=i(33421),p=i(21774),a=i(93885);const u=e=>"field"===e.type,d=e=>"group"===e.type,y=e=>"text"===e.type;function m(e){return{typesWithGroup:{base:s.A,key:"type",typeMap:{attachment:o.A,field:r.A,group:e,relationship:l.A,text:p.A,utilityNetworkAssociations:a.A}},typesWithoutGroup:{base:s.A,key:"type",typeMap:{attachment:o.A,field:r.A,relationship:l.A,text:p.A,utilityNetworkAssociations:a.A}}}}function c(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>n[e.type]).map(e=>n[e.type].fromJSON(e))}function h(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>n[e.type]).map(e=>e.toJSON())}function g(e,t,i=!0){return e?e.map(e=>(0,n.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}},96184:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(31635),o=i(69540),s=i(25482),r=i(91429),l=i(79677),p=i(10184),a=i(56400),u=i(36005),d=i(43937);function y(e,t){return p.A.fromJSON({value:e,unit:t})}let m=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,n.Cg)([(0,r.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,u.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,d.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,r.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,n.Cg)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,n.Cg)([(0,d.K)("interval")],m.prototype,"writeInterval",null),(0,n.Cg)([(0,r.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,n.Cg)([(0,r.MZ)((0,a.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,n.Cg)([(0,r.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,n.Cg)([(0,r.$K)("esri.layers.support.TimeInfo")],m)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9708],{965:(e,t,i)=>{i.d(t,{A:()=>x});var n,o=i(31635),s=i(25482),r=i(4718),l=i(3483),p=i(91429),a=i(36005);let u=n=class extends s.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new n({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],u.prototype,"returnType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),u=n=(0,o.Cg)([(0,p.$K)("esri.form.ExpressionInfo")],u);const d=u;var y,m=i(39410),c=i(95898),h=i(30524),g=i(43937);const w=(0,c.sb)(m.A);let x=y=class extends s.o{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return(0,c.dp)(e,w)}readElements(e,t){return(0,c.rS)(t.formElements,w)}writeElements(e,t){t.formElements=(0,c.U2)(e,w)}clone(){return new y({description:this.description,expressionInfos:(0,r.o8)(this.expressionInfos),elements:(0,r.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:n,elements:o,expressionInfos:s,title:r}=this;if(C(i,e,n),C(i,e,r),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=f(e),n=[];for(const e of t)i.has(e.name)&&n.push(e.expression);return n}(o,s).map(t=>(0,h.Dx)(i,e,null,t));await Promise.all(l);for(const n of o)v(i,{fieldsIndex:e,relationships:t},n);return Array.from(i).sort()}};function v(e,t,i){const{fieldsIndex:n}=t;if(!n||n.fields.length!==e.size)switch(C(e,n,i.label),C(e,n,i.description),i.type){case"field":(0,h.rq)(e,n,i.fieldName);break;case"group":i.elements.forEach(i=>v(e,t,i));break;case"relationship":if(t.relationships){const o=t.relationships.find(e=>e.id===i.relationshipId);o&&(0,h.rq)(e,n,o.keyField)}(0,h._w)(e,n,i.orderByFields?.map(e=>e.field));break;case"text":C(e,n,i.text)}}function f(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!(0,c.oo)(i))if((0,c.CG)(i))(0,l.FB)(t,f(i.elements));else if((0,l.kb)(t,i.editableExpression),(0,c.jt)(i)){const{requiredExpression:e,valueExpression:n}=i;(0,l.FB)(t,[e,n])}return t}function C(e,t,i){(0,h._w)(e,t,(0,h.nw)(i))}(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],x.prototype,"elements",void 0),(0,o.Cg)([(0,p.wg)("elements")],x.prototype,"castElements",null),(0,o.Cg)([(0,a.w)("elements",["formElements"])],x.prototype,"readElements",null),(0,o.Cg)([(0,g.K)("elements")],x.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:[d],json:{write:!0}})],x.prototype,"expressionInfos",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"title",void 0),x=y=(0,o.Cg)([(0,p.$K)("esri.form.FormTemplate")],x)},6455:(e,t,i)=>{i.d(t,{FJ:()=>w,Dp:()=>x,KV:()=>v});var n=i(31635),o=i(93637),s=i(91429),r=i(89317),l=i(69540),p=i(7762),a=i(25482),u=i(83960),d=i(13069);const y={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends((0,l.OU)(a.o)){constructor(e){super(e),this.id=(0,d.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:y})],m.prototype,"maxScale",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:y})],m.prototype,"minScale",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,n.Cg)([(0,s.$K)("esri.layers.support.DisplayFilter")],m);var c=i(41560),h=i(43937);let g=class extends((0,l.OU)(a.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(p.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,n){const o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{const i=(0,u.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===i?n:i}),t[i]=o.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,c.mW)(this,t))}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,s.MZ)({type:p.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,n.Cg)([(0,h.K)("filters")],g.prototype,"writeFilters",null),(0,n.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,n.Cg)([(0,s.$K)("esri.layers.support.DisplayFilterInfo")],g);const w=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,s.MZ)(x)],i.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,s.MZ)(v)],i.prototype,"displayFilterInfo",void 0),i=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},x={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:r.K,writer(e,t,i){(0,o.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:r.K},origins:{"web-scene":{write:!1,read:!1}}}}},10184:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(31635),o=i(69540),s=i(25482),r=i(88930),l=i(91429),p=i(73133),a=i(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,r.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,a.e)(p.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,n.Cg)([(0,l.$K)("esri.time.TimeInterval")],u)},17036:(e,t,i)=>{i.d(t,{p:()=>p});var n=i(44208),o=i(53966),s=i(20437),r=i(95466),l=i(30524);function p(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return r.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},21774:(e,t,i)=>{i.d(t,{A:()=>p});var n,o=i(31635),s=i(91429),r=i(28787);let l=n=class extends r.A{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new n({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"textFormat",void 0),(0,o.Cg)([(0,s.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=n=(0,o.Cg)([(0,s.$K)("esri.form.elements.TextElement")],l);const p=l},28787:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(31635),o=i(25482),s=i(10107),r=i(64108);let l=class extends o.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"visibilityExpression",void 0),l=(0,n.Cg)([(0,r.$)("esri.form.elements.Element")],l)},33421:(e,t,i)=>{i.d(t,{A:()=>u});var n,o=i(31635),s=i(4718),r=i(91429),l=i(28787),p=i(49852);let a=n=class extends l.A{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new n({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],a.prototype,"displayCount",void 0),(0,o.Cg)([(0,r.MZ)({type:["list"],json:{write:!0}})],a.prototype,"displayType",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"editableExpression",void 0),(0,o.Cg)([(0,r.MZ)({type:[p.A],json:{write:!0}})],a.prototype,"orderByFields",void 0),(0,o.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],a.prototype,"relationshipId",void 0),(0,o.Cg)([(0,r.MZ)({type:["relationship"],json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=n=(0,o.Cg)([(0,r.$K)("esri.form.elements.RelationshipElement")],a);const u=a},39410:(e,t,i)=>{i.d(t,{A:()=>c});var n,o=i(31635),s=i(4718),r=i(91429),l=i(79901),p=i(43937),a=i(28787),u=i(95898),d=i(36005);let y=n=class extends a.A{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return(0,u.dp)(e,m,!1)}readElements(e,t){return(0,u.rS)(t.formElements,m,!1)}writeElements(e,t){t.formElements=(0,u.U2)(e,m,!1)}clone(){return new n({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,r.MZ)({json:{write:!0}})],y.prototype,"elements",void 0),(0,o.Cg)([(0,l.w)("elements")],y.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],y.prototype,"readElements",null),(0,o.Cg)([(0,p.K)("elements")],y.prototype,"writeElements",null),(0,o.Cg)([(0,r.MZ)({type:["collapsed","expanded"],json:{write:!0}})],y.prototype,"initialState",void 0),(0,o.Cg)([(0,r.MZ)({type:String,json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=n=(0,o.Cg)([(0,r.$K)("esri.form.elements.GroupElement")],y);const m=(0,u.sb)(y),c=y},58769:(e,t,i)=>{i.d(t,{A:()=>Q});var n=i(31635),o=i(91429),s=i(28787),r=i(25482);let l=class extends r.o{constructor(e){super(e),this.type=null}};(0,n.Cg)([(0,o.MZ)()],l.prototype,"type",void 0),l=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.Input")],l);const p=l;let a=class extends p{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"maxLength",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"minLength",void 0),a=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextInput")],a);const u=a;var d;let y=d=class extends u{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new d({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=d=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.BarcodeScannerInput")],y);const m=y;var c;let h=c=class extends p{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new c({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"noValueOptionLabel",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"showNoValueOption",void 0),(0,n.Cg)([(0,o.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=c=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.ComboBoxInput")],h);const g=h;var w,x=i(36005),v=i(43937);function f(e){return null!=e?e:null}function C(e){return null!=e?e:null}let M=w=class extends p{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return f(t.max)}writeMax(e,t){t.max=C(e)}readMin(e,t){return f(t.min)}writeMin(e,t){t.min=C(e)}clone(){return new w({max:this.max,min:this.min})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],M.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],M.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],M.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],M.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],M.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],M.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],M.prototype,"type",void 0),M=w=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DatePickerInput")],M);const b=M;var j;function Z(e){return null!=e?e:null}function T(e){return null!=e?e:null}let E=j=class extends p{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return Z(t.max)}writeMax(e,t){t.max=T(e)}readMin(e,t){return Z(t.min)}writeMin(e,t){t.min=T(e)}readTimeResolution(e,t){return Z(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=T(e)}clone(){return new j({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"includeTimeOffset",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],E.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],E.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],E.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],E.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"timeResolution",void 0),(0,n.Cg)([(0,x.w)("timeResolution")],E.prototype,"readTimeResolution",null),(0,n.Cg)([(0,v.K)("timeResolution")],E.prototype,"writeTimeResolution",null),(0,n.Cg)([(0,o.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=j=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],E);const S=E;var I;function A(e){return null!=e?new Date(e):null}function O(e){return e?e.getTime():null}let F=I=class extends p{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return A(t.max)}writeMax(e,t){t.max=O(e)}readMin(e,t){return A(t.min)}writeMin(e,t){t.min=O(e)}clone(){return new I({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"includeTime",void 0),(0,n.Cg)([(0,o.MZ)({type:Date,json:{type:Number,write:!0}})],F.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],F.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],F.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{type:Number,write:!0}})],F.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],F.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],F.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],F.prototype,"type",void 0),F=I=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DateTimePickerInput")],F);const N=F;var K;let k=K=class extends p{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new K({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],k.prototype,"noValueOptionLabel",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"showNoValueOption",void 0),(0,n.Cg)([(0,o.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],k.prototype,"type",void 0),k=K=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.RadioButtonsInput")],k);const R=k;var $;let U=$=class extends p{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new $({offValue:this.offValue,onValue:this.onValue})}};(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],U.prototype,"offValue",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],U.prototype,"onValue",void 0),(0,n.Cg)([(0,o.MZ)({type:["switch"],json:{read:!1,write:!0}})],U.prototype,"type",void 0),U=$=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.SwitchInput")],U);const V=U;var L;let B=L=class extends u{constructor(e){super(e),this.type="text-area"}clone(){return new L({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["text-area"],json:{read:!1,write:!0}})],B.prototype,"type",void 0),B=L=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextAreaInput")],B);const D=B;var W;let q=W=class extends u{constructor(e){super(e),this.type="text-box"}clone(){return new W({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["text-box"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=W=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextBoxInput")],q);const G=q;var _;function P(e){return null!=e?e:null}function J(e){return null!=e?e:null}let z=_=class extends p{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return P(t.max)}writeMax(e,t){t.max=J(e)}readMin(e,t){return P(t.min)}writeMin(e,t){t.min=J(e)}readTimeResolution(e,t){return P(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=J(e)}clone(){return new _({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],z.prototype,"max",void 0),(0,n.Cg)([(0,x.w)("max")],z.prototype,"readMax",null),(0,n.Cg)([(0,v.K)("max")],z.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],z.prototype,"min",void 0),(0,n.Cg)([(0,x.w)("min")],z.prototype,"readMin",null),(0,n.Cg)([(0,v.K)("min")],z.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],z.prototype,"timeResolution",void 0),(0,n.Cg)([(0,x.w)("timeResolution")],z.prototype,"readTimeResolution",null),(0,n.Cg)([(0,v.K)("timeResolution")],z.prototype,"writeTimeResolution",null),(0,n.Cg)([(0,o.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],z.prototype,"type",void 0),z=_=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TimePickerInput")],z);const H={base:p,key:"type",typeMap:{"barcode-scanner":m,"combo-box":g,"date-picker":b,"datetime-picker":N,"datetimeoffset-picker":S,"radio-buttons":R,switch:V,"text-area":D,"text-box":G,"time-picker":z}};var X,Y=i(8631);let Q=X=class extends s.A{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new X({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,o.MZ)({types:Y.gK,json:{read:{reader:Y.rS},write:!0}})],Q.prototype,"domain",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],Q.prototype,"editable",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"editableExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"fieldName",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"hint",void 0),(0,n.Cg)([(0,o.MZ)({types:H,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Q.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"requiredExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!0}})],Q.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],Q.prototype,"valueExpression",void 0),Q=X=(0,n.Cg)([(0,o.$K)("esri.form.elements.FieldElement")],Q)},73133:(e,t,i)=>{i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,i)=>{i.d(t,{B:()=>y,e:()=>m});var n=i(31635),o=i(91429),s=i(89317),r=i(30524),l=i(96184),p=i(73133),a=i(79677),u=i(10184),d=i(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},m=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,o=p.j.fromJSON(i.timeOffsetUnits);return n&&o?new u.A({value:n,unit:o}):null}set timeInfo(e){(0,r.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,n.Cg)([(0,o.MZ)({type:u.A})],i.prototype,"timeOffset",void 0),(0,n.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,n.Cg)([(0,o.MZ)({value:null,type:l.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,n.Cg)([(0,o.MZ)(y)],i.prototype,"useViewTime",void 0),i=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>r,oW:()=>p,zx:()=>l});var n=i(34727),o=i(86211);const s=96;function r(e,t){const i=t||e.extent,n=e.width,r=(0,o.GA)(i?.spatialReference);return i&&n?i.width/n*r*o.dy*s:0}function l(e,t,i){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,i)}function p(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},85105:(e,t,i)=>{i.d(t,{A:()=>A});var n=i(31635),o=i(91429),s=i(28787),r=i(36005),l=i(69540),p=i(25482);let a=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.type=null}};(0,n.Cg)([(0,o.MZ)()],a.prototype,"type",void 0),a=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.Input")],a);const u=a;var d=i(56507);const y=["any","capture","upload"];let m=class extends u{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,n.Cg)([(0,o.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],m.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],m.prototype,"inputMethod",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxDuration",void 0),m=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.AudioInput")],m);const c=m;let h=class extends u{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,n.Cg)([(0,o.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],h.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],h.prototype,"maxFileSize",void 0),h=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.DocumentInput")],h);const g=h;let w=class extends u{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,n.Cg)([(0,o.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],w.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],w.prototype,"inputMethod",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],w.prototype,"maxImageSize",void 0),w=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.ImageInput")],w);const x=w;let v=class extends u{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,n.Cg)([(0,o.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],v.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],v.prototype,"inputMethod",void 0),v=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.SignatureInput")],v);const f=v;let C=class extends u{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,n.Cg)([(0,o.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],C.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:y,json:{write:!0}})],C.prototype,"inputMethod",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxDuration",void 0),C=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.VideoInput")],C);const M=C;function b(e){return{nestableTypes:{base:u,key:"type",typeMap:{audio:c,document:g,image:x,signature:f,video:M}},allTypes:{base:u,key:"type",typeMap:{attachment:e,audio:c,document:g,image:x,signature:f,video:M}}}}var j=i(43937);let Z=class extends u{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map(e=>(0,d.aq)(t.nestableTypes,e)):null}(e,T)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,T)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,T)}};(0,n.Cg)([(0,o.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],Z.prototype,"attachmentAssociationType",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:{isRequired:!0}}})],Z.prototype,"inputTypes",void 0),(0,n.Cg)([(0,o.wg)("inputTypes")],Z.prototype,"castInputs",null),(0,n.Cg)([(0,r.w)("inputTypes")],Z.prototype,"readInputs",null),(0,n.Cg)([(0,j.K)("inputTypes")],Z.prototype,"writeInputs",null),Z=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.attachments.AttachmentInput")],Z);const T=b(Z);var E;const S=b(Z);let I=E=class extends s.A{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new E({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"allowUserRename",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],I.prototype,"attachmentKeyword",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"displayFilename",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"editableExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],I.prototype,"filenameExpression",void 0),(0,n.Cg)([(0,o.MZ)({types:S.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],I.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],I.prototype,"maxAttachmentCount",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],I.prototype,"minAttachmentCount",void 0),(0,n.Cg)([(0,o.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"useOriginalFilename",void 0),I=E=(0,n.Cg)([(0,o.$K)("esri.form.elements.AttachmentElement")],I);const A=I},93885:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(31635),o=i(69540),s=i(91429),r=i(28787),l=i(83342);let p=class extends((0,o.OU)(r.A)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,n.Cg)([(0,s.MZ)({type:[l.A],json:{write:{isRequired:!0}}})],p.prototype,"associationTypes",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"editableExpression",void 0),(0,n.Cg)([(0,s.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,n.Cg)([(0,s.$K)("esri.form.elements.UtilityNetworkAssociationsElement")],p);const a=p},95898:(e,t,i)=>{i.d(t,{CG:()=>d,U2:()=>h,dp:()=>g,jt:()=>u,oo:()=>y,rS:()=>c,sb:()=>m});var n=i(56507),o=i(85105),s=i(28787),r=i(58769),l=i(33421),p=i(21774),a=i(93885);const u=e=>"field"===e.type,d=e=>"group"===e.type,y=e=>"text"===e.type;function m(e){return{typesWithGroup:{base:s.A,key:"type",typeMap:{attachment:o.A,field:r.A,group:e,relationship:l.A,text:p.A,utilityNetworkAssociations:a.A}},typesWithoutGroup:{base:s.A,key:"type",typeMap:{attachment:o.A,field:r.A,relationship:l.A,text:p.A,utilityNetworkAssociations:a.A}}}}function c(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>n[e.type]).map(e=>n[e.type].fromJSON(e))}function h(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>n[e.type]).map(e=>e.toJSON())}function g(e,t,i=!0){return e?e.map(e=>(0,n.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}},96184:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(31635),o=i(69540),s=i(25482),r=i(91429),l=i(79677),p=i(10184),a=i(56400),u=i(36005),d=i(43937);function y(e,t){return p.A.fromJSON({value:e,unit:t})}let m=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,n.Cg)([(0,r.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,u.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,d.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,r.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,n.Cg)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,n.Cg)([(0,d.K)("interval")],m.prototype,"writeInterval",null),(0,n.Cg)([(0,r.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,n.Cg)([(0,r.MZ)((0,a.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,n.Cg)([(0,r.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,n.Cg)([(0,r.$K)("esri.layers.support.TimeInfo")],m)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1437,7694],{16494:(e,t,r)=>{r.d(t,{Nd:()=>l,W5:()=>n});var i=r(37330);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new i.I({whiteList:s,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(o.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},17311:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(31635),s=r(69622),o=r(4576),n=r(60999),l=r(7762),a=r(16494),p=r(91429),u=r(30524),d=r(43668);const y=/<br\s*\/*>/gi;let c=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??r.e(9926).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,s=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,p=l&&n;t.forEach(t=>{const u=t.getObjectId()??t.attributes[e.objectIdField];let d=p?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:l}):"";r?.removeHTML&&(d=a.Nd.sanitize(d).replaceAll(y," ")),i.set(u,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const s=await e.queryFeatures(i);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,p.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"displayField",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,p.MZ)()],c.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"objectIdField",void 0),(0,i.Cg)([(0,p.MZ)()],c.prototype,"requiredFields",null),c=(0,i.Cg)([(0,p.$K)("esri.layers.support.TitleCreator")],c)},22671:(e,t,r)=>{r.d(t,{A:()=>m});var i,s=r(31635),o=r(52106),n=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(65864),y=r(50498),c=r(20437),h=r(36005),g=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let m=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,i){if(e)return void f.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*o+i,e=>s-e*n,l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],n=r.fromJSON(o),l=o.geometry?.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=i);const a=o.aggregateGeometries,p=n.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],s=r?.spatialReference;null==t||s||(t.spatialReference=i)}s.push(n)}return s}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(l[0]),s=r(l[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,d.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,d.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,l;for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],l+=i[1]):(n=i[0],l=i[1]),i[0]=t(n),i[1]=r(l)}if(i&&s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],m.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,p.MZ)({type:[o.A],json:{write:!0}})],m.prototype,"features",void 0),(0,s.Cg)([(0,h.w)("features")],m.prototype,"readFeatures",null),(0,s.Cg)([(0,p.MZ)({type:[c.A],json:{write:!0}})],m.prototype,"fields",void 0),(0,s.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],m.prototype,"geometryType",void 0),(0,s.Cg)([(0,g.K)("geometryType")],m.prototype,"writeGeometryType",null),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],m.prototype,"hasM",void 0),(0,s.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],m.prototype,"hasZ",void 0),(0,s.Cg)([(0,p.MZ)({types:y.yR,json:{write:!0}})],m.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,h.w)("queryGeometry")],m.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],m.prototype,"spatialReference",void 0),(0,s.Cg)([(0,g.K)("spatialReference")],m.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,p.MZ)({json:{write:!0}})],m.prototype,"transform",void 0),m=i=(0,s.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],m),m.prototype.toJSON.isDefaultToJSON=!0},29005:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(31635),s=r(69540),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],p)},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>p,ne:()=>a});var i=r(31635),s=r(93637),o=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const s=new n.A;return s.read(i,r),[s]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.toJSON()],t)}}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(31635),s=r(69540),o=r(25482),n=r(91429),l=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},38961:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(31635),s=r(7762),o=r(36708),n=r(10107),l=r(64108),a=r(80559);let p=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),o.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,n.MZ)()],p.prototype,"getCollections",void 0),(0,i.Cg)([(0,n.MZ)()],p.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,n.MZ)()],p.prototype,"itemFilterFunction",void 0),p=(0,i.Cg)([(0,l.$)("esri.core.CollectionFlattener")],p)},41560:(e,t,r)=>{r.d(t,{Ch:()=>n,mW:()=>o});var i=r(34727),s=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){const o=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";const n=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const s=u(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(s,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],s=e[t+1];if((0,i.ZH)(u(s.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,s.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,s){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(s??r)>e||(0,i.Hx)(t,r)||void 0!==s&&(0,i.Sp)(s,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},45067:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),s=r(69540),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],u)},58501:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(s)for(const e of r.features)s(e.geometry)}},81583:(e,t,r)=>{r.d(t,{L:()=>l,g:()=>n});var i=r(60999),s=r(7762),o=r(92474);async function n(e,t){return await e.load(),l(e,t)}async function l(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):s.A.isCollection(t)?t.forEach(e=>n(e)):(0,o.Zm)(t)&&r.push(t))};t(n);let l=null;if(await(0,i.Tj)(r,async e=>{const t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||l||(l=t)}),l)throw l.error;return e}},82411:(e,t,r)=>{r.r(t),r.d(t,{default:()=>rt});var i=r(31635),s=r(7762),o=r(38961),n=r(49186),l=r(36563),a=r(4718),p=r(81583),u=r(53966),d=r(25728),y=r(74887),c=r(36708),h=r(84952),g=r(91429),f=r(16930),m=r(4146),v=r(52106),b=r(37838),w=r(11254),C=r(66552),M=r(92474),Z=r(61893),F=r(5443),T=r(55156),x=r(60950),S=r(89808),I=r(99959);const A=Symbol("isBuildingGraphicOrigin");var j;class O extends I.A{get[(j=A,x.ym)](){return this.sublayer}get[T.e](){return this.sublayer}get[S.Q](){return this.sublayer}constructor(e){super(),this[j]=!0,this.type="building",this.sublayer=e}get layer(){return this.sublayer.layer}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var _=r(68654),L=r(4902),P=r(56507),R=r(10873),E=r(36005);let N=class extends((0,L.s)(d.L)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],N.prototype,"title",void 0),(0,i.Cg)([(0,E.w)("service","title",["alias","name"])],N.prototype,"readTitle",null),(0,i.Cg)([(0,g.MZ)()],N.prototype,"layer",void 0),(0,i.Cg)([(0,g.MZ)({type:P.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],N.prototype,"id",void 0),(0,i.Cg)([(0,E.w)("service","id")],N.prototype,"readIdOnlyOnce",null),(0,i.Cg)([(0,g.MZ)((0,R.Qo)(String))],N.prototype,"modelName",void 0),(0,i.Cg)([(0,g.MZ)((0,R.Qo)(Boolean))],N.prototype,"isEmpty",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,nonNullable:!0})],N.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],N.prototype,"visible",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],N.prototype,"opacity",void 0),N=(0,i.Cg)([(0,g.$K)("esri.layers.buildingSublayers.BuildingSublayer")],N);var k=r(4071),q=r(15426),B=r(17036),$=r(95466),K=r(30524),U=r(83898),Q=r(50805),D=r(41214),G=r(61956),J=r(54218),z=r(30291),V=r(88625),H=r(5682),W=r(45671),Y=r(93223);const X=(0,B.p)();let ee=class extends((0,M.WV)((0,Z.g)(N))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}initialize(){this._set("graphicOrigin",new O(this))}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new $.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new _.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return""}get globalIdField(){if(null!=this.fields)for(const e of this.fields)if("global-id"===e.type)return e.name;return""}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then(()=>{this.indexInfo=(0,U.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,u.A.getLogger(this),t)});return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,z.tn)(this,e)}async _fetchService(e){const t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,q.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:k.P,{query:t,operations:{supportsQuery:r},data:{supportsZ:i,supportsM:s,isVersioned:o}}=e;return{query:t,operations:{supportsQuery:r},data:{supportsZ:i,supportsM:s,isVersioned:o}}}createQuery(){const e=new G.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryObjectIds(e,t){const r=await this._getAssociatedLayerForQuery();return(await r.queryObjectIds(e||this.createQuery(),t)).filter(J.Et)}async queryCachedAttributes(e,t){const r=(0,K.hL)(this.fieldsIndex,await(0,W.TO)(this,(0,W.D8)(this)));return(0,H.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"parsedUrl",null),(0,i.Cg)([(0,g.MZ)({type:Q.W4,readOnly:!0})],ee.prototype,"nodePages",void 0),(0,i.Cg)([(0,g.MZ)({type:[Q.uV],readOnly:!0})],ee.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[Q.Ot],readOnly:!0})],ee.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[Q.L0],readOnly:!0})],ee.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"store",void 0),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],ee.prototype,"rootNode",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,g.MZ)(X.fields)],ee.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:_.default})],ee.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,E.w)("service","associatedLayer",["associatedLayerID"])],ee.prototype,"readAssociatedLayer",null),(0,i.Cg)([(0,g.MZ)(X.outFields)],ee.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],ee.prototype,"objectIdField",null),(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],ee.prototype,"globalIdField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{read:!1}})],ee.prototype,"displayField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String})],ee.prototype,"apiKey",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String})],ee.prototype,"customParameters",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:F.A})],ee.prototype,"fullExtent",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:f.A})],ee.prototype,"spatialReference",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"version",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:V.A})],ee.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Number})],ee.prototype,"minScale",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Number})],ee.prototype,"maxScale",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Number})],ee.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,g.MZ)({type:["hide","show"],json:{write:!0}})],ee.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({types:D.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],ee.prototype,"renderer",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ee.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)(R.M6)],ee.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:b.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],ee.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],ee.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)()],ee.prototype,"types",null),(0,i.Cg)([(0,g.MZ)()],ee.prototype,"typeIdField",null),(0,i.Cg)([(0,g.MZ)({json:{write:!1}}),(0,Y.e)(new C.J({"3DObject":"3d-object",Point:"point"}))],ee.prototype,"layerType",void 0),(0,i.Cg)([(0,g.MZ)()],ee.prototype,"geometryType",null),(0,i.Cg)([(0,g.MZ)()],ee.prototype,"profile",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ee.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ee.prototype,"statisticsInfo",void 0),ee=(0,i.Cg)([(0,g.$K)("esri.layers.buildingSublayers.BuildingComponentSublayer")],ee);var te=r(67076);function re(e,t){e.forEach(e=>{t(e),"building-group"===e.type&&re(e.sublayers,t)})}const ie={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:se}}},read:!1}};function se(e,t,r){if(e&&Array.isArray(e))return new s.A(e.map(e=>{const t=function(e){return"group"===e.layerType?oe:ee}(e);if(t){const i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new te.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null}))}let oe=class extends N{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,p.L)(this,e=>re(this.sublayers,t=>{"building-group"!==t.type&&e(t)}))}static{this.sublayersProperty=ie}static{this.readSublayers=se}};(0,i.Cg)([(0,g.MZ)({type:["hide","show","hide-children"],json:{write:!0}})],oe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)(ie)],oe.prototype,"sublayers",void 0),oe=(0,i.Cg)([(0,g.$K)("esri.layers.buildingSublayers.BuildingGroupSublayer")],oe);var ne=r(52136),le=r(18768),ae=r(69208),pe=r(16131),ue=r(8303),de=r(25036),ye=r(58947),ce=r(92009),he=r(25482),ge=r(13069);let fe=class extends he.o{constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],fe.prototype,"type",void 0),fe=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfo")],fe);const me=fe;var ve;let be=ve=class extends he.o{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new ve({filterType:this.filterType,filterValues:(0,a.o8)(this.filterValues)})}};(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{isRequired:!0}}})],be.prototype,"filterType",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{write:{isRequired:!0}}})],be.prototype,"filterValues",void 0),be=ve=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfoType")],be);const we=be;var Ce;const Me=s.A.ofType(we);let Ze=Ce=class extends he.o{clone(){return new Ce({filterTypes:(0,a.o8)(this.filterTypes)})}};(0,i.Cg)([(0,g.MZ)({type:Me,json:{write:{isRequired:!0}}})],Ze.prototype,"filterTypes",void 0),Ze=Ce=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],Ze);const Fe=Ze;var Te;const xe=s.A.ofType(Fe);let Se=Te=class extends me{constructor(){super(...arguments),this.type="checkbox"}clone(){return new Te({filterBlocks:(0,a.o8)(this.filterBlocks)})}};(0,i.Cg)([(0,g.MZ)({type:["checkbox"]})],Se.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:xe,json:{write:{isRequired:!0}}})],Se.prototype,"filterBlocks",void 0),Se=Te=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],Se);const Ie=Se;let Ae=class extends he.o{};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Ae.prototype,"type",void 0),Ae=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterMode")],Ae);const je=Ae;var Oe;let _e=Oe=class extends je{constructor(){super(...arguments),this.type="solid"}clone(){return new Oe}};(0,i.Cg)([(0,g.MZ)({type:["solid"],readOnly:!0,json:{write:{isRequired:!0}}})],_e.prototype,"type",void 0),_e=Oe=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterModeSolid")],_e);const Le=_e;var Pe,Re=r(51734);let Ee=Pe=class extends je{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new Pe({edges:(0,a.o8)(this.edges)})}};(0,i.Cg)([(0,Y.e)({wireFrame:"wire-frame"})],Ee.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)(Re.J)],Ee.prototype,"edges",void 0),Ee=Pe=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterModeWireFrame")],Ee);const Ne=Ee;var ke;let qe=ke=class extends je{constructor(){super(...arguments),this.type="x-ray"}clone(){return new ke}};(0,i.Cg)([(0,g.MZ)({type:["x-ray"],readOnly:!0,json:{write:{isRequired:!0}}})],qe.prototype,"type",void 0),qe=ke=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterModeXRay")],qe);const Be=qe;var $e;let Ke=$e=class extends he.o{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Le,this.title=""}clone(){return new $e({filterExpression:this.filterExpression,filterMode:(0,a.o8)(this.filterMode),title:this.title})}};(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ke.prototype,"filterExpression",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,types:{key:"type",base:je,typeMap:{solid:Le,"wire-frame":Ne,"x-ray":Be}},json:{read:e=>{switch(e?.type){case"solid":return Le.fromJSON(e);case"wireFrame":return Ne.fromJSON(e);case"x-ray":return Be.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}})],Ke.prototype,"filterMode",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ke.prototype,"title",void 0),Ke=$e=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilterBlock")],Ke);const Ue=Ke;var Qe;const De=s.A.ofType(Ue);let Ge=Qe=class extends he.o{constructor(e){super(e),this.description=null,this.filterBlocks=null,this.id=(0,ge.lk)(),this.name=null}clone(){return new Qe({description:this.description,filterBlocks:(0,a.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,a.o8)(this.filterAuthoringInfo)})}};(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ge.prototype,"description",void 0),(0,i.Cg)([(0,g.MZ)({type:De,json:{write:{enabled:!0,isRequired:!0}}})],Ge.prototype,"filterBlocks",void 0),(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:me,typeMap:{checkbox:Ie}},json:{read:e=>"checkbox"===e?.type?Ie.fromJSON(e):null,write:!0}})],Ge.prototype,"filterAuthoringInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Ge.prototype,"id",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ge.prototype,"name",void 0),Ge=Qe=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFilter")],Ge);let Je=class extends he.o{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i.Cg)([(0,g.MZ)({type:String})],Je.prototype,"fieldName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],Je.prototype,"modelName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],Je.prototype,"label",void 0),(0,i.Cg)([(0,g.MZ)({type:Number})],Je.prototype,"min",void 0),(0,i.Cg)([(0,g.MZ)({type:Number})],Je.prototype,"max",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:e=>Array.isArray(e)&&(e.every(e=>"string"==typeof e)||e.every(e=>"number"==typeof e))?e.slice():null}})],Je.prototype,"mostFrequentValues",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number]})],Je.prototype,"subLayerIds",void 0),Je=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingFieldStatistics")],Je);const ze=Je;let Ve=class extends((0,M.WV)((0,Z.g)(he.o))){constructor(e){super(e),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(u.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,w.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i.Cg)([(0,g.MZ)({constructOnly:!0,type:String})],Ve.prototype,"url",void 0),(0,i.Cg)([(0,g.MZ)({constructOnly:!0})],Ve.prototype,"customParameters",void 0),(0,i.Cg)([(0,g.MZ)({constructOnly:!0})],Ve.prototype,"apiKey",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:[ze],json:{read:{source:"summary"}}})],Ve.prototype,"fields",null),Ve=(0,i.Cg)([(0,g.$K)("esri.layers.support.BuildingSummaryStatistics")],Ve);var He=r(56776);const We=s.A.ofType(Ge),Ye=(0,a.o8)(oe.sublayersProperty),Xe=Ye.json?.origins;Xe&&(Xe["web-scene"]={type:[ee],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Xe["portal-item"]={type:[ee],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let et=class extends((0,ye.w6)((0,le.b)((0,pe.q)((0,ue.A)((0,de.j)((0,d.P)((0,ae.d)((0,ne.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new We,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const i=oe.readSublayers(e,t,r);return re(i,e=>e.layer=this),this._allSublayerOverrides&&(function(e,t){t.forEach(t=>tt(e,t))}(i,this._allSublayerOverrides),this._allSublayerOverrides=null),i}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const i=[];re(e,e=>{const t=e.write({},r);Object.keys(t).length>1&&i.push(t)}),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach(e=>{t.sublayers.push((0,a.o8)(e))}))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?tt(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef&&this.parsedUrl){const e=(0,h.fj)(this.parsedUrl.path,t.statisticsHRef);return new Ve({url:e,apiKey:this.apiKey,customParameters:this.customParameters})}return null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP).then(()=>this._fetchService(t)).then(()=>this._fetchAssociatedFeatureService(t));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,p.g)(this,e=>{re(this.sublayers,t=>{"building-group"!==t.type&&e(t)}),this.summaryStatistics&&e(this.summaryStatistics)})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,ce.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){(0,y.QZ)(this._logWarningOnPopupEnabled())}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,l.rE)(e)),await(0,c.C_)(()=>this.allSublayers.filter(e=>"building-component"===e.type).some(e=>e.popupEnabled&&null!=e.popupTemplate),e.signal);const t=this.allSublayers.filter(e=>"building-component"===e.type).filter(e=>e.popupEnabled&&null!=e.popupTemplate),r=[],i=[];for(const e of t){const t=e.title??`untitled ${e.id}`;e.attributeStorageInfo?r.push(t):i.push(t)}const s="\n ",o=r.length>0?`\nThe following sublayers will fall back to binary attributes for Popups:${s}${r.join(s)}`:"",n=i.length>0?`\nThe following sublayers have no binary attributes and will not work with Popups:${s}${i.join(s)}`:"";u.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded for this BuildingSceneLayer: ${this.title}.`,o,n)}_validateElevationInfo(e){const t="Building scene layers";(0,He.XF)(u.A.getLogger(this),(0,He.B)(t,"absolute-height",e)),(0,He.XF)(u.A.getLogger(this),(0,He.tW)(t,e))}};function tt(e,t){const{overrides:r,context:i}=t;re(e,e=>e.read(r.get(e.id),i))}(0,i.Cg)([(0,g.MZ)({type:["BuildingSceneLayer"]})],et.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],et.prototype,"allSublayers",void 0),(0,i.Cg)([(0,g.MZ)(Ye)],et.prototype,"sublayers",void 0),(0,i.Cg)([(0,E.w)("service","sublayers")],et.prototype,"readSublayers",null),(0,i.Cg)([(0,g.MZ)({type:We,nonNullable:!0,json:{write:!0}})],et.prototype,"filters",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],et.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:Ve})],et.prototype,"summaryStatistics",void 0),(0,i.Cg)([(0,E.w)("summaryStatistics",["statisticsHRef"])],et.prototype,"readSummaryStatistics",null),(0,i.Cg)([(0,g.MZ)({type:[String],json:{read:!1}})],et.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)(R.Fm)],et.prototype,"fullExtent",void 0),(0,i.Cg)([(0,g.MZ)(R.fV)],et.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide","hide-children"]})],et.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)((0,R.Qo)(f.A))],et.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)(R.Yj)],et.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],et.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],et.prototype,"associatedFeatureServiceItem",void 0),et=(0,i.Cg)([(0,g.$K)("esri.layers.BuildingSceneLayer")],et);const rt=et},91880:(e,t,r)=>{r.d(t,{A:()=>p});var i,s=r(31635),o=r(66552),n=r(25482),l=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let p=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,s.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5710],{4513:(e,a,t)=>{t.d(a,{S:()=>n});const n={BingMapsLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(9036)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(6673),t.e(7005),t.e(8570),t.e(6011),t.e(8993),t.e(1437)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(1197)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(957),t.e(9708),t.e(6647),t.e(893),t.e(8628),t.e(2593),t.e(9279),t.e(1874)]).then(t.bind(t,83508))).default,DimensionLayer:async()=>(await Promise.all([t.e(3508),t.e(3813)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(3508),t.e(9953),t.e(4802),t.e(8207)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(9247)]).then(t.bind(t,68654))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(6730)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(8766)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(5890)]).then(t.bind(t,85582))).default,GroupLayer:async()=>(await Promise.all([t.e(3508),t.e(5613),t.e(3562)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(9953),t.e(1956),t.e(893),t.e(6673),t.e(3356),t.e(6699),t.e(4971)]).then(t.bind(t,84123))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(9953),t.e(6673),t.e(3356),t.e(6049),t.e(6699),t.e(7677),t.e(9718)]).then(t.bind(t,19718))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(5942),t.e(1312)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(6011),t.e(5942),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1863)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(9708),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(3463),t.e(8948),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(1224),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(9708),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(3463),t.e(8948),t.e(1728)]).then(t.bind(t,71728))).default,MapImageLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(957),t.e(893),t.e(7048),t.e(7656),t.e(8999)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(3463),t.e(744)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(3444),t.e(9203)]).then(t.bind(t,29203))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(8570),t.e(5977)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(9573),t.e(2712)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(9361),t.e(9644)]).then(t.bind(t,9352))).default,PointCloudLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(6673),t.e(7885)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(217),t.e(9785)]).then(t.bind(t,34507))).default,SceneLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(6673),t.e(7005),t.e(8570),t.e(6011),t.e(8993),t.e(1713)]).then(t.bind(t,36969))).default,StreamLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(1017),t.e(73)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1956),t.e(8399),t.e(957),t.e(9708),t.e(6647),t.e(9645)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(957),t.e(893),t.e(4802),t.e(7048),t.e(573)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(4802),t.e(5897),t.e(1776)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(3508),t.e(3910),t.e(8303),t.e(5323),t.e(957),t.e(3444),t.e(2274)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(3508),t.e(1224),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(1005)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(9953),t.e(3356),t.e(6049),t.e(6699),t.e(7677),t.e(5369)]).then(t.bind(t,88854))).default,WFSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(9110)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(5323),t.e(5181)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(4802),t.e(9573),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(9573),t.e(2848)]).then(t.bind(t,47314))).default}},7861:(e,a,t)=>{t.d(a,{L:()=>r});var n=t(11254);async function r(e,a){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},23154:(e,a,t)=>{t.d(a,{K:()=>f,Q:()=>l});var n=t(77548),r=t(7861);const i=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){const{loadContext:t,...i}=a||{},l=t?await t.fetchServiceMetadata(e,i):await(0,r.L)(e,i),s=(0,n.G$)();d(l),y(l);const o={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return o;const c=`${(0,n.$x)()??e}/layers`,u=t?await t.fetchServiceMetadata(c,i):await(0,r.L)(c,i);return d(u),y(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function s(e){const{type:a}=e;return!!a&&i.has(a)}function o(e){return"Table"===e.type}function y(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(o)}function c(e){e.type||="Feature Layer"}function u(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(u)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},92009:(e,a,t)=>{t.d(a,{L:()=>c});var n=t(70333),r=t(11254),i=t(49186),l=t(74887),s=t(60694),o=t(20655),y=t(80812);async function c(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-url","Invalid scene service url");const c={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(c.sceneLayerItem??=await async function(e){const a=(await u(e)).serviceItemId;if(!a)return null;const t=new y.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=n.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,r.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(t.portal=new o.A({url:i}));try{return await t.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(c),null==c.sceneLayerItem)return d(c.sceneServerUrl.replace("/SceneServer","/FeatureServer"),c);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const n=new y.default({portal:t.portal,id:t.id});return await n.load(),n}catch(e){return(0,l.QP)(e),null}}(c);if(!f?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");c.featureServiceItem=f;const w=await d(f.url,c);return w.portalItem=f,w}async function u(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,r.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-feature-service-url","Invalid feature service url");const n=t.url.path,l=a.layerId;if(null==l)return{serverUrl:n};const o=u(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,c=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...c},responseType:"json",authMode:e,signal:a.signal};return(0,r.A)(n,t)},f=d("anonymous").catch(()=>d("no-prompt")),[w,h]=await Promise.all([f,o]),m=h?.layers,L=w.data&&w.data.layers;if(!Array.isArray(L))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,L.length);e++)if(m[e].id===l)return{serverUrl:n,layerId:L[e].id}}else if(null!=l&&l<L.length)return{serverUrl:n,layerId:L[l].id};throw new Error("could not find matching associated sublayer")}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5710],{4513:(e,a,t)=>{t.d(a,{S:()=>n});const n={BingMapsLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(9036)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(6673),t.e(7005),t.e(8570),t.e(6011),t.e(8993),t.e(1437)]).then(t.bind(t,82411))).default,CSVLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(1197)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(957),t.e(9708),t.e(6647),t.e(893),t.e(8628),t.e(2593),t.e(9279),t.e(1874)]).then(t.bind(t,83508))).default,DimensionLayer:async()=>(await Promise.all([t.e(3508),t.e(3813)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(3508),t.e(9953),t.e(4802),t.e(8207)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(9247)]).then(t.bind(t,68654))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(6730)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(8766)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(5890)]).then(t.bind(t,85582))).default,GroupLayer:async()=>(await Promise.all([t.e(3508),t.e(5613),t.e(3562)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(9953),t.e(1956),t.e(893),t.e(6673),t.e(3356),t.e(6699),t.e(4971)]).then(t.bind(t,84123))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(9953),t.e(6673),t.e(3356),t.e(6049),t.e(6699),t.e(7677),t.e(9718)]).then(t.bind(t,19718))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(5942),t.e(1312)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(6011),t.e(5942),t.e(7464)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1863)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(9708),t.e(8368),t.e(4649),t.e(217),t.e(8441),t.e(3463),t.e(8948),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(3508),t.e(6673),t.e(1224),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(9708),t.e(8368),t.e(4649),t.e(217),t.e(8441),t.e(3463),t.e(8948),t.e(1728)]).then(t.bind(t,71728))).default,MapImageLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(957),t.e(893),t.e(7048),t.e(7656),t.e(8999)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(3463),t.e(744)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(3444),t.e(9203)]).then(t.bind(t,29203))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(8570),t.e(5977)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(9573),t.e(2712)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(957),t.e(9708),t.e(8654),t.e(6647),t.e(9361),t.e(9644)]).then(t.bind(t,9352))).default,PointCloudLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(6673),t.e(7885)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(217),t.e(9785)]).then(t.bind(t,34507))).default,SceneLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(6673),t.e(7005),t.e(8570),t.e(6011),t.e(8993),t.e(1713)]).then(t.bind(t,36969))).default,StreamLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(1017),t.e(73)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1956),t.e(8399),t.e(957),t.e(9708),t.e(6647),t.e(9645)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(957),t.e(893),t.e(4802),t.e(7048),t.e(573)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(4802),t.e(5897),t.e(1776)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(3508),t.e(3910),t.e(8303),t.e(5323),t.e(957),t.e(3444),t.e(2274)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(3508),t.e(1224),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(3508),t.e(2869),t.e(1005)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(9953),t.e(3356),t.e(6049),t.e(6699),t.e(7677),t.e(5369)]).then(t.bind(t,88854))).default,WFSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(8303),t.e(5323),t.e(4903),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(9110)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7330),t.e(3508),t.e(6554),t.e(2869),t.e(3910),t.e(5323),t.e(5181)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(4802),t.e(9573),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(3508),t.e(6554),t.e(9573),t.e(2848)]).then(t.bind(t,47314))).default}},7861:(e,a,t)=>{t.d(a,{L:()=>r});var n=t(11254);async function r(e,a){return(await(0,n.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}},23154:(e,a,t)=>{t.d(a,{K:()=>f,Q:()=>l});var n=t(77548),r=t(7861);const i=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){const{loadContext:t,...i}=a||{},l=t?await t.fetchServiceMetadata(e,i):await(0,r.L)(e,i),s=(0,n.G$)();d(l),y(l);const o={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return o;const c=`${(0,n.$x)()??e}/layers`,u=t?await t.fetchServiceMetadata(c,i):await(0,r.L)(c,i);return d(u),y(u),o.layersJSON={layers:u.layers,tables:u.tables},o}function s(e){const{type:a}=e;return!!a&&i.has(a)}function o(e){return"Table"===e.type}function y(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(o)}function c(e){e.type||="Feature Layer"}function u(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(u)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},92009:(e,a,t)=>{t.d(a,{L:()=>c});var n=t(70333),r=t(11254),i=t(49186),l=t(74887),s=t(60694),o=t(20655),y=t(80812);async function c(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-url","Invalid scene service url");const c={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(c.sceneLayerItem??=await async function(e){const a=(await u(e)).serviceItemId;if(!a)return null;const t=new y.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=n.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,r.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(t.portal=new o.A({url:i}));try{return await t.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(c),null==c.sceneLayerItem)return d(c.sceneServerUrl.replace("/SceneServer","/FeatureServer"),c);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const n=new y.default({portal:t.portal,id:t.id});return await n.load(),n}catch(e){return(0,l.QP)(e),null}}(c);if(!f?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");c.featureServiceItem=f;const w=await d(f.url,c);return w.portalItem=f,w}async function u(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,r.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-feature-service-url","Invalid feature service url");const n=t.url.path,l=a.layerId;if(null==l)return{serverUrl:n};const o=u(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,c=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...c},responseType:"json",authMode:e,signal:a.signal};return(0,r.A)(n,t)},f=d("anonymous").catch(()=>d("no-prompt")),[w,h]=await Promise.all([f,o]),m=h?.layers,L=w.data&&w.data.layers;if(!Array.isArray(L))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,L.length);e++)if(m[e].id===l)return{serverUrl:n,layerId:L[e].id}}else if(null!=l&&l<L.length)return{serverUrl:n,layerId:L[l].id};throw new Error("could not find matching associated sublayer")}}}]);
|