(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76ef664d"],{"2d39":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("3b1a"),r=i("c84e"),a=i("9a02");class n extends a["a"]{get requiresDedicatedFBO(){return this.children.some(e=>"additive"===e.blendFunction)}prepareRenderPasses(e){const t=e.registerRenderPass({name:"bitmap",brushes:[s["a"].bitmap],target:()=>this.children,drawPhase:r["c"].MAP});return[...super.prepareRenderPasses(e),t]}}},"566d":function(e,t,i){"use strict";i.d(t,"a",(function(){return B}));var s=i("a4ee"),r=i("2c4f"),a=i("7d7d"),n=i("ce50"),o=i("477c"),c=i("59b2"),h=(i("b50f"),i("c120"),i("cea0"),i("d386")),d=i("00c0"),l=i("6a0ed");i("e92d"),i("2dd4");let p=class extends l["a"]{};p=Object(s["a"])([Object(h["a"])("esri.views.layers.support.ClipArea")],p);const u=p;var b;let f=b=class extends u{constructor(){super(...arguments),this.type="rect",this.left=null,this.right=null,this.top=null,this.bottom=null}clone(){return new b({left:this.left,right:this.right,top:this.top,bottom:this.bottom})}get version(){return(this._get("version")||0)+1}};Object(s["a"])([Object(c["b"])({type:[Number,String],json:{write:!0}})],f.prototype,"left",void 0),Object(s["a"])([Object(c["b"])({type:[Number,String],json:{write:!0}})],f.prototype,"right",void 0),Object(s["a"])([Object(c["b"])({type:[Number,String],json:{write:!0}})],f.prototype,"top",void 0),Object(s["a"])([Object(c["b"])({type:[Number,String],json:{write:!0}})],f.prototype,"bottom",void 0),Object(s["a"])([Object(c["b"])({readOnly:!0})],f.prototype,"version",null),f=b=Object(s["a"])([Object(h["a"])("esri.views.layers.support.ClipRect")],f);const g=f;i("e06a");var m,y=i("3760"),O=i("a9ab"),j=i("3af1"),x=i("1219");const v={base:y["a"],key:"type",typeMap:{extent:j["a"],polygon:x["a"]}};let _=m=class extends u{constructor(){super(...arguments),this.type="geometry",this.geometry=null}get version(){return(this._get("version")||0)+1}clone(){return new m({geometry:this.geometry.clone()})}};Object(s["a"])([Object(c["b"])({types:v,json:{read:O["a"],write:!0}})],_.prototype,"geometry",void 0),Object(s["a"])([Object(c["b"])({readOnly:!0})],_.prototype,"version",null),_=m=Object(s["a"])([Object(h["a"])("esri.views.layers.support.Geometry")],_);const w=_;let R=class extends u{constructor(){super(...arguments),this.type="path",this.path=[]}get version(){return(this._get("version")||0)+1}};Object(s["a"])([Object(c["b"])({type:[[[Number]]],json:{write:!0}})],R.prototype,"path",void 0),Object(s["a"])([Object(c["b"])({readOnly:!0})],R.prototype,"version",null),R=Object(s["a"])([Object(h["a"])("esri.views.layers.support.Path")],R);const S=R,M=r["a"].ofType({key:"type",base:u,typeMap:{rect:g,path:S,geometry:w}}),B=e=>{let t=class extends e{constructor(){super(...arguments),this.attached=!1,this.clips=new M,this.lastUpdateId=-1,this.moving=!1,this.updateRequested=!1}initialize(){var e,t,i,s;const r=null==(e=null==(t=this.view)?void 0:t.spatialReferenceLocked)||e;(null==(i=this.view)?void 0:i.spatialReference)&&r&&!this.spatialReferenceSupported?this.addResolvingPromise(Promise.reject(new n["a"]("layerview:spatial-reference-incompatible","The spatial reference of this layer does not meet the requirements of the view",{layer:this.layer}))):(this.container||(this.container=new d["a"]),this.container.fadeTransitionEnabled=!0,this.container.opacity=0,this.container.clips=this.clips,this.handles.add([Object(o["e"])(()=>this.suspended,e=>{this.container&&(this.container.visible=!e),this.view&&!e&&this.updateRequested&&this.view.requestUpdate()},o["d"]),Object(o["e"])(()=>{var e,t;return null!=(e=null==(t=this.layer)?void 0:t.opacity)?e:1},e=>{this.container&&(this.container.opacity=e)},o["d"]),Object(o["e"])(()=>this.layer&&"blendMode"in this.layer?this.layer.blendMode:"normal",e=>{this.container&&(this.container.blendMode=e)},o["d"]),Object(o["e"])(()=>this.layer&&"effect"in this.layer?this.layer.effect:null,e=>{this.container&&(this.container.effect=e)},o["d"]),Object(o["b"])(()=>this.clips,"change",()=>{this.container&&(this.container.clips=this.clips)})]),null!=(s=this.view)&&s.whenLayerView?this.view.whenLayerView(this.layer).then(e=>{e===this&&this.processAttach()},()=>{}):this.when().then(()=>{this.processAttach()},()=>{}))}destroy(){this.processDetach(),this.updateRequested=!1}get spatialReferenceSupported(){var e;const t=null==(e=this.view)?void 0:e.spatialReference;return null==t||this.supportsSpatialReference(t)}get updating(){var e;return this.spatialReferenceSupported&&(!this.attached||!this.suspended&&(this.updateRequested||this.isUpdating())||!(null==(e=this.updatingHandles)||!e.updating))}get visibleAtCurrentScale(){return this.isVisibleAtScale(this.view.scale)}processAttach(){this.isResolved()&&!this.attached&&!this.destroyed&&this.spatialReferenceSupported&&(this.attach(),this.attached=!0,this.requestUpdate())}processDetach(){this.attached&&(this.attached=!1,this.detach(),this.updateRequested=!1)}isVisibleAtScale(e){const t=this.layer&&"effectiveScaleRange"in this.layer?this.layer.effectiveScaleRange:null;if(!t)return!0;const{minScale:i,maxScale:s}=t;return(0===i||e<=i)&&(0===s||e>=s)}requestUpdate(){this.destroyed||this.updateRequested||(this.updateRequested=!0,this.suspended||this.view.requestUpdate())}processUpdate(e){!this.isFulfilled()||this.isResolved()?(this._set("updateParameters",e),this.updateRequested&&!this.suspended&&(this.updateRequested=!1,this.update(e))):this.updateRequested=!1}hitTest(e,t){return Promise.resolve(null)}supportsSpatialReference(e){return!0}canResume(){return!!this.spatialReferenceSupported&&!!super.canResume()&&this.visibleAtCurrentScale}getSuspendInfo(){const e=super.getSuspendInfo(),t=!this.spatialReferenceSupported,i=this.visibleAtCurrentScale;return t&&(e.spatialReferenceNotSupported=t),i&&(e.outsideScaleRange=i),e}};return Object(s["a"])([Object(c["b"])()],t.prototype,"attached",void 0),Object(s["a"])([Object(c["b"])({type:M,set(e){const t=Object(a["b"])(e,this._get("clips"),M);this._set("clips",t)}})],t.prototype,"clips",void 0),Object(s["a"])([Object(c["b"])()],t.prototype,"container",void 0),Object(s["a"])([Object(c["b"])()],t.prototype,"moving",void 0),Object(s["a"])([Object(c["b"])({readOnly:!0})],t.prototype,"spatialReferenceSupported",null),Object(s["a"])([Object(c["b"])({readOnly:!0})],t.prototype,"updateParameters",void 0),Object(s["a"])([Object(c["b"])()],t.prototype,"updateRequested",void 0),Object(s["a"])([Object(c["b"])()],t.prototype,"updating",null),Object(s["a"])([Object(c["b"])()],t.prototype,"view",void 0),Object(s["a"])([Object(c["b"])({readOnly:!0})],t.prototype,"visibleAtCurrentScale",null),t=Object(s["a"])([Object(h["a"])("esri.views.2d.layers.LayerView2D")],t),t}},"6c7a":function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var s=i("a4ee"),r=i("e92d"),a=i("f4cc"),n=i("477c"),o=i("59b2"),c=(i("b50f"),i("c120"),i("cea0"),i("d386"));const h=e=>{let t=class extends e{initialize(){this.handles.add(Object(n["b"])(()=>this.layer,"refresh",e=>{this.doRefresh(e.dataChanged).catch(e=>{Object(a["m"])(e)||r["a"].getLogger(this.declaredClass).error(e)})}),"RefreshableLayerView")}};return Object(s["a"])([Object(o["b"])()],t.prototype,"layer",void 0),t=Object(s["a"])([Object(c["a"])("esri.layers.mixins.RefreshableLayerView")],t),t}},"894c":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("b2b2");class r{constructor(e,t,i){this.pixelBlock=e,this.extent=t,this.originalPixelBlock=i}get width(){return Object(s["k"])(this.pixelBlock)?this.pixelBlock.width:0}get height(){return Object(s["k"])(this.pixelBlock)?this.pixelBlock.height:0}render(e){const t=this.pixelBlock;if(Object(s["j"])(t))return;const i=this.filter({pixelBlock:t});if(Object(s["j"])(i.pixelBlock))return;const r=i.pixelBlock.getAsRGBA(),a=e.createImageData(i.pixelBlock.width,i.pixelBlock.height);a.data.set(r),e.putImageData(a,0,0)}getRenderedRasterPixels(){const e=this.filter({pixelBlock:this.pixelBlock});return Object(s["j"])(e.pixelBlock)?null:{width:e.pixelBlock.width,height:e.pixelBlock.height,renderedRasterPixels:new Uint8Array(e.pixelBlock.getAsRGBA().buffer)}}}},"9a02":function(e,t,i){"use strict";i.d(t,"a",(function(){return B}));i("c120");var s=i("b2b2"),r=i("8c71"),a=i("3b1a"),n=i("00c0"),o=i("ce50"),c=i("e92d"),h=i("7c4b"),d=i("9812"),l=i("3349"),p=i("02f1"),u=i("6655"),b=i("8152"),f=i("d114"),g=i("7ce4"),m=i("d17d");const y=c["a"].getLogger("esri.views.2d.engine.webgl.Mesh2D"),O=e=>{switch(e.BYTES_PER_ELEMENT){case 1:return m["k"].UNSIGNED_BYTE;case 2:return m["k"].UNSIGNED_SHORT;case 4:return m["k"].UNSIGNED_INT;default:throw new o["a"]("Cannot get DataType of array")}},j=(e,t,i,s)=>{let r=0;for(let a=1;a0:r<0},x=({coords:e,lengths:t},i)=>{const s=[];for(let r=0,a=0;r({...i,[s]:g["a"].createVertex(e,t,this.vertices[s])}),{})),this._cache.vertexBuffers}}var _=i("0fa6");const w=c["a"].getLogger("esri.views.2d.engine.webgl.ClippingInfo"),R=e=>parseFloat(e)/100;class S extends h["a"]{constructor(e,t){super(),this._clip=t,this._cache={},this.stage=e,this._handle=t.watch("version",()=>this._invalidate()),this.ready()}static fromClipArea(e,t){return new S(e,t)}_destroyGL(){Object(s["k"])(this._cache.mesh)&&(this._cache.mesh.destroy(),this._cache.mesh=null),Object(s["k"])(this._cache.vao)&&(this._cache.vao.dispose(),this._cache.vao=null)}destroy(){this._destroyGL(),this._handle.remove()}getVAO(e,t,i,r){const[a,n]=t.size;if("geometry"!==this._clip.type&&this._lastWidth===a&&this._lastHeight===n||(this._lastWidth=a,this._lastHeight=n,this._destroyGL()),Object(s["j"])(this._cache.vao)){const s=this._createMesh(t,this._clip),a=s.getIndexBuffer(e),n=s.getVertexBuffers(e);this._cache.mesh=s,this._cache.vao=new _["a"](e,i,r,n,a)}return this._cache.vao}_createTransforms(){return{dvs:Object(r["b"])()}}_invalidate(){this._destroyGL(),this.requestRender()}_createScreenRect(e,t){const[i,s]=e.size,r="string"==typeof t.left?R(t.left)*i:t.left,a="string"==typeof t.right?R(t.right)*i:t.right,n="string"==typeof t.top?R(t.top)*s:t.top,o="string"==typeof t.bottom?R(t.bottom)*s:t.bottom,c=r,h=n;return{x:c,y:h,width:Math.max(i-a-c,0),height:Math.max(s-o-h,0)}}_createMesh(e,t){switch(t.type){case"rect":return v.fromRect(this._createScreenRect(e,t));case"path":return v.fromPath(t);case"geometry":return v.fromGeometry(e,t);default:return w.error(new o["a"]("mapview-bad-type","Unable to create ClippingInfo mesh from clip of type: ${clip.type}")),v.fromRect({x:0,y:0,width:1,height:1})}}}var M=i("c84e");class B extends n["a"]{constructor(){super(...arguments),this.name=this.constructor.name}set clips(e){this._clips=e,this.children.forEach(t=>t.clips=e),this._updateClippingInfo()}_createTransforms(){return{dvs:Object(r["b"])()}}doRender(e){const t=this.createRenderParams(e),{painter:i,globalOpacity:s,profiler:r,drawPhase:a}=t,n=a===M["c"].LABEL||a===M["c"].HIGHLIGHT?1:s*this.computedOpacity;r.recordContainerStart(this.name),i.beforeRenderLayer(t,this._clippingInfos?255:0,n),this.updateTransforms(e.state),this.renderChildren(t),i.compositeLayer(t,n),r.recordContainerEnd()}renderChildren(e){Object(s["j"])(this._renderPasses)&&(this._renderPasses=this.prepareRenderPasses(e.painter));for(const i of this.children)i.beforeRender(e);for(const i of this._renderPasses)try{i.render(e)}catch(t){}for(const i of this.children)i.afterRender(e)}createRenderParams(e){return e.requireFBO=this.requiresDedicatedFBO,e}prepareRenderPasses(e){return[e.registerRenderPass({name:"clip",brushes:[a["a"].clip],target:()=>this._clippingInfos,drawPhase:M["c"].MAP|M["c"].LABEL|M["c"].LABEL_ALPHA|M["c"].DEBUG|M["c"].HIGHLIGHT})]}updateTransforms(e){for(const t of this.children)t.setTransform(e)}onAttach(){super.onAttach(),this._updateClippingInfo()}onDetach(){super.onDetach(),this._updateClippingInfo()}_updateClippingInfo(){if(Object(s["k"])(this._clippingInfos)&&(this._clippingInfos.forEach(e=>e.destroy()),this._clippingInfos=null),!this.stage)return;const e=this._clips;Object(s["k"])(e)&&e.length&&(this._clippingInfos=e.items.map(e=>S.fromClipArea(this.stage,e))),this.requestRender()}}},b969:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return f}));var s=i("a4ee"),r=i("e92d"),a=i("f4cc"),n=i("59b2"),o=(i("b50f"),i("c120"),i("cea0"),i("d386")),c=i("2d39"),h=i("566d"),d=i("bdb8"),l=i("365a"),p=i("6c7a");const u=r["a"].getLogger("esri.views.2d.layers.BaseDynamicLayerView2D");let b=class extends(Object(p["a"])(Object(h["a"])(l["a"]))){update(e){this.strategy.update(e).catch(e=>{Object(a["m"])(e)||u.error(e)}),this.notifyChange("updating")}attach(){this._bitmapContainer=new c["a"],this.container.addChild(this._bitmapContainer),this.strategy=new d["a"]({container:this._bitmapContainer,fetchSource:this.fetchBitmapData.bind(this),requestUpdate:this.requestUpdate.bind(this)})}detach(){this.strategy.destroy(),this.strategy=null,this.container.removeChild(this._bitmapContainer),this._bitmapContainer.removeAllChildren()}moveStart(){}viewChange(){}moveEnd(){this.requestUpdate()}fetchBitmapData(e,t,i){return this.layer.fetchImage(e,t,i)}async doRefresh(){this.requestUpdate()}isUpdating(){return this.strategy.updating||this.updateRequested}};Object(s["a"])([Object(n["b"])()],b.prototype,"strategy",void 0),Object(s["a"])([Object(n["b"])()],b.prototype,"updating",void 0),b=Object(s["a"])([Object(o["a"])("esri.views.2d.layers.BaseDynamicLayerView2D")],b);const f=b},bdb8:function(e,t,i){"use strict";i.d(t,"a",(function(){return w}));var s=i("a4ee"),r=i("fc29"),a=i("f4cc"),n=i("59b2"),o=(i("b50f"),i("c120"),i("cea0"),i("d386")),c=i("3af1"),h=i("9180"),d=i("7f83"),l=i("dff3");const p=Math.PI/180;function u(e){return e*p}function b(e,t){const i=u(t.rotation),s=Math.abs(Math.cos(i)),r=Math.abs(Math.sin(i)),[a,n]=t.size;return e[0]=Math.round(n*r+a*s),e[1]=Math.round(n*s+a*r),e}function f(e,t,i,s){const[r,a]=t,[n,o]=s,c=.5*i;return e[0]=r-c*n,e[1]=a-c*o,e[2]=r+c*n,e[3]=a+c*o,e}var g=i("c73a"),m=i("018d"),y=i("ae54");const O=Object(h["l"])(),j=[0,0],x=new y["a"](0,0,0,0),v={container:null,fetchSource:null,requestUpdate:null,imageMaxWidth:2048,imageMaxHeight:2048,imageRotationSupported:!1,imageNormalizationSupported:!1,hidpi:!1};let _=class extends r["a"]{constructor(e){super(e),this._imagePromise=null,this.bitmaps=[],this.hidpi=v.hidpi,this.imageMaxWidth=v.imageMaxWidth,this.imageMaxHeight=v.imageMaxHeight,this.imageRotationSupported=v.imageRotationSupported,this.imageNormalizationSupported=v.imageNormalizationSupported,this.update=Object(a["i"])(async(e,t)=>{if(!e.stationary||this.destroyed)return null;const i=e.state,s=Object(d["e"])(i.spatialReference),r=this.hidpi?e.pixelRatio:1,a=this.imageNormalizationSupported&&i.worldScreenWidth&&i.worldScreenWidththis.imageMaxWidth||Math.floor(j[1]*r)>this.imageMaxHeight,o=s&&(i.extent.xmins.valid[1]),c=!this.imageNormalizationSupported&&o,h=!n&&!c,l=this.imageRotationSupported?i.rotation:0;if(h){const e=a?i.paddedViewState.center:i.center;this._imagePromise=this._singleExport(i,j,e,i.resolution,l,r,t)}else{let e=Math.min(this.imageMaxWidth,this.imageMaxHeight);c&&(e=Math.min(i.worldScreenWidth,e)),this._imagePromise=this._tiledExport(i,e,l,r,t)}return this._imagePromise.then(async e=>{if(this._imagePromise=null,!this.destroyed){this.bitmaps=null!=e?e:[];for(const t of this.container.children)e.includes(t)||t.fadeOut().then(()=>{t.remove()});for(const t of e)this.container.addChild(t),t.fadeIn()}}).catch(e=>{throw this._imagePromise=null,e})},5e3)}destroy(){this.bitmaps=[]}get updating(){return!this.destroyed&&null!==this._imagePromise}updateExports(e){for(const t of this.container.children){if(!t.visible||!t.stage)return;e(t),t.invalidateTexture(),t.requestRender()}}async _export(e,t,i,s,r,a){const n=await this.fetchSource(e,Math.floor(t*r),Math.floor(i*r),{rotation:s,pixelRatio:r,signal:a}),o=new g["a"](n,"additive");return o.x=e.xmin,o.y=e.ymax,o.resolution=e.width/t,o.rotation=s,o.pixelRatio=r,o}async _singleExport(e,t,i,s,r,a,n){f(O,i,s,t);const o=new c["a"](O[0],O[1],O[2],O[3],e.spatialReference);return[await this._export(o,t[0],t[1],r,a,n)]}_tiledExport(e,t,i,s,r){const a=l["a"].create({size:t,spatialReference:e.spatialReference,scales:[e.scale]}),n=new m["a"](a),o=n.getTileCoverage(e);if(!o)return null;const h=[];return o.forEach((a,o,d,l)=>{x.set(a,o,d,l),n.getTileBounds(O,x);const p=new c["a"](O[0],O[1],O[2],O[3],e.spatialReference);h.push(this._export(p,t,t,i,s,r))}),Promise.all(h)}};Object(s["a"])([Object(n["b"])()],_.prototype,"_imagePromise",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"bitmaps",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"container",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"fetchSource",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"hidpi",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"imageMaxWidth",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"imageMaxHeight",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"imageRotationSupported",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"imageNormalizationSupported",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"requestUpdate",void 0),Object(s["a"])([Object(n["b"])()],_.prototype,"updating",null),_=Object(s["a"])([Object(o["a"])("esri.views.2d.layers.support.ExportStrategy")],_);const w=_},c73a:function(e,t,i){"use strict";i.d(t,"a",(function(){return f}));var s=i("b2b2"),r=i("1c92"),a=i("8c71"),n=i("738e"),o=i("7c4b"),c=i("894c"),h=i("d17d"),d=i("a1ff");function l(e){return e&&"render"in e}function p(e){return e&&!("render"in e)}function u(e){const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,e.render(t.getContext("2d")),t}function b(e,t,i){const s={target:h["A"].TEXTURE_2D,pixelFormat:h["p"].RGBA,internalFormat:h["p"].RGBA,dataType:h["q"].UNSIGNED_BYTE,wrapMode:h["B"].CLAMP_TO_EDGE};return t&&i&&(s.width=t,s.height=i),new d["a"](e,s)}class f extends o["a"]{constructor(e=null,t,i=!0){super(),this.requestRenderOnSourceChangedEnabled=i,this._textureInvalidated=!0,this.stencilRef=0,this.coordScale=[1,1],this._height=void 0,this.pixelRatio=1,this.resolution=0,this.rotation=0,this._source=null,this._width=void 0,this.x=0,this.y=0,this.blendFunction=t,this.source=e,this.requestRender=this.requestRender.bind(this)}destroy(){this._texture&&(this._texture.dispose(),this._texture=null)}get isSourceScaled(){return this.width!==this.sourceWidth||this.height!==this.sourceHeight}get height(){return void 0!==this._height?this._height:this.sourceHeight}set height(e){this._height=e}get source(){return this._source}set source(e){this._source=e,this.invalidateTexture()}get sourceHeight(){return this._source instanceof HTMLImageElement?this._source.naturalHeight:this._source.height}get sourceWidth(){return this._source instanceof HTMLImageElement?this._source.naturalWidth:this._source.width}get width(){return void 0!==this._width?this._width:this.sourceWidth}set width(e){this._width=e}beforeRender(e){super.beforeRender(e),this.updateTexture(e.context)}invalidateTexture(){this._textureInvalidated||(this._textureInvalidated=!0,this.requestRenderOnSourceChangedEnabled&&this.requestRender())}_createTransforms(){return{dvs:Object(a["b"])()}}setTransform(e){const t=Object(r["b"])(this.transforms.dvs),[i,s]=e.toScreenNoRotation([0,0],[this.x,this.y]),a=this.resolution/this.pixelRatio/e.resolution,o=a*this.width,c=a*this.height,h=Math.PI*this.rotation/180;Object(r["c"])(t,t,Object(n["b"])(i,s)),Object(r["c"])(t,t,Object(n["b"])(o/2,c/2)),Object(r["n"])(t,t,-h),Object(r["c"])(t,t,Object(n["b"])(-o/2,-c/2)),Object(r["j"])(t,t,Object(n["b"])(o,c)),Object(r["l"])(this.transforms.dvs,e.displayViewMat3,t)}setSamplingProfile(e){this._texture&&(e.mips&&!this._texture.descriptor.hasMipmap&&this._texture.generateMipmap(),this._texture.setSamplingMode(e.samplingMode))}bind(e,t){this._texture&&e.bindTexture(this._texture,t)}updateTexture(e){var t;if(!this.stage)return null==(t=this._texture)||t.dispose(),void(this._texture=null);if(!this._textureInvalidated)return;this._textureInvalidated=!1,this._texture||(this.source?this._texture=b(e,this.sourceWidth,this.sourceHeight):this._texture=b(e));const i=this.source;if(i){if(this._texture.resize(this.sourceWidth,this.sourceHeight),l(i))if(i instanceof c["a"]){const e=i.getRenderedRasterPixels();this._texture.setData(Object(s["k"])(e)?e.renderedRasterPixels:null)}else this._texture.setData(u(i));else p(i)&&this._texture.setData(i);this.ready()}else this._texture.setData(null)}onAttach(){this.invalidateTexture()}onDetach(){this.invalidateTexture()}}}}]); //# sourceMappingURL=chunk-76ef664d.7b437d91.js.map