{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/3d/layers/I3SMeshWorkerHandle.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/I3SMeshViewLabeler.js","webpack:///./node_modules/arcgis-js-api/views/3d/support/polygonUtils.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SGeometryUtil.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/popupUtils.js","webpack:///./node_modules/arcgis-js-api/views/3d/support/LimitGraphicsMap.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SElevationProvider.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/fieldProperties.js","webpack:///./node_modules/arcgis-js-api/views/3d/webgl-engine/core/material/RenderTexture.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SQueryFeatureStore.js","webpack:///./node_modules/arcgis-js-api/views/layers/SceneLayerView.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/Highlights.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/PopupSceneLayerView.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/FeatureFilter.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/I3SMeshView3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SCrossfadeHelper.js","webpack:///./node_modules/arcgis-js-api/layers/support/SceneModification.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/IDBCache.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/SceneLayerView3D.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SQueryFeatureAdapter.js","webpack:///./node_modules/arcgis-js-api/libs/i3s/I3SWorker.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/support/DefinitionExpressionSceneLayerView.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/SceneLayerWorker.js","webpack:///./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SQueryEngine.js","webpack:///./node_modules/arcgis-js-api/views/3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BAAkB,uHAAuH,4CAA4C,+IAA+I,gCAAgC,2BAA2B,iBAAiB,6DAA6D,iBAAiB,wDAAwD,iBAAiB,gEAAgE,sDAAsD,oEAAoE,yCAAyC,yDAAyD,2CAA2C,kHAAkH,IAAI,+BAA+B;AAAA,oGAAE,C;;;;;;;ACxBxhI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAwB,CAAC,2BAAwC,CAAC,2BAAmC,CAAC,2BAAyC,CAAC,mCAAE,sBAAsB,aAAa,sCAAsC,SAAS,kCAAkC,iBAAiB,cAAc,yLAAyL,+CAA+C,2FAA2F,SAAS,eAAe,SAAS,4CAA4C,4BAA4B,uBAAuB,eAAe,uBAAuB,8BAA8B,4BAA4B,mDAAmD,0CAA0C,4DAA4D,2BAA2B,kBAAkB,oFAAoF,8CAA8C,8BAA8B,oDAAoD,SAAS,6BAA6B,kBAAkB,+BAA+B,0BAA0B,kFAAkF,kDAAkD,+FAA+F,4FAA4F,qCAAqC,6BAA6B,GAAG,GAAG,4DAA4D,eAAe,qBAAqB,+BAA+B,IAAI,GAAG,2BAA2B;AAAA,oGAAE,C","file":"js/chunk-2603bb7a.fdca720b.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/Logger\",\"../../../core/PooledArray\",\"../support/projectionUtils\",\"../support/WorkerHandle\"],(function(e,t,r,o,n,i,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.toWasmModification=t.I3SMeshWorkerHandle=void 0;var s=o.getLogger(\"esri.views.3d.layers.I3SMeshWorkerHandle\"),c=function(e){function t(t){return e.call(this,\"SceneLayerWorker\",\"process\",t)||this}return r.__extends(t,e),t.prototype.getTransferList=function(e){return[e.geometryBuffer]},t.prototype.setModifications=function(e,t,r){var o={context:e,modifications:l(t,r),isGeodetic:r.isGeographic};this.broadcast(o,\"setModifications\")},t.prototype.setLegacySchema=function(e,t){var r=JSON.stringify(t);this.broadcast({context:e,jsonSchema:r},\"setLegacySchema\")},t.prototype.destroyContext=function(e){return this.broadcast(e,\"destroyContext\")},t}(a.WorkerHandle);t.I3SMeshWorkerHandle=c;var u=new n({deallocator:null}),f=[0,0,0];function l(e,t){u.clear();for(var r=function(e){var r=\"clip\"===e.type?2:\"mask\"===e.type?1:0,o=e.geometry,n=function(e){return e};if(o.spatialReference){if(!i.canProject(o.spatialReference,t))return s.warn(\"Can't project modification polygon into layer spatial reference, ignoring modification\"),\"continue\";n=function(e){return i.vectorToVector(e,o.spatialReference,f,t),f}}else o.hasZ||(f[2]=0,n=function(e){return f[0]=e[0],f[1]=e[1],f});u.push(r),u.push(o.rings.length);for(var a=0,c=o.rings;a=t.aabr[2])break;i.add(o)}i.forEach((function(e){if(t!==e)if(e.aabr[2]<=t.aabr[0])i.delete(e);else if(f.intersects(t,e)){t.rings=t.rings.concat(e.rings),c.expand(t.aabr,e.aabr),delete t._geVersion,i.delete(e);var a=n.indexOf(r,e,r.length,s);r.splice(a,1)}})),i.add(t)};for(a=0;a0){n=new Array;for(var i=0,r=e.removed;i0&&this._pending.size>0&&(h.reset(c/this._pending.size),this._pending.forEach((function(e){h.sample()&&(s.push(e),t._pending.delete(e.objectId))}))),this._active.addAndRemove(s,n)},t}(i);t.LimitGraphicsMap=o;var h=new(function(){function e(){this.percentage=1,this.last=-1,this.index=0}return e.prototype.reset=function(e){this.percentage=e,this.last=-1},e.prototype.sample=function(){var e=Math.floor(this.index*this.percentage);return++this.index,e!==this.last&&(this.last=e,!0)},e}()),s=function(){function e(e){this._parent=e,this._map=new Map}return Object.defineProperty(e.prototype,\"length\",{get:function(){return this._map.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this._map.forEach((function(t){return e(t)}))},e.prototype.find=function(e){var t;return r.someMap(this._map,(function(n){return!!e(n)&&(t=n,!0)})),t},e.prototype.toArray=function(){return r.valuesOfMap(this._map)},e.prototype.addAndRemove=function(e,t){for(var n=0,i=e;n0||t.length>0)&&this._parent.emit(\"change\",{added:e,removed:t})},e.prototype.removeMany=function(e){for(var t=0,n=e;t0&&this._parent.emit(\"change\",{added:[],removed:e})},e}()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Accessor\",\"../../../../core/Evented\",\"../../../../core/Logger\",\"../../../../core/maybe\",\"../../../../core/accessorSupport/decorators\",\"../../../../core/libs/gl-matrix-2/mat4\",\"../../../../core/libs/gl-matrix-2/mat4f64\",\"../../../../core/libs/gl-matrix-2/vec3\",\"../../../../core/libs/gl-matrix-2/vec3f64\",\"../../../../geometry/support/aaBoundingRect\",\"../../webgl-engine/lib/Intersector\"],(function(e,t,r,i,n,o,s,a,c,l,p,d,h,v){\"use strict\";var f=h.empty(),u=l.mat4f64.create(),m=d.vec3f64.create(),y=d.vec3f64.create(),x=d.vec3f64.create(),g=o.getLogger(\"esri.views.3d.layers.i3s.I3SElevationProvider\");return function(e){function t(t){var r=e.call(this,t)||this;return r.tmpEvent={spatialReference:null,extent:f,context:\"scene\"},r}return r.__extends(t,e),t.prototype.initialize=function(){this.view=this.layerView.view,this.renderCoordsHelper=this.view.renderCoordsHelper,this.intersector=new v.Intersector(this.view.state.mode),this.intersector.options.store=0;var e=this.layerView.i3slayer.fullExtent;this.zmin=e.zmin,this.zmax=e.zmax,this.tmpEvent.context=this.intersectionHandler.isGround?\"ground\":\"scene\"},t.prototype.getElevation=function(e,t,r,i){if(m[0]=e,m[1]=t,m[2]=r,!this.renderCoordsHelper.toRenderCoords(m,i,m))return g.error(\"could not project point to compute elevation\"),null;var n=this.layerView.elevationOffset,o=this.zmin+n,s=this.zmax+n;return p.vec3.copy(y,m),p.vec3.copy(x,m),this.renderCoordsHelper.setAltitude(s,y),this.renderCoordsHelper.setAltitude(o,x),this.intersector.reset(y,x),this.intersectionHandler.intersect(this.intersector,null,y,x),this.intersector.results.min.getIntersectionPoint(m)?this.renderCoordsHelper.getAltitude(m):null},t.prototype.layerChanged=function(){this.spatialReference&&(this.tmpEvent.extent=this.computeLayerExtent(),this.tmpEvent.spatialReference=this.spatialReference,this.emit(\"elevation-change\",this.tmpEvent))},t.prototype.objectChanged=function(e){this.spatialReference&&(this.tmpEvent.extent=this.computeObjectExtent(e),this.tmpEvent.spatialReference=this.spatialReference,this.emit(\"elevation-change\",this.tmpEvent))},t.prototype.computeObjectExtent=function(e){return h.empty(f),this.expandExtent(e,f),f},t.prototype.computeLayerExtent=function(){h.empty(f);for(var e=0,t=this.layerView.getVisibleNodes();e=e[0]&&f[2]<=e[2]&&f[1]>=e[1]&&f[3]<=e[3])return 1;var o=Math.max(e[0],Math.min(f[0],e[2])),n=Math.max(e[1],Math.min(f[1],e[3])),c=f[0]-o,a=f[1]-n;return c*c+a*a<=f[3]*f[3]?1:2}))},r.__decorate([c.property({constructOnly:!0})],t.prototype,\"featureAdapter\",void 0),r.__decorate([c.property({constructOnly:!0})],t.prototype,\"forAllFeatures\",void 0),r.__decorate([c.property({constructOnly:!0})],t.prototype,\"getFeatureExtent\",void 0),r.__decorate([c.property({constructOnly:!0})],t.prototype,\"sourceSpatialReference\",void 0),r.__decorate([c.property({constructOnly:!0})],t.prototype,\"viewSpatialReference\",void 0),t=r.__decorate([c.subclass(\"esri.views.3d.layers.i3s.I3SQueryFeatureStore\")],t)}(o);t.I3SQueryFeatureStore=p;var f=a.vec4f64.create(),d=u.create(),l=s.create();t.default=p}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/accessorSupport/decorators\",\"./LayerView\"],(function(e,r,t,o,n){\"use strict\";return function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.filter=null,r}return t.__extends(r,e),Object.defineProperty(r.prototype,\"availableFields\",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"maximumNumberOfFeatures\",{get:function(){return 0},set:function(e){throw new Error(\"Not implemented\")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"maximumNumberOfFeaturesExceeded\",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.highlight=function(e){throw new Error(\"Not implemented\")},r.prototype.queryFeatures=function(e){throw new Error(\"Not implemented\")},r.prototype.queryObjectIds=function(e){throw new Error(\"Not implemented\")},r.prototype.queryFeatureCount=function(e){throw new Error(\"Not implemented\")},r.prototype.createQuery=function(){throw new Error(\"Not implemented\")},r.prototype.queryExtent=function(e){throw new Error(\"Not implemented\")},t.__decorate([o.property()],r.prototype,\"availableFields\",null),t.__decorate([o.property()],r.prototype,\"maximumNumberOfFeatures\",null),t.__decorate([o.property({readOnly:!0})],r.prototype,\"maximumNumberOfFeaturesExceeded\",null),t.__decorate([o.property()],r.prototype,\"filter\",void 0),r}(n)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/arrayUtils\"],(function(t,e,i){\"use strict\";var o=function(){this.ids=new Set,this.paused=!1};return function(){function t(t){this.highlights=[],this.collection=t.collection,this.forAllFeatures=t.forAllFeatures,this.forAllFeaturesOfNode=t.forAllFeaturesOfNode}return t.prototype.destroy=function(){var t=this;this.highlights.forEach((function(e){return t.releaseSet(e)})),this.highlights=null},t.prototype.acquireSet=function(){var t=this,e=new o;this.highlights.push(e);var n={remove:function(){t.releaseSet(e),i.removeUnordered(t.highlights,e)},pause:function(){t.releaseSet(e),e.paused=!0},resume:function(){e.paused=!1,t.initializeSet(e)}};return{set:e,handle:n}},t.prototype.setFeatureIds=function(t,e){e.forEach((function(e){return t.ids.add(e)})),this.initializeSet(t)},t.prototype.initializeSet=function(t){var e=this;this.forAllFeatures((function(i,o,n){return t.ids.has(i)&&e.collection.addComponentHighlight(n.objectHandle,o),1}))},t.prototype.releaseSet=function(t){var e=this;this.forAllFeatures((function(i,o,n){return t.ids.has(i)&&e.collection.removeComponentHighlight(n.objectHandle,o),1}))},t.prototype.objectCreated=function(t){var e=this;this.highlights.forEach((function(i){i.paused||e.forAllFeaturesOfNode(t,(function(o,n){return i.ids.has(o)&&e.collection.addComponentHighlight(t.objectHandle,n),1}))}))},t.prototype.objectDeleted=function(t){this.collection.clearHighlights(t.objectHandle)},t}()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Error\",\"../../../../core/maybe\",\"../../../../core/promiseUtils\",\"../../../../core/SetUtils\",\"../../../../core/accessorSupport/decorators\",\"../../../../layers/support/fieldUtils\",\"../../../layers/support/popupUtils\"],(function(e,t,r,o,i,n,p,s,u,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.PopupSceneLayerView=void 0,t.PopupSceneLayerView=function(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype._validateFetchPopupFeatures=function(e){var t=this.layer;return t.popupEnabled?a.getFetchPopupTemplate(t,e)?void 0:new o(\"scenelayerview3d:fetchPopupFeatures\",\"Layer does not define a popup template\",{layer:t}):new o(\"scenelayerview3d:fetchPopupFeatures\",\"Popups are disabled\",{layer:t})},t.prototype.prepareFetchPopupFeatures=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2]}))}))},t.prototype.fetchPopupFeatures=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var e,o,s,c,l,h,d,f,y,v,F;return r.__generator(this,(function(r){switch(r.label){case 0:return(e=this._validateFetchPopupFeatures(t))?[2,n.reject(e)]:(o=i.isSome(t)?t.clientGraphics:null)&&0!==o.length?(s=[],c=[],h=u.unpackFieldNames,d=[this.layer.fields],[4,a.getRequiredFields(this.layer,a.getFetchPopupTemplate(this.layer,t))]):[2,n.resolve([])];case 1:return l=h.apply(void 0,d.concat([r.sent()])),[4,this.prepareFetchPopupFeatures(l)];case 2:for(r.sent(),f=new Set,y=0,v=o;y0}}}}})],t.prototype,\"distance\",void 0),r.__decorate([l.property({type:[Number],json:{write:!0}})],t.prototype,\"objectIds\",void 0),r.__decorate([l.property({type:String,json:{read:y.read,write:{writer:y.write,overridePolicy:function(e){return{enabled:e&&this.distance>0}}}}})],t.prototype,\"units\",void 0),r.__decorate([l.property({type:o,json:{write:!0}})],t.prototype,\"timeExtent\",void 0),r.__decorate([l.property({readOnly:!0})],t.prototype,\"enabled\",void 0),t=n=r.__decorate([l.subclass(\"esri.views.layers.support.FeatureFilter\")],t)}(s.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../Color\",\"../../../Graphic\",\"../../../core/Collection\",\"../../../core/has\",\"../../../core/Logger\",\"../../../core/MapUtils\",\"../../../core/mathUtils\",\"../../../core/maybe\",\"../../../core/PooledArray\",\"../../../core/promiseUtils\",\"../../../core/scheduling\",\"../../../core/typedArrayUtil\",\"../../../core/unitUtils\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"../../../core/libs/gl-matrix-2/mat3\",\"../../../core/libs/gl-matrix-2/mat3f32\",\"../../../core/libs/gl-matrix-2/mat4\",\"../../../core/libs/gl-matrix-2/mat4f64\",\"../../../core/libs/gl-matrix-2/vec3\",\"../../../core/libs/gl-matrix-2/vec3f64\",\"../../../core/libs/gl-matrix-2/vec4\",\"../../../geometry/support/aaBoundingBox\",\"../../../layers/graphics/controllers/I3SOnDemandController\",\"../../../layers/support/fieldUtils\",\"../../../layers/support/layerUtils\",\"../../../layers/support/SceneModification\",\"../../../renderers/visualVariables/support/visualVariableUtils\",\"../../../support/arcadeOnDemand\",\"../../../symbols/Symbol3D\",\"../../../symbols/support/unitConversionUtils\",\"./I3SMeshViewLabeler\",\"./I3SMeshWorkerHandle\",\"./SceneLayerWorker\",\"./graphics/graphicUtils\",\"./i3s/Highlights\",\"./i3s/I3SCrossfadeHelper\",\"./i3s/I3SElevationProvider\",\"./i3s/I3SGeometryUtil\",\"./i3s/I3SIntersectionHandler\",\"./i3s/I3SProjectionUtil\",\"./i3s/I3SUtil\",\"./i3s/IDBCache\",\"./support/attributeUtils\",\"./support/layerViewUpdatingProperties\",\"../support/debugFlags\",\"../support/extentUtils\",\"../support/orientedBoundingBox\",\"../support/projectionUtils\",\"../support/buffer/glUtil\",\"../webgl-engine/collections/Component/SourceGeometry\",\"../webgl-engine/core/material/RenderTexture\",\"../webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl\",\"../webgl-engine/lib/Texture\",\"../webgl-engine/lib/TextureBackedBuffer/BufferManager\",\"@dojo/framework/shim/Promise\"],(function(e,t,r,i,o,a,n,s,l,d,c,u,h,p,f,_,g,m,y,b,v,M,I,S,x,C,O,w,E,N,D,F,T,R,j,A,V,P,H,G,U,B,L,k,q,z,W,K,J,Q,X,Y,Z,$,ee,te,re,ie){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.I3SMeshView3D=void 0;var oe=s.getLogger(\"esri.views.3d.layers.SceneLayerView3D\"),ae=[1,1,1,1],ne=function(e,t,r,i,o,a,n){this.node=e,this.featureIds=t,this.objectHandle=r,this.cachedRendererVersion=i,this.attributeInfo=o,this.material=a,this.textures=n,this.lodCrossfadeTargetTime=null,this.lodCrossfadeDirection=0,this.cachedEdgeMaterials=new Array,this.cachedSymbology=null};t.I3SMeshView3D=function(t){return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._elevationProvider=null,e._intersectionHandler=null,e._nodeId2Meta=new Map,e._nodeId2MetaReloading=new Map,e._asyncModuleLoading=0,e._addTasks=new Map,e._rendererVersion=0,e._colorVariable=null,e._opacityVariable=null,e._rendererFields=null,e._symbologyFields=null,e._symbologyOverride=null,e._symbologyOverrideFields=null,e._symbolInfos=new Map,e._idbCache=new z.IDBCache(\"esri-scenelayer-cache\",\"geometries\"),e._labeler=null,e.holeFilling=\"auto\",e._hasColors=!1,e._hasTextures=!1,e._hasData=!1,e.slicePlaneEnabled=!1,e._modifications=new Array,e._layerUrl=\"\",e._cacheKeySuffix=null,e._arcade=null,e._tmpAttributeOnlyGraphic=new o(null,null,{}),e._crossfadeHelper=new G.I3SCrossfadeHelper(e),e}return r.__extends(i,t),Object.defineProperty(i.prototype,\"lodCrossfadeDuration\",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"layerUid\",{get:function(){return this.i3slayer&&this.i3slayer.uid},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"sublayerUid\",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"hasTexturesOrVertexColors\",{get:function(){return this._hasData?this._hasTextures||this._hasColors?\"yes\":\"probably-not\":\"unknown\"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"rendererTextureUsage\",{get:function(){return q.rendererNeedsTextures(this._currentRenderer)?63:44},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"elevationOffset\",{get:function(){var e=null!=this.i3slayer?this.i3slayer.elevationInfo:null;if(null!=e&&\"absolute-height\"===e.mode){var t=_.getMetersPerVerticalUnitForSR(this.i3slayer.spatialReference),r=R.getMetersPerUnit(e.unit);return c.unwrapOr(e.offset,0)*r/t}return 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"uncompressedTextureDownsamplingEnabled\",{get:function(){return this.view&&this.view.qualitySettings.sceneService.uncompressedTextureDownsamplingEnabled&&!this.useCompressedTextures},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"useCompressedTextures\",{get:function(){var e=this.i3slayer.version,t=!n(\"trident\")||e.major>1||1===e.major&&e.minor>3;return this.view._stage.renderView.has(\"s3tc\")&&t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"_enableMipMaps\",{get:function(){return!this.uncompressedTextureDownsamplingEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"_enableAtlasMipMaps\",{get:function(){return this._enableMipMaps},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"_atlasBiasCompensationEnabled\",{get:function(){return this.view&&this.view._stage&&!this.view._stage.renderView.has(\"shaderTextureLOD\")&&this._enableAtlasMipMaps},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"_disableAtlasAnisotropy\",{get:function(){return this._atlasBiasCompensationEnabled},enumerable:!1,configurable:!0}),i.prototype.initialize=function(){var t=this;if(this._worker=new A.I3SMeshWorkerHandle(this.view.resourceController.scheduler),this.addResolvingPromise(this._worker.promise),this._worker.setLegacySchema(this.layerUid,this.i3slayer.store.defaultGeometrySchema),q.checkSceneLayerValid(this.i3slayer),q.checkSceneLayerCompatibleWithView(this.i3slayer,this.view),this._layerUrl=this.i3slayer.parsedUrl.path,this._controller=new O({layerView:this}),this.gpuMemoryEstimate=0,this.texMemoryEstimate=0,this.geoMemoryEstimate=0,this._stage=this.view._stage,this._collection=this._stage.renderView.componentObjectCollection,this._highlights=new H({collection:this._collection,forAllFeatures:function(e){return t._forAllFeatures(e,null,1)},forAllFeaturesOfNode:function(e,r){return t._forAllFeaturesOfNode(e,r)}}),this._isIntegratedMesh||!this.i3slayer.store.defaultGeometrySchema)this._hasSymbolColors=!1;else{var r=this.i3slayer.store.defaultGeometrySchema.featureAttributes;this._hasSymbolColors=!!(r&&r.faceRange&&r.id)}this._hasVertexColors=null!=this.i3slayer.store.defaultGeometrySchema.vertexAttributes.color&&(null==this.i3slayer.cachedDrawingInfo||!this.i3slayer.cachedDrawingInfo.color),this._isIntegratedMesh||(this._edgeView=this._stage.renderView.ensureEdgeView()),this._memCache=this.view.resourceController.memoryController.getMemCache(this.i3slayer.uid,(function(e){return t._deleteComponentObject(e)})),this._intersectionHandler=new L.I3SIntersectionHandler({layerUid:this.layerUid,sublayerUid:this.sublayerUid,collection:this._collection,slicePlaneEnabled:this.slicePlaneEnabled,isGround:this._isIntegratedMesh,forEach:function(e){t._nodeId2Meta.forEach((function(t){return c.isSome(t)&&e(t.node,t.objectHandle)})),t._nodeId2MetaReloading.forEach((function(t){return c.isSome(t)&&e(t.node,t.objectHandle)}))}}),this._elevationProvider=new U({layerView:this,intersectionHandler:this._intersectionHandler}),this.updatingHandles.add(this,\"view.clippingArea\",(function(){return t._clippingAreaChanged()}),2),this.updatingHandles.add(this,\"fullOpacity\",(function(e){return t._opacityChange(e)})),this.updatingHandles.add(this,\"slicePlaneEnabled\",(function(e){return t._slicePlaneEnabledChange(e)})),this.updatingHandles.add(this,\"elevationOffset\",(function(e,r){t._reloadAll(r),t._controller.invalidateVisibilityObbs()})),this.updatingHandles.add(this,\"filter\",(function(){return t._filterChange()}),2),this.updatingHandles.add(this,\"view.qualitySettings.physicallyBasedRenderingEnabled\",(function(){return t._updatePBR()}));var i=function(){t._reloadAll(),t._memCache.clear()};this.updatingHandles.add(this,\"rendererTextureUsage\",i),this.updatingHandles.add(this,\"uncompressedTextureDownsamplingEnabled\",i),this.updatingHandles.add(this,\"suspended\",(function(e){return t._suspendedChange(e)}),2),this.updatingHandles.add(this.i3slayer,\"labelsVisible\",(function(){return t._labelingChanged()}),2),this.updatingHandles.add(this.i3slayer,\"labelingInfo\",(function(){return t._labelingChanged()}),2),this.updatingHandles.add(this,\"_modifications\",(function(){return t._modificationsChanged()}),2),this.handles.add([g.init(J,\"I3S_TREE_SHOW_TILES\",(function(r){if(r&&!t._treeDebugger){var i=t._controller.crsIndex;new Promise((function(t,r){e([\"./support/I3STreeDebugger\"],t,r)})).then((function(e){var r=e.I3STreeDebugger;!t._treeDebugger&&J.I3S_TREE_SHOW_TILES&&(t._treeDebugger=new r({lv:t,view:t.view,nodeSR:i}))}))}else r||!t._treeDebugger||J.I3S_TREE_SHOW_TILES||(t._treeDebugger.destroy(),t._treeDebugger=null)})),g.init(J,\"I3S_SHOW_MODIFICATIONS\",(function(){return t._showModifications()}))]),this._cacheKeySuffix=q.getCacheKeySuffix(this.i3slayer.spatialReference,this.view.renderSpatialReference),this._idbCache.init().catch((function(e){return oe.warn(\"Failed to initialize IndexedDB cache: \"+e)})),this._componentColorManager=this._hasSymbolColors?new ie.BufferManager(this._stage.renderView.renderingContext):null},i.prototype.destroy=function(){this._clearAddTasks(),this._elevationProvider&&(this._elevationProvider.layerChanged(),this.view.elevationProvider.unregister(this._elevationProvider),this._elevationProvider=null),this._intersectionHandler&&(this._stage.sceneIntersectionHelper.removeIntersectionHandler(this._intersectionHandler),this._intersectionHandler=null);var e=this._worker;e&&(e.destroyContext(this.i3slayer.uid).then((function(){return e.destroy()})),this._worker=null),this._removeAllNodeDataFromStage(),this._memCache.destroy(),this._memCache=null,this._collection=null,this._stage=null,this._edgeView=null,c.isSome(this._labeler)&&(this._labeler.destroy(),this._labeler=null),this._treeDebugger&&(this._treeDebugger.destroy(),this._treeDebugger=null),this._controller&&(this._controller.destroy(),this._controller=null),this._highlights.destroy(),this._nodeId2Meta=null,this._nodeId2MetaReloading=null,this._componentColorManager&&(this._componentColorManager.destroy(),this._componentColorManager=null),this.emit(\"visible-geometry-changed\"),this._visibleGeometryChangedSchedulerHandle&&(this._visibleGeometryChangedSchedulerHandle.remove(),this._visibleGeometryChangedSchedulerHandle=null)},i.prototype.memEstimateTextureAdded=function(e){var t=e.estimatedTexMemRequired;return this.gpuMemoryEstimate+=t,this.texMemoryEstimate+=t,t},i.prototype.memEstimateTextureRemoved=function(e){var t=e.estimatedTexMemRequired;this.gpuMemoryEstimate-=t,this.texMemoryEstimate-=t},i.prototype.memEstimateGeometryAdded=function(e){var t=this._collection.getObjectGPUMemoryUsage(e);return this.gpuMemoryEstimate+=t,this.geoMemoryEstimate+=t,t},i.prototype.memEstimateGeometryRemoved=function(e){var t=this._collection.getObjectGPUMemoryUsage(e);this.gpuMemoryEstimate-=t,this.geoMemoryEstimate-=t},i.prototype.isNodeLoaded=function(e){return this._nodeId2Meta.has(e)},i.prototype.isNodeReloading=function(e){return this._nodeId2MetaReloading.has(e)},i.prototype.getUsedMemory=function(){var e=c.isSome(this._labeler)?this._labeler.usedMemory:0;return this._nodeId2Meta.forEach((function(t){return e+=c.isSome(t)?t.node.memory:0})),this._nodeId2MetaReloading.forEach((function(t){return e+=c.isSome(t)?t.node.memory:0})),e},i.prototype.getUnloadedMemory=function(){return(this._controller?this._controller.unloadedMemoryEstimate:0)+(c.isSome(this._labeler)?this._labeler.unloadedMemoryEstimate:0)},i.prototype.ignoresMemoryFactor=function(){return!1},i.prototype._labelingChanged=function(){var e=this;if(E.areLabelsVisible(this.i3slayer)&&this._supportsLabeling){if(!c.isSome(this._labeler)){var t=new j.default({view:this.view,layer:this.i3slayer,collection:this._collection});this._nodeId2Meta.forEach((function(r){return c.isSome(r)&&e._addMetaToLabeler(t,r)})),this._labeler=t}}else c.isSome(this._labeler)&&(this._labeler.destroy(),this._labeler=null)},i.prototype._loadAsyncModule=function(e){var t=this;return++this._asyncModuleLoading,e.then((function(e){return--t._asyncModuleLoading,e}),(function(e){throw--t._asyncModuleLoading,e}))},i.prototype._modificationsChanged=function(){var t=this;if(c.isNone(this._i3sModule)&&this._hasModifications)this._i3sModule=this._loadAsyncModule(new Promise((function(t,r){e([\"./SceneLayerWorker\"],t,r)})).then((function(e){return e.ensureWASM().then((function(){t._i3sModule=e,t._modificationsChanged()}))})));else if(!(c.isNone(this._i3sModule)||this._i3sModule instanceof Promise)){var r=this.i3slayer.uid,i=this.i3slayer.spatialReference;this._worker.setModifications(r,this._modifications,i);var o=A.toWasmModification(this._modifications,i);this._i3sModule.setModificationsSync({context:r,modifications:o,isGeodetic:i.isGeographic}),this._controller.modificationsChanged();var a=this._hasModifications?new u:null;this._nodeId2Meta.forEach((function(e,r){c.isNone(e)?t._nodeId2Meta.delete(r):e.node.hasModifications?(t._nodeId2Meta.delete(r),t._nodeId2MetaReloading.set(r,e)):c.isSome(a)&&a.push(e.node)})),c.isSome(a)&&this._nodeId2MetaReloading.forEach((function(e){return a.push(e.node)})),c.isSome(a)&&a.length>0&&(this.updateNodeModificationStatus(a),a.forEachSimple((function(e){if(2!==e.imModificationImpact){var r=t._nodeId2Meta.get(e.index);t._controller.invalidateGeometryVisibility(e.index),t._nodeId2Meta.delete(e.index),c.isSome(r)&&t._nodeId2MetaReloading.set(e.index,r)}}))),this._memCache.clear(),this._controller.restartNodeLoading(),this._showModifications()}},i.prototype._showModifications=function(){if(c.isSome(this._modificationGraphics)&&(this.view.graphics.removeMany(this._modificationGraphics),this._modificationGraphics=null),J.I3S_SHOW_MODIFICATIONS&&0!==this._modifications.length){var e={clip:[227,227,79,.8],mask:[227,139,79,.8],replace:[139,227,79,.8]},t={type:\"simple-fill\",outline:{color:[255,255,255],width:1}};this._modificationGraphics=new Array;for(var i=0,a=this._modifications;i=t.featureIds.length?null:this._createGraphic(e.componentIndex,t)},i.prototype._getCacheKey=function(e){return this._layerUrl+\"/v16/\"+e.id+this._cacheKeySuffix},i.prototype._getMemCacheKey=function(e,t){return void 0===t&&(t=this.elevationOffset),e+\"#\"+t},Object.defineProperty(i.prototype,\"_idbCacheEnabled\",{get:function(){return!this._controller.disableIDBCache&&0===this._modifications.length&&0===this.elevationOffset&&null!=this._cacheKeySuffix},enumerable:!1,configurable:!0}),i.prototype.loadCachedGPUData=function(e){return this._memCache.pop(this._getMemCacheKey(e.index))},i.prototype._cacheGPUData=function(e,t){void 0===t&&(t=this.elevationOffset);var r=this._controller.indexDepth-e.node.level+1;this._memCache.put(this._getMemCacheKey(e.node.index,t),e,e.node.memory,r)},i.prototype.loadMissingTextures=function(e,t,r,i){var o=this,a=e.filter((function(e,r){if(0==(e.usage&o.rendererTextureUsage))return!1;if(c.isNone(t))return!0;var i=q.selectEncoding(e.encodings,o.useCompressedTextures),a=t[r];return!!(c.isNone(a)||null==a.data||i&&a.encoding!==i.encoding)}));return 0===a.length?h.resolve(!1):r(a,i).then((function(r){for(var i=0,o=0;o0},i.prototype._setNewNodeOpacity=function(e,t){var r=this.isFadingEnabled(),i=r?0:this.fullOpacity;this.setNodeOpacity(t,i),r?this._crossfadeHelper.fadeNodeInternal(e,t,0):this._crossfadeHelper.stopNodeFadingInternal(t)},i.prototype.addCachedGPUData=function(e,t,r){if(e.geometryObb=X.clone(this._collection.getComponentObb(t.objectHandle)),this._controller.isGeometryVisible(e)){c.isSome(this._labeler)&&this._addMetaToLabeler(this._labeler,t);var i=e.index;this._addNodeMeta(i,t),this.updateNodeState(i,r),this._collection.setObjectVisibility(t.objectHandle,!0),this._updateMaterial(t),this._setNewNodeOpacity(i,t),this._updateEngineObject(t),this._highlights.objectCreated(t),this._treeDebugger&&this._treeDebugger.update()}else this._cacheGPUData(t)},i.prototype.addCachedNodeData=function(e,t,r,i){var o=this;return this._addData(e,r,(function(){return o._addCachedNodeData(e,t,i)}))},i.prototype._addCachedNodeData=function(e,t,r){var i=this;if(this.suspended||!this._controller.isGeometryVisible(e))return this._removeNodeStageData(e.index,this.elevationOffset,this._nodeId2MetaReloading),h.resolve();if(c.isNone(t))return this._addNodeMeta(e.index,null),h.resolve();var o=t.geometryData,a=t.transformedGeometry,n=t.globalTrafo,s=c.isSome(t.textureData)?t.textureData.filter((function(e){return c.isSome(e)&&0!=(e.usage&i.rendererTextureUsage)})):null;e.memory=0;var l=o.componentOffsets,d=o.geometries,u=o.featureIds,p=null,f=null;if(this._hasSymbolColors){p=this._componentColorManager.getBuffer(u.length),f=new Uint16Array(u.length);for(var _=0;_=1},U=c.isSome(s)?s.map((function(t){return i._createTexture(e,E.material,t,2===E.geometryParams.textureCoordinates)})):[];this._configureMaterial(H,m.params.material,U,s),e.memory+=this.memEstimateGeometryAdded(H);var B=this._addTasks.get(e.index),L=new ne(e,u,H,this._getInvalidRendererVersion(),B.attributeInfo,G,U);B.meta=L,!this._hasTextures&&t.requiredTextures.some((function(e){return 0!=(19&e.usage)}))&&(this._hasTextures=!0),this._hasData=!0,this._hasColors=this._hasColors||w,this._hasTextures=this._hasTextures||!!e.resources.texture,this.notifyChange(\"hasTexturesOrVertexColors\");var k=this.slicePlaneEnabled;return this._addOrUpdateEdgeRendering(L).then((function(t){return t&&i._edgeView.updateObjectVisibility(L.objectHandle,!1),i._safeReschedule(r,(function(){var r=i._addTasks.get(e.index);if(r)if(c.isSome(i._labeler)&&i._addMetaToLabeler(i._labeler,L),i._addNodeMeta(e.index,L),r.meta=null,i.suspended)i._removeNodeStageData(e.index,i.elevationOffset);else{g.setObjectVisibility(H,!0),t&&i._edgeView.updateObjectVisibility(L.objectHandle,!0),L.attributeInfo=r.attributeInfo;var o=L.cachedRendererVersion!==i._rendererVersion,a=k!==i.slicePlaneEnabled;i._setObjectSymbolColors(L);var n=i._applyFiltersToNode(L);(o||t&&(a||n))&&i._addOrUpdateEdgeRendering(L),i.visibleGeometryChanged(L),i._highlights.objectCreated(L),i._updateMaterial(L),i._setNewNodeOpacity(e.index,L),i._treeDebugger&&i._treeDebugger.update()}}))})).catch((function(e){throw c.isSome(B.meta)&&(i._deleteComponentObject(B.meta),B.meta=null),e}))},i.prototype._addNodeMeta=function(e,t){if(this._removeNodeStageData(e,this.elevationOffset,this._nodeId2MetaReloading),this._nodeId2Meta.has(e)){oe.error(\"Removing duplicated node\");var r=this._nodeId2Meta.get(e);c.isSome(r)&&this._deleteComponentObject(r)}this._nodeId2Meta.set(e,t)},i.prototype._safeReschedule=function(e,t){return h.throwIfAborted(e),this._controller.reschedule(e,t)},i.prototype._materialParameters=function(e,t){var r=e.params.material,i=t.some((function(e){return\"uvRegion\"===e.name})),o=t.some((function(e){return\"normalCompressed\"===e.name})),a=pe(r);return{geometryParams:this._getGeometryParameters({hasTexture:a,hasNormals:o,hasRegions:i}),material:r}},i.prototype._configureMaterial=function(e,t,r,i){var o=this,a=this.rendererTextureUsage,n=function(e){return function(e,t,r){if(c.isNone(e)||0===r)return null;for(var i=0;i0?c.isSome(this._rendererFields)&&this._rendererFields.length>0?w.fixFields(this.i3slayer.fields,r.__spreadArrays(this._rendererFields,this._symbologyOverrideFields)):this._symbologyOverrideFields:this._rendererFields},i.prototype._updateCachedRendererData=function(e){if(e.cachedRendererVersion=this._rendererVersion,this._hasSymbolColors){var t=this._tmpAttributeOnlyGraphic,i={};t.attributes=i;var o=this._currentRenderer,a=c.isSome(e.attributeInfo)&&e.attributeInfo.attributeData,n=null!=e.featureIds?this.i3slayer.objectIdField:null,s=null!=a&&c.isSome(this._symbologyFields)&&this._symbologyFields.length>0,l=s?[]:null,d=s?[]:null;if(s&&c.isSome(this._symbologyFields))for(var u=0,h=this._symbologyFields;u=1&&(e.material.isOpaque||3===_.colorMixMode)?2:1;_.edgeMaterial===m&&E===y||(b=r.__assign(r.__assign({},_.edgeMaterial),{opacity:g,objectTransparency:E}),m=_.edgeMaterial,y=E),e.cachedEdgeMaterials[M]=b}else e.cachedEdgeMaterials[M]=q.transparentEdgeMaterial;e.cachedSymbology[v+0]=Math.round(255*x[0]),e.cachedSymbology[v+1]=Math.round(255*x[1]),e.cachedSymbology[v+2]=Math.round(255*x[2]),e.cachedSymbology[v+3]=Math.round(255*x[3]),e.cachedSymbology[v+4]=_.colorMixMode|+_.castShadows<<4|+_.pickable<<5,v+=5}}},i.prototype._getFilteredEdgeMaterials=function(e){var t=this,r=this._getCachedEdgeMaterials(e);if(r.forEach((function(e){return e.opacity=t.fullOpacity})),c.isNone(e.filteredIds))return{hasEdges:r.some((function(e){return e!==q.transparentEdgeMaterial})),perFeatureEdgeMaterials:r};var i=0,o=!1,a=r.map((function(t,r){return e.featureIds[r]!==e.filteredIds[i]?q.transparentEdgeMaterial:(o=o||t!==q.transparentEdgeMaterial,i++,t)}));return{hasEdges:o,perFeatureEdgeMaterials:a}},i.prototype._setObjectSymbolColors=function(e){if(this._hasSymbolColors){var t=e.objectHandle,r=this._getSymbolColors(e);this._collection.setComponentData(t,r),this._stage.renderView.setNeedsRender()}},i.prototype._reloadAll=function(e){void 0===e&&(e=this.elevationOffset),this._removeAllNodeDataFromStage(e),null!=this._controller&&this._controller.restartNodeLoading()},i.prototype._opacityChange=function(e){var t=this;this._crossfadeHelper.stopAllNodeFading(),this._nodeId2Meta.forEach((function(r){c.isNone(r)||(t._collection.updateMaterial(r.objectHandle,(function(t){return t.objectOpacity=e})),r.cachedEdgeMaterials.forEach((function(t){return t.opacity=e})),t._updateEdgeRendering(r))}))},i.prototype._updateMaterial=function(e){var t=this;this._collection.updateMaterial(e.objectHandle,(function(r){r.commonMaterialParameters.slicePlaneEnabled=t.slicePlaneEnabled,r.usePBR=t._usePBR(e.material.isSchematic),t._updateMaterialOverlay(r)}))},i.prototype._updateMaterialOverlay=function(e){},i.prototype._updateEngineObject=function(e){this._setObjectSymbolColors(e),this._applyFiltersToNode(e),this._addOrUpdateEdgeRendering(e),this.visibleGeometryChanged(e)},i.prototype._slicePlaneEnabledChange=function(e){var t=this;this._intersectionHandler&&(this._intersectionHandler.slicePlane=e),c.isSome(this._labeler)&&(this._labeler.slicePlaneEnabled=e),this._nodeId2Meta.forEach((function(r){c.isNone(r)||(t._collection.updateMaterial(r.objectHandle,(function(t){t.commonMaterialParameters.slicePlaneEnabled=e})),t._updateEdgeRendering(r,!1))}))},i.prototype._updatePBR=function(){var e=this;this._nodeId2Meta.forEach((function(t){c.isNone(t)||e._collection.updateMaterial(t.objectHandle,(function(r){r.usePBR=e._usePBR(t.material.isSchematic)}))}))},i.prototype._usePBR=function(e){return!this._isIntegratedMesh&&(!e||this.view.qualitySettings.physicallyBasedRenderingEnabled)},i.prototype._updateEdgeRendering=function(e,t){void 0===t&&(t=!0),this._edgeView&&this._edgeView.hasObject(e.objectHandle)&&this._addOrUpdateEdgeRendering(e,t)},i.prototype._forAllNodes=function(e){this._nodeId2Meta.forEach(e)},i.prototype._forAllFeatures=function(e,t,r){var i=this;void 0===r&&(r=0),l.someMap(this._nodeId2Meta,(function(o){if(c.isNone(o))return!1;if(c.isSome(t))switch(t(o)){case 0:return!0;case 2:return!1}var a=1;switch(r){case 1:a=i._forAllFeaturesOfNode(o,e);break;case 0:a=i._forVisibleFeaturesOfNode(o,e);break;case 2:a=i._forAllFeaturesOfNodeInClippingArea(o,e)}return 0===a}))},i.prototype._forAllFeaturesOfNode=function(e,t){for(var r=1,i=e.featureIds,o=0;o0){if(e[0]instanceof o){var i=e.map((function(e){return W.attributeLookup(e.attributes,t._getObjectIdField())})),n=r.acquireSet(),s=n.set,l=n.handle;return r.setFeatureIds(s,i),l}if(\"number\"==typeof e[0]){i=e;var d=r.acquireSet();s=d.set,l=d.handle;return r.setFeatureIds(s,i),l}}return me},i.prototype.visibleGeometryChanged=function(e){var t=this;this._elevationProvider&&(this._elevationProvider.objectChanged(e.node),null==this._visibleGeometryChangedSchedulerHandle&&(this._visibleGeometryChangedSchedulerHandle=p.schedule((function(){t.emit(\"visible-geometry-changed\"),t._visibleGeometryChangedSchedulerHandle=null}))))},Object.defineProperty(i.prototype,\"performanceInfo\",{get:function(){var e={displayedNumberOfFeatures:0,maximumNumberOfFeatures:0,totalNumberOfFeatures:0,core:null,index:0,nodes:this._nodeId2Meta.size,\"Total GPU Memory Estimate\":(this.gpuMemoryEstimate/1048576).toFixed(1)+\"MB\",\"Geometry Memory Estimate\":(this.geoMemoryEstimate/1048576).toFixed(1)+\"MB\",\"Texture Memory Estimate\":(this.texMemoryEstimate/1048576).toFixed(1)+\"MB\"};return this._controller&&(this._idbCacheEnabled&&(e.IDBCache=Math.round(100*this._idbCache.getHitRate())+\"% hit\"),this._controller.updateStats(e)),e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"test\",{get:function(){var e=this;return{controller:this._controller,labeler:this._labeler,get visibleObjectIds(){var t=[];return e._forAllFeatures((function(e){return t.push(e),1}),null,0),t.sort((function(e,t){return e-t})),t},get numNodes(){return e._nodeId2Meta.size}}},enumerable:!1,configurable:!0}),i.prototype.getNodeOpacityByIndex=function(e){var t=this._nodeId2Meta.get(e);return this.getNodeOpacity(t)},i.prototype.getNodeOpacity=function(e){var t=0;return c.isSome(e)&&this._collection.updateMaterial(e.objectHandle,(function(e){t=e.objectOpacity})),t},i.prototype.getNodeCrossfadeMetaData=function(e){var t;return null===(t=this._nodeId2Meta)||void 0===t?void 0:t.get(e)},i.prototype.markNodeToRemove=function(e){var t=this._controller;t&&t.markNodeToRemove(e)},i.prototype.removeMarkedNodes=function(){var e=this._controller;e&&e.removeMarkedNodes()},i.prototype.foreachCrossfadeNode=function(e){var t=this._nodeId2Meta;t&&t.forEach((function(t,r){return e(r,t)}))},i.prototype.setNodeOpacityByIndex=function(e,t){var r=this._nodeId2Meta.get(e);c.isSome(r)&&this.setNodeOpacity(r,t)},i.prototype.setNodeOpacity=function(e,t){this._collection.updateMaterial(e.objectHandle,(function(e){e.objectOpacity=t})),this.setNodeEdgeOpacity(e,t)},i.prototype.setNodeEdgeOpacity=function(e,t){var r=this._getFilteredEdgeMaterials(e);if(r.hasEdges){for(var i=0,o=r.perFeatureEdgeMaterials;i0},enumerable:!1,configurable:!0}),i.prototype.updateNodeModificationStatus=function(e){var t=this,r=e.length;if(!(!this._hasModifications||r<=0||c.isNone(this._i3sModule)||this._i3sModule instanceof Promise)){var i=this.i3slayer.uid,o=function(e){if(0===e.length)return null;var t=10*e.length,r=new Float64Array(t);return e.forEachSimple((function(e,t){var i=e.serviceObb;c.isNone(i)&&(i=de,I.vec3.copy(i.center,e.mbs),i.halfSize[0]=i.halfSize[1]=i.halfSize[2]=e.mbs[3]);var o=10*t;r[o+0]=i.center[0],r[o+1]=i.center[1],r[o+2]=i.center[2],r[o+3]=i.halfSize[0],r[o+4]=i.halfSize[1],r[o+5]=i.halfSize[2],r[o+6]=i.quaternion[0],r[o+7]=i.quaternion[1],r[o+8]=i.quaternion[2],r[o+9]=i.quaternion[3]})),r}(e);if(c.isSome(o)){var a={context:i,buffer:o.buffer};this._i3sModule.filterObbsForModificationsSync(a);var n=new Float64Array(o.buffer);e.forEachSimple((function(e,r){var i=n[r],o=V.interpretObbModificationResults(i);e.imModificationImpact=o,0!==o&&t._controller.invalidateGeometryVisibility(e.index)}))}}},i.prototype.notifyUpdate=function(){this.notifyChange(\"updating\")},i.prototype.isUpdating=function(){return!(!this._controller||!this._controller.updating)||!!this._visibleGeometryChangedSchedulerHandle||c.isSome(this._labeler)&&this._labeler.updating||this._crossfadeHelper.numFadingNodes>0||this._asyncModuleLoading>0},r.__decorate([m.property({readOnly:!0})],i.prototype,\"lodCrossfadeDuration\",null),r.__decorate([m.property({})],i.prototype,\"_asyncModuleLoading\",void 0),r.__decorate([m.property()],i.prototype,\"_visibleGeometryChangedSchedulerHandle\",void 0),r.__decorate([m.property()],i.prototype,\"view\",void 0),r.__decorate([m.property()],i.prototype,\"i3slayer\",void 0),r.__decorate([m.property()],i.prototype,\"_controller\",void 0),r.__decorate([m.property()],i.prototype,\"_labeler\",void 0),r.__decorate([m.property({dependsOn:[\"_controller.updating\",\"_visibleGeometryChangedSchedulerHandle\",\"_labeler.updating\",\"_asyncModuleLoading\"]})],i.prototype,\"updating\",void 0),r.__decorate([m.property({dependsOn:[\"_controller.rootNodeVisible\"]})],i.prototype,\"suspended\",void 0),r.__decorate([m.property()],i.prototype,\"holeFilling\",void 0),r.__decorate([m.property(K.updatingProgress)],i.prototype,\"updatingProgress\",void 0),r.__decorate([m.property({readOnly:!0,aliasOf:\"_controller.updatingProgress\"})],i.prototype,\"updatingProgressValue\",void 0),r.__decorate([m.property({readOnly:!0})],i.prototype,\"hasTexturesOrVertexColors\",null),r.__decorate([m.property({readOnly:!0})],i.prototype,\"rendererTextureUsage\",null),r.__decorate([m.property({readOnly:!0,dependsOn:[\"i3slayer.elevationInfo\"]})],i.prototype,\"elevationOffset\",null),r.__decorate([m.property({type:Boolean})],i.prototype,\"slicePlaneEnabled\",void 0),r.__decorate([m.property({dependsOn:[\"view.qualitySettings.sceneService.uncompressedTextureDownsamplingEnabled\",\"useCompressedTextures\"]})],i.prototype,\"uncompressedTextureDownsamplingEnabled\",null),r.__decorate([m.property({dependsOn:[\"i3slayer.version\"]})],i.prototype,\"useCompressedTextures\",null),r.__decorate([m.property({type:[N]})],i.prototype,\"_modifications\",void 0),i=r.__decorate([m.subclass(\"esri.views.3d.layers.I3SMeshView3D\")],i)}(t)};var se=C.create(),le=C.create(),de=X.create(),ce=[0,0,0,0],ue=new i([0,0,0,0]),he=[0,0,0,0];function pe(e){var t=e.metallicRoughness;return t&&t.baseColorTextureId>=0||t&&t.metallicRoughnessTextureId>=0||e.normalTextureId>=0||e.emissiveTextureId>=0||e.occlusionTextureId>=0}function fe(e){return c.isSome(e)&&f.isArrayBuffer(e.data)}function _e(e,t){var r=1024+e.interleavedVertexData.byteLength+(e.indices?e.indices.byteLength:0)+e.positionData.data.byteLength+e.positionData.indices.byteLength;if(c.isSome(t))for(var i=0,o=t;i104857600?(oe.warn(\"Node is too big to store in IndexedDB cache: \"+e.id+\" (\"+t.byteSize+\" bytes)\"),!1):t.byteSize>0}var me={remove:function(){},pause:function(){},resume:function(){}}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/maybe\",\"../../../../core/scheduling\"],(function(e,t,i,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.I3SCrossfadeHelper=void 0;var r=function(){function e(e){this.view=e,this.preRenderFrameTaskHandle=null,this.currentFrameStartTime=null,this._numFadingNodes=0}return Object.defineProperty(e.prototype,\"numFadingNodes\",{get:function(){return this._numFadingNodes},enumerable:!1,configurable:!0}),e.sign=function(e){return 0===e?1:-1},e.prototype.preRenderCallback=function(){var e=this.currentFrameStartTime,t=Date.now();this.currentFrameStartTime=t,null!==e&&this.updateAllNodeFading(e)},e.prototype.stopNodeFadingInternal=function(e){null!=e.lodCrossfadeTargetTime&&this._numFadingNodes--,e.lodCrossfadeTargetTime=null,0===this.numFadingNodes&&(null!=this.preRenderFrameTaskHandle&&(this.preRenderFrameTaskHandle.remove(),this.preRenderFrameTaskHandle=null),this.view.notifyUpdate())},e.prototype.startNodeFadingInternal=function(e,t,i){var r=this;0===this.numFadingNodes&&(this.preRenderFrameTaskHandle=a.addFrameTask({preRender:function(){r.preRenderCallback()}}),this.view.notifyUpdate()),null==e.lodCrossfadeTargetTime&&this._numFadingNodes++,e.lodCrossfadeDirection=i,e.lodCrossfadeTargetTime=t},e.prototype.updateAllNodeFading=function(t){var a=this;if(this.view){var r=this.currentFrameStartTime,n=this.view.lodCrossfadeDuration,o=void 0!==t&&n>0;this.view.foreachCrossfadeNode((function(n,d){if(i.isSome(d)&&null!=d.lodCrossfadeTargetTime){var s=d.lodCrossfadeTargetTime,l=d.lodCrossfadeDirection,u=0===l?a.view.fullOpacity:0;if(!o||r>=s)a.stopNodeFadingInternal(d),1===l&&a.view.markNodeToRemove(n);else{var f=a.view.getNodeOpacityByIndex(n),p=(r-t)/a.view.lodCrossfadeDuration;u=f+e.sign(l)*p}a.view.setNodeOpacityByIndex(n,u)}})),this.view.removeMarkedNodes()}},e.prototype.stopAllNodeFading=function(){this.updateAllNodeFading(void 0)},e.prototype.fadeoutNodes=function(e){for(var t=0;t0&&L.warn(\"Unsupported property: rangeInfos are currently only serialized to and from web scenes but do not affect rendering.\")},t.prototype.createQuery=function(){var e={outFields:[\"*\"],returnGeometry:!1,outSpatialReference:this.view.spatialReference};return a.isSome(this.filter)?this.filter.createQuery(e):new g(e)},t.prototype.queryExtent=function(e){return this._ensureQueryEngine().executeQueryForExtent(this._ensureQuery(e))},t.prototype.queryFeatureCount=function(e){return this._ensureQueryEngine().executeQueryForCount(this._ensureQuery(e))},t.prototype.queryFeatures=function(e){var t=this;return this._ensureQueryEngine().executeQuery(this._ensureQuery(e)).then((function(e){if(!(null==e?void 0:e.features))return e;for(var r=t.layer,i=0,n=e.features;i=0===t&&(r[n]=r[i],n++),i++}r.length=n},t.prototype._ensureQuery=function(e){return this._addDefinitionExpressionToQuery(a.isNone(e)?this.createQuery():g.from(e))},r.__decorate([d.property()],t.prototype,\"layer\",void 0),r.__decorate([d.property({aliasOf:\"layer\"})],t.prototype,\"i3slayer\",void 0),r.__decorate([d.property({dependsOn:[\"_controller.rootNodeVisible\"]})],t.prototype,\"suspended\",void 0),r.__decorate([d.property(I.updatingProgress)],t.prototype,\"updatingProgress\",void 0),r.__decorate([d.property({type:q})],t.prototype,\"filter\",null),r.__decorate([d.property({readOnly:!0,dependsOn:[\"filter.where\"]})],t.prototype,\"parsedFilterWhereClause\",null),r.__decorate([d.property({readOnly:!0,dependsOn:[\"filter.spatialRelationship\"]})],t.prototype,\"filterSpatialRelationship\",null),r.__decorate([d.property({readOnly:!0,dependsOn:[\"filter.geometry\",\"filter.distance\",\"filter.units\",\"filterSpatialRelationship\",\"_geometryEngine\",\"_projectionEngineLoaded\"]})],t.prototype,\"parsedFilterGeometry\",null),r.__decorate([d.property(C.requiredFields)],t.prototype,\"requiredFields\",void 0),r.__decorate([d.property(C.availableFields)],t.prototype,\"availableFields\",void 0),r.__decorate([d.property({readOnly:!0,aliasOf:\"view.qualitySettings.sceneService.3dObject.lodFactor\"})],t.prototype,\"lodFactor\",void 0),r.__decorate([d.property({readOnly:!0,dependsOn:[\"view.qualitySettings.sceneService.3dObject.lodCrossfadeDuration\"]})],t.prototype,\"lodCrossfadeDuration\",null),r.__decorate([d.property({readOnly:!0,aliasOf:\"_controller.updatingProgress\"})],t.prototype,\"updatingProgressValue\",void 0),r.__decorate([d.property({readOnly:!0})],t.prototype,\"_geometryEngine\",void 0),r.__decorate([d.property({readOnly:!0})],t.prototype,\"_projectionEngineLoaded\",void 0),t=r.__decorate([d.subclass(\"esri.views.3d.layers.SceneLayerView3D\")],t)}(_.I3SMeshView3D(E.DefinitionExpressionSceneLayerView(R.PopupSceneLayerView(F.LayerView3D(O))))),P=[0,0,0,0];return G}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/maybe\",\"../../../../geometry/support/aaBoundingBox\",\"../../../../layers/graphics/centroid\",\"../../../../layers/graphics/OptimizedGeometry\",\"./I3SUtil\"],(function(e,t,r,i,o,n,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.I3SQueryFeatureAdapter=void 0;var u=function(){function e(e){this.objectIdField=e.objectIdField,this.getFeatureExtent=e.getFeatureExtent}return e.prototype.getObjectId=function(e){return e.id},e.prototype.getAttributes=function(e){var t=e.meta,i=e.index,o={};this.objectIdField&&(o[this.objectIdField]=e.id);var n=r.isSome(t.attributeInfo)&&t.attributeInfo.attributeData;if(r.isSome(n))for(var u=0,d=Object.keys(n);u0?(p.error(\"definitionExpression references unknown fields: \"+i.join(\", \")),null):(this._definitionExpressionErrors=0,e)}catch(e){return p.error(\"Failed to parse definitionExpression: \"+e),null}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,\"definitionExpressionFields\",{get:function(){return this.parsedDefinitionExpression?this.parsedDefinitionExpression.fieldNames:null},enumerable:!1,configurable:!0}),i.prototype._evaluateClause=function(e,i){try{return e.testFeature(i)}catch(e){return this.logError(e),!1}},i.prototype._addDefinitionExpressionToQuery=function(e){if(!this.parsedDefinitionExpression)return e;var i=this.i3slayer.definitionExpression,r=e.clone();return r.where?r.where=\"(\"+i+\") AND (\"+r.where+\")\":r.where=i,r},r.__decorate([s.property()],i.prototype,\"i3slayer\",void 0),r.__decorate([s.property({readOnly:!0,dependsOn:[\"i3slayer.definitionExpression\",\"i3slayer.fieldsIndex\"]})],i.prototype,\"parsedDefinitionExpression\",null),r.__decorate([s.property({readOnly:!0,dependsOn:[\"parsedDefinitionExpression\"]})],i.prototype,\"definitionExpressionFields\",null),i=r.__decorate([s.subclass(\"esri.views.3d.layers.support.DefinitionExpressionSceneLayerView\")],i)}(e)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/typedArrayUtil\",\"../../../libs/i3s/I3SWorker\"],(function(e,t,r,n,o,i,s){\"use strict\";var a,f;function u(e){for(var t=e.modifications,r=f._malloc(8*t.length),n=new Float64Array(f.HEAPU8.buffer,r,t.length),o=0;o0)throw\"i3s.wasm: \"+L.error;if(L.discarded)return null;var M=L.componentOffsets.length>0?i.slice(L.componentOffsets):null,S=L.featureIds.length>0?i.slice(L.featureIds):null,T=i.slice(L.interleavedVertedData).buffer,O=1===L.indicesType?i.slice(new Uint16Array(L.indices.buffer,L.indices.byteOffset,L.indices.byteLength/2)):i.slice(new Uint32Array(L.indices.buffer,L.indices.byteOffset,L.indices.byteLength/4)),P=i.slice(L.positions),F=1===L.positionIndicesType?i.slice(new Uint16Array(L.positionIndices.buffer,L.positionIndices.byteOffset,L.positionIndices.byteLength/2)):i.slice(new Uint32Array(L.positionIndices.buffer,L.positionIndices.byteOffset,L.positionIndices.byteLength/4)),I={layout:e.layouts[0],interleavedVertexData:T,indices:O,hasColors:L.hasColors,hasModifications:L.hasModifications,positionData:{data:P,indices:F}};return S&&t.push(S.buffer),M&&t.push(M.buffer),t.push(T),t.push(O.buffer),t.push(P.buffer),t.push(F.buffer),{componentOffsets:M,featureIds:S,transformedGeometry:I,obb:L.obb}}function l(e){var t=e.context,r=e.buffer,n=f._malloc(r.byteLength),o=r.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(f.HEAPU8.buffer,n,o),s=new Float64Array(r);i.set(s),f.filterOBBs(t,n,o),s.set(i),f._free(n)}function d(e){f&&f.destroy(e)}function b(e,t){for(var r=0;r0)throw\"i3s.wasm: \"+c.error;return l=(null===(t=c.featureIds)||void 0===t?void 0:t.length)>0?i.slice(c.featureIds):null,d=i.slice(c.positions),l&&n.push(l.buffer),n.push(d.buffer),[2,{result:{positions:d,featureIds:l},transferList:n}]}}))}))},t.filterObbsForModifications=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,y()];case 1:return r.sent(),l(e),[2,{result:t={buffer:e.buffer},transferList:[t.buffer]}]}}))}))},t.setModifications=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,y()];case 1:return t.sent(),u(e),[2]}}))}))},t.setLegacySchema=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,y()];case 1:return t.sent(),f.setLegacySchema(e.context,e.jsonSchema),[2]}}))}))},t.destroyContext=function(e){d(e)},t.setModificationsSync=u,t.interpretObbModificationResults=function(e){return 0===e?0:1===e?1:2===e?2:3},t.filterObbsForModificationsSync=l,t.ensureWASM=y,t.test={transform:c,destroy:d}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../../core/Accessor\",\"../../../../core/Error\",\"../../../../core/Handles\",\"../../../../core/maybe\",\"../../../../core/accessorSupport/decorators\",\"../../../../geometry/Extent\",\"../../../../layers/graphics/data/QueryEngine\",\"../../../../tasks/support/FeatureSet\",\"../../../../tasks/support/Query\"],(function(e,t,r,n,i,o,a,u,s,c,y,d){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.I3SQueryEngine=void 0;var l=c.default,p=function(e){function t(t){var r=e.call(this,t)||this;return r._dataQueryEngineInstance=null,r._handles=new o,r}return r.__extends(t,e),Object.defineProperty(t.prototype,\"defaultQueryJSON\",{get:function(){return new d({outSpatialReference:this.spatialReference}).toJSON()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"dataQueryEngine\",{get:function(){return this.ensureDataQueryEngine()},enumerable:!1,configurable:!0}),t.prototype.initialize=function(){var e=this;this._handles.add(this.layerView.on(\"visible-geometry-changed\",(function(){return e.spatialIndex.events.emit(\"changed\")})))},t.prototype.destroy=function(){this._dataQueryEngineInstance&&(this._dataQueryEngineInstance.destroy(),this._dataQueryEngineInstance=null),this._handles&&(this._handles.destroy(),this._handles=null),this._set(\"layerView\",null)},t.prototype.executeQueryForCount=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.dataQueryEngine.executeQueryForCount(this._ensureQueryJSON(e),t)]}))}))},t.prototype.executeQueryForExtent=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.dataQueryEngine.executeQueryForExtent(this._ensureQueryJSON(e),t)];case 1:return n=r.sent(),i=n.count,o=n.extent,a=s.fromJSON(o),[2,{count:i,extent:a}]}}))}))},t.prototype.executeQueryForIds=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,this.dataQueryEngine.executeQueryForIds(this._ensureQueryJSON(e),t)]}))}))},t.prototype.executeQuery=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:if((n=this._ensureQueryJSON(e)).returnGeometry)throw new i(\"feature-store:unsupported-query\",\"returnGeometry is not yet supported for mesh scene layer queries\");if(n.returnCentroid)throw new i(\"feature-store:unsupported-query\",\"returnCentroid is not yet supported for mesh scene layer queries\");return[4,this.dataQueryEngine.executeQuery(n,t)];case 1:return o=r.sent(),(a=y.fromJSON(o)).features.forEach((function(e){e.geometry=null})),[2,a]}}))}))},t.prototype._ensureQueryJSON=function(e){if(a.isNone(e))return this.defaultQueryJSON;var t=e.toJSON();return t.outSpatialReference||(e.outSpatialReference=this.spatialReference),t},t.prototype.ensureDataQueryEngine=function(){if(this._dataQueryEngineInstance)return this._dataQueryEngineInstance;var e=this.layer.objectIdField||\"OBJECTID\",t=this.layer.fields.map((function(e){return e.toJSON()})),r=this.layerView.view.resourceController.scheduler,n=this.spatialReference.toJSON(),i=this.task,o=this.spatialIndex;return this._dataQueryEngineInstance=new l({hasZ:!0,hasM:!1,geometryType:\"esriGeometryPolygon\",fields:t,timeInfo:null,spatialReference:n,objectIdField:e,featureStore:o,scheduler:r,task:i}),this._dataQueryEngineInstance},r.__decorate([u.property({constructOnly:!0})],t.prototype,\"layerView\",void 0),r.__decorate([u.property({constructOnly:!0})],t.prototype,\"task\",void 0),r.__decorate([u.property({constructOnly:!0})],t.prototype,\"spatialIndex\",void 0),r.__decorate([u.property({readOnly:!0,aliasOf:\"layerView.view.spatialReference\"})],t.prototype,\"spatialReference\",void 0),r.__decorate([u.property({readOnly:!0,aliasOf:\"layerView.i3slayer\"})],t.prototype,\"layer\",void 0),r.__decorate([u.property({readOnly:!0,dependsOn:[\"spatialReference\"]})],t.prototype,\"defaultQueryJSON\",null),t=r.__decorate([u.subclass(\"esri.views.3d.layers.i3s.I3SQueryEngine\")],t)}(n);t.I3SQueryEngine=p,t.default=p}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/maybe\",\"../../../../core/libs/gl-matrix-2/vec3\",\"../../support/orientedBoundingBox\",\"../../webgl-engine/lib/intersectorUtils\"],(function(e,t,n,r,i,o){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.I3SIntersectionHandler=void 0;var s=function(){function e(e){this.type=\"I3S\",this.layerUid=e.layerUid,this.sublayerUid=e.sublayerUid,this.collection=e.collection,this.forEach=e.forEach,this.slicePlane=e.slicePlaneEnabled,this.isGround=e.isGround}return e.prototype.intersect=function(e,t,s,l){var u=this,c=e.results,a=2===e.options.store,d=e.ray.direction,f=e.tolerance,b=function(e){return e},y=function(e){return e},p=o.getVerticalOffsetI3S(e.verticalOffset);n.isSome(p)&&(b=function(e){return p.applyToMbs(e)},y=function(e){return p.applyToObb(e)}),this.forEach((function(m,g){if(n.isSome(m.geometryObb)){if(!i.intersectLine(y(m.geometryObb),s,d,f))return}else if(n.isSome(m.serviceObbInRenderSR)){if(!i.intersectLine(y(m.serviceObbInRenderSR),s,d,f))return}else if(!function(e,t,n,r){void 0===r&&(r=0);var i=e[3]+r,o=t[0]-e[0],s=t[1]-e[1],l=t[2]-e[2],u=n[0],c=n[1],a=n[2],d=u*o+c*s+a*l;return d*d-(u*u+c*c+a*a)*(o*o+s*s+l*l-i*i)>=0}(b(m.renderMbs),s,d,f))return;u.collection.intersect(g,s,l,f,p,(function(n,i,d,f){if(i>=0){if(null!=t&&!t(s,l,i))return;var b=function(e){e.intersector=u.type,e.target={type:\"external\",metadata:{layerUid:u.layerUid,sublayerUid:u.sublayerUid,nodeIndex:m.index,componentIndex:n}},e.dist=i,r.vec3.copy(e.normal,d),e.triangleNr=f};if(u.isGround&&(null==c.ground.dist||ic.max.dist)&&b(c.max),a){var y=new o.IntersectorResult(e.ray);b(y),e.results.all.push(y)}}}))}))},Object.defineProperty(e.prototype,\"intersectionHandlerId\",{get:function(){return this.layerUid},enumerable:!1,configurable:!0}),e}();t.I3SIntersectionHandler=s}));"],"sourceRoot":""}