(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8d9e337e"],{d97e:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=r("b2b2");function a(e,t){return e?t?4:3:t?3:2}function i(e,t,r,i,n){if(Object(o["j"])(t)||!t.lengths.length)return null;const c="upperLeft"===(null==n?void 0:n.originPosition)?-1:1;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const u=e.coords,h=[],d=r?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:g,coords:f}=t,b=a(r,i);let y=0;for(const o of g){const e=l(d,f,y,o,r,i,c);e&&h.push(e),y+=o*b}if(h.sort((e,t)=>{let o=c*e[2]-c*t[2];return 0===o&&r&&(o=e[4]-t[4]),o}),h.length){let e=6*h[0][2];u[0]=h[0][0]/e,u[1]=h[0][1]/e,r&&(e=6*h[0][4],u[2]=0!==e?h[0][3]/e:0),(u[0]d[1]||u[1]d[3]||r&&(u[2]d[5]))&&(u.length=0)}if(!u.length){const e=t.lengths[0]?s(f,0,g[0],r,i):null;if(!e)return null;u[0]=e[0],u[1]=e[1],r&&e.length>2&&(u[2]=e[2])}return e}function l(e,t,r,o,i,l,s=1){const n=a(i,l);let c=r,u=r+n,h=0,d=0,g=0,f=0,b=0;for(let a=0,_=o-1;a<_;a++,c+=n,u+=n){const r=t[c],o=t[c+1],a=t[c+2],l=t[u],s=t[u+1],n=t[u+2];let y=r*s-l*o;f+=y,h+=(r+l)*y,d+=(o+s)*y,i&&(y=r*n-l*a,g+=(a+n)*y,b+=y),re[1]&&(e[1]=r),oe[3]&&(e[3]=o),i&&(ae[5]&&(e[5]=a))}if(f*s>0&&(f*=-1),b*s>0&&(b*=-1),!f)return null;const y=[h,d,.5*f];return i&&(y[3]=g,y[4]=.5*b),y}function s(e,t,r,o,i){const l=a(o,i);let s=t,d=t+l,g=0,f=0,b=0,y=0;for(let a=0,_=r-1;a<_;a++,s+=l,d+=l){const t=e[s],r=e[s+1],a=e[s+2],i=e[d],l=e[d+1],_=e[d+2],I=o?c(t,r,a,i,l,_):n(t,r,i,l);if(I)if(g+=I,o){const e=h(t,r,a,i,l,_);f+=I*e[0],b+=I*e[1],y+=I*e[2]}else{const e=u(t,r,i,l);f+=I*e[0],b+=I*e[1]}}return g>0?o?[f/g,b/g,y/g]:[f/g,b/g]:r>0?o?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function n(e,t,r,o){const a=r-e,i=o-t;return Math.sqrt(a*a+i*i)}function c(e,t,r,o,a,i){const l=o-e,s=a-t,n=i-r;return Math.sqrt(l*l+s*s+n*n)}function u(e,t,r,o){return[e+.5*(r-e),t+.5*(o-t)]}function h(e,t,r,o,a,i){return[e+.5*(o-e),t+.5*(a-t),r+.5*(i-r)]}},f05f:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return O}));var o=r("a4ee"),a=r("8d60"),i=r("b2b2"),l=r("477c"),s=r("59b2"),n=(r("b50f"),r("c120"),r("cea0"),r("d386")),c=r("0fc4"),u=r("9180"),h=r("4c7e"),d=r("648c"),g=r("66af"),f=r("deae"),b=r("9b8b"),y=r("365a");const _=.2;let I=class extends(Object(h["a"])(Object(g["a"])(y["a"]))){constructor(){super(...arguments),this.type="integrated-mesh-3d",this.lodFactor=1,this._elevationContext="im",this._isIntegratedMesh=!0,this._supportsLabeling=!1,this.drapeTargetType=d["c"].WithoutRasterImage,this._overlayTexOffset=Object(c["g"])(-1,-1,-1,-1),this._overlayTexScale=Object(c["e"])(),this._overlayColor=null,this._overlayHighlight=null,this._overlayNormal=null}get progressiveLoadFactor(){return this.lodFactor>=1?_:1}setDrapingTextures(e){this._clearDrapingTexture(b["b"].INNER),this._clearDrapingTexture(b["b"].OUTER);for(const t of e){const e=t.index,r=t.extent,o=t.needsColorWithoutRasterImage?t.getValidTarget(b["d"].ColorNoRasterImage):t.hasDrapedFeatureSource?t.getValidTarget(b["d"].Color):null;if(Object(i["k"])(o)&&Object(u["d"])(r)>0){this._overlayTexOffset[2*e]=-r[0]/Object(u["C"])(r),this._overlayTexOffset[2*e+1]=-r[1]/Object(u["u"])(r),this._overlayTexScale[2*e]=1/Object(u["C"])(r),this._overlayTexScale[2*e+1]=1/Object(u["u"])(r);const a=t.getValidTarget(b["d"].Highlight),i=t.getValidTarget(b["d"].Water);this._overlayColor=o.getTexture(),this._overlayHighlight=a?a.getTexture():null,this._overlayNormal=i?i.getTexture():null}}this._forAllNodes(e=>Object(i["k"])(e)&&this._collection.updateMaterial(e.objectHandle,e=>this._updateMaterialOverlay(e)))}_clearDrapingTexture(e){this._overlayTexOffset[2*e]=-1,this._overlayTexOffset[2*e+1]=-1,this._overlayTexScale[2*e]=0,this._overlayTexScale[2*e+1]=0,this._overlayColor=null,this._overlayHighlight=null,this._overlayNormal=null}_updateMaterialOverlay(e){e.overlayColor=this._overlayColor,e.overlayHighlight=this._overlayHighlight,e.overlayNormal=this._overlayNormal,e.overlayTexOffset=this._overlayTexOffset,e.overlayTexScale=this._overlayTexScale}initialize(){this.updatingHandles.add(()=>this.layer.modifications,()=>this._loadModifications(),l["a"])}_createLayerGraphic(){const e=new a["a"];return e.layer=this.layer,e.sourceLayer=this.layer,e}canResume(){return super.canResume()&&(!this._controller||this._controller.rootNodeVisible)}_loadModifications(){if(this.handles.remove("modifications"),Object(i["j"])(this.layer.modifications))return void(this._modifications=[]);const e=this.layer.modifications;this.handles.add(this.updatingHandles.addOnCollectionChange(()=>e,()=>this._modifications=e.toArray(),l["a"]),"modifications")}};Object(o["a"])([Object(s["b"])()],I.prototype,"layer",void 0),Object(o["a"])([Object(s["b"])({aliasOf:"layer"})],I.prototype,"i3slayer",void 0),Object(o["a"])([Object(s["b"])(f["a"])],I.prototype,"updatingProgress",void 0),Object(o["a"])([Object(s["b"])({readOnly:!0,aliasOf:"_controller.updatingProgress"})],I.prototype,"updatingProgressValue",void 0),Object(o["a"])([Object(s["b"])({readOnly:!0,aliasOf:"view.qualitySettings.sceneService.integratedMesh.lodFactor"})],I.prototype,"lodFactor",void 0),Object(o["a"])([Object(s["b"])({readOnly:!0})],I.prototype,"progressiveLoadFactor",null),I=Object(o["a"])([Object(n["a"])("esri.views.3d.layers.SceneLayerView3D")],I);const O=I}}]); //# sourceMappingURL=chunk-8d9e337e.918fd24e.js.map