PageSourceSearch

https://tapped-demo-csun-cgst.netlify.app/tapped/_next/static/chunks/263.ca39754bad4e7d10.js

js tapped-demo-csun-cgst.netlify.app collected 2026-10-03 11:30:08 UTC 9,644 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[263],{23045:function(e,t,s){s.d(t,{Ki:function(){return c},Ao:function(){return h},yB:function(){return l},Hn:function(){return n},GF:function(){return a}});var r=s(19431),i=s(63483),o=s(14266);const n=0,a=1,l=2;class c{constructor(e,t){this.width=e,this.height=t;const s=Math.ceil(e/1),r=Math.ceil(t/1);this._cols=s,this._rows=r,this._cells=i.p.create(s*r)}insertMetrics(e){const t=this._hasCollision(e);return t===n&&this._markMetrics(e),t}getCellId(e,t){return e+t*this._cols}has(e){return this._cells.has(e)}hasRange(e,t){return this._cells.hasRange(e,t)}set(e){this._cells.set(e)}setRange(e,t){this._cells.setRange(e,t)}_hasCollision(e){const t=e.id;let s=0,r=0;e.save();do{const t=e.boundsCount;s+=t;for(let s=0;s<t;s++){const t=e.boundsComputedAnchorX(s),i=e.boundsComputedAnchorY(s),o=e.boundsWidth(s)+2,n=e.boundsHeight(s)+2;switch(this._collide(t,i,o,n)){case l:return l;case a:r++}}}while(e.peekId()===t&&e.next());return e.restore(),s===r?a:n}_collide(e,t,s,i){const o=e-s/2,c=e+s/2,h=t-i/2,d=t+i/2;if(c<0||d<0||o>this.width||h>this.height)return a;const u=(0,r.uZ)(Math.floor(o/1),0,this._cols),f=(0,r.uZ)(Math.floor(h/1),0,this._rows),_=(0,r.uZ)(Math.ceil(c/1),0,this._cols),g=(0,r.uZ)(Math.ceil(d/1),0,this._rows);for(let r=f;r<=g;r++)for(let e=u;e<=_;e++){const t=this.getCellId(e,r);if(this.has(t))return l}return n}_mark(e,t,s,i){const o=e-s/2,n=e+s/2,a=t-i/2,l=t+i/2,c=(0,r.uZ)(Math.floor(o/1),0,this._cols),h=(0,r.uZ)(Math.floor(a/1),0,this._rows),d=(0,r.uZ)(Math.ceil(n/1),0,this._cols),u=(0,r.uZ)(Math.ceil(l/1),0,this._rows);for(let r=h;r<=u;r++)for(let e=c;e<=d;e++){const t=this.getCellId(e,r);this.set(t)}return!1}_markMetrics(e){const t=e.id;do{const t=e.boundsCount;for(let s=0;s<t;s++){const t=e.boundsComputedAnchorX(s),r=e.boundsComputedAnchorY(s),i=e.boundsWidth(s)+2,o=e.boundsHeight(s)+2;this._mark(t,r,i,o)}}while(e.peekId()===t&&e.next())}}class h{constructor(e,t=2){this._bucketSize=e,this._rowsLength=o.I_/e,this._colsLength=o.I_/e,this._elementsPerBucket=t,this._grid=this._initGrid()}checkOverlap(e,t){const s=Math.floor(e/this._bucketSize),r=Math.floor(t/this._bucketSize);return s<0||s>=this._rowsLength||r<0||r>=this._colsLength||this._grid[r*this._colsLength+s]>=this._elementsPerBucket}markUsed(e,t){const s=Math.floor(e/this._bucketSize),r=Math.floor(t/this._bucketSize);this._grid[r*this._colsLength+s]+=1}reset(){this._grid=this._initGrid()}_initGrid(){return new Uint8Array(this._rowsLength*this._colsLength)}}},67766:function(e,t,s){var r=s(36663),i=(s(39994),s(13802),s(7283),s(81977)),o=s(66645),n=(s(3466),s(12173),s(51876),s(53280));let a=class extends n.r{initialize(){}destroy(){}get supportsTileUpdates(){return!1}get spatialReference(){const e=this.get("tileStore.tileScheme.spatialReference");return e&&e.toJSON()||null}};(0,r._)([(0,i.Cb)({readOnly:!0})],a.prototype,"supportsTileUpdates",null),(0,r._)([(0,i.Cb)({constructOnly:!0})],a.prototype,"remoteClient",void 0),(0,r._)([(0,i.Cb)({constructOnly:!0})],a.prototype,"service",void 0),(0,r._)([(0,i.Cb)()],a.prototype,"spatialReference",null),(0,r._)([(0,i.Cb)({constructOnly:!0})],a.prototype,"tileInfo",void 0),(0,r._)([(0,i.Cb)({constructOnly:!0})],a.prototype,"tileStore",void 0),a=(0,r._)([(0,o.j)("esri.views.2d.layers.features.processors.BaseProcessor")],a);var l=a;t.Z=l},90263:function(e,t,s){s.r(t);var r=s(36663),i=s(39994),o=s(61681),n=s(13802),a=(s(7283),s(81977),s(66645)),l=(s(70375),s(3466),s(12173),s(51876),s(78668)),c=s(14685),h=s(27281),d=s(14266),u=s(83823),f=s(23045),_=s(77801),g=s(18018),y=s(10289),m=s(64204),p=s(57276),b=s(40576),k=s(69366),w=s(61502),C=s(67766);function v(e){const t=e.message,s={message:{data:{},tileKey:t.tileKey},transferList:new Array};for(const r in t.data){const e=t.data[r];if(s.message.data[r]=null,(0,o.pC)(e)){const t=e.stride,i=e.indices.slice(0),n=e.vertices.slice(0),a=e.records.slice(0),l={stride:t,indices:i,vertices:n,records:a,metrics:(0,o.Po)(e.metrics,(e=>e.slice(0)))};s.transferList.push(i,n,a),s.message.data[r]=l}}return s}n.Z.getLogger("esri.views.2d.layers.features.processors.SymbolProcessor");let M=class extends C.Z{constructor(){super(...arguments),this.type="symbol",this._matchers={feature:null,aggregate:null},this._bufferData=new Map}initialize(){this.handles.add([this.tileStore.on("update",this.onTileUpdate.bind(this))])}destroy(){}get supportsTileUpdates(){return!0}async update(e,t){const s=t.schema.processors[0];if("symbol"!==s.type)return;const r=(0,h.Hg)(this._schema,s);(0,h.uD)(r,"mesh")&&((0,i.Z)("esri-2d-update-debug")&&console.debug("Applying Update - Processor:",r),e.mesh=!0,e.why.mesh.push("Symbology changed"),this._schema=s,this._factory=this._createFactory(s),this._factory.update(s,this.tileStore.tileScheme.tileInfo))}onTileMessage(e,t,s,r){return(0,l.k_)(r),this._onTileData(e,t,s,r)}onTileClear(e){return this._bufferData.delete(e.key.id),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:e.id,data:{clear:!0}})}onTileError(e,t,s){const r=s.signal,i={tileKey:e.id,error:t};return this.remoteClient.invoke("tileRenderer.onTileError",i,{signal:r})}onTileUpdate(e){for(const t of e.removed)this._bufferData.has(t.key.id)&&(this._bufferData.get(t.key.id).forEac
1h((e=>{const t=new Set;(0,_.Z_)((s=>{const r=e.message.data[s];if((0,o.pC)(r)){const e=g.$.from(r.records).getCursor();for(;e.next();)t.add(e.id)}}));const s=e.message.tileKey;return this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:s,data:{type:"update",addOrUpdate:null}})})),this._bufferData.delete(t.key.id));for(const t of e.added)this._bufferData.forEach((e=>{for(const s of e)s.message.tileKey===t.id&&this._updateTileMesh("append",t,v(s),[],!1,!1,null)}))}_addBufferData(e,t){this._bufferData.has(e)||this._bufferData.set(e,[]),this._bufferData.get(e).push(v(t))}_createFactory(e){const{geometryType:t,objectIdField:s,fields:r}=this.service,i={geometryType:t,fields:r,spatialReference:c.Z.fromJSON(this.spatialReference)},n=new k.W(((e,t)=>this.remoteClient.invoke("tileRenderer.getMaterialItems",e,t)),!1),{matcher:a,aggregateMatcher:l}=e.mesh;return this._store=n,this._matchers.feature=(0,p.f)(a,n,i),this._matchers.aggregate=(0,o.Po)(l,(e=>(0,p.f)(e,n,i))),new w.j(t,s,n)}async _onTileData(e,t,s,r){const{type:i,addOrUpdate:n,remove:a}=t,c=t.end;if(!n){const t={type:i,addOrUpdate:null,remove:a,clear:!1,end:c};return this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:e.id,data:t},r)}const h=this._processFeatures(e,n,s,r);try{const s=await h;if((0,o.Wi)(s)){const t={type:i,addOrUpdate:null,remove:a,clear:!1,end:c};return this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:e.id,data:t},r)}for(const t of s)e.key.id!==t.message.tileKey&&this._addBufferData(e.key.id,t);await(0,l.$6)(s.map((s=>{const o=e.key.id===s.message.tileKey,n=o?t.remove:[],a=o&&t.end;return this._updateTileMesh(i,e,s,n,a,t.clear,r.signal)})))}catch(d){this._handleError(e,d,r)}}async _updateTileMesh(e,t,s,r,i,n,a){const c=e,h=s.message.tileKey;h!==t.key.id&&(i=!1);const d=(0,o.Po)(s,(e=>e.message)),u=(0,o.Po)(s,(e=>e.transferList))||[],f={type:c,addOrUpdate:d,remove:r,clear:!1,end:i},_={transferList:(0,o.Wg)(u)||[],signal:a};return(0,l.k_)(_),this.remoteClient.invoke("tileRenderer.onTileData",{tileKey:h,data:f},_)}async _processFeatures(e,t,s,r){if((0,o.Wi)(t)||!t.hasFeatures)return null;const i={transform:e.transform,hasZ:!1,hasM:!1},n=this._factory,a={viewingMode:"",scale:e.scale},c=await this._matchers.feature,h=await this._matchers.aggregate;(0,l.k_)(r);const d=this._getLabelInfos(e,t);return await n.analyze(t.getCursor(),c,h,i,a),(0,l.k_)(r),this._writeFeatureSet(e,t,i,d,n,s)}_writeFeatureSet(e,t,s,r,i,n){const a=t.getApproximateSize(),l="simple"===this._schema.mesh.matcher.type&&this._schema.mesh.matcher.isDotDensity,c=new m._(e.key.id,{features:a,records:a,metrics:0},l,n,!0),h={viewingMode:"",scale:e.scale},d=t.getCursor();for(;d.next();)try{const t=d.getDisplayId(),n=(0,o.pC)(r)?r.get(t):null;i.writeCursor(c,d,s,h,e.level,n)}catch(f){}const u=e.tileInfoView.tileInfo.isWrappable;return c.serialize(u)}_handleError(e,t,s){if(!(0,l.D_)(t)){const r={tileKey:e.id,error:t.message};return this.remoteClient.invoke("tileRenderer.onTileError",r,{signal:s.signal})}}_getLabelInfos(e,t){const s=this._schema.mesh.labels,r=(0,o.Po)(s,(t=>t.filter((t=>function(e,t){return(!e.minScale||e.minScale>=t)&&(!e.maxScale||e.maxScale<=t)}(t,e.scale)))));if((0,o.Wi)(r)||0===r.length)return null;const i=new Map,n=(new f.Ao(d.wz),t.getCursor());for(;n.next();){const e=n.getDisplayId(),t=[],s=(0,y.nE)(e),o=s&&1!==n.readAttribute("cluster_count")?"aggregate":"feature";for(const i of r){if(i.target!==o)continue;const r=n.getStorage(),a=s&&"feature"===o?r.getComputedStringAtIndex(n.readAttribute("referenceId"),i.fieldIndex):r.getComputedStringAtIndex(e,i.fieldIndex);if(!a)continue;const l=(0,u.E)(a.toString()),c=l[0],h=l[1];this._store.getMosaicItem(i.symbol,(0,b._)(c)).then((e=>{t[i.index]={glyphs:e.glyphMosaicItems,rtl:h,index:i.index}}))}i.set(e,t)}return i}_shouldDiscard(e,t){switch(this.service.geometryType){case"esriGeometryPoint":{const s=t.readLegacyPointGeometry();return!s||e.checkOverlap(s.x,s.y)}case"esriGeometryPolygon":{const s=t.readLegacyCentroid();return!s||e.checkOverlap(s.x,s.y)}default:return!1}}_markUsed(e,t){switch(this.service.geometryType){case"esriGeometryPoint":{const{x:s,y:r}=t.readLegacyPointGeometry();return e.markUsed(s,r)}case"esriGeometryPolygon":{const{x:s,y:r}=t.readLegacyCentroid();return e.markUsed(s,r)}}}};M=(0,r._)([(0,a.j)("esri.views.2d.layers.features.processors.SymbolProcessor")],M);var S=M;t.default=S}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.