PageSourceSearch

https://tapped-demo-csun-cgst.netlify.app/tapped/_next/static/chunks/3931.88f5459c8833fb02.js

js tapped-demo-csun-cgst.netlify.app collected 2026-10-03 11:31:49 UTC 11,509 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3931],{81739:function(e,t,r){var s=r(36663),o=r(81977),i=r(66645),l=r(18302),n=r(44584);let a=class extends l.Z{constructor(e){super(e),this._handles=new n.Z,this.root=null}initialize(){this._handles.add(this.rootCollectionNames.map((e=>this.watch("root."+e,(()=>this.updateCollections()),!0)))),this.updateCollections()}destroy(){this.root=null,this.refresh(),this._handles.destroy(),this._handles=null}updateCollections(){this._collections=this.rootCollectionNames.map((e=>this.get("root."+e))).filter((e=>null!=e)),this.refresh()}refresh(){const e=this._handles;e.remove("collections");const t=new Array;let r=0;for(const s of this._collections)r=this._processCollection(t,r,s);this.splice(r,this.length);for(const s of t)e.add(s.on("after-changes",(()=>this.refresh())),"collections")}_createNewInstance(e){return new l.Z(e)}_processCollection(e,t,r){return r?(e.push(r),r.forEach((r=>{if(r){if(!this.itemFilterFunction||this.itemFilterFunction(r)){const e=this.indexOf(r,t);e>=0?e!==t&&this.reorder(r,t):this.add(r,t),++t}this.getChildrenFunction&&(t=this._processCollection(e,t,this.getChildrenFunction(r)))}})),t):t}};(0,s._)([(0,o.Cb)()],a.prototype,"rootCollectionNames",void 0),(0,s._)([(0,o.Cb)()],a.prototype,"root",void 0),(0,s._)([(0,o.Cb)()],a.prototype,"getChildrenFunction",void 0),(0,s._)([(0,o.Cb)()],a.prototype,"itemFilterFunction",void 0),a=(0,s._)([(0,i.j)("esri.core.CollectionFlattener")],a);var u=a;t.Z=u},83931:function(e,t,r){r.r(t),r.d(t,{default:function(){return N}});var s,o=r(36663),i=(r(39994),r(61681)),l=(r(13802),r(7283)),n=r(81977),a=r(34248),u=r(66645),y=r(39835),p=r(3466),h=(r(12173),r(51876),r(14685)),c=r(91772),f=(r(91957),r(18302)),d=r(81739),b=r(76136),m=r(63314),v=r(23072),_=r(16908),g=r(27668),C=r(18241),S=r(67827),w=r(95874),E=r(91103),k=r(21130),x=r(69236),F=r(49004),I=r(31355),O=r(68309),P=r(15071);let G=s=class extends(I.Z.EventedMixin((0,F.eC)(O.Z))){constructor(){super(...arguments),this._sublayersHandles=null,this.description=null,this.id=null,this.networkLink=null,this.title=null,this.sourceJSON=null,this.fullExtent=null}initialize(){(0,P.N1)(this,"networkLink").then((()=>(0,P.LR)(this,"visible"))).then((()=>this.load()))}load(e){if(!this.networkLink)return;if(this.networkLink.viewFormat)return;const t=(0,i.pC)(e)?e.signal:null,r=this._fetchService(this._get("networkLink").href,t).then((e=>{const t=(0,E.lm)(e.sublayers);this.fullExtent=c.Z.fromJSON(t),this.sourceJSON=e;const r=(0,l.se)(f.Z.ofType(s),(0,E.j5)(s,e));this.sublayers?this.sublayers.addMany(r):this.sublayers=r,this.layer.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")}));return this.addResolvingPromise(r),Promise.resolve(this)}set sublayers(e){const t=this._get("sublayers");t&&(t.forEach((e=>{e.parent=null,e.layer=null})),this._sublayersHandles.forEach((e=>e.remove())),this._sublayersHandles=null),e&&(e.forEach((e=>{e.parent=this,e.layer=this.layer})),this._sublayersHandles=[e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this.layer})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))]),this._set("sublayers",e)}castSublayers(e){return(0,l.se)(f.Z.ofType(s),e)}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((t=>t.layer=e))}_fetchService(e,t){return(0,E.CS)(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then((e=>(0,E.Cw)(e.data)))}};(0,o._)([(0,n.Cb)()],G.prototype,"description",void 0),(0,o._)([(0,n.Cb)()],G.prototype,"id",void 0),(0,o._)([(0,n.Cb)({readOnly:!0,value:null})],G.prototype,"networkLink",void 0),(0,o._)([(0,n.Cb)({json:{write:{allowNull:!0}}})],G.prototype,"parent",void 0),(0,o._)([(0,n.Cb)({value:null,json:{write:{allowNull:!0}}})],G.prototype,"sublayers",null),(0,o._)([(0,x.p)("sublayers")],G.prototype,"castSublayers",null),(0,o._)([(0,n.Cb)({value:null,json:{read:{source:"name",reader:e=>(0,k.Cb)(e)}}})],G.prototype,"title",void 0),(0,o._)([(0,n.Cb)({value:!0})],G.prototype,"visible",null),(0,o._)([(0,a.r)("visible",["visibility"])],G.prototype,"readVisible",null),(0,o._)([(0,n.Cb)()],G.prototype,"sourceJSON",void 0),(0,o._)([(0,n.Cb)({value:null})],G.prototype,"layer",null),(0,o._)([(0,n.Cb)({type:c.Z})],G.prototype,"fullExtent",void 0),G=s=(0,o._)([(0,u.j)("esri.layers.support.KMLSublayer")],G);var L=G;const Z=["kml","xml"];let M=class extends((0,g.h)((0,S.Q)((0,w.M)((0,_.q)((0,C.I)((0,m.R)(b.Z))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new d.Z({root:this,rootCollectionNames:["sublayers"],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=h.Z.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.watch("sublayers",((e,t)=>
1{t&&t.forEach((e=>{e.parent=null,e.layer=null})),e&&e.forEach((e=>{e.parent=this,e.layer=this}))}),!0),this.on("sublayer-update",(()=>this.notifyChange("fullExtent")))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,r){return(0,E.j5)(L,t,r,this._visibleFolders)}writeSublayers(e,t){const r=[],s=e.toArray();for(;s.length;){const e=s[0];e.networkLink||(e.visible&&r.push(e.id),e.sublayers&&s.push(...e.sublayers.toArray())),s.shift()}t.visibleFolders=r}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,p.vt)(this.url,Z)||"KML":e||""}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],r=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(r))};return e&&e.forEach(r),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=(0,i.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"]},e).then((()=>this._fetchService(t)))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=await Promise.resolve().then((()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:(0,E.CS)(this.url,this.outSpatialReference,this.refreshInterval,e))),r=(0,E.Cw)(t.data);r&&this.read(r,{origin:"service"})}_recomputeFullExtent(){let e=null;this.extent&&(e=this.extent.clone());const t=r=>{if(r.sublayers)for(const s of r.sublayers.items)t(s),s.visible&&s.fullExtent&&(e?e.union(s.fullExtent):e=s.fullExtent.clone())};return t(this),e}};(0,o._)([(0,n.Cb)({readOnly:!0})],M.prototype,"allSublayers",void 0),(0,o._)([(0,n.Cb)({type:h.Z})],M.prototype,"outSpatialReference",void 0),(0,o._)([(0,n.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],M.prototype,"path",void 0),(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1,write:!1}})],M.prototype,"legendEnabled",void 0),(0,o._)([(0,n.Cb)({type:["show","hide","hide-children"]})],M.prototype,"listMode",void 0),(0,o._)([(0,n.Cb)({type:["KML"]})],M.prototype,"operationalLayerType",void 0),(0,o._)([(0,n.Cb)({})],M.prototype,"resourceInfo",void 0),(0,o._)([(0,n.Cb)({type:f.Z.ofType(L),json:{write:{ignoreOrigin:!0}}})],M.prototype,"sublayers",void 0),(0,o._)([(0,a.r)(["web-map","portal-item"],"sublayers",["visibleFolders"])],M.prototype,"readSublayersFromItemOrWebMap",null),(0,o._)([(0,a.r)("service","sublayers",["sublayers"])],M.prototype,"readSublayers",null),(0,o._)([(0,y.c)("sublayers")],M.prototype,"writeSublayers",null),(0,o._)([(0,n.Cb)({readOnly:!0,json:{read:!1}})],M.prototype,"type",void 0),(0,o._)([(0,n.Cb)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],M.prototype,"title",null),(0,o._)([(0,n.Cb)(v.HQ)],M.prototype,"url",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],M.prototype,"visibleSublayers",null),(0,o._)([(0,n.Cb)({type:c.Z})],M.prototype,"extent",void 0),(0,o._)([(0,n.Cb)()],M.prototype,"fullExtent",null),M=(0,o._)([(0,u.j)("esri.layers.KMLLayer")],M);var N=M},91103:function(e,t,r){r.d(t,{lm:function(){return g},CS:function(){return b},Yu:function(){return _},Cw:function(){return d},j5:function(){return m}});var s=r(67134),o=r(51366),i=r(3466),l=r(14685),n=r(79880),a=r(66636),u=r(88256),y=r(11509),p=r(72506),h=r(41017),c=r(37116);const f={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function d(e){const t=e.folders||[],r=t.slice(),o=new Map,i=new Map,l=new Map,n=new Map,a=new Map,u={esriGeometryPoint:i,esriGeometryPolyline:l,esriGeometryPolygon:n};(e.featureCollection&&e.featureCollection.layers||[]).forEach((e=>{const t=(0,s.d9)(e);t.featureSet.features=[];const r=e.featureSet.geometryType;o.set(r,t);const a=e.layerDefinition.objectIdField;"esriGeometryPoint"===r?v(i,a,e.featureSet.features):"esriGeometryPolyline"===r?v(l,a,e.featureSet.features):"esriGeometryPolygon"===r&&v(n,a,e.featureSet.features)})),e.groundOverlays&&e.groundOverlays.forEach((e=>{a.set(e.id,e)})),t.forEach((t=>{t.networkLinkIds.forEach((s=>{const o=function(e,t,r){const s=function(e,t){let r;return t.some((t=>
1t.id===e&&(r=t,!0))),r}(e,r);return s&&(s.parentFolderId=t,s.networkLink=s),s}(s,t.id,e.networkLinks);o&&r.push(o)}))})),r.forEach((e=>{e.featureInfos&&(e.points=(0,s.d9)(o.get("esriGeometryPoint")),e.polylines=(0,s.d9)(o.get("esriGeometryPolyline")),e.polygons=(0,s.d9)(o.get("esriGeometryPolygon")),e.mapImages=[],e.featureInfos.map((t=>{switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const r=u[t.type].get(t.id);r&&e[f[t.type]].featureSet.features.push(r);break}case"GroundOverlay":{const r=a.get(t.id);r&&e.mapImages.push(r);break}}})),e.fullExtent=g([e]))}));const y=g(r);return{folders:t,sublayers:r,extent:y}}function b(e,t,r,s){const l=u.id&&u.id.findCredential(e);e=(0,i.fl)(e,{token:l&&l.token});const n=o.Z.kmlServiceUrl;return(0,y.default)(n,{query:{url:e,model:"simple",folders:"",refresh:0!==r||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:s})}function m(e,t,r=null,s=[]){const o=[],i={},l=t.sublayers,n=t.folders.map((e=>e.id));return l.forEach((t=>{const l=new e;if(r?l.read(t,r):l.read(t),s.length&&n.indexOf(l.id)>-1&&(l.visible=-1!==s.indexOf(l.id)),i[t.id]=l,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=i[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers.unshift(l)}else o.unshift(l)})),o}function v(e,t,r){r.forEach((r=>{e.set(r.attributes[t],r)}))}async function _(e){const t=h.default.fromJSON(e.featureSet).features,r=e.layerDefinition,s=(0,p.im)(r.drawingInfo.renderer),o=a.Z.fromJSON(e.popupInfo),i=[];for(const l of t){const e=await s.getSymbolAsync(l);l.symbol=e,l.popupTemplate=o,l.visible=!0,i.push(l)}return i}function g(e){const t=(0,c.Ue)(),r=(0,c.Ue)(c.Gv);for(const s of e){if(s.polygons&&s.polygons.featureSet&&s.polygons.featureSet.features)for(const e of s.polygons.featureSet.features)(0,n.Yg)(t,e.geometry),(0,c.TC)(r,t);if(s.polylines&&s.polylines.featureSet&&s.polylines.featureSet.features)for(const e of s.polylines.featureSet.features)(0,n.Yg)(t,e.geometry),(0,c.TC)(r,t);if(s.points&&s.points.featureSet&&s.points.featureSet.features)for(const e of s.points.featureSet.features)(0,n.Yg)(t,e.geometry),(0,c.TC)(r,t);if(s.mapImages)for(const e of s.mapImages)(0,n.Yg)(t,e.extent),(0,c.TC)(r,t)}return(0,c.fS)(r,c.Gv)?null:{xmin:r[0],ymin:r[1],zmin:r[2],xmax:r[3],ymax:r[4],zmax:r[5],spatialReference:l.Z.WGS84}}}}]);

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.