1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12879],{8527:(e,t,i)=>{i.d(t,{r:()=>T});var n=i(36486),r=i(48529),s=i(210),o=i(99366),a=i(77853),l=i(41968),u=i(83208),h=i(67433),d=i(30914),p=i(42783),c=i(57294),g=i(49200),v=i(40790),f=i(9239),y=i(72429),m=i(50806);class x extends g.w{constructor(e,t){super(e,t,new c.$(y.I,()=>i.e(76045).then(i.bind(i,76045))),_(t).locations)}_getPipelineState(e,t){let{oitPass:i,output:n,hasOccludees:s,cullFace:o}=e;return(0,m.Ey)({blending:(0,r.RN)(n)?(0,l.Yf)(i,!0):null,culling:(0,m.Xt)(o),depthTest:{func:(0,l.K_)(i)},depthWrite:(0,l.z5)(e),drawBuffers:(0,l.m6)(i,n),colorWrite:m.kn,stencilWrite:s?v.v0:null,stencilTest:s?t?v.a9:v.qh:null,polygonOffset:(0,l.mE)(e)})}initializePipeline(e){return this._occludeePipeline=this._getPipelineState(e,!0),this._getPipelineState(e,!1)}getPipeline(e){return e?this._occludeePipeline:super.getPipeline()}}function _(e){let t=f.l5;return e.perspectiveInterpolation&&(t=t.clone().f32("perspectiveDivide")),t}var w=i(56183),b=i(2966),M=i(13176);class C extends M.E{constructor(e){super(),this.draped=e,this.cullFace=0,this.enableOffset=!0,this.writeDepth=!0,this.hasOccludees=!1,this.terrainDepthTest=!1,this.cullAboveTerrain=!1,this.perspectiveInterpolation=!0,this.textureCoordinateType=0,this.emissionSource=0,this.discardInvisibleFragments=!0,this.occlusionPass=!1,this.olidColorInstanced=!1,this.snowCover=!1}}(0,w.Cg)([(0,b.W)({count:3})],C.prototype,"cullFace",void 0),(0,w.Cg)([(0,b.W)()],C.prototype,"enableOffset",void 0),(0,w.Cg)([(0,b.W)()],C.prototype,"writeDepth",void 0),(0,w.Cg)([(0,b.W)()],C.prototype,"hasOccludees",void 0),(0,w.Cg)([(0,b.W)()],C.prototype,"terrainDepthTest",void 0),(0,w.Cg)([(0,b.W)()],C.prototype,"cullAboveTerrain",void 0),(0,w.Cg)([(0,b.W)()],C.prototype,"perspectiveInterpolation",void 0);class T extends d.W{constructor(e){super(e,S),this.supportsEdges=!0,this.produces=new Map([[2,e=>(0,r.CL)(e)],[4,e=>(0,r._o)(e)&&this.parameters.writeDepth],[8,e=>(0,r._o)(e)&&!this.parameters.writeDepth],[18,e=>(0,r._o)(e)||(0,r.CL)(e)]]),this._configuration=new C(e.draped)}dispose(){this.setParameters({texture:void 0})}getConfiguration(e,t){return super.getConfiguration(e,t,this._configuration),this._configuration.cullFace=this.parameters.cullFace,this._configuration.hasSlicePlane=this.parameters.hasSlicePlane,this._configuration.writeDepth=this.parameters.writeDepth,this._configuration.hasOccludees=t.hasOccludees,this._configuration.oitPass=t.oitPass,this._configuration.enableOffset=t.camera.relativeElevation<l.xt,this._configuration.terrainDepthTest=t.terrainDepthTest,this._configuration.cullAboveTerrain=t.cullAboveTerrain,this._configuration.perspectiveInterpolation=this.parameters.perspectiveInterpolation,this._configuration}get visible(){return!0}createGLMaterial(e){return new E(e)}createBufferWriter(){return new P(_(this.parameters))}}class E extends s.A{constructor(e){super({...e,...e.material.parameters}),this.parameters=e;const t=this._material.parameters.texture;(0,o.y)(t)&&e.textures.updater.add(t)}dispose(){this.parameters.textures.updater.remove(this._material.parameters.texture)}beginSlot(e){return this.getTechnique(x,e)}}class P extends h.Z{write(e,t,i,r,s,o){for(let r of this.layout.fields.keys()){let a=i.get(r);if(a)if("perspectiveDivide"===r){(0,u.vA)(1===a.size);let e=s.getField(r,n.Y$);e&&(0,p.uO)(a,e,o)}else(0,p.Ap)(r,a,e,t,s,o)}return null}}class S extends a.q{constructor(e,t){super(),this.texture=e,this.draped=t,this.writeDepth=!0,this.hasSlicePlane=!1,this.cullFace=0,this.opacity=1,this.perspectiveInterpolation=!1}get glTexture(){return this.texture.glTexture}}},9239:(e,t,i)=>{i.d(t,{Ci:()=>r,KL:()=>a,dB:()=>o,l5:()=>s,wB:()=>l});var n=i(67041);let r=(0,n.BP)().vec3f("position").freeze(),s=(0,n.BP)().vec3f("position").vec2f16("uv0").freeze(),o=(0,n.BP)().vec3f("position").vec4u8("color").freeze(),a=(0,n.BP)().vec3f("position").vec2f("uv0").freeze(),l=(0,n.BP)().vec3f("position").vec2f("uv0").vec4u8("olidColor").freeze()},12413:(e,t,i)=>{i.r(t),i.d(t,{default:()=>K});var n=i(56183),r=i(46994),s=i(31323);i(56436);var o=i(46815),a=i(20135),l=i(63610),u=i(24372),h=i(13695);i(23760),i(94527);var d=i(92784),p=i(98820),c=i(4665),g=i(31518),v=i(22171),f=i(39895),y=i(39439),m=i(58096),x=i(3203),_=i(83413),w=i(99019),b=i(70795),M=i(79749),C=i(98857),T=i(57566),E=i(62758),P=i(31171),S=i(46876),A=i(25286
1),O=i(92199);let Z=Symbol(),I=Symbol(),D=class extends f.A{get editSourcePoints(){return!!this.options?.reshapeOptions.editSourcePoints!==this._isEditSourcePointsToggled}get updating(){return this._updatingHandles.updating}get _preferredInteractionTool(){return this.options?.tool??"transform"}get _toolType(){switch(this._preferredInteractionTool){case"transform":return"transform-3d";case"reshape":return"reshape-3d"}}get _validatedSelectedElement(){let e=this.selectedElement;if(!e)return null;let{layer:{source:t}}=this;return t?"hasElement"in t?t.hasElement(e)?e:null:t===e?e:null:null}constructor(e){super(e),this.enabled=!1,this._isEditSourcePointsToggled=!1,this._updatingHandles=new C.U,this._isOpacityToggled=!1,this._factor=1,this._tool=null,this._object=null,this._createToolAbortController=null,this._onPointerMove=(0,l.sg)(async e=>{let t=await this._updatingHandles.addPromise(this._findElementAtScreenPoint(e));this.destroyed||(this.removeHandles(I),t&&t!==this.selectedElement&&this.addHandles(this.view.acquireCursor("pointer","high"),I))}),this._tmpMat2=(0,w.vt)(),this._tmpVec2=(0,M.vt)()}destroy(){this._createToolAbortController=(0,m.DC)(this._createToolAbortController)}initialize(){this.addHandles([(0,s.DQ)(this._updatingHandles),this._updatingHandles.add(()=>this.enabled,e=>this._enableDisable(e),u.Vh),this._updatingHandles.add(()=>this._preferredInteractionTool,e=>this._preferredInteractionToolChanged(e))])}_enableDisable(e){if(!e)return void this.removeHandles(Z);this._dynamicImports();let{view:t}=this,i=new P.oe;i.add(P.TU.undo,()=>{this._object?.operations?.undo(),this._object?.emit("modified-externally")}),i.add(P.TU.redo,()=>{this._object?.operations?.redo(),this._object?.emit("modified-externally")}),i.addToggle(P.TU.preserveAspectRatio,e=>{"transform-3d"===this._tool?.type&&(this._tool.preserveAspectRatio="key-down"===e.type)}),i.addToggle(P.TU.editSourcePoints,e=>{"reshape-3d"===this._tool?.type&&(this._isEditSourcePointsToggled="key-down"===e.type)}),i.addToggle(P.TU.rotateIncrements,e=>{"transform-3d"===this._tool?.type&&(this._tool.snapRotation="key-down"===e.type)}),i.add(P.TU.toggleOpacity,()=>{let e=this._object?.element;e&&(e.opacity*=this._isOpacityToggled?2:.5,this._isOpacityToggled=!this._isOpacityToggled)}),i.add(P.TU.moveUp,()=>this._move(0,this._factor)),i.add(P.TU.moveDown,()=>this._move(0,-this._factor)),i.add(P.TU.moveRight,()=>this._move(this._factor,0)),i.add(P.TU.moveLeft,()=>this._move(-this._factor,0)),i.addToggle(P.TU.factorModifier,e=>this._factor="key-down"===e.type?10:1),this._isOpacityToggled=!1,this.addHandles([i.register(t,E.oj.TOOL),(0,s.hA)(()=>{this._isOpacityToggled&&this.selectedElement&&(this.selectedElement.opacity*=2,this._isOpacityToggled=!1)}),t.on("immediate-click",e=>this._onClick(e),E.oj.TOOL),t.on("pointer-move",e=>this._onPointerMove(e).catch(()=>{}),E.oj.TOOL),this._updatingHandles.add(()=>this._validatedSelectedElement,(e,t)=>{t&&e!==t&&this._isOpacityToggled&&(t.opacity*=2,this._isOpacityToggled=!1),this._selectedElementChanged(e)},u.Vh),(0,s.hA)(()=>{this.removeHandles(I),this._removeTool()})],Z)}async _onClick(e){await this._updatingHandles.addPromise(e.defer(async()=>{let t=await this._findElementAtScreenPoint(e);this.destroyed||(t&&e.stopPropagation(),this.selectedElement=t,this.selectedElement&&this.removeHandles(I))}))}async _selectedElementChanged(e){e?.georeference?this._object?.element!==e&&await this._updatingHandles.addPromise(this._recreateTool()):this._removeTool()}async _recreateTool(){this._createToolAbortController=(0,m.DC)(this._createToolAbortController),this._removeTool();
1let e=this._validatedSelectedElement;if(!e)return;let t=new AbortController;this._createToolAbortController=t;let{ManipulatedObject3DMediaElement:i,ExtentTransformTool:n,ReshapeTool3D:r,automaticAreaMeasurementUtils:o,automaticLengthMeasurementUtils:a}=await this._dynamicImports();if(t.signal.aborted)return;let{view:l,layer:h,_toolType:d}=this;switch(this._object=new i({view:l,layer:h,element:e,tool:this._preferredInteractionTool}),d){case"transform-3d":{this._tool=new n({view:l,object:this._object,automaticLengthMeasurementUtils:a});let e=l.inputManager;e.isModifierKeyDown(P.TU.rotateIncrements.key)&&(this._tool.snapRotation=!0),e.isModifierKeyDown(P.TU.preserveAspectRatio.key)&&(this._tool.preserveAspectRatio=!0)}break;case"reshape-3d":{let e=(0,S.X)(l),{snappingManager:t}=e;this._tool=new r({view:l,object:this._object,enableMidpoints:!1,enableZShape:!1,snappingManager:t,enableMoveObject:!1,autoHideManipulators:!0,enableDeleteVertices:!1,sketchOptions:{tooltips:{enabled:!0,inputEnabled:!0,visibleElements:{area:!1}}},automaticAreaMeasurementUtils:o,automaticLengthMeasurementUtils:a}),this.addHandles([e,(0,u.wB)(()=>({editSourcePoints:this.editSourcePoints,operations:this._object?.operations}),e=>{e.operations instanceof T.S&&(e.operations.editSourcePoints=e.editSourcePoints)},u.pc)],this._tool)}}this.addHandles([(0,s.hA)(()=>{this._object=(0,m.pR)(this._object),this._tool&&(l.tools.remove(this._tool),this._tool=null)})],this._tool),l.addAndActivateTool(this._tool)}_preferredInteractionToolChanged(e){let{_tool:t}=this;if(!t)return;if(this._toolType!==t.type)return void this._updatingHandles.addPromise(this._recreateTool());let{_object:i}=this;i&&(i.tool=e)}async _dynamicImports(){let[{ManipulatedObject3DMediaElement:e},{ExtentTransformTool:t,ReshapeTool3D:n},r,s]=await Promise.all([Promise.all([i.e(88231),i.e(60870)]).then(i.bind(i,31673)),Promise.all([i.e(6307),i.e(45908),i.e(78581),i.e(90912),i.e(31005),i.e(29735),i.e(7704),i.e(35626),i.e(85580),i.e(51636),i.e(71972),i.e(6508),i.e(55291),i.e(67287),i.e(92100),i.e(18109),i.e(61805),i.e(6535)]).then(i.bind(i,44118)),(0,A.E)(),(0,O.f)()]);return{ManipulatedObject3DMediaElement:e,ExtentTransformTool:t,ReshapeTool3D:n,automaticAreaMeasurementUtils:r,automaticLengthMeasurementUtils:s}}async _findElementAtScreenPoint(e){let t=(await this.view.hitTest(e,{include:[this.layer]})).results[0];return"media"===t?.type?t.element:null}_removeTool(){this._tool&&this.removeHandles(this._tool)}_move(e,t){let{view:i,_object:n}=this,r=n?.operations;if(!r)return;let s=i.overlayPixelSizeInMapUnits(i.pointsOfInterest.focus.location)*(0,x.GA)(i.spatialReference)/(0,x.GA)(r.data.spatialReference),{_tmpMat2:o,_tmpVec2:a}=this,l=(0,_.$0)(o,(0,y.kU)(360-this.view.camera.heading)),u=(0,b.hZ)(a,s*e,s*t);(0,b.l0)(u,u,l),r.move(u[0],u[1],0),n.emit("modified-externally")}};(0,n.Cg)([(0,h.MZ)({constructOnly:!0})],D.prototype,"view",void 0),(0,n.Cg)([(0,h.MZ)({constructOnly:!0})],D.prototype,"layer",void 0),(0,n.Cg)([(0,h.MZ)()],D.prototype,"selectedElement",void 0),(0,n.Cg)([(0,h.MZ)()],D.prototype,"enabled",void 0),(0,n.Cg)([(0,h.MZ)()],D.prototype,"options",void 0),(0,n.Cg)([(0,h.MZ)()],D.prototype,"editSourcePoints",null),(0,n.Cg)([(0,h.MZ)()],D.prototype,"_isEditSourcePointsToggled",void 0),(0,n.Cg)([(0,h.MZ)()],D.prototype,"updating",null),(0,n.Cg)([(0,h.MZ)()],D.prototype,"_preferredInteractionTool",null),(0,n.Cg)([(0,h.MZ)()],D.prototype,"_validatedSelectedElement",null),D=(0,n.Cg)([(0,d.$)("esri.views.3d.layers.support.MediaLayerInteraction")],D);var R=i(86896),H=i(69200),z=i(15206),j=i(4128),L=i(14084),U=i(89187),k=i(8527),B=i(23210),W=i(73648),V=i(37750),G=i(91394);let $=class extends(0,v.w)((0,W.A)(B.A)){get interactive(){return this._interaction.enabled}set interactive(e){this._interaction&&(this._interaction.enabled=e)}get selectedElement(){return this._interaction.selectedElement}set selectedElement(e){this._interaction&&(this._interaction.selectedElement=e)}get visibleAtCurrentScale(){return(0,G.E5)(this.layer.effectiveScaleRange,this.view.scale)}get usedMemory(){return Array.from(this._renderElements.values()).reduce((e,t)=>
1e+(t.getRenderData()?.texture.usedMemory??0),0)}constructor(e){super(e),this.type="media-3d",this.drapeSourceType=1,this.updatePolicy=1,this.ignoresMemoryFactor=!0,this.unloadedMemory=0,this._uidToElement=new Map,this._highlightedElements=new Map,this._elementsInHighlightedId=new Map,this._renderElements=new Map,this._lastDrapingExtent=null,this._update=(0,l.sg)(async(e,t,i)=>{let n=await this._collectMediaElements(e,t,i);this._synchronizeRenderElements(n)},0);const{view:t,layer:i}=e;this._interaction=new D({view:t,layer:i}),this.addHandles((0,u.wB)(()=>this.interactionOptions,e=>this._interaction.options=e,u.pc))}initialize(){let{view:e,layer:t}=this;this._renderer=e.overlayManager.registerGeometryDrapeSource(this);let i=()=>this._updateWithLastDrapingExtent();this.addHandles([(0,s.hA)(()=>e.overlayManager.unregisterDrapeSource(this)),(0,u.on)(()=>t.effectiveSource,"change",i),(0,u.on)(()=>t.effectiveSource,"refresh",i)]),this._updatingHandles.add(()=>this.suspended,i)}destroy(){this._synchronizeRenderElements(new Set)}setDrapingExtent(e,t){this._lastDrapingExtent={overlays:e,spatialReference:t},this._updateWithLastDrapingExtent()}getHit(e){let t=this._uidToElement.get(e);return t?{type:"media",element:t,layer:this.layer}:null}highlight(e,t){let i=(0,V.i)(t),n=new j.h(i),r=(0,o.xZ)(e)?Array.from(e):[e];for(let e of(this._elementsInHighlightedId.set(n,r),r)){let t=this._highlightedElements.get(e);t?t.add(n):this._highlightedElements.set(e,new Set([n]));let i=this._renderElements.get(e)?.getRenderData();i&&(i.renderGeometry.geometry.addHighlight(n),this._renderer.modifyGeometries([i.renderGeometry],8))}return(0,s.hA)(()=>{let e=this._elementsInHighlightedId.get(n);if(e){for(let t of e){let e=this._highlightedElements.get(t);if(!e)continue;e.delete(n);let i=this._renderElements.get(t)?.getRenderData();i&&(i.renderGeometry.geometry.removeHighlight(n),this._renderer.modifyGeometries([i.renderGeometry],8)),0===e.size&&this._highlightedElements.delete(t)}this._elementsInHighlightedId.delete(n)}})}isUpdating(){return super.isUpdating()||this._interaction.updating}_updateWithLastDrapingExtent(){if(null==this._lastDrapingExtent||this.suspended)return void(this._renderer&&this._synchronizeRenderElements(new Set));let{overlays:e,spatialReference:t}=this._lastDrapingExtent;this._updatingHandles.addPromise(this._update(e,t).catch(()=>{}))}async _collectMediaElements(e,t,i){let n=this.layer.effectiveSource;return null==n?new Set:new Set((await Promise.all(e.map(e=>n.queryElements((0,c.w1)(e.extent,t),{signal:i})))).flat())}_synchronizeRenderElements(e){this._synchronizeRenderElementsRemove(e),this._synchronizeRenderElementsAdd(e)}_synchronizeRenderElementsRemove(e){this._renderElements.forEach((t,i)=>{e.has(i)||(this._removeElement(i,t),this.emit("element-render-changed",{element:i}))})}_synchronizeRenderElementsAdd(e){for(let t of e)this._renderElements.has(t)||this._createRenderElement(t)}_removeElement(e,t){this._destroyRenderData(e,t),this._renderElements.delete(e),this._uidToElement.delete(e.uid),t.handle.remove()}_createRenderElement(e){let t=new g._({spatialReference:this.view.spatialReference,element:e}),i=new F((0,s.vE)([this._updatingHandles.add(()=>e.opacity,e=>i.getRenderData()?.material.setParameters({opacity:e})),this._updatingHandles.add(()=>t.coords,()=>{i.data?this._updateGeometry(t,i):this._initializeRenderData(t,i)}),this._updatingHandles.add(()=>e.content,()=>this._initializeRenderData(t,i)),(0,s.DQ)(t)]));this._renderElements.set(e,i),this._uidToElement.set(e.uid,e),this._updatingHandles.addPromise(e.load().catch(()=>{})),this._initializeRenderData(t,i)}_initializeRenderData(e,t){let{coords:i,element:n}=e,{contentWidth:r,contentHeight:s}=n;if(null==i||null==n.content)return void this._destroyRenderData(n,t);if(t.data)return;let o=this._createTexture(n.content),a=o.load(this.view.stage.renderView.renderingContext),u=()=>{if(!o.loaded)return;this.view.stage.addTexture(o);let e=new k.r({draped:!0,texture:o,opacity:n.opacity,perspectiveInterpolation:!0}),a=this._getPositionAttributeArray(i),l=this._getPerspectiveDivideAttributeArray(a,r,s),u=[0,1,2,0,2,3],h=new z.V(e,[["position",new H.n(a,u,3,!0)],["uv0",new H.n([0,0,1,0,1,1,0,1],u,2,!0)],["perspectiveDivide",new H.n(l,u,1,!0)]]),d=new L.$(h,{layerViewUid:this.uid,graphicUid:n.uid}),p=this._highlightedElements.get(n);
1p?.forEach(e=>d.geometry.addHighlight(e)),this._renderer.addGeometries([d],0),t.data=new N(d,o,e),this.emit("element-render-changed",{element:n})};(0,l.$X)(a)?(t.data=o,this._updatingHandles.addPromise(a),a.then(u).catch(()=>o.dispose())):u()}_updateGeometry(e,t){let{coords:i,element:n}=e;if(null==i||null==n.content)return void this._destroyRenderData(n,t);let r=t.getRenderData();if(!r)return;let s=this._getPositionAttributeArray(i);r.renderGeometry.geometry.setAttributeData("position",s);let o=this._getPerspectiveDivideAttributeArray(s,n.contentWidth,n.contentHeight);r.renderGeometry.geometry.setAttributeData("perspectiveDivide",o),r.renderGeometry.geometry.invalidateBoundingInfo(),this._renderer.modifyGeometries([r.renderGeometry],2),this.emit("element-render-changed",{element:n})}_getPositionAttributeArray(e){let[t,i,n,r]=e.rings[0];return[t[0],t[1],R.bi,r[0],r[1],R.bi,n[0],n[1],R.bi,i[0],i[1],R.bi]}_getPerspectiveDivideAttributeArray(e,t,i){(0,a.O)(q,[0,0,t,0,t,i,0,i],[e[0],e[1],e[3],e[4],e[6],e[7],e[9],e[10]]);let n=q[6]/q[8]*t,r=q[7]/q[8]*i;return[1,1+n,1+n+r,1+r]}_destroyRenderData(e,t){let i=t.data;if(null==i)return;if(t.data=null,"dispose"in i)return void i.dispose();let n=i.texture;n.unload(),this.view.stage.removeTexture(n),this._renderer.removeGeometries([i.renderGeometry],2),this.emit("element-render-changed",{element:e})}_createTexture(e){let t=e instanceof HTMLImageElement?e.naturalWidth:e.width,i=e instanceof HTMLImageElement?e.naturalHeight:e.height;if("getFrame"in e)throw new r.A("media-layer-view-3d","animation is not supported");return new U.g(e,{wrap:{s:33071,t:33071},preMultiplyAlpha:!0,width:t,height:i,mipmap:!0,updateCallback:()=>this.view.overlayManager.requestRender()})}get test(){}};(0,n.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"type",void 0),(0,n.Cg)([(0,h.MZ)()],$.prototype,"layer",void 0),(0,n.Cg)([(0,h.MZ)()],$.prototype,"interactive",null),(0,n.Cg)([(0,h.MZ)()],$.prototype,"selectedElement",null),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"visibleAtCurrentScale",null),$=(0,n.Cg)([(0,d.$)("esri.views.3d.layers.MediaLayerView3D")],$);let q=(0,p.vt)();class F{constructor(e){this.handle=e}getRenderData(){return this.data&&"type"in this.data&&"RenderData"===this.data.type?this.data:null}}class N{constructor(e,t,i){this.renderGeometry=e,this.texture=t,this.material=i,this.type="RenderData"}}let K=$},20135:(e,t,i)=>{i.d(t,{O:()=>p,W:()=>d});var n=i(95648),r=i(98820),s=i(70795),o=i(24174);let a=(0,i(91996).vt)(),l=(0,r.vt)(),u=(0,r.vt)(),h=(0,r.vt)();function d(e,t,i){return(0,o.j)(a,t[0],t[1],1),(0,o.o)(a,a,(0,n.mg)(l,i)),0===a[2]?(0,s.hZ)(e,a[0],a[1]):(0,s.hZ)(e,a[0]/a[2],a[1]/a[2])}function p(e,t,i){return c(u,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),c(h,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]),(0,n.lw)(e,(0,n.KC)(u,u),h),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function c(e,t,i,r,s,u,h,d,p){(0,n.hZ)(e,t,r,u,i,s,h,1,1,1),(0,o.j)(a,d,p,1),(0,n.KC)(l,e);let[c,g,v]=(0,o.o)(a,a,(0,n.mg)(l,l));return(0,n.hZ)(l,c,0,0,0,g,0,0,0,v),(0,n.lw)(e,l,e)}},21923:(e,t,i)=>{i.d(t,{r:()=>s});var n=i(87408);class r extends n.R{constructor(e,t){super(e,t,"webmap")}}function s(e){return null!=e&&"object"==typeof e&&"declaredClass"in e&&"esri.WebMap"===e.declaredClass}new r(2,35)},22171:(e,t,i)=>{i.d(t,{w:()=>h});var n=i(56183),r=i(31323),s=i(63610),o=i(24372),a=i(13695);i(56436),i(23760),i(94527);var l=i(92784),u=i(9880);let h=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.slicePlaneEnabled=!1,this.supportsHeightUnitConversion=!1}postscript(){super.postscript(),(0,u.jI)(this.layer)&&this.addResolvingPromise(this._val
1idateHeightModelInfo())}async _validateHeightModelInfo(){let e=new AbortController,t=e.signal;this.addHandles((0,r.hA)(()=>e.abort())),await (0,o.C_)(()=>this.view.defaultsFromMap?.heightModelInfoReady,t),(0,s.Te)(t);let i=(0,u.Hu)(this.layer,this.view.heightModelInfo,this.supportsHeightUnitConversion);if(i)throw i}};return(0,n.Cg)([(0,a.MZ)()],i.prototype,"view",void 0),(0,n.Cg)([(0,a.MZ)()],i.prototype,"slicePlaneEnabled",void 0),i=(0,n.Cg)([(0,l.$)("esri.views.3d.layers.LayerView3D")],i)}},23210:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(56183),r=i(17237),s=i(94660),o=i(23760),a=i(58096),l=i(16593),u=i(13695);i(56436),i(94527);var h=i(92784),d=i(98857),p=i(91394);let c=class extends(0,s.sA)((0,l.g)(r.nJ)){get spatialReferenceSupported(){return!0}constructor(e){super(e),this._updatingHandles=new d.U,this.layer=null,this.parent=null}initialize(){this.when().catch(e=>{if("layerview:create-error"!==e.name){let t=this.layer&&this.layer.id||"no id",i=this.layer?.title||"no title";o.A.getLogger(this).error("#resolve()",`Failed to resolve layer view (layer title: '${i}', id: '${t}')`,e)}})}destroy(){this._updatingHandles=(0,a.pR)(this._updatingHandles),this._set("parent",null)}get fullOpacity(){return(this.layer?.opacity??1)*(this.parent?.fullOpacity??1)}get suspended(){return this.destroyed||!this.canResume()}get suspendInfo(){return this.getSuspendInfo()}get legendEnabled(){return!this.suspended&&!0===this.layer?.legendEnabled}get updating(){return!(!this._updatingHandles?.updating&&!this.isUpdating())}get updatingProgress(){return+!this.updating}get updateSuspended(){return this.suspended}get visible(){return!0===this.layer?.visible}set visible(e){this._overrideIfSome("visible",e)}get visibleAtCurrentScale(){return!0}get visibleAtCurrentTimeExtent(){let e=this.view.timeExtent,t=this.layer?.visibilityTimeExtent;return!e||!t||!e.intersection(t).isEmpty}canResume(){let e=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return this.visible&&this.layer?.loaded&&this.parent&&!this.parent.suspended&&this.view?.ready&&(0,p.g7)(e)&&this.visibleAtCurrentScale&&this.visibleAtCurrentTimeExtent||!1}getSuspendInfo(){let e=this.parent?.suspended?this.parent.suspendInfo:{};this.view?.ready||(e.viewNotReady=!0),this.layer&&this.layer.loaded||(e.layerNotLoaded=!0);let t=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;return(0,p.g7)(t)&&this.visibleAtCurrentScale||(e.outsideScaleRange=!0),this.visibleAtCurrentTimeExtent||(e.outsideVisibilityTimeExtent=!0),this.visible||(e.layerInvisible=!0),e}isUpdating(){return!1}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"spatialReferenceSupported",null),(0,n.Cg)([(0,u.MZ)()],c.prototype,"view",void 0),(0,n.Cg)([(0,u.MZ)()],c.prototype,"fullOpacity",null),(0,n.Cg)([(0,u.MZ)()],c.prototype,"layer",void 0),(0,n.Cg)([(0,u.MZ)()],c.prototype,"parent",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"suspended",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"suspendInfo",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"legendEnabled",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,readOnly:!0})],c.prototype,"updating",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"updatingProgress",null),(0,n.Cg)([(0,u.MZ)()],c.prototype,"updateSuspended",null),(0,n.Cg)([(0,u.MZ)()],c.prototype,"visible",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"visibleAtCurrentScale",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"visibleAtCurrentTimeExtent",null),c=(0,n.Cg)([(0,h.$)("esri.views.layers.LayerView")],c)},25286:(e,t,i)=>{i.d(t,{E:()=>o});var n=i(60229),r=i(90104);let s=null;async function o(){let e;return s||(e=await (0,r.c)(),s={autoAreaByElevationMode(t,i,r=(0,n.u0)()){if("on-the-ground"===i){let i=e.geodesicArea(t);return null!=i?i:(0,n.qh)(t,r)}return(0,n.EI)(t,r)},autoArea2D(e,t=(0,n.u0)()){return this.autoAreaByElevationMode(e,"on-the-ground",t)}}),s}},29211:(e,t,i)=>{function n(e,t,i){i=i||2;var n,c,g,y,x,_,w,b=t&&t.length,M=b?t[0]*i:e.length,C=r(e,0,M,i,!0),T=[];if(!C||C.next===C.prev)return T;if(b&&(C=function(e,t,i,n){var l,d,p,c=[];for(l=0,d=t.length;l<d;l++)(p=r(e,t[l]*n,l<d-1?t[l+1]*n:e.length,n,!1))===p.next&&(p.steiner=!0),c.push(function(e){var t=e,i=e;do(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next;while(t!==e);return i}(p));for(c.sort(o),l=0;l<c.length;l++)i=s(i=function(e,t){var i=function(e,t){var i,n,r,s=t,o=e.x,a=e.
1y,l=-1/0;do{if(a<=s.y&&a>=s.next.y&&s.next.y!==s.y){var d=s.x+(a-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(d<=o&&d>l){if(l=d,d===o){if(a===s.y)return s;if(a===s.next.y)return s.next}r=s.x<s.next.x?s:s.next}}s=s.next}while(s!==t);if(!r)return null;if(o===l)return r;var p,c=r,g=r.x,f=r.y,y=1/0;s=r;do{o>=s.x&&s.x>=g&&o!==s.x&&u(a<f?o:l,a,g,f,a<f?l:o,a,s.x,s.y)&&(p=Math.abs(a-s.y)/(o-s.x),v(s,e)&&(p<y||p===y&&(s.x>r.x||s.x===r.x&&(i=r,n=s,0>h(i.prev,i,n.prev)&&0>h(n.next,i,i.next))))&&(r=s,y=p)),s=s.next}while(s!==c);return r}(e,t);if(!i)return t;var n=f(i,e),r=s(i,i.next);let o=a(n);return s(o,o.next),r=a(r),a(t===i?r:t)}(c[l],i),i.next);return i}(e,t,C,i)),e.length>80*i){n=g=e[0],c=y=e[1];for(var E=i;E<M;E+=i)(x=e[E])<n&&(n=x),(_=e[E+1])<c&&(c=_),x>g&&(g=x),_>y&&(y=_);w=0!==(w=Math.max(g-n,y-c))?1/w:0}return function e(t,i,n,r,o,a,c){if(t){!c&&a&&function(e,t,i,n){var r=e;do null===r.z&&(r.z=l(r.x,r.y,t,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,i,n,r,s,o,a,l,u=1;do{for(i=e,e=null,s=null,o=0;i;){for(o++,n=i,a=0,t=0;t<u&&(a++,n=n.nextZ);t++);for(l=u;a>0||l>0&&n;)0!==a&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,a--):(r=n,n=n.nextZ,l--),s?s.nextZ=r:e=r,r.prevZ=s,s=r;i=n}s.nextZ=null,u*=2}while(o>1)}(r)}(t,r,o,a);for(var g,y,x=t;t.prev!==t.next;)if(g=t.prev,y=t.next,a?function(e,t,i,n){var r=e.prev,s=e.next;if(h(r,e,s)>=0)return!1;for(var o=r.x<e.x?r.x<s.x?r.x:s.x:e.x<s.x?e.x:s.x,a=r.y<e.y?r.y<s.y?r.y:s.y:e.y<s.y?e.y:s.y,d=r.x>e.x?r.x>s.x?r.x:s.x:e.x>s.x?e.x:s.x,p=r.y>e.y?r.y>s.y?r.y:s.y:e.y>s.y?e.y:s.y,c=l(o,a,t,i,n),g=l(d,p,t,i,n),v=e.prevZ,f=e.nextZ;v&&v.z>=c&&f&&f.z<=g;){if(v!==e.prev&&v!==e.next&&u(r.x,r.y,e.x,e.y,s.x,s.y,v.x,v.y)&&h(v.prev,v,v.next)>=0||(v=v.prevZ,f!==e.prev&&f!==e.next&&u(r.x,r.y,e.x,e.y,s.x,s.y,f.x,f.y)&&h(f.prev,f,f.next)>=0))return!1;f=f.nextZ}for(;v&&v.z>=c;){if(v!==e.prev&&v!==e.next&&u(r.x,r.y,e.x,e.y,s.x,s.y,v.x,v.y)&&h(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;f&&f.z<=g;){if(f!==e.prev&&f!==e.next&&u(r.x,r.y,e.x,e.y,s.x,s.y,f.x,f.y)&&h(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}(t,r,o,a):function(e){var t=e.prev,i=e.next;if(h(t,e,i)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(u(t.x,t.y,e.x,e.y,i.x,i.y,n.x,n.y)&&h(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}(t))i.push(g.i/n),i.push(t.i/n),i.push(y.i/n),m(t),t=y.next,x=y.next;else if((t=y)===x){c?1===c?e(t=function(e,t,i){var n=e;do{var r=n.prev,o=n.next.next;!d(r,o)&&p(r,n,n.next,o)&&v(r,o)&&v(o,r)&&(t.push(r.i/i),t.push(n.i/i),t.push(o.i/i),m(n),m(n.next),n=e=o),n=n.next}while(n!==e);return s(n)}(s(t),i,n),i,n,r,o,a,2):2===c&&function(t,i,n,r,o,a){var l=t;do{for(var u,c,g=l.next.next;g!==l.prev;){if(l.i!==g.i&&(u=l,c=g,u.next.i!==c.i&&u.prev.i!==c.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&p(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(u,c)&&(v(u,c)&&v(c,u)&&function(e,t){var i=e,n=!1,r=(e.x+t.x)/2,s=(e.y+t.y)/2;do i.y>s!=i.next.y>s&&i.next.y!==i.y&&r<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next;while(i!==e);return n}(u,c)&&(h(u.prev,u,c.prev)||h(u,c.prev,c))||d(u,c)&&h(u.prev,u,u.next)>0&&h(c.prev,c,c.next)>0))){var y=f(l,g);return l=s(l,l.next),y=s(y,y.next),e(l,i,n,r,o,a),void e(y,i,n,r,o,a)}g=g.next}l=l.next}while(l!==t)}(t,i,n,r,o,a):e(s(t),i,n,r,o,a,1);break}}}(C,T,i,n,c,w),T}function r(e,t,i,n,r){var s,o;if(r===_(e,t,i,n)>0)for(s=t;s<i;s+=n)o=y(s,e[s],e[s+1],o);else for(s=i-n;s>=t;s-=n)o=y(s,e[s],e[s+1],o);if(o&&d(o,o.next)){var a=o.next;m(o),o=a}return o}function s(e,t){if(!e)return e;t||(t=e);var i,n=e;do if(i=!1,n.steiner||!d(n,n.next)&&0!==h(n.prev,n,n.next))n=n.next;else{var r=n.prev;if(m(n),(n=t=r)===n.next)break;i=!0}while(i||n!==t);return t}function o(e,t){return e.x-t.x}function a(e){if(e.next.prev===e)return e;let t=e;for(;;){let i=t.next;if(i.prev===t||i===t||i===e)break;t=i}return t}function l(e,t,i,n,r){return(e=0x55555555&((e=0x33333333&((e=0xf0f0f0f&((e=0xff00ff&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))|(t=0x55555555&((t=0x33333333&((t=0xf0f0f0f&((t=0xff00ff&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function u(e,t,i,n,r,s,o,a){return(r-o)*(t-a)-(e-o)*(s-a)>=0&&(e-o)*(n-a)-(i-o)*(t-a)>=0&&(i-o)*(s-a)-(r-o)*(n-a)>=0}
1function h(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function d(e,t){return e.x===t.x&&e.y===t.y}function p(e,t,i,n){var r=g(h(e,t,i)),s=g(h(e,t,n)),o=g(h(i,n,e)),a=g(h(i,n,t));return r!==s&&o!==a||!(0!==r||!c(e,i,t))||!(0!==s||!c(e,n,t))||!(0!==o||!c(i,e,n))||!(0!==a||!c(i,t,n))}function c(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function g(e){return e>0?1:e<0?-1:0}function v(e,t){return 0>h(e.prev,e,e.next)?h(e,t,e.next)>=0&&h(e,e.prev,t)>=0:0>h(e,t,e.prev)||0>h(e,e.next,t)}function f(e,t){var i=new x(e.i,e.x,e.y),n=new x(t.i,t.x,t.y),r=e.next,s=t.prev;return e.next=t,t.prev=e,i.next=r,r.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function y(e,t,i,n){var r=new x(e,t,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function m(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function x(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _(e,t,i,n){for(var r=0,s=t,o=i-n;s<i;s+=n)r+=(e[o]-e[s])*(e[s+1]+e[o+1]),o=s;return r}i.d(t,{e:()=>n}),n.deviation=function(e,t,i,n){var r=t&&t.length,s=r?t[0]*i:e.length,o=Math.abs(_(e,0,s,i));if(r)for(var a=0,l=t.length;a<l;a++){var u=t[a]*i,h=a<l-1?t[a+1]*i:e.length;o-=Math.abs(_(e,u,h,i))}var d=0;for(a=0;a<n.length;a+=3){var p=n[a]*i,c=n[a+1]*i,g=n[a+2]*i;d+=Math.abs((e[p]-e[g])*(e[c+1]-e[p+1])-(e[p]-e[c])*(e[g+1]-e[p+1]))}return 0===o&&0===d?0:Math.abs((d-o)/o)},n.flatten=function(e){for(var t=e[0][0].length,i={vertices:[],holes:[],dimensions:t},n=0,r=0;r<e.length;r++){for(var s=0;s<e[r].length;s++)for(var o=0;o<t;o++)i.vertices.push(e[r][s][o]);r>0&&(n+=e[r-1].length,i.holes.push(n))}return i}},30914:(e,t,i)=>{i.d(t,{W:()=>s});var n=i(77853),r=i(19462);class s extends n.i{intersect(e,t,i,n,s,o){return(0,r.Uy)(e,i,n,s,void 0,o)}intersectDraped(e,t,i,n){return(0,r.gz)(i[0],i[1],e,n)}}},31518:(e,t,i)=>{i.d(t,{_:()=>d});var n=i(56183),r=i(39895),s=i(13695);i(56436),i(23760),i(94527);var o=i(92784),a=i(42757),l=i(50941),u=i(4665),h=i(87433);let d=class extends r.A{constructor(e){super(e)}get bounds(){let e=this.coords;return null==e?.extent?null:(0,u.VY)(e.extent)}get coords(){let e=this.element.georeference?.coords;return(0,l.projectOrLoad)(e,this.spatialReference).geometry}get normalizedCoords(){return a.A.fromJSON((0,h.jZ)(this.coords))}get normalizedBounds(){let e=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=e?(0,u.VY)(e):null}};(0,n.Cg)([(0,s.MZ)()],d.prototype,"spatialReference",void 0),(0,n.Cg)([(0,s.MZ)()],d.prototype,"element",void 0),(0,n.Cg)([(0,s.MZ)()],d.prototype,"bounds",null),(0,n.Cg)([(0,s.MZ)()],d.prototype,"coords",null),(0,n.Cg)([(0,s.MZ)()],d.prototype,"normalizedCoords",null),(0,n.Cg)([(0,s.MZ)()],d.prototype,"normalizedBounds",null),d=(0,n.Cg)([(0,o.$)("esri.layers.support.MediaElementView")],d)},37750:(e,t,i)=>{i.d(t,{i:()=>r});var n=i(58047);function r(e){return e?.name??n.Tv}},46876:(e,t,i)=>{i.d(t,{X:()=>l});var n=i(31323),r=i(23216),s=i(50987),o=i(5114);let a=new Map;function l(e){if(!a.has(e)){var t,i;let n=(0,s.B)(e,{distance:10}),r=(t=e,i=n.options,new o.g({view:t,options:i}));a.set(e,{referenceCount:0,snappingManager:r,remove:()=>{n.remove(),r.destroy()}})}let l=a.get(e);l.referenceCount++;let u=(0,n.hA)(()=>{var t,i;return t=e,i=l,void(i.referenceCount--,i.referenceCount>0||(0,r.d)(()=>{0===i.referenceCount&&(i.remove(),a.delete(t))}))});return{snappingManager:l.snappingManager,...u}}},50987:(e,t,i)=>{i.d(t,{B:()=>h});var n=i(97612),r=i(31323),s=i(3991),o=i(73681),a=i(81770),l=i(89887);let u=n.A.ofType(o.A);function h(e,t){let i=(0,s.L)(t?.excludeInternal?()=>e.map?.allLayers.filter(e=>!("internal"in e)||!e.internal):()=>e.map?.allLayers,e=>new o.A({layer:e}),{recycleItems:!0,createCollection:()=>new u}),n=new l.A({enabled:!0,selfEnabled:t?.selfEnabled??!1,featureEnabled:!0,featureSources:i,distance:t?.distance??a.N.distance,touchSensitivityMultiplier:t?.touchSensitivityMultiplier??a.N.touchSensitivityMultiplier});return{...(0,r.DQ)(i),options:n}}},57566:(e,t,i)=>{i.d(t,{S:()=>s});var n=i(88087),r=i(79352);class s extends n.p{constructor(e,t,i){super(e,t),this._updateControlPoints=i,this.editSourcePoints=!1}updateVertices(e,t,i=1){return this._apply(new o(this.data,e,t,this.editSourcePoints,this._updateControlPoints),i)}}class o extends r.D{constructor(e,t,i,n,r){super(e,t,i),this._editSourcePoints=n,this._updateControlPoints=r}_notifyChanges(e){super._notifyChanges(e),this._updateControlPoints(this._editSourcePoints)}canAccumulate(e){return this._editSourcePoints===e._editSourcePoints&&super.canAccumulate(e)}}},60229:(e,t,i)=>{i.d(t,{EI:()=>p,lO:()=>m,qh:()=>c,u0:()=>y});var n=i(91170),r=i(3203),s=i(29211),o=i(24174),a=i(91996),l=i(71863),u=i(69245),h=i(17009),d=i(34830);function p(e,t=y()){return g(e,t)}function c(e,t=y()){return g(e,t,!1)}function g(e,t,i=e.hasZ){let s=(0,d.l)(e.spatialReference),p=(0,r.B5)(s);if(null==p)return null;
1let c=(e,t)=>!(t.length<2)&&((0,o.j)(e,t[0],t[1],i&&t[2]||0),!0),y=0;for(let i of e.rings){let n=i.length;if(n<3)continue;let{positionsWorldCoords:r}=t;for(;r.length<n;)r.push((0,a.vt)());let d=(0,o.j)(f,0,0,0),p=1/n;for(let t=0;t<n;t++){if(!c(v,i[t])||!(0,l.F)(v,e.spatialReference,r[t],s))return null;(0,o.c)(d,d,r[t],p)}let g=(0,u.Cr)(r[0],r[1],d,(0,u.LV)());if(0===(0,o.m)((0,u.Qj)(g)))continue;for(let e=0;e<n;e++)(0,u.Z1)(g,d,r[e],r[e]);let x=m(r);for(let e=0;e<x.length;e+=3)y+=(0,h.Fm)(r[x[e]],r[x[e+1]],r[x[e+2]])}return(0,n.gT)(y,p)}let v=(0,a.vt)(),f=(0,a.vt)();function y(){return{positionsWorldCoords:[]}}function m(e){return(0,s.e)(function(e){let t=new Float64Array(2*e.length);for(let i=0;i<e.length;++i){let n=e[i],r=2*i;t[r]=n[0],t[r+1]=n[1]}return t}(e),[],2)}},72429:(e,t,i)=>{i.d(t,{I:()=>y,a:()=>v,b:()=>f});var n=i(90765),r=i(48675),s=i(58126),o=i(41554),a=i(63713),l=i(61351),u=i(96070),h=i(78963),d=i(40887),p=i(23413),c=i(59938),g=i(93179);class v extends c.Y{}function f(e){let t=new g.N5,{vertex:i,fragment:c,varyings:v}=t,{output:f,perspectiveInterpolation:y}=e;return(0,l.NB)(i,e),t.include(r.d),t.include(o.Z,e),t.fragment.include(n.HQ,e),t.include(s.g,e),t.include(p.z,e),t.attributes.add("position","vec3"),t.attributes.add("uv0","vec2"),y&&t.attributes.add("perspectiveDivide","float"),i.main.add((0,h.H)` 2 vpos = position; 3 forwardViewPosDepth((view * vec4(vpos, 1.0)).xyz); 4 vTexCoord = uv0; 5 gl_Position = transformPosition(proj, view, vpos); 6 ${(0,h.If)(y,"gl_Position *= perspectiveDivide;")}`),v.add("vpos","vec3",{invariant:!0}),v.add("vTexCoord","vec2"),c.include(a.a),c.uniforms.add(new u.m("opacity",e=>e.opacity),new d.N("tex",e=>e.glTexture)).main.add((0,h.H)` 7 discardBySlice(vpos); 8 discardByTerrainDepth(); 9 ${(0,h.If)(10===f,"fragColor = vec4(0, 0, 0, 1); return;")} 10 vec4 finalColor = texture(tex, vTexCoord) * opacity; 11 outputColorHighlightOID(finalColor, vpos, finalColor.rgb);`),t}let y=Object.freeze(Object.defineProperty({__proto__:null,ImageMaterialPassParameters:v,build:f},Symbol.toStringTag,{value:"Module"}))},73648:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(56183),r=i(13695);i(56436),i(23760),i(94527);var s=i(92784),o=i(39895);let a=class extends o.A{constructor(e){super(e),this.editSourcePoints=!1}};(0,n.Cg)([(0,r.MZ)()],a.prototype,"editSourcePoints",void 0),a=(0,n.Cg)([(0,s.$)("esri.views.3d.layers.support.MediaLayerInteractionOptions.ReshapeOptions")],a);let l=class extends o.A{constructor(e){super(e),this.tool="transform",this.reshapeOptions=new a}};(0,n.Cg)([(0,r.MZ)()],l.prototype,"tool",void 0),(0,n.Cg)([(0,r.MZ)({type:a})],l.prototype,"reshapeOptions",void 0),l=(0,n.Cg)([(0,s.$)("esri.views.3d.layers.support.MediaLayerInteractionOptions")],l);let u=e=>{let t=e,i=class extends t{constructor(...e){super(...e),this.layer=null,this.interactive=!1,this.interactionOptions=new l,this.selectedElement=null}highlight(e,t){throw Error("missing implementation")}};return(0,n.Cg)([(0,r.MZ)()],i.prototype,"layer",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"interactive",void 0),(0,n.Cg)([(0,r.MZ)({type:l})],i.prototype,"interactionOptions",void 0),(0,n.Cg)([(0,r.MZ)()],i.prototype,"selectedElement",void 0),i=(0,n.Cg)([(0,s.$)("esri.views.layers.MediaLayerView")],i)}},83413:(e,t,i)=>{i.d(t,{$0:()=>d,B8:()=>o,CV:()=>p,D_:()=>r,Tl:()=>h,e$:()=>l,hZ:()=>s,hs:()=>u,kN:()=>c,lw:()=>a});var n=i(99190);function r(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function s(e,t,i,n,r,s,o){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=s,e[5]=o,e}function o(e,t){let i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=i*s-n*r;return l?(l=1/l,e[0]=s*l,e[1]=-n*l,e[2]=-r*l,e[3]=i*l,e[4]=(r*a-s*o)*l,e[5]=(n*o-i*a)*l,e):null}function a(e,t,i){let n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=i[0],h=i[1],d=i[2],p=i[3],c=i[4],g=i[5];return e[0]=n*u+s*h,e[1]=r*u+o*h,e[2]=n*d+s*p,e[3]=r*d+o*p,e[4]=n*c+s*g+a,e[5]=r*c+o*g+l,e}function l(e,t,i){let n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=Math.sin(i),h=Math.cos(i);return e[0]=n*h+s*u,e[1]=r*h+o*u,e[2]=-(n*u)+s*h,e[3]=-(r*u)+o*h,e[4]=a,e[5]=l,e}function u(e,t,i){let n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=i[0],h=i[1];return e[0]=n*u,e[1]=r*u,e[2]=s*h,e[3]=o*h,e[4]=a,e[5]=l,e}function h(e,t,i){let n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=i[0],h=i[1];return e[0]=n,e[1]=r,e[2]=s,e[3]=o,e[4]=n*u+s*h+a,e[5]=r*u+o*h+l,e}function d(e,t){let i=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=i,e[2]=-i,e[3]=n,e[4]=0,e[5]=0,e}function p(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e[4]=0,e[5]=0,e}function c(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=t[0],e[5]=t[1],e}function g(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e[4]=t[4]-i[4],e[5]=t[5]-i[5],e}Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e[4]=t[4]+i[4],e[5]=t[5]+i[5],e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},determinant:function(e){return e[0]*e[3]-e[1]*e[2]},equals:function(e,t){let i=e[0],r=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=t[0],h=t[1],d=t[2],p=t[3],c=t[4],g=t[5],v=(0,n.FD)();return Math.abs(i-u)<=v*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(r-h)<=v*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-d)<=v*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(o-p)<=v*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-c)<=v*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(l-g)<=v*Math.max(1,Math.abs(l),Math.abs(g))},exactEquals:function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+1)},fromRotation:d,fromScaling:p,fromTranslation:c,identity:r,invert:o,mul:a,multiply:a,multiplyScalar:function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*i,e[5]=t[5]*i,e},multiplyScalarAndAdd:function(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e[3]=t[3]+i[3]*n,e[4]=t[4]+i[4]*n,e[5]=t[5]+i[5]*n,e},rotate:l,scale:u,set:s,str:function(e){return"mat2d("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"},sub:g,subtract:g,translate:h},Symbol.toStringTag,{value:"Module"}))},87433:(e,t,i)=>{i.d(t,{b3:()=>d,jZ:()=>h});var n=i(21987),r=i(4665),s=i(15036),o=i(69792),a=i(74376),l=i(17696),u=i(47829);function h(e){return p(e,!0)}function d(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,r=(0,u.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!r)return o;let h=(0,u.K8)(i)?102100:4326,d=l.j7[h].maxX,p=l.j7[h].minX;if((0,a.fT)(o))return c(o,d,p);if((0,a.U9)(o))return o.points=o.points.map(e=>c(e,d,p)),o;if((0,a.ZC)(o)){var f=o,_=r;if(!_)return f;let e=(function(e,t){let i=[],{ymin:n,ymax:r,xmin:s,xmax:o}=e,a=e.xmax-e.xmin,[l,u]=t.valid,{x:h,frameId:d}
11=g(e.xmin,t),{x:p,frameId:c}=g(e.xmax,t),f=h===p&&a>0;if(a>2*u){let e={xmin:s<o?h:p,ymin:n,xmax:u,ymax:r},t={xmin:l,ymin:n,xmax:s<o?p:h,ymax:r},a={xmin:0,ymin:n,xmax:u,ymax:r},g={xmin:l,ymin:n,xmax:0,ymax:r},f=[],y=[];v(e,a)&&f.push(d),v(e,g)&&y.push(d),v(t,a)&&f.push(c),v(t,g)&&y.push(c);for(let e=d+1;e<c;e++)f.push(e),y.push(e);i.push(new m(e,[d]),new m(t,[c]),new m(a,f),new m(g,y))}else h>p||f?i.push(new m({xmin:h,ymin:n,xmax:u,ymax:r},[d]),new m({xmin:l,ymin:n,xmax:p,ymax:r},[c])):i.push(new m({xmin:h,ymin:n,xmax:p,ymax:r},[d]));return i})(f,_).map(e=>e.extent);return e.length<2?e[0]||f:e.length>2?(f.xmin=_.valid[0],f.xmax=_.valid[1],f):{rings:e.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}if((0,a.Bi)(o)||(0,a.Rg)(o)){let e=(0,s.Rg)(x,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,l.kd)(i.xmin,p)*(2*d),r=0===n?o:(0,l.kS)(o,n);return i.xmin+=n,i.xmax+=n,i.xmax>d?y(r,d,t):i.xmin<p?y(r,p,t):r}return o}function c(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,l.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,l.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,l.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,l.kd)(n,i);e.x+=-2*i*t}}return e}function g(e,t){let[i,n]=t.valid,r=2*n,s,o=0;return e>n?(s=Math.ceil(Math.abs(e-n)/r),e-=s*r,o=s):e<i&&(s=Math.ceil(Math.abs(e-i)/r),e+=s*r,o=-s),{x:e,frameId:o}}function v(e,t){let{xmin:i,ymin:n,xmax:r,ymax:s}=t;return f(e,i,n)&&f(e,i,s)&&f(e,r,s)&&f(e,r,n)}function f(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function y(e,t,i=!0){let n=!(0,a.Rg)(e);if(n&&(0,o.m3)(e),i)return(new _).cut(e,t);let r=n?e.rings:e.paths,s=n?4:2,l=r.length,u=-2*t;for(let e=0;e<l;e++){let t=r[e];if(t&&t.length>=s){let e=[];for(let i of t)e.push([i[0]+u,i[1]]);r.push(e)}}return n?e.rings=r:e.paths=r,e}class m{constructor(e,t){this.extent=e,this.frameIds=t}}let x=(0,r.vt)();class _{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}for(let e of(this._pushLineIn(),this._pushLineOut(),i=[],this._linesIn))e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e[0],e[1],this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide==-1){let i=this._intersect(this._prevPt,e);this._lineTo(this._xCut,i,0),this._prevSide=0,this._lineTo(e[0],e[1],t)}else this._lineTo(e[0],e[1],t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;e[0]===t[0]&&e[1]===t[1]||this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t,i){this._closed?(this._lineIn.push([i<=0?e:this._xCut,t]),this._lineOut.push([i>=0?e:this._xCut,t])):(i<=0&&this._lineIn.push([e,t]),i>=0&&this._lineOut.push([e,t]))}_lineTo(e,t,i){this._closed?(w(this._lineIn,i<=0?e:this._xCut,t),w(this._lineOut,i>=0?e:this._xCut,t)):i<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([e,t])):i>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([e,t])):this._prevSide<0?(this._lineIn.push([e,t]),this._lineOut.push([e,t])):this._prevSide>0&&(this._lineOut.push([e,t]),this._lineIn.push([e,t]))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0][1]=e[t-2][1],e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]);return e[1]+i*(t[1]-e[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(e,t,i){let n=e.length;n>1&&e[n-1][0]===t&&e[n-2][0]===t?e[n-1][1]=i:e.push([t,i])}},90104:(e,t,i)=>{i.d(t,{c:()=>o});var n=i(91170),r=i(46111),s=i(80617);async function o(){let e;return e=await Promise.all([i.e(66793),i.e(48567)]).then(i.bind(i,17105)),{geodesicArea(t){let{spatialReference:i}=t;return(0,s.M0)(i,a,t=>(function(e,t){try{return(0,n.gT)(Math.abs(e.geodesicArea(t,"square-meters")),"square-meters")}catch(e){return null}})(e,t),t)}}}function a(e){return(0,n.gT)(Math.abs((0,r.qy)([e],"square-meters")[0]),"square-meters")}},92199:(e,t,i)=>{i.d(t,{f:()=>o});var n=i(91996),r=i(23740),s=i(29565);async function o(){var e;return e=await (0,s.V)(),{autoLength2D:t=>e.geodesicLength(t)??(0,r.Xg)(t),autoDistanceBetweenPoints2D:(t,i)=>e.geodesicDistanceBetweenPoints(t,i)??(0,r.ll)(t,i),autoDistance2D:(t,i,n)=>(a[0]=t[0],a[1]=t[1],a[2]=3===t.length?t[2]:0,l[0]=i[0],l[1]=i[1],l[2]=3===i.length?i[2]:0,e.geodesicDistance(a,l,n)??(0,r.sT)(a,l,n))}}let a=(0,n.vt)(),l=(0,n.vt)()},99019:(e,t,i)=>{function n(){return[1,0,0,1,0,0]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5]]}i.d(t,{o8:()=>r,vt:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n(),clone:r,create:n,fromValues:function(e,t,i,n,r,s){return[e,t,i,n,r,s]}},Symbol.toStringTag,{value:"Module"}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.