@arcgis/core 4.28.8 → 4.28.10

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.
Files changed (41) hide show
  1. package/README.md +14 -108
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/332f807c109f3c566316.js +1 -0
  4. package/assets/esri/core/workers/chunks/3b44696ed6608cfdef34.js +1 -0
  5. package/assets/esri/core/workers/chunks/5b416d7ef5f3f57b052c.js +1 -0
  6. package/assets/esri/core/workers/chunks/7e79ffd645f94ebf07a7.js +1 -0
  7. package/assets/esri/core/workers/chunks/{df7267892b6e0493e1d7.js → 95ce288362649909ffe6.js} +1 -1
  8. package/assets/esri/core/workers/chunks/a48cb80b8f10522ccba4.js +1 -0
  9. package/assets/esri/core/workers/chunks/aa3bb965d4495ee3dfe0.js +1 -0
  10. package/assets/esri/core/workers/chunks/afc396fd3afbebd39a93.js +1 -0
  11. package/assets/esri/core/workers/chunks/{9979ff59a144fe1df80b.js → b2eb4308afc34e3e0acb.js} +1 -1
  12. package/assets/esri/core/workers/chunks/b4bbace5b409b804a52f.js +1 -0
  13. package/assets/esri/core/workers/chunks/b5b04f8380197abb50ab.js +1 -0
  14. package/assets/esri/core/workers/chunks/{c3b8b40115be5a2b960e.js → c6d1a6db8cfa0a7e3bd2.js} +1 -1
  15. package/assets/esri/core/workers/chunks/d5e6676cd2de77527c92.js +1 -0
  16. package/assets/esri/core/workers/chunks/d8482a5aa176426352bf.js +1 -0
  17. package/assets/esri/core/workers/chunks/ead02c933d1af20cbaa0.js +1 -0
  18. package/assets/esri/core/workers/chunks/f1152b991c33d8c94219.js +1 -0
  19. package/assets/esri/core/workers/chunks/faa2da66e9934f7fee04.js +1 -0
  20. package/core/uuid.js +1 -1
  21. package/interfaces.d.ts +13 -7
  22. package/kernel.js +1 -1
  23. package/package.json +1 -1
  24. package/support/revision.js +1 -1
  25. package/versionManagement/support/versionManagementUtils.js +1 -1
  26. package/views/3d/layers/VoxelWasm.js +1 -1
  27. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  28. package/assets/esri/core/workers/chunks/175bbe8a048f17dd482b.js +0 -1
  29. package/assets/esri/core/workers/chunks/19c9966f74d287750aaa.js +0 -1
  30. package/assets/esri/core/workers/chunks/30776102fbab294bfe7b.js +0 -1
  31. package/assets/esri/core/workers/chunks/30d3b31df52d40e5b2e6.js +0 -1
  32. package/assets/esri/core/workers/chunks/4564a7885d045a850887.js +0 -1
  33. package/assets/esri/core/workers/chunks/4bd342f13002888b6467.js +0 -1
  34. package/assets/esri/core/workers/chunks/633b34a5817f1f719e22.js +0 -1
  35. package/assets/esri/core/workers/chunks/70eba80261d7fdc624ad.js +0 -1
  36. package/assets/esri/core/workers/chunks/9ef3746c545296565ef6.js +0 -1
  37. package/assets/esri/core/workers/chunks/a3bbf5da4f7830d2a2a1.js +0 -1
  38. package/assets/esri/core/workers/chunks/a47f74fc959b11f029a5.js +0 -1
  39. package/assets/esri/core/workers/chunks/bdc751a752a7ff1387de.js +0 -1
  40. package/assets/esri/core/workers/chunks/c3ddf5dbc34f118002df.js +0 -1
  41. package/assets/esri/core/workers/chunks/f85107720159b855a469.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7863],{92835:(e,t,i)=>{i.d(t,{Z:()=>m});var r,n=i(43697),s=i(96674),o=i(35463),l=i(5600),a=(i(75215),i(67676),i(80442),i(71715)),d=i(52011),u=i(30556),p=i(25031);let c=r=class extends s.wq{static get allTime(){return y}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t=p.By){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.JE)(i,e,t));let n=this.end;if(n){const i=(0,o.JE)(n,e,t);n=n.getTime()===i.getTime()?i:(0,o.Nm)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;if(n>=t&&n<=i?o=n:t>=n&&t<=s&&(o=t),i>=n&&i<=s?l=i:s>=t&&s<=i&&(l=s),null!=o&&null!=l&&!isNaN(o)&&!isNaN(l)){const e=new r;return e.start=o===-1/0?null:new Date(o),e.end=l===1/0?null:new Date(l),e}return r.empty}offset(e,t,i=p.By){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.Nm)(s,e,t,i)),null!=l&&(n.end=(0,o.Nm)(l,e,t,i)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.r)("end")],c.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.r)("start")],c.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],c.prototype,"writeStart",null),c=r=(0,n._)([(0,d.j)("esri.TimeExtent")],c);const y=new c,h=new c({start:void 0,end:void 0}),m=c},2368:(e,t,i)=>{i.d(t,{J:()=>u,j:()=>p});var r=i(43697),n=i(92036),s=(i(80442),i(22974)),o=(i(92604),i(70586)),l=i(31263),a=i(1153),d=i(52011);const u=e=>{let t=class extends e{clone(){const e=(0,a.vw)(this);(0,o.O3)(e,"unable to clone instance of non-accessor class");const t=e.metadatas,i=e.store,r={},n=new Map;for(const e in t){const o=t[e],a=i?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||a!==l.s3.USER&&a!==l.s3.DEFAULTS&&a!==l.s3.WEB_MAP&&a!==l.s3.WEB_SCENE)continue;const u=this[e];let p=null;p="function"==typeof d?d(u):"reference"===d?u:(0,s.Vo)(u),null!=u&&null==p||(a===l.s3.DEFAULTS?n.set(e,p):r[e]=p)}const d=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const e=(0,a.vw)(d)?.store;if(e)for(const[t,i]of n)e.set(t,i,l.s3.DEFAULTS)}return d}};return t=(0,r._)([(0,d.j)("esri.core.Clonable")],t),t};let p=class extends(u(n.Z)){};p=(0,r._)([(0,d.j)("esri.core.Clonable")],p)},1542:(e,t,i)=>{i.d(t,{A4:()=>s,L9:()=>o,yV:()=>n});var r=i(17126);class n{}function s(e){return e instanceof r.ld?e===n.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?n.instance:e}n.instance=new r.vF("Etc/UTC")},41123:(e,t,i)=>{i.d(t,{D:()=>n,z:()=>s});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n()}}`}},79235:(e,t,i)=>{i.d(t,{Z:()=>b});var r,n=i(43697),s=i(67676),o=i(35454),l=i(96674),a=i(67900),d=i(20941),u=i(5600),p=(i(75215),i(80442),i(71715)),c=i(52011),y=i(30556);const h=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,s.e$)(m,"orthometric");const f=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=r=class extends l.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new d.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.$C)(e)||f.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.cM)(t);return new r({heightModel:e.heightModel,heightUnit:i,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,u.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,y.c)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.r)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,u.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.r)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.r)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=r=(0,n._)([(0,c.j)("esri.geometry.HeightModelInfo")],g);const b=g},10608:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ee});var r=i(43697),n=i(51773),s=i(3172),o=i(20102),l=i(22974),a=i(92604),d=i(16453),u=i(78286),p=i(95330),c=i(17452),y=i(5600),h=i(75215),m=i(71715),f=i(52011),g=i(30556),v=i(87085),b=i(54295),w=i(17287),_=i(38009),C=i(16859),S=i(72965),T=i(37253),F=i(36030),I=i(96674);i(67676),i(80442);let j=class extends I.wq{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,r._)([(0,y.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],j.prototype,"field",void 0),(0,r._)([(0,y.Cb)({readOnly:!0,nonNullable:!0,json:{read:!1}})],j.prototype,"type",void 0),j=(0,r._)([(0,f.j)("esri.layers.pointCloudFilters.PointCloudFilter")],j);const x=j;var V;let Z=V=class extends x{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new V({field:this.field,requiredClearBits:(0,l.d9)(this.requiredClearBits),requiredSetBits:(0,l.d9)(this.requiredSetBits)})}};(0,r._)([(0,y.Cb)({type:[h.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],Z.prototype,"requiredClearBits",void 0),(0,r._)([(0,y.Cb)({type:[h.z8],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],Z.prototype,"requiredSetBits",void 0),(0,r._)([(0,F.J)({pointCloudBitfieldFilter:"bitfield"})],Z.prototype,"type",void 0),Z=V=(0,r._)([(0,f.j)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],Z);const R=Z;var N;let P=N=class extends x{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new N({field:this.field,includedReturns:(0,l.d9)(this.includedReturns)})}};(0,r._)([(0,y.Cb)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],P.prototype,"includedReturns",void 0),(0,r._)([(0,F.J)({pointCloudReturnFilter:"return"})],P.prototype,"type",void 0),P=N=(0,r._)([(0,f.j)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],P);const O=P;var E;let M=E=class extends x{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new E({field:this.field,mode:this.mode,values:(0,l.d9)(this.values)})}};(0,r._)([(0,y.Cb)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"mode",void 0),(0,r._)([(0,F.J)({pointCloudValueFilter:"value"})],M.prototype,"type",void 0),(0,r._)([(0,y.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"values",void 0),M=E=(0,r._)([(0,f.j)("esri.layers.pointCloudFilters.PointCloudValueFilter")],M);const q={key:"type",base:x,typeMap:{value:M,bitfield:R,return:O}};var D,U=i(21506),B=i(1231),L=i(53518),k=i(11223),A=i(23030),z=i(25848);let $=D=class extends z.Z{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new D({...this.cloneProperties(),field:(0,l.d9)(this.field)})}};(0,r._)([(0,F.J)({pointCloudRGBRenderer:"point-cloud-rgb"})],$.prototype,"type",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:!0}})],$.prototype,"field",void 0),$=D=(0,r._)([(0,f.j)("esri.renderers.PointCloudRGBRenderer")],$);const J=$;var H=i(14008),K=i(46329);const G={key:"type",base:z.Z,typeMap:{"point-cloud-class-breaks":A.Z,"point-cloud-rgb":J,"point-cloud-stretch":H.Z,"point-cloud-unique-value":K.Z},errorContext:"renderer"};var X=i(36405),W=i(32163);const Q=(0,L.v)();let Y=class extends((0,T.Vt)((0,w.Y)((0,_.q)((0,C.I)((0,S.M)((0,d.R)((0,b.V)(v.Z)))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,i){return Array.isArray(e)?e.map((e=>{const t=new B.Z;return"FieldTypeInteger"===e.type&&((e=(0,l.d9)(e)).type="esriFieldTypeInteger"),t.read(e,i),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new B.Z({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,i,r){(0,u.RB)("layerDefinition.drawingInfo.renderer",e.write({},r),t)}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(p.r9).then((()=>this._fetchService(t)));return this.addResolvingPromise(i),Promise.resolve(this)}createPopupTemplate(e){const t=(0,W.eZ)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const i=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!i)return;const r=new k.Z({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],r],i.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const i=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!i)return;const r=new k.Z({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],r],i.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const i=this.fieldsIndex.get(e);if(!i)throw new o.Z("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===i.name){const i=(0,c.v_)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,s.Z)(i,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new o.Z("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(T.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(T.xp.SAVE,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.Z("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;(0,X.LR)(a.Z.getLogger(this),(0,X.Uy)("Point cloud layers","absolute-height",e)),(0,X.LR)(a.Z.getLogger(this),(0,X.kf)("Point cloud layers",e))}};(0,r._)([(0,y.Cb)({type:["PointCloudLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,r._)([(0,y.Cb)(U.C_)],Y.prototype,"popupEnabled",void 0),(0,r._)([(0,y.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),(0,r._)([(0,y.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"defaultPopupTemplate",null),(0,r._)([(0,y.Cb)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],Y.prototype,"opacity",void 0),(0,r._)([(0,y.Cb)({type:["show","hide"]})],Y.prototype,"listMode",void 0),(0,r._)([(0,y.Cb)({types:[q],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],Y.prototype,"filters",void 0),(0,r._)([(0,y.Cb)({type:[B.Z]})],Y.prototype,"fields",void 0),(0,r._)([(0,y.Cb)(Q.fieldsIndex)],Y.prototype,"fieldsIndex",void 0),(0,r._)([(0,m.r)("service","fields",["fields","attributeStorageInfo"])],Y.prototype,"readServiceFields",null),(0,r._)([(0,y.Cb)(Q.outFields)],Y.prototype,"outFields",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],Y.prototype,"attributeStorageInfo",void 0),(0,r._)([(0,y.Cb)(U.PV)],Y.prototype,"elevationInfo",null),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],Y.prototype,"path",void 0),(0,r._)([(0,y.Cb)(U.rn)],Y.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)({types:G,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:G},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],Y.prototype,"renderer",void 0),(0,r._)([(0,g.c)("renderer")],Y.prototype,"writeRenderer",null),(0,r._)([(0,y.Cb)({json:{read:!1},readOnly:!0})],Y.prototype,"type",void 0),Y=(0,r._)([(0,f.j)("esri.layers.PointCloudLayer")],Y);const ee=Y},16859:(e,t,i)=>{i.d(t,{I:()=>C});var r=i(43697),n=i(68773),s=i(40330),o=i(3172),l=i(66643),a=i(20102),d=i(92604),u=i(70586),p=i(95330),c=i(17452),y=i(5600),h=(i(75215),i(67676),i(80442),i(71715)),m=i(52011),f=i(30556),g=i(84230),v=i(48522),b=i(15235),w=i(86082),_=i(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new b.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(8062).then(i.bind(i,18062));return(0,p.k_)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.D_)(e)||d.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.r9)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===i.id;if(r&&i.portal.user)return(0,_.Ss)(i);let n,o;if(r)n=i.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,p.r9)(e)}if(!n||!(0,c.Zo)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await i.reload():(i=new b.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return(0,_.Ss)(i)}catch(e){(0,p.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=v.Z.getDefault();if(n&&n.loaded&&(0,c.Fv)(n.restUrl)===(0,c.Fv)(r))return n.user;const a=`${r}/community/self`,d=null!=e?e.signal:null,u=await(0,l.q6)((0,o.Z)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.Z.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.Z.getDefault());return i&&r&&!(0,c.tm)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,y.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,r._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,f.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},72965:(e,t,i)=>{i.d(t,{M:()=>o});var r=i(43697),n=i(5600),s=(i(75215),i(67676),i(80442),i(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,r._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,r._)([(0,n.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,r._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},1231:(e,t,i)=>{i.d(t,{Z:()=>f});var r,n=i(43697),s=i(35454),o=i(96674),l=i(5600),a=i(75215),d=(i(67676),i(80442),i(36030)),u=i(71715),p=i(52011),c=i(72729),y=i(86719);const h=new s.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?h.fromJSON(i.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,n._)([(0,u.r)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.Cb)({types:c.V5,json:{read:{reader:c.im},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.Cb)({type:a.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.J)(y.v)],m.prototype,"type",void 0),(0,n._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.r)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.Cb)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=r=(0,n._)([(0,p.j)("esri.layers.support.Field")],m);const f=m},99514:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(20102),n=i(96674),s=i(92604),o=i(30175),l=i(1542),a=i(69165),d=i(25031),u=i(17126);const p=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],f(e))}static fromLayerJSON(e){return new c(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=h(t);if(t&&r){const n=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.y2)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.H7)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Dl)(e)||(0,a.Se)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Dl)(e)||(0,a.Se)(e)||e.nullable||void 0!==(0,a.os)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.Z.getLogger("esri.layers.support.FieldsIndex").error(new r.Z("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.pt):m.has(t.type)?d._4:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d._4?l.yV.instance:t===d.pt?u.Qf.utcInstance:(0,o.s1)(p,t,(()=>u.vF.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.sX)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.AK)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function h(e){return(0,a.q6)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.Jv)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.Jv)(n.dateFieldsTimeReference):l??d.pt:null,u=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,d.Jv)(r.timeReference):l:null,p=new Map([[y(n?.creationDateField??""),a],[y(n?.editDateField??""),a],[y(s),u],[y(o),u]]);for(const{name:r,type:n}of e.fields)if(m.has(n))t.set(r,d._4);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,d._4);else{const e=p.get(y(r??""))??l;t.set(r,e)}return t}},72729:(e,t,i)=>{i.d(t,{im:()=>T,V5:()=>S}),i(80442);var r,n=i(43697),s=i(22974),o=i(5600),l=(i(75215),i(36030)),a=i(52011),d=i(96674);i(67676);let u=r=class extends d.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=r=(0,n._)([(0,a.j)("esri.layers.support.CodedValue")],u);const p=new(i(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends d.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,l.J)(p)],c.prototype,"type",void 0),c=(0,n._)([(0,a.j)("esri.layers.support.Domain")],c);const y=c;var h;let m=h=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,o.Cb)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=h=(0,n._)([(0,a.j)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;i(92604),i(20102);let v=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.J)({inherited:"inherited"})],v.prototype,"type",void 0),v=g=(0,n._)([(0,a.j)("esri.layers.support.InheritedDomain")],v);const b=v;var w;let _=w=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],_.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],_.prototype,"minValue",void 0),(0,n._)([(0,l.J)({range:"range"})],_.prototype,"type",void 0),_=w=(0,n._)([(0,a.j)("esri.layers.support.RangeDomain")],_);const C=_,S={key:"type",base:y,typeMap:{range:_,"coded-value":f,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return C.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},53518:(e,t,i)=>{i.d(t,{v:()=>a});var r=i(80442),n=i(92604),s=i(1231),o=i(99514),l=i(69165);function a(){return{fields:{type:[s.Z],value:null,set:function(e){if(e&&(0,r.Z)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.Z.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.Z.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||n.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.Q0)(this.fieldsIndex,e)}}}}},86719:(e,t,i)=>{i.d(t,{v:()=>r});const r=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},23030:(e,t,i)=>{i.d(t,{Z:()=>v});var r,n=i(43697),s=i(22974),o=i(5600),l=i(75215),a=i(36030),d=i(52011),u=i(25848),p=i(66338),c=i(22303),y=i(96674);let h=r=class extends y.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new r({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.d9)(this.color)})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],h.prototype,"minValue",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],h.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({type:c.Z,json:{type:[l.z8],write:!0}})],h.prototype,"color",void 0),h=r=(0,n._)([(0,d.j)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],h);const m=h;var f;let g=f=class extends u.Z{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new f({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.d9)(this.colorClassBreakInfos),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,n._)([(0,a.J)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],g.prototype,"type",void 0),(0,n._)([(0,o.Cb)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.Cb)({type:p.I,json:{write:!0}})],g.prototype,"legendOptions",void 0),(0,n._)([(0,o.Cb)({type:u.Z.fieldTransformTypeKebabDict.apiValues,json:{type:u.Z.fieldTransformTypeKebabDict.jsonValues,read:u.Z.fieldTransformTypeKebabDict.read,write:u.Z.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.Cb)({type:[m],json:{write:!0}})],g.prototype,"colorClassBreakInfos",void 0),g=f=(0,n._)([(0,d.j)("esri.renderers.PointCloudClassBreaksRenderer")],g);const v=g},25848:(e,t,i)=>{i.d(t,{Z:()=>T});var r,n=i(43697),s=i(35454),o=i(96674),l=i(22974),a=i(5600),d=(i(75215),i(52011));i(67676),i(80442);let u=r=class extends o.wq{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new r({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"minValue",void 0),(0,n._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"maxValue",void 0),u=r=(0,n._)([(0,d.j)("esri.renderers.support.pointCloud.ColorModulation")],u);const p=u,c=new s.X({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let y=class extends o.wq{};(0,n._)([(0,a.Cb)({type:c.apiValues,readOnly:!0,nonNullable:!0,json:{type:c.jsonValues,read:!1,write:c.write}})],y.prototype,"type",void 0),y=(0,n._)([(0,d.j)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],y);const h=y;var m,f=i(36030);let g=m=class extends h{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,n._)([(0,f.J)({pointCloudFixedSizeAlgorithm:"fixed-size"})],g.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"size",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],g.prototype,"useRealWorldSymbolSizes",void 0),g=m=(0,n._)([(0,d.j)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],g);const v=g;var b;let w=b=class extends h{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new b({scaleFactor:this.scaleFactor})}};(0,n._)([(0,f.J)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],w.prototype,"scaleFactor",void 0),w=b=(0,n._)([(0,d.j)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const _={key:"type",base:h,typeMap:{"fixed-size":v,splat:w}},C=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let S=class extends o.wq{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,l.d9)(this.pointSizeAlgorithm),colorModulation:(0,l.d9)(this.colorModulation),pointsPerInch:(0,l.d9)(this.pointsPerInch)}}};(0,n._)([(0,a.Cb)({type:C.apiValues,readOnly:!0,nonNullable:!0,json:{type:C.jsonValues,read:!1,write:C.write}})],S.prototype,"type",void 0),(0,n._)([(0,a.Cb)({types:_,json:{write:!0}})],S.prototype,"pointSizeAlgorithm",void 0),(0,n._)([(0,a.Cb)({type:p,json:{write:!0}})],S.prototype,"colorModulation",void 0),(0,n._)([(0,a.Cb)({json:{write:!0},nonNullable:!0,type:Number})],S.prototype,"pointsPerInch",void 0),S=(0,n._)([(0,d.j)("esri.renderers.PointCloudRenderer")],S),(S||(S={})).fieldTransformTypeKebabDict=new s.X({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const T=S},14008:(e,t,i)=>{i.d(t,{Z:()=>y});var r,n=i(43697),s=i(22974),o=i(5600),l=(i(75215),i(36030)),a=i(52011),d=i(25848),u=i(66338),p=i(21849);let c=r=class extends d.Z{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new r({...this.cloneProperties(),field:(0,s.d9)(this.field),fieldTransformType:(0,s.d9)(this.fieldTransformType),stops:(0,s.d9)(this.stops),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,n._)([(0,l.J)({pointCloudStretchRenderer:"point-cloud-stretch"})],c.prototype,"type",void 0),(0,n._)([(0,o.Cb)({json:{write:!0},type:String})],c.prototype,"field",void 0),(0,n._)([(0,o.Cb)({type:u.I,json:{write:!0}})],c.prototype,"legendOptions",void 0),(0,n._)([(0,o.Cb)({type:d.Z.fieldTransformTypeKebabDict.apiValues,json:{type:d.Z.fieldTransformTypeKebabDict.jsonValues,read:d.Z.fieldTransformTypeKebabDict.read,write:d.Z.fieldTransformTypeKebabDict.write}})],c.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.Cb)({type:[p.Z],json:{write:!0}})],c.prototype,"stops",void 0),c=r=(0,n._)([(0,a.j)("esri.renderers.PointCloudStretchRenderer")],c);const y=c},46329:(e,t,i)=>{i.d(t,{Z:()=>v});var r,n=i(43697),s=i(22974),o=i(5600),l=i(75215),a=i(36030),d=i(52011),u=i(25848),p=i(66338),c=i(22303),y=i(96674);let h=r=class extends y.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new r({description:this.description,label:this.label,values:(0,s.d9)(this.values),color:(0,s.d9)(this.color)})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"label",void 0),(0,n._)([(0,o.Cb)({type:[String],json:{write:!0}})],h.prototype,"values",void 0),(0,n._)([(0,o.Cb)({type:c.Z,json:{type:[l.z8],write:!0}})],h.prototype,"color",void 0),h=r=(0,n._)([(0,d.j)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],h);const m=h;var f;let g=f=class extends u.Z{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new f({...this.cloneProperties(),field:(0,s.d9)(this.field),fieldTransformType:(0,s.d9)(this.fieldTransformType),colorUniqueValueInfos:(0,s.d9)(this.colorUniqueValueInfos),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,n._)([(0,a.J)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],g.prototype,"type",void 0),(0,n._)([(0,o.Cb)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.Cb)({type:u.Z.fieldTransformTypeKebabDict.apiValues,json:{type:u.Z.fieldTransformTypeKebabDict.jsonValues,read:u.Z.fieldTransformTypeKebabDict.read,write:u.Z.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.Cb)({type:[m],json:{write:!0}})],g.prototype,"colorUniqueValueInfos",void 0),(0,n._)([(0,o.Cb)({type:p.I,json:{write:!0}})],g.prototype,"legendOptions",void 0),g=f=(0,n._)([(0,d.j)("esri.renderers.PointCloudUniqueValueRenderer")],g);const v=g},66338:(e,t,i)=>{i.d(t,{I:()=>a});var r,n=i(43697),s=i(96674),o=i(5600),l=(i(75215),i(67676),i(80442),i(52011));let a=r=class extends s.wq{constructor(){super(...arguments),this.title=null}clone(){return new r({title:this.title})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=r=(0,n._)([(0,l.j)("esri.renderers.support.LegendOptions")],a)},21849:(e,t,i)=>{i.d(t,{Z:()=>c});var r,n=i(43697),s=i(22303),o=i(96674),l=i(5600),a=i(75215),d=(i(67676),i(80442),i(52011)),u=i(30556);let p=r=class extends o.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new r({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,n._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],p.prototype,"color",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,n._)([(0,l.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,n._)([(0,u.c)("value")],p.prototype,"writeValue",null),p=r=(0,n._)([(0,d.j)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},36405:(e,t,i)=>{function r(e,t){return t?.mode?t.mode:function(e){return e?d:u}(e).mode}function n(e,t){return r(null!=e&&e.hasZ,t)}function s(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(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)}i.d(t,{LR:()=>a,Uy:()=>s,VW:()=>n,Wb:()=>o,kf:()=>l}),i(12541);const d={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},32163:(e,t,i)=>{i.d(t,{eZ:()=>d});var r=i(51773),n=i(69165),s=i(84649),o=(i(63801),i(48074),i(38745),i(9190)),l=(i(10214),i(71423),i(44951),i(422)),a=i(29986);function d({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:d},y){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function(e,t){const i=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===i&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||h).map((t=>new l.Z({fieldName:t.name,isEditable:(0,n.Hp)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},y);if(!m.length)return null;const f=function(e){const t=(0,n.O5)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:d,fields:i,displayField:e}),g=[new o.Z,new s.Z];return new r.Z({title:f,content:g,fieldInfos:m})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Fv)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"string":return(0,n.Ec)(e.name)?new a.Z({digitSeparator:!0,places:0}):null;default:return null}}function y(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const h=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4723],{84552:(e,t,i)=>{i.d(t,{Z:()=>c});var r=i(43697),o=i(2368),n=i(96674),s=i(35463),l=i(5600),p=(i(75215),i(67676),i(80442),i(36030)),a=i(52011),d=i(78981);let u=class extends((0,o.J)(n.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.rJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,p.J)(d.v,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r._)([(0,a.j)("esri.TimeInterval")],u);const c=u},41123:(e,t,i)=>{i.d(t,{D:()=>o,z:()=>n});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o()}}`}},90100:(e,t,i)=>{i.d(t,{Z:()=>Ue});var r,o=i(43697),n=i(96674),s=i(22974),l=i(5600),p=i(90578),a=i(71715),d=i(52011),u=i(30556),c=i(75215);i(67676),i(80442);let y=r=class extends n.wq{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,l.Cb)({type:["boolean","date","number","string"],json:{write:!0}})],y.prototype,"returnType",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=r=(0,o._)([(0,d.j)("esri.form.ExpressionInfo")],y);const h=y;let m=class extends n.wq{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o._)([(0,l.Cb)()],m.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o._)([(0,d.j)("esri.form.elements.Element")],m);const b=m;var v;let f=v=class extends n.wq{constructor(e){super(e),this.type=null}clone(){return new v({type:this.type})}};(0,o._)([(0,l.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],f.prototype,"type",void 0),f=v=(0,o._)([(0,d.j)("esri.form.elements.inputs.AttachmentInput")],f);const w=f;var g;let _=g=class extends b{constructor(e){super(e),this.attachmentKeyword=null,this.editableExpression=null,this.input=null,this.type="attachment"}clone(){return new g({attachmentKeyword:this.attachmentKeyword,description:this.description,editableExpression:this.editableExpression,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"attachmentKeyword",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"editableExpression",void 0),(0,o._)([(0,l.Cb)({type:w,json:{read:{source:"inputType"},write:{target:"inputType"}}})],_.prototype,"input",void 0),(0,o._)([(0,l.Cb)({type:["attachment"],json:{read:!1,write:!0}})],_.prototype,"type",void 0),_=g=(0,o._)([(0,d.j)("esri.form.elements.AttachmentElement")],_);const x=_;var C=i(60235),j=i(92604);let S=class extends n.wq{constructor(e){super(e),this.type=null}};(0,o._)([(0,l.Cb)()],S.prototype,"type",void 0),S=(0,o._)([(0,d.j)("esri.form.elements.inputs.Input")],S);const I=S;let F=class extends I{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],F.prototype,"maxLength",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],F.prototype,"minLength",void 0),F=(0,o._)([(0,d.j)("esri.form.elements.inputs.TextInput")],F);const E=F;var T;let M=T=class extends E{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new T({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,l.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],M.prototype,"type",void 0),M=T=(0,o._)([(0,d.j)("esri.form.elements.inputs.BarcodeScannerInput")],M);const O=M;var R;let U=R=class extends I{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new R({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],U.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],U.prototype,"showNoValueOption",void 0),(0,o._)([(0,l.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],U.prototype,"type",void 0),U=R=(0,o._)([(0,d.j)("esri.form.elements.inputs.ComboBoxInput")],U);const V=U;var k;function D(e){return null!=e?e:null}function N(e){return null!=e?e:null}let A=k=class extends I{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return D(t.max)}writeMax(e,t){t.max=N(e)}readMin(e,t){return D(t.min)}writeMin(e,t){t.min=N(e)}clone(){return new k({max:this.max,min:this.min})}};(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],A.prototype,"max",void 0),(0,o._)([(0,a.r)("max")],A.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],A.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],A.prototype,"min",void 0),(0,o._)([(0,a.r)("min")],A.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],A.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:["date-picker"],json:{read:!1,write:!0}})],A.prototype,"type",void 0),A=k=(0,o._)([(0,d.j)("esri.form.elements.inputs.DatePickerInput")],A);const Z=A;var B;function L(e){return null!=e?e:null}function H(e){return null!=e?e:null}let J=B=class extends I{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return L(t.max)}writeMax(e,t){t.max=H(e)}readMin(e,t){return L(t.min)}writeMin(e,t){t.min=H(e)}readTimeResolution(e,t){return L(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=H(e)}clone(){return new B({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],J.prototype,"includeTimeOffset",void 0),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],J.prototype,"max",void 0),(0,o._)([(0,a.r)("max")],J.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],J.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],J.prototype,"min",void 0),(0,o._)([(0,a.r)("min")],J.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],J.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],J.prototype,"timeResolution",void 0),(0,o._)([(0,a.r)("timeResolution")],J.prototype,"readTimeResolution",null),(0,o._)([(0,u.c)("timeResolution")],J.prototype,"writeTimeResolution",null),(0,o._)([(0,l.Cb)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],J.prototype,"type",void 0),J=B=(0,o._)([(0,d.j)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],J);const q=J;var G;function W(e){return null!=e?new Date(e):null}function Q(e){return e?e.getTime():null}let P=G=class extends I{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return W(t.max)}writeMax(e,t){t.max=Q(e)}readMin(e,t){return W(t.min)}writeMin(e,t){t.min=Q(e)}clone(){return new G({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],P.prototype,"includeTime",void 0),(0,o._)([(0,l.Cb)({type:Date,json:{type:Number,write:!0}})],P.prototype,"max",void 0),(0,o._)([(0,a.r)("max")],P.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],P.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:Date,json:{type:Number,write:!0}})],P.prototype,"min",void 0),(0,o._)([(0,a.r)("min")],P.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],P.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],P.prototype,"type",void 0),P=G=(0,o._)([(0,d.j)("esri.form.elements.inputs.DateTimePickerInput")],P);const z=P;var $;let K=$=class extends I{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new $({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],K.prototype,"noValueOptionLabel",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],K.prototype,"showNoValueOption",void 0),(0,o._)([(0,l.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],K.prototype,"type",void 0),K=$=(0,o._)([(0,d.j)("esri.form.elements.inputs.RadioButtonsInput")],K);const X=K;var Y;let ee=Y=class extends I{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new Y({offValue:this.offValue,onValue:this.onValue})}};(0,o._)([(0,l.Cb)({type:[String,Number],json:{write:!0}})],ee.prototype,"offValue",void 0),(0,o._)([(0,l.Cb)({type:[String,Number],json:{write:!0}})],ee.prototype,"onValue",void 0),(0,o._)([(0,l.Cb)({type:["switch"],json:{read:!1,write:!0}})],ee.prototype,"type",void 0),ee=Y=(0,o._)([(0,d.j)("esri.form.elements.inputs.SwitchInput")],ee);const te=ee;var ie;let re=ie=class extends E{constructor(e){super(e),this.type="text-area"}clone(){return new ie({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,l.Cb)({type:["text-area"],json:{read:!1,write:!0}})],re.prototype,"type",void 0),re=ie=(0,o._)([(0,d.j)("esri.form.elements.inputs.TextAreaInput")],re);const oe=re;var ne;let se=ne=class extends E{constructor(e){super(e),this.type="text-box"}clone(){return new ne({maxLength:this.maxLength,minLength:this.minLength})}};(0,o._)([(0,l.Cb)({type:["text-box"],json:{read:!1,write:!0}})],se.prototype,"type",void 0),se=ne=(0,o._)([(0,d.j)("esri.form.elements.inputs.TextBoxInput")],se);const le=se;var pe;function ae(e){return null!=e?e:null}function de(e){return null!=e?e:null}let ue=pe=class extends I{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return ae(t.max)}writeMax(e,t){t.max=de(e)}readMin(e,t){return ae(t.min)}writeMin(e,t){t.min=de(e)}readTimeResolution(e,t){return ae(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=de(e)}clone(){return new pe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],ue.prototype,"max",void 0),(0,o._)([(0,a.r)("max")],ue.prototype,"readMax",null),(0,o._)([(0,u.c)("max")],ue.prototype,"writeMax",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],ue.prototype,"min",void 0),(0,o._)([(0,a.r)("min")],ue.prototype,"readMin",null),(0,o._)([(0,u.c)("min")],ue.prototype,"writeMin",null),(0,o._)([(0,l.Cb)({type:String,json:{type:String,write:!0}})],ue.prototype,"timeResolution",void 0),(0,o._)([(0,a.r)("timeResolution")],ue.prototype,"readTimeResolution",null),(0,o._)([(0,u.c)("timeResolution")],ue.prototype,"writeTimeResolution",null),(0,o._)([(0,l.Cb)({type:["time-picker"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=pe=(0,o._)([(0,d.j)("esri.form.elements.inputs.TimePickerInput")],ue);const ce={base:I,key:"type",typeMap:{"barcode-scanner":O,"combo-box":V,"date-picker":Z,"datetime-picker":z,"datetimeoffset-picker":q,"radio-buttons":X,switch:te,"text-area":oe,"text-box":le,"time-picker":ue}};var ye,he=i(72729);const me="esri.form.elements.FieldElement",be=j.Z.getLogger(me);let ve=ye=class extends b{constructor(e){super(e),this.domain=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}get editable(){return(0,C.Mr)(be,"editable",{replacement:"editableExpression",version:"4.26",warnOnce:!0}),this._get("editable")??!0}set editable(e){(0,C.Mr)(be,"editable",{replacement:"editableExpression",version:"4.26",warnOnce:!0}),this._set("editable",e)}clone(){return new ye({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({types:he.V5,json:{read:{reader:he.im},write:!0}})],ve.prototype,"domain",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],ve.prototype,"editable",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],ve.prototype,"editableExpression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],ve.prototype,"fieldName",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],ve.prototype,"hint",void 0),(0,o._)([(0,l.Cb)({types:ce,json:{read:{source:"inputType"},write:{target:"inputType"}}})],ve.prototype,"input",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],ve.prototype,"requiredExpression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:!1,write:!0}})],ve.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],ve.prototype,"valueExpression",void 0),ve=ye=(0,o._)([(0,d.j)(me)],ve);const fe=ve;var we,ge=i(44729);let _e=we=class extends b{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new we({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],_e.prototype,"displayCount",void 0),(0,o._)([(0,l.Cb)({type:["list"],json:{write:!0}})],_e.prototype,"displayType",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],_e.prototype,"editableExpression",void 0),(0,o._)([(0,l.Cb)({type:[ge.Z],json:{write:!0}})],_e.prototype,"orderByFields",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],_e.prototype,"relationshipId",void 0),(0,o._)([(0,l.Cb)({type:["relationship"],json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=we=(0,o._)([(0,d.j)("esri.form.elements.RelationshipElement")],_e);const xe=_e;function Ce(e){return{typesWithGroup:{base:b,key:"type",typeMap:{attachment:x,field:fe,group:e,relationship:xe}},typesWithoutGroup:{base:b,key:"type",typeMap:{attachment:x,field:fe,relationship:xe}}}}function je(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>r[e.type].fromJSON(e)))}function Se(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>r[e.type])).map((e=>e.toJSON()))}function Ie(e,t,i=!0){return e?e.map((e=>(0,c.N7)(i?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Fe;let Ee=Fe=class extends b{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ie(e,Te,!1)}readElements(e,t){return je(t.formElements,Te,!1)}writeElements(e,t){t.formElements=Se(e,Te,!1)}clone(){return new Fe({description:this.description,elements:(0,s.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o._)([(0,l.Cb)({json:{write:!0}})],Ee.prototype,"elements",void 0),(0,o._)([(0,p.p)("elements")],Ee.prototype,"castElements",null),(0,o._)([(0,a.r)("elements",["formElements"])],Ee.prototype,"readElements",null),(0,o._)([(0,u.c)("elements")],Ee.prototype,"writeElements",null),(0,o._)([(0,l.Cb)({type:["collapsed","expanded"],json:{write:!0}})],Ee.prototype,"initialState",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),Ee=Fe=(0,o._)([(0,d.j)("esri.form.elements.GroupElement")],Ee);const Te=Ce(Ee);var Me;const Oe=Ce(Ee);let Re=Me=class extends n.wq{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Ie(e,Oe)}readElements(e,t){return je(t.formElements,Oe)}writeElements(e,t){t.formElements=Se(e,Oe)}clone(){return new Me({description:this.description,expressionInfos:(0,s.d9)(this.expressionInfos),elements:(0,s.d9)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],Re.prototype,"description",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],Re.prototype,"elements",void 0),(0,o._)([(0,p.p)("elements")],Re.prototype,"castElements",null),(0,o._)([(0,a.r)("elements",["formElements"])],Re.prototype,"readElements",null),(0,o._)([(0,u.c)("elements")],Re.prototype,"writeElements",null),(0,o._)([(0,l.Cb)({type:[h],json:{write:!0}})],Re.prototype,"expressionInfos",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{default:!1,write:!0}})],Re.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],Re.prototype,"title",void 0),Re=Me=(0,o._)([(0,d.j)("esri.form.FormTemplate")],Re);const Ue=Re},79235:(e,t,i)=>{i.d(t,{Z:()=>w});var r,o=i(43697),n=i(67676),s=i(35454),l=i(96674),p=i(67900),a=i(20941),d=i(5600),u=(i(75215),i(80442),i(71715)),c=i(52011),y=i(30556);const h=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.e$)(m,"orthometric");const b=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let v=r=class extends l.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return b.read(e)||(i?.messages&&i.messages.push(f(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.$C)(e)||b.read(e)||(i?.messages&&i.messages.push(f(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.cM)(t);return new r({heightModel:e.heightModel,heightUnit:i,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function f(e,t){return new a.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,d.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,o._)([(0,y.c)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o._)([(0,u.r)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o._)([(0,d.Cb)({type:b.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:b.jsonValues,write:b.write}}}})],v.prototype,"heightUnit",void 0),(0,o._)([(0,u.r)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o._)([(0,u.r)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o._)([(0,d.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o._)([(0,u.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o._)([(0,c.j)("esri.geometry.HeightModelInfo")],v);const w=v},66361:(e,t,i)=>{i.d(t,{jF:()=>d,lQ:()=>y,o1:()=>b});var r=i(43697),o=i(32448),n=i(22974),s=i(95330),l=(i(92604),i(75215),i(20102),i(80442),i(52011)),p=i(18596);const a=new o.Z.EventEmitter;function d(e,t,i=null,r=!1){const o=(0,s.hh)();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const u="esri.layers.mixins.EditBusLayer",c=Symbol(u);function y(e){return null!=e&&"object"==typeof e&&c in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const r=new URL(e).host,o=p.Jp.get(r),n=e=>!e||e===o;return n(t)&&n(i)||t===i}const b=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,d=h(this),u=h(this)&&m(t,r,this.gdbVersion);if(!l||d&&!u||!a&&!o)return;const c=s.then((e=>{if(a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:i,updates:r,deletes:o}=t.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:i?i.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,n.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.d9)(e.historicMoment)};return this.emit("edits",s),s}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.d9)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,p.JV)(t,r)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=h(this),s=h(this)&&m(t,i,this.gdbVersion),l=h(this)&&!m(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then((()=>{this.addHandles(function(e){return a.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return a.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=c,i=(0,r._)([(0,l.j)(u)],i),i}},25113:(e,t,i)=>{i.d(t,{B:()=>N});var r=i(43697),o=i(46791),n=i(22974),s=i(92604),l=i(5600),p=(i(75215),i(71715)),a=i(52011),d=i(30556),u=i(82960),c=i(6570),y=i(79235),h=i(82971),m=i(66677),b=i(21506),v=i(2368),f=i(96674),w=(i(67676),i(80442),i(25031));let g=class extends((0,v.J)(f.wq)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r._)([(0,l.Cb)()],g.prototype,"creatorField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"creationDateField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"editorField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"editDateField",void 0),(0,r._)([(0,l.Cb)()],g.prototype,"realm",void 0),(0,r._)([(0,l.Cb)((0,w.mi)("dateFieldsTimeReference",!0))],g.prototype,"timeZone",void 0),g=(0,r._)([(0,a.j)("esri.layers.support.EditFieldsInfo")],g);const _=g;let x=class extends((0,v.J)(f.wq)){constructor(e){super(e)}};(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"name",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"fields",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"isAscending",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"indexType",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"isUnique",void 0),(0,r._)([(0,l.Cb)({constructOnly:!0,json:{write:!0}})],x.prototype,"description",void 0),x=(0,r._)([(0,a.j)("esri.layers.support.FeatureIndex")],x);var C=i(45574),j=i(67900);let S=class extends((0,v.J)(f.wq)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.Cb)({type:String,json:{read:e=>j.gV.read(e)||j.Jo.read(e)}})],S.prototype,"units",void 0),S=(0,r._)([(0,a.j)("esri.layers.support.GeometryFieldsInfo")],S);const I=S;var F=i(56765),E=i(35454);const T=new E.X({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),M=new E.X({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let O=class extends((0,v.J)(f.wq)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r._)([(0,l.Cb)({json:{read:T.read,write:T.write}})],O.prototype,"cardinality",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"composite",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"id",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"keyField",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"keyFieldInRelationshipTable",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"name",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"relatedTableId",void 0),(0,r._)([(0,l.Cb)({json:{read:!0,write:!0}})],O.prototype,"relationshipTableId",void 0),(0,r._)([(0,l.Cb)({json:{read:M.read,write:M.write}})],O.prototype,"role",void 0),O=(0,r._)([(0,a.j)("esri.layers.support.Relationship")],O);const R=O;var U=i(54275),V=i(72729);let k=class extends((0,v.J)(f.wq)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,V.im)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],k.prototype,"code",void 0),(0,r._)([(0,l.Cb)({type:Object,json:{write:!0}})],k.prototype,"defaultValues",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"domains",void 0),(0,r._)([(0,p.r)("domains")],k.prototype,"readDomains",null),(0,r._)([(0,d.c)("domains")],k.prototype,"writeDomains",null),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],k.prototype,"name",void 0),k=(0,r._)([(0,a.j)("esri.layers.support.Subtype")],k);const D=k,N=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.Z.ofType(x)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.Z.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}return this.userHasUpdateItemPrivileges?(0,C.uA)(this)?"load":this.hasUpdateItemRestrictions?e.operations.supportsQuery?"editing":"load":null:this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions?"editing":null}readCapabilitiesFromService(e,t){return(0,U.h)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.d9)(e),{operations:i,editing:r}=t;return this.sourceJSON?.isMultiServicesView?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,C.rk)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||this.sourceJSON?.isMultiServicesView)return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return this.sourceJSON?.isMultiServicesView?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,C.kZ)(t)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}set url(e){const t=(0,m.XG)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:s.Z.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,r){(0,m.wH)(this,e,null,t,r)}readVersion(e,t){return(0,C.JY)(t)}};return(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.Cb)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,p.r)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.Cb)((0,w.mi)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,r._)([(0,l.Cb)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.Cb)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,p.r)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.Cb)((()=>{const e=(0,n.d9)(b.PV),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],t.prototype,"elevationInfo",void 0),(0,r._)([(0,l.Cb)({type:F.Z,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.C}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.Cb)({type:c.Z,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:I,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:C.Fr.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.Cb)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,p.r)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,type:y.Z})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.Cb)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.Cb)({type:o.Z.ofType(x),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,p.r)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.Cb)(b.u1)],t.prototype,"maxScale",void 0),(0,r._)([(0,p.r)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.Cb)(b.rO)],t.prototype,"minScale",void 0),(0,r._)([(0,p.r)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.Cb)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,p.r)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.Cb)((0,w.mi)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,r._)([(0,l.Cb)({type:[R],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.Cb)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.Cb)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.Cb)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,p.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.Cb)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.Cb)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.Cb)({type:h.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.Cb)({type:[D],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.Cb)(b.HQ)],t.prototype,"url",null),(0,r._)([(0,d.c)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.Cb)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,p.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,a.j)("esri.layers.mixins.FeatureLayerBase")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>c});var r=i(43697),o=i(92835),n=i(84552),s=i(5600),l=(i(75215),i(67676),i(80442),i(71715)),p=i(52011),a=i(69165),d=i(76259),u=i(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=u.v.fromJSON(i.timeOffsetUnits);return r&&o?new n.Z({value:r,unit:o}):null}set timeInfo(e){(0,a.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,s.Cb)({type:o.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,s.Cb)({type:n.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,s.Cb)({value:null,type:d.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,s.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,p.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,i)=>{i.d(t,{Z:()=>m});var r=i(43697),o=i(92835),n=i(84552),s=i(2368),l=i(96674),p=i(5600),a=(i(75215),i(67676),i(80442),i(71715)),d=i(52011),u=i(30556),c=i(25031);function y(e,t){return n.Z.fromJSON({value:e,unit:t})}let h=class extends((0,s.J)(l.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new o.Z({start:i,end:r})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,p.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r._)([(0,p.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r._)([(0,p.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r._)([(0,a.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r._)([(0,p.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r._)([(0,a.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r._)([(0,u.c)("interval")],h.prototype,"writeInterval",null),(0,r._)([(0,p.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r._)([(0,p.Cb)((0,c.mi)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,r._)([(0,d.j)("esri.layers.support.TimeInfo")],h);const m=h},60199:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(66677);const o=[];function n(e,t){if((0,r.M8)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),o.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),o.push([10.61,()=>new Set([102497])]),o.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}])},78981:(e,t,i)=>{i.d(t,{v:()=>r});const r=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},18596:(e,t,i)=>{i.d(t,{JV:()=>l,Jp:()=>o,Px:()=>s,U8:()=>r});const r=(0,i(41123).z)(),o=new Map,n=new Map;async function s(e,t,o=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=n.get(s)?.entries();if(l)for(const[e,n]of l)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&o){const[{deleteForwardEdits:t},{default:o}]=await Promise.all([i.e(1316).then(i.bind(i,51316)),i.e(4573).then(i.bind(i,84573))]);return t(s,e,new o({sessionId:r,moment:n.moment}))}return t}return!0}function l(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=n.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map},12259:(e,t,i)=>{var r;i.d(t,{x:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6882,9379],{13598:(e,t,r)=>{function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}function n(e,t){return new Float64Array(e,t,16)}r.d(t,{I:()=>i,a:()=>s,b:()=>a,c:()=>n});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:a,create:s,createView:n,fromValues:function(e,t,r,s,a,n,i,o,l,u,d,p,c,y,h,f){return[e,t,r,s,a,n,i,o,l,u,d,p,c,y,h,f]}},Symbol.toStringTag,{value:"Module"}))},20773:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>i,c:()=>a,d:()=>d,e:()=>l,n:()=>p,s:()=>u,t:()=>n});var s=r(72220);function a(e,t,r){n(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function n(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return s.c.error("source and destination buffers need to have the same number of elements"),e;const i=e.length/a,o=r[0],l=r[1],u=r[2],d=r[4],p=r[5],c=r[6],y=r[8],h=r[9],f=r[10],m=r[12],g=r[13],b=r[14];let w=0,F=0;for(let r=0;r<i;r++){const r=t[w],s=t[w+1],i=t[w+2];e[F]=o*r+d*s+y*i+m,e[F+1]=l*r+p*s+h*i+g,e[F+2]=u*r+c*s+f*i+b,w+=n,F+=a}return e}function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return void s.c.error("source and destination buffers need to have the same number of elements");const i=e.length/a,o=r[0],l=r[1],u=r[2],d=r[3],p=r[4],c=r[5],y=r[6],h=r[7],f=r[8];let m=0,g=0;for(let r=0;r<i;r++){const r=t[m],s=t[m+1],i=t[m+2];e[g]=o*r+d*s+y*i,e[g+1]=l*r+p*s+h*i,e[g+2]=u*r+c*s+f*i,m+=n,g+=a}}function l(e,t,r){u(e.typedBuffer,t,r,e.typedBufferStride)}function u(e,t,r,s=3){const a=Math.min(e.length/s,t.count),n=t.typedBuffer,i=t.typedBufferStride;let o=0,l=0;for(let t=0;t<a;t++)e[l]=r*n[o],e[l+1]=r*n[o+1],e[l+2]=r*n[o+2],o+=i,l+=s}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,r=3,s=r){const a=Math.min(e.length/r,t.length/s);let n=0,i=0;for(let o=0;o<a;o++){const a=t[n],o=t[n+1],l=t[n+2],u=a*a+o*o+l*l;if(u>0){const t=1/Math.sqrt(u);e[i]=t*a,e[i+1]=t*o,e[i+2]=t*l}n+=s,i+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:p,normalizeView:d,scale:u,scaleView:l,shiftRight:function(e,t,r){const s=Math.min(e.count,t.count),a=e.typedBuffer,n=e.typedBufferStride,i=t.typedBuffer,o=t.typedBufferStride;let l=0,u=0;for(let e=0;e<s;e++)a[u]=i[l]>>r,a[u+1]=i[l+1]>>r,a[u+2]=i[l+2]>>r,l+=o,u+=n},transformMat3:o,transformMat3View:i,transformMat4:n,transformMat4View:a},Symbol.toStringTag,{value:"Module"}))},85872:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),a=r(2368),n=r(96674),i=r(5600),o=(r(75215),r(67676),r(80442),r(36030)),l=r(52011),u=r(65617),d=r(94139);let p=class extends((0,a.J)(n.wq)){constructor(e){super(e),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,s]=this.origin;return new d.Z({x:t,y:r,z:s,spatialReference:e})}setOriginFromPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,s._)([(0,o.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],p.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"origin",void 0),p=(0,s._)([(0,l.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],p);const c=p},72220:(e,t,r)=>{r.d(t,{c:()=>s});const s=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},84470:(e,t,r)=>{r.d(t,{CP:()=>o,JG:()=>h,LL:()=>l,NZ:()=>u,fV:()=>f,vj:()=>g,yT:()=>w,zE:()=>b});var s=r(3172),a=r(67676),n=r(95330),i=r(2981);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,a.fS)(this.parts,e.parts,((e,t)=>e.equals(t)))}isOnService(e){return this.parts.every((t=>t.isOnService(e)))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const r=await Promise.all(t.map((t=>t.toBlob(e))));return(0,n.k_)(e),new Blob(r)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,s.Z)(this.partUrl,{responseType:"blob"});return(0,n.k_)(e),t}}function u(e){return function(e){return!!e&&(Array.isArray(e)?e.some(y):y(e))}(e?.source)}function d(e){return!!Array.isArray(e)&&e.every((e=>e instanceof o))}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function y(e){if(e instanceof File){const{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function h(e,t){if(!e)return!1;const{source:r}=e;return function(e,t){if(Array.isArray(e)){const r=e;return r.length>0&&r.every((e=>m(e,t)))}return m(e,t)}(r,t)}function f(e,t){if(e===t)return!0;const{source:r}=e,{source:s}=t;if(r===s)return!0;if(d(r)&&d(s)){if(r.length!==s.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...r].sort(e),a=[...s].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(a[e]))return!1;return!0}return!1}function m(e,t){return e instanceof o&&e.isOnService(t)}function g(e,t){return e instanceof File?(0,i.dm)(e,t):(0,i.S0)(e.assetMimeType,t)??(0,i.Ow)(e.assetName,t)}function b(e){return Array.isArray(e)?e:[e]}function w(e){return!!e.original}},61159:(e,t,r)=>{r.d(t,{g:()=>s});const s={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},14720:(e,t,r)=>{r.d(t,{Ey:()=>F,applyEdits:()=>S,aw:()=>b,uploadAssets:()=>q});var s=r(38171),a=r(46791),n=r(20102),i=r(22974),o=r(92604),l=r(95330),u=r(17452),d=r(41123),p=r(16306),c=r(66361),y=r(69165),h=r(2981),f=r(84230);function m(e){return null!=e?.applyEdits}function g(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function b(e){return e.every(g)}function w(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function F(e){return e.every(w)}async function S(e,t,r,s={}){let u;const p="gdbVersion"in e?e.gdbVersion:null,y=s.gdbVersion??p;if((0,c.lQ)(e)&&e.url)u=(0,c.jF)(e.url,e.layerId,y,"original-and-current-features"===s.returnServiceEditsOption);else{u=(0,l.hh)(),u.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:u.promise};e.emit("apply-edits",t)}try{const{results:l,edits:p}=await async function(e,t,r,s){if(await e.load(),!m(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,f.ln)(e))throw new n.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,r){const s=(0,f.S1)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),u=null!=e.infoFor3D;if(function(e,t,r,s,a,i){if(!e||!s&&!a)throw new n.Z(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&r?.globalIdUsed)throw new n.Z(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&a)throw new n.Z(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!r?.globalIdUsed&&a)throw new n.Z(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,s,r,!!i,!!l,`${e.type}-layer`),!s.data.isVersioned&&r?.gdbVersion)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!s.editing.supportsRollbackOnFailure&&r?.rollbackOnFailureEnabled)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const p={...r};if(null!=p.rollbackOnFailureEnabled||s.editing.supportsRollbackOnFailure||(p.rollbackOnFailureEnabled=!0),p.rollbackOnFailureEnabled||"original-and-current-features"!==p.returnServiceEditsOption||(!1===p.rollbackOnFailureEnabled&&o.Z.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwrritten and set to true."),p.rollbackOnFailureEnabled=!0),!s.editing.supportsReturnServiceEditsInSourceSpatialReference&&p.returnServiceEditsInSourceSR)throw new n.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(p.returnServiceEditsInSourceSR&&"original-and-current-features"!==p.returnServiceEditsOption)throw new n.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const c=function(e,t,r){const s=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&a.Z.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(s.addFeatures?.length&&!t.operations.supportsAdd)throw new n.Z(`${r}:unsupported-operation`,"Layer does not support adding features.");if(s.updateFeatures?.length&&!t.operations.supportsUpdate)throw new n.Z(`${r}:unsupported-operation`,"Layer does not support updating features.");if(s.deleteFeatures?.length&&!t.operations.supportsDelete)throw new n.Z(`${r}:unsupported-operation`,"Layer does not support deleting features.");return s.addFeatures=s.addFeatures.map(O),s.updateFeatures=s.updateFeatures.map(O),s.addAssetFeatures=[],s}(t,s,`${e.type}-layer`),y=r?.globalIdUsed||u,m=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(y){const{globalIdField:t}=e;if(null==t)throw new n.Z(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");c.addFeatures.forEach((e=>function(e,t){const{attributes:r}=e;null==r[t]&&(r[t]=(0,d.z)())}(e,t)))}return c.addFeatures.forEach((t=>function(e,t,r,s){R(e,t,r,s),v(e,t)}(t,e,y,m))),c.updateFeatures.forEach((t=>function(e,t,r,s){R(e,t,r,s),v(e,t);const a=(0,f.S1)(t);if("geometry"in e&&null!=e.geometry&&!a?.editing.supportsGeometryUpdate)throw new n.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,y,m))),c.deleteFeatures.forEach((t=>function(e,t,r,s){R(e,t,r,s)}(t,e,y,m))),c.addAttachments.forEach((t=>A(t,e))),c.updateAttachments.forEach((t=>A(t,e))),u&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:r}=t,s=(0,h.S0)("model/gltf-binary",r.supportedFormats)??(0,h.Ow)("glb",r.supportedFormats);if(!s||!r.editFormats.includes(s))throw new n.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])E(t)&&a.push(t);for(const t of e.updateFeatures??[])E(t)&&a.push(t)}(c,e),{edits:await I(c),options:p}}(e,r,s);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,r,s),c=e=>e.filter((e=>!e.error)).map(i.d9),y={edits:p,addedFeatures:c(l.addFeatureResults),updatedFeatures:c(l.updateFeatureResults),deletedFeatures:c(l.deleteFeatureResults),addedAttachments:c(l.addAttachmentResults),updatedAttachments:c(l.updateAttachmentResults),deletedAttachments:c(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:s.globalIdToObjectId};return l.editedFeatureResults?.length&&(y.editedFeatures=l.editedFeatureResults),u.resolve(y),l}catch(e){throw u.reject(e),e}}function R(e,t,r,s){if(r){if("attributes"in e&&!e.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(s.length&&"attributes"in e)for(const r of s){const s=e.attributes[r.name];if(void 0!==s&&!(0,y.d2)(r,s))throw new n.Z(`${t.type}-layer:invalid-parameter`,`Big-integer field '${r.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new n.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new n.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function v(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D){const{geometry:r}=e;if(r.vertexSpace.isGeoreferenced)throw new n.Z(`${t.type}-layer:georeferenced-mesh-unsupported`,"Uploading georeferenced meshes to a layer is not supported.")}}function A(e,t){const{feature:r,attachment:s}=e;if(!r||"attributes"in r&&!r.attributes[t.globalIdField])throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in r)&&!r.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!s.globalId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!s.data&&!s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(s.data instanceof File&&s.data.name||s.name))throw new n.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&s.uploadId)throw new n.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof s.data){const e=(0,u.sJ)(s.data);if(e&&!e.isBase64)throw new n.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function I(e){const t=e.addFeatures??[],r=e.updateFeatures??[],s=t.concat(r).map((e=>e.geometry)),a=await(0,p.aX)(s),n=t.length,i=r.length;return a.slice(0,n).forEach(((e,r)=>t[r].geometry=e)),a.slice(n,n+i).forEach(((e,t)=>r[t].geometry=e)),e}function O(e){const t=new s.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function E(e){return"mesh"===e?.geometry?.type}function q(e,t,r,s){if(!m(t))throw new n.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new n.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(r,s)}},49379:(e,t,r)=>{r.r(t),r.d(t,{default:()=>K});var s=r(43697),a=(r(66577),r(40330)),n=r(3172),i=r(92835),o=r(67676),l=r(20102),u=r(80442),d=r(35454),p=r(83379),c=r(92604),y=r(78286),h=r(95330),f=r(17452),m=r(41123),g=r(5600),b=(r(75215),r(52011)),w=r(6570),F=r(52138),S=r(13598),R=r(85872),v=r(20773);function A(e){const{vertexSpace:t}=e;if(t.isRelative)return e.clone();const{anchor:r}=e,s=r.clone(),a=(0,F.d)(I,[-s.x,-s.y,-s.z]),n=new R.Z({origin:[s.x,s.y,s.z]}),i=e.cloneWithVertexSpace(n),{position:o}=i.vertexAttributes;return i.vertexAttributes.position=(0,v.t)(new Float64Array(o.length),o,a),i.vertexAttributesChanged(),i}const I=(0,S.a)();var O=r(84470),E=r(38171),q=r(67900),x=r(73615),_=r(33955),Z=r(14720);async function T(e,t,r){const{geometry:s}=t,a={...t.attributes};if(null!=r&&"mesh"===s?.type){const{transformFieldRoles:t}=r,{origin:n,spatialReference:i,transform:o}=s,l=e.spatialReference;await(0,x.initializeProjection)(i,l);const u=(0,x.project)(n,l);if(a[t.originX]=u.x,a[t.originY]=u.y,a[t.originZ]=u.z??0,null!=o){const{translation:e,scale:r,rotation:n}=o,{vertexSpace:u}=s,d=u.isGeoreferenced?1:(0,q.r6)(i)/(0,q.r6)(l);a[t.translationX]=e[0]*d,a[t.translationY]=e[2]*d,a[t.translationZ]=-e[1]*d,a[t.scaleX]=r[0],a[t.scaleY]=r[2],a[t.scaleZ]=r[1],a[t.rotationX]=n[0],a[t.rotationY]=n[2],a[t.rotationZ]=-n[1],a[t.rotationDeg]=n[3]}return{attributes:a}}return null==s?{attributes:a}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:a}}async function M(e,t){const r=await Promise.all((t.addAttachments??[]).map((t=>C(e,t)))),s=await Promise.all((t.updateAttachments??[]).map((t=>C(e,t)))),a=t.deleteAttachments??[];return r.length||s.length||a.length?{adds:r,updates:s,deletes:[...a]}:null}async function C(e,t){const{feature:r,attachment:s}=t,{globalId:a,name:n,contentType:i,data:o,uploadId:l}=s,u={globalId:a};if(r&&("attributes"in r?u.parentGlobalId=r.attributes?.[e.globalIdField]:r.globalId&&(u.parentGlobalId=r.globalId)),l)u.uploadId=l;else if(o){const e=await(0,f.IR)(o);e&&(u.contentType=e.mediaType,u.data=e.data),o instanceof File&&(u.name=o.name)}return n&&(u.name=n),i&&(u.contentType=i),u}function N(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}function $(e,t){return new E.Z({attributes:e.attributes,geometry:(0,_.im)({...e.geometry,spatialReference:t})})}function U(e,t){return{adds:e?.adds?.map((e=>$(e,t)))||[],updates:e?.updates?.map((e=>({original:$(e[0],t),current:$(e[1],t)})))||[],deletes:e?.deletes?.map((e=>$(e,t)))||[],spatialReference:t}}var j=r(25278),B=r(49735),P=r(66677),k=r(45574),G=r(2981),J=r(4967),z=r(59431),L=r(14165),D=r(18596),Q=r(82971);const V=new d.X({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),H=new Set(["Feature Layer","Oriented Imagery Layer","Table"]),X=new d.X({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let W=class extends p.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,h.Ds)((async()=>{await this.load();const e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}})),this._ongoingAssetUploads=new Map}load(e){const t=this.layer.sourceJSON,r=this._fetchService(t,{...e}).then((()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,e))).then((()=>this._ensureLatestMetadata(e)));return this.addResolvingPromise(r),Promise.resolve(this)}get queryTask(){const{capabilities:e,parsedUrl:t,dynamicDataSource:r,infoFor3D:s,gdbVersion:a,spatialReference:n,fieldsIndex:i}=this.layer,o=(0,u.Z)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==s,l=e?.operations?.supportsQueryAttachments??!1;return new B.Z({url:t.path,pbfSupported:o,fieldsIndex:i,infoFor3D:s,dynamicDataSource:r,gdbVersion:a,sourceSpatialReference:n,queryAttachmentsSupported:l})}async addAttachment(e,t){await this.load();const{layer:r}=this;await(0,k.nU)(r,"editing");const s=e.attributes[r.objectIdField],a=r.parsedUrl.path+"/"+s+"/addAttachment",i=this._getLayerRequestOptions(),o=this._getFormDataForAttachment(t,i.query);try{return N((await(0,n.Z)(a,{body:o})).data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async updateAttachment(e,t,r){await this.load();const{layer:s}=this;await(0,k.nU)(s,"editing");const a=e.attributes[s.objectIdField],i=s.parsedUrl.path+"/"+a+"/updateAttachment",o=this._getLayerRequestOptions({query:{attachmentId:t}}),l=this._getFormDataForAttachment(r,o.query);try{return N((await(0,n.Z)(i,{body:l})).data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(a,e)}}async applyEdits(e,t){await this.load();const{layer:r}=this;await(0,k.nU)(r,"editing");const s=r.infoFor3D,i=null!=s,l=i||(t?.globalIdUsed??!1),u=i?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,d=e.addFeatures?.map((e=>T(this.layer,e,s)))??[],p=(await Promise.all(d)).filter(o.pC),c=e.updateFeatures?.map((e=>T(this.layer,e,s)))??[],y=(await Promise.all(c)).filter(o.pC),h=function(e,t,r){if(!t||0===t.length)return[];if(r&&(0,Z.Ey)(t))return t.map((e=>e.globalId));if((0,Z.aw)(t))return t.map((e=>e.objectId));const s=r?e.globalIdField:e.objectIdField;return s?t.map((e=>e.getAttribute(s))):[]}(this.layer,e.deleteFeatures,l);(0,z.P)(p,y,r.spatialReference);const f=await M(this.layer,e),m=r.capabilities.editing.supportsAsyncApplyEdits&&i,g=t?.gdbVersion||r.gdbVersion,b={gdbVersion:g,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:l,returnEditMoment:t?.returnEditMoment,usePreviousEditMoment:t?.usePreviousEditMoment,async:m};await(0,D.Px)(this.layer.url,g,!0);const w=(0,D.JV)(this.layer.url,g||null);t?.returnServiceEditsOption?(b.edits=JSON.stringify([{id:r.layerId,adds:p,updates:y,deletes:h,attachments:f,assetMaps:u}]),b.returnServiceEditsOption=V.toJSON(t?.returnServiceEditsOption),b.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(b.adds=p.length?JSON.stringify(p):null,b.updates=y.length?JSON.stringify(y):null,b.deletes=h.length?l?JSON.stringify(h):h.join(","):null,b.attachments=f&&JSON.stringify(f),b.assetMaps=null!=u?JSON.stringify(u):void 0);const F=this._getLayerRequestOptions({method:"post",query:b});w&&(F.authMode="immediate",F.query.returnEditMoment=!0,F.query.sessionId=D.U8);const S=t?.returnServiceEditsOption?r.url:r.parsedUrl.path;let R;try{R=m?await this._asyncApplyEdits(S+"/applyEdits",F):await(0,n.Z)(S+"/applyEdits",F)}catch(e){if(!function(e){const t=e.details.raw,r=+t.code,s=+t.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(e))throw e;F.authMode="immediate",R=m?await this._asyncApplyEdits(S+"/applyEdits",F):await(0,n.Z)(S+"/applyEdits",F)}if(!r.capabilities.operations?.supportsEditing&&r.effectiveCapabilities?.operations?.supportsEditing){const e=a.id?.findCredential(r.url);await(e?.refreshToken())}return this._createEditsResult(R)}async deleteAttachments(e,t){await this.load();const{layer:r}=this;await(0,k.nU)(r,"editing");const s=e.attributes[r.objectIdField],a=r.parsedUrl.path+"/"+s+"/deleteAttachments";try{return(await(0,n.Z)(a,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(N)}catch(e){throw this._createAttachmentErrorResult(s,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:a}=await(0,n.Z)(`${s}/${r}`,t),{id:o,extent:l,fullExtent:u,timeExtent:d}=a,p=l||u;return{id:o,fullExtent:p&&w.Z.fromJSON(p),timeExtent:d&&i.Z.fromJSON({start:d[0],end:d[1]})}}))}async queryAttachments(e,t={}){await this.load();const r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){await this.load();const r=await this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)});return e.outStatistics?.length&&r.features.length&&r.features.forEach((t=>{const r=t.attributes;e.outStatistics?.forEach((({outStatisticFieldName:e})=>{if(e){const t=e.toLowerCase();t&&t in r&&e!==t&&(r[e]=r[t],delete r[t])}}))})),r}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,P.M8)(this.layer.url))return"unavailable";const e=(0,f.v_)(this.layer.url,"status"),t=await(0,n.Z)(e,{query:{f:"json"}});return X.fromJSON(t.data.status)}async uploadAssets(e,t){const{uploadAssets:s}=await r.e(2046).then(r.bind(r,2046));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}async _asyncApplyEdits(e,t){const r=(await(0,n.Z)(e,t)).data.statusUrl;for(;;){const e=(await(0,n.Z)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,n.Z)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new l.Z("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,h.e4)(Y)}}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const r={};(0,u.Z)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),t?.cacheBust&&(r._ts=Date.now());const{data:s}=await(0,n.Z)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:t?.signal}));e=s}this.sourceJSON=await this._patchServiceJSON(e,t?.signal);const r=e.type;if(!H.has(r))throw new l.Z("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(e,t){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){const t=(0,j.bU)(e.geometryType).renderer;(0,y.RB)("drawingInfo.renderer",t,e)}if("esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),null==e.extent)try{const{data:r}=await(0,n.Z)(this.layer.url,this._getLayerRequestOptions({signal:t}));r.spatialReference&&(e.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(e){(0,h.r9)(e)}return e}async _ensureLatestMetadata(e){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...e,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(e){const{addAssetFeatures:t}=e;if(!t?.length)return null;const r=await this._filterRedundantAssetMaps(t);if(!t?.length)return null;const s=new Array,a=new Map;for(const e of r){const{geometry:t}=e,{vertexSpace:r}=t;if(r.isRelative)s.push(t);else{const r=A(t);a.set(r,t),e.geometry=r,s.push(r)}}await this.uploadAssets(s);for(const[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(r),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){const t=new Array,r=this.layer.globalIdField,s=this.layer.parsedUrl;for(const a of e){const e=a.geometry,{metadata:n}=e,i=n.getExternalSourcesOnService(s),o=a.getAttribute(r);if(0===i.length){c.Z.getLogger(this).error(`Skipping feature ${o}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}const{source:l}=i.find(O.yT)??i[0],{vertexSpace:u}=e,d=u.isGeoreferenced?["PROJECT_VERTICES"]:[];for(const e of l)1===e.parts.length?t.push({globalId:(0,m.z)(),parentGlobalId:o,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:d}):c.Z.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_createEditsResult(e){const t=e.data,{layerId:r}=this.layer,s=[];let a=null;if(Array.isArray(t))for(const e of t)s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(a={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else a=t;const n=function(e){const t=e?.assetMaps;if(t){for(const e of t.addResults)e.success||c.Z.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(const e of t.updateResults)e.success||c.Z.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`)}const r=e?.attachments,s={addFeatureResults:e?.addResults?.map(N)??[],updateFeatureResults:e?.updateResults?.map(N)??[],deleteFeatureResults:e?.deleteResults?.map(N)??[],addAttachmentResults:r?.addResults?r.addResults.map(N):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(N):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(N):[]};return e?.editMoment&&(s.editMoment=e.editMoment),s}(a);if(s.length>0){n.editedFeatureResults=[];for(const e of s){const{editedFeatures:t}=e,r=t?.spatialReference?new Q.Z(t.spatialReference):null;n.editedFeatureResults.push({layerId:e.id,editedFeatures:U(t,r)})}}return n}_createAttachmentErrorResult(e,t){const r=t.details.messages?.[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new l.Z("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){const r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(const e in t){const s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:r,dynamicDataSource:s}=this.layer;return{...e,query:{gdbVersion:r,layer:s?JSON.stringify({source:s}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _filterRedundantAssetMaps(e){const{layer:t}=this,{globalIdField:r,infoFor3D:s,parsedUrl:a}=t;if(null==s||null==r)return e;const n=(0,G.$6)(s);if(null==n)return e;const i=(0,f.v_)(a.path,`../${n.id}`),l=new Array,u=new Array;for(const t of e)t.geometry.metadata.getExternalSourcesOnService(a).length>0?u.push(t):l.push(t);const d=u.map((e=>e.getAttribute(r))).filter(o.pC);if(0===d.length)return e;const{assetMapFieldRoles:{parentGlobalId:p,assetHash:c}}=s,y=new L.Z;y.where=`${p} IN (${d.map((e=>`'${e}'`))})`,y.outFields=[c,p],y.returnGeometry=!1;const h=await(0,J.e)(i,y),{features:m}=h;return 0===m.length?e:[...l,...u.filter((e=>{const t=e.getAttribute(r);if(!t)return!0;const{metadata:s}=e.geometry,n=m.filter((e=>e.getAttribute(p)===t));if(0===n.length)return!0;const i=n.map((e=>e.getAttribute(c)));return s.getExternalSourcesOnService(a).flatMap((({source:e})=>e.flatMap((e=>e.parts.map((e=>e.partHash)))))).some((e=>i.every((t=>e!==t))))}))]}};(0,s._)([(0,g.Cb)()],W.prototype,"type",void 0),(0,s._)([(0,g.Cb)({constructOnly:!0})],W.prototype,"layer",void 0),(0,s._)([(0,g.Cb)({readOnly:!0})],W.prototype,"queryTask",null),W=(0,s._)([(0,b.j)("esri.layers.graphics.sources.FeatureLayerSource")],W);const Y=1e3,K=W},25278:(e,t,r)=>{r.d(t,{Dm:()=>d,Hq:()=>p,MS:()=>c,bU:()=>o});var s=r(80442),a=r(22974),n=r(61159),i=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function d(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch(r){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,a.d9)(e)}}]}function c(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},59431:(e,t,r)=>{r.d(t,{P:()=>i});var s=r(67900),a=r(8744);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function i(e,t,r){if(!e&&!t||!r)return;const a=(0,s._R)(r);o(e,r,a),o(t,r,a)}function o(e,t,r){if(e)for(const s of e)l(s.geometry,t,r)}function l(e,t,r){if(!e?.spatialReference||(0,a.fS)(e.spatialReference,t))return;const i=(0,s._R)(e.spatialReference)/r;if(1!==i)if("x"in e)null!=e.z&&(e.z*=i);else if("rings"in e)n(e,e.rings,i);else if("paths"in e)n(e,e.paths,i);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=i)}},28694:(e,t,r)=>{r.d(t,{p:()=>a});var s=r(69285);function a(e,t,r){if(!r?.features||!r.hasZ)return;const a=(0,s.k)(r.geometryType,t,e.outSpatialReference);if(null!=a)for(const e of r.features)a(e.geometry)}},74889:(e,t,r)=>{r.d(t,{Z:()=>w});var s,a=r(43697),n=r(66577),i=r(38171),o=r(35454),l=r(96674),u=r(22974),d=r(5600),p=(r(75215),r(71715)),c=r(52011),y=r(30556),h=r(82971),f=r(33955),m=r(1231);const g=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=s=class extends l.wq{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){const r=h.Z.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const a=e[t],n=i.Z.fromJSON(a),o=a.geometry?.spatialReference;null==n.geometry||o||(n.geometry.spatialReference=r);const l=a.aggregateGeometries,u=n.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],s=l[e],a=s?.spatialReference;null==t||a||(t.spatialReference=r)}s.push(n)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:a}=this;if(a)for(const e of a)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,f.im)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=h.Z.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,u.d9)({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,a]}=e,n=this.features,i=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((a-e)/r)));for(let e=0,t=n.length;e<t;e++)i?.(n[e].geometry)||(n.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,a],scale:[n,i]}=r;let o=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;o=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*n+s),(e=>a-e*i),o,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,a;const n=[];for(let i=0,o=e.length;i<o;i++){const o=e[i];if(i>0){const e=t(o[0]),i=r(o[1]);e===s&&i===a||(n.push([e-s,i-a]),s=e,a=i)}else s=t(o[0]),a=r(o[1]),n.push([s,a])}return n.length>0?n: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,f.oU)(e)?e.rings:e.paths,a=[];for(let e=0,n=s.length;e<n;e++){const n=s[e],i=this._quantizePoints(n,t,r);i&&a.push(i)}return a.length>0?((0,f.oU)(e)?e.rings=a:e.paths=a,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,a){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 n=(0,f.oU)(e)?e.rings:e.paths;let i,o;for(let e=0,s=n.length;e<s;e++){const s=n[e];for(let e=0,a=s.length;e<a;e++){const a=s[e];e>0?(i+=a[0],o+=a[1]):(i=a[0],o=a[1]),a[0]=t(i),a[1]=r(o)}}if(s&&a)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=a(r[3])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(a)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=a(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)),a&&null!=e.mmax&&null!=e.mmin&&(e.mmax=a(e.mmax),e.mmin=a(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let i,o;for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(i+=s[0],o+=s[1]):(i=s[0],o=s[1]),s[0]=t(i),s[1]=r(o)}if(s&&a)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2]),t[3]=a(t[3])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}else if(a)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=a(t[2])}}:null}};(0,a._)([(0,d.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,a._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,a._)([(0,d.Cb)({type:[i.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,a._)([(0,p.r)("features")],b.prototype,"readFeatures",null),(0,a._)([(0,d.Cb)({type:[m.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,a._)([(0,d.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,a._)([(0,y.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,a._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,a._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,a._)([(0,d.Cb)({types:n.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,a._)([(0,p.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,a._)([(0,d.Cb)({type:h.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,a._)([(0,y.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,a._)([(0,d.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=s=(0,a._)([(0,c.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const w=b}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7528],{92835:(e,t,i)=>{i.d(t,{Z:()=>m});var r,n=i(43697),o=i(96674),s=i(35463),l=i(5600),a=(i(75215),i(67676),i(80442),i(71715)),u=i(52011),p=i(30556),c=i(25031);let d=r=class extends o.wq{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&i===n}expandTo(e,t=c.By){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,s.JE)(i,e,t));let n=this.end;if(n){const i=(0,s.JE)(n,e,t);n=n.getTime()===i.getTime()?i:(0,s.Nm)(i,1,e,t)}return new r({start:i,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,l;if(n>=t&&n<=i?s=n:t>=n&&t<=o&&(s=t),i>=n&&i<=o?l=i:o>=t&&o<=i&&(l=o),null!=s&&null!=l&&!isNaN(s)&&!isNaN(l)){const e=new r;return e.start=s===-1/0?null:new Date(s),e.end=l===1/0?null:new Date(l),e}return r.empty}offset(e,t,i=c.By){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:o,end:l}=this;return null!=o&&(n.start=(0,s.Nm)(o,e,t,i)),null!=l&&(n.end=(0,s.Nm)(l,e,t,i)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n._)([(0,a.r)("end")],d.prototype,"readEnd",null),(0,n._)([(0,p.c)("end")],d.prototype,"writeEnd",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n._)([(0,a.r)("start")],d.prototype,"readStart",null),(0,n._)([(0,p.c)("start")],d.prototype,"writeStart",null),d=r=(0,n._)([(0,u.j)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),m=d},46521:(e,t,i)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,i,r,n,o,s,l,a){return[e,t,i,r,n,o,s,l,a]}function o(e,t){return new Float64Array(e,t,9)}i.d(t,{a:()=>r,c:()=>o,f:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:r,createView:o,fromValues:n},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,i)=>{i.d(t,{a:()=>h,c:()=>g,g:()=>p,j:()=>T,k:()=>m,m:()=>c,s:()=>u});var r=i(46521),n=i(94961),o=i(65617),s=i(46851),l=i(17896),a=i(98766);function u(e,t,i){i*=.5;const r=Math.sin(i);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i),e}function p(e,t){const i=2*Math.acos(t[3]),r=Math.sin(i/2);return r>(0,s.g)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),i}function c(e,t,i){const r=t[0],n=t[1],o=t[2],s=t[3],l=i[0],a=i[1],u=i[2],p=i[3];return e[0]=r*p+s*l+n*u-o*a,e[1]=n*p+s*a+o*l-r*u,e[2]=o*p+s*u+r*a-n*l,e[3]=s*p-r*l-n*a-o*u,e}function d(e,t,i,r){const n=t[0],o=t[1],l=t[2],a=t[3];let u,p,c,d,h,y=i[0],m=i[1],g=i[2],f=i[3];return p=n*y+o*m+l*g+a*f,p<0&&(p=-p,y=-y,m=-m,g=-g,f=-f),1-p>(0,s.g)()?(u=Math.acos(p),c=Math.sin(u),d=Math.sin((1-r)*u)/c,h=Math.sin(r*u)/c):(d=1-r,h=r),e[0]=d*n+h*y,e[1]=d*o+h*m,e[2]=d*l+h*g,e[3]=d*a+h*f,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const i=t[0]+t[4]+t[8];let r;if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);const n=(i+1)%3,o=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*n+n]-t[3*o+o]+1),e[i]=.5*r,r=.5/r,e[3]=(t[3*n+o]-t[3*o+n])*r,e[n]=(t[3*n+i]+t[3*i+n])*r,e[o]=(t[3*o+i]+t[3*i+o])*r}return e}function m(e,t,i,r){const n=.5*Math.PI/180;t*=n,i*=n,r*=n;const o=Math.sin(t),s=Math.cos(t),l=Math.sin(i),a=Math.cos(i),u=Math.sin(r),p=Math.cos(r);return e[0]=o*a*p-s*l*u,e[1]=s*l*p+o*a*u,e[2]=s*a*u-o*l*p,e[3]=s*a*p+o*l*u,e}const g=a.c,f=a.s,b=a.a,v=c,w=a.b,S=a.d,_=a.l,x=a.f,j=x,C=a.g,V=C,I=a.n,T=a.h,M=a.e,R=(0,o.c)(),z=(0,o.f)(1,0,0),N=(0,o.f)(0,1,0),q=(0,n.a)(),F=(0,n.a)(),P=(0,r.a)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(e,t){const i=t[0],r=t[1],n=t[2];return e[0]=i,e[1]=r,e[2]=n,e[3]=Math.sqrt(Math.abs(1-i*i-r*r-n*n)),e},conjugate:h,copy:g,dot:S,equals:M,exactEquals:T,fromEuler:m,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const i=t[0],r=t[1],n=t[2],o=t[3],s=i*i+r*r+n*n+o*o,l=s?1/s:0;return e[0]=-i*l,e[1]=-r*l,e[2]=-n*l,e[3]=o*l,e},len:j,length:x,lerp:_,mul:v,multiply:c,normalize:I,random:function(e){const t=s.R,i=t(),r=t(),n=t(),o=Math.sqrt(1-i),l=Math.sqrt(i);return e[0]=o*Math.sin(2*Math.PI*r),e[1]=o*Math.cos(2*Math.PI*r),e[2]=l*Math.sin(2*Math.PI*n),e[3]=l*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,i){i*=.5;const r=t[0],n=t[1],o=t[2],s=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+s*l,e[1]=n*a+o*l,e[2]=o*a-n*l,e[3]=s*a-r*l,e},rotateY:function(e,t,i){i*=.5;const r=t[0],n=t[1],o=t[2],s=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a-o*l,e[1]=n*a+s*l,e[2]=o*a+r*l,e[3]=s*a-n*l,e},rotateZ:function(e,t,i){i*=.5;const r=t[0],n=t[1],o=t[2],s=t[3],l=Math.sin(i),a=Math.cos(i);return e[0]=r*a+n*l,e[1]=n*a-r*l,e[2]=o*a+s*l,e[3]=s*a-o*l,e},rotationTo:function(e,t,i){const r=(0,l.j)(t,i);return r<-.999999?((0,l.b)(R,z,t),(0,l.k)(R)<1e-6&&(0,l.b)(R,N,t),(0,l.n)(R,R),u(e,R,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.b)(R,t,i),e[0]=R[0],e[1]=R[1],e[2]=R[2],e[3]=1+r,I(e,e))},scale:w,set:f,setAxes:function(e,t,i,r){const n=P;return n[0]=i[0],n[3]=i[1],n[6]=i[2],n[1]=r[0],n[4]=r[1],n[7]=r[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],I(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,i,r,n,o){return d(q,t,n,o),d(F,i,r,o),d(e,q,F,2*o*(1-o)),e},sqrLen:V,squaredLength:C,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,i)=>{function r(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}function o(e,t){return new Float64Array(e,t,4)}i.d(t,{I:()=>s,a:()=>r,b:()=>n,c:()=>o});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,createView:o,fromValues:function(e,t,i,r){return[e,t,i,r]}},Symbol.toStringTag,{value:"Module"}))},2368:(e,t,i)=>{i.d(t,{J:()=>p,j:()=>c});var r=i(43697),n=i(92036),o=(i(80442),i(22974)),s=(i(92604),i(70586)),l=i(31263),a=i(1153),u=i(52011);const p=e=>{let t=class extends e{clone(){const e=(0,a.vw)(this);(0,s.O3)(e,"unable to clone instance of non-accessor class");const t=e.metadatas,i=e.store,r={},n=new Map;for(const e in t){const s=t[e],a=i?.originOf(e),u=s.clonable;if(s.readOnly||!1===u||a!==l.s3.USER&&a!==l.s3.DEFAULTS&&a!==l.s3.WEB_MAP&&a!==l.s3.WEB_SCENE)continue;const p=this[e];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,o.Vo)(p),null!=p&&null==c||(a===l.s3.DEFAULTS?n.set(e,c):r[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const e=(0,a.vw)(u)?.store;if(e)for(const[t,i]of n)e.set(t,i,l.s3.DEFAULTS)}return u}};return t=(0,r._)([(0,u.j)("esri.core.Clonable")],t),t};let c=class extends(p(n.Z)){};c=(0,r._)([(0,u.j)("esri.core.Clonable")],c)},68251:(e,t,i)=>{i.d(t,{BV:()=>s});var r=i(22021);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}ndiff(e,t=0){return Math.ceil((e-t)/this.range)*this.range+t}_normalize(e,t,i,r=0,n=!1){return(i-=r)<e?i+=this.ndiff(e-i):i>t&&(i-=this.ndiff(i-t)),n&&i===t&&(i=e),i+r}normalize(e,t=0,i=!1){return this._normalize(this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.uZ)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+this.ndiff(e-t,i)}minimalMonotonic(e,t,i){return this._normalize(e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function o(e){for(const t in e){const i=e[t];i instanceof Function&&(e[t]=i.bind(e))}return e}o(new n(0,2*Math.PI)),o(new n(-Math.PI,Math.PI));const s=o(new n(0,360))},44543:(e,t,i)=>{i.d(t,{F:()=>m,M:()=>r});const r={Base64:0,Hex:1,String:2,Raw:3},n=8,o=(1<<n)-1;function s(e,t){const i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function l(e){const t=[];for(let i=0,r=e.length*n;i<r;i+=n)t[i>>5]|=(e.charCodeAt(i/n)&o)<<i%32;return t}function a(e){const t=[];for(let i=0,r=32*e.length;i<r;i+=n)t.push(String.fromCharCode(e[i>>5]>>>i%32&o));return t.join("")}function u(e,t,i,r,n,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(r,o)),n),i)}function p(e,t,i,r,n,o,s){return u(t&i|~t&r,e,t,n,o,s)}function c(e,t,i,r,n,o,s){return u(t&r|i&~r,e,t,n,o,s)}function d(e,t,i,r,n,o,s){return u(t^i^r,e,t,n,o,s)}function h(e,t,i,r,n,o,s){return u(i^(t|~r),e,t,n,o,s)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,o=271733878;for(let t=0;t<e.length;t+=16){const l=i,a=r,u=n,y=o;i=p(i,r,n,o,e[t],7,-680876936),o=p(o,i,r,n,e[t+1],12,-389564586),n=p(n,o,i,r,e[t+2],17,606105819),r=p(r,n,o,i,e[t+3],22,-1044525330),i=p(i,r,n,o,e[t+4],7,-176418897),o=p(o,i,r,n,e[t+5],12,1200080426),n=p(n,o,i,r,e[t+6],17,-1473231341),r=p(r,n,o,i,e[t+7],22,-45705983),i=p(i,r,n,o,e[t+8],7,1770035416),o=p(o,i,r,n,e[t+9],12,-1958414417),n=p(n,o,i,r,e[t+10],17,-42063),r=p(r,n,o,i,e[t+11],22,-1990404162),i=p(i,r,n,o,e[t+12],7,1804603682),o=p(o,i,r,n,e[t+13],12,-40341101),n=p(n,o,i,r,e[t+14],17,-1502002290),r=p(r,n,o,i,e[t+15],22,1236535329),i=c(i,r,n,o,e[t+1],5,-165796510),o=c(o,i,r,n,e[t+6],9,-1069501632),n=c(n,o,i,r,e[t+11],14,643717713),r=c(r,n,o,i,e[t],20,-373897302),i=c(i,r,n,o,e[t+5],5,-701558691),o=c(o,i,r,n,e[t+10],9,38016083),n=c(n,o,i,r,e[t+15],14,-660478335),r=c(r,n,o,i,e[t+4],20,-405537848),i=c(i,r,n,o,e[t+9],5,568446438),o=c(o,i,r,n,e[t+14],9,-1019803690),n=c(n,o,i,r,e[t+3],14,-187363961),r=c(r,n,o,i,e[t+8],20,1163531501),i=c(i,r,n,o,e[t+13],5,-1444681467),o=c(o,i,r,n,e[t+2],9,-51403784),n=c(n,o,i,r,e[t+7],14,1735328473),r=c(r,n,o,i,e[t+12],20,-1926607734),i=d(i,r,n,o,e[t+5],4,-378558),o=d(o,i,r,n,e[t+8],11,-2022574463),n=d(n,o,i,r,e[t+11],16,1839030562),r=d(r,n,o,i,e[t+14],23,-35309556),i=d(i,r,n,o,e[t+1],4,-1530992060),o=d(o,i,r,n,e[t+4],11,1272893353),n=d(n,o,i,r,e[t+7],16,-155497632),r=d(r,n,o,i,e[t+10],23,-1094730640),i=d(i,r,n,o,e[t+13],4,681279174),o=d(o,i,r,n,e[t],11,-358537222),n=d(n,o,i,r,e[t+3],16,-722521979),r=d(r,n,o,i,e[t+6],23,76029189),i=d(i,r,n,o,e[t+9],4,-640364487),o=d(o,i,r,n,e[t+12],11,-421815835),n=d(n,o,i,r,e[t+15],16,530742520),r=d(r,n,o,i,e[t+2],23,-995338651),i=h(i,r,n,o,e[t],6,-198630844),o=h(o,i,r,n,e[t+7],10,1126891415),n=h(n,o,i,r,e[t+14],15,-1416354905),r=h(r,n,o,i,e[t+5],21,-57434055),i=h(i,r,n,o,e[t+12],6,1700485571),o=h(o,i,r,n,e[t+3],10,-1894986606),n=h(n,o,i,r,e[t+10],15,-1051523),r=h(r,n,o,i,e[t+1],21,-2054922799),i=h(i,r,n,o,e[t+8],6,1873313359),o=h(o,i,r,n,e[t+15],10,-30611744),n=h(n,o,i,r,e[t+6],15,-1560198380),r=h(r,n,o,i,e[t+13],21,1309151649),i=h(i,r,n,o,e[t+4],6,-145523070),o=h(o,i,r,n,e[t+11],10,-1120210379),n=h(n,o,i,r,e[t+2],15,718787259),r=h(r,n,o,i,e[t+9],21,-343485551),i=s(i,l),r=s(r,a),n=s(n,u),o=s(o,y)}return[i,r,n,o]}function m(e,t=r.Hex){const i=t||r.Base64,o=y(l(e),e.length*n);switch(i){case r.Raw:return o;case r.Hex:return function(e){const t="0123456789abcdef",i=[];for(let r=0,n=4*e.length;r<n;r++)i.push(t.charAt(e[r>>2]>>r%4*8+4&15)+t.charAt(e[r>>2]>>r%4*8&15));return i.join("")}(o);case r.String:return a(o);case r.Base64:return function(e){const t=[];for(let i=0,r=4*e.length;i<r;i+=3){const r=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let n=0;n<4;n++)8*i+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-n)&63))}return t.join("")}(o)}}},28576:(e,t,i)=>{i.d(t,{B:()=>h});var r=i(20102),n=i(44543),o=i(81153),s=i(17452),l=i(41123),a=i(7628),u=i(31263),p=i(5600),c=i(66094),d=i(25929);function h(e){const t=e?.origins??[void 0];return(i,r)=>{const n=function(e,t,i){if("resource"===e?.type)return function(e,t,i){const r=(0,a.Oe)(t,i);return{type:String,read:(e,t,i)=>{const n=(0,d.r)(e,t,i);return r.type===String?n:"function"==typeof r.type?new r.type({url:n}):void 0},write:{writer(t,n,l,a){if(!a?.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,a)):void(n[l]=t.write({},a));const p=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(p,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),f=r.type!==String&&(!(0,o.l)(this)||a?.origin&&this.originIdOf(i)>(0,u.M9)(a.origin)),b={object:this,propertyName:i,value:t,targetUrl:h,dest:n,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,s.YP)(h)?f&&e?.contentAddressed?y(b):f?function(e){const{context:t,targetUrl:i,params:r,value:n,dest:o,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(i),u=g(n,i,t),p=(0,c.B)(u),d=(0,s.Ml)(a.path),h=r?.compress??!1;p===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),o[l]=i):y(e)}(b):function({context:e,targetUrl:t,dest:i,targetPropertyName:r}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[r]=t)}(b):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.jc)(h)||f)?y(b):n[l]=h}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.a;return{read:e,write:t}}}}(e,i,r);for(const e of t){const t=(0,p.CJ)(i,e,r);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:i,value:o,context:a,dest:u,targetPropertyName:p}=e;if(!a.portalItem)return;const h=(0,d.p)(t),y=g(o,t,a);if(i?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new r.Z("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const f=i?.contentAddressed&&"json"===y.type?(0,n.F)(y.jsonString):h?.filename??(0,l.D)(),b=(0,s.v_)(i?.prefix??h?.prefix,f),v=`${b}.${(0,c.B)(y)}`;if(i?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((e=>e.resource.path===v))??a.resources.toAdd.find((e=>e.resource.path===v));if(e)return void(u[p]=e.resource.itemRelativeUrl)}const w=a.portalItem.resourceFromPath(v);(0,s.jc)(t)&&a.resources&&a.resources.pendingOperations.push((0,s.gi)(t).then((e=>{w.path=`${b}.${(0,c.B)({type:"blob",blob:e})}`,u[p]=w.itemRelativeUrl})).catch((()=>{})));const S=i?.compress??!1;a.resources&&m({...e,resource:w,content:y,compress:S,updates:a.resources.toAdd}),u[p]=w.itemRelativeUrl}function m({object:e,propertyName:t,updates:i,resource:r,content:n,compress:o}){i.push({resource:r,content:n,compress:o,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function g(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},41123:(e,t,i)=>{i.d(t,{D:()=>n,z:()=>o});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${n()}}`}},79235:(e,t,i)=>{i.d(t,{Z:()=>v});var r,n=i(43697),o=i(67676),s=i(35454),l=i(96674),a=i(67900),u=i(20941),p=i(5600),c=(i(75215),i(80442),i(71715)),d=i(52011),h=i(30556);const y=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,o.e$)(m,"orthometric");const g=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends l.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(b(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.$C)(e)||g.read(e)||(i?.messages&&i.messages.push(b(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.cM)(t);return new r({heightModel:e.heightModel,heightUnit:i,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,p.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,n._)([(0,h.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,n._)([(0,c.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,n._)([(0,p.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,n._)([(0,c.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,n._)([(0,c.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,n._)([(0,p.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,n._)([(0,c.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,n._)([(0,d.j)("esri.geometry.HeightModelInfo")],f);const v=f},28865:(e,t,i)=>{i.r(t),i.d(t,{default:()=>We});var r=i(43697),n=i(51773),o=i(46791),s=i(20102),l=i(92604),a=i(16453),u=i(95330),p=i(5600),c=i(75215),d=(i(67676),i(80442),i(71715)),h=i(52011),y=i(17896),m=i(65617),g=i(6570),f=i(87085),b=i(54295),v=i(17287),w=i(38009),S=i(16859),_=i(72965),x=i(37253),j=i(66677),C=i(21506),V=i(1231),I=i(2368),T=i(68251),M=i(96674),R=i(28576),z=i(51305),N=i(94961),q=i(46851);const F=(0,m.c)(),P=(0,N.a)(),Z=(0,N.a)(),D=(0,N.a)(),A=(0,m.f)(0,0,1),U=(0,m.f)(0,1,0),E=(0,m.f)(1,0,0);function O(e){(0,y.c)(F,e),(0,y.n)(F,F);const t=Math.atan2(F[1],F[0]),i=(0,z.s)((0,N.a)(),A,-t);(0,y.v)(F,F,i);const r=-1*Math.atan2(F[2],F[0]);return[(0,q.a)(t)+270,(0,q.a)(r)+90]}function L(e,t){return(0,z.s)(Z,A,(0,q.t)(e-270)),(0,z.s)(D,U,(0,q.t)(t-90)),(0,z.m)(P,Z,D),(0,y.c)(F,E),(0,y.v)(F,F,P),(0,y.n)(F,F),[F[0],F[1],F[2]]}var B=i(90578);let k=class extends((0,I.J)(M.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=O(this.normal);return T.BV.normalize((0,c.q9)(e),0,!0)}set orientation(e){const t=L(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=O(this.normal);return T.BV.normalize((0,c.q9)(t),0,!0)}set tilt(e){const t=L(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],k.prototype,"enabled",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],k.prototype,"label",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,c.q9)(e),0,!0)))],k.prototype,"orientation",null),(0,r._)([(0,p.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,c.q9)(e),0,!0)))],k.prototype,"tilt",null),(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],k.prototype,"normal",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],k.prototype,"point",void 0),k=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelSlice")],k);const J=k;var H=i(25929);let $=class extends((0,I.J)(M.wq)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=O(this.normal);return T.BV.normalize((0,c.q9)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=O(this.normal);return T.BV.normalize((0,c.q9)(t),0,!0)}};(0,r._)([(0,p.Cb)({type:Boolean,json:{default:!0,write:!0}})],$.prototype,"enabled",void 0),(0,r._)([(0,p.Cb)({type:String,json:{origins:{service:{read:H.r}},write:{enabled:!0,isRequired:!0}}}),(0,R.B)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],$.prototype,"href",void 0),(0,r._)([(0,p.Cb)({type:c.z8,json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"id",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"label",void 0),(0,r._)([(0,p.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],$.prototype,"orientation",null),(0,r._)([(0,p.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],$.prototype,"tilt",null),(0,r._)([(0,p.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"normal",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"point",void 0),(0,r._)([(0,p.Cb)({type:[c.z8],json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"sizeInPixel",void 0),(0,r._)([(0,p.Cb)({type:[J],json:{write:!0}})],$.prototype,"slices",void 0),(0,r._)([(0,p.Cb)({type:c.z8,json:{default:0,write:!0}})],$.prototype,"timeId",void 0),(0,r._)([(0,p.Cb)({type:c.z8,json:{write:{enabled:!0,isRequired:!0}}})],$.prototype,"variableId",void 0),$=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelSection")],$);const W=$;let X=class extends M.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,r._)([(0,p.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"diffuseFactor",void 0),(0,r._)([(0,p.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"specularFactor",void 0),X=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelSimpleShading")],X);const Y=X;let G=class extends M.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,r._)([(0,p.Cb)({type:["discrete","continuous"],json:{write:!0}})],G.prototype,"continuity",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],G.prototype,"hasNoData",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],G.prototype,"noData",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],G.prototype,"offset",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],G.prototype,"scale",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"type",void 0),G=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelFormat")],G);const K=G;let Q=class extends M.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Q.prototype,"description",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"name",void 0),(0,r._)([(0,p.Cb)({type:K,json:{write:!0}})],Q.prototype,"originalFormat",void 0),(0,r._)([(0,p.Cb)({type:K,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"renderingFormat",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Q.prototype,"unit",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],Q.prototype,"volumeId",void 0),(0,r._)([(0,p.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],Q.prototype,"type",void 0),Q=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelVariable")],Q);const ee=Q;var te=i(22974),ie=i(22303);let re=class extends((0,I.J)(M.wq)){constructor(){super(...arguments),this.color=ie.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,r._)([(0,p.Cb)({type:ie.Z,json:{type:[c.z8],write:{enabled:!0,isRequired:!0}}})],re.prototype,"color",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"value",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{default:!0,write:!0}})],re.prototype,"enabled",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],re.prototype,"label",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{default:!1,write:!0}})],re.prototype,"colorLocked",void 0),re=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelIsosurface")],re);const ne=re;var oe=i(70921),se=i(22021);let le=class extends((0,I.J)(M.wq)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,r._)([(0,p.Cb)({type:ie.Z,json:{type:[c.z8],write:{enabled:!0,isRequired:!0}}})],le.prototype,"color",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],le.prototype,"position",void 0),le=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelColorStop")],le);const ae=le;let ue=class extends((0,I.J)(M.wq)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,r._)([(0,p.Cb)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ue.prototype,"opacity",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelOpacityStop")],ue);const pe=ue;let ce=class extends((0,I.J)(M.wq)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,r._)([(0,p.Cb)({type:Boolean,json:{default:!1,write:!0}})],ce.prototype,"enabled",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],ce.prototype,"range",void 0),ce=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelRangeFilter")],ce);const de=ce;var he,ye;(ye=he||(he={}))[ye.Color=1]="Color",ye[ye.Alpha=2]="Alpha",ye[ye.Both=3]="Both";let me=class extends((0,I.J)(M.wq)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(o.Z.ofType(ae)),this.opacityStops=new(o.Z.ofType(pe))}set colorStops(e){this._set("colorStops",(0,oe.Z)(e,this._get("colorStops"),o.Z.ofType(ae)))}set opacityStops(e){this._set("opacityStops",(0,oe.Z)(e,this._get("opacityStops"),o.Z.ofType(pe)))}getPreviousNext(e,t,i){let r=e;for(;--r>0&&t[r].type!==i&&t[r].type!==he.Both;);let n=e;const o=t.length;for(;++n<o&&t[n].type!==i&&t[n].type!==he.Both;);return[r,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],i=[];for(const t of this.colorStops){if(!t.color)return e;i.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:he.Color})}if(0===this.opacityStops.length)for(const e of i)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.uZ)(e.position,0,1),r=Math.round(255*(0,se.uZ)(1-e.opacity,0,1));let n=!1;for(const e of i)if(e.type===he.Color&&Math.abs(e.position-t)<1e-5){e.color.a=r,e.type=he.Both,n=!0;break}n||i.push({color:{r:0,g:0,b:0,a:r},position:e.position,type:he.Alpha})}i.sort(((e,t)=>e.position<t.position?-1:1));const e=i.length;for(let t=0;t<e;++t){const r=i[t];if(r.type!==he.Both)if(r.type===he.Color){const[n,o]=this.getPreviousNext(t,i,he.Alpha);if(-1!==n&&o!==e){const e=(r.position-i[n].position)/(i[o].position-i[n].position);r.color.a=Math.round((0,se.t7)(i[n].color.a,i[o].color.a,e))}else r.color.a=-1!==n?i[n].color.a:i[o].color.a}else{const[n,o]=this.getPreviousNext(t,i,he.Color);if(-1!==n&&o!==e){const e=(r.position-i[n].position)/(i[o].position-i[n].position),t=i[n].color,s=i[o].color;fe.forEach((i=>{r.color[i]=Math.round((0,se.t7)(t[i],s[i],e))}))}else-1!==n?fe.forEach((e=>{r.color[e]=i[n].color[e]})):fe.forEach((e=>{r.color[e]=i[o].color[e]}))}}for(const e of i)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let r=0,n=1;for(let i=0;i<this._colorMapSize;++i){const o=i/this._colorMapSize;for(;o>t[n].position;)r=n++;const s=(o-t[r].position)/(t[n].position-t[r].position),l=t[r].color,a=t[n].color,u=new ie.Z;fe.forEach((e=>{u[e]=Math.round((0,se.t7)(l[e],a[e],s))})),u.a=(0,se.uZ)(1-(0,se.t7)(l.a,a.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const i=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||i.length<256)return null;let r=this.stretchRange[0],n=this.stretchRange[1];if(r>n){const e=r;r=n,n=e}e=(0,se.uZ)(e,r,n);const o=i[Math.round((e-r)/(n-r)*(this._colorMapSize-1))].clone();return t||(o.a=1),o}};(0,r._)([(0,p.Cb)({type:["linear","nearest"],json:{write:!0}})],me.prototype,"interpolation",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],me.prototype,"stretchRange",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(ae),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],me.prototype,"colorStops",null),(0,r._)([(0,p.Cb)({type:o.Z.ofType(pe),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],me.prototype,"opacityStops",null),(0,r._)([(0,p.Cb)({type:de,json:{write:!0}})],me.prototype,"rangeFilter",void 0),(0,r._)([(0,p.Cb)({type:[ie.Z],clonable:!1,json:{read:!1}})],me.prototype,"rasterizedTransferFunction",null),me=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelTransferFunctionStyle")],me);const ge=me,fe=["r","g","b"];let be=class extends((0,I.J)(M.wq)){constructor(){super(...arguments),this.color=ie.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,r._)([(0,p.Cb)({type:ie.Z,json:{type:[c.z8],write:{enabled:!0,isRequired:!0}}})],be.prototype,"color",void 0),(0,r._)([(0,p.Cb)({type:c.z8,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"value",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{default:!0,write:!0}})],be.prototype,"enabled",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],be.prototype,"label",void 0),be=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelUniqueValue")],be);const ve=be;var we;let Se=we=class extends M.wq{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(o.Z.ofType(ve)),this.isosurfaces=new(o.Z.ofType(ne))}clone(){return new we({variableId:this.variableId,label:this.label,transferFunction:(0,te.d9)(this.transferFunction),uniqueValues:(0,te.d9)(this.uniqueValues),isosurfaces:(0,te.d9)(this.isosurfaces)})}};(0,r._)([(0,p.Cb)({type:c.z8,json:{write:{enabled:!0,isRequired:!0}}})],Se.prototype,"variableId",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Se.prototype,"label",void 0),(0,r._)([(0,p.Cb)({type:ge,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],Se.prototype,"transferFunction",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],Se.prototype,"uniqueValues",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(ne),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],Se.prototype,"isosurfaces",void 0),Se=we=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelVariableStyle")],Se);const _e=Se;var xe=i(94139),je=i(82971),Ce=i(8744);let Ve=class extends M.wq{constructor(){super(...arguments),this.values=null}};(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],Ve.prototype,"values",void 0),Ve=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelIrregularSpacing")],Ve);const Ie=Ve;let Te=class extends M.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],Te.prototype,"scale",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],Te.prototype,"offset",void 0),Te=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelRegularSpacing")],Te);const Me=Te;let Re=class extends M.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,r._)([(0,p.Cb)({type:Ie,json:{write:!0}})],Re.prototype,"irregularSpacing",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"isPositiveUp",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"isWrappedDateLine",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Re.prototype,"label",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Re.prototype,"name",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Re.prototype,"quantity",void 0),(0,r._)([(0,p.Cb)({type:Me,json:{write:!0}})],Re.prototype,"regularSpacing",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:!0}})],Re.prototype,"size",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Re.prototype,"unit",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{read:!1}})],Re.prototype,"isRegular",null),Re=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelDimension")],Re);const ze=Re,Ne="esri.layers.voxel.VoxelVolume",qe=l.Z.getLogger(Ne);let Fe=class extends M.wq{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=je.Z.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size];return[e[0],t[0],r[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),i=this.dimensions[2],r=i.isRegular?i.getRange():[0,i.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return i.isRegular&&!i.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(r[1]-r[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return qe.error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.fS)(this.spatialReference,e.spatialReference))return qe.error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.f)(e.x,e.y,e.z??0);(0,y.f)(t,t,this.originInLayerSpace3D),(0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned);const i=this.dimensions[this.zDimension];if(!i.isRegular&&Array.isArray(i.irregularSpacing?.values)&&i.irregularSpacing.values.length>1){const r=e.z??0,n=i.irregularSpacing.values,o=i.isPositiveUp?1:-1,s=n.reduce(((e,t)=>Math.abs(o*t-r)<Math.abs(o*e-r)?t:e));for(let e=0;e<n.length;++e)if(n[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new xe.Z({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.e)(e);if((0,y.A)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.g)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new xe.Z({x:t[0],y:t[1],spatialReference:this.spatialReference});const i=this.dimensions[this.zDimension];return i.isRegular||Array.isArray(i.irregularSpacing?.values)&&(e[2]<0?t[2]=i.irregularSpacing.values[0]:e[2]<i.irregularSpacing.values.length?t[2]=i.irregularSpacing.values[e[2]]:t[2]=i.irregularSpacing.values[i.irregularSpacing.values.length-1],i.isPositiveUp||(t[2]*=-1)),new xe.Z({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Fe.prototype,"id",void 0),(0,r._)([(0,p.Cb)({type:[ze],json:{write:{enabled:!0,isRequired:!0}}})],Fe.prototype,"dimensions",void 0),(0,r._)([(0,p.Cb)({type:je.Z,json:{read:{enabled:!1}}})],Fe.prototype,"spatialReference",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{read:!1}})],Fe.prototype,"zDimension",null),(0,r._)([(0,p.Cb)({type:[Boolean],json:{read:!1}})],Fe.prototype,"isValid",null),(0,r._)([(0,p.Cb)({type:[Number],json:{read:!1}})],Fe.prototype,"originInLayerSpace3D",null),(0,r._)([(0,p.Cb)({type:[Number],json:{read:!1}})],Fe.prototype,"voxelSizeInLayerSpaceSigned",null),(0,r._)([(0,p.Cb)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Fe.prototype,"volumeType",null),(0,r._)([(0,p.Cb)({type:[Number],json:{read:!1}})],Fe.prototype,"sizeInVoxels",null),Fe=(0,r._)([(0,h.j)(Ne)],Fe);const Pe=Fe;var Ze;let De=Ze=class extends M.wq{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Ze;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"apronWidth",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"brickSize",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"maxLodLevel",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"nodeSize",void 0),De=Ze=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelVolumeIndex")],De);const Ae=De;let Ue=class extends((0,I.J)(M.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=O(this.normal);return T.BV.normalize((0,c.q9)(e),0,!0)}set orientation(e){const t=L(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=O(this.normal);return T.BV.normalize((0,c.q9)(t),0,!0)}set tilt(e){const t=L(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,r._)([(0,p.Cb)({type:Boolean,json:{default:!0,write:!0}})],Ue.prototype,"enabled",void 0),(0,r._)([(0,p.Cb)({type:String,json:{write:!0}})],Ue.prototype,"label",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,c.q9)(e),0,!0)))],Ue.prototype,"orientation",null),(0,r._)([(0,p.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,c.q9)(e),0,!0)))],Ue.prototype,"tilt",null),(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],Ue.prototype,"normal",void 0),(0,r._)([(0,p.Cb)({type:[Number],json:{write:!0}})],Ue.prototype,"point",void 0),Ue=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelDynamicSection")],Ue);const Ee=Ue;var Oe;let Le=Oe=class extends M.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(o.Z.ofType(J)),this.dynamicSections=new(o.Z.ofType(Ee))}set slices(e){this._set("slices",(0,oe.Z)(e,this._get("slices"),o.Z.ofType(J)))}set dynamicSections(e){this._set("dynamicSections",(0,oe.Z)(e,this._get("dynamicSections"),o.Z.ofType(Ee)))}clone(){return new Oe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.d9)(this.slices),dynamicSections:(0,te.d9)(this.dynamicSections)})}};(0,r._)([(0,p.Cb)({type:c.z8,json:{write:{enabled:!0,isRequired:!0}}})],Le.prototype,"volumeId",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{default:1,write:!0}})],Le.prototype,"verticalExaggeration",void 0),(0,r._)([(0,p.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Le.prototype,"exaggerationMode",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{default:0,write:!0}})],Le.prototype,"verticalOffset",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(J),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Le.prototype,"slices",null),(0,r._)([(0,p.Cb)({type:o.Z.ofType(Ee),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Le.prototype,"dynamicSections",null),Le=Oe=(0,r._)([(0,h.j)("esri.layers.voxel.VoxelVolumeStyle")],Le);const Be=Le;var ke=i(32163);const Je="esri.layers.VoxelLayer",He=l.Z.getLogger(Je);let $e=class extends((0,x.Vt)((0,v.Y)((0,w.q)((0,S.I)((0,_.M)((0,a.R)((0,b.V)(f.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new Y,this.opacity=1,this.variables=new o.Z,this.volumes=new o.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.test=null,this.volumeStyles=new(o.Z.ofType(Be)),this.variableStyles=new(o.Z.ofType(_e)),this.sections=new(o.Z.ofType(W))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,j.Nm)(e,He))}load(e){const t=null!=e?e.signal:null,i=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.r9).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(i),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.Z("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,i){if(null!=e&&"object"==typeof e){const r=g.Z.fromJSON(e,i);if(0===r.zmin&&0===r.zmax&&Array.isArray(t.volumes)){const e=Pe.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,i=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>i){const t=e;e=i,i=t}r.zmin=e,r.zmax=i}}}return r}return null}get voxelFields(){const e=[new V.Z({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new V.Z({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new V.Z({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new V.Z({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const i=new V.Z({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(i)}if("xyt"!==t.volumeType){const t=new V.Z({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get popupTemplate(){return this.loaded?this.createPopupTemplate():null}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,i=this.title;return(0,ke.eZ)({fields:t,title:i},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const i=this.variableStyles.findIndex((e=>e.variableId===t));return i<0?null:this.variableStyles.at(i)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const i=this.variables.findIndex((e=>e.id===t));return i<0?null:this.variables.at(i)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,i){const r=this.getVariable(e);if(null==r||"continuous"!==r.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const o=this.variableStyles.at(n);return o?.transferFunction?o.transferFunction.getColorForContinuousDataValue(t,i):null}getSections(){const e=[];for(const t of this.sections)e.push(new W({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const i=this._getVariable(t);if(null!=i){const r=t.clone();r.isosurfaces.length>4&&(r.isosurfaces=r.isosurfaces.slice(0,3),He.error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of r.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(r.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===i.renderingFormat.continuity)(null===r.transferFunction||r.transferFunction.colorStops.length<2)&&He.error(`VoxelVariableStyle for variable ${i.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==r.transferFunction&&(Array.isArray(r.transferFunction.stretchRange)&&2===r.transferFunction.stretchRange.length||(He.error(`VoxelVariableStyle for variable ${i.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),r.transferFunction.stretchRange=[0,1],r.transferFunction.colorStops.removeAll()));else if("discrete"===i.renderingFormat.continuity)if(0===t.uniqueValues.length)He.error(`VoxelVariableStyle for variable ${i.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(r)}else He.error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const i=this._getVolumeFromVolumeId(t.volumeId);if(null!=i){const r=t.clone();for(const e of r.slices)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of r.dynamicSections)this._isPlaneValid(e,[0,1,i.zDimension],i.dimensions)||(e.enabled=!1,e.label="invalid");e.push(r)}else He.error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,i){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const r=(0,m.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(r,r),!(Math.abs(r[0])+Math.abs(r[1])+Math.abs(r[2])<1e-6||(e.normal[0]=r[0],e.normal[1]=r[1],e.normal[2]=r[2],0))}};(0,r._)([(0,p.Cb)({type:["Voxel"]})],$e.prototype,"operationalLayerType",void 0),(0,r._)([(0,p.Cb)(C.rn)],$e.prototype,"legendEnabled",void 0),(0,r._)([(0,p.Cb)({json:{write:!0}})],$e.prototype,"title",void 0),(0,r._)([(0,p.Cb)(C.HQ)],$e.prototype,"url",null),(0,r._)([(0,p.Cb)({type:o.Z.ofType(W),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],$e.prototype,"sections",void 0),(0,r._)([(0,p.Cb)({type:c.z8,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],$e.prototype,"currentVariableId",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(Be),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],$e.prototype,"volumeStyles",void 0),(0,r._)([(0,p.Cb)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],$e.prototype,"renderMode",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(_e),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],$e.prototype,"variableStyles",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],$e.prototype,"enableSlices",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],$e.prototype,"enableSections",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],$e.prototype,"enableDynamicSections",void 0),(0,r._)([(0,p.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],$e.prototype,"enableIsosurfaces",void 0),(0,r._)([(0,p.Cb)({type:Y,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],$e.prototype,"shading",void 0),(0,r._)([(0,p.Cb)({type:["show","hide"]})],$e.prototype,"listMode",void 0),(0,r._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],$e.prototype,"opacity",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(ee)})],$e.prototype,"variables",void 0),(0,r._)([(0,p.Cb)({type:o.Z.ofType(Pe)})],$e.prototype,"volumes",void 0),(0,r._)([(0,p.Cb)({type:Ae})],$e.prototype,"index",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],$e.prototype,"minScale",void 0),(0,r._)([(0,p.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],$e.prototype,"maxScale",void 0),(0,r._)([(0,p.Cb)({json:{read:!1},readOnly:!0})],$e.prototype,"type",void 0),(0,r._)([(0,p.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],$e.prototype,"version",void 0),(0,r._)([(0,d.r)("service","version")],$e.prototype,"readVersion",null),(0,r._)([(0,p.Cb)({type:g.Z})],$e.prototype,"fullExtent",void 0),(0,r._)([(0,d.r)("service","fullExtent",["fullExtent"])],$e.prototype,"readFullExtent",null),(0,r._)([(0,p.Cb)({readOnly:!0,clonable:!1,json:{read:!1}})],$e.prototype,"voxelFields",null),(0,r._)([(0,p.Cb)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,i){t[i]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],$e.prototype,"popupEnabled",void 0),(0,r._)([(0,p.Cb)({type:n.Z,json:{read:!1}})],$e.prototype,"popupTemplate",null),(0,r._)([(0,p.Cb)({readOnly:!0})],$e.prototype,"defaultPopupTemplate",null),$e=(0,r._)([(0,h.j)(Je)],$e);const We=$e},16859:(e,t,i)=>{i.d(t,{I:()=>_});var r=i(43697),n=i(68773),o=i(40330),s=i(3172),l=i(66643),a=i(20102),u=i(92604),p=i(70586),c=i(95330),d=i(17452),h=i(5600),y=(i(75215),i(67676),i(80442),i(71715)),m=i(52011),g=i(30556),f=i(84230),b=i(48522),v=i(15235),w=i(86082),S=i(14661);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(8062).then(i.bind(i,18062));return(0,c.k_)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===i.id;if(r&&i.portal.user)return(0,S.Ss)(i);let n,s;if(r)n=i.portal.url;else try{n=await(0,f.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!n||!(0,d.Zo)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(o.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await i.reload():(i=new v.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return(0,S.Ss)(i)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const i=x.credential===t?x.user:await this._fetchEditingUser(e);return x.credential=t,x.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=o.id.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=b.Z.getDefault();if(n&&n.loaded&&(0,d.Fv)(n.restUrl)===(0,d.Fv)(r))return n.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,p=await(0,l.q6)((0,s.Z)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.Z.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||b.Z.getDefault());return i&&r&&!(0,d.tm)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,h.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},x={credential:null,user:null}},72965:(e,t,i)=>{i.d(t,{M:()=>s});var r=i(43697),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const i=this._get("effectiveScaleRange");return i&&i.minScale===e.minScale&&i.maxScale===e.maxScale?i:e}};return(0,r._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,r._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,r._)([(0,n.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},1231:(e,t,i)=>{i.d(t,{Z:()=>g});var r,n=i(43697),o=i(35454),s=i(96674),l=i(5600),a=i(75215),u=(i(67676),i(80442),i(36030)),p=i(71715),c=i(52011),d=i(72729),h=i(86719);const y=new o.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=r=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?y.fromJSON(i.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,n._)([(0,p.r)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.Cb)({type:a.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,u.J)(h.v)],m.prototype,"type",void 0),(0,n._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,n._)([(0,p.r)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.Cb)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=r=(0,n._)([(0,c.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,i)=>{i.d(t,{im:()=>j,V5:()=>x}),i(80442);var r,n=i(43697),o=i(22974),s=i(5600),l=(i(75215),i(36030)),a=i(52011),u=i(96674);i(67676);let p=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=r=(0,n._)([(0,a.j)("esri.layers.support.CodedValue")],p);const c=new(i(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,l.J)(c)],d.prototype,"type",void 0),d=(0,n._)([(0,a.j)("esri.layers.support.Domain")],d);const h=d;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,s.Cb)({type:[p],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,n._)([(0,a.j)("esri.layers.support.CodedValueDomain")],m);const g=m;var f;i(92604),i(20102);let b=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,n._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=f=(0,n._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const v=b;var w;let S=w=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,s.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]}}}})],S.prototype,"maxValue",void 0),(0,n._)([(0,s.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],S.prototype,"minValue",void 0),(0,n._)([(0,l.J)({range:"range"})],S.prototype,"type",void 0),S=w=(0,n._)([(0,a.j)("esri.layers.support.RangeDomain")],S);const _=S,x={key:"type",base:h,typeMap:{range:S,"coded-value":g,inherited:v}};function j(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},86719:(e,t,i)=>{i.d(t,{v:()=>r});const r=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},66094:(e,t,i)=>{i.d(t,{B:()=>n});var r=i(17452);function n(e){return o[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,r.Ml)(e);return a[t]||s}(e.url)}(e)]||l}const o={},s="text/plain",l=o[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)o[a[e]]=e},32163:(e,t,i)=>{i.d(t,{eZ:()=>u});var r=i(51773),n=i(69165),o=i(84649),s=(i(63801),i(48074),i(38745),i(9190)),l=(i(10214),i(71423),i(44951),i(422)),a=i(29986);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:a,title:u},h){if(!i)return null;const m=function(e,t){const i=t?.visibleFieldNames;return function(e,t){const i=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===i&&(e=e.slice()),e.sort(c),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.Z({fieldName:t.name,isEditable:(0,n.Hp)(t,e),label:t.alias,format:d(t),visible:p(t,{...e,visibleFieldNames:i})})))}({editFieldsInfo:t,fields:i,objectIdField:a},h);if(!m.length)return null;const g=function(e){const t=(0,n.O5)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),f=[new s.Z,new o.Z];return new r.Z({title:g,content:f,fieldInfos:m})}const p=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Fv)(e,t);function c(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"string":return(0,n.Ec)(e.name)?new a.Z({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4720,1444],{41123:(e,t,n)=>{n.d(t,{D:()=>a,z:()=>s});const r="randomUUID"in crypto;function a(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${a()}}`}},16306:(e,t,n)=>{n.d(t,{aX:()=>A});var r=n(68773),a=n(20102),s=n(92604),i=n(38913),o=n(58901),l=n(73913),d=n(8744),u=n(40488),c=(n(66577),n(3172)),p=n(33955),h=n(11282),f=n(17452);async function m(e,t,n){const r="string"==typeof e?(0,f.mN)(e):e,a=t[0].spatialReference,s=(0,p.Ji)(t[0]),i={...n,query:{...r.query,f:"json",sr:(0,d.B9)(a),geometries:JSON.stringify((l=t,{geometryType:(0,p.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:o}=await(0,c.Z)(r.path+"/simplify",i);var l;return function(e,t,n){const r=(0,p.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}(o.geometries,s,a)}const y=s.Z.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function w(e,t,n){if(t){const t=function(e,t){if(!(e instanceof o.Z||e instanceof i.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new a.Z(e)}const n=(0,l.x3)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const a=e[r][0],s=e[r][1],i=e[r+1][0],o=e[r+1][1],l=Math.sqrt((i-a)*(i-a)+(o-s)*(o-s)),d=(o-s)/l,u=(i-a)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const r=e*t,i=u*r+a,o=d*r+s;n.push([i,o])}const e=(l+Math.floor(c-1)*t)/2,r=u*e+a,i=d*e+s;n.push([r,i])}n.push([i,o])}}return function(e){return"polygon"===e.type}(e)?new i.Z({rings:r,spatialReference:e.spatialReference}):new o.Z({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.Sx)(t,!0)}return n&&(e=(0,l.Sy)(e,n)),e}function F(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.XZ)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.XZ)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.XZ)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,l.XZ)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function I(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const a=t.cutIndexes[r],s=t.geometries[r],i=(0,l.x3)(s);for(let e=0;e<i.length;e++){const t=i[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,l.XZ)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(r,0))}return!0}}))}if(a===n){if(g(e))for(const t of(0,l.x3)(s))e[a]=e[a].addRing(t);else if(b(e))for(const t of(0,l.x3)(s))e[a]=e[a].addPath(t)}else n=a,e[a]=s}return e}async function A(e,t,n){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&y.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const a="string"==typeof t?t:t?.url??r.default.geometryServiceUrl;let s,f,g,b,v,Z,S,R,E=0;const $=[],x=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,f=(0,d.C5)(s),g=s.isWebMercator,Z=g?102100:4326,b=l.UZ[Z].maxX,v=l.UZ[Z].minX,S=l.UZ[Z].plus180Line,R=l.UZ[Z].minus180Line),f)if("mesh"===t.type)x.push(t);else if("point"===t.type)x.push(F(t.clone(),b,v));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>F(e,b,v))),x.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,f);x.push(e.rings?new i.Z(e):e)}else if(t.extent){const e=t.extent,n=(0,l.XZ)(e.xmin,v)*(2*b);let r=0===n?t.clone():(0,l.Sy)(t.clone(),n);e.offset(n,0),e.intersects(S)&&e.xmax!==b?(E=e.xmax>E?e.xmax:E,r=w(r,g),$.push(r),x.push("cut")):e.intersects(R)&&e.xmin!==v?(E=e.xmax*(2*b)>E?e.xmax*(2*b):E,r=w(r,g,360),$.push(r),x.push("cut")):x.push(r)}else x.push(t.clone());else x.push(t);else x.push(t);let M=(0,l.XZ)(E,b),O=-90;const U=M,L=new o.Z;for(;M>0;){const e=360*M-180;L.addPath([[e,O],[e,-1*O]]),O*=-1,M--}if($.length>0&&U>0){const t=I($,await async function(e,t,n,r){const a=(0,h.en)(e),s=t[0].spatialReference,i={...r,responseType:"json",query:{...a.query,f:"json",sr:(0,d.B9)(s),target:JSON.stringify({geometryType:(0,p.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},o=await(0,c.Z)(a.path+"/cut",i),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,p.im)(e);return t.spatialReference=s,t}))}}(a,$,L,n)),r=[],s=[];for(let n=0;n<x.length;n++){const a=x[n];if("cut"!==a)s.push(a);else{const a=t.shift(),i=e[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&a.rings.length>=i.rings.length?(r.push(a),s.push("simplify")):s.push(g?(0,u.$)(a):a)}}if(!r.length)return s;const i=await m(a,r,n),o=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?o.push(t):o.push(g?(0,u.$)(i.shift()):i.shift())}return o}const j=[];for(let e=0;e<x.length;e++){const t=x[e];if("cut"!==t)j.push(t);else{const e=$.shift();j.push(!0===g?(0,u.$)(e):e)}}return j}},73913:(e,t,n)=>{n.d(t,{Sy:()=>l,UZ:()=>i,XZ:()=>o,x3:()=>d});var r=n(58901),a=n(82971),s=n(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:a.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:a.Z.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=d(e);for(const e of n)for(const n of e)n[0]+=t;return e}function d(e){return(0,s.oU)(e)?e.rings:e.paths}},14720:(e,t,n)=>{n.d(t,{Ey:()=>F,applyEdits:()=>I,aw:()=>b,uploadAssets:()=>$});var r=n(38171),a=n(46791),s=n(20102),i=n(22974),o=n(92604),l=n(95330),d=n(17452),u=n(41123),c=n(16306),p=n(66361),h=n(69165),f=n(2981),m=n(84230);function y(e){return null!=e?.applyEdits}function g(e){return"object"==typeof e&&null!=e&&"objectId"in e&&!!e.objectId}function b(e){return e.every(g)}function w(e){return"object"==typeof e&&null!=e&&"globalId"in e&&!!e.globalId}function F(e){return e.every(w)}async function I(e,t,n,r={}){let d;const c="gdbVersion"in e?e.gdbVersion:null,h=r.gdbVersion??c;if((0,p.lQ)(e)&&e.url)d=(0,p.jF)(e.url,e.layerId,h,"original-and-current-features"===r.returnServiceEditsOption);else{d=(0,l.hh)(),d.promise.then((t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)}));const t={result:d.promise};e.emit("apply-edits",t)}try{const{results:l,edits:c}=await async function(e,t,n,r){if(await e.load(),!y(t))throw new s.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,m.ln)(e))throw new s.Z(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:i,options:l}=await async function(e,t,n){const r=(0,m.S1)(e),i=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),l=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),d=null!=e.infoFor3D;if(function(e,t,n,r,a,i){if(!e||!r&&!a)throw new s.Z(`${i}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&n?.globalIdUsed)throw new s.Z(`${i}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&a)throw new s.Z(`${i}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!n?.globalIdUsed&&a)throw new s.Z(`${i}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,r,n,!!i,!!l,`${e.type}-layer`),!r.data.isVersioned&&n?.gdbVersion)throw new s.Z(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!r.editing.supportsRollbackOnFailure&&n?.rollbackOnFailureEnabled)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const c={...n};if(null!=c.rollbackOnFailureEnabled||r.editing.supportsRollbackOnFailure||(c.rollbackOnFailureEnabled=!0),c.rollbackOnFailureEnabled||"original-and-current-features"!==c.returnServiceEditsOption||(!1===c.rollbackOnFailureEnabled&&o.Z.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwrritten and set to true."),c.rollbackOnFailureEnabled=!0),!r.editing.supportsReturnServiceEditsInSourceSpatialReference&&c.returnServiceEditsInSourceSR)throw new s.Z(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(c.returnServiceEditsInSourceSR&&"original-and-current-features"!==c.returnServiceEditsOption)throw new s.Z(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,n){const r=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&a.Z.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(r.addFeatures?.length&&!t.operations.supportsAdd)throw new s.Z(`${n}:unsupported-operation`,"Layer does not support adding features.");if(r.updateFeatures?.length&&!t.operations.supportsUpdate)throw new s.Z(`${n}:unsupported-operation`,"Layer does not support updating features.");if(r.deleteFeatures?.length&&!t.operations.supportsDelete)throw new s.Z(`${n}:unsupported-operation`,"Layer does not support deleting features.");return r.addFeatures=r.addFeatures.map(R),r.updateFeatures=r.updateFeatures.map(R),r.addAssetFeatures=[],r}(t,r,`${e.type}-layer`),h=n?.globalIdUsed||d,y=e.fields.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(h){const{globalIdField:t}=e;if(null==t)throw new s.Z(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach((e=>function(e,t){const{attributes:n}=e;null==n[t]&&(n[t]=(0,u.z)())}(e,t)))}return p.addFeatures.forEach((t=>function(e,t,n,r){A(e,t,n,r),v(e,t)}(t,e,h,y))),p.updateFeatures.forEach((t=>function(e,t,n,r){A(e,t,n,r),v(e,t);const a=(0,m.S1)(t);if("geometry"in e&&null!=e.geometry&&!a?.editing.supportsGeometryUpdate)throw new s.Z(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,h,y))),p.deleteFeatures.forEach((t=>function(e,t,n,r){A(e,t,n,r)}(t,e,h,y))),p.addAttachments.forEach((t=>Z(t,e))),p.updateAttachments.forEach((t=>Z(t,e))),d&&await async function(e,t){if(null==t.infoFor3D)return;const{infoFor3D:n}=t,r=(0,f.S0)("model/gltf-binary",n.supportedFormats)??(0,f.Ow)("glb",n.supportedFormats);if(!r||!n.editFormats.includes(r))throw new s.Z(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:a}=e;for(const t of e.addFeatures??[])E(t)&&a.push(t);for(const t of e.updateFeatures??[])E(t)&&a.push(t)}(p,e),{edits:await S(p),options:c}}(e,n,r);return i.addFeatures?.length||i.updateFeatures?.length||i.deleteFeatures?.length||i.addAttachments?.length||i.updateAttachments?.length||i.deleteAttachments?.length?{edits:i,results:await t.applyEdits(i,l)}:{edits:i,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,n,r),p=e=>e.filter((e=>!e.error)).map(i.d9),h={edits:c,addedFeatures:p(l.addFeatureResults),updatedFeatures:p(l.updateFeatureResults),deletedFeatures:p(l.deleteFeatureResults),addedAttachments:p(l.addAttachmentResults),updatedAttachments:p(l.updateAttachmentResults),deletedAttachments:p(l.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:l.editMoment?new Date(l.editMoment):null,globalIdToObjectId:r.globalIdToObjectId};return l.editedFeatureResults?.length&&(h.editedFeatures=l.editedFeatureResults),d.resolve(h),l}catch(e){throw d.reject(e),e}}function A(e,t,n,r){if(n){if("attributes"in e&&!e.attributes[t.globalIdField])throw new s.Z(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(r.length&&"attributes"in e)for(const n of r){const r=e.attributes[n.name];if(void 0!==r&&!(0,h.d2)(n,r))throw new s.Z(`${t.type}-layer:invalid-parameter`,`Big-integer field '${n.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new s.Z(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new s.Z(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function v(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D){const{geometry:n}=e;if(n.vertexSpace.isGeoreferenced)throw new s.Z(`${t.type}-layer:georeferenced-mesh-unsupported`,"Uploading georeferenced meshes to a layer is not supported.")}}function Z(e,t){const{feature:n,attachment:r}=e;if(!n||"attributes"in n&&!n.attributes[t.globalIdField])throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in n)&&!n.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!r.globalId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!r.data&&!r.uploadId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(r.data instanceof File&&r.data.name||r.name))throw new s.Z(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&r.uploadId)throw new s.Z(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof r.data){const e=(0,d.sJ)(r.data);if(e&&!e.isBase64)throw new s.Z(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function S(e){const t=e.addFeatures??[],n=e.updateFeatures??[],r=t.concat(n).map((e=>e.geometry)),a=await(0,c.aX)(r),s=t.length,i=n.length;return a.slice(0,s).forEach(((e,n)=>t[n].geometry=e)),a.slice(s,s+i).forEach(((e,t)=>n[t].geometry=e)),e}function R(e){const t=new r.Z;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function E(e){return"mesh"===e?.geometry?.type}function $(e,t,n,r){if(!y(t))throw new s.Z(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new s.Z(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(n,r)}},66361:(e,t,n)=>{n.d(t,{jF:()=>u,lQ:()=>h,o1:()=>y});var r=n(43697),a=n(32448),s=n(22974),i=n(95330),o=(n(92604),n(75215),n(20102),n(80442),n(52011)),l=n(18596);const d=new a.Z.EventEmitter;function u(e,t,n=null,r=!1){const a=(0,i.hh)();return r=null==t||r,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:n,mayReceiveServiceEdits:r,result:a.promise}),a}const c="esri.layers.mixins.EditBusLayer",p=Symbol(c);function h(e){return null!=e&&"object"==typeof e&&p in e}function f(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,n){const r=new URL(e).host,a=l.Jp.get(r),s=e=>!e||e===a;return s(t)&&s(n)||t===n}const y=e=>{var t;let n=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:n,gdbVersion:r,mayReceiveServiceEdits:a,result:i}=e,o=t===this.url,d=null!=n&&null!=this.layerId&&n===this.layerId,u=f(this),c=f(this)&&m(t,r,this.gdbVersion);if(!o||u&&!c||!d&&!a)return;const p=i.then((e=>{if(d&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.d9)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:n,updates:r,deletes:a}=t.editedFeatures,i={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:n?n.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:a?a.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.d9)(e.historicMoment)};return this.emit("edits",i),i}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.d9)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.d9)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,l.JV)(t,r)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:n,moment:r}=e,a=t===this.url,s=f(this),i=f(this)&&m(t,n,this.gdbVersion),o=f(this)&&!m(t,this.gdbVersion,null);a&&s&&i&&o&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then((()=>{this.addHandles(function(e){return d.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return d.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=p,n=(0,r._)([(0,o.j)(c)],n),n}},2981:(e,t,n)=>{n.d(t,{$6:()=>f,$z:()=>s,F7:()=>a,Ow:()=>o,S0:()=>i,d1:()=>l,dm:()=>d});const r=[["binary","application/octet-stream","bin",""]];function a(e,t){return null!=c(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const n=d(t,e.supportedFormats??[]);return null!=n&&e.editFormats.includes(n)}function i(e,t){return p(function(e,t){const n=e.toLowerCase();return u(t).find((e=>h(e)===n))}(e,t))}function o(e,t){return p(c(e,t))}function l(e,t){return h(function(e,t){return u(t).find((t=>p(t)===e))}(e,t))}function d(e,t){return o(e.name,t)??i(e.type,t)}function u(e){return[...r,...e]}function c(e,t){const n=e.toLowerCase();return u(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>n.endsWith(e)))))}function p(e){return e?.[0]}function h(e){return e?.[1].toLowerCase()}function f(e){return e.tables?.find((e=>"assetMaps"===e.role))}},11282:(e,t,n)=>{n.d(t,{cv:()=>o,en:()=>i,lA:()=>s}),n(68773),n(40330);var r=n(22974),a=n(17452);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function i(e){return"string"==typeof e?(0,a.mN)(e):(0,r.d9)(e)}function o(e,t,n){const r={};for(const a in e){if("declaredClass"===a)continue;const s=e[a];if(null!=s&&"function"!=typeof s)if(Array.isArray(s)){r[a]=[];for(let e=0;e<s.length;e++)r[a][e]=o(s[e])}else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[a]);r[a]=t?e:JSON.stringify(e)}else r[a]=t?s:JSON.stringify(s);else r[a]=s}return r}n(71058)},18596:(e,t,n)=>{n.d(t,{JV:()=>o,Jp:()=>a,Px:()=>i,U8:()=>r});const r=(0,n(41123).z)(),a=new Map,s=new Map;async function i(e,t,a=!1){if(!e||!t)return!0;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=s.get(i)?.entries();if(o)for(const[e,s]of o)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&a){const[{deleteForwardEdits:t},{default:a}]=await Promise.all([n.e(1316).then(n.bind(n,51316)),n.e(4573).then(n.bind(n,84573))]);return t(i,e,new a({sessionId:r,moment:s.moment}))}return t}return!0}function o(e,t){if(!e)return!1;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=s.get(n)?.entries();if(r)for(const[e,n]of r)if(n.name===t)return"edit"===n.lockType;return!1}new Map}}]);