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AAA,GAAAA,IAAMA,EAAAA,GAAAA,UAAYA,EAAAA,GAAAA,MAAQsI,OAAO,kBAAI,EAAKC,wBAAsB9F,EAAAA,EAAAA,GAAI,qBAAqB5B,EAAE0E,KAAK9E,EAAEyH,mBAAmB,CAACC,KAAK,WAAWC,QAAQ,CAACrI,EAAAA,GAAGsI,UAAUrI,EAAAA,GAAAA,MAAQsI,OAAO,kBAAI,EAAK3B,aAAY9F,I,8BAAE,WAAmB,OAAOX,KAAKyG,W,iCAAS,SAAoB3G,GAAG,IAAD,EAAKS,EAAE,EAAP,UAAwBP,KAAKyG,UAA7B,IAAS,oCAA+B6B,WAAW/H,KAAnD,mC,EAAvvBR,CAAUQ,EAAAA,I,2FCA5RR,EAAAA,WAAE,WAAYF,EAAEE,EAAED,IAAE,eAACE,KAAKuI,YAAY1I,EAAEG,KAAKwI,aAAazI,EAAEC,KAAKyI,OAAO3I,E,uCAAE,WAAiB,OAAOD,EAAAA,EAAAA,GAAEG,KAAKuI,e,4BAAa,SAAexI,GAAG,MAAM,CAAC2I,IAAG7I,EAAAA,EAAAA,GAAEG,KAAKuI,aAAaI,cAAc3I,KAAKwI,aAAaI,KAAKC,YAAY9I,EAAE+I,mBAAmB9I,KAAKyI,OAAOK,sB,sBAAoB,WAAW,OAAO9I,KAAKyI,S,sBAAO,SAAS5I,GAAGG,KAAKyI,OAAO5I,M,EAAlUE,I,sBCAvE,SAASY,EAAEA,GAAG,OAAOA,EAAE,SAASJ,EAAEI,GAAG,OAAOA,E","sources":["../node_modules/@arcgis/core/views/2d/engine/webgl/AttributeStoreView.js","../node_modules/@arcgis/core/views/2d/engine/AFeatureContainer.js","../node_modules/@arcgis/core/views/2d/engine/webgl/TileContainer.js","../node_modules/@arcgis/core/views/2d/engine/webgl/shaderGraph/techniques/TechniqueInstance.js","../node_modules/@arcgis/core/views/2d/engine/webgl/shaderGraph/techniques/mesh/instanceIdUtils.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.30/esri/copyright.txt for details.\n*/\nimport t from\"../../../../core/Error.js\";import has from\"../../../../core/has.js\";import e from\"../../../../core/Logger.js\";import{AttributeDataType as i,filterFlagsUnit as s,animationUnit as r,gpgpuUnit as a,visualVariableUnit as n,dataDrivenUnit0 as u,dataDrivenUnit1 as h,dataDrivenUnit2 as o}from\"./definitions.js\";import{getDisplayIdTexel as d}from\"./DisplayId.js\";import{getPixelArrayCtor as l,getPixelBytes as p}from\"./Utils.js\";import{TextureWrapMode as _,TextureSamplingMode as g}from\"../../../webgl/enums.js\";import{FramebufferObject as c}from\"../../../webgl/FramebufferObject.js\";import{Texture as x}from\"../../../webgl/Texture.js\";import{TextureDescriptor as f}from\"../../../webgl/TextureDescriptor.js\";const b=()=>e.getLogger(\"esri.views.2d.engine.webgl.AttributeStoreView\");class T{constructor(t,e,i){this._texture=null,this._lastTexture=null,this._fbos={},this.texelSize=4;const{buffer:s,pixelType:r,textureOnly:a}=t,n=l(r);this.blockIndex=i,this.pixelType=r,this.size=e,this.textureOnly=a,a||(this.data=new n(s)),this._resetRange()}destroy(){this._texture?.dispose();for(const t in this._fbos){const e=this._fbos[t];e&&(\"0\"===t&&e.detachColorTexture(),e.dispose()),this._fbos[t]=null}this._texture=null}get _textureDesc(){const t=new f;return t.wrapMode=_.CLAMP_TO_EDGE,t.samplingMode=g.NEAREST,t.dataType=this.pixelType,t.width=this.size,t.height=this.size,t}setData(t,e,i){const s=d(t),r=this.data,a=s*this.texelSize+e;!r||a>=r.length||(r[a]=i,this.dirtyStart=Math.min(this.dirtyStart,s),this.dirtyEnd=Math.max(this.dirtyEnd,s))}getData(t,e){if(null==this.data)return null;const i=d(t)*this.texelSize+e;return!this.data||i>=this.data.length?null:this.data[i]}getTexture(t){return this._texture??this._initTexture(t)}getFBO(t,e=0){if(!this._fbos[e]){const i=0===e?this.getTexture(t):this._textureDesc;this._fbos[e]=new c(t,i)}return this._fbos[e]}get hasDirty(){const t=this.dirtyStart;return this.dirtyEnd>=t}updateTexture(e,i){try{const s=this.dirtyStart,r=this.dirtyEnd;if(!this.hasDirty)return;has(\"esri-2d-update-debug\")&&console.debug(`Version[${i}] AttributeStoreView.updateTexture`,{start:s,end:r,firstBytes:new Uint8Array(this.data.buffer.slice(0,16)),block:this}),this._resetRange();const a=this.data.buffer,n=this.getTexture(e),u=4,h=(s-s%this.size)/this.size,o=(r-r%this.size)/this.size,d=h,p=this.size,_=o,g=h*this.size*u,c=(p+_*this.size)*u-g,x=l(this.pixelType),f=new x(a,g*x.BYTES_PER_ELEMENT,c),T=this.size,m=_-d+1;if(m>this.size)return void b().error(new t(\"mapview-webgl\",\"Out-of-bounds index when updating AttributeData\"));n.updateData(0,0,d,T,m,f)}catch(s){}}update(t){const{data:e,start:i,end:s}=t;if(null!=e&&null!=this.data){const s=this.data,r=i*this.texelSize;for(let i=0;inull!=t?new T(t,this.size,e):null));else for(let i=0;ie.destroy())),this.removeAllChildren(),this.attributeView.destroy()}doRender(e){e.context.capabilities.enable(\"textureFloatLinear\"),super.doRender(e)}createRenderParams(e){const t=super.createRenderParams(e);return t.attributeView=this.attributeView,t.instanceStore=this._instanceStore,t.statisticsByLevel=this._statisticsByLevel,t}}export{r as AFeatureContainer};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.30/esri/copyright.txt for details.\n*/\nimport has from\"../../../../core/has.js\";import{WGLDrawPhase as e}from\"./enums.js\";import r from\"./WGLContainer.js\";import s from\"./brushes/WGLBrushStencil.js\";import t from\"./brushes/WGLBrushTileDebugInfo.js\";const n=(e,r)=>e.key.level-r.key.level!=0?e.key.level-r.key.level:e.key.row-r.key.row!=0?e.key.row-r.key.row:e.key.col-r.key.col;class i extends r{constructor(e){super(),this._tileInfoView=e}renderChildren(e){this.sortChildren(n),this.setStencilReference(e),super.renderChildren(e)}createRenderParams(e){const{state:r}=e,s=super.createRenderParams(e);return s.requiredLevel=this._tileInfoView.getClosestInfoForScale(r.scale).level,s.displayLevel=this._tileInfoView.tileInfo.scaleToZoom(r.scale),s}prepareRenderPasses(r){const n=super.prepareRenderPasses(r);return n.push(r.registerRenderPass({name:\"stencil\",brushes:[s],drawPhase:e.DEBUG|e.MAP|e.HIGHLIGHT|e.LABEL,target:()=>this.getStencilTarget()})),has(\"esri-tiles-debug\")&&n.push(r.registerRenderPass({name:\"tileInfo\",brushes:[t],drawPhase:e.DEBUG,target:()=>this.children})),n}getStencilTarget(){return this.children}setStencilReference(e){let r=1;for(const s of this.children)s.stencilRef=r++}}export{i as default};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.30/esri/copyright.txt for details.\n*/\nimport{castStrictInstanceId as t}from\"./mesh/instanceIdUtils.js\";class i{constructor(t,i,e){this._instanceId=t,this.techniqueRef=i,this._input=e}get instanceId(){return t(this._instanceId)}createMeshInfo(i){return{id:t(this._instanceId),techniqueType:this.techniqueRef.type,inputParams:i,optionalAttributes:this._input.optionalAttributes}}getInput(){return this._input}setInput(t){this._input=t}}export{i as FeatureTechniqueInstance};\n","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.30/esri/copyright.txt for details.\n*/\nfunction n(n){return n}function r(n){return n}export{r as castInstanceId,n as castStrictInstanceId};\n"],"names":["T","t","e","i","this","_texture","_lastTexture","_fbos","texelSize","s","buffer","r","pixelType","a","textureOnly","n","l","blockIndex","size","data","_resetRange","dispose","detachColorTexture","f","wrapMode","_","samplingMode","g","dataType","width","height","d","length","dirtyStart","Math","min","dirtyEnd","max","_initTexture","getTexture","_textureDesc","c","hasDirty","has","console","debug","start","end","firstBytes","Uint8Array","slice","block","h","o","p","x","BYTES_PER_ELEMENT","m","error","updateData","layout","destroy","descriptor","pixelFormat","getFBO","u","ArrayBuffer","getBoundFramebufferObject","getViewport","y","bindFramebuffer","readPixels","setViewport","_pendingAttributeUpdates","_version","_epoch","_locked","Error","blockDescriptors","blockSize","message","_data","map","resize","_defaultTexture","setData","getData","update","version","push","blockData","initArgs","sendUpdateEpoch","_initialize","filterFlags","texture","_getTexture","unit","animation","gpgpu","visualVariableData","dataDriven0","dataDriven1","dataDriven2","updateTexture","_getDefaultTexture","_statisticsByLevel","Map","attributeView","children","forEach","removeAllChildren","context","capabilities","enable","instanceStore","_instanceStore","statisticsByLevel","key","level","row","col","_tileInfoView","sortChildren","setStencilReference","state","requiredLevel","getClosestInfoForScale","scale","displayLevel","tileInfo","scaleToZoom","registerRenderPass","name","brushes","drawPhase","target","getStencilTarget","stencilRef","_instanceId","techniqueRef","_input","id","techniqueType","type","inputParams","optionalAttributes"],"sourceRoot":""}