@arcgis/core 4.34.0-next.17 → 4.34.0-next.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{400a4c9fa62964f8fa1d.js → 1f48d6c76f0014064eca.js} +1 -1
- package/assets/esri/core/workers/chunks/3cf31e51266f40072f71.js +1 -0
- package/assets/esri/core/workers/chunks/4325fdd96d9ea344132e.js +1 -0
- package/assets/esri/core/workers/chunks/68374cf42a069436830d.js +1 -0
- package/assets/esri/core/workers/chunks/6f8de923519bb16af8ba.js +1 -0
- package/assets/esri/core/workers/chunks/85753105268aeff84e69.js +1 -0
- package/assets/esri/core/workers/chunks/8637b9cb30170ac4eae2.js +1 -0
- package/assets/esri/core/workers/chunks/872f151a3a2bc9052be0.js +1 -0
- package/assets/esri/core/workers/chunks/8b4a35e3ed39d8be3394.js +1 -0
- package/assets/esri/core/workers/chunks/{d33a5d79f2163ad62b1d.js → 9965961bad09910f577b.js} +1 -1
- package/assets/esri/core/workers/chunks/9d499a37b960273c3f84.js +1 -0
- package/assets/esri/core/workers/chunks/a507192771e5f4f82973.js +1 -0
- package/assets/esri/core/workers/chunks/a9e1caf05c81055ae194.js +1 -0
- package/assets/esri/core/workers/chunks/{1415d4e2f5f3193be004.js → aa4ae0e54a0507e8dd0f.js} +1 -1
- package/assets/esri/core/workers/chunks/d3bfd0c382c2f39a787b.js +1 -0
- package/assets/esri/core/workers/chunks/d6df12bed626d56cd6b2.js +1 -0
- package/assets/esri/core/workers/chunks/e0146db608959ead9c97.js +1 -0
- package/assets/esri/core/workers/chunks/f4442a2b40e44f90b461.js +1 -0
- package/assets/esri/core/workers/chunks/{fa5715ca3ce95d005b0a.js → faa892ad4cc8a90b6c79.js} +1 -1
- package/assets/esri/themes/base/widgets/_Legend.scss +2 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
- package/chunks/sphere.js +1 -1
- package/config.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/sql.js +1 -1
- package/geometry/spatialReferenceEllipsoidUtils.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +38 -33
- package/kernel.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/VectorTileLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/orientedImagery/transformations/updateElevation.js +1 -1
- package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/smartMapping/renderers/support/spikeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleRepository.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/PointToPointAnimationController.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/support/drapedUtils.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/Legend/styles/support/sizeRampUtils.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/support/GridControls.js +1 -1
- package/assets/esri/core/workers/chunks/254c4f7e277ae9915dce.js +0 -1
- package/assets/esri/core/workers/chunks/273beed633cc37416ad7.js +0 -1
- package/assets/esri/core/workers/chunks/49a57dc1e6d1048fa949.js +0 -1
- package/assets/esri/core/workers/chunks/500fb5f615f0c1db1b66.js +0 -1
- package/assets/esri/core/workers/chunks/52239e958a82ebcd2e7a.js +0 -1
- package/assets/esri/core/workers/chunks/78a57f5aeb277b84b3da.js +0 -1
- package/assets/esri/core/workers/chunks/802c6b1a6cb9264b8e4f.js +0 -1
- package/assets/esri/core/workers/chunks/88b1214c284c2ec7d51b.js +0 -1
- package/assets/esri/core/workers/chunks/932808e485f305b6a26a.js +0 -1
- package/assets/esri/core/workers/chunks/beb01d400f1aa089d2dc.js +0 -1
- package/assets/esri/core/workers/chunks/cfc5e0ec9b0290407383.js +0 -1
- package/assets/esri/core/workers/chunks/d2139307f62ea8bf999a.js +0 -1
- package/assets/esri/core/workers/chunks/ddb66fe6fcd0764daa7a.js +0 -1
- package/assets/esri/core/workers/chunks/eac7af86166c09c6a9be.js +0 -1
- package/assets/esri/core/workers/chunks/ec49e2849766402ad5c7.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8916],{8916:(e,t,r)=>{r.r(t),r.d(t,{_checkAuthentication:()=>lr,_esriRequestWrapper:()=>dr,_fetchWrapper:()=>ir,_getClientDataCacheCopy:()=>Ct,_setMaxQueryParsingDurationForTesting:()=>hr,_submitJobWrapper:()=>sr,clearClientDataCache:()=>ar,clientDataCache:()=>jt,executeAddGraphFieldIndex:()=>zt,executeAddGraphProperties:()=>Lt,executeAddNamedTypes:()=>Ft,executeApplyEdits:()=>Ot,executeDeleteGraphFieldIndex:()=>Jt,executeDeleteGraphProperty:()=>$t,executeDeleteNamedType:()=>Zt,executeFindPaths:()=>nr,executeFindPathsAsynchronous:()=>rr,executeQuery:()=>Kt,executeQueryStreaming:()=>Yt,executeSearch:()=>Bt,executeSearchStreaming:()=>Qt,executeUpdateGraphProperty:()=>qt,executeUpdateNamedType:()=>Ut,executeUpdateSearchIndex:()=>Vt,fetchAllClientDataKeys:()=>Ht,fetchAsynchronousFindPathsResultData:()=>or,fetchClientDataAtKeys:()=>Wt,fetchKnowledgeGraph:()=>Xt,kgRestServices:()=>Nt,refreshDataModel:()=>er,refreshServiceDefinition:()=>tr});var n,o=r(70333),a=r(78888),i=r(49186),s=r(53966),d=r(74887),l=r(91075),p=r(16930),u=r(90237),c=r(69622),y=r(10107),h=r(56507),g=(r(44208),r(87811),r(40608)),f=r(5443);let _=n=class extends c.A{constructor(e){super(e),this.outSpatialReference=null,this.processExtent=null,this.processSpatialReference=null,this.returnColumnName=!1,this.returnFeatureCollection=!1,this.returnM=!1,this.returnZ=!1}static from(e){return(0,h.PZ)(n,e)}};(0,u._)([(0,y.MZ)({type:p.A})],_.prototype,"outSpatialReference",void 0),(0,u._)([(0,y.MZ)({type:f.A})],_.prototype,"processExtent",void 0),(0,u._)([(0,y.MZ)({type:p.A})],_.prototype,"processSpatialReference",void 0),(0,u._)([(0,y.MZ)({nonNullable:!0})],_.prototype,"returnColumnName",void 0),(0,u._)([(0,y.MZ)({nonNullable:!0})],_.prototype,"returnFeatureCollection",void 0),(0,u._)([(0,y.MZ)({nonNullable:!0})],_.prototype,"returnM",void 0),(0,u._)([(0,y.MZ)({nonNullable:!0})],_.prototype,"returnZ",void 0),_=n=(0,u._)([(0,g.$)("esri.rest.geoprocessor.GPOptions")],_);var w=r(17136),m=r(20437),v=r(25482);let b=class extends v.A{constructor(){super(...arguments),this.extent=null,this.height=null,this.href=null,this.opacity=1,this.rotation=0,this.scale=null,this.visible=!0,this.width=null}};(0,u._)([(0,y.MZ)({type:f.A})],b.prototype,"extent",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"height",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"href",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"opacity",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"rotation",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"scale",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"visible",void 0),(0,u._)([(0,y.MZ)()],b.prototype,"width",void 0),b=(0,u._)([(0,g.$)("esri.layers.support.MapImage")],b);var T=r(2272),G=r(93223),A=r(2073);let M=class extends v.A{constructor(e){super(e),this.area=0,this.units=null}};(0,u._)([(0,y.MZ)({json:{write:!0}})],M.prototype,"area",void 0),(0,u._)([(0,G.e)(A.UO)],M.prototype,"units",void 0),M=(0,u._)([(0,g.$)("esri.rest.support.ArealUnit")],M);let P=class extends v.A{constructor(e){super(e),this.itemId=null,this.url=null}};(0,u._)([(0,y.MZ)({type:String,json:{read:{source:"itemID"},write:{target:"itemID"}}})],P.prototype,"itemId",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],P.prototype,"url",void 0),P=(0,u._)([(0,g.$)("esri.rest.support.DataFile")],P);var I=r(22671);let S=class extends v.A{constructor(e){super(e),this.distance=0,this.units=null}};(0,u._)([(0,y.MZ)({json:{write:!0}})],S.prototype,"distance",void 0),(0,u._)([(0,G.e)(A.Y8)],S.prototype,"units",void 0),S=(0,u._)([(0,g.$)("esri.rest.support.LinearUnit")],S);var E=r(66552);const R="multi-value-",x=new E.J({GPArealUnit:"areal-unit",GPBoolean:"boolean",GPComposite:"composite",GPDataFile:"data-file",GPDate:"date",GPDouble:"double",GPFeatureRecordSetLayer:"feature-record-set-layer",Field:"field",GPLinearUnit:"linear-unit",GPLong:"long",GPRasterData:"raster-data",GPRasterDataLayer:"raster-data-layer",GPRecordSet:"record-set",GPString:"string",GPValueTable:"value-table","GPMultiValue:GPArealUnit":`${R}areal-unit`,"GPMultiValue:GPBoolean":`${R}boolean`,"GPMultiValue:GPComposite":`${R}composite`,"GPMultiValue:GPDataFile":`${R}data-file`,"GPMultiValue:GPDate":`${R}date`,"GPMultiValue:GPDouble":`${R}double`,"GPMultiValue:GPFeatureRecordSetLayer":`${R}feature-record-set-layer`,"GPMultiValue:Field":`${R}field`,"GPMultiValue:GPLinearUnit":`${R}linear-unit`,"GPMultiValue:GPLong":`${R}long`,"GPMultiValue:GPRasterData":`${R}raster-data`,"GPMultiValue:GPRasterDataLayer":`${R}raster-data-layer`,"GPMultiValue:GPRecordSet":`${R}record-set`,"GPMultiValue:GPString":`${R}string`});let k=class extends v.A{constructor(e){super(e),this.dataType=null,this.paramName=null,this.value=null}};(0,u._)([(0,G.e)(x,{ignoreUnknown:!1})],k.prototype,"dataType",void 0),(0,u._)([(0,y.MZ)()],k.prototype,"paramName",void 0),(0,u._)([(0,y.MZ)()],k.prototype,"value",void 0),k=(0,u._)([(0,g.$)("esri.rest.support.ParameterValue")],k);var D=r(36005);let j=class extends v.A{constructor(e){super(e),this.format=null,this.itemId=null,this.type=null,this.url=null}readType(e){return"ImageService"===e?"image-service":null}};async function C(e,t){switch(e){case"areal-unit":return M.fromJSON(t);case"boolean":case"double":case"long":case"string":case"value-table":return t;case"date":return new Date(t);case"data-file":return P.fromJSON(t);case"linear-unit":return S.fromJSON(t);case"feature-record-set-layer":if("url"in t)return P.fromJSON(t);if("layerDefinition"in t){const e=new(0,(await Promise.all([r.e(6131),r.e(8219),r.e(5715),r.e(13),r.e(1214),r.e(9953),r.e(1956),r.e(4796),r.e(3029),r.e(4111),r.e(8506),r.e(3600),r.e(3651)]).then(r.bind(r,13600))).default),{layerDefinition:n,featureSet:o}=t;return e.read({layerDefinition:n,featureSet:o},{origin:"portal-item"}),e.spatialReference=p.A.fromJSON(o.spatialReference??n.spatialReference??n.extent.spatialReference),e}return I.A.fromJSON(t);case"record-set":return"url"in t?P.fromJSON(t):I.A.fromJSON(t);case"raster-data":case"raster-data-layer":return"mapImage"in t?b.fromJSON(t.mapImage):j.fromJSON(t);case"field":return m.A.fromJSON(t)}}async function N(e){const t=x.fromJSON(e.dataType),{paramName:r}=e,n=function(e){return e.startsWith(R)}(t)?await async function(e,t){const r=function(e){return e.replace(R,"")}(e),n="composite"===r?t.map((e=>C(x.fromJSON(e.dataType),e.value))):t.map((e=>C(r,e)));return Promise.all(n)}(t,e.value):await C(t,e.value);return new k({dataType:t,paramName:r,value:n})}function O(e,t,r){for(const t in e){const r=e[t];Array.isArray(r)?e[t]=JSON.stringify(r.map((e=>O({item:e},!0).item))):r instanceof Date&&(e[t]=r.getTime())}return(0,T.lF)(e,t,r)}(0,u._)([(0,y.MZ)()],j.prototype,"format",void 0),(0,u._)([(0,y.MZ)({json:{name:"itemID",write:!0}})],j.prototype,"itemId",void 0),(0,u._)([(0,y.MZ)()],j.prototype,"type",void 0),(0,u._)([(0,D.w)("type")],j.prototype,"readType",null),(0,u._)([(0,y.MZ)({json:{write:!0}})],j.prototype,"url",void 0),j=(0,u._)([(0,g.$)("esri.rest.support.RasterData")],j);var F,Z=r(37807);const U=(0,E.O)()({esriJobCancelled:"job-cancelled",esriJobCancelling:"job-cancelling",esriJobDeleted:"job-deleted",esriJobDeleting:"job-deleting",esriJobTimedOut:"job-timed-out",esriJobExecuting:"job-executing",esriJobFailed:"job-failed",esriJobNew:"job-new",esriJobSubmitted:"job-submitted",esriJobSucceeded:"job-succeeded",esriJobWaiting:"job-waiting"},{ignoreUnknown:!1}),L=1e3;let $=class extends v.A{static{F=this}constructor(e){super(e),this.jobId=null,this.jobStatus=null,this.messages=null,this.progress=null,this.requestOptions=null,this.sourceUrl=null,this._cancelJobTimer=void 0,this._jobCompletionTimer=void 0}async cancelJob(e){const{jobId:t,sourceUrl:r}=this,{path:n}=(0,T.Dl)(r),o={...this.requestOptions,...e,query:{f:"json"}},i=`${n}/jobs/${t}/cancel`,{data:s}=await(0,a.A)(i,o),{messages:l,jobStatus:p,progress:u}=F.fromJSON(s);return this.set({messages:l,jobStatus:p,progress:u}),"job-cancelled"===p?this:new Promise(((t,r)=>{(0,d.u7)(o.signal,(()=>{this.clearCancelJobTimer(),r((0,d.NK)())})),this.clearCancelJobTimer();const n=()=>{this._cancelJobTimer||r((0,d.NK)()),this.checkJobStatus(e).then((({jobStatus:e})=>{switch(e){case"job-cancelling":default:this._cancelJobTimer=setTimeout(n,L);break;case"job-deleted":case"job-deleting":case"job-executing":case"job-failed":case"job-new":case"job-submitted":case"job-succeeded":case"job-timed-out":case"job-waiting":r(this);break;case"job-cancelled":t(this)}})).catch((e=>{r(e)}))};this._cancelJobTimer=setTimeout(n,L)}))}destroy(){clearInterval(this._cancelJobTimer),clearInterval(this._jobCompletionTimer)}async checkJobStatus(e){const{path:t}=(0,T.Dl)(this.sourceUrl),r={...this.requestOptions,...e,query:{f:"json"}},n=`${t}/jobs/${this.jobId}`,{data:o}=await(0,a.A)(n,r),{messages:i,jobStatus:s,progress:d}=F.fromJSON(o);return this.set({messages:i,jobStatus:s,progress:d}),this}async fetchResultData(e,t,r){t=_.from(t||{});const{returnColumnName:n,returnFeatureCollection:o,returnM:i,returnZ:s,outSpatialReference:d}=t,{path:l}=(0,T.Dl)(this.sourceUrl),p=O({returnColumnName:n||null,returnFeatureCollection:o||null,returnM:i||null,returnZ:s||null,outSR:d,returnType:"data",f:"json"},null),u={...this.requestOptions,...r,query:p},c=`${l}/jobs/${this.jobId}/results/${e}`,{data:y}=await(0,a.A)(c,u);return N(y)}async fetchResultImage(e,t,r){const{path:n}=(0,T.Dl)(this.sourceUrl),o=O({...t.toJSON(),f:"json"}),i={...this.requestOptions,...r,query:o},s=`${n}/jobs/${this.jobId}/results/${e}`,{data:d}=await(0,a.A)(s,i);return N(d)}async fetchResultMapImageLayer(){const{path:e}=(0,T.Dl)(this.sourceUrl),t=e.indexOf("/GPServer/"),n=`${e.slice(0,Math.max(0,t))}/MapServer/jobs/${this.jobId}`;return new(0,(await Promise.all([r.e(6131),r.e(8219),r.e(5715),r.e(13),r.e(1214),r.e(1956),r.e(4796),r.e(4111),r.e(364),r.e(5962),r.e(7656),r.e(8407)]).then(r.bind(r,7656))).default)({url:n})}async waitForJobCompletion(e={}){const{interval:t=L,signal:r,statusCallback:n}=e;return new Promise(((e,o)=>{(0,d.u7)(r,(()=>{this.clearJobCompletionTimer(),o((0,d.NK)())})),this.clearJobCompletionTimer();const a=()=>{this._jobCompletionTimer||o((0,d.NK)()),this.checkJobStatus().then((({jobStatus:r})=>{switch(r){case"job-succeeded":e(this);break;case"job-executing":case"job-new":case"job-submitted":case"job-waiting":n&&n(this),this._jobCompletionTimer=setTimeout(a,t);break;case"job-cancelled":case"job-cancelling":case"job-deleted":case"job-deleting":case"job-failed":case"job-timed-out":o(this);break;default:this._jobCompletionTimer=setTimeout(a,t)}})).catch((e=>{o(e)}))};this._jobCompletionTimer=setTimeout(a,t)}))}clearCancelJobTimer(){clearTimeout(this._cancelJobTimer),this._cancelJobTimer=void 0}clearJobCompletionTimer(){clearTimeout(this._jobCompletionTimer),this._jobCompletionTimer=void 0}};(0,u._)([(0,y.MZ)()],$.prototype,"jobId",void 0),(0,u._)([(0,G.e)(U,{ignoreUnknown:!1})],$.prototype,"jobStatus",void 0),(0,u._)([(0,y.MZ)({type:[Z.A]})],$.prototype,"messages",void 0),(0,u._)([(0,y.MZ)()],$.prototype,"progress",void 0),(0,u._)([(0,y.MZ)()],$.prototype,"requestOptions",void 0),(0,u._)([(0,y.MZ)({json:{write:!0}})],$.prototype,"sourceUrl",void 0),$=F=(0,u._)([(0,g.$)("esri.rest.support.JobInfo")],$);let q=class extends c.A{constructor(e){super(e),this.headerKeys=[],this.outSpatialReference=null,this.exceededTransferLimit=!1}};(0,u._)([(0,y.MZ)()],q.prototype,"headerKeys",void 0),(0,u._)([(0,y.MZ)()],q.prototype,"outSpatialReference",void 0),(0,u._)([(0,y.MZ)()],q.prototype,"exceededTransferLimit",void 0),q=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphQueryResultHeader")],q);let z=class extends c.A{constructor(e){super(e),this.resultRows=[],this.resultHeader=new q}};(0,u._)([(0,y.MZ)()],z.prototype,"resultRows",void 0),(0,u._)([(0,y.MZ)()],z.prototype,"resultHeader",void 0),z=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphQueryResult")],z);let J=class extends c.A{constructor(e){super(e),this.resultRowsStream=new ReadableStream,this.resultHeader=new q}};(0,u._)([(0,y.MZ)()],J.prototype,"resultRowsStream",void 0),(0,u._)([(0,y.MZ)()],J.prototype,"resultHeader",void 0),J=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphQueryStreamingResult")],J);let V=class extends v.A{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=!0,this.description="",this.fieldNames=[]}};(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],V.prototype,"name",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],V.prototype,"unique",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],V.prototype,"ascending",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],V.prototype,"description",void 0),(0,u._)([(0,y.MZ)({type:[String],json:{write:!0}})],V.prototype,"fieldNames",void 0),V=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.FieldIndex")],V);let K=class extends v.A{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=!0,this.required=!1,this.defaultVisibility=!0,this.systemMaintained=null,this.role="esriGraphPropertyUNSPECIFIED",this.defaultValue=null}};(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],K.prototype,"name",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],K.prototype,"alias",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],K.prototype,"fieldType",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],K.prototype,"geometryType",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"hasM",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"hasZ",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"nullable",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"editable",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"required",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"defaultVisibility",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],K.prototype,"systemMaintained",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],K.prototype,"role",void 0),(0,u._)([(0,y.MZ)({json:{write:!0}})],K.prototype,"defaultValue",void 0),K=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphProperty")],K);let Y=class extends v.A{constructor(e){super(e),this.name=null,this.alias=null,this.role="Regular",this.strict=null,this.properties=[],this.fieldIndexes=[],this.type=null}};(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],Y.prototype,"name",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],Y.prototype,"alias",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],Y.prototype,"role",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],Y.prototype,"strict",void 0),(0,u._)([(0,y.MZ)({type:[K],json:{write:!0}})],Y.prototype,"properties",void 0),(0,u._)([(0,y.MZ)({type:[V],json:{write:!0}})],Y.prototype,"fieldIndexes",void 0),Y=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphObjectType")],Y);let B=class extends Y{constructor(e){super(e),this.type="entity"}};B=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.EntityType")],B);let Q=class extends Y{constructor(e){super(e),this.endPoints=[],this.type="relationship"}};(0,u._)([(0,y.MZ)({json:{write:!0}})],Q.prototype,"endPoints",void 0),Q=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.RelationshipType")],Q);let H=class extends v.A{constructor(e){super(e),this.value=null,this.behavior=null}};(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],H.prototype,"value",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],H.prototype,"behavior",void 0),H=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.SourceTypeValueBehavior")],H);let W=class extends v.A{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=[],this.entityTypes=[],this.relationshipTypes=[],this.metaEntityTypes=[],this.provenanceSourceTypeValues=[]}};(0,u._)([(0,y.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],W.prototype,"timestamp",void 0),(0,u._)([(0,y.MZ)({type:p.A,json:{write:!0}})],W.prototype,"spatialReference",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"strict",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"objectIdField",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],W.prototype,"globalIdField",void 0),(0,u._)([(0,y.MZ)()],W.prototype,"arcgisManaged",void 0),(0,u._)([(0,y.MZ)()],W.prototype,"identifierInfo",void 0),(0,u._)([(0,y.MZ)()],W.prototype,"searchIndexes",void 0),(0,u._)([(0,y.MZ)({type:[B],json:{write:!0}})],W.prototype,"entityTypes",void 0),(0,u._)([(0,y.MZ)({type:[Q],json:{write:!0}})],W.prototype,"relationshipTypes",void 0),(0,u._)([(0,y.MZ)({type:[B],json:{write:!0}})],W.prototype,"metaEntityTypes",void 0),(0,u._)([(0,y.MZ)({type:[H],json:{write:!0}})],W.prototype,"provenanceSourceTypeValues",void 0),W=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.DataModel")],W);let X=class extends v.A{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1,this.supportsProvenance=!1}};(0,u._)([(0,y.MZ)({type:[String],json:{write:!0}})],X.prototype,"capabilities",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"supportsSearch",void 0),(0,u._)([(0,y.MZ)({type:[String],json:{write:!0}})],X.prototype,"supportedQueryFormats",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"allowGeometryUpdates",void 0),(0,u._)([(0,y.MZ)({type:Number,json:{write:!0}})],X.prototype,"searchMaxRecordCount",void 0),(0,u._)([(0,y.MZ)({type:Object,json:{write:!0}})],X.prototype,"serviceCapabilities",void 0),(0,u._)([(0,y.MZ)({type:Number,json:{write:!0}})],X.prototype,"maxRecordCount",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],X.prototype,"copyrightText",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],X.prototype,"units",void 0),(0,u._)([(0,y.MZ)({type:p.A,json:{write:!0}})],X.prototype,"spatialReference",void 0),(0,u._)([(0,y.MZ)({type:Number,json:{write:!0}})],X.prototype,"currentVersion",void 0),(0,u._)([(0,y.MZ)({type:Object,json:{write:!0}})],X.prototype,"dateFieldsTimeReference",void 0),(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],X.prototype,"serviceItemId",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"supportsDocuments",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"dataEditingNotSupported",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"schemaEditingNotSupported",void 0),(0,u._)([(0,y.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"supportsProvenance",void 0),X=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.ServiceDefinition")],X);let ee=class extends v.A{constructor(e){super(e),this.url=null,this.dataModel=null,this.serviceDefinition=null}};function te(e,t,r){if(0!==e.error_code)throw new i.A(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function re(e){return e?.error_code?new i.A("knowledgeGraphService:server-or-decoding-error",e.error_message,{errorCode:e.error_code}):void 0}function ne(e,t,r,n){const o=new r.ClientDataKey;o.deleteLater(),o.key_string=e;const a=new r.ClientDataFetchRequestParameter;a.deleteLater(),a.set_key(o);const i=t.get(e);return i&&!n&&(a.v_tag={v_tag:i.version}),a}(0,u._)([(0,y.MZ)({type:String,json:{write:!0}})],ee.prototype,"url",void 0),(0,u._)([(0,y.MZ)({type:W,json:{write:!0}})],ee.prototype,"dataModel",void 0),(0,u._)([(0,y.MZ)({type:X,json:{write:!0}})],ee.prototype,"serviceDefinition",void 0),ee=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.KnowledgeGraph")],ee);var oe,ae,ie,se=r(45724),de=r(48526),le=r(86738),pe=r(39829),ue=r(82799);function ce(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(ge(e,t))})),r}function ye(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,o]of Object.entries(e))r.set_key_value(n,ge(o,t));return r}function he(e,t){if(e instanceof de.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=e.points.length;let a=0;return e.points.forEach((e=>{e.forEach((e=>{n[a]=e,a++}))})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof le.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=1,n[0]=e.x,n[1]=e.y;let a=2;return e.hasZ&&(n[a]=e.z,a++),e.hasM&&(n[a]=e.m,a++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof ue.A||e instanceof pe.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];let a=[];e instanceof ue.A?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,a=e.paths):e instanceof pe.A&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,a=e.rings);let i=0,s=0;return a.forEach((e=>{let t=0;e.forEach((e=>{t++,e.forEach((e=>{n[s]=e,s++}))})),o[i]=t,i++})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);throw new i.A("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function ge(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof l.A)return he(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(ge(e,t))})),r}return ye(e,t)}!function(e){e[e.OBJECT=0]="OBJECT",e[e.ENTITY=1]="ENTITY",e[e.RELATIONSHIP=2]="RELATIONSHIP",e[e.PATH=3]="PATH",e[e.ARRAY=4]="ARRAY"}(oe||(oe={})),function(e){e[e.view=0]="view",e[e.edit=1]="edit"}(ae||(ae={})),function(e){e[e.exclude=0]="exclude",e[e.include=1]="include"}(ie||(ie={}));var fe,_e,we,me,ve=r(35448);function be(e,t){if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(!("originId"in e)){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,Pe(o,t));return e.id&&r.set_id(e.id),r}if("originId"in e&&"destinationId"in e){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,Pe(o,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.A("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function Te(e,t){const r=new t.GraphProperty;return r.deleteLater(),r.name=e.name,r.alias=e.alias??"",r.field_type={value:ve.r5[e.fieldType]},r.geometry_type={value:e.geometryType?ve.bV[e.geometryType]:ve.bV.esriGeometryNull},r.has_m=e.hasM??!1,r.has_z=e.hasZ??!1,r.nullable=e.nullable??!1,r.editable=e.editable,r.required=e.required,r.default_visibility=e.defaultVisibility,r.system_maintained=e.systemMaintained??!1,r.role={value:ve.ti[e.role]},r.default_value=Pe(e.defaultValue,t),r}function Ge(e,t){const r=new t.SearchIndexProperties;r.deleteLater();for(const t of e.propertyNames)r.add_search_property_name(t);return r}function Ae(e,t,r){r.name=e.name,r.alias=e.alias??"",r.role={value:ve.Eq[e.role]},r.strict=e.strict;for(const n of e.properties){const e=Te(n,t);r.add_property(e)}return r}function Me(e,t){return e.hasOwnProperty("alias")&&(t.alias=e.alias),t}function Pe(e,t){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof l.A?he(e,t):null}function Ie(e){const t=e.get_keys(),r=new Array;for(let e=0;e<t.get_keys_count();e++){const n=t.get_key_at(e);n.get_client_data_key_type().value===fe.ClientDataKeyTypeString&&r.push(n.key_string)}return r}!function(e){e[e.ClientDataKeyTypeUNSPECIFIED=0]="ClientDataKeyTypeUNSPECIFIED",e[e.ClientDataKeyTypeString=1]="ClientDataKeyTypeString"}(fe||(fe={})),function(e){e[e.ClientDataTypeUNSPECIFIED=0]="ClientDataTypeUNSPECIFIED",e[e.ClientDataTypeString=1]="ClientDataTypeString"}(_e||(_e={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.ClientData=1]="ClientData",e[e.NotModified=2]="NotModified"}(we||(we={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Error=1]="Error",e[e.ClientDataValue=2]="ClientDataValue"}(me||(me={}));let Se=class extends c.A{constructor(e){super(e),this.decoderError=null,this.resultsCount=0,this.results=[],this.updatedKnowledgeGraph=null}};(0,u._)([(0,y.MZ)()],Se.prototype,"decoderError",void 0),(0,u._)([(0,y.MZ)()],Se.prototype,"resultsCount",void 0),(0,u._)([(0,y.MZ)()],Se.prototype,"results",void 0),(0,u._)([(0,y.MZ)()],Se.prototype,"updatedKnowledgeGraph",void 0),Se=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphDataModelOperationResult")],Se);let Ee=class extends Se{constructor(e){super(e)}};Ee=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphAddFieldIndexResult")],Ee);const Re=Ee;let xe=class extends Se{constructor(e){super(e),this.entityAddResultsCount=0,this.relationshipAddResultsCount=0,this.entityAddResults=[],this.relationshipAddResults=[]}};(0,u._)([(0,y.MZ)()],xe.prototype,"entityAddResultsCount",void 0),(0,u._)([(0,y.MZ)()],xe.prototype,"relationshipAddResultsCount",void 0),(0,u._)([(0,y.MZ)()],xe.prototype,"entityAddResults",void 0),(0,u._)([(0,y.MZ)()],xe.prototype,"relationshipAddResults",void 0),xe=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphAddNamedTypesResult")],xe);const ke=xe;let De=class extends Se{constructor(e){super(e)}};De=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphAddPropertyResult")],De);const je=De;let Ce=class extends Se{constructor(e){super(e)}};Ce=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphDeleteFieldIndexResult")],Ce);const Ne=Ce;let Oe=class extends Se{constructor(e){super(e)}};Oe=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphDeleteNamedTypeResult")],Oe);const Fe=Oe;let Ze=class extends Se{constructor(e){super(e)}};Ze=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphDeletePropertyResult")],Ze);const Ue=Ze;let Le=class extends Se{constructor(e){super(e)}};Le=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphUpdateNamedTypesResult")],Le);const $e=Le;let qe=class extends Se{constructor(e){super(e)}};qe=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphUpdatePropertyResult")],qe);const ze=qe;let Je=class extends Se{constructor(e){super(e)}};Je=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphUpdateSearchIndexResult")],Je);const Ve=Je;function Ke(e,t){const r=[];for(let n=0;n<t;n++){const t=e.get_result_at(n);r.push({name:t.get_name(),error:re(t.get_error())})}return r}function Ye(e){const t=e.get_results_count(),r=e.get_entity_type_add_results_count(),n=e.get_relationship_type_add_results_count(),o=new ke({resultsCount:t,results:Ke(e,t),decoderError:re(e.error),entityAddResultsCount:r,relationshipAddResultsCount:n});for(let t=0;t<r;t++){const r=e.get_entity_type_add_results_at(t),n=r.get_name(),a=r.get_error();o.entityAddResults.push({name:n,error:re(a)})}for(let t=0;t<n;t++){const r=e.get_relationship_type_add_results_at(t),n=r.get_name(),a=r.get_error();o.relationshipAddResults.push({name:n,error:re(a)})}return o}function Be(e){const t=e.get_results_count();return new $e({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function Qe(e){const t=e.get_results_count();return new Fe({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function He(e){const t=e.get_results_count();return new je({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function We(e){const t=e.get_results_count();return new Ue({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function Xe(e){const t=e.get_results_count();return new ze({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function et(e){const t=e.get_results_count();return new Ve({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function tt(e){const t=e.get_results_count();return new Re({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}function rt(e){const t=e.get_results_count();return new Ne({resultsCount:t,results:Ke(e,t),decoderError:re(e.error)})}let nt=class extends c.A{constructor(e){super(e),this.name=null,this.supportedCategory="esriTypeUNSPECIFIED",this.analyzers=[],this.searchProperties=new Map}};(0,u._)([(0,y.MZ)()],nt.prototype,"name",void 0),(0,u._)([(0,y.MZ)()],nt.prototype,"supportedCategory",void 0),(0,u._)([(0,y.MZ)()],nt.prototype,"analyzers",void 0),(0,u._)([(0,y.MZ)()],nt.prototype,"searchProperties",void 0),nt=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.SearchIndex")],nt);let ot=!1;function at(e){return e.deleteLater(),new B(st(e))}function it(e){return e.deleteLater(),new V({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:ct(e.fields)})}function st(e){return{name:e.name,alias:e.alias,role:ve.Eq[e.role.value],strict:e.strict,properties:yt(e.properties),fieldIndexes:ht(e.field_indexes)}}function dt(e){return e.deleteLater(),new K({alias:e.alias,name:e.name,fieldType:ve.r5[e.field_type.value]?ve.r5[e.field_type.value]:void 0,geometryType:ve.bV[e.geometry_type.value]?ve.bV[e.geometry_type.value]:null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:ve.ti[e.role.value],defaultValue:e.default_value})}function lt(e){e.deleteLater();const t=st(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new Q(Object.assign({endPoints:r},t))}function pt(e){return new H({behavior:e.behavior,value:e.value})}function ut(e){const t=[];for(let r=0;r<e.size();r++)t.push(at(e.get(r)));return e.delete(),t}function ct(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function yt(e){const t=[];for(let r=0;r<e.size();r++){const n=dt(e.get(r));"esriFieldTypeBigInteger"===n.fieldType&&(ot=!0),t.push(n)}return e.delete(),t}function ht(e){const t=[];for(let r=0;r<e.size();r++)t.push(it(e.get(r)));return e.delete(),t}function gt(e){const t=[];for(let r=0;r<e.size();r++)t.push(lt(e.get(r)));return e.delete(),t}function ft(e){const t=[];for(let r=0;r<e.size();r++){const n=e.get(r);n.deleteLater(),t.push(pt(n))}return e.delete(),t}function _t(e){const t=[];for(let r=0;r<e.size();r++){const n=new nt,o=e.get(r);n.name=o.name,n.supportedCategory=ve.nP[o.supported_category.value];const a=o.analyzers.size();for(let e=0;e<a;e++)n.analyzers.push({name:o.analyzers.get(e).name});o.analyzers.delete();for(let e=0;e<o.search_properties.keys().size();e++){const t=o.search_properties.keys().get(e),r=o.search_properties.get(t),a=[];for(let e=0;e<r.property_names.size();e++)a.push(r.property_names.get(e));n.searchProperties.set(t,{propertyNames:a})}t.push(n)}return e.delete(),t}var wt,mt=r(25927),vt=(r(77901),r(40662)),bt=r(42095),Tt=r(23150);function Gt(e,t){const r={paths:[],hasM:!1,hasZ:!1},n=At(e,r),{coords:o,geometry_type:a,lengths:s}=e;if(a.value!==t)throw new i.A("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");let d=0;return s.forEach((e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=o[d],d++;t.push(e)}r.paths.push(t)})),r}function At(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}!function(e){e[e.ESRI_GEOMETRY_NULL=0]="ESRI_GEOMETRY_NULL",e[e.ESRI_GEOMETRY_POINT=1]="ESRI_GEOMETRY_POINT",e[e.ESRI_GEOMETRY_MULTIPOINT=2]="ESRI_GEOMETRY_MULTIPOINT",e[e.ESRI_GEOMETRY_POLYLINE=3]="ESRI_GEOMETRY_POLYLINE",e[e.ESRI_GEOMETRY_POLYGON=4]="ESRI_GEOMETRY_POLYGON",e[e.ESRI_GEOMETRY_ENVELOPE=5]="ESRI_GEOMETRY_ENVELOPE",e[e.ESRI_GEOMETRY_ANY=6]="ESRI_GEOMETRY_ANY",e[e.ESRI_GEOMETRY_MULTI_PATCH=7]="ESRI_GEOMETRY_MULTI_PATCH"}(wt||(wt={}));const Mt=()=>s.A.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors");function Pt(e,t,r){return((e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case wt.ESRI_GEOMETRY_POINT:return function(e,t){const r={spatialReference:t};let n=2;At(e,r);const o=e.coords;return r.x=o[0],r.y=o[1],e.has_z&&(r.z=o[n],n++),e.has_m&&(r.m=o[n]),new le.A(r)}(e,r);case wt.ESRI_GEOMETRY_MULTIPOINT:return function(e,t){const r={spatialReference:t},n=At(e,r),o=e.lengths,a=e.coords,i=o[0];r.points=[];let s=0;for(let e=0;e<i;e++){const e=[];for(let t=0;t<n;t++)e[t]=a[s],s++;r.points.push(e)}return new de.A(r)}(e,r);case wt.ESRI_GEOMETRY_POLYLINE:return function(e,t){const{paths:r,hasM:n,hasZ:o}=Gt(e,wt.ESRI_GEOMETRY_POLYLINE);return new ue.A({paths:r,hasM:n,hasZ:o,spatialReference:t})}(e,r);case wt.ESRI_GEOMETRY_POLYGON:return function(e,t){const{paths:r,hasM:n,hasZ:o}=Gt(e,wt.ESRI_GEOMETRY_POLYGON);return new pe.A({rings:r,hasM:n,hasZ:o,spatialReference:t})}(e,r);case wt.ESRI_GEOMETRY_ENVELOPE:case wt.ESRI_GEOMETRY_MULTI_PATCH:return Mt().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;case wt.ESRI_GEOMETRY_NULL:case wt.ESRI_GEOMETRY_ANY:default:return Mt().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return Mt().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case oe.OBJECT:return function(e,t,r){return new vt.A(St(e,t,r))}(e,t,r);case oe.ENTITY:return It(e,t,r);case oe.RELATIONSHIP:return Et(e,t,r);case oe.PATH:return function(e,t,r){const n=e.entity_count(),o=e.relationship_count(),a=[];for(let i=0;i<n;i++)a.push(It(e.get_entity_at(i),t,r)),i<o&&a.push(Et(e.get_relationship_at(i),t,r));return new bt.A({path:a})}(e,t,r);case oe.ARRAY:return function(e,t,r){const n=[],o=e.count();for(let a=0;a<o;a++){const o=e.get_value_at(a);n.push(Pt(o,t,r))}return n}(e,t,r);default:return Mt().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}})(e,t,r)}function It(e,t,r){const n=e.type_name,o=St(e,t,r),a=e.get_id();return new mt.A(Object.assign({typeName:n,id:a},o))}function St(e,t,r){const n={},o=e.key_count();for(let a=0;a<o;a++)n[e.get_key_at(a)]=Pt(e.get_value_at(a),t,r);return{properties:n}}function Et(e,t,r){const n=e.type_name,o=St(e,t,r);return new Tt.A(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},o))}function Rt(e){const t=[];for(let r=0;r<e.get_header_keys().size();r++)t.push(e.get_header_keys().get(r));const r=new p.A(e.get_out_sr());return new q({headerKeys:t,outSpatialReference:r,exceededTransferLimit:e.exceeded_transfer_limit()})}let xt=class extends c.A{constructor(e){super(e),this.hasError=!1,this.error=null,this.editResults=[]}};(0,u._)([(0,y.MZ)()],xt.prototype,"hasError",void 0),(0,u._)([(0,y.MZ)()],xt.prototype,"error",void 0),(0,u._)([(0,y.MZ)()],xt.prototype,"editResults",void 0),xt=(0,u._)([(0,g.$)("esri.rest.knowledgeGraph.GraphApplyEditsResult")],xt);const kt=xt;function Dt(e){const t=e.has_error(),r=new kt({hasError:t,error:t?re(e.error):null}),n=e.get_edit_results_count();for(let t=0;t<n;t++){const n=e.get_edit_results_at(t),o=e.get_edit_results_type_name_at(t),a=[],i=[],s=[],d=n.get_add_results_count(),l=n.get_update_results_count(),p=n.get_delete_results_count();for(let e=0;e<d;e++){const t=n.get_add_result_at(e);a.push({id:t.id,error:re(t.error)})}for(let e=0;e<l;e++){const t=n.get_update_result_at(e);i.push({id:t.id,error:re(t.error)})}for(let e=0;e<p;e++){const t=n.get_delete_result_at(e);s.push({id:t.id,error:re(t.error)})}r.editResults.push({typeName:o,adds:a,updates:i,deletes:s})}return r}const jt=new Map,Ct=()=>new Map(jt.entries()),Nt={fetchKnowledgeGraph:async e=>{const t=new ee({url:e}),r=[];return r.push(er(t)),r.push(tr(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await _r(e)},refreshServiceDefinition:async e=>{const t=(await(0,a.A)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new X(t),e.serviceDefinition},executeFindPathsAsynchronous:async(e,t)=>{const r=e.inKnowledgeGraphUrl.split("/rest/services");if(r.length<2)throw new i.A("knowledge-graph:invalid-tool-url","The URL for the KG Service was not correctly formatted. It should contain /rest/services/");const n=r[0],o=(await dr(`${n}/rest/services/System`,{query:{f:"pjson"}})).data.currentVersion,a=`/rest/services/${o&&o<12?"System":"Utilities"}/KnowledgeGraphServerToolsAsync/GPServer/ServerFilteredFindPaths`;return await sr(`${n}${a}`,{in_knowledge_graph_url:e.inKnowledgeGraphUrl,config_type:"STRING",config_string:e.config.toJSON(),result_type:"STRING"},{},t)},executeFindPaths:async(e,t)=>{const r=e.inKnowledgeGraphUrl.split("/rest/services");if(r.length<2)throw new i.A("knowledge-graph:invalid-tool-url","The URL for the KG Service was not correctly formatted. It should contain /rest/services/");const n=r[0],o=(await dr(`${n}/rest/services/System`,{query:{f:"pjson"}})).data.currentVersion,a=`/rest/services/${o&&o<12?"System":"Utilities"}/KnowledgeGraphServerTools/GPServer/ServerFilteredFindPaths/execute`,s=await dr(`${n}${a}`,{method:"post",query:{f:"pjson",in_knowledge_graph_url:e.inKnowledgeGraphUrl,config_type:"STRING",config_string:JSON.stringify(e.config),result_type:"STRING"},...t});if(s.data.results.length<1)throw new i.A("knowledge-graph:no-results","No results were returned from the FindPaths tool - no results returned",s);let d;for(const e of s.data.results)if("out_results_string"===e.paramName){d=e.value;break}if(!d)throw new i.A("knowledge-graph:no-results","No results were returned from the FindPaths tool - no results were returned on the expected paramater out_results_string",s);return d},fetchAsynchronousFindPathsResultData:async(e,t)=>(await e.fetchResultData("out_results_string",null,t)).value,executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await lr(e);const o=await ur(n,r);if(!e.serviceDefinition?.supportsProvenance&&"include"===t.provenanceBehavior)throw new i.A("knowledge-graph:provenance-not-supported","The Knowledge Graph Service definition indicated that provenance is not supported");o.data.body=await async function(e,t){const r=await(0,se.I)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,o]of Object.entries(e.bindParameters))pr(t,o,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await er(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.A("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r),e.provenanceBehavior&&function(e,t){t.provenance_behavior={value:ie[e]}}(e.provenanceBehavior,n);try{n.encode()}catch(e){throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const o=n.get_encoding_result();if(0!==o.error.error_code)throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:o.error.error_code,errorMessage:o.error.error_message});return structuredClone(o.get_byte_buffer())}(t,e);const a=await ir(o.data.url,o.data);if(e.dataModel){const t=await fr(a,e.dataModel);return new J({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported)throw new i.A("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await lr(e);const o=await ur(n,r);return o.data.body=await async function(e,t){if(t.dataModel||await er(t),!t.dataModel)throw new i.A("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,se.I)(),n=!!e.options?.cascadeDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n;try{let t;e.entityAdds?.forEach((e=>{t=o.add_entity(be(e,r)),te(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipAdds?.forEach((e=>{if(!e.originId||!e.destinationId)throw new i.A("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship(be(e,r)),te(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity(be(e,r)),te(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship(be(e,r)),te(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach((e=>{t.delete_by_id(e)}))})),e.relationshipDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach((e=>{t.delete_by_id(e)}))})),o.encode()}catch(e){throw new i.A("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const a=o.get_encoding_result();return te(a.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(a.get_byte_buffer())}(t,e),async function(e){return cr(e,(await(0,se.I)()).GraphApplyEditsDecoder,Dt)}(await ir(o.data.url,o.data))},executeAddNamedTypes:async(e,t,r)=>{if(!t.newEntityTypes?.length&&!t.newRelationshipTypes?.length)throw new i.A("knowledge-graph:no-arguments","The operation to add types to the data model contained no values");const n=`${e.url}/dataModel/edit/namedTypes/add`;await lr(e);const o=await ur(n,r);o.data.body=await async function(e){const t=await(0,se.I)(),r=new t.GraphNamedObjectTypeAddsRequestEncoder;r.deleteLater(),e.newEntityTypes?.forEach((e=>{r.add_entity_type(function(e,t){const r=new t.EntityType;return r.deleteLater(),Ae(e,t,r)}(e,t))})),e.newRelationshipTypes?.forEach((e=>{r.add_relationship_type(function(e,t){const r=new t.RelationshipType;r.deleteLater();for(const n of e.endPoints){const e=new t.EndPoint;e.deleteLater(),e.origin_entity_type=n.originEntityType,e.dest_entity_type=n.destinationEntityType,r.add_end_point(e)}return Ae(e,t,r)}(e,t))}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:addNamedTypes-encoding-failed","Attempting to encode the addNamedTypes failed",{error:e})}const n=r.get_encoding_result();return te(n.error,"knowledge-graph:addNamedTypes-encoding-failed","Attempting to encode the addNamedTypes failed"),structuredClone(n.get_byte_buffer())}(t);const a=await ir(o.data.url,o.data),s=await async function(e){return cr(e,(await(0,se.I)()).GraphNamedObjectTypeAddsResponseDecoder,Ye)}(a);return s.updatedKnowledgeGraph=await Xt(e.url),s},executeDeleteNamedType:async(e,t,r)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to delete a named type from the data model contained no value");const n=`${e.url}/dataModel/edit/namedTypes/${t}/delete`;await lr(e);const o=await ur(n,r);o.data.body="";const a=await ir(o.data.url,o.data),s=await async function(e){return cr(e,(await(0,se.I)()).GraphNamedObjectTypeDeleteResponseDecoder,Qe)}(a);return s.updatedKnowledgeGraph=await Xt(e.url),s},executeUpdateNamedType:async(e,t,r,n)=>{if(!t&&!Object.keys(r).length)throw new i.A("knowledge-graph:no-arguments","The operation to update types in the data model contained missing or empty values");const o=`${e.url}/dataModel/edit/namedTypes/${t}/update`;await lr(e);const a=await ur(o,n);a.data.body=await async function(e,t,r){const n=await(0,se.I)(),o=new n.GraphNamedObjectTypeUpdateRequestEncoder;if(o.deleteLater(),r.entityTypes.some((e=>e.name===t)))o.update_entity_type(function(e,t){const r=new t.EntityType;return r.deleteLater(),Me(e,r)}(e,n));else{if(!r.relationshipTypes.some((e=>e.name===t)))throw new i.A("knowledge-graph:updateNamedType-encoding-failed","The named type you are trying to update does not exist in the data model");o.update_relationship_type(function(e,t){const r=new t.RelationshipType;return r.deleteLater(),Me(e,r)}(e,n))}o.update_alias=e.hasOwnProperty("alias");try{o.encode()}catch(e){throw new i.A("knowledge-graph:updateNamedType-encoding-failed","Attempting to encode the updateNamedType failed",{error:e})}const a=o.get_encoding_result();return te(a.error,"knowledge-graph:updateNamedType-encoding-failed","Attempting to encode the updateNamedType failed"),structuredClone(a.get_byte_buffer())}(r,t,e.dataModel);const s=await ir(a.data.url,a.data),d=await async function(e){return cr(e,(await(0,se.I)()).GraphNamedObjectTypeUpdateResponseDecoder,Be)}(s);return d.updatedKnowledgeGraph=await Xt(e.url),d},executeAddGraphProperties:async(e,t,r,n)=>{if(!t&&!r.length)throw new i.A("knowledge-graph:no-arguments","The operation to add properties to the data model contained missing or empty values");const o=`${e.url}/dataModel/edit/namedTypes/${t}/fields/add`;await lr(e);const a=await ur(o,n);a.data.body=await async function(e){const t=await(0,se.I)(),r=new t.GraphPropertyAddsRequestEncoder;r.deleteLater(),e.forEach((e=>{r.add_graph_property(Te(e,t))}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:addGraphProperties-encoding-failed","Attempting to encode the addGraphProperties failed",{error:e})}const n=r.get_encoding_result();return te(n.error,"knowledge-graph:addGraphProperties-encoding-failed","Attempting to encode the addGraphProperties failed"),structuredClone(n.get_byte_buffer())}(r);const s=await ir(a.data.url,a.data),d=await async function(e){return cr(e,(await(0,se.I)()).GraphPropertyAddsResponseDecoder,He)}(s);return d.updatedKnowledgeGraph=await Xt(e.url),d},executeDeleteGraphProperty:async(e,t,r,n)=>{if(!t&&!r)throw new i.A("knowledge-graph:no-arguments","The operation to delete property contained missing or empty values");const o=`${e.url}/dataModel/edit/namedTypes/${t}/fields/delete`;await lr(e);const a=await ur(o,n);a.data.body=await async function(e){const t=new((await(0,se.I)()).GraphPropertyDeleteRequestEncoder);t.deleteLater(),t.field_name=e;try{t.encode()}catch(e){throw new i.A("knowledge-graph:deleteGraphProperty-encoding-failed","Attempting to encode the deleteGraphProperty failed",{error:e})}const r=t.get_encoding_result();return te(r.error,"knowledge-graph:deleteGraphProperty-encoding-failed","Attempting to encode the deleteGraphProperty failed"),structuredClone(r.get_byte_buffer())}(r);const s=await ir(a.data.url,a.data),d=await async function(e){return cr(e,(await(0,se.I)()).GraphPropertyDeleteResponseDecoder,We)}(s);return d.updatedKnowledgeGraph=await Xt(e.url),d},executeUpdateGraphProperty:async(e,t,r,n,o)=>{if(!t&&!r&&!Object.keys(n).length)throw new i.A("knowledge-graph:no-arguments","The operation to update properties in the data model contained missing or empty values");const a=`${e.url}/dataModel/edit/namedTypes/${t}/fields/update`;await lr(e);const s=await ur(a,o);s.data.body=await async function(e,t){const r=await(0,se.I)(),n=new r.GraphPropertyUpdateRequestEncoder;n.deleteLater(),n.update_graph_property(function(e,t){const r=new t.GraphProperty;return r.deleteLater(),e.hasOwnProperty("alias")&&(r.alias=e.alias),e.hasOwnProperty("editable")&&(r.editable=e.editable),e.hasOwnProperty("required")&&(r.required=e.required),e.hasOwnProperty("defaultVisibility")&&(r.default_visibility=e.defaultVisibility),e.hasOwnProperty("defaultValue")&&(r.default_value=Pe(e.defaultValue,t)),r}(t,r)),n.set_property_name(e),n.update_alias=t.hasOwnProperty("alias"),n.update_editable=t.hasOwnProperty("editable"),n.update_required=t.hasOwnProperty("required"),n.update_visible=t.hasOwnProperty("defaultVisibility"),n.update_default_value=t.hasOwnProperty("defaultValue");try{n.encode()}catch(e){throw new i.A("knowledge-graph:updateGraphProperty-encoding-failed","Attempting to encode the updateGraphProperty failed",{error:e})}const o=n.get_encoding_result();return te(o.error,"knowledge-graph:updateGraphProperty-encoding-failed","Attempting to encode the updateGraphProperty failed"),structuredClone(o.get_byte_buffer())}(r,n);const d=await ir(s.data.url,s.data),l=await async function(e){return cr(e,(await(0,se.I)()).GraphPropertyUpdateResponseDecoder,Xe)}(d);return l.updatedKnowledgeGraph=await Xt(e.url),l},executeAddGraphFieldIndex:async(e,t,r,n)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing named type");if(!r?.length)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing or empty field index values");const o=`${e.url}/dataModel/edit/namedTypes/${t}/indexes/add`;await lr(e);const a=await ur(o,n);a.data.body=await async function(e){const t=await(0,se.I)(),r=new t.GraphIndexAddsRequestEncoder;r.deleteLater(),e.forEach((e=>{r.add_field_index(function(e,t){const r=new t.FieldIndex;r.deleteLater(),r.name=e.name,r.unique=e.unique,r.ascending=e.ascending,r.description=e.description??"";for(const t of e.fieldNames)r.add_field(t);return r}(e,t))}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:addGraphFieldIndex-encoding-failed","Attempting to encode the addGraphFieldIndex failed",{error:e})}const n=r.get_encoding_result();return te(n.error,"knowledge-graph:addGraphFieldIndex-encoding-failed","Attempting to encode the addGraphFieldIndex failed"),structuredClone(n.get_byte_buffer())}(r);const s=await ir(a.data.url,a.data),d=await async function(e){return cr(e,(await(0,se.I)()).GraphIndexAddsResponseDecoder,tt)}(s);return d.updatedKnowledgeGraph=await Xt(e.url),d},executeDeleteGraphFieldIndex:async(e,t,r,n)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing named type");if(!r?.length)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing or empty field index values");const o=`${e.url}/dataModel/edit/namedTypes/${t}/indexes/delete`;await lr(e);const a=await ur(o,n);a.data.body=await async function(e){const t=new((await(0,se.I)()).GraphIndexDeleteRequestEncoder);t.deleteLater(),e.forEach((e=>{t.add_index_name(e)}));try{t.encode()}catch(e){throw new i.A("knowledge-graph:deleteGraphFieldIndex-encoding-failed","Attempting to encode the deleteGraphFieldIndex failed",{error:e})}const r=t.get_encoding_result();return te(r.error,"knowledge-graph:deleteGraphFieldIndex-encoding-failed","Attempting to encode the deleteGraphFieldIndex failed"),structuredClone(r.get_byte_buffer())}(r);const s=await ir(a.data.url,a.data),d=await async function(e){return cr(e,(await(0,se.I)()).GraphIndexDeleteResponseDecoder,rt)}(s);return d.updatedKnowledgeGraph=await Xt(e.url),d},executeUpdateSearchIndex:async(e,t,r,n)=>{if(!t)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing named type");if(!Object.keys(r.addSearchProperties??{}).length&&!Object.keys(r.removeSearchProperties??{}).length)throw new i.A("knowledge-graph:no-arguments","The operation to update search index in the data model contained missing or empty properties values");const o=`${e.url}/dataModel/searchIndex/update`;await lr(e);const a=await ur(o,n);a.data.body=await async function(e,t){const r=await(0,se.I)(),n=new r.GraphUpdateSearchIndexRequestEncoder;n.deleteLater(),t.hasOwnProperty("addSearchProperties")&&n.insert_add_search_property(e,Ge(t.addSearchProperties,r)),t.hasOwnProperty("removeSearchProperties")&&n.insert_delete_search_property(e,Ge(t.removeSearchProperties,r));try{n.encode()}catch(e){throw new i.A("knowledge-graph:updateSearchIndex-encoding-failed","Attempting to encode the updateSearchIndex failed",{error:e})}const o=n.get_encoding_result();return te(o.error,"knowledge-graph:updateSearchIndex-encoding-failed","Attempting to encode the updateSearchIndex failed"),structuredClone(o.get_byte_buffer())}(t,r);const s=await ir(a.data.url,a.data),d=await async function(e){return cr(e,(await(0,se.I)()).GraphUpdateSearchIndexResponseDecoder,et)}(s);return d.updatedKnowledgeGraph=await Xt(e.url),d},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,o=await(0,a.A)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=o.getHeader?.("content-type"),d=o.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,se.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=gr({wasmQueryDecoder:t,newArrayBufferToParse:d,dataModel:e.dataModel});return new z({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:o.data})},executeSearch:async(e,t,r)=>{const n=t.typeCategoryFilter,o=`${e.url}/graph/search`,s=await(0,a.A)(o,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),d=s.getHeader?.("content-type"),l=s.data;if(d?.includes("application/x-protobuf")){const t=new((await(0,se.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=gr({wasmQueryDecoder:t,newArrayBufferToParse:l,dataModel:e.dataModel});return new z({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:d,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await lr(e);const o=await ur(n,r);o.data.body=await async function(e){const t=await(0,se.I)(),r=new t.GraphSearchRequestEncoder;if(r.deleteLater(),r.search_query=e.searchQuery,r.type_category_filter=t.esriNamedTypeCategory[e.typeCategoryFilter],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(ce(e.idsFilter,t))}catch(e){throw new i.A("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach((e=>{r.add_named_type_filter(e)}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const n=r.get_encoding_result();if(0!==n.error.error_code)throw new i.A("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:n.error.error_code,errorMessage:n.error.error_message});return structuredClone(n.get_byte_buffer())}(t);const a=await ir(o.data.url,o.data);if(e.dataModel){const t=await fr(a,e.dataModel);return new J({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},fetchClientDataAtKeys:async(e,t,r={ignoreCache:!1})=>{if(!t.length)return new Map;let n=jt.get(e.url||"");n||(n=new Map,jt.set(e.url||"",n));const o=new Map(n.entries()),a=`${e.url}/clientData/fetch`;t=Array.from(new Set(t));const s=await(0,se.I)(),d=function(e,t,r,n=!1){const o=new r.ClientDataFetchRequestEncoder;o.deleteLater();for(const a of e){const e=ne(a,t,r,n);o.add_client_data_fetch_request_parameter(e)}o.encode();const a=o.get_encoding_result();return te(a.error,"knowledge-graph:fetchClientDataAtKeys-encoding-failed","Attempting to encode the fetchClientDataAtKeys failed"),structuredClone(a.get_byte_buffer())}(t,n,s,r.ignoreCache),l=await ur(a,r.requestOptions);l.data.body=d;const p=await ir(l.data.url,l.data),u=p.headers.get("content-type");if(u?.includes("application/x-protobuf")){const e=new s.ClientDataFetchResponseDecoder;e.deleteLater();const t=await p.arrayBuffer();return e.decode(new Uint8Array(t)),e.has_error()&&te(e.error,"knowledge-graph:fetchClientDataAtKeys-decoding-error","An error occurred while decoding the client data keys response"),function(e,t,r,n=!1){const o=new Map;for(let a=0;a<e.get_results_count();a++){const i=e.get_result_at(a);if(i.get_fetch_result_case().value!==me.ClientDataValue||0!==i.error().error_code){const e=i.get_key().key_string;r.has(e)&&t.delete(e);continue}const s=i.get_value(),d=i.get_key().key_string,l=r.get(d);let p;if(s.get_data_case().value===we.NotModified&&l)p=l.value;else{if(s.get_data_case().value!==we.ClientData)continue;{p=s.get_data().client_data_string;const e=i.get_value().get_v_tag().v_tag;n||t.set(d,{key:d,version:e,value:p})}}o.set(d,p)}return o}(e,n,o,r.ignoreCache)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response when fetching client data",{responseType:u,data:p})},fetchAllClientDataKeys:async(e,t)=>{const r=`${e.url}/clientData`,n=await(0,a.A)(r,{responseType:"array-buffer",query:{f:"pbf"},signal:t?.signal,timeout:t?.timeout}),o=n.getHeader?.("content-type"),s=n.data;if(o?.includes("application/x-protobuf")){const e=new((await(0,se.I)()).ClientDataKeysResponseDecoder);return e.deleteLater(),e.decode(new Uint8Array(s)),e.has_error()&&te(e.error,"knowledge-graph:fetchAllClientDataKeys-decoding-error","An error occurred while decoding the client data keys response"),Ie(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:o,data:n.data})},clearClientDataCache:()=>jt.clear(),_fetchWrapper:async(e,t)=>fetch(e,t),_submitJobWrapper:async(e,t,r,n)=>async function(e,t,r,n){return r=_.from(r||{}),async function(e,t,r,n,o){const i={},s={},d=[];return function(e,t,r){for(const n in e){const o=e[n];if(o&&"object"==typeof o&&o instanceof I.A){const{features:e}=o;r[n]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}}}(n,d,i),(0,w.el)(d).then((d=>{const{outSpatialReference:l,processExtent:p,processSpatialReference:u,returnColumnName:c,returnFeatureCollection:y,returnM:h,returnZ:g}=r,{path:f}=(0,T.Dl)(e);for(const e in i){const[t,r]=i[e];s[e]=d.slice(t,r)}const _=l?l.wkid||l:null,w=u?u.wkid||u:null,m="execute"===t?{returnColumnName:c||void 0,returnFeatureCollection:y||void 0,returnM:h||void 0,returnZ:g||void 0}:null,v=O({...p?{context:{extent:p,outSR:_,processSR:w}}:{"env:outSR":_,"env:processSR":w},...n,...m,f:"json"},null,s),b={...o,query:v};return(0,a.A)(`${f}/${t}`,b)}))}(e,"submitJob",r,t??{},n).then((({data:t})=>{const r=$.fromJSON(t);return r.sourceUrl=e,r}))}(e,t,r,n),_esriRequestWrapper:async(e,t)=>(0,a.A)(e,t)};async function Ot(e,t,r){return Nt.executeApplyEdits(e,t,r)}async function Ft(e,t,r){return Nt.executeAddNamedTypes(e,t,r)}async function Zt(e,t,r){return Nt.executeDeleteNamedType(e,t,r)}async function Ut(e,t,r,n){return Nt.executeUpdateNamedType(e,t,r,n)}async function Lt(e,t,r,n){return Nt.executeAddGraphProperties(e,t,r,n)}async function $t(e,t,r,n){return Nt.executeDeleteGraphProperty(e,t,r,n)}async function qt(e,t,r,n,o){return Nt.executeUpdateGraphProperty(e,t,r,n,o)}async function zt(e,t,r,n){return Nt.executeAddGraphFieldIndex(e,t,r,n)}async function Jt(e,t,r,n){return Nt.executeDeleteGraphFieldIndex(e,t,r,n)}async function Vt(e,t,r,n){return Nt.executeUpdateSearchIndex(e,t,r,n)}async function Kt(e,t,r){return Nt.executeQuery(e,t,r)}async function Yt(e,t,r){return Nt.executeQueryStreaming(e,t,r)}async function Bt(e,t,r){return Nt.executeSearch(e,t,r)}async function Qt(e,t,r){return Nt.executeSearchStreaming(e,t,r)}function Ht(e,t){return Nt.fetchAllClientDataKeys(e,t)}function Wt(e,t,r){return Nt.fetchClientDataAtKeys(e,t,r)}async function Xt(e){return Nt.fetchKnowledgeGraph(e)}async function er(e){return Nt.refreshDataModel(e)}async function tr(e){return Nt.refreshServiceDefinition(e)}async function rr(e,t){return Nt.executeFindPathsAsynchronous(e,t)}async function nr(e,t){return Nt.executeFindPaths(e,t)}async function or(e,t){return Nt.fetchAsynchronousFindPathsResultData(e,t)}function ar(){return Nt.clearClientDataCache()}async function ir(e,t){return Nt._fetchWrapper(e,t)}async function sr(e,t,r,n){return Nt._submitJobWrapper(e,t,r,n)}async function dr(e,t){return Nt._esriRequestWrapper(e,t)}async function lr(e){const t=o.id?.findCredential(e.url);t||(e.dataModel?await _r(e):await er(e))}function pr(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof l.A?r.set_param_key_value(e,he(t,n)):Array.isArray(t)?r.set_param_key_value(e,ce(t,n)):r.set_param_key_value(e,ye(t,n))}async function ur(e,t){return(0,a.A)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}async function cr(e,t,r){const n=e.headers.get("content-type");if(n?.includes("application/x-protobuf")){const n=await e.arrayBuffer(),o=new t;try{return o.decode(new Uint8Array(n)),r(o)}finally{o.deleteLater()}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:await e.text()})}let yr=50;function hr(e){yr=e}function gr({wasmQueryDecoder:e,newArrayBufferToParse:t,dataModel:r,decodedHeader:n,limitMaxProcessingTime:o=!1}){t&&e.push_buffer(new Uint8Array(t));const a=[];let s,d,l=0;const u=Date.now();let c=!0;for(;e.next_row();){s&&d||(s=n??Rt(e),d=s.outSpatialReference??new p.A({wkid:4326})),l||(l=e.get_header_keys().size());const t=new Array(l);for(let n=0;n<l;n++){const o=e.get_value(n);t[n]=Pt(o,r,d)}if(a.push(t),o&&Date.now()-u>yr){c=!1;break}}if(e.has_error())throw new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - inner row decoding",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return{resultHeader:s,resultRows:a,parsedAllResultsFromBuffer:c}}async function fr(e,t){const r=e.headers.get("content-type");if(e.headers.get("content-length")&&s.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),r?.includes("application/x-protobuf")){const r=e.body?.getReader(),n=new((await(0,se.I)()).GraphQueryDecoder);let o,a,l;n.deleteLater();const p=new Promise(((e,t)=>{a=e,l=t}));let u=!1,c=null;const y=new ReadableStream({pull:async function e(p){if(!r){const e=new i.A("knowledge-graph:stream-decoding-error","Error reading from stream - reader is undefined");throw l(e),e}const{done:y,value:h}=c?{done:!1,value:null}:await r.read().catch((e=>{throw l(e),r.releaseLock(),e}));h&&(c=h);try{if(y){let e;if(n.has_error()?e=new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - query stream done",{errorCode:n.error.error_code,errorMessage:n.error.error_message}):u||a(new q),r.releaseLock(),e)throw p.error(e),l(e),e;return void p.close()}const{resultHeader:s,resultRows:d,parsedAllResultsFromBuffer:g}=gr({wasmQueryDecoder:n,newArrayBufferToParse:h,dataModel:t,decodedHeader:o,limitMaxProcessingTime:!0});return g&&(c=null),!o&&s&&(o=s,a(s),u=!0),d.length>0?void p.enqueue(d):await e(p)}catch(e){throw s.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").error(e),l(e),r.releaseLock(),(0,d.zf)(e)?e:new i.A("knowledge-graph:unexpected-server-response","Error inside streaming data return parsing",{error:e})}}});return{readableStream:y,resultHeader:await p}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:r,data:e.text()})}async function _r(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,a.A)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),o=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,se.I)()).decode_data_model_from_protocol_buffer(new Uint8Array(o));if(!e)throw new i.A("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){e.deleteLater(),ot=!1;const t=new W({timestamp:e.timestamp,spatialReference:new p.A(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:ve.vy[e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value],databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:ve.wr[e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value]}},searchIndexes:_t(e.search_indexes),entityTypes:ut(e.entity_types),relationshipTypes:gt(e.relationship_types),metaEntityTypes:ut(e.meta_entity_types),provenanceSourceTypeValues:ft(e.provenance_source_type_values.value_behavior_array)});return ot&&s.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("A big integer field was detected in the retrieved data model. The `big-integer` field type is not fully supported in web clients. Please see https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type"),t}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}},35448:(e,t,r)=>{var n,o,a,i,s,d,l;r.d(t,{Eq:()=>n,bV:()=>a,nP:()=>s,r5:()=>o,ti:()=>d,vy:()=>l,wr:()=>i}),function(e){e[e.Regular=0]="Regular",e[e.Provenance=1]="Provenance",e[e.Document=2]="Document"}(n||(n={})),function(e){e[e.esriFieldTypeSmallInteger=0]="esriFieldTypeSmallInteger",e[e.esriFieldTypeInteger=1]="esriFieldTypeInteger",e[e.esriFieldTypeSingle=2]="esriFieldTypeSingle",e[e.esriFieldTypeDouble=3]="esriFieldTypeDouble",e[e.esriFieldTypeString=4]="esriFieldTypeString",e[e.esriFieldTypeDate=5]="esriFieldTypeDate",e[e.esriFieldTypeOID=6]="esriFieldTypeOID",e[e.esriFieldTypeGeometry=7]="esriFieldTypeGeometry",e[e.esriFieldTypeBlob=8]="esriFieldTypeBlob",e[e.esriFieldTypeRaster=9]="esriFieldTypeRaster",e[e.esriFieldTypeGUID=10]="esriFieldTypeGUID",e[e.esriFieldTypeGlobalID=11]="esriFieldTypeGlobalID",e[e.esriFieldTypeXML=12]="esriFieldTypeXML",e[e.esriFieldTypeBigInteger=13]="esriFieldTypeBigInteger",e[e.esriFieldTypeDateOnly=14]="esriFieldTypeDateOnly",e[e.esriFieldTypeTimeOnly=15]="esriFieldTypeTimeOnly",e[e.esriFieldTypeTimestampOffset=16]="esriFieldTypeTimestampOffset"}(o||(o={})),function(e){e[e.esriGeometryNull=0]="esriGeometryNull",e[e.esriGeometryPoint=1]="esriGeometryPoint",e[e.esriGeometryMultipoint=2]="esriGeometryMultipoint",e[e.esriGeometryPolyline=3]="esriGeometryPolyline",e[e.esriGeometryPolygon=4]="esriGeometryPolygon",e[e.esriGeometryEnvelope=5]="esriGeometryEnvelope",e[e.esriGeometryAny=7]="esriGeometryAny",e[e.esriGeometryMultiPatch=9]="esriGeometryMultiPatch"}(a||(a={})),function(e){e[e.esriMethodHintUNSPECIFIED=0]="esriMethodHintUNSPECIFIED",e[e.esriUUIDESRI=1]="esriUUIDESRI",e[e.esriUUIDRFC4122=2]="esriUUIDRFC4122"}(i||(i={})),function(e){e[e.esriTypeUNSPECIFIED=0]="esriTypeUNSPECIFIED",e[e.esriTypeEntity=1]="esriTypeEntity",e[e.esriTypeRelationship=2]="esriTypeRelationship",e[e.esriTypeBoth=4]="esriTypeBoth",e[e.esriTypeMetaEntityProvenance=8]="esriTypeMetaEntityProvenance"}(s||(s={})),function(e){e[e.esriGraphPropertyUNSPECIFIED=0]="esriGraphPropertyUNSPECIFIED",e[e.esriGraphPropertyRegular=1]="esriGraphPropertyRegular",e[e.esriGraphPropertyDocumentName=2]="esriGraphPropertyDocumentName",e[e.esriGraphPropertyDocumentTitle=3]="esriGraphPropertyDocumentTitle",e[e.esriGraphPropertyDocumentUrl=4]="esriGraphPropertyDocumentUrl",e[e.esriGraphPropertyDocumentText=5]="esriGraphPropertyDocumentText",e[e.esriGraphPropertyDocumentKeywords=6]="esriGraphPropertyDocumentKeywords",e[e.esriGraphPropertyDocumentContentType=7]="esriGraphPropertyDocumentContentType",e[e.esriGraphPropertyDocumentMetadata=8]="esriGraphPropertyDocumentMetadata",e[e.esriGraphPropertyDocumentFileExtension=9]="esriGraphPropertyDocumentFileExtension",e[e.esriGraphPropertyProvenanceInstanceId=10]="esriGraphPropertyProvenanceInstanceId",e[e.esriGraphPropertyProvenanceSourceType=11]="esriGraphPropertyProvenanceSourceType",e[e.esriGraphPropertyProvenanceSourceName=12]="esriGraphPropertyProvenanceSourceName",e[e.esriGraphPropertyProvenanceSource=13]="esriGraphPropertyProvenanceSource",e[e.esriGraphPropertyProvenanceComment=14]="esriGraphPropertyProvenanceComment",e[e.esriGraphPropertyProvenanceTypeName=15]="esriGraphPropertyProvenanceTypeName",e[e.esriGraphPropertyProvenancePropertyName=16]="esriGraphPropertyProvenancePropertyName"}(d||(d={})),function(e){e[e.esriIdentifierInfoTypeUNSPECIFIED=0]="esriIdentifierInfoTypeUNSPECIFIED",e[e.esriIdentifierInfoTypeDatabaseNative=1]="esriIdentifierInfoTypeDatabaseNative",e[e.esriIdentifierInfoTypeUniformProperty=2]="esriIdentifierInfoTypeUniformProperty"}(l||(l={}))},45724:(e,t,r)=>{r.d(t,{I:()=>d});var n=r(2741),o=r(44208);const a="esri/rest/knowledgeGraph/wasmInterface/";let i,s=null;async function d(){const e=s??i;if(e)return e;const t=!!(0,o.A)("wasm-simd");return i=l(t),i}async function l(e){if(e){const{default:e}=await r.e(5367).then(r.bind(r,15367)).then((e=>e.a));return e({locateFile:e=>(0,n.s)(a+e)})}const{default:t}=await r.e(9013).then(r.bind(r,29013)).then((e=>e.a));return t({locateFile:e=>(0,n.s)(a+e)})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7937],{4341:(t,n,r)=>{r.d(n,{I:()=>o});var e=r(26390);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,e.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},9093:(t,n,r)=>{function e(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:e,fromValues:function(t,n,r,e,o,i,u,c,a,s,f,h,M,l,m,d){return[t,n,r,e,o,i,u,c,a,s,f,h,M,l,m,d]}},Symbol.toStringTag,{value:"Module"}))},29242:(t,n,r)=>{function e(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,e,o,i,u,c,a){return[t,n,r,e,o,i,u,c,a]}r.d(n,{fA:()=>o,vt:()=>e,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:o},Symbol.toStringTag,{value:"Module"}))},32114:(t,n,r)=>{r.d(n,{Rc:()=>l,J8:()=>m,rq:()=>h,Km:()=>M}),r(44208);var e=r(26390),o=r(29242),i=r(9093),u=r(82534),c=r(48163),a=r(51850),s=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(c.vt)}static createVec3f64(){return new f(a.vt)}static createVec4f64(){return new f(s.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(i.vt)}static createQuatf64(){return new f(u.vt)}get test(){}}f.createVec2f64();const h=f.createVec3f64(),M=f.createVec4f64(),l=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},38954:(t,n,r)=>{r.d(n,{A:()=>m,B:()=>l,C:()=>f,D:()=>h,E:()=>I,F:()=>D,H:()=>k,a:()=>V,b:()=>b,c:()=>u,d:()=>s,e:()=>P,f:()=>a,g:()=>g,h:()=>S,i:()=>c,j:()=>_,k:()=>p,l:()=>i,m:()=>j,n:()=>x,o:()=>T,q:()=>C,r:()=>y,s:()=>v,t:()=>O,u:()=>q,v:()=>w,w:()=>M,x:()=>N,y:()=>F,z:()=>d});var e=r(51850),o=r(34304);function i(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function c(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function a(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function M(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function d(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function g(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function b(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function _(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function p(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function q(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const r=n[0],e=n[1],o=n[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,r){const e=n[0],o=n[1],i=n[2],u=r[0],c=r[1],a=r[2];return t[0]=o*a-i*c,t[1]=i*u-e*a,t[2]=e*c-o*u,t}function j(t,n,r,e){const o=n[0],i=n[1],u=n[2];return t[0]=o+e*(r[0]-o),t[1]=i+e*(r[1]-i),t[2]=u+e*(r[2]-u),t}function O(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*i+r[12],t[1]=r[1]*e+r[5]*o+r[9]*i+r[13],t[2]=r[2]*e+r[6]*o+r[10]*i+r[14],t}function T(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=e*r[0]+o*r[3]+i*r[6],t[1]=e*r[1]+o*r[4]+i*r[7],t[2]=e*r[2]+o*r[5]+i*r[8],t}function w(t,n,r){const e=r[0],o=r[1],i=r[2],u=r[3],c=n[0],a=n[1],s=n[2],f=o*s-i*a,h=i*c-e*s,M=e*a-o*c,l=o*M-i*h,m=i*f-e*M,d=e*h-o*f,g=2*u;return t[0]=c+f*g+2*l,t[1]=a+h*g+2*m,t[2]=s+M*g+2*d,t}const z=(0,e.vt)(),A=(0,e.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function I(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],i=r[2]-n[2];let u=e*e+o*o+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=e*u,t[1]=o*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const V=s,E=f,R=h,D=_,N=v,k=i,F=p;Object.freeze(Object.defineProperty({__proto__:null,abs:M,add:a,angle:function(t,n){x(z,t),x(A,n);const r=P(z,A);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,i){const u=1-i,c=u*u,a=i*i,s=c*u,f=3*i*c,h=3*a*u,M=a*i;return t[0]=n[0]*s+r[0]*f+e[0]*h+o[0]*M,t[1]=n[1]*s+r[1]*f+e[1]*h+o[1]*M,t[2]=n[2]*s+r[2]*f+e[2]*h+o[2]*M,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:u,cross:S,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],i=n[2],u=r[0],c=r[1],a=r[2],s=o*a-i*c,f=i*u-e*a,h=e*c-o*u,M=Math.sqrt(s*s+f*f+h*h);return t[0]=s/M,t[1]=f/M,t[2]=h/M,t},direction:I,dist:D,distance:_,div:R,divide:h,dot:P,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],i=t[2],u=n[0],c=n[1],a=n[2],s=(0,o.FD)();return Math.abs(r-u)<=s*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-c)<=s*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(i-a)<=s*Math.max(1,Math.abs(i),Math.abs(a))},exactEquals:C,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,i){const u=i*i,c=u*(2*i-3)+1,a=u*(i-2)+i,s=u*(i-1),f=u*(3-2*i);return t[0]=n[0]*c+r[0]*a+e[0]*s+o[0]*f,t[1]=n[1]*c+r[1]*a+e[1]*s+o[1]*f,t[2]=n[2]*c+r[2]*a+e[2]*s+o[2]*f,t},inverse:y,len:k,length:i,lerp:j,max:d,min:m,mul:E,multiply:f,negate:q,normalize:x,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=i*n,t},rotateX:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:b,set:c,sign:l,sqrDist:N,sqrLen:F,squaredDistance:v,squaredLength:p,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:V,subtract:s,transformMat3:T,transformMat4:O,transformQuat:w},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,r)=>{r.d(n,{EJ:()=>a,g7:()=>c,gr:()=>u});var e=r(34727),o=r(38954),i=r(51850);function u(t,n){return(0,o.e)(t,n)/(0,o.l)(t)}function c(t,n){const r=(0,o.e)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,e.XM)(r)}function a(t,n,r){(0,o.n)(s,t),(0,o.n)(f,n);const i=(0,o.e)(s,f),u=(0,e.XM)(i),c=(0,o.h)(s,s,f);return(0,o.e)(c,r)<0?2*Math.PI-u:u}const s=(0,i.vt)(),f=(0,i.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function u(){return o(1,0)}function c(){return o(0,1)}r.d(n,{Un:()=>a,fA:()=>o,vt:()=>e});const a=i(),s=u(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:a,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:o,ones:i,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},71351:(t,n,r)=>{r.d(n,{C:()=>h,Cr:()=>M,LV:()=>f,kb:()=>l,oC:()=>m,vt:()=>a}),r(4576);var e=r(4341),o=(r(77690),r(29242)),i=r(38954),u=r(51850),c=r(32114);function a(t){return t?s((0,u.o8)(t.origin),(0,u.o8)(t.direction)):s((0,u.vt)(),(0,u.vt)())}function s(t,n){return{origin:t,direction:n}}function f(t,n){const r=d.get();return r.origin=t,r.direction=n,r}function h(t,n=a()){return function(t,n,r=a()){return(0,i.c)(r.origin,t),(0,i.c)(r.direction,n),r}(t.origin,t.direction,n)}function M(t,n,r=a()){return(0,i.c)(r.origin,t),(0,i.d)(r.direction,n,t),r}function l(t,n){const r=(0,i.h)(c.rq.get(),(0,i.n)(c.rq.get(),t.direction),(0,i.d)(c.rq.get(),n,t.origin));return(0,i.e)(r,r)}function m(t,n,r){const e=(0,i.e)(t.direction,(0,i.d)(r,n,t.origin));return(0,i.f)(r,t.origin,(0,i.g)(r,t.direction,e)),r}const d=new e.I((()=>a()));(0,u.vt)(),(0,u.vt)(),(0,u.vt)(),(0,o.vt)()},77690:(t,n,r)=>{r.d(n,{B8:()=>c,Ge:()=>M,I0:()=>h,KC:()=>a,hZ:()=>i,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,r,e,o,i,u,c,a,s){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=i,t[5]=u,t[6]=c,t[7]=a,t[8]=s,t}function u(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function c(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=n[4],c=n[5],a=n[6],s=n[7],f=n[8],h=f*u-c*s,M=-f*i+c*a,l=s*i-u*a;let m=r*h+e*M+o*l;return m?(m=1/m,t[0]=h*m,t[1]=(-f*e+o*s)*m,t[2]=(c*e-o*u)*m,t[3]=M*m,t[4]=(f*r-o*a)*m,t[5]=(-c*r+o*i)*m,t[6]=l*m,t[7]=(-s*r+e*a)*m,t[8]=(u*r-e*i)*m,t):null}function a(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=n[4],c=n[5],a=n[6],s=n[7],f=n[8];return t[0]=u*f-c*s,t[1]=o*s-e*f,t[2]=e*c-o*u,t[3]=c*a-i*f,t[4]=r*f-o*a,t[5]=o*i-r*c,t[6]=i*s-u*a,t[7]=e*a-r*s,t[8]=r*u-e*i,t}function s(t,n,r){const e=n[0],o=n[1],i=n[2],u=n[3],c=n[4],a=n[5],s=n[6],f=n[7],h=n[8],M=r[0],l=r[1],m=r[2],d=r[3],g=r[4],b=r[5],_=r[6],v=r[7],p=r[8];return t[0]=M*e+l*u+m*s,t[1]=M*o+l*c+m*f,t[2]=M*i+l*a+m*h,t[3]=d*e+g*u+b*s,t[4]=d*o+g*c+b*f,t[5]=d*i+g*a+b*h,t[6]=_*e+v*u+p*s,t[7]=_*o+v*c+p*f,t[8]=_*i+v*a+p*h,t}function f(t,n,r){const e=r[0],o=r[1],i=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function h(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=r+r,c=e+e,a=o+o,s=r*u,f=e*u,h=e*c,M=o*u,l=o*c,m=o*a,d=i*u,g=i*c,b=i*a;return t[0]=1-h-m,t[3]=f-b,t[6]=M+g,t[1]=f+b,t[4]=1-s-m,t[7]=l-d,t[2]=M-g,t[5]=l+d,t[8]=1-s-h,t}function M(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=n[4],c=n[5],a=n[6],s=n[7],f=n[8],h=n[9],M=n[10],l=n[11],m=n[12],d=n[13],g=n[14],b=n[15],_=r*c-e*u,v=r*a-o*u,p=r*s-i*u,q=e*a-o*c,y=e*s-i*c,x=o*s-i*a,P=f*d-h*m,S=f*g-M*m,j=f*b-l*m,O=h*g-M*d,T=h*b-l*d,w=M*b-l*g;let z=_*w-v*T+p*O+q*j-y*S+x*P;return z?(z=1/z,t[0]=(c*w-a*T+s*O)*z,t[1]=(a*j-u*w-s*S)*z,t[2]=(u*T-c*j+s*P)*z,t[3]=(o*T-e*w-i*O)*z,t[4]=(r*w-o*j+i*S)*z,t[5]=(e*j-r*T-i*P)*z,t[6]=(d*x-g*y+b*q)*z,t[7]=(g*p-m*x-b*v)*z,t[8]=(m*y-d*p+b*_)*z,t):null}function l(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const m=s,d=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:a,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],i=t[4],u=t[5],c=t[6],a=t[7],s=t[8];return n*(s*i-u*a)+r*(-s*o+u*c)+e*(a*o-i*c)},equals:function(t,n){const r=t[0],o=t[1],i=t[2],u=t[3],c=t[4],a=t[5],s=t[6],f=t[7],h=t[8],M=n[0],l=n[1],m=n[2],d=n[3],g=n[4],b=n[5],_=n[6],v=n[7],p=n[8],q=(0,e.FD)();return Math.abs(r-M)<=q*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(o-l)<=q*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-m)<=q*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(u-d)<=q*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(c-g)<=q*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(a-b)<=q*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(s-_)<=q*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(f-v)<=q*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-p)<=q*Math.max(1,Math.abs(h),Math.abs(p))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],o=t[1],i=t[2],u=t[3],c=t[4],a=t[5],s=t[6],f=t[7],h=t[8];return Math.abs(1-(r*r+u*u+s*s))<=n&&Math.abs(1-(o*o+c*c+f*f))<=n&&Math.abs(1-(i*i+a*a+h*h))<=n},mul:m,multiply:s,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],i=n[4],u=n[5],c=n[6],a=n[8],s=n[9],f=n[10],h=f*u-c*s,M=-f*i+c*a,l=s*i-u*a,m=r*h+e*M+o*l;if(!m)return null;const d=1/m;return t[0]=h*d,t[1]=(-f*e+o*s)*d,t[2]=(c*e-o*u)*d,t[3]=M*d,t[4]=(f*r-o*a)*d,t[5]=(-c*r+o*i)*d,t[6]=l*d,t[7]=(-s*r+e*a)*d,t[8]=(u*r-e*i)*d,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],i=n[2],u=n[3],c=n[4],a=n[5],s=n[6],f=n[7],h=n[8],M=Math.sin(r),l=Math.cos(r);return t[0]=l*e+M*u,t[1]=l*o+M*c,t[2]=l*i+M*a,t[3]=l*u-M*e,t[4]=l*c-M*o,t[5]=l*a-M*i,t[6]=s,t[7]=f,t[8]=h,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:d,subtract:l,translate:function(t,n,r){const e=n[0],o=n[1],i=n[2],u=n[3],c=n[4],a=n[5],s=n[6],f=n[7],h=n[8],M=r[0],l=r[1];return t[0]=e,t[1]=o,t[2]=i,t[3]=u,t[4]=c,t[5]=a,t[6]=M*e+l*u+s,t[7]=M*o+l*c+f,t[8]=M*i+l*a+h,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},97937:(t,n,r)=>{r.d(n,{a:()=>q,c:()=>g,e:()=>v,f:()=>y,g:()=>p,k:()=>O,o:()=>V,s:()=>D}),r(44208),r(53966);var e=r(34727),o=r(58083),i=r(38954),u=r(51850),c=r(87317),a=r(91829),s=r(34304),f=r(88582),h=r(71351);function M(t,n){const r=(0,i.l)(t),o=(0,e.YN)(t[2]/r),u=Math.atan2(t[1]/r,t[0]/r);return(0,i.i)(n,r,o,u),n}var l=r(44280),m=r(32114);const d=g();function g(){return(0,a.vt)()}const b=c.e,_=c.e;function v(t,n){return(0,c.c)(n,t)}function p(t){return t[3]}function q(t){return t}function y(t,n,r,e){return(0,a.fA)(t,n,r,e)}function x(t,n,r){if(null==n)return!1;if(!S(t,n,P))return!1;let{t0:e,t1:o}=P;if((e<0||o<e&&o>0)&&(e=o),e<0)return!1;if(r){const{origin:t,direction:o}=n;r[0]=t[0]+o[0]*e,r[1]=t[1]+o[1]*e,r[2]=t[2]+o[2]*e}return!0}const P={t0:0,t1:0};function S(t,n,r){const{origin:e,direction:o}=n,i=j;i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2];const u=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===u)return!1;const c=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),a=c*c-4*u*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(a<0)return!1;const s=Math.sqrt(a);return r.t0=(-c-s)/(2*u),r.t1=(-c+s)/(2*u),!0}const j=(0,u.vt)();function O(t,n){return x(t,n,null)}function T(t,n,r){const e=m.rq.get(),u=m.Rc.get();(0,i.h)(e,n.origin,n.direction);const c=p(t);(0,i.h)(r,e,n.origin),(0,i.g)(r,r,1/(0,i.l)(r)*c);const a=z(t,n.origin),s=(0,l.g7)(n.origin,r);return(0,o.$0)(u,s+a,e),(0,i.t)(r,r,u),r}function w(t,n,r){const e=(0,i.d)(m.rq.get(),n,t),o=(0,i.g)(m.rq.get(),e,t[3]/(0,i.l)(e));return(0,i.f)(r,o,t)}function z(t,n){const r=(0,i.d)(m.rq.get(),n,t),o=(0,i.l)(r),u=p(t),c=u+Math.abs(u-o);return(0,e.XM)(u/c)}const A=(0,u.vt)();function C(t,n,r,e){const o=(0,i.d)(A,n,t);switch(r){case f._.X:{const t=M(o,A)[2];return(0,i.i)(e,-Math.sin(t),Math.cos(t),0)}case f._.Y:{const t=M(o,A),n=t[1],r=t[2],u=Math.sin(n);return(0,i.i)(e,-u*Math.cos(r),-u*Math.sin(r),Math.cos(n))}case f._.Z:return(0,i.n)(e,o);default:return}}function I(t,n){const r=(0,i.d)(E,n,t);return(0,i.l)(r)-t[3]}function V(t,n){const r=(0,i.s)(t,n),e=p(t);return r<=e*e}const E=(0,u.vt)(),R=g(),D=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:d,altitudeAt:I,angleToSilhouette:z,axisAt:C,cameraFrustumCoverage:function(t,n,r,e){const o=p(t),i=o*o,u=n+.5*Math.PI,c=r*r+i-2*Math.cos(u)*r*o,a=Math.sqrt(c),s=c-i;if(s<=0)return.5;const f=Math.sqrt(s),h=Math.acos(f/a)-Math.asin(o/(a/Math.sin(u)));return Math.min(1,(h+.5*e)/e)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,n,r){return x(t,n,r)?r:((0,h.oC)(n,t,r),w(t,r,r))},closestPointOnSilhouette:T,containsPoint:V,copy:v,create:g,distanceToSilhouette:function(t,n){const r=(0,i.d)(m.rq.get(),n,t),e=(0,i.k)(r),o=t[3]*t[3];return Math.sqrt(Math.abs(e-o))},elevate:function(t,n,r){return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),r[3]=t[3]+n,r},equals:_,exactEquals:b,fromCenterAndRadius:function(t,n){return(0,a.fA)(t[0],t[1],t[2],n)},fromRadius:function(t,n){return t[0]=t[1]=t[2]=0,t[3]=n,t},fromValues:y,getCenter:q,getExtent:function(t,n){return n},getRadius:p,intersectLine:function(t,n,r){const e=(0,h.Cr)(n,r);if(!S(t,e,P))return[];const{origin:o,direction:c}=e,{t0:a,t1:f}=P,M=n=>{const r=(0,u.vt)();return(0,i.b)(r,o,c,n),w(t,r,r)};return Math.abs(a-f)<(0,s.FD)()?[M(a)]:[M(a),M(f)]},intersectRay:x,intersectRayClosestSilhouette:function(t,n,r){if(x(t,n,r))return r;const e=T(t,n,m.rq.get());return(0,i.f)(r,n.origin,(0,i.g)(m.rq.get(),n.direction,(0,i.j)(n.origin,e)/(0,i.l)(n.direction))),r},intersectsRay:O,projectPoint:w,setAltitudeAt:function(t,n,r,e){const o=I(t,n),u=C(t,n,f._.Z,E),c=(0,i.g)(E,u,r-o);return(0,i.f)(e,n,c)},setExtent:function(t,n,r){return t!==r&&v(t,r),r},tmpSphere:R,union:function(t,n,r=(0,a.vt)()){const e=(0,i.j)(t,n),o=t[3],u=n[3];return e+u<o?((0,c.c)(r,t),r):e+o<u?((0,c.c)(r,n),r):((0,i.m)(r,t,n,(e+u-o)/(2*e)),r[3]=(e+o+u)/2,r)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7937],{4341:(t,n,r)=>{r.d(n,{I:()=>o});var e=r(26390);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,e.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},9093:(t,n,r)=>{function e(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:e,fromValues:function(t,n,r,e,o,i,u,c,a,s,f,h,M,l,m,d){return[t,n,r,e,o,i,u,c,a,s,f,h,M,l,m,d]}},Symbol.toStringTag,{value:"Module"}))},29242:(t,n,r)=>{function e(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,e,o,i,u,c,a){return[t,n,r,e,o,i,u,c,a]}r.d(n,{fA:()=>o,vt:()=>e,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:o},Symbol.toStringTag,{value:"Module"}))},32114:(t,n,r)=>{r.d(n,{Rc:()=>l,J8:()=>m,rq:()=>h,Km:()=>M}),r(44208);var e=r(26390),o=r(29242),i=r(9093),u=r(82534),c=r(48163),a=r(51850),s=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(c.vt)}static createVec3f64(){return new f(a.vt)}static createVec4f64(){return new f(s.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(i.vt)}static createQuatf64(){return new f(u.vt)}get test(){}}f.createVec2f64();const h=f.createVec3f64(),M=f.createVec4f64(),l=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},38954:(t,n,r)=>{r.d(n,{A:()=>m,B:()=>l,C:()=>f,D:()=>h,E:()=>I,F:()=>D,H:()=>k,a:()=>V,b:()=>b,c:()=>u,d:()=>s,e:()=>P,f:()=>a,g:()=>g,h:()=>S,i:()=>c,j:()=>_,k:()=>p,l:()=>i,m:()=>j,n:()=>x,o:()=>T,q:()=>C,r:()=>y,s:()=>v,t:()=>O,u:()=>q,v:()=>w,w:()=>M,x:()=>N,y:()=>F,z:()=>d});var e=r(51850),o=r(34304);function i(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function c(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function a(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function M(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function d(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function g(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function b(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function _(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function p(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function q(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const r=n[0],e=n[1],o=n[2];let i=r*r+e*e+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,r){const e=n[0],o=n[1],i=n[2],u=r[0],c=r[1],a=r[2];return t[0]=o*a-i*c,t[1]=i*u-e*a,t[2]=e*c-o*u,t}function j(t,n,r,e){const o=n[0],i=n[1],u=n[2];return t[0]=o+e*(r[0]-o),t[1]=i+e*(r[1]-i),t[2]=u+e*(r[2]-u),t}function O(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*i+r[12],t[1]=r[1]*e+r[5]*o+r[9]*i+r[13],t[2]=r[2]*e+r[6]*o+r[10]*i+r[14],t}function T(t,n,r){const e=n[0],o=n[1],i=n[2];return t[0]=e*r[0]+o*r[3]+i*r[6],t[1]=e*r[1]+o*r[4]+i*r[7],t[2]=e*r[2]+o*r[5]+i*r[8],t}function w(t,n,r){const e=r[0],o=r[1],i=r[2],u=r[3],c=n[0],a=n[1],s=n[2],f=o*s-i*a,h=i*c-e*s,M=e*a-o*c,l=o*M-i*h,m=i*f-e*M,d=e*h-o*f,g=2*u;return t[0]=c+f*g+2*l,t[1]=a+h*g+2*m,t[2]=s+M*g+2*d,t}const z=(0,e.vt)(),A=(0,e.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function I(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],i=r[2]-n[2];let u=e*e+o*o+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=e*u,t[1]=o*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const V=s,E=f,R=h,D=_,N=v,k=i,F=p;Object.freeze(Object.defineProperty({__proto__:null,abs:M,add:a,angle:function(t,n){x(z,t),x(A,n);const r=P(z,A);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,i){const u=1-i,c=u*u,a=i*i,s=c*u,f=3*i*c,h=3*a*u,M=a*i;return t[0]=n[0]*s+r[0]*f+e[0]*h+o[0]*M,t[1]=n[1]*s+r[1]*f+e[1]*h+o[1]*M,t[2]=n[2]*s+r[2]*f+e[2]*h+o[2]*M,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:u,cross:S,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],i=n[2],u=r[0],c=r[1],a=r[2],s=o*a-i*c,f=i*u-e*a,h=e*c-o*u,M=Math.sqrt(s*s+f*f+h*h);return t[0]=s/M,t[1]=f/M,t[2]=h/M,t},direction:I,dist:D,distance:_,div:R,divide:h,dot:P,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],i=t[2],u=n[0],c=n[1],a=n[2],s=(0,o.FD)();return Math.abs(r-u)<=s*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-c)<=s*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(i-a)<=s*Math.max(1,Math.abs(i),Math.abs(a))},exactEquals:C,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,o,i){const u=i*i,c=u*(2*i-3)+1,a=u*(i-2)+i,s=u*(i-1),f=u*(3-2*i);return t[0]=n[0]*c+r[0]*a+e[0]*s+o[0]*f,t[1]=n[1]*c+r[1]*a+e[1]*s+o[1]*f,t[2]=n[2]*c+r[2]*a+e[2]*s+o[2]*f,t},inverse:y,len:k,length:i,lerp:j,max:d,min:m,mul:E,multiply:f,negate:q,normalize:x,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=i*n,t},rotateX:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),i[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),i[1]=o[1],i[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],i=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],i[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),i[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),i[2]=o[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:b,set:c,sign:l,sqrDist:N,sqrLen:F,squaredDistance:v,squaredLength:p,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:V,subtract:s,transformMat3:T,transformMat4:O,transformQuat:w},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,r)=>{r.d(n,{EJ:()=>a,g7:()=>c,gr:()=>u});var e=r(34727),o=r(38954),i=r(51850);function u(t,n){return(0,o.e)(t,n)/(0,o.l)(t)}function c(t,n){const r=(0,o.e)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,e.XM)(r)}function a(t,n,r){(0,o.n)(s,t),(0,o.n)(f,n);const i=(0,o.e)(s,f),u=(0,e.XM)(i),c=(0,o.h)(s,s,f);return(0,o.e)(c,r)<0?2*Math.PI-u:u}const s=(0,i.vt)(),f=(0,i.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function u(){return o(1,0)}function c(){return o(0,1)}r.d(n,{Un:()=>a,fA:()=>o,vt:()=>e});const a=i(),s=u(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:a,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:o,ones:i,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},71351:(t,n,r)=>{r.d(n,{C:()=>h,Cr:()=>M,LV:()=>f,kb:()=>l,oC:()=>m,vt:()=>a}),r(4576);var e=r(4341),o=(r(77690),r(29242)),i=r(38954),u=r(51850),c=r(32114);function a(t){return t?s((0,u.o8)(t.origin),(0,u.o8)(t.direction)):s((0,u.vt)(),(0,u.vt)())}function s(t,n){return{origin:t,direction:n}}function f(t,n){const r=d.get();return r.origin=t,r.direction=n,r}function h(t,n=a()){return function(t,n,r=a()){return(0,i.c)(r.origin,t),(0,i.c)(r.direction,n),r}(t.origin,t.direction,n)}function M(t,n,r=a()){return(0,i.c)(r.origin,t),(0,i.d)(r.direction,n,t),r}function l(t,n){const r=(0,i.h)(c.rq.get(),(0,i.n)(c.rq.get(),t.direction),(0,i.d)(c.rq.get(),n,t.origin));return(0,i.e)(r,r)}function m(t,n,r){const e=(0,i.e)(t.direction,(0,i.d)(r,n,t.origin));return(0,i.f)(r,t.origin,(0,i.g)(r,t.direction,e)),r}const d=new e.I((()=>a()));(0,u.vt)(),(0,u.vt)(),(0,u.vt)(),(0,o.vt)()},77690:(t,n,r)=>{r.d(n,{B8:()=>c,Ge:()=>M,I0:()=>h,KC:()=>a,hZ:()=>i,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,r,e,o,i,u,c,a,s){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=i,t[5]=u,t[6]=c,t[7]=a,t[8]=s,t}function u(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function c(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=n[4],c=n[5],a=n[6],s=n[7],f=n[8],h=f*u-c*s,M=-f*i+c*a,l=s*i-u*a;let m=r*h+e*M+o*l;return m?(m=1/m,t[0]=h*m,t[1]=(-f*e+o*s)*m,t[2]=(c*e-o*u)*m,t[3]=M*m,t[4]=(f*r-o*a)*m,t[5]=(-c*r+o*i)*m,t[6]=l*m,t[7]=(-s*r+e*a)*m,t[8]=(u*r-e*i)*m,t):null}function a(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=n[4],c=n[5],a=n[6],s=n[7],f=n[8];return t[0]=u*f-c*s,t[1]=o*s-e*f,t[2]=e*c-o*u,t[3]=c*a-i*f,t[4]=r*f-o*a,t[5]=o*i-r*c,t[6]=i*s-u*a,t[7]=e*a-r*s,t[8]=r*u-e*i,t}function s(t,n,r){const e=n[0],o=n[1],i=n[2],u=n[3],c=n[4],a=n[5],s=n[6],f=n[7],h=n[8],M=r[0],l=r[1],m=r[2],d=r[3],g=r[4],b=r[5],_=r[6],v=r[7],p=r[8];return t[0]=M*e+l*u+m*s,t[1]=M*o+l*c+m*f,t[2]=M*i+l*a+m*h,t[3]=d*e+g*u+b*s,t[4]=d*o+g*c+b*f,t[5]=d*i+g*a+b*h,t[6]=_*e+v*u+p*s,t[7]=_*o+v*c+p*f,t[8]=_*i+v*a+p*h,t}function f(t,n,r){const e=r[0],o=r[1],i=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function h(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=r+r,c=e+e,a=o+o,s=r*u,f=e*u,h=e*c,M=o*u,l=o*c,m=o*a,d=i*u,g=i*c,b=i*a;return t[0]=1-h-m,t[3]=f-b,t[6]=M+g,t[1]=f+b,t[4]=1-s-m,t[7]=l-d,t[2]=M-g,t[5]=l+d,t[8]=1-s-h,t}function M(t,n){const r=n[0],e=n[1],o=n[2],i=n[3],u=n[4],c=n[5],a=n[6],s=n[7],f=n[8],h=n[9],M=n[10],l=n[11],m=n[12],d=n[13],g=n[14],b=n[15],_=r*c-e*u,v=r*a-o*u,p=r*s-i*u,q=e*a-o*c,y=e*s-i*c,x=o*s-i*a,P=f*d-h*m,S=f*g-M*m,j=f*b-l*m,O=h*g-M*d,T=h*b-l*d,w=M*b-l*g;let z=_*w-v*T+p*O+q*j-y*S+x*P;return z?(z=1/z,t[0]=(c*w-a*T+s*O)*z,t[1]=(a*j-u*w-s*S)*z,t[2]=(u*T-c*j+s*P)*z,t[3]=(o*T-e*w-i*O)*z,t[4]=(r*w-o*j+i*S)*z,t[5]=(e*j-r*T-i*P)*z,t[6]=(d*x-g*y+b*q)*z,t[7]=(g*p-m*x-b*v)*z,t[8]=(m*y-d*p+b*_)*z,t):null}function l(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const m=s,d=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:a,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],i=t[4],u=t[5],c=t[6],a=t[7],s=t[8];return n*(s*i-u*a)+r*(-s*o+u*c)+e*(a*o-i*c)},equals:function(t,n){const r=t[0],o=t[1],i=t[2],u=t[3],c=t[4],a=t[5],s=t[6],f=t[7],h=t[8],M=n[0],l=n[1],m=n[2],d=n[3],g=n[4],b=n[5],_=n[6],v=n[7],p=n[8],q=(0,e.FD)();return Math.abs(r-M)<=q*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(o-l)<=q*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-m)<=q*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(u-d)<=q*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(c-g)<=q*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(a-b)<=q*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(s-_)<=q*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(f-v)<=q*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-p)<=q*Math.max(1,Math.abs(h),Math.abs(p))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],o=t[1],i=t[2],u=t[3],c=t[4],a=t[5],s=t[6],f=t[7],h=t[8];return Math.abs(1-(r*r+u*u+s*s))<=n&&Math.abs(1-(o*o+c*c+f*f))<=n&&Math.abs(1-(i*i+a*a+h*h))<=n},mul:m,multiply:s,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],i=n[4],u=n[5],c=n[6],a=n[8],s=n[9],f=n[10],h=f*u-c*s,M=-f*i+c*a,l=s*i-u*a,m=r*h+e*M+o*l;if(!m)return null;const d=1/m;return t[0]=h*d,t[1]=(-f*e+o*s)*d,t[2]=(c*e-o*u)*d,t[3]=M*d,t[4]=(f*r-o*a)*d,t[5]=(-c*r+o*i)*d,t[6]=l*d,t[7]=(-s*r+e*a)*d,t[8]=(u*r-e*i)*d,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],i=n[2],u=n[3],c=n[4],a=n[5],s=n[6],f=n[7],h=n[8],M=Math.sin(r),l=Math.cos(r);return t[0]=l*e+M*u,t[1]=l*o+M*c,t[2]=l*i+M*a,t[3]=l*u-M*e,t[4]=l*c-M*o,t[5]=l*a-M*i,t[6]=s,t[7]=f,t[8]=h,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:d,subtract:l,translate:function(t,n,r){const e=n[0],o=n[1],i=n[2],u=n[3],c=n[4],a=n[5],s=n[6],f=n[7],h=n[8],M=r[0],l=r[1];return t[0]=e,t[1]=o,t[2]=i,t[3]=u,t[4]=c,t[5]=a,t[6]=M*e+l*u+s,t[7]=M*o+l*c+f,t[8]=M*i+l*a+h,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>i});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},97937:(t,n,r)=>{r.d(n,{a:()=>q,c:()=>g,f:()=>y,g:()=>p,h:()=>v,k:()=>O,o:()=>V,s:()=>D}),r(44208),r(53966);var e=r(34727),o=r(58083),i=r(38954),u=r(51850),c=r(87317),a=r(91829),s=r(34304),f=r(88582),h=r(71351);function M(t,n){const r=(0,i.l)(t),o=(0,e.YN)(t[2]/r),u=Math.atan2(t[1]/r,t[0]/r);return(0,i.i)(n,r,o,u),n}var l=r(44280),m=r(32114);const d=g();function g(){return(0,a.vt)()}const b=c.e,_=c.e;function v(t,n){return(0,c.c)(n,t)}function p(t){return t[3]}function q(t){return t}function y(t,n,r,e){return(0,a.fA)(t,n,r,e)}function x(t,n,r){if(null==n)return!1;if(!S(t,n,P))return!1;let{t0:e,t1:o}=P;if((e<0||o<e&&o>0)&&(e=o),e<0)return!1;if(r){const{origin:t,direction:o}=n;r[0]=t[0]+o[0]*e,r[1]=t[1]+o[1]*e,r[2]=t[2]+o[2]*e}return!0}const P={t0:0,t1:0};function S(t,n,r){const{origin:e,direction:o}=n,i=j;i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2];const u=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===u)return!1;const c=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),a=c*c-4*u*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(a<0)return!1;const s=Math.sqrt(a);return r.t0=(-c-s)/(2*u),r.t1=(-c+s)/(2*u),!0}const j=(0,u.vt)();function O(t,n){return x(t,n,null)}function T(t,n,r){const e=m.rq.get(),u=m.Rc.get();(0,i.h)(e,n.origin,n.direction);const c=p(t);(0,i.h)(r,e,n.origin),(0,i.g)(r,r,1/(0,i.l)(r)*c);const a=z(t,n.origin),s=(0,l.g7)(n.origin,r);return(0,o.$0)(u,s+a,e),(0,i.t)(r,r,u),r}function w(t,n,r){const e=(0,i.d)(m.rq.get(),n,t),o=(0,i.g)(m.rq.get(),e,t[3]/(0,i.l)(e));return(0,i.f)(r,o,t)}function z(t,n){const r=(0,i.d)(m.rq.get(),n,t),o=(0,i.l)(r),u=p(t),c=u+Math.abs(u-o);return(0,e.XM)(u/c)}const A=(0,u.vt)();function C(t,n,r,e){const o=(0,i.d)(A,n,t);switch(r){case f._.X:{const t=M(o,A)[2];return(0,i.i)(e,-Math.sin(t),Math.cos(t),0)}case f._.Y:{const t=M(o,A),n=t[1],r=t[2],u=Math.sin(n);return(0,i.i)(e,-u*Math.cos(r),-u*Math.sin(r),Math.cos(n))}case f._.Z:return(0,i.n)(e,o);default:return}}function I(t,n){const r=(0,i.d)(E,n,t);return(0,i.l)(r)-t[3]}function V(t,n){const r=(0,i.s)(t,n),e=p(t);return r<=e*e}const E=(0,u.vt)(),R=g(),D=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:d,altitudeAt:I,angleToSilhouette:z,axisAt:C,cameraFrustumCoverage:function(t,n,r,e){const o=p(t),i=o*o,u=n+.5*Math.PI,c=r*r+i-2*Math.cos(u)*r*o,a=Math.sqrt(c),s=c-i;if(s<=0)return.5;const f=Math.sqrt(s),h=Math.acos(f/a)-Math.asin(o/(a/Math.sin(u)));return Math.min(1,(h+.5*e)/e)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,n,r){return x(t,n,r)?r:((0,h.oC)(n,t,r),w(t,r,r))},closestPointOnSilhouette:T,containsPoint:V,copy:v,create:g,distanceToSilhouette:function(t,n){const r=(0,i.d)(m.rq.get(),n,t),e=(0,i.k)(r),o=t[3]*t[3];return Math.sqrt(Math.abs(e-o))},elevate:function(t,n,r){return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),r[3]=t[3]+n,r},equals:_,exactEquals:b,fromCenterAndRadius:function(t,n){return(0,a.fA)(t[0],t[1],t[2],n)},fromRadius:function(t,n){return t[0]=t[1]=t[2]=0,t[3]=n,t},fromValues:y,getCenter:q,getExtent:function(t,n){return n},getRadius:p,intersectLine:function(t,n,r){const e=(0,h.Cr)(n,r);if(!S(t,e,P))return[];const{origin:o,direction:c}=e,{t0:a,t1:f}=P,M=n=>{const r=(0,u.vt)();return(0,i.b)(r,o,c,n),w(t,r,r)};return Math.abs(a-f)<(0,s.FD)()?[M(a)]:[M(a),M(f)]},intersectRay:x,intersectRayClosestSilhouette:function(t,n,r){if(x(t,n,r))return r;const e=T(t,n,m.rq.get());return(0,i.f)(r,n.origin,(0,i.g)(m.rq.get(),n.direction,(0,i.j)(n.origin,e)/(0,i.l)(n.direction))),r},intersectsRay:O,projectPoint:w,setAltitudeAt:function(t,n,r,e){const o=I(t,n),u=C(t,n,f._.Z,E),c=(0,i.g)(E,u,r-o);return(0,i.f)(e,n,c)},setExtent:function(t,n,r){return t!==r&&v(t,r),r},tmpSphere:R,union:function(t,n,r=(0,a.vt)()){const e=(0,i.j)(t,n),o=t[3],u=n[3];return e+u<o?((0,c.c)(r,t),r):e+o<u?((0,c.c)(r,n),r):((0,i.m)(r,t,n,(e+u-o)/(2*e)),r[3]=(e+o+u)/2,r)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3186,9875],{17311:(e,t,r)=>{r.d(t,{A:()=>y});var s=r(90237),i=r(69622),o=r(4576),n=r(60999),a=r(5503),l=r(10107),u=(r(44208),r(53966),r(40608)),p=r(30524),d=r(43668);let y=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)((()=>(0,d.l)())):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9926)]).then(r.bind(r,29926)).then((e=>this._featureUtils=e))}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter((t=>e.includes(`{expression/${t.name.toLowerCase()}}`)))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some((e=>!0===e.invalid))}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),s=this.fieldsIndex.get(r.at(-1)??"");s&&e.add(s.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){return(await this.getTitles(e,[t],r)).get(t)??""}async getTitles(e,t,r){const s=new Map,i=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:a}=this,l=a&&n;t.forEach((t=>{const r=l?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:a}):"";s.set(t,r)}))}catch{}return s}async _checkAndReQueryGraphics(e,t){const r=t.map((t=>t.getObjectId()??t.attributes[e.objectIdField])).filter(o.Ru);if(r.length!==t.length)return t;if(t.some((e=>!(0,p.Kl)(e,this.requiredFields)))){const s=e.createQuery();s.where="1=1",s.outFields=[...this.requiredFields],s.objectIds=r;const i=await e.queryFeatures(s);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),s=e?.name??r.fieldName;r.fieldName=s,t.set(s.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const s=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:s,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter((e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/"))))}};(0,s._)([(0,l.MZ)({readOnly:!0})],y.prototype,"_arcadeTask",null),(0,s._)([(0,l.MZ)()],y.prototype,"_featureUtils",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],y.prototype,"featureUtilsPromise",null),(0,s._)([(0,l.MZ)({readOnly:!0})],y.prototype,"calculatedExpressions",null),(0,s._)([(0,l.MZ)()],y.prototype,"displayField",void 0),(0,s._)([(0,l.MZ)()],y.prototype,"effectivePopupTemplate",void 0),(0,s._)([(0,l.MZ)()],y.prototype,"expressionsUsedInTitle",null),(0,s._)([(0,l.MZ)()],y.prototype,"fieldsIndex",void 0),(0,s._)([(0,l.MZ)()],y.prototype,"fieldInfoMap",null),(0,s._)([(0,l.MZ)()],y.prototype,"fields",void 0),(0,s._)([(0,l.MZ)()],y.prototype,"objectIdField",void 0),(0,s._)([(0,l.MZ)()],y.prototype,"requiredFields",null),y=(0,s._)([(0,u.$)("esri.layers.support.TitleCreator")],y)},22671:(e,t,r)=>{r.d(t,{A:()=>_});var s,i=r(90237),o=r(52106),n=r(66552),a=r(25482),l=r(4718),u=r(10107),p=(r(44208),r(53966),r(36005)),d=r(40608),y=r(43937),c=r(16930),h=r(65864),f=r(50498),m=r(20437);const g=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=s=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,h.rS)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=c.A.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,i]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)n?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,i],scale:[o,n]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*o+s),(e=>i-e*n),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const s=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],n=r.fromJSON(o),a=o.geometry?.spatialReference;null==n.geometry||a||(n.geometry.spatialReference=s);const l=o.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=s)}i.push(n)}return i}_quantizePoints(e,t,r){let s,i;const o=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===s&&n===i||(o.push([e-s,n-i]),s=e,i=n)}else s=t(a[0]),i=r(a[1]),o.push([s,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,h.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=s.length;e<o;e++){const o=s[e],n=this._quantizePoints(o,t,r);n&&i.push(n)}return i.length>0?((0,h.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,h.Bi)(e)?e.rings:e.paths;let n,a;for(let e=0,s=o.length;e<s;e++){const s=o[e];for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(n+=i[0],a+=i[1]):(n=i[0],a=i[1]),i[0]=t(n),i[1]=r(a)}}if(s&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=i(r[3])}}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let n,a;for(let e=0,s=o.length;e<s;e++){const s=o[e];e>0?(n+=s[0],a+=s[1]):(n=s[0],a=s[1]),s[0]=t(n),s[1]=r(a)}if(s&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2]),t[3]=i(t[3])}else if(s)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=s(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,i._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,u.MZ)({type:[o.A],json:{write:!0}})],_.prototype,"features",void 0),(0,i._)([(0,p.w)("features")],_.prototype,"readFeatures",null),(0,i._)([(0,u.MZ)({type:[m.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,i._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],_.prototype,"geometryType",void 0),(0,i._)([(0,y.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,i._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,i._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,i._)([(0,u.MZ)({types:f.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,i._)([(0,p.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,i._)([(0,u.MZ)({type:c.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,i._)([(0,y.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,i._)([(0,u.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=s=(0,i._)([(0,d.$)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0},24212:(e,t,r)=>{function s(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?l:u}(e).mode}(null==e||(e.hasZ??!1),t)}function i(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function n(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{$7:()=>o,B:()=>i,XF:()=>a,tW:()=>n,w7:()=>s}),r(83047),r(16271);const l={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},27865:(e,t,r)=>{r.d(t,{O9:()=>o,dw:()=>n,mj:()=>i});var s=r(59247);function i(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function o(e,t){const r=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let e=i.length;e<r.length;e++)i.push((0,s.sK)(r[e]))}function n(e){const t=e[0];return!!t&&"type"in t}},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>p,ne:()=>u});var s=r(90237),i=r(93637),o=r(10107),n=(r(44208),r(53966),r(87811),r(40608)),a=r(91880);function l(e,t,r){if(!e)return null;const s=e.find((e=>!!e.field));if(!s)return null;const i=new a.A;return i.read(s,r),[i]}const u={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,s){const o=e.find((e=>!!e.field));o&&(0,i.sM)(r,[o.toJSON()],t)}}}},p=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,o.MZ)(u)],t.prototype,"orderBy",void 0),t=(0,s._)([(0,n.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,r)=>{r.d(t,{A:()=>y});var s=r(90237),i=r(69540),o=r(25482),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(43937),p=r(80451),d=r(29005);let y=class extends(i.A.ClonableMixin(o.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s._)([(0,n.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,s._)([(0,a.w)("domains")],y.prototype,"readDomains",null),(0,s._)([(0,u.K)("domains")],y.prototype,"writeDomains",null),(0,s._)([(0,n.MZ)({type:[d.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,s._)([(0,l.$)("esri.layers.support.FeatureType")],y)},38961:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(90237),i=r(5503),o=r(36708),n=r(10107),a=r(40608),l=r(80559);let u=class extends i.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)((()=>this._refresh()),o.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new i.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const s of t)if(s){if(r(s)){const t=this.indexOf(s,e);t>=0?t!==e&&this.reorder(s,e):this.add(s,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(s);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,s._)([(0,n.MZ)()],u.prototype,"getCollections",void 0),(0,s._)([(0,n.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,s._)([(0,n.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,s._)([(0,a.$)("esri.core.CollectionFlattener")],u)},41560:(e,t,r)=>{r.d(t,{Ch:()=>n,mW:()=>o});var s=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function n(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:s}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],d(s));return t}(e);if(o&&((0,s.gg)(t,o[0])||(0,s.ZH)(r,o[1])))return"";const n=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=p(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,s.ZH)(i,t)||(0,s.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,s.ZH)(p(i.minScale),d(r.maxScale)))return!0}return!1}(n,t,r)?"1=1":n.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,i.IW)(e,t)),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const s of e.filters)l(s.minScale,s.maxScale,t,r)&&(yield s)}}function l(e,t,r,i){return e=p(e),r=p(r),t=d(t),!(!(0,s.Sp)(r,e)&&(i??r)>e||(0,s.Hx)(t,r)||void 0!==i&&(0,s.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},45671:(e,t,r)=>{r.d(t,{D8:()=>o,TO:()=>i});var s=r(30524);async function i(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:i}=t,{objectIdField:o,typeIdField:n,globalIdField:a,relationships:l}=e;if(r.includes("*"))return["*"];const u=i?(0,s.eX)(e):[],p=(0,s.DB)(e.fieldsIndex,[...r,...u]);return n&&p.push(n),p&&o&&e.fieldsIndex?.has(o)&&!p.includes(o)&&p.push(o),p&&a&&e.fieldsIndex?.has(a)&&!p.includes(a)&&p.push(a),l&&l.forEach((t=>{const{keyField:r}=t;p&&r&&e.fieldsIndex?.has(r)&&!p.includes(r)&&p.push(r)})),p}function o(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}},50805:(e,t,r)=>{r.d(t,{L0:()=>g,Ot:()=>c,W4:()=>l,uV:()=>d});var s=r(90237),i=r(25482),o=r(10107),n=(r(44208),r(53966),r(87811),r(93223)),a=r(40608);let l=class extends i.A{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,s._)([(0,o.MZ)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,s._)([(0,o.MZ)({type:Number})],l.prototype,"rootIndex",void 0),(0,s._)([(0,o.MZ)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],l);let u=class extends i.A{constructor(){super(...arguments),this.factor=1}};(0,s._)([(0,o.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,s._)([(0,o.MZ)({type:Number})],u.prototype,"factor",void 0),u=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],u);let p=class extends i.A{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,s._)([(0,o.MZ)({type:[Number]})],p.prototype,"baseColorFactor",void 0),(0,s._)([(0,o.MZ)({type:u})],p.prototype,"baseColorTexture",void 0),(0,s._)([(0,o.MZ)({type:u})],p.prototype,"metallicRoughnessTexture",void 0),(0,s._)([(0,o.MZ)({type:Number})],p.prototype,"metallicFactor",void 0),(0,s._)([(0,o.MZ)({type:Number})],p.prototype,"roughnessFactor",void 0),p=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],p);let d=class extends i.A{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,s._)([(0,n.e)({opaque:"opaque",mask:"mask",blend:"blend"})],d.prototype,"alphaMode",void 0),(0,s._)([(0,o.MZ)({type:Number})],d.prototype,"alphaCutoff",void 0),(0,s._)([(0,o.MZ)({type:Boolean})],d.prototype,"doubleSided",void 0),(0,s._)([(0,n.e)({none:"none",back:"back",front:"front"})],d.prototype,"cullFace",void 0),(0,s._)([(0,o.MZ)({type:u})],d.prototype,"normalTexture",void 0),(0,s._)([(0,o.MZ)({type:u})],d.prototype,"occlusionTexture",void 0),(0,s._)([(0,o.MZ)({type:u})],d.prototype,"emissiveTexture",void 0),(0,s._)([(0,o.MZ)({type:[Number]})],d.prototype,"emissiveFactor",void 0),(0,s._)([(0,o.MZ)({type:p})],d.prototype,"pbrMetallicRoughness",void 0),d=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],d);let y=class extends i.A{};(0,s._)([(0,o.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],y.prototype,"name",void 0),(0,s._)([(0,n.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],y.prototype,"format",void 0),y=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],y);let c=class extends i.A{constructor(){super(...arguments),this.atlas=!1}};(0,s._)([(0,o.MZ)({type:[y]})],c.prototype,"formats",void 0),(0,s._)([(0,o.MZ)({type:Boolean})],c.prototype,"atlas",void 0),c=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],c);let h=class extends i.A{};(0,s._)([(0,n.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:Number})],h.prototype,"component",void 0),h=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],h);let f=class extends i.A{};(0,s._)([(0,n.e)({draco:"draco"})],f.prototype,"encoding",void 0),(0,s._)([(0,o.MZ)({type:[String]})],f.prototype,"attributes",void 0),f=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],f);let m=class extends i.A{constructor(){super(...arguments),this.offset=0}};(0,s._)([(0,o.MZ)({type:Number})],m.prototype,"offset",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"position",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"normal",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"uv0",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"color",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"uvRegion",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"featureId",void 0),(0,s._)([(0,o.MZ)({type:h})],m.prototype,"faceRange",void 0),(0,s._)([(0,o.MZ)({type:f})],m.prototype,"compressedAttributes",void 0),m=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],m);let g=class extends i.A{};(0,s._)([(0,n.e)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,s._)([(0,o.MZ)()],g.prototype,"geometryBuffers",void 0),g=(0,s._)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],g)},58501:(e,t,r)=>{r.d(t,{q:()=>i});var s=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,s.N)(r.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of r.features)i(e.geometry)}},59247:(e,t,r)=>{r.d(t,{bv:()=>l,Fk:()=>u,yG:()=>p,$b:()=>d,Nd:()=>y,jm:()=>c,sK:()=>m});var s=r(40876),i=r(90629);function o(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const n=o();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:o,fromValues:function(e,t,r,s,i,o,n,a,l,u,p,d,y,c,h,f){const m=new Float32Array(16);return m[0]=e,m[1]=t,m[2]=r,m[3]=s,m[4]=i,m[5]=o,m[6]=n,m[7]=a,m[8]=l,m[9]=u,m[10]=p,m[11]=d,m[12]=y,m[13]=c,m[14]=h,m[15]=f,m}},Symbol.toStringTag,{value:"Module"}));var a=r(58083);class l{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=h(e.strength,t.strength,r),this.radius=h(e.radius,t.radius,r),this.threshold=h(e.threshold,t.threshold,r)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:f(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(h(e.radius,t.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:f(this.radius)}}}class p{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=h(e.amount,t.amount,r),this._updateMatrix()}clone(){return new p(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||o();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,a.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,a.mg)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,a.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,a.mg)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=(e=>{const t=1-this.amount,r=(0,a.hZ)(e,.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1);return(0,a.mg)(r,r)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,s=(0,a.hZ)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,a.mg)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,a.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,a.mg)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=(e=>{const t=1-this.amount,r=(0,a.hZ)(e,.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1);return(0,a.mg)(r,r)})(e)}}}class d{constructor(e,t,r,s){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=h(e.offsetX,t.offsetX,r),this.offsetY=h(e.offsetY,t.offsetY,r),this.blurRadius=h(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(h(e.color[0],t.color[0],r)),this.color[1]=Math.round(h(e.color[1],t.color[1],r)),this.color[2]=Math.round(h(e.color[2],t.color[2],r)),this.color[3]=h(e.color[3],t.color[3],r)}clone(){return new d(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:f(this.offsetX),yoffset:f(this.offsetY),blurRadius:f(this.blurRadius),color:e}}}class y{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=h(e.angle,t.angle,r),this._updateMatrix()}clone(){return new y(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||o();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),s=Math.cos(t*Math.PI/180),i=(0,a.hZ)(e,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,a.mg)(i,i)})(e,this.angle)}}class c{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=h(e.amount,t.amount,r)}clone(){return new c(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function h(e,t,r){return e+(t-e)*r}function f(e){return Math.round(1e3*(0,i.PN)(e))/1e3}function m(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new p(e.type,0);case"saturate":case"brightness":case"contrast":return new p(e.type,1);case"opacity":return new c(1);case"hue-rotate":return new y(0);case"blur":return new u(0);case"drop-shadow":return new d(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new l(0,0,1)}}},81583:(e,t,r)=>{r.d(t,{L:()=>a,g:()=>n});var s=r(60999),i=r(5503),o=r(92474);async function n(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):i.A.isCollection(t)?t.forEach((e=>n(e))):o.A.isLoadable(t)&&r.push(t))};t(n);let a=null;if(await(0,s.Tj)(r,(async e=>{const t=await(0,s.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)})),a)throw a.error;return e}},88303:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ye});var s=r(90237),i=r(5503),o=r(38961),n=r(49186),a=r(36563),l=r(4718),u=r(81583),p=r(53966),d=r(92071),y=r(74887),c=r(36708),h=r(84952),f=r(10107),m=(r(44208),r(36005)),g=r(40608),_=r(16930),v=r(4146),b=r(52106),M=r(13874),w=r(78888),x=r(66552),S=r(92474),Z=r(61893),I=(r(87811),r(93223)),A=r(5443),F=r(13600),T=r(4902),O=r(56507),j=r(10873);let L=class extends(T.A.IdentifiableMixin(d.L)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,s._)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],L.prototype,"title",void 0),(0,s._)([(0,m.w)("service","title",["alias","name"])],L.prototype,"readTitle",null),(0,s._)([(0,f.MZ)()],L.prototype,"layer",void 0),(0,s._)([(0,f.MZ)({type:O.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],L.prototype,"id",void 0),(0,s._)([(0,m.w)("service","id")],L.prototype,"readIdOnlyOnce",null),(0,s._)([(0,f.MZ)((0,j.Qo)(String))],L.prototype,"modelName",void 0),(0,s._)([(0,f.MZ)((0,j.Qo)(Boolean))],L.prototype,"isEmpty",void 0),(0,s._)([(0,f.MZ)({type:Boolean,nonNullable:!0})],L.prototype,"legendEnabled",void 0),(0,s._)([(0,f.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],L.prototype,"visible",void 0),(0,s._)([(0,f.MZ)({type:Number,json:{write:!0}})],L.prototype,"opacity",void 0),L=(0,s._)([(0,g.$)("esri.layers.buildingSublayers.BuildingSublayer")],L);var P=r(4071),N=r(15426),R=r(17036),E=r(95466),k=r(30524),B=r(83898),q=r(50805),$=r(41214),C=r(61956),D=r(54218),U=r(30291),Q=r(88625),G=r(584),J=r(45671);const K=(0,R.p)();let V=class extends(S.A.LoadableMixin(Z.A.EsriPromiseMixin(L))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new E.A(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,s=t.associatedLayerID;return null!=r&&"number"==typeof s?new F.default({portalItem:r,customParameters:this.customParameters,layerId:s}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return""}get globalIdField(){if(null!=this.fields)for(const e of this.fields)if("global-id"===e.type)return e.name;return""}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,B.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,p.A.getLogger(this),t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,U.tn)(this,e)}async _fetchService(e){const t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,N.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:P.P,{query:t,operations:{supportsQuery:r},data:{supportsZ:s,supportsM:i,isVersioned:o}}=e;return{query:t,operations:{supportsQuery:r},data:{supportsZ:s,supportsM:i,isVersioned:o}}}createQuery(){const e=new C.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}async queryObjectIds(e,t){const r=await this._getAssociatedLayerForQuery();return(await r.queryObjectIds(e||this.createQuery(),t)).filter(D.Et)}async queryCachedAttributes(e,t){const r=(0,k.hL)(this.fieldsIndex,await(0,J.TO)(this,(0,J.D8)(this)));return(0,G.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new b.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"parsedUrl",null),(0,s._)([(0,f.MZ)({type:q.W4,readOnly:!0})],V.prototype,"nodePages",void 0),(0,s._)([(0,f.MZ)({type:[q.uV],readOnly:!0})],V.prototype,"materialDefinitions",void 0),(0,s._)([(0,f.MZ)({type:[q.Ot],readOnly:!0})],V.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,f.MZ)({type:[q.L0],readOnly:!0})],V.prototype,"geometryDefinitions",void 0),(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"store",void 0),(0,s._)([(0,f.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],V.prototype,"rootNode",void 0),(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"attributeStorageInfo",void 0),(0,s._)([(0,f.MZ)(K.fields)],V.prototype,"fields",void 0),(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"fieldsIndex",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:F.default})],V.prototype,"associatedLayer",void 0),(0,s._)([(0,m.w)("service","associatedLayer",["associatedLayerID"])],V.prototype,"readAssociatedLayer",null),(0,s._)([(0,f.MZ)(K.outFields)],V.prototype,"outFields",void 0),(0,s._)([(0,f.MZ)({type:String,readOnly:!0})],V.prototype,"objectIdField",null),(0,s._)([(0,f.MZ)({type:String,readOnly:!0})],V.prototype,"globalIdField",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:String,json:{read:!1}})],V.prototype,"displayField",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:String})],V.prototype,"apiKey",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:String})],V.prototype,"customParameters",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:A.A})],V.prototype,"fullExtent",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:_.A})],V.prototype,"spatialReference",null),(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"version",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:Q.A})],V.prototype,"elevationInfo",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:Number})],V.prototype,"minScale",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:Number})],V.prototype,"maxScale",null),(0,s._)([(0,f.MZ)({readOnly:!0,type:Number})],V.prototype,"effectiveScaleRange",null),(0,s._)([(0,f.MZ)({type:["hide","show"],json:{write:!0}})],V.prototype,"listMode",void 0),(0,s._)([(0,f.MZ)({types:$.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],V.prototype,"renderer",void 0),(0,s._)([(0,f.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],V.prototype,"definitionExpression",void 0),(0,s._)([(0,f.MZ)(j.M6)],V.prototype,"popupEnabled",void 0),(0,s._)([(0,f.MZ)({type:M.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],V.prototype,"popupTemplate",void 0),(0,s._)([(0,f.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],V.prototype,"normalReferenceFrame",void 0),(0,s._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],V.prototype,"defaultPopupTemplate",null),(0,s._)([(0,f.MZ)()],V.prototype,"types",null),(0,s._)([(0,f.MZ)()],V.prototype,"typeIdField",null),(0,s._)([(0,f.MZ)({json:{write:!1}}),(0,I.e)(new x.J({"3DObject":"3d-object",Point:"point"}))],V.prototype,"layerType",void 0),(0,s._)([(0,f.MZ)()],V.prototype,"geometryType",null),(0,s._)([(0,f.MZ)()],V.prototype,"profile",null),(0,s._)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],V.prototype,"capabilities",null),(0,s._)([(0,f.MZ)({readOnly:!0})],V.prototype,"statisticsInfo",void 0),V=(0,s._)([(0,g.$)("esri.layers.buildingSublayers.BuildingComponentSublayer")],V);const z=V;var X,H=r(67076);const Y={type:i.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:W}}},read:!1}};function W(e,t,r){if(e&&Array.isArray(e))return new i.A(e.map((e=>{const t=function(e){return"group"===e.layerType?ee:z}(e);if(t){const s=new t;return s.read(e,r),s}return r?.messages&&e&&r.messages.push(new H.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let ee=X=class extends L{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,u.L)(this,(e=>X.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var te;(0,s._)([(0,f.MZ)({type:["hide","show","hide-children"],json:{write:!0}})],ee.prototype,"listMode",void 0),(0,s._)([(0,f.MZ)(Y)],ee.prototype,"sublayers",void 0),ee=X=(0,s._)([(0,g.$)("esri.layers.buildingSublayers.BuildingGroupSublayer")],ee),(te=ee||(ee={})).sublayersProperty=Y,te.readSublayers=W,te.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};var re=r(52136),se=r(18768),ie=r(69208),oe=r(16131),ne=r(8303),ae=r(25036),le=r(58947),ue=r(92009),pe=r(25482),de=r(13069);let ye=class extends pe.A{constructor(){super(...arguments),this.type=null}};(0,s._)([(0,f.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],ye.prototype,"type",void 0),ye=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterAuthoringInfo")],ye);const ce=ye;var he;let fe=he=class extends pe.A{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new he({filterType:this.filterType,filterValues:(0,l.o8)(this.filterValues)})}};(0,s._)([(0,f.MZ)({type:String,json:{write:{isRequired:!0}}})],fe.prototype,"filterType",void 0),(0,s._)([(0,f.MZ)({type:[String],json:{write:{isRequired:!0}}})],fe.prototype,"filterValues",void 0),fe=he=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterAuthoringInfoType")],fe);const me=fe;var ge;const _e=i.A.ofType(me);let ve=ge=class extends pe.A{clone(){return new ge({filterTypes:(0,l.o8)(this.filterTypes)})}};(0,s._)([(0,f.MZ)({type:_e,json:{write:{isRequired:!0}}})],ve.prototype,"filterTypes",void 0),ve=ge=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],ve);const be=ve;var Me;const we=i.A.ofType(be);let xe=Me=class extends ce{constructor(){super(...arguments),this.type="checkbox"}clone(){return new Me({filterBlocks:(0,l.o8)(this.filterBlocks)})}};(0,s._)([(0,f.MZ)({type:["checkbox"]})],xe.prototype,"type",void 0),(0,s._)([(0,f.MZ)({type:we,json:{write:{isRequired:!0}}})],xe.prototype,"filterBlocks",void 0),xe=Me=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],xe);const Se=xe;let Ze=class extends pe.A{};(0,s._)([(0,f.MZ)({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Ze.prototype,"type",void 0),Ze=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterMode")],Ze);const Ie=Ze;var Ae;let Fe=Ae=class extends Ie{constructor(){super(...arguments),this.type="solid"}clone(){return new Ae}};(0,s._)([(0,f.MZ)({type:["solid"],readOnly:!0,json:{write:{isRequired:!0}}})],Fe.prototype,"type",void 0),Fe=Ae=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterModeSolid")],Fe);const Te=Fe;var Oe,je=r(51734);let Le=Oe=class extends Ie{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new Oe({edges:(0,l.o8)(this.edges)})}};(0,s._)([(0,I.e)({wireFrame:"wire-frame"})],Le.prototype,"type",void 0),(0,s._)([(0,f.MZ)(je.J)],Le.prototype,"edges",void 0),Le=Oe=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterModeWireFrame")],Le);const Pe=Le;var Ne;let Re=Ne=class extends Ie{constructor(){super(...arguments),this.type="x-ray"}clone(){return new Ne}};(0,s._)([(0,f.MZ)({type:["x-ray"],readOnly:!0,json:{write:{isRequired:!0}}})],Re.prototype,"type",void 0),Re=Ne=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterModeXRay")],Re);const Ee=Re;var ke;const Be={nonNullable:!0,types:{key:"type",base:Ie,typeMap:{solid:Te,"wire-frame":Pe,"x-ray":Ee}},json:{read:e=>{switch(e?.type){case"solid":return Te.fromJSON(e);case"wireFrame":return Pe.fromJSON(e);case"x-ray":return Ee.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let qe=ke=class extends pe.A{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Te,this.title=""}clone(){return new ke({filterExpression:this.filterExpression,filterMode:(0,l.o8)(this.filterMode),title:this.title})}};(0,s._)([(0,f.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],qe.prototype,"filterExpression",void 0),(0,s._)([(0,f.MZ)(Be)],qe.prototype,"filterMode",void 0),(0,s._)([(0,f.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],qe.prototype,"title",void 0),qe=ke=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilterBlock")],qe);const $e=qe;var Ce;const De=i.A.ofType($e);let Ue=Ce=class extends pe.A{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,de.lk)(),this.name=null}clone(){return new Ce({description:this.description,filterBlocks:(0,l.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,l.o8)(this.filterAuthoringInfo)})}};(0,s._)([(0,f.MZ)({type:String,json:{write:!0}})],Ue.prototype,"description",void 0),(0,s._)([(0,f.MZ)({type:De,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"filterBlocks",void 0),(0,s._)([(0,f.MZ)({types:{key:"type",base:ce,typeMap:{checkbox:Se}},json:{read:e=>"checkbox"===e?.type?Se.fromJSON(e):null,write:!0}})],Ue.prototype,"filterAuthoringInfo",void 0),(0,s._)([(0,f.MZ)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"id",void 0),(0,s._)([(0,f.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"name",void 0),Ue=Ce=(0,s._)([(0,g.$)("esri.layers.support.BuildingFilter")],Ue);let Qe=class extends pe.A{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,s._)([(0,f.MZ)({type:String})],Qe.prototype,"fieldName",void 0),(0,s._)([(0,f.MZ)({type:String})],Qe.prototype,"modelName",void 0),(0,s._)([(0,f.MZ)({type:String})],Qe.prototype,"label",void 0),(0,s._)([(0,f.MZ)({type:Number})],Qe.prototype,"min",void 0),(0,s._)([(0,f.MZ)({type:Number})],Qe.prototype,"max",void 0),(0,s._)([(0,f.MZ)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],Qe.prototype,"mostFrequentValues",void 0),(0,s._)([(0,f.MZ)({type:[Number]})],Qe.prototype,"subLayerIds",void 0),Qe=(0,s._)([(0,g.$)("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],Qe);let Ge=class extends(S.A.LoadableMixin(Z.A.EsriPromiseMixin(pe.A))){constructor(e){super(e),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,w.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,s._)([(0,f.MZ)({constructOnly:!0,type:String})],Ge.prototype,"url",void 0),(0,s._)([(0,f.MZ)({constructOnly:!0})],Ge.prototype,"customParameters",void 0),(0,s._)([(0,f.MZ)({constructOnly:!0})],Ge.prototype,"apiKey",void 0),(0,s._)([(0,f.MZ)({readOnly:!0,type:[Qe],json:{read:{source:"summary"}}})],Ge.prototype,"fields",null),Ge=(0,s._)([(0,g.$)("esri.layers.support.BuildingSummaryStatistics")],Ge);var Je=r(24212);const Ke=i.A.ofType(Ue),Ve=(0,l.o8)(ee.sublayersProperty),ze=Ve.json?.origins;ze&&(ze["web-scene"]={type:[z],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},ze["portal-item"]={type:[z],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let Xe=class extends((0,le.w6)((0,se.b)((0,oe.q)((0,ne.A)((0,ae.j)((0,d.P)((0,ie.d)((0,re.p)(v.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new Ke,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const s=ee.readSublayers(e,t,r);return ee.forEachSublayer(s,(e=>e.layer=this)),this._allSublayerOverrides&&(function(e,t){t.forEach((t=>He(e,t)))}(s,this._allSublayerOverrides),this._allSublayerOverrides=null),s}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?function(e,t,r){const s=[];ee.forEachSublayer(e,(e=>{const t=e.write({},r);Object.keys(t).length>1&&s.push(t)})),s.length>0&&(t.sublayers=s)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){const s=r?.origin&&e.get(r.origin);s&&(t.sublayers=[],s.overrides.forEach((e=>{t.sublayers.push((0,l.o8)(e))})))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){const r=function(e,t){const r=new Map;for(const s of e)null!=s&&"object"==typeof s&&"number"==typeof s.id?r.set(s.id,s):t.messages?.push(new n.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:s}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?He(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef&&this.parsedUrl){const e=(0,h.fj)(this.parsedUrl.path,t.statisticsHRef);return new Ge({url:e,apiKey:this.apiKey,customParameters:this.customParameters})}return null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,u.g)(this,(e=>{ee.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(le.Xh.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(le.Xh.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,ue.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){(0,y.QZ)(this._logWarningOnPopupEnabled())}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,a.rE)(e)),await(0,c.C_)((()=>this.allSublayers.filter((e=>"building-component"===e.type)).some((e=>e.popupEnabled&&null!=e.popupTemplate))),e.signal);const t=this.allSublayers.filter((e=>"building-component"===e.type)).filter((e=>e.popupEnabled&&null!=e.popupTemplate)),r=[],s=[];for(const e of t){const t=e.title??`untitled ${e.id}`;e.attributeStorageInfo?r.push(t):s.push(t)}const i="\n ",o=r.length>0?`\nThe following sublayers will fall back to binary attributes for Popups:${i}${r.join(i)}`:"",n=s.length>0?`\nThe following sublayers have no binary attributes and will not work with Popups:${i}${s.join(i)}`:"";p.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded for this BuildingSceneLayer: ${this.title}.`,o,n)}_validateElevationInfo(e){const t="Building scene layers";(0,Je.XF)(p.A.getLogger(this),(0,Je.B)(t,"absolute-height",e)),(0,Je.XF)(p.A.getLogger(this),(0,Je.tW)(t,e))}};function He(e,t){const{overrides:r,context:s}=t;ee.forEachSublayer(e,(e=>e.read(r.get(e.id),s)))}(0,s._)([(0,f.MZ)({type:["BuildingSceneLayer"]})],Xe.prototype,"operationalLayerType",void 0),(0,s._)([(0,f.MZ)({readOnly:!0})],Xe.prototype,"allSublayers",void 0),(0,s._)([(0,f.MZ)(Ve)],Xe.prototype,"sublayers",void 0),(0,s._)([(0,m.w)("service","sublayers")],Xe.prototype,"readSublayers",null),(0,s._)([(0,f.MZ)({type:Ke,nonNullable:!0,json:{write:!0}})],Xe.prototype,"filters",void 0),(0,s._)([(0,f.MZ)({type:String,json:{write:!0}})],Xe.prototype,"activeFilterId",void 0),(0,s._)([(0,f.MZ)({readOnly:!0,type:Ge})],Xe.prototype,"summaryStatistics",void 0),(0,s._)([(0,m.w)("summaryStatistics",["statisticsHRef"])],Xe.prototype,"readSummaryStatistics",null),(0,s._)([(0,f.MZ)({type:[String],json:{read:!1}})],Xe.prototype,"outFields",void 0),(0,s._)([(0,f.MZ)(j.Fm)],Xe.prototype,"fullExtent",void 0),(0,s._)([(0,f.MZ)(j.fV)],Xe.prototype,"legendEnabled",void 0),(0,s._)([(0,f.MZ)({type:["show","hide","hide-children"]})],Xe.prototype,"listMode",void 0),(0,s._)([(0,f.MZ)((0,j.Qo)(_.A))],Xe.prototype,"spatialReference",void 0),(0,s._)([(0,f.MZ)(j.Yj)],Xe.prototype,"elevationInfo",null),(0,s._)([(0,f.MZ)({json:{read:!1},readOnly:!0})],Xe.prototype,"type",void 0),(0,s._)([(0,f.MZ)()],Xe.prototype,"associatedFeatureServiceItem",void 0),Xe=(0,s._)([(0,g.$)("esri.layers.BuildingSceneLayer")],Xe);const Ye=Xe},91880:(e,t,r)=>{r.d(t,{A:()=>p});var s,i=r(90237),o=r(66552),n=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));const u=new o.J({asc:"ascending",desc:"descending"});let p=class extends n.A{static{s=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new s({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,i._)([(0,a.MZ)({type:u.apiValues,json:{type:u.jsonValues,read:u.read,write:u.write}})],p.prototype,"order",void 0),p=s=(0,i._)([(0,l.$)("esri.layers.support.OrderByInfo")],p)},92935:(e,t,r)=>{var s;r.d(t,{X:()=>s}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(s||(s={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3600],{8947:(e,t,i)=>{i.d(t,{L:()=>n});var r=i(60999),s=i(74887),o=i(67076);async function n(e,t,i){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,r.Ke)(n.populateFromStyle());if((0,s.Te)(i),!1===a.ok){const i=a.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},13600:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xe});var r=i(90237),s=i(13874),o=i(78888),n=i(69540),a=i(5503),l=i(49186),u=i(4718),d=i(53966),p=i(97768),y=i(92071),c=i(93637),h=i(74887),f=i(39516),m=i(84952),b=i(10107),g=i(79901),_=i(36005),w=i(40608),v=i(43937),T=i(89317),F=i(38141),M=i(16930),S=i(4146),I=i(52106),E=i(44208),A=i(92474),Z=i(61893),j=i(29953),C=i(56507),D=(i(87811),i(7695)),O=i(5443),q=i(39829),x=i(50498),L=i(96520),P=i(58501),R=i(22671);let G=0,k=class extends(A.A.LoadableMixin(Z.A.EsriPromiseMixin(a.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const i=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,P.q)(e,this.layer.spatialReference,i);const r=R.A.fromJSON(i);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return r;const s=this.layer.objectIdField;for(const e of r.features){const t=e.attributes[s],i=this._idToClientGeometry.get(t);void 0!==i&&(e.geometry=i)}return r.geometryType=this.layer.geometryType,r}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const i=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,P.q)(e,this.layer.spatialReference,i),i}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:O.A.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let i=null;const r=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(i=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&r.push(e)}const n=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n&&null!=t.geometry){const e=o(t);null!=e&&n.set(e,t)}(0,L.u)(i?i.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:i?i.features:[],updates:s,deletes:r});return this.fullExtent=a,i&&i.finish(u.uidToObjectId),this._updateIdToClientGeometries(n,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;const i=[];for(const{geometry:r}of e)null==r||"mesh"!==r.type||r.hasExtent||r.loaded||i.push(r.load({signal:t}));i.length&&await Promise.all(i)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(const i of t.updateResults){if(!i.success)continue;const t=e.get(i.objectId);null!=t&&this._addIdToClientGeometry(t)}for(const e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,i=new Array(e.length);let r=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);r||null==o.geometry||(r=o.geometry.type),i[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:i,inferredGeometryType:r,finish(e){const i=s.sourceJSON.objectIdField;for(const r in e){const o=e[r],n=t.get(r);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[i]:n.attributes[i]=o,s._addIdToClientGeometry(n))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;const t=this.sourceJSON.objectIdField,i=e.attributes?.[t];null!=i&&this._idToClientGeometry.set(i,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,i=this._geometryForSerialization(e),r=(G++).toString();return i?{uid:r,geometry:i.toJSON(),attributes:t}:{uid:r,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?q.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,j.ho)("MemorySourceWorker",{strategy:(0,E.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:i,objectIdField:r,hasM:s,hasZ:o,timeInfo:n,dateFieldsTimeZone:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const u=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",(e=>{d.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const p={features:u.features,fields:t?.map((e=>e.toJSON())),geometryType:x.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||o,objectIdField:r,spatialReference:l?null:i&&i.toJSON(),timeInfo:n?.toJSON()??null,dateFieldsTimeZone:a},y=await this._connection.invoke("load",p,{signal:e});for(const e of y.warnings)d.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});y.featureErrors.length&&d.A.getLogger(this.layer).warn("#load()",`Encountered ${y.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:y.featureErrors});const c=y.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(u.inferredGeometryType)&&(c.geometryType=x.Ye.toJSON(u.inferredGeometryType)),this.sourceJSON=c,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),u.finish(y.assignedObjectIds)}};(0,r._)([(0,D.u)({Type:I.A,ensureType:(0,C.dp)(I.A)})],k.prototype,"itemType",void 0),(0,r._)([(0,b.MZ)()],k.prototype,"type",void 0),(0,r._)([(0,b.MZ)({constructOnly:!0})],k.prototype,"layer",void 0),(0,r._)([(0,b.MZ)({readOnly:!0})],k.prototype,"_workerGeometryType",null),(0,r._)([(0,b.MZ)()],k.prototype,"sourceJSON",void 0),k=(0,r._)([(0,w.$)("esri.layers.graphics.sources.MemorySource")],k);var J=i(52136),N=i(18768),V=i(63074),$=i(69208),K=i(6455),Q=i(47685),z=i(87718),B=i(87796),W=i(76294),H=i(16131),X=i(32756),U=i(8303),Y=i(69622);let ee=class extends Y.A{constructor(){super(...arguments),this.updating=!1,this.status="unknown"}};(0,r._)([(0,b.MZ)()],ee.prototype,"updating",void 0),(0,r._)([(0,b.MZ)()],ee.prototype,"status",void 0),ee=(0,r._)([(0,w.$)("esri.layers.support.PublishingInfo")],ee);const te=Symbol(),ie=e=>{var t;let i=class extends e{constructor(){super(...arguments),this[t]=!0}static{t=te}get publishingInfo(){if(this.destroyed)return null;const e=this._get("publishingInfo");if(e)return e;const t=new ee;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0;const i=async s=>{let o;e.updating=!0;try{o=await this.fetchPublishingStatus()}catch(e){o="unavailable"}"published"!==o&&"unavailable"!==o||("publishing"===e.status&&this.refresh(),r.remove()),e.status=o,e.updating=!1,r.removed||(t=setTimeout(i,s,s+125))},r={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch((()=>r.remove())),i(250),this.addHandles(r)}};return(0,r._)([(0,b.MZ)({readOnly:!0,clonable:!1})],i.prototype,"publishingInfo",null),i=(0,r._)([(0,w.$)("esri.layers.mixins.PublishableLayer")],i),i};var re=i(54310),se=i(25036),oe=i(82935),ne=i(68109),ae=i(60694),le=i(10873),ue=i(15426),de=i(29005),pe=i(33143),ye=i(17036),ce=i(30524),he=i(46499),fe=i(39383),me=i(22453),be=i(96184),ge=i(17311),_e=i(91908),we=i(27733),ve=i(65494),Te=i(8947),Fe=i(41214),Me=i(61956),Se=i(54218),Ie=i(30291),Ee=i(33910),Ae=i(92935),Ze=i(78553);const je="FeatureLayer";function Ce(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function De(e){return e&&e instanceof a.A}const Oe=(0,ye.p)();function qe(e,t,i){const r=!!i?.writeLayerSchema;return{enabled:r,ignoreOrigin:r}}let xe=class extends((0,B.j)((0,W.J)((0,z.F)(ie((0,Q.w6)((0,K.FJ)((0,V.dM)((0,X.fY)((0,oe.e)((0,ne.d)((0,se.j)((0,re.J)((0,N.b)((0,H.q)((0,U.A)((0,y.P)((0,$.d)((0,J.p)(n.A.ClonableMixin(S.A)))))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=M.A.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,h.sg)((async(e,t,r)=>{const{save:s,saveAs:o}=await i.e(3359).then(i.bind(i,33359));switch(e){case Ae.X.SAVE:return s(this,t);case Ae.X.SAVE_AS:return o(this,r,t)}}))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this.initLayerProperties(e)))),Promise.resolve(this);const i=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(h.QP).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))})).then((()=>(0,ue.VA)(this,"load",e)));return this.addResolvingPromise(i),Promise.resolve(this)}get _titleCreator(){const e=this._get("_titleCreator");return(0,p.pR)(e),new ge.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,me.S)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,i){return this._readEditingEnabled(t,!0,i)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,i,r){this._writeEditingEnabled(e,t,!0,r)}get effectiveEditingEnabled(){return(0,ue.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,i,r){r?.writeLayerSchema&&(0,c.sM)(i,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return(0,ue.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,ue.Zm)(t.layerDefinition||t)}get parsedUrl(){const e=(0,m.An)(this.url);return null!=e&&(null!=this.dynamicDataSource?e.path=(0,m.fj)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,m.fj)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,ce.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,ve.L)(r,t,i)??void 0;return e||d.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,ue.PD)(t,i)}set source(e){const t=this._get("source");t!==e&&(De(t)&&this._resetMemorySource(t),De(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof a.A?new k({layer:this,items:e}):e:null}readSource(e,t){const i=R.A.fromJSON(t.featureSet);return new k({layer:this,items:i?.features??[]})}readTemplates(e,t){const i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e=e?.map((e=>de.A.fromJSON(e))),this._fixTemplates(e,r),this._fixTemplates(e,s),e}readTitle(e,t){const i=t.layerDefinition?.name??t.name,r=t.title||t.layerDefinition?.title;if(i){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,ae.yG)(this.url,i):i;let t=i;if(!t&&this.url){const e=(0,ae.qg)(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,ae.cr)(t)}if("item-title"===this.sublayerTitleMode&&r)return r}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let i=(t=t.layerDefinition||t).typeIdField;if(i&&t.fields){i=i.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===i));e&&(i=e.name)}return i}readTypes(e,t){e=(t=t.layerDefinition||t).types;const i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e?.map((e=>(e=pe.A.fromJSON(e),this._fixTemplates(e.templates,r),this._fixTemplates(e.templates,s),e)))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const i=await(0,ue.Xl)(this,e,t,je);return this.lastEditsEventDate=new Date,i}async updateAttachment(e,t,i){const r=await(0,ue.bt)(this,e,t,i,je);return this.lastEditsEventDate=new Date,r}async applyEdits(e,t){return(0,ue.ct)(this,e,t)}async uploadAssets(e,t){return(0,ue.rn)(this,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Ie.tn)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,h.qr)(Promise.all([i.e(708),i.e(364),i.e(8628),i.e(2593)]).then(i.bind(i,72593)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,ue.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,i=(0,f.mA)(this.definitionExpression,t);return e.where=i||"1=1",e}async deleteAttachments(e,t){const i=await(0,ue.mm)(this,e,t,je);return this.lastEditsEventDate=new Date,i}async fetchRecomputedExtents(e){return(0,ue.WP)(this,e,je)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,ue.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){return(0,ue.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,ue.lV)(this,e,t,je)}async queryFeatures(e,t){const i=await this.load(),r=await i.source.queryFeatures(Me.A.from(e)??i.createQuery(),t);if(r?.features)for(const e of r.features)e.layer=e.sourceLayer=i;return r}async queryObjectIds(e,t){return await(0,ue.sg)(this,e,t,je)}async queryFeatureCount(e,t){return(0,ue.Ye)(this,e,t,je)}async queryExtent(e,t){return(0,ue.B5)(this,e,t,je)}async queryRelatedFeatures(e,t){return(0,ue.hM)(this,e,t,je)}async queryRelatedFeaturesCount(e,t){return(0,ue.S2)(this,e,t,je)}async queryTopFeatures(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(je,"Layer source does not support queryTopFeatures capability");const o=await i.e(7561).then(i.bind(i,57561)),n=await r.queryTopFeatures(o.default.from(e),t);if(n?.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryAttributeBins(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryAttributeBins)throw new l.A(je,"Layer source does not support queryAttributeBins capability");(0,ue.ZJ)(e,s,je);const o=await Promise.all([i.e(4575),i.e(7136)]).then(i.bind(i,14575)),n=await r.queryAttributeBins(o.default.from(e),t);if(n.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryTopObjectIds(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(je,"Layer source does not support queryTopObjectIds capability");const o=await i.e(7561).then(i.bind(i,57561));return(await r.queryTopObjectIds(o.default.from(e),t)).filter(Se.Et)}async queryTopFeaturesExtent(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(je,"Layer source does not support queryTopExtents capability");const o=await i.e(7561).then(i.bind(i,57561));return r.queryTopExtents(o.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:r,capabilities:s}=await this.load();if(!r.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(je,"Layer source does not support queryFeatureCount capability");const o=await i.e(7561).then(i.bind(i,57561));return r.queryTopCount(o.default.from(e),t)}read(e,t){const i=e.featureCollection;if((i||"Feature Collection"===e.type)&&(this.resourceInfo=e),i){const{layers:e,showLegend:r}=i;1===e?.length&&(super.read(e[0],t),null!=r&&super.read({showLegend:r},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:i,layerContainerType:r,messages:s}=t;if(this.dynamicDataSource)return s?.push(Ce(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===i||"web-scene"===i)&&"tables"!==r)return s?.push(Ce(this,`a table source can only be written to tables, not ${r}`)),null;if(this._hasMemorySource())return s?.push(Ce(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===i||"web-scene"===i)&&"tables"===r)return s?.push(Ce(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(je,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,_e.D)(this,e))}async save(e){return this._debouncedSaveOperations(Ae.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Ae.X.SAVE_AS,t,e)}_readEditingEnabled(e,t,i){let r=e.layerDefinition?.capabilities;return r?this._hasEditingCapability(r):(r=e.capabilities,t&&"web-map"===i?.origin&&!this._hasMemorySource()&&r?this._hasEditingCapability(r):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,i,r){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,c.sM)("layerDefinition.capabilities",e,t),i&&!r?.writeLayerSchema&&(t.capabilities=e)}}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)}))}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,ce.yp)(this.renderer,this.fieldsIndex),(0,ce.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,Te.L)(this,{origin:"service"})}async hasDataChanged(){return(0,ue.jp)(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const i=e.prototype?.attributes;i&&t&&delete i[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this.addHandles([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};(0,r._)([(0,b.MZ)({clonable:!1,readOnly:!0})],xe.prototype,"_titleCreator",null),(0,r._)([(0,b.MZ)(le.zQ)],xe.prototype,"attributeTableTemplate",void 0),(0,r._)([(0,_.w)("service","capabilities")],xe.prototype,"readCapabilities",null),(0,r._)([(0,b.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],xe.prototype,"charts",void 0),(0,r._)([(0,b.MZ)({readOnly:!0})],xe.prototype,"createQueryVersion",null),(0,r._)([(0,b.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],xe.prototype,"copyright",void 0),(0,r._)([(0,b.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],xe.prototype,"displayField",void 0),(0,r._)([(0,b.MZ)({types:Ee.Es,readOnly:!0})],xe.prototype,"defaultSymbol",void 0),(0,r._)([(0,b.MZ)({type:we.L})],xe.prototype,"dynamicDataSource",void 0),(0,r._)([(0,b.MZ)({type:Boolean})],xe.prototype,"editingEnabled",null),(0,r._)([(0,_.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],xe.prototype,"readEditingEnabled",null),(0,r._)([(0,_.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],xe.prototype,"readEditingEnabledFromWebMap",null),(0,r._)([(0,v.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],xe.prototype,"writeEditingEnabled",null),(0,r._)([(0,v.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],xe.prototype,"writeEditingEnabledToWebMap",null),(0,r._)([(0,b.MZ)({readOnly:!0})],xe.prototype,"effectiveEditingEnabled",null),(0,r._)([(0,b.MZ)({clonable:!1,readOnly:!0})],xe.prototype,"featureTitleFields",null),(0,r._)([(0,b.MZ)({...Oe.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:qe}}}}})],xe.prototype,"fields",void 0),(0,r._)([(0,b.MZ)(Oe.fieldsIndex)],xe.prototype,"fieldsIndex",void 0),(0,r._)([(0,b.MZ)({type:F.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],xe.prototype,"formTemplate",void 0),(0,r._)([(0,b.MZ)({json:{read:{source:"layerDefinition.extent"}}})],xe.prototype,"fullExtent",void 0),(0,r._)([(0,b.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:qe,writer(e,t,i){const r=e?ue.iX.toJSON(e):null;r&&(0,c.sM)(i,r,t)}}}},read:{source:"layerDefinition.geometryType",reader:ue.iX.read}}})],xe.prototype,"geometryType",void 0),(0,r._)([(0,b.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],xe.prototype,"hasM",void 0),(0,r._)([(0,b.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],xe.prototype,"hasZ",void 0),(0,r._)([(0,b.MZ)(le.id)],xe.prototype,"id",void 0),(0,r._)([(0,b.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],xe.prototype,"infoFor3D",void 0),(0,r._)([(0,b.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],xe.prototype,"isTable",void 0),(0,r._)([(0,_.w)("service","isTable",["type","geometryType"]),(0,_.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],xe.prototype,"readIsTable",null),(0,r._)([(0,v.K)("web-map","isTable")],xe.prototype,"writeIsTable",null),(0,r._)([(0,b.MZ)(le.kF)],xe.prototype,"labelsVisible",void 0),(0,r._)([(0,b.MZ)({type:[he.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:fe.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:fe.w,write:{layerContainerTypes:T.K}}})],xe.prototype,"labelingInfo",void 0),(0,r._)([(0,b.MZ)((()=>{const e=(0,u.o8)(le.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,i){(0,c.sM)(i,(0,Ze.p)(e),t)}}},e})())],xe.prototype,"opacity",void 0),(0,r._)([(0,b.MZ)(le.fV)],xe.prototype,"legendEnabled",void 0),(0,r._)([(0,b.MZ)({type:["show","hide"],json:(()=>{const e=(0,u.o8)(le.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],xe.prototype,"listMode",void 0),(0,r._)([(0,_.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],xe.prototype,"readGlobalIdField",null),(0,r._)([(0,b.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:qe}}}}})],xe.prototype,"objectIdField",void 0),(0,r._)([(0,_.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],xe.prototype,"readObjectIdField",null),(0,r._)([(0,b.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:T.K}}})],xe.prototype,"operationalLayerType",void 0),(0,r._)([(0,b.MZ)(Oe.outFields)],xe.prototype,"outFields",void 0),(0,r._)([(0,b.MZ)({readOnly:!0})],xe.prototype,"parsedUrl",null),(0,r._)([(0,b.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],xe.prototype,"path",void 0),(0,r._)([(0,b.MZ)(le.M6)],xe.prototype,"popupEnabled",void 0),(0,r._)([(0,b.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],xe.prototype,"popupTemplate",void 0),(0,r._)([(0,b.MZ)({readOnly:!0})],xe.prototype,"defaultPopupTemplate",null),(0,r._)([(0,b.MZ)({types:Fe.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:Fe.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:T.K,overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:T.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:T.K})}}})],xe.prototype,"renderer",null),(0,r._)([(0,_.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,_.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],xe.prototype,"readRenderer",null),(0,r._)([(0,b.MZ)()],xe.prototype,"resourceInfo",void 0),(0,r._)([(0,b.MZ)((()=>{const e=(0,u.o8)(le.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],xe.prototype,"screenSizePerspectiveEnabled",void 0),(0,r._)([(0,b.MZ)({clonable:!1})],xe.prototype,"source",null),(0,r._)([(0,g.w)("source")],xe.prototype,"castSource",null),(0,r._)([(0,_.w)("portal-item","source",["featureSet"]),(0,_.w)("web-map","source",["featureSet"])],xe.prototype,"readSource",null),(0,r._)([(0,b.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],xe.prototype,"spatialReference",void 0),(0,r._)([(0,b.MZ)({type:Number})],xe.prototype,"subtypeCode",void 0),(0,r._)([(0,b.MZ)({type:[de.A]})],xe.prototype,"templates",void 0),(0,r._)([(0,_.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],xe.prototype,"readTemplates",null),(0,r._)([(0,b.MZ)({type:be.A})],xe.prototype,"timeInfo",void 0),(0,r._)([(0,b.MZ)()],xe.prototype,"title",void 0),(0,r._)([(0,_.w)("service","title",["name"]),(0,_.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],xe.prototype,"readTitle",null),(0,r._)([(0,_.w)("web-map","title",["layerDefinition.name","title"])],xe.prototype,"readTitleFromWebMap",null),(0,r._)([(0,b.MZ)({type:String})],xe.prototype,"sublayerTitleMode",void 0),(0,r._)([(0,b.MZ)({json:{read:!1}})],xe.prototype,"type",void 0),(0,r._)([(0,b.MZ)({type:String})],xe.prototype,"typeIdField",void 0),(0,r._)([(0,_.w)("service","typeIdField"),(0,_.w)("typeIdField",["layerDefinition.typeIdField"])],xe.prototype,"readTypeIdField",null),(0,r._)([(0,b.MZ)({type:[pe.A]})],xe.prototype,"types",void 0),(0,r._)([(0,_.w)("service","types",["types"]),(0,_.w)("types",["layerDefinition.types"])],xe.prototype,"readTypes",null),(0,r._)([(0,b.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:T.K}}}}})],xe.prototype,"visible",void 0),(0,r._)([(0,_.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],xe.prototype,"readVisible",null),xe=(0,r._)([(0,w.$)("esri.layers.FeatureLayer")],xe)},68109:(e,t,i)=>{i.d(t,{d:()=>w});var r=i(90237),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),n=i(13874),a=i(69540),l=i(25482),u=i(93637),d=i(43937),p=i(50820),y=i(10873),c=i(46499),h=i(41214);let f=class extends(a.A.ClonableMixin(l.A)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r._)([(0,s.MZ)({type:[c.A],json:{write:!0}})],f.prototype,"labelingInfo",void 0),(0,r._)([(0,s.MZ)(y.kF)],f.prototype,"labelsVisible",void 0),(0,r._)([(0,s.MZ)({types:h.Hg,json:{write:!0}})],f.prototype,"renderer",void 0),(0,r._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"visible",void 0),f=(0,r._)([(0,o.$)("esri.layers.support.TrackPartInfo")],f);var m=i(96576),b=i(59868),g=i(26253);let _=class extends(a.A.ClonableMixin(l.A)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new f({renderer:new m.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new f({renderer:new m.A({symbol:b.UK.clone()})}),this.trackLines=new f({renderer:new m.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){const r=e.filter((e=>"avg_angle"!==e.statisticType)).map((e=>e.toJSON()));(0,u.sM)(i,r,t)}};(0,r._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"enabled",void 0),(0,r._)([(0,s.MZ)({type:[p.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,r._)([(0,d.K)("fields")],_.prototype,"writeFields",null),(0,r._)([(0,s.MZ)({type:f,json:{write:!0}})],_.prototype,"latestObservations",void 0),(0,r._)([(0,s.MZ)({type:g.T,json:{write:!0}})],_.prototype,"maxDisplayDuration",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r._)([(0,s.MZ)(y.M6)],_.prototype,"popupEnabled",void 0),(0,r._)([(0,s.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],_.prototype,"popupTemplate",void 0),(0,r._)([(0,s.MZ)({type:f,json:{write:!0}})],_.prototype,"previousObservations",void 0),(0,r._)([(0,s.MZ)({type:f,json:{write:!0}})],_.prototype,"trackLines",void 0),(0,r._)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],_.prototype,"timeField",void 0),_=(0,r._)([(0,o.$)("esri.layers.support.TrackInfo")],_);const w=e=>{let t=class extends e{constructor(){super(...arguments),this.trackInfo=null}};return(0,r._)([(0,s.MZ)({type:_})],t.prototype,"trackInfo",void 0),t=(0,r._)([(0,o.$)("esri.layers.mixins.TrackableLayer")],t),t}},96520:(e,t,i)=>{i.d(t,{u:()=>n});var r=i(83047),s=i(21325);function o(e,t,i){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=i)}function n(e,t,i){if(!e&&!t||!i)return;const s=(0,r.G9)(i);a(e,i,s),a(t,i,s)}function a(e,t,i){if(e)for(const r of e)l(r.geometry,t,i)}function l(e,t,i){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;const n=(0,r.G9)(e.spatialReference)/i;if(1!==n)if("x"in e)null!=e.z&&(e.z*=n);else if("rings"in e)o(e,e.rings,n);else if("paths"in e)o(e,e.paths,n);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=n)}}}]);
|