@arcgis/core 4.29.3 → 4.29.5

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 (63) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{9f0c5822e9f2761054ea.js → 07ef6a6c4f3fce7508eb.js} +1 -1
  3. package/assets/esri/core/workers/chunks/47504e296bf82357f6bb.js +1 -0
  4. package/assets/esri/core/workers/chunks/5db9739e00f15613d1ea.js +1 -0
  5. package/assets/esri/core/workers/chunks/{b125ab84b7761e761734.js → 6ee0e9e56b80296570cb.js} +1 -1
  6. package/assets/esri/core/workers/chunks/994ca341d8711a4dd473.js +1 -0
  7. package/assets/esri/core/workers/chunks/{246cba9cd5cadba6be08.js → 9a8ab968ebb18480481d.js} +1 -1
  8. package/assets/esri/core/workers/chunks/ad9740559e8e45526796.js +1 -0
  9. package/assets/esri/core/workers/chunks/bd4cb6b02ed52b82ba56.js +1 -0
  10. package/assets/esri/core/workers/chunks/{712b5cabf4ea3dc8bf33.js → c34ec99627e7645fd218.js} +1 -1
  11. package/assets/esri/core/workers/chunks/c442480601f9a36e29b9.js +1 -0
  12. package/assets/esri/core/workers/chunks/c8ecaac448fddd120421.js +1 -0
  13. package/interfaces.d.ts +38 -50
  14. package/kernel.js +1 -1
  15. package/layers/support/Sublayer.js +1 -1
  16. package/package.json +1 -1
  17. package/rest/knowledgeGraph/wasmInterface/wasmToFeatureFactories.js +1 -1
  18. package/rest/print.js +1 -1
  19. package/support/revision.js +1 -1
  20. package/symbols/support/urlUtils.js +1 -1
  21. package/views/2d/engine/Stage.js +1 -1
  22. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  23. package/views/2d/engine/webgl/ReshufflePlan.js +1 -1
  24. package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
  25. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  26. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  27. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueRegistry.js +1 -1
  28. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  29. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +5 -0
  30. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  31. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  32. package/views/2d/layers/StreamLayerView2D.js +1 -1
  33. package/views/2d/layers/features/FeatureContainer.js +1 -1
  34. package/views/2d/layers/features/Processor.js +1 -1
  35. package/views/2d/layers/features/ProcessorTileMessageQueue.js +5 -0
  36. package/views/2d/layers/features/RenderState.js +1 -1
  37. package/views/2d/layers/features/aggregation/GridCell.js +1 -1
  38. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  39. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  40. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  41. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  42. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  43. package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
  44. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  45. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  46. package/views/2d/layers/features/support/ComputedExpression.js +1 -1
  47. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  48. package/views/2d/layers/features/support/FeatureSetCache.js +5 -0
  49. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  50. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  51. package/views/2d/layers/support/handleNoEngineError.js +5 -0
  52. package/views/MapView.js +1 -1
  53. package/widgets/BasemapLayerList.js +1 -1
  54. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  55. package/widgets/LayerList/support/layerListUtils.js +1 -1
  56. package/widgets/LayerList.js +1 -1
  57. package/assets/esri/core/workers/chunks/7427d03e693f32a81377.js +0 -1
  58. package/assets/esri/core/workers/chunks/7a8bba91769ee18cc39f.js +0 -1
  59. package/assets/esri/core/workers/chunks/8044f34d295ec36aa3f1.js +0 -1
  60. package/assets/esri/core/workers/chunks/94d72650d556fd0eecc3.js +0 -1
  61. package/assets/esri/core/workers/chunks/a48201b109e9e9aab2d6.js +0 -1
  62. package/assets/esri/core/workers/chunks/ef3e6209e6ac6a56960b.js +0 -1
  63. package/assets/esri/core/workers/chunks/ff14214611e1e070235e.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1276],{44584:(e,t,r)=>{function n(e){}r.d(t,{aM:()=>n}),r(9456)},91232:(e,t,r)=>{r.d(t,{c:()=>c});var n,s,o=r(9456),i=r(69752);(s=n||(n={}))[s.varint=0]="varint",s[s.fixed64=1]="fixed64",s[s.delimited=2]="delimited",s[s.fixed32=5]="fixed32",s[s.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,o.c)("safari")||(0,o.c)("ios")?6:(0,o.c)("ff")?12:32;class c{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,s)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const s=this.getMessage(),o=e(s,t,r,n);return s.release(),o}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,0==(128&n))break;if(n=e[t++],r|=(127&n)<<7,0==(128&n))break;if(n=e[t++],r|=(127&n)<<14,0==(128&n))break;if(n=e[t++],r|=(127&n)<<21,0==(128&n))break;if(n=e[t++],r+=268435456*(127&n),0==(128&n))break;if(n=e[t++],r+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let s=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,n=0;const s=1&e[this._pos];if(n=e[this._pos++],r|=127&n,0==(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<7,0==(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<14,0==(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r|=(127&n)<<21,0==(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=268435456*(127&n),0==(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=34359738368*(127&n),0==(128&n))return s?-(r+1)/2:r/2;if(n=e[this._pos++],r+=4398046511104*(127&n),0==(128&n))return s?-(r+1)/2:r/2;if(t=BigInt(r),n=e[this._pos++],t+=0x2000000000000n*BigInt(127&n),0==(128&n))return Number(s?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x100000000000000n*BigInt(127&n),0==(128&n))return Number(s?-(t+1n)/2n:t/2n);if(n=e[this._pos++],t+=0x8000000000000000n*BigInt(127&n),0==(128&n))return Number(s?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const n=e.subarray(t,r);return l.decode(n)}let n="",s="";for(let o=t;o<r;++o){const t=e[o];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new i.c(c,void 0,(e=>{e._data=null,e._dataView=null}))},77048:(e,t,r)=>{r.d(t,{C6:()=>h,FZ:()=>f,K:()=>b,K8:()=>l,MZ:()=>a,Qv:()=>y,Su:()=>s,UN:()=>w,WK:()=>o,WO:()=>p,WU:()=>i,eC:()=>c,is:()=>m,mK:()=>d,qe:()=>u,qy:()=>g,yK:()=>_});var n=r(95247);function s(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,i,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=o,a[5]=i,a}function i(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),i=Math.min(i,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=u}function c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?p(e,b):s(b)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function g(e,t,r,n,s){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function m(e){return 6===e.length}function _(e,t,r){if(null==e||null==t)return e===t;if(!m(e)||!m(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];s()},6704:(e,t,r)=>{r.d(t,{Ce:()=>y,Cs:()=>p,Ul:()=>u,_:()=>c,_x:()=>h,cZ:()=>d,h4:()=>f,uG:()=>m});var n=r(95247),s=r(50853),o=r(53004),i=r(67776),a=r(7488),l=r(48516);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function p(e){return void 0!==e.rings}function f(e){return null==e?null:e instanceof s.c?e:h(e)?i.c.fromJSON(e):d(e)?l.c.fromJSON(e):p(e)?a.c.fromJSON(e):c(e)?o.c.fromJSON(e):u(e)?n.c.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:i.c,esriGeometryPolyline:l.c,esriGeometryPolygon:a.c,esriGeometryEnvelope:n.c,esriGeometryMultipoint:o.c};function m(e){return e&&g[e]||null}},42736:(e,t,r)=>{r.d(t,{Mh:()=>f,QL:()=>h,eE:()=>i,q0:()=>p,qb:()=>d,yw:()=>y}),r(6704);const n=(e,t,r)=>[t,r],s=(e,t,r)=>[t,r,e[2]],o=(e,t,r)=>[t,r,e[2],e[3]];function i(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function l({scale:e,translate:t},r){return t[1]-r*e[1]}function u(e,t,r){const n=new Array(r.length);if(!r.length)return n;const[s,o]=e.scale;let i=a(e,r[0][0]),u=l(e,r[0][1]);n[0]=t(r[0],i,u);for(let e=1;e<r.length;e++){const a=r[e];i+=a[0]*s,u-=a[1]*o,n[e]=t(a,i,u)}return n}function c(e,t,r){const n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=u(e,t,r[s]);return n}function h(e,t,r,n,s){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(n&&(t.z=r.z),s&&(t.m=r.m)),t}function d(e,t,r,i,a){return null!=r&&(t.points=function(e,t,r,i){return u(e,r?i?o:s:i?s:n,t)}(e,r.points,i,a)),t}function p(e,t,r,n,s){return null==r||(t.x=a(e,r.x),t.y=l(e,r.y),t!==r&&(n&&(t.z=r.z),s&&(t.m=r.m))),t}function f(e,t,r,i,a){return null!=r&&(t.rings=function(e,t,r,i){return c(e,r?i?o:s:i?s:n,t)}(e,r.rings,i,a)),t}function y(e,t,r,i,a){return null!=r&&(t.paths=function(e,t,r,i){return c(e,r?i?o:s:i?s:n,t)}(e,r.paths,i,a)),t}},97492:(e,t,r)=>{r.d(t,{U:()=>s,j:()=>o});var n=r(14628);const s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),o=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},37924:(e,t,r)=>{r.d(t,{O:()=>i});var n=r(24296),s=r(22080),o=r(60544);function i(e,t,r){if(null==t||null==r||r.vcsWkid||(0,o.yK)(t,r)||(0,s.i8)(t)||(0,s.i8)(r))return null;const i=(0,n.gl)(t)/(0,n.gl)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},34888:(e,t,r)=>{r.d(t,{ED:()=>s,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function s(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},85152:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,s,o]=e,i=s-t,a=o-r;return new n([5],[t,r,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},97088:(e,t,r)=>{r.d(t,{C:()=>z,C_:()=>re,G0:()=>B,GE:()=>U,Ij:()=>ne,M$:()=>V,Oo:()=>ie,Sk:()=>se,Uh:()=>E,WY:()=>H,Y5:()=>L,a:()=>I,i:()=>C,i6:()=>J,iC:()=>$,m:()=>Q,mk:()=>T,od:()=>j,qw:()=>W,uY:()=>w,ui:()=>K,w3:()=>X,ye:()=>Z});var n=r(20744),s=r(66360),o=r(70680),i=r(77048),a=r(83372),l=r(6704),u=r(34888),c=r(90412),h=r(85152);function d(e,t){return e?t?4:3:t?3:2}const p=()=>s.c.getLogger("esri.layers.graphics.featureConversionUtils"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o},g=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+2]},m=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+3]},_=(e,t,r,n,s,o)=>{e[r]=s,e[r+1]=o,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:g;if(t&&n)return m}else if(t&&n)return g;return y}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function T({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function k({scale:e,translate:t},r,n){return r*e[n]+t[n]}function I(e,t,r){return e?t?r?P(e):M(e):r?G(e):x(e):null}function x(e){const t=e.coords;return{x:t[0],y:t[1]}}function F(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function G(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function q(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function P(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function S(e,t){return e&&t?N:e?v:t?q:F}function V(e,t,r=S(null!=t.z,null!=t.m)){return r(e,t)}function C(e,t,r){if(null==e)return null;const n=d(t,r),s=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let s=0;s<n;s++)r.push(e.coords[t+s]);s.push(r)}return t?r?{points:s,hasZ:t,hasM:r}:{points:s,hasZ:t}:r?{points:s,hasM:r}:{points:s}}function R(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let s=0;for(const e of t.points)for(let t=0;t<r;t++)n[s++]=e[t];return e}function U(e,t,r){if(!e)return null;const n=d(t,r),{coords:s,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function D(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:s}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)s[o++]=t[e];n.push(e.length)}return e}function L(e,t,r){if(!e)return null;const n=d(t,r),{coords:s,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(s[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function E(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const s=d(r,n),{lengths:o,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<s;e++)i[a++]=t[e];o.push(e.length)}return e}(e,t.rings,r,n)}const A=[],O=[];function Z(e,t,r,n,s){A[0]=e;const[o]=j(O,A,t,r,n,s);return le(A),le(O),o}function j(e,t,r,s,o,i){if(le(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new u._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,s){const o=S(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?o(new h.c,r):null;e.push(new u._M(t,n,null,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryMultipoint":return function(e,t,r,n,s){const o=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?R(new h.c,r,o):null;e.push(new u._M(t,n,null,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryPolyline":return function(e,t,r,n,s){const o=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?D(new h.c,r,o):null,a=null!=i?V(new h.c,i):null;e.push(new u._M(t,n,a,s?n[s]:void 0))}return e}(e,t,s,o,i);case"esriGeometryPolygon":return function(e,t,r,n,s){for(const{geometry:o,centroid:i,attributes:a}of t){const t=null!=o?E(new h.c,o,r,n):null,l=s?a[s]:void 0;null!=i?e.push(new u._M(t,a,F(new h.c,i),l)):e.push(new u._M(t,a,null,l))}return e}(e,t,s,o,i);default:p().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),le(e)}return e}function B(e,t,r,n){O[0]=e,Y(A,O,t,r,n);const s=A[0];return le(A),le(O),s}function z(e,t,r){if(null==e)return null;const s=new h.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,l._x)(e)?S(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(s,e):(0,l.Cs)(e)?E(s,e,t,r):(0,l.cZ)(e)?D(s,e,d(t,r)):(0,l._)(e)?R(s,e,d(t,r)):void p().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function W(e,t,r,s){const o=e&&("coords"in e?e:e.geometry);if(null==o)return null;switch(t){case"esriGeometryPoint":{let e=x;return r&&s?e=P:r?e=M:s&&(e=G),e(o)}case"esriGeometryMultipoint":return C(o,r,s);case"esriGeometryPolyline":return U(o,r,s);case"esriGeometryPolygon":return L(o,r,s);default:return p().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function Y(e,t,r,s,o){if(le(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let s=x;r&&n?s=P:r?s=M:n&&(s=G);for(const r of t){const{geometry:t,attributes:n}=r,o=null!=t?s(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,s,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:s,attributes:o}of t)e.push({attributes:o,geometry:null!=s?C(s,r,n):null});return e}(e,t,s,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:s,attributes:o}of t)e.push({attributes:o,geometry:null!=s?U(s,r,n):null});return e}(e,t,s,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:s,attributes:o,centroid:i}of t){const t=null!=s?L(s,r,n):null;if(null!=i){const r=x(i);e.push({attributes:o,centroid:r,geometry:t})}else e.push({attributes:o,geometry:t})}return e}(e,t,s,o);default:p().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function J(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:s,hasM:o,hasZ:i,features:a,geometryType:l,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:h,queryGeometryType:d}=e,p={features:Y([],a,l,i,o),fields:s,geometryType:l,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:W(h,d,!1,!1)};return n&&(p.transform=n),u&&(p.exceededTransferLimit=u),o&&(p.hasM=o),i&&(p.hasZ=i),p}function K(e,t){const r=new c.c,{hasM:s,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:u,exceededTransferLimit:h,transform:d,fields:f}=e;return f&&(r.fields=f),r.geometryType=u??null,r.objectIdFieldName=a??t??null,r.spatialReference=l??null,r.objectIdFieldName?(i&&j(r.features,i,u,o,s,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),s&&(r.hasM=s),o&&(r.hasZ=o),d&&(r.transform=d),r):(p().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function X(e){const{transform:t,features:r,hasM:n,hasZ:s}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,s,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,s,t);return e.transform=null,e}function Q(e,t){const{geometryType:r,features:n,hasM:s,hasZ:o}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.c,$(a.geometry,i.geometry,s,o,r,e),i.centroid&&(a.centroid=new h.c,$(a.centroid,i.centroid,s,o,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function $(e,t,r,n,s,o,i=r,a=n){if(ae(e),!t?.coords.length)return null;const l=f[s],{coords:u,lengths:c}=t,h=d(r,n),p=d(r&&i,n&&a),y=b(r,n,i,a);if(!c.length)return y(e.coords,u,0,0,w(o,u[0]),T(o,u[1])),ae(e,h,0),e;let g,m,_,k,I=0,x=0,F=x;for(const t of c){if(t<l)continue;let r=0;x=F,_=g=w(o,u[I]),k=m=T(o,u[I+1]),y(e.coords,u,x,I,_,k),r++,I+=h,x+=p;for(let n=1;n<t;n++,I+=h)_=w(o,u[I]),k=T(o,u[I+1]),_===g&&k===m||(y(e.coords,u,x,I,_-g,k-m),x+=p,r++,g=_,m=k);r>=l&&(e.lengths.push(r),F=x)}return le(e.coords,F),e.coords.length?e:null}function H(e,t,r,n,s,o,i=r,a=n){if(ae(e),!t?.coords.length)return null;const l=f[s],{coords:u,lengths:c}=t,h=d(r,n),p=d(r&&i,n&&a),y=b(r,n,i,a);if(!c.length)return y(e.coords,u,0,0,u[0],u[1]),ae(e,h,0),e;let g=0;const m=o*o;for(const t of c){if(t<l){g+=t*h;continue}const r=e.coords.length/p,n=g,s=g+(t-1)*h;y(e.coords,u,e.coords.length,n,u[n],u[n+1]),te(e.coords,u,h,m,y,n,s),y(e.coords,u,e.coords.length,s,u[s],u[s+1]);const o=e.coords.length/p-r;o>=l?e.lengths.push(o):le(e.coords,r*p),g+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const s=e[t],o=e[t+1],i=e[r],a=e[r+1],l=e[n],u=e[n+1];let c=i,h=a,d=l-c,p=u-h;if(0!==d||0!==p){const e=((s-c)*d+(o-h)*p)/(d*d+p*p);e>1?(c=l,h=u):e>0&&(c+=d*e,h+=p*e)}return d=s-c,p=o-h,d*d+p*p}function te(e,t,r,n,s,o,i){let a,l=n,u=0;for(let e=o+r;e<i;e+=r)a=ee(t,e,o,i),a>l&&(u=e,l=a);l>n&&(u-o>r&&te(e,t,r,n,s,o,u),s(e,t,e.length,u,t[u],t[u+1]),i-u>r&&te(e,t,r,n,s,u,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const s=d(r,n);let o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=s){const r=e[t],n=e[t+1];o=Math.min(o,r),u=Math.max(u,r),l=Math.min(l,n),c=Math.max(c,n)}}return(0,i.is)(e)?(0,i.qy)(e,o,l,u,c):(0,a.WK)(o,l,u,c,e),e}function ne(e,t,r,n,s){const{coords:i,lengths:a}=t,l=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,o.EN)(s);const{originPosition:u,scale:c,translate:h}=s,p=ue;p.originPosition=u;const f=p.scale;f[0]=c[0]??1,f[1]=-(c[1]??1),f[2]=c[2]??1,f[3]=c[3]??1;const y=p.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<l;++t)e.coords[t]=k(p,i[t],t);return e!==t&&ae(e,l,0),e}let g=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<l;++t)e.coords[g+t]=k(p,i[g+t],t);let n=e.coords[g],s=e.coords[g+1];g+=l;for(let t=1;t<r;t++,g+=l){n+=i[g]*f[0],s+=i[g+1]*f[1],e.coords[g]=n,e.coords[g+1]=s;for(let t=2;t<l;++t)e.coords[g+t]=k(p,i[g+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function se(e,t,r,n,s,o){if(ae(e),e.lengths.push(...t.lengths),r===s&&n===o)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,s,o),l=t.coords;for(let t=0;t<l.length;t+=i)a(e.coords,l,e.coords.length,t,l[t],l[t+1])}return e}function oe(e,t,r,n){let s=0,o=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=o+e[n*(t+a)],l=i+e[n*(t+a)+1],u=(r-o)*(l+i);o=r,i=l,s+=u}return.5*s}function ie(e,t){const{coords:r,lengths:n}=e;let s=0,o=0;for(let e=0;e<n.length;e++){const i=n[e];o+=oe(r,s,i,t),s+=i}return Math.abs(o)}function ae(e,t=0,r=0){le(e.lengths,r),le(e.coords,t)}function le(e,t=0){e.length!==t&&(e.length=t)}const ue={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},600:(e,t,r)=>{r.d(t,{c:()=>g});var n,s=r(41948),o=r(14628),i=r(40504),a=r(1580),l=r(53368),u=(r(72052),r(9456),r(9968)),c=r(33600),h=r(12552),d=r(89812),p=r(36408);const f=new o.O({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 y=n=class extends i.am{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 r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,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,s._)([(0,a.qq)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,s._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,s._)([(0,a.qq)()],y.prototype,"description",void 0),(0,s._)([(0,c.E)("description")],y.prototype,"readDescription",null),(0,s._)([(0,a.qq)({types:d.i2,json:{read:{reader:d.h4},write:!0}})],y.prototype,"domain",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,s._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,s._)([(0,a.qq)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,s._)([(0,a.qq)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,s._)([(0,u.G)(p.M)],y.prototype,"type",void 0),(0,s._)([(0,a.qq)()],y.prototype,"valueType",void 0),(0,s._)([(0,c.E)("valueType",["description"])],y.prototype,"readValueType",null),(0,s._)([(0,a.qq)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,s._)([(0,h.c)("esri.layers.support.Field")],y);const g=y},89812:(e,t,r)=>{r.d(t,{h4:()=>x,i2:()=>I}),r(9456);var n,s=r(41948),o=r(62088),i=r(1580),a=(r(66360),r(9968)),l=r(12552),u=r(40504);r(72052);let c=n=class extends u.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,s._)([(0,i.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,i.qq)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,s._)([(0,l.c)("esri.layers.support.CodedValue")],c);const h=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.am{constructor(e){super(e),this.name=null,this.type=null}};(0,s._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,a.G)(h)],d.prototype,"type",void 0),d=(0,s._)([(0,l.c)("esri.layers.support.Domain")],d);const p=d;var f;let y=f=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,o.ct)(this.codedValues),name:this.name})}};(0,s._)([(0,i.qq)({type:[c],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,s._)([(0,a.G)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=f=(0,s._)([(0,l.c)("esri.layers.support.CodedValueDomain")],y);const g=y;var m;r(20744);let _=m=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,s._)([(0,a.G)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,s._)([(0,l.c)("esri.layers.support.InheritedDomain")],_);const b=_;var w;let T=w=class extends p{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,s._)([(0,i.qq)({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,r){t[r]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,s._)([(0,i.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,s._)([(0,a.G)({range:"range"})],T.prototype,"type",void 0),T=w=(0,s._)([(0,l.c)("esri.layers.support.RangeDomain")],T);const k=T,I={key:"type",base:p,typeMap:{range:T,"coded-value":g,inherited:b}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return k.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},36408:(e,t,r)=>{r.d(t,{M:()=>n});const n=new(r(14628).O)({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"})},58580:(e,t,r)=>{r.d(t,{UH:()=>I,eq:()=>G,gD:()=>_});var n=r(20744),s=r(91232),o=r(85152),i=r(87280);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function h(e){return e>=l.length?null:l[e]}function d(e){return e>=u.length?null:u[e]}function p(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function f(e,t,r){const n=e.asUnsafe(),s=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(;n.pos()<r;)t.addCoordinatePoint(s,n.getSInt64(),o++);break}default:n.skip()}return s}function y(e,t,r){const n=e.asUnsafe(),s=t.createGeometry(r),o=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(;n.pos()<r;)t.addLength(s,n.getUInt32(),o++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let i=0;for(t.allocateCoordinates(s);n.pos()<r;)t.addCoordinate(s,n.getSInt64(),i),i++,i===o&&(i=0);break}default:n.skip()}return s}function g(e){const t=e.asUnsafe(),r=new o.c;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=i.G[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:c(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=c(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,n){const s=t.createFeature(r);let o=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[o++].name;s.attributes[t]=e.processMessage(m);break}case 2:s.geometry=e.processMessageWithArgs(y,t,r);break;case 4:s.centroid=e.processMessageWithArgs(f,t,r);break;default:e.skip()}return s}function T(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function k(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(T);break;case 3:t.translate=r.processMessage(k);break;default:r.skip()}return t}function x(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function F(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function M(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=p(t,0);let s=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(x);break;case 7:r.geometryType=p(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(F,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(I);break;case 9:r.exceededTransferLimit=n.getBool();break;case 13:t.addField(r,n.processMessage(_));break;case 15:s||(t.prepareFeatures(r),s=!0),t.addFeature(r,n.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(b);break;default:n.skip()}return t.finishFeatureResult(r),r}function v(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(g);break;case 1:r.featureResult=e.processMessageWithArgs(M,t);break;default:e.skip()}return null!=n&&r.featureResult&&t.addQueryGeometry(r,n),r}function G(e,t){try{const r=2,n=new s.c(new Uint8Array(e),new DataView(e)),o={};for(;n.next();)n.tag()===r?o.queryResult=n.processMessageWithArgs(v,t):n.skip();return o}catch(e){throw new n.c("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},87280:(e,t,r)=>{r.d(t,{G:()=>l,g:()=>u});var n=r(24296),s=r(60544),o=r(34888),i=r(90412),a=r(85152);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new i.c}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,s.yK)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n.gl)(this._options.sourceSpatialReference)/(0,n.gl)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,o.ED)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new o._M}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.c}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.c}}},32592:(e,t,r)=>{r.d(t,{W:()=>s});var n=r(58580);function s(e,t){const r=(0,n.eq)(e,t),s=r.queryResult.featureResult,o=r.queryResult.queryGeometry,i=r.queryResult.queryGeometryType;if(s&&s.features&&s.features.length&&s.objectIdFieldName){const e=s.objectIdFieldName;for(const t of s.features)t.attributes&&(t.objectId=t.attributes[e])}return s&&(s.queryGeometry=o,s.queryGeometryType=i),s}},11276:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(44584),s=r(60924),o=r(56156),i=r(37924),a=(r(9456),r(72008),r(77048),r(83372),r(42736),r(97492),r(600));r(53648),r(60544);class l{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class u{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var c=r(97088);function h(e,t){return t}function d(e,t,r,n){switch(r){case 0:return g(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?g(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function p(e,t,r,n){return 2===r?g(e,t,2):d(e,t,r,n)}function f(e,t,r,n){return 2===r?g(e,t,3):d(e,t,r,n)}function y(e,t,r,n){return 3===r?g(e,t,3):p(e,t,r,n)}function g({translate:e,scale:t},r,n){return e[n]+r*t[n]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{},this._missingAttributes=[]}get missingAttributes(){return this._missingAttributes}createFeatureResult(){return new u}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,i.O)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return new o.c}addField(e,t){e.fields.push(a.c.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength,n=this._options.maxStringAttributeFields;(function(e,t,r,n){if(t?.size&&null!=r&&e)for(const s in e){if(!t.has(s))continue;const o=e[s];"string"==typeof o&&o.length>r&&(n(s),e[s]="")}})(t.attributes,n,r,(r=>{const n=t.attributes[e.objectIdFieldName];null!=n&&this._missingAttributes.push({objectId:n,attribute:r})})),e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,s=(0,c.Ij)(r.clone(),r,!1,!1,this._transform),o=(0,c.qw)(s,n,!1,!1);let i=null;switch(n){case"esriGeometryPoint":i="point";break;case"esriGeometryPolygon":i="polygon";break;case"esriGeometryPolyline":i="polyline";break;case"esriGeometryMultipoint":i="multipoint"}o.type=i,e.queryGeometryType=n,e.queryGeometry=o}prepareFeatures(e){switch(this._transform=e.transform??null,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,n.aM)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l((0,s.Q)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform?this._applyTransform(this._transform,t,r,0):t;if(null!=n)switch(r){case 0:e.x=n;break;case 1:e.y=n;break;case 2:e.hasZ?e.z=n:e.m=n;break;case 3:e.m=n}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._transform?this._applyTransform(this._transform,e,t,r):e}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),s=e[e.length-1],o=this._coordinateBuffer;if(o){if(0===r){const e=this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT;s.push(new Float64Array(o.buffer,e,this._vertexDimension))}o[this._coordinateBufferPtr++]=n}}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?y:t?p:r?f:d}}var _=r(32592);class b{_parseFeatureQuery(e){const t=new m(e.options),r=(0,_.W)(e.buffer,t),n={...r,spatialReference:r.spatialReference?.toJSON(),fields:r.fields?r.fields.map((e=>e.toJSON())):void 0,missingAttributes:t.missingAttributes};return Promise.resolve(n)}}function w(){return new b}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5468],{34888:(e,t,r)=>{r.d(t,{ED:()=>o,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},85152:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,o,s]=e,i=o-t,a=s-r;return new n([5],[t,r,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},97088:(e,t,r)=>{r.d(t,{C:()=>E,C_:()=>re,G0:()=>U,GE:()=>Z,Ij:()=>ne,M$:()=>D,Oo:()=>ie,Sk:()=>oe,Uh:()=>V,WY:()=>H,Y5:()=>j,a:()=>x,i:()=>R,i6:()=>B,iC:()=>K,m:()=>W,mk:()=>F,od:()=>z,qw:()=>Q,uY:()=>w,ui:()=>J,w3:()=>$,ye:()=>L});var n=r(20744),o=r(66360),s=r(70680),i=r(77048),a=r(83372),u=r(6704),c=r(34888),l=r(90412),h=r(85152);function d(e,t){return e?t?4:3:t?3:2}const f=()=>o.c.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s},p=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2]},g=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+3]},_=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:p;if(t&&n)return g}else if(t&&n)return p;return y}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function I({scale:e,translate:t},r,n){return r*e[n]+t[n]}function x(e,t,r){return e?t?r?q(e):M(e):r?C(e):G(e):null}function G(e){const t=e.coords;return{x:t[0],y:t[1]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function C(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function q(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?T:P}function D(e,t,r=N(null!=t.z,null!=t.m)){return r(e,t)}function R(e,t,r){if(null==e)return null;const n=d(t,r),o=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let o=0;o<n;o++)r.push(e.coords[t+o]);o.push(r)}return t?r?{points:o,hasZ:t,hasM:r}:{points:o,hasZ:t}:r?{points:o,hasM:r}:{points:o}}function O(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let o=0;for(const e of t.points)for(let t=0;t<r;t++)n[o++]=e[t];return e}function Z(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function k(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)o[s++]=t[e];n.push(e.length)}return e}function j(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function V(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const o=d(r,n),{lengths:s,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[a++]=t[e];s.push(e.length)}return e}(e,t.rings,r,n)}const Y=[],A=[];function L(e,t,r,n,o){Y[0]=e;const[s]=z(A,Y,t,r,n,o);return ue(Y),ue(A),s}function z(e,t,r,o,s,i){if(ue(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new c._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,o){const s=N(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?s(new h.c,r):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryMultipoint":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?O(new h.c,r,s):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolyline":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?k(new h.c,r,s):null,a=null!=i?D(new h.c,i):null;e.push(new c._M(t,n,a,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolygon":return function(e,t,r,n,o){for(const{geometry:s,centroid:i,attributes:a}of t){const t=null!=s?V(new h.c,s,r,n):null,u=o?a[o]:void 0;null!=i?e.push(new c._M(t,a,P(new h.c,i),u)):e.push(new c._M(t,a,null,u))}return e}(e,t,o,s,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),ue(e)}return e}function U(e,t,r,n){A[0]=e,X(Y,A,t,r,n);const o=Y[0];return ue(Y),ue(A),o}function E(e,t,r){if(null==e)return null;const o=new h.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,u._x)(e)?N(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(o,e):(0,u.Cs)(e)?V(o,e,t,r):(0,u.cZ)(e)?k(o,e,d(t,r)):(0,u._)(e)?O(o,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function Q(e,t,r,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=G;return r&&o?e=q:r?e=M:o&&(e=C),e(s)}case"esriGeometryMultipoint":return R(s,r,o);case"esriGeometryPolyline":return Z(s,r,o);case"esriGeometryPolygon":return j(s,r,o);default:return f().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function X(e,t,r,o,s){if(ue(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let o=G;r&&n?o=q:r?o=M:n&&(o=C);for(const r of t){const{geometry:t,attributes:n}=r,s=null!=t?o(t):null;e.push({attributes:n,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?R(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?Z(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:o,attributes:s,centroid:i}of t){const t=null!=o?j(o,r,n):null;if(null!=i){const r=G(i);e.push({attributes:s,centroid:r,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:o,hasM:s,hasZ:i,features:a,geometryType:u,exceededTransferLimit:c,uniqueIdField:l,queryGeometry:h,queryGeometryType:d}=e,f={features:X([],a,u,i,s),fields:o,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:l,queryGeometry:Q(h,d,!1,!1)};return n&&(f.transform=n),c&&(f.exceededTransferLimit=c),s&&(f.hasM=s),i&&(f.hasZ=i),f}function J(e,t){const r=new l.c,{hasM:o,hasZ:s,features:i,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=c??null,r.objectIdFieldName=a??t??null,r.spatialReference=u??null,r.objectIdFieldName?(i&&z(r.features,i,c,s,o,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),o&&(r.hasM=o),s&&(r.hasZ=s),d&&(r.transform=d),r):(f().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:o}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,o,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,o,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:n,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.c,K(a.geometry,i.geometry,o,s,r,e),i.centroid&&(a.centroid=new h.c,K(a.centroid,i.centroid,o,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function K(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,w(s,c[0]),F(s,c[1])),ae(e,h,0),e;let p,g,_,I,x=0,G=0,P=G;for(const t of l){if(t<u)continue;let r=0;G=P,_=p=w(s,c[x]),I=g=F(s,c[x+1]),y(e.coords,c,G,x,_,I),r++,x+=h,G+=f;for(let n=1;n<t;n++,x+=h)_=w(s,c[x]),I=F(s,c[x+1]),_===p&&I===g||(y(e.coords,c,G,x,_-p,I-g),G+=f,r++,p=_,g=I);r>=u&&(e.lengths.push(r),P=G)}return ue(e.coords,P),e.coords.length?e:null}function H(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,c[0],c[1]),ae(e,h,0),e;let p=0;const g=s*s;for(const t of l){if(t<u){p+=t*h;continue}const r=e.coords.length/f,n=p,o=p+(t-1)*h;y(e.coords,c,e.coords.length,n,c[n],c[n+1]),te(e.coords,c,h,g,y,n,o),y(e.coords,c,e.coords.length,o,c[o],c[o+1]);const s=e.coords.length/f-r;s>=u?e.lengths.push(s):ue(e.coords,r*f),p+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const o=e[t],s=e[t+1],i=e[r],a=e[r+1],u=e[n],c=e[n+1];let l=i,h=a,d=u-l,f=c-h;if(0!==d||0!==f){const e=((o-l)*d+(s-h)*f)/(d*d+f*f);e>1?(l=u,h=c):e>0&&(l+=d*e,h+=f*e)}return d=o-l,f=s-h,d*d+f*f}function te(e,t,r,n,o,s,i){let a,u=n,c=0;for(let e=s+r;e<i;e+=r)a=ee(t,e,s,i),a>u&&(c=e,u=a);u>n&&(c-s>r&&te(e,t,r,n,o,s,c),o(e,t,e.length,c,t[c],t[c+1]),i-c>r&&te(e,t,r,n,o,c,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const o=d(r,n);let s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const r=e[t],n=e[t+1];s=Math.min(s,r),c=Math.max(c,r),u=Math.min(u,n),l=Math.max(l,n)}}return(0,i.is)(e)?(0,i.qy)(e,s,u,c,l):(0,a.WK)(s,u,c,l,e),e}function ne(e,t,r,n,o){const{coords:i,lengths:a}=t,u=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,s.EN)(o);const{originPosition:c,scale:l,translate:h}=o,f=ce;f.originPosition=c;const m=f.scale;m[0]=l[0]??1,m[1]=-(l[1]??1),m[2]=l[2]??1,m[3]=l[3]??1;const y=f.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<u;++t)e.coords[t]=I(f,i[t],t);return e!==t&&ae(e,u,0),e}let p=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<u;++t)e.coords[p+t]=I(f,i[p+t],t);let n=e.coords[p],o=e.coords[p+1];p+=u;for(let t=1;t<r;t++,p+=u){n+=i[p]*m[0],o+=i[p+1]*m[1],e.coords[p]=n,e.coords[p+1]=o;for(let t=2;t<u;++t)e.coords[p+t]=I(f,i[p+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function oe(e,t,r,n,o,s){if(ae(e),e.lengths.push(...t.lengths),r===o&&n===s)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,o,s),u=t.coords;for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1])}return e}function se(e,t,r,n){let o=0,s=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],u=i+e[n*(t+a)+1],c=(r-s)*(u+i);s=r,i=u,o+=c}return.5*o}function ie(e,t){const{coords:r,lengths:n}=e;let o=0,s=0;for(let e=0;e<n.length;e++){const i=n[e];s+=se(r,o,i,t),o+=i}return Math.abs(s)}function ae(e,t=0,r=0){ue(e.lengths,r),ue(e.coords,t)}function ue(e,t=0){e.length!==t&&(e.length=t)}const ce={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},95468:(e,t,r)=>{r.d(t,{c:()=>x});var n=r(41948),o=r(43780),s=r(20744),i=r(9456),a=r(10860),u=r(28176),c=r(1580),l=(r(66360),r(72052),r(12552)),h=r(4048),d=r(88204),f=r(21980),m=r(46788),y=(r(60708),r(32848)),p=r(95776),g=r(95247),_=r(819),b=r(99944),w=r(49132),F=r(59500);let I=class extends o.c{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.as)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),n=null!=e.outStatistics?.[0],o=(0,i.c)("featurelayer-pbf-statistics"),s=!n||o;let a;if(this.pbfSupported&&s)try{a=await(0,w.S)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&s||(a=await(0,b.E)(this.url,r,t)),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,n){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return F.c.fromJSON(t);const{meshFeatureSetFromJSON:o}=await(0,a.Yv)(Promise.all([r.e(8624),r.e(3180),r.e(7424),r.e(9780),r.e(456)]).then(r.bind(r,12784)),n);return o(e,this.infoFor3D,t)}executeForCount(e,t){return(0,m._)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const n=(0,f.UX)(e),o=await(0,y.A7)(n,p.c.from(t),{...r}),s=o.data.extent;return!s||isNaN(s.xmin)||isNaN(s.ymin)||isNaN(s.xmax)||isNaN(s.ymax)?{count:o.data.count,extent:null}:{count:o.data.count,extent:g.c.fromJSON(s)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,_.g)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:n},{executeRelationshipQuery:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:n},{executeRelationshipQueryForCount:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:n,fetchAttachments:o,processAttachmentQueryResult:s}=await(0,a.Yv)(r.e(2024).then(r.bind(r,82024)),t),i=(0,f.UX)(this.url);return s(i,await(this.queryAttachmentsSupported?n(i,e,t):o(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:n}=await(0,a.Yv)(r.e(3395).then(r.bind(r,93395)),t);return n(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:n}=await(0,a.Yv)(r.e(4296).then(r.bind(r,84296)),t);return n(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:n}=await(0,a.Yv)(r.e(2008).then(r.bind(r,22008)),t);return n(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:n}=await(0,a.Yv)(r.e(6796).then(r.bind(r,76796)),t);return n(this.parsedUrl,e,t)}_normalizeQuery(e){let t=p.c.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.U.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:n,queryFormats:o}=r,i=(0,h.me)("model/gltf-binary",n)??(0,h.If)("glb",n),a=(0,h.me)("model/gltf+json",n)??(0,h.If)("gltf",n);for(const e of o){if(e===i){t.formatOf3DObjects=e;break}e!==a||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new s.c("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:n,originY:o,originZ:s,translationX:i,translationY:a,translationZ:u,scaleX:c,scaleY:l,scaleZ:h,rotationX:d,rotationY:f,rotationZ:m,rotationDeg:y}=r.transformFieldRoles;t.outFields.push(n,o,s,i,a,u,c,l,h,d,f,m,y)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,n._)([(0,c.qq)({type:d.U})],I.prototype,"dynamicDataSource",void 0),(0,n._)([(0,c.qq)()],I.prototype,"fieldsIndex",void 0),(0,n._)([(0,c.qq)()],I.prototype,"gdbVersion",void 0),(0,n._)([(0,c.qq)()],I.prototype,"infoFor3D",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,n._)([(0,c.qq)()],I.prototype,"pbfSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"queryAttachmentsSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"sourceSpatialReference",void 0),(0,n._)([(0,c.qq)({type:String})],I.prototype,"url",void 0),I=(0,n._)([(0,l.c)("esri.tasks.QueryTask")],I);const x=I},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>m,kD:()=>s,me:()=>i,sz:()=>o,w$:()=>u});const n=[["binary","application/octet-stream","bin",""]];function o(e,t){return null!=h(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return d(function(e,t){const r=e.toLowerCase();return l(t).find((e=>f(e)===r))}(e,t))}function a(e,t){return d(h(e,t))}function u(e,t){return f(function(e,t){return l(t).find((t=>d(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??i(e.type,t)}function l(e){return[...n,...e]}function h(e,t){const r=e.toLowerCase();return l(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function d(e){return e?.[0]}function f(e){return e?.[1].toLowerCase()}function m(e){return e.tables?.find((e=>"assetMaps"===e.role))}},46788:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.WE)(i,s.c.from(t),{...r}).then((e=>e.data.count))}},819:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.Qn)(i,s.c.from(t),{...r}).then((e=>e.data.objectIds))}},99944:(e,t,r)=>{r.d(t,{E:()=>u,c:()=>a});var n=r(21980),o=r(32848),s=r(59500),i=r(95776);async function a(e,t,r){const n=await u(e,t,r);return s.c.fromJSON(n)}async function u(e,t,r){const s=(0,n.UX)(e),a={...r},u=i.c.from(t),{data:c}=await(0,o.EL)(s,u,u.sourceSpatialReference,a);return c}},49132:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(21980),o=r(70680),s=r(37924),i=r(97088);function a(e,t){return t}function u(e,t,r,n){switch(r){case 0:return d(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?d(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function c(e,t,r,n){return 2===r?d(e,t,2):u(e,t,r,n)}function l(e,t,r,n){return 2===r?0===t?0:d(e,t,3):u(e,t,r,n)}function h(e,t,r,n){return 3===r?0===t?0:d(e,t,3):c(e,t,r,n)}function d({translate:e,scale:t},r,n){return e[n]+r*t[n]}class f{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=a,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,s.O)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,o.EN)(r),r.push(t);const n=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,o=(0,i.Ij)(r.clone(),r,!1,!1,this._transform),s=(0,i.qw)(o,n,!1,!1);e.queryGeometryType=n,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform;switch(t=this._applyTransform(n,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const n=this._transform;return null===this._mValueOffset||0!==e||t%this._mValueOffset?this._applyTransform(n,e,t,r):0}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),o=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),o.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?h:t?c:r?l:u}}var m=r(32848),y=(r(59500),r(95776));async function p(e,t,r){const o=(0,n.UX)(e),s={...r},i=y.c.from(t),a=!i.quantizationParameters,{data:u}=await(0,m.aA)(o,i,new f({sourceSpatialReference:i.sourceSpatialReference,applyTransform:a}),s);return u}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2818],{42818:(e,t,n)=>{n.r(t),n.d(t,{loadGLTFMesh:()=>I});var r=n(44728),o=n(2600),l=n(86916),s=n(53648),u=n(77556),a=n(68612),c=n(62484),i=n(37008),f=n(43912),m=n(70492),p=n(7192),d=n(56160),g=n(60003),x=n(71004),y=n(48952),T=n(92160),b=n(98132);Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,n){const r=e.typedBuffer,o=e.typedBufferStride,l=t.typedBuffer,s=t.typedBufferStride,u=n?n.count:t.count;let a=(n?.dstIndex??0)*o,c=(n?.srcIndex??0)*s;for(let e=0;e<u;++e){for(let e=0;e<9;++e)r[a+e]=l[c+e];a+=o,c+=s}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,n){const r=e.typedBuffer,o=e.typedBufferStride,l=t.typedBuffer,s=t.typedBufferStride,u=n?n.count:t.count;let a=(n?.dstIndex??0)*o,c=(n?.srcIndex??0)*s;for(let e=0;e<u;++e){for(let e=0;e<16;++e)r[a+e]=l[c+e];a+=o,c+=s}}},Symbol.toStringTag,{value:"Module"})),n(89880);var v=n(12240),w=n(88340),h=n(74960);function C(e,t){return new e(new ArrayBuffer(t*e.ElementCount*(0,b.Ad)(e.ElementType)))}var B=n(54828),S=n(57792),A=n(68268),E=n(2888),M=n(5472),R=n(44875),_=n(77800);async function I(e,t,n){const l=new S.k(function(e){const t=e?.resolveFile;return t?{busy:!1,request:async(e,n,r)=>{const l=t?.(e)??e,s="image"===n?"image":"binary"===n?"array-buffer":"json";return(await(0,o.c)(l,{responseType:s,signal:null!=r?r.signal:null})).data}}:null}(n)),u=(await(0,A.G)(l,t,n,!0)).model,a=u.lods.shift(),f=new Map,x=new Map;u.textures.forEach(((e,t)=>f.set(t,function(e){return new p.c({data:((0,M.e6)(e.data),e.data),wrap:F(e.parameters.wrap)})}(e)))),u.materials.forEach(((e,t)=>x.set(t,function(e,t){const n=new r.c(function(e,t){return(0,i.WK)(N(e[0]),N(e[1]),N(e[2]),t)}(e.color,e.opacity)),o=e.emissiveFactor?new r.c(function(e){return(0,c.WK)(N(e[0]),N(e[1]),N(e[2]))}(e.emissiveFactor)):null,l=e=>e?new d.c({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:(0,s.UB)(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new m.c({color:n,colorTexture:t.get(e.textureColor),normalTexture:t.get(e.textureNormal),emissiveColor:o,emissiveTexture:t.get(e.textureEmissive),occlusionTexture:t.get(e.textureOcclusion),alphaMode:z(e.alphaMode),alphaCutoff:e.alphaCutoff,doubleSided:e.doubleSided,metallic:e.metallicFactor,roughness:e.roughnessFactor,metallicRoughnessTexture:t.get(e.textureMetallicRoughness),colorTextureTransform:l(e.colorTextureTransform),normalTextureTransform:l(e.normalTextureTransform),occlusionTextureTransform:l(e.occlusionTextureTransform),emissiveTextureTransform:l(e.emissiveTextureTransform),metallicRoughnessTextureTransform:l(e.metallicRoughnessTextureTransform)})}(e,f))));const y=j(a);for(const e of y.parts)k(y,e,x);const{position:T,normal:b,tangent:v,color:w,texCoord0:h}=y.vertexAttributes,C={position:T.typedBuffer,normal:null!=b?b.typedBuffer:null,tangent:null!=v?v.typedBuffer:null,uv:null!=h?h.typedBuffer:null,color:null!=w?w.typedBuffer:null},E=(0,B.EX)(C,e,n);return{transform:E.transform,vertexSpace:E.vertexSpace,components:y.components,spatialReference:e.spatialReference,vertexAttributes:new g.s({position:E.vertexAttributes.position,normal:E.vertexAttributes.normal,tangent:E.vertexAttributes.tangent,color:C.color,uv:C.uv})}}function O(e,t){if(null==e)return"-";const n=e.typedBuffer;return`${(0,l.wJ)(t,n.buffer,(()=>t.size))}/${n.byteOffset}/${n.byteLength}`}function $(e){return null!=e?e.toString():"-"}function j(e){let t=0;const n={color:!1,tangent:!1,normal:!1,texCoord0:!1},r=new Map,o=new Map,s=[];for(const u of e.parts){const{attributes:{position:e,normal:a,color:c,tangent:i,texCoord0:f}}=u,m=`\n ${O(e,r)}/\n ${O(a,r)}/\n ${O(c,r)}/\n ${O(i,r)}/\n ${O(f,r)}/\n ${$(u.transform)}\n `;let p=!1;const d=(0,l.wJ)(o,m,(()=>(p=!0,{start:t,length:e.count})));p&&(t+=e.count),a&&(n.normal=!0),c&&(n.color=!0),i&&(n.tangent=!0),f&&(n.texCoord0=!0),s.push({gltf:u,writeVertices:p,region:d})}return{vertexAttributes:{position:C(x.Ax,t),normal:n.normal?C(x.Yj,t):null,tangent:n.tangent?C(x._5,t):null,color:n.color?C(x.sb,t):null,texCoord0:n.texCoord0?C(x.U7,t):null},parts:s,components:[]}}function k(e,t,n){t.writeVertices&&function(e,t){const{position:n,normal:r,tangent:o,color:l,texCoord0:c}=e.vertexAttributes,i=t.region.start,{attributes:f,transform:m}=t.gltf,p=f.position.count;if((0,y.d)(n.slice(i,p),f.position,m),null!=f.normal&&null!=r){const e=(0,u.yy)((0,a.Su)(),m),t=r.slice(i,p);(0,y.c)(t,f.normal,e),(0,s.ig)(e)&&(0,y.e)(t,t)}else null!=r&&(0,w.f)(r,0,0,1,{dstIndex:i,count:p});if(null!=f.tangent&&null!=o){const e=(0,u.yy)((0,a.Su)(),m),t=o.slice(i,p);(0,T.a)(t,f.tangent,e),(0,s.ig)(e)&&(0,T.n)(t,t)}else null!=o&&(0,h.f)(o,0,0,1,1,{dstIndex:i,count:p});if(null!=f.texCoord0&&null!=c?(0,v.a)(c.slice(i,p),f.texCoord0):null!=c&&(0,v.f)(c,0,0,{dstIndex:i,count:p}),null!=f.color&&null!=l){const e=f.color,t=l.slice(i,p);if(4===e.elementCount)e instanceof x._5?(0,T.b)(t,e,255):e instanceof x.sb?(0,h.a)(t,e):e instanceof x.Ig&&(0,T.b)(t,e,1/256);else{(0,h.f)(t,255,255,255,255);const n=x.IN.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof x.Yj?(0,y.f)(n,e,255):e instanceof x.IN?(0,w.a)(n,e):e instanceof x.k5&&(0,y.f)(n,e,1/256)}}else null!=l&&(0,h.f)(l.slice(i,p),255,255,255,255)}(e,t);const{indices:r,attributes:o,primitiveType:l,material:c}=t.gltf;let i=(0,E.y)(r||o.position.count,l);const m=t.region.start;if(m){const e=new Uint32Array(i);for(let t=0;t<i.length;t++)e[t]+=m;i=e}e.components.push(new f.c({name:t.gltf.name,faces:i,material:n.get(c),shading:o.normal?"source":"flat",trustSourceNormals:!0}))}function z(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function F(e){return{horizontal:P(e.s),vertical:P(e.t)}}function P(e){switch(e){case _.Qz.CLAMP_TO_EDGE:return"clamp";case _.Qz.MIRRORED_REPEAT:return"mirror";case _.Qz.REPEAT:return"repeat"}}function N(e){return e**(1/R.g)*255}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2818],{42818:(e,t,n)=>{n.r(t),n.d(t,{loadGLTFMesh:()=>I});var r=n(44728),o=n(2600),l=n(86916),s=n(53648),u=n(77556),a=n(68612),c=n(62484),i=n(37008),f=n(43912),m=n(70492),p=n(7192),d=n(56160),g=n(82384),x=n(71004),y=n(48952),T=n(92160),b=n(98132);Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,n){const r=e.typedBuffer,o=e.typedBufferStride,l=t.typedBuffer,s=t.typedBufferStride,u=n?n.count:t.count;let a=(n?.dstIndex??0)*o,c=(n?.srcIndex??0)*s;for(let e=0;e<u;++e){for(let e=0;e<9;++e)r[a+e]=l[c+e];a+=o,c+=s}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,n){const r=e.typedBuffer,o=e.typedBufferStride,l=t.typedBuffer,s=t.typedBufferStride,u=n?n.count:t.count;let a=(n?.dstIndex??0)*o,c=(n?.srcIndex??0)*s;for(let e=0;e<u;++e){for(let e=0;e<16;++e)r[a+e]=l[c+e];a+=o,c+=s}}},Symbol.toStringTag,{value:"Module"})),n(89880);var v=n(12240),w=n(88340),h=n(74960);function C(e,t){return new e(new ArrayBuffer(t*e.ElementCount*(0,b.Ad)(e.ElementType)))}var B=n(54828),S=n(57792),A=n(68268),E=n(2888),M=n(5472),R=n(44875),_=n(77800);async function I(e,t,n){const l=new S.k(function(e){const t=e?.resolveFile;return t?{busy:!1,request:async(e,n,r)=>{const l=t?.(e)??e,s="image"===n?"image":"binary"===n?"array-buffer":"json";return(await(0,o.c)(l,{responseType:s,signal:null!=r?r.signal:null})).data}}:null}(n)),u=(await(0,A.G)(l,t,n,!0)).model,a=u.lods.shift(),f=new Map,x=new Map;u.textures.forEach(((e,t)=>f.set(t,function(e){return new p.c({data:((0,M.e6)(e.data),e.data),wrap:F(e.parameters.wrap)})}(e)))),u.materials.forEach(((e,t)=>x.set(t,function(e,t){const n=new r.c(function(e,t){return(0,i.WK)(N(e[0]),N(e[1]),N(e[2]),t)}(e.color,e.opacity)),o=e.emissiveFactor?new r.c(function(e){return(0,c.WK)(N(e[0]),N(e[1]),N(e[2]))}(e.emissiveFactor)):null,l=e=>e?new d.c({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:(0,s.UB)(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new m.c({color:n,colorTexture:t.get(e.textureColor),normalTexture:t.get(e.textureNormal),emissiveColor:o,emissiveTexture:t.get(e.textureEmissive),occlusionTexture:t.get(e.textureOcclusion),alphaMode:z(e.alphaMode),alphaCutoff:e.alphaCutoff,doubleSided:e.doubleSided,metallic:e.metallicFactor,roughness:e.roughnessFactor,metallicRoughnessTexture:t.get(e.textureMetallicRoughness),colorTextureTransform:l(e.colorTextureTransform),normalTextureTransform:l(e.normalTextureTransform),occlusionTextureTransform:l(e.occlusionTextureTransform),emissiveTextureTransform:l(e.emissiveTextureTransform),metallicRoughnessTextureTransform:l(e.metallicRoughnessTextureTransform)})}(e,f))));const y=j(a);for(const e of y.parts)k(y,e,x);const{position:T,normal:b,tangent:v,color:w,texCoord0:h}=y.vertexAttributes,C={position:T.typedBuffer,normal:null!=b?b.typedBuffer:null,tangent:null!=v?v.typedBuffer:null,uv:null!=h?h.typedBuffer:null,color:null!=w?w.typedBuffer:null},E=(0,B.EX)(C,e,n);return{transform:E.transform,vertexSpace:E.vertexSpace,components:y.components,spatialReference:e.spatialReference,vertexAttributes:new g.s({position:E.vertexAttributes.position,normal:E.vertexAttributes.normal,tangent:E.vertexAttributes.tangent,color:C.color,uv:C.uv})}}function O(e,t){if(null==e)return"-";const n=e.typedBuffer;return`${(0,l.wJ)(t,n.buffer,(()=>t.size))}/${n.byteOffset}/${n.byteLength}`}function $(e){return null!=e?e.toString():"-"}function j(e){let t=0;const n={color:!1,tangent:!1,normal:!1,texCoord0:!1},r=new Map,o=new Map,s=[];for(const u of e.parts){const{attributes:{position:e,normal:a,color:c,tangent:i,texCoord0:f}}=u,m=`\n ${O(e,r)}/\n ${O(a,r)}/\n ${O(c,r)}/\n ${O(i,r)}/\n ${O(f,r)}/\n ${$(u.transform)}\n `;let p=!1;const d=(0,l.wJ)(o,m,(()=>(p=!0,{start:t,length:e.count})));p&&(t+=e.count),a&&(n.normal=!0),c&&(n.color=!0),i&&(n.tangent=!0),f&&(n.texCoord0=!0),s.push({gltf:u,writeVertices:p,region:d})}return{vertexAttributes:{position:C(x.Ax,t),normal:n.normal?C(x.Yj,t):null,tangent:n.tangent?C(x._5,t):null,color:n.color?C(x.sb,t):null,texCoord0:n.texCoord0?C(x.U7,t):null},parts:s,components:[]}}function k(e,t,n){t.writeVertices&&function(e,t){const{position:n,normal:r,tangent:o,color:l,texCoord0:c}=e.vertexAttributes,i=t.region.start,{attributes:f,transform:m}=t.gltf,p=f.position.count;if((0,y.d)(n.slice(i,p),f.position,m),null!=f.normal&&null!=r){const e=(0,u.yy)((0,a.Su)(),m),t=r.slice(i,p);(0,y.c)(t,f.normal,e),(0,s.ig)(e)&&(0,y.e)(t,t)}else null!=r&&(0,w.f)(r,0,0,1,{dstIndex:i,count:p});if(null!=f.tangent&&null!=o){const e=(0,u.yy)((0,a.Su)(),m),t=o.slice(i,p);(0,T.a)(t,f.tangent,e),(0,s.ig)(e)&&(0,T.n)(t,t)}else null!=o&&(0,h.f)(o,0,0,1,1,{dstIndex:i,count:p});if(null!=f.texCoord0&&null!=c?(0,v.a)(c.slice(i,p),f.texCoord0):null!=c&&(0,v.f)(c,0,0,{dstIndex:i,count:p}),null!=f.color&&null!=l){const e=f.color,t=l.slice(i,p);if(4===e.elementCount)e instanceof x._5?(0,T.b)(t,e,255):e instanceof x.sb?(0,h.a)(t,e):e instanceof x.Ig&&(0,T.b)(t,e,1/256);else{(0,h.f)(t,255,255,255,255);const n=x.IN.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof x.Yj?(0,y.f)(n,e,255):e instanceof x.IN?(0,w.a)(n,e):e instanceof x.k5&&(0,y.f)(n,e,1/256)}}else null!=l&&(0,h.f)(l.slice(i,p),255,255,255,255)}(e,t);const{indices:r,attributes:o,primitiveType:l,material:c}=t.gltf;let i=(0,E.y)(r||o.position.count,l);const m=t.region.start;if(m){const e=new Uint32Array(i);for(let t=0;t<i.length;t++)e[t]+=m;i=e}e.components.push(new f.c({name:t.gltf.name,faces:i,material:n.get(c),shading:o.normal?"source":"flat",trustSourceNormals:!0}))}function z(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function F(e){return{horizontal:P(e.s),vertical:P(e.t)}}function P(e){switch(e){case _.Qz.CLAMP_TO_EDGE:return"clamp";case _.Qz.MIRRORED_REPEAT:return"mirror";case _.Qz.REPEAT:return"repeat"}}function N(e){return e**(1/R.g)*255}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1004],{38724:(e,t,r)=>{r.d(t,{C:()=>n});var s=r(41948),o=r(1580),i=(r(9456),r(66360),r(72052),r(12552));const n=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,o.qq)({type:String})],t.prototype,"apiKey",null),t=(0,s._)([(0,i.c)("esri.layers.mixins.APIKeyMixin")],t),t}},16660:(e,t,r)=>{r.d(t,{u:()=>a});var s=r(41948),o=r(66360),i=r(1580),n=(r(9456),r(72052),r(12552)),p=r(48212);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,p.K0)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,p.oR)(e,o.c.getLogger(this)))}};return(0,s._)([(0,i.qq)()],t.prototype,"title",null),(0,s._)([(0,i.qq)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,n.c)("esri.layers.mixins.ArcGISService")],t),t}},87352:(e,t,r)=>{r.d(t,{c:()=>c});var s=r(41948),o=r(3856),i=r(14628),n=r(40504),p=r(1580),a=(r(9456),r(66360),r(72052),r(12552));const l=new i.O({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,o.q)(n.am)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,p.qq)({json:{write:!0}})],u.prototype,"name",void 0),(0,s._)([(0,p.qq)({json:{write:!0}})],u.prototype,"description",void 0),(0,s._)([(0,p.qq)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,s._)([(0,p.qq)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,s._)([(0,p.qq)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,s._)([(0,a.c)("esri.layers.support.FeatureTemplate")],u);const c=u},79648:(e,t,r)=>{r.d(t,{c:()=>y});var s=r(41948),o=r(3856),i=r(40504),n=r(1580),p=(r(9456),r(66360),r(72052),r(33600)),a=r(12552),l=r(18996),u=r(89812),c=r(87352);let d=class extends((0,o.q)(i.am)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.h4)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"id",void 0),(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"domains",void 0),(0,s._)([(0,p.E)("domains")],d.prototype,"readDomains",null),(0,s._)([(0,l.G)("domains")],d.prototype,"writeDomains",null),(0,s._)([(0,n.qq)({type:[c.c],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,s._)([(0,a.c)("esri.layers.support.FeatureType")],d);const y=d},24144:(e,t,r)=>{r.d(t,{c:()=>u});var s,o=r(41948),i=r(2952),n=r(40504),p=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let l=s=class extends n.am{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.c}clone(){return new s({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,p.qq)({type:String,json:{write:!0}})],l.prototype,"floorField",void 0),(0,o._)([(0,p.qq)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,o._)([(0,p.qq)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=s=(0,o._)([(0,a.c)("esri.layers.support.LayerFloorInfo")],l);const u=l},54712:(e,t,r)=>{r.d(t,{S:()=>c});var s=r(9456),o=r(48212);function i(e,t,r){return!!p(e,t,r)}function n(e,t,r){return p(e,t,r)}function p(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const a={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function l(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function u(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e,t){return{analytics:d(e),attachment:y(e),data:m(e),metadata:h(e),operations:f(e.capabilities,e,t),query:g(e,t),queryRelated:v(e),queryTopFeatures:w(e),editing:q(e)}}function d(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:u(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:i(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=a[e.name];t&&(r[t]=!!e.isEnabled)})),r}function m(e){return{isVersioned:i(e,"isDataVersioned",!1),supportsAttachment:i(e,"hasAttachments",!1),supportsM:i(e,"hasM",!1),supportsZ:i(e,"hasZ",!1)}}function h(e){return{supportsAdvancedFieldProperties:i(e,"supportsFieldDescriptionProperty",!1)}}function f(e,t,r){const s=e?e.toLowerCase().split(",").map((e=>e.trim())):[],n=r?(0,o.K0)(r):null,p=s.includes(null!=n&&"MapServer"===n.serverType?"data":"query"),a=s.includes("editing")&&!t.datesInUnknownTimezone;let l=a&&s.includes("create"),u=a&&s.includes("delete"),c=a&&s.includes("update");const d=s.includes("changetracking"),y=t.advancedQueryCapabilities;return a&&!(l||u||c)&&(l=u=c=!0),{supportsCalculate:i(t,"supportsCalculate",!1),supportsTruncate:i(t,"supportsTruncate",!1),supportsValidateSql:i(t,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:u,supportsEditing:a,supportsChangeTracking:d,supportsQuery:p,supportsQueryAnalytics:i(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(y,"supportsQueryAttachments",!1),supportsQueryTopFeatures:i(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:i(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,p=e.ownershipBasedAccessControlForFeatures,a=e.archivingInfo,c=e.currentVersion,d=t?.includes("MapServer"),y=!d||c>=(0,s.c)("mapserver-pbf-version-support"),m=(0,o.Wq)(t),h=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:i(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:l(r),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsOrderBy:i(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsQuantization:i(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:i(e,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:i(p,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(p,"allowOthersToQuery",!0),supportsHistoricMoment:i(a,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&h.has("pbf"),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||u(r,"query"),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsCompactGeometry:m,supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),maxRecordCountFactor:n(e,"maxRecordCountFactor",void 0),maxRecordCount:n(e,"maxRecordCount",void 0),standardMaxRecordCount:n(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:n(e,"tileMaxRecordCount",void 0)}}function v(e){const t=e.advancedQueryCapabilities,r=i(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:u(t,"queryRelated")}}function w(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryTopFilter")}}function q(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(e,"allowGeometryUpdates",!0),supportsGlobalId:i(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1),zDefault:n(e,"zDefault",void 0)}}},46940:(e,t,r)=>{r.d(t,{CI:()=>d,KI:()=>l,O2:()=>n,_S:()=>p,mU:()=>a,oj:()=>u,qk:()=>c});var s=r(60074),o=r(56156),i=r(29120);function n(e,t){if(!p(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function p(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return p(e,c.HOSTED_SERVICE)}function l(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}async function u(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,i.aq)(e);const r=o.c.WGS84;return await(0,s.initializeProjection)(t,r),(0,s.project)(e,r)}(r)}const c={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery",GROUP_LAYER_MAP:"Map"};function d(e){const{portal:t,isOrgItem:r,itemControl:s}=e,o=t.user?.privileges;let i=!o||o.includes("features:user:edit"),n=!!r&&!!o?.includes("features:user:fullEdit");const p="update"===s||"admin"===s;return p?n=i=!0:n&&(i=!0),{features:{edit:i,fullEdit:n},content:{updateItem:p}}}},59500:(e,t,r)=>{r.d(t,{c:()=>w});var s,o=r(41948),i=r(60708),n=r(6444),p=r(14628),a=r(40504),l=r(62088),u=r(1580),c=(r(9456),r(66360),r(33600)),d=r(12552),y=r(18996),m=r(56156),h=r(6704),f=r(600);const g=new p.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=s=class extends a.am{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=m.c.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],i=n.c.fromJSON(o),p=o.geometry?.spatialReference;null==i.geometry||p||(i.geometry.spatialReference=r);const a=o.aggregateGeometries,l=i.aggregateGeometries;if(a&&null!=l)for(const e in l){const t=l[e],s=a[e],o=s?.spatialReference;null==t||o||(t.spatialReference=r)}s.push(i)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,h.h4)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=m.c.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,l.ct)({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,o]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=i.length;e<t;e++)n?.(i[e].geometry)||(i.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,o],scale:[i,n]}=r;let p=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;p=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const l=this._getHydrationFunction(e,(e=>e*i+s),(e=>o-e*n),p,a);for(const{geometry:e}of t)null!=e&&l&&l(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,o;const i=[];for(let n=0,p=e.length;n<p;n++){const p=e[n];if(n>0){const e=t(p[0]),n=r(p[1]);e===s&&n===o||(i.push([e-s,n-o]),s=e,o=n)}else s=t(p[0]),o=r(p[1]),i.push([s,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,h.Cs)(e)?e.rings:e.paths,o=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=this._quantizePoints(i,t,r);n&&o.push(n)}return o.length>0?((0,h.Cs)(e)?e.rings=o:e.paths=o,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,o){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 i=(0,h.Cs)(e)?e.rings:e.paths;let n,p;for(let e=0,s=i.length;e<s;e++){const s=i[e];for(let e=0,o=s.length;e<o;e++){const o=s[e];e>0?(n+=o[0],p+=o[1]):(n=o[0],p=o[1]),o[0]=t(n),o[1]=r(p)}}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=o(r[3])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(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)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,p;for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],p+=s[1]):(n=s[0],p=s[1]),s[0]=t(n),s[1]=r(p)}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2]),t[3]=o(t[3])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,u.qq)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,u.qq)({type:[n.c],json:{write:!0}})],v.prototype,"features",void 0),(0,o._)([(0,c.E)("features")],v.prototype,"readFeatures",null),(0,o._)([(0,u.qq)({type:[f.c],json:{write:!0}})],v.prototype,"fields",void 0),(0,o._)([(0,u.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,o._)([(0,y.G)("geometryType")],v.prototype,"writeGeometryType",null),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o._)([(0,u.qq)({types:i.Su,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o._)([(0,c.E)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o._)([(0,u.qq)({type:m.c,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o._)([(0,y.G)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o._)([(0,u.qq)({json:{write:!0}})],v.prototype,"transform",void 0),v=s=(0,o._)([(0,d.c)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8224],{13452:(e,t,r)=>{r.d(t,{c:()=>d});var n=r(41948),i=r(3856),o=r(40504),s=r(94360),l=r(1580),a=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),c=r(4736);let p=class extends((0,i.q)(o.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.QJ)(this.value,this.unit,"milliseconds")}};(0,n._)([(0,a.G)(c.e,{nonNullable:!0})],p.prototype,"unit",void 0),(0,n._)([(0,l.qq)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,n._)([(0,u.c)("esri.TimeInterval")],p);const d=p},75824:(e,t,r)=>{r.d(t,{Md:()=>o,m0:()=>s,qG:()=>i});var n=r(39452);class i{}function o(e){return e instanceof n.C?e===i.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?i.instance:e}i.instance=new n._C("Etc/UTC")},77048:(e,t,r)=>{r.d(t,{C6:()=>p,FZ:()=>y,K:()=>q,K8:()=>a,MZ:()=>l,Qv:()=>f,Su:()=>i,UN:()=>v,WK:()=>o,WO:()=>h,WU:()=>s,eC:()=>c,is:()=>g,mK:()=>d,qe:()=>u,qy:()=>m,yK:()=>w});var n=r(95247);function i(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,s,l=i()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=o,l[5]=s,l}function s(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.c(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let i=e[0],o=e[1],s=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=u}function c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function p(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?h(e,q):i(q)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function m(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(83372);const q=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];i()},56288:(e,t,r)=>{r.r(t),r.d(t,{default:()=>L});var n=r(41948),i=(r(60708),r(82692)),o=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),s=r(26496),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552)),u=r(97492),c=r(81436),p=r(20744),d=r(95800),h=r(96248),y=r(59500),f=r(56156);let m=class extends d.c{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getSource(){const{featureDefinition:{collection:e,layerDefinition:t,spatialReference:r,supportedCrs:n},layer:{apiKey:i,customParameters:o,effectiveMaxRecordCount:s}}=this;return{type:"ogc-source",collection:e,layerDefinition:t,maxRecordCount:s,queryParameters:{apiKey:i,customParameters:o},spatialReference:r,supportedCrs:n}}queryExtent(e,t={}){return null}queryFeatureCount(e,t={}){return null}queryFeatures(e,t={}){return this.queryFeaturesJSON(e,t).then((e=>y.c.fromJSON(e)))}queryFeaturesJSON(e,t={}){const r=this.getSource();return this.load(t).then((()=>(0,h.sM)(r,e,t)))}queryObjectIds(e,t={}){return null}serviceSupportsSpatialReference(e){return!(!e.isWGS84&&!e.isWebMercator&&!this.featureDefinition.supportedCrs[e.wkid])}_conformsToType(e,t){const r=new RegExp(`^${t}$`,"i");return e.conformsTo.some((e=>r.test(e)))??!1}_getCapabilities(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:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:t,maxRecordCountFactor:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}_getMaxRecordCount(e){const t=e?.components?.parameters;return t?.limit?.schema?.maximum??t?.limitFeatures?.schema?.maximum}_getStorageSpatialReference(e){const t=e.storageCrs??h.ug,r=(0,h.wN)(t);return null==r?f.c.WGS84:new f.c({wkid:r})}_getSupportedSpatialReferences(e,t){const r="#/crs",n=e.crs??[h.ug],i=n.includes(r)?n.filter((e=>e!==r)).concat(t.crs??[]):n,o=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return i.filter((e=>!o.test(e)))}async _loadOGCServices(e,t){const r=null!=t?t.signal:null,{apiKey:n,collectionId:i,customParameters:o,fields:s,geometryType:l,hasZ:a,objectIdField:c,timeInfo:d,url:y}=e,f={fields:s?.map((e=>e.toJSON())),geometryType:u.j.toJSON(l),hasZ:a??!1,objectIdField:c,timeInfo:d?.toJSON()},m={apiKey:n,customParameters:o,signal:r},g=await(0,h.Ko)(y,m),[w,q]=await Promise.all([(0,h.SE)(g,m),(0,h.KS)(g,m)]);if(!this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new p.c("ogc-feature-layer:no-geojson-support","Server does not support geojson");const v=q.collections.find((({id:e})=>e===i));if(!v)throw new p.c("ogc-feature-layer:collection-not-found","Server does not contain the named collection");const F=this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?await(0,h.wl)(g,m):null,_=await(0,h.oY)(v,f,m),T=this._getMaxRecordCount(F),x=this._getCapabilities(_.hasZ,T),I=this._getStorageSpatialReference(v).toJSON(),b=this._getSupportedSpatialReferences(v,q),S=new RegExp(`^${h.oB}`,"i"),M={};for(const e of b){const t=(0,h.wN)(e);null!=t&&(M[t]||(M[t]=e.replace(S,"")))}this.featureDefinition={capabilities:x,collection:v,layerDefinition:_,spatialReference:I,supportedCrs:M}}};(0,n._)([(0,l.qq)()],m.prototype,"featureDefinition",void 0),(0,n._)([(0,l.qq)({constructOnly:!0})],m.prototype,"layer",void 0),(0,n._)([(0,l.qq)()],m.prototype,"type",void 0),m=(0,n._)([(0,a.c)("esri.layers.graphics.sources.OGCFeatureSource")],m);var g=r(38724),w=r(25216),q=r(28584),v=r(13116),F=r(66888),_=r(66576),T=r(30112),x=r(98768),I=r(26916),b=r(3116),S=r(19560),M=r(21488),R=r(79648),E=r(600),N=r(81732),O=r(564),j=r(6168),G=r(34880),C=r(95776),P=r(65548),D=r(95247);const Z=(0,N.l)();let U=class extends((0,g.C)((0,q.G)((0,F.c)((0,v.w)((0,w.W)((0,T.W)((0,S.u)((0,b.I)((0,_.Y)((0,x.K)((0,I.G)((0,s.U)(c.c))))))))))))){constructor(e){super(e),this.capabilities=null,this.collectionId=null,this.copyright=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxRecordCount=null,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new m({layer:this}),this.spatialReference=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then((()=>this._fetchService(e)))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get effectiveMaxRecordCount(){return this.maxRecordCount??this.capabilities?.query.maxRecordCount??5e3}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,O.Gi)(e,this.fieldsIndex),this._set("renderer",e)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,P.Ap)(this,e)}createQuery(){return new C.c}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r,n=!1;const i=t?.feature?.attributes,o=this.typeIdField&&i?.[this.typeIdField];return null!=o&&this.types&&(n=this.types.some((t=>t.id==o&&(r=t.domains?.[e],"inherited"===r?.type&&(r=this._getLayerDomain(e)),!0)))),n||r||(r=this._getLayerDomain(e)),r}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(C.c.from(e)||this.createQuery(),t))).then((e=>(e?.features?.forEach((e=>{e.layer=e.sourceLayer=this})),e)))}serviceSupportsSpatialReference(e){return this.source?.serviceSupportsSpatialReference(e)??!1}async _fetchService(e){await this.source.load(e),this.read(this.source.featureDefinition,{origin:"service"}),(0,O.Gi)(this.renderer,this.fieldsIndex),(0,O.Wc)(this.timeInfo,this.fieldsIndex)}_getLayerDomain(e){if(!this.fields)return null;for(const t of this.fields)if(t.name===e&&t.domain)return t.domain;return null}};(0,n._)([(0,l.qq)({readOnly:!0,json:{origins:{service:{read:!0}}}})],U.prototype,"capabilities",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],U.prototype,"collectionId",void 0),(0,n._)([(0,l.qq)({type:String})],U.prototype,"copyright",void 0),(0,n._)([(0,l.qq)({readOnly:!0})],U.prototype,"defaultPopupTemplate",null),(0,n._)([(0,l.qq)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],U.prototype,"description",void 0),(0,n._)([(0,l.qq)({type:String})],U.prototype,"displayField",void 0),(0,n._)([(0,l.qq)({type:Number})],U.prototype,"effectiveMaxRecordCount",null),(0,n._)([(0,l.qq)(M.Kg)],U.prototype,"elevationInfo",void 0),(0,n._)([(0,l.qq)({type:[E.c],json:{origins:{service:{name:"layerDefinition.fields"}}}})],U.prototype,"fields",void 0),(0,n._)([(0,l.qq)(Z.fieldsIndex)],U.prototype,"fieldsIndex",void 0),(0,n._)([(0,l.qq)({readOnly:!0,type:D.c,json:{origins:{service:{name:"layerDefinition.extent"}}}})],U.prototype,"fullExtent",void 0),(0,n._)([(0,l.qq)({type:u.U.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:u.U.read}}}}})],U.prototype,"geometryType",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],U.prototype,"hasZ",void 0),(0,n._)([(0,l.qq)({type:Boolean,readOnly:!0})],U.prototype,"isTable",null),(0,n._)([(0,l.qq)({type:[j.c],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:G.E},write:!0}}}})],U.prototype,"labelingInfo",void 0),(0,n._)([(0,l.qq)(M.Wu)],U.prototype,"labelsVisible",void 0),(0,n._)([(0,l.qq)(M.Uj)],U.prototype,"legendEnabled",void 0),(0,n._)([(0,l.qq)({type:Number})],U.prototype,"maxRecordCount",void 0),(0,n._)([(0,l.qq)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],U.prototype,"objectIdField",void 0),(0,n._)([(0,l.qq)({type:["OGCFeatureLayer"]})],U.prototype,"operationalLayerType",void 0),(0,n._)([(0,l.qq)(M.Ou)],U.prototype,"popupEnabled",void 0),(0,n._)([(0,l.qq)({type:i.c,json:{name:"popupInfo",write:!0}})],U.prototype,"popupTemplate",void 0),(0,n._)([(0,l.qq)({types:o.U,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:o.Q,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],U.prototype,"renderer",null),(0,n._)([(0,l.qq)(M.Q9)],U.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,l.qq)({readOnly:!0})],U.prototype,"source",void 0),(0,n._)([(0,l.qq)({readOnly:!0,type:f.c,json:{origins:{service:{read:!0}}}})],U.prototype,"spatialReference",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],U.prototype,"title",void 0),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],U.prototype,"type",void 0),(0,n._)([(0,l.qq)({type:String,readOnly:!0})],U.prototype,"typeIdField",void 0),(0,n._)([(0,l.qq)({type:[R.c]})],U.prototype,"types",void 0),(0,n._)([(0,l.qq)(M.qW)],U.prototype,"url",void 0),U=(0,n._)([(0,a.c)("esri.layers.OGCFeatureLayer")],U);const L=U},34888:(e,t,r)=>{r.d(t,{ED:()=>i,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},85152:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,i,o]=e,s=i-t,l=o-r;return new n([5],[t,r,s,0,0,l,-s,0,0,-l])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},13136:(e,t,r)=>{r.d(t,{u:()=>n});const n={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}},97088:(e,t,r)=>{r.d(t,{C:()=>Q,C_:()=>re,G0:()=>k,GE:()=>P,Ij:()=>ne,M$:()=>j,Oo:()=>se,Sk:()=>ie,Uh:()=>U,WY:()=>X,Y5:()=>Z,a:()=>T,i:()=>G,i6:()=>V,iC:()=>$,m:()=>H,mk:()=>F,od:()=>B,qw:()=>J,uY:()=>v,ui:()=>W,w3:()=>Y,ye:()=>A});var n=r(20744),i=r(66360),o=r(70680),s=r(77048),l=r(83372),a=r(6704),u=r(34888),c=r(90412),p=r(85152);function d(e,t){return e?t?4:3:t?3:2}const h=()=>i.c.getLogger("esri.layers.graphics.featureConversionUtils"),y={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},f=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o},m=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o,e[r+2]=t[n+2]},g=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o,e[r+2]=t[n+3]},w=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o,e[r+2]=t[n+2],e[r+3]=t[n+3]};function q(e,t,r,n){if(e){if(r)return t&&n?w:m;if(t&&n)return g}else if(t&&n)return m;return f}function v({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function _({scale:e,translate:t},r,n){return r*e[n]+t[n]}function T(e,t,r){return e?t?r?E(e):b(e):r?M(e):x(e):null}function x(e){const t=e.coords;return{x:t[0],y:t[1]}}function I(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function b(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function R(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function E(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function O(e,t){return e&&t?N:e?S:t?R:I}function j(e,t,r=O(null!=t.z,null!=t.m)){return r(e,t)}function G(e,t,r){if(null==e)return null;const n=d(t,r),i=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let i=0;i<n;i++)r.push(e.coords[t+i]);i.push(r)}return t?r?{points:i,hasZ:t,hasM:r}:{points:i,hasZ:t}:r?{points:i,hasM:r}:{points:i}}function C(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let i=0;for(const e of t.points)for(let t=0;t<r;t++)n[i++]=e[t];return e}function P(e,t,r){if(!e)return null;const n=d(t,r),{coords:i,lengths:o}=e,s=[];let l=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(i[l++]);t.push(e)}s.push(t)}return t?r?{paths:s,hasZ:t,hasM:r}:{paths:s,hasZ:t}:r?{paths:s,hasM:r}:{paths:s}}function D(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:i}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)i[o++]=t[e];n.push(e.length)}return e}function Z(e,t,r){if(!e)return null;const n=d(t,r),{coords:i,lengths:o}=e,s=[];let l=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(i[l++]);t.push(e)}s.push(t)}return t?r?{rings:s,hasZ:t,hasM:r}:{rings:s,hasZ:t}:r?{rings:s,hasM:r}:{rings:s}}function U(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const i=d(r,n),{lengths:o,coords:s}=e;let l=0;le(e);for(const e of t){for(const t of e)for(let e=0;e<i;e++)s[l++]=t[e];o.push(e.length)}return e}(e,t.rings,r,n)}const L=[],z=[];function A(e,t,r,n,i){L[0]=e;const[o]=B(z,L,t,r,n,i);return ae(L),ae(z),o}function B(e,t,r,i,o,s){if(ae(e),!r){for(const r of t){const t=s?r.attributes[s]:void 0;e.push(new u._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,i){const o=O(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?o(new p.c,r):null;e.push(new u._M(t,n,null,i?n[i]:void 0))}return e}(e,t,i,o,s);case"esriGeometryMultipoint":return function(e,t,r,n,i){const o=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?C(new p.c,r,o):null;e.push(new u._M(t,n,null,i?n[i]:void 0))}return e}(e,t,i,o,s);case"esriGeometryPolyline":return function(e,t,r,n,i){const o=d(r,n);for(const{geometry:r,attributes:n,centroid:s}of t){const t=null!=r?D(new p.c,r,o):null,l=null!=s?j(new p.c,s):null;e.push(new u._M(t,n,l,i?n[i]:void 0))}return e}(e,t,i,o,s);case"esriGeometryPolygon":return function(e,t,r,n,i){for(const{geometry:o,centroid:s,attributes:l}of t){const t=null!=o?U(new p.c,o,r,n):null,a=i?l[i]:void 0;null!=s?e.push(new u._M(t,l,I(new p.c,s),a)):e.push(new u._M(t,l,null,a))}return e}(e,t,i,o,s);default:h().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),ae(e)}return e}function k(e,t,r,n){z[0]=e,K(L,z,t,r,n);const i=L[0];return ae(L),ae(z),i}function Q(e,t,r){if(null==e)return null;const i=new p.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,a._x)(e)?O(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(i,e):(0,a.Cs)(e)?U(i,e,t,r):(0,a.cZ)(e)?D(i,e,d(t,r)):(0,a._)(e)?C(i,e,d(t,r)):void h().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function J(e,t,r,i){const o=e&&("coords"in e?e:e.geometry);if(null==o)return null;switch(t){case"esriGeometryPoint":{let e=x;return r&&i?e=E:r?e=b:i&&(e=M),e(o)}case"esriGeometryMultipoint":return G(o,r,i);case"esriGeometryPolyline":return P(o,r,i);case"esriGeometryPolygon":return Z(o,r,i);default:return h().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function K(e,t,r,i,o){if(ae(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let i=x;r&&n?i=E:r?i=b:n&&(i=M);for(const r of t){const{geometry:t,attributes:n}=r,o=null!=t?i(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,i,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({attributes:o,geometry:null!=i?G(i,r,n):null});return e}(e,t,i,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({attributes:o,geometry:null!=i?P(i,r,n):null});return e}(e,t,i,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:i,attributes:o,centroid:s}of t){const t=null!=i?Z(i,r,n):null;if(null!=s){const r=x(s);e.push({attributes:o,centroid:r,geometry:t})}else e.push({attributes:o,geometry:t})}return e}(e,t,i,o);default:h().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function V(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:i,hasM:o,hasZ:s,features:l,geometryType:a,exceededTransferLimit:u,uniqueIdField:c,queryGeometry:p,queryGeometryType:d}=e,h={features:K([],l,a,s,o),fields:i,geometryType:a,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:J(p,d,!1,!1)};return n&&(h.transform=n),u&&(h.exceededTransferLimit=u),o&&(h.hasM=o),s&&(h.hasZ=s),h}function W(e,t){const r=new c.c,{hasM:i,hasZ:o,features:s,objectIdFieldName:l,spatialReference:a,geometryType:u,exceededTransferLimit:p,transform:d,fields:y}=e;return y&&(r.fields=y),r.geometryType=u??null,r.objectIdFieldName=l??t??null,r.spatialReference=a??null,r.objectIdFieldName?(s&&B(r.features,s,u,o,i,r.objectIdFieldName),p&&(r.exceededTransferLimit=p),i&&(r.hasM=i),o&&(r.hasZ=o),d&&(r.transform=d),r):(h().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function Y(e){const{transform:t,features:r,hasM:n,hasZ:i}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,i,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,i,t);return e.transform=null,e}function H(e,t){const{geometryType:r,features:n,hasM:i,hasZ:o}=t;if(!e)return t;for(let t=0;t<n.length;t++){const s=n[t],l=s.weakClone();l.geometry=new p.c,$(l.geometry,s.geometry,i,o,r,e),s.centroid&&(l.centroid=new p.c,$(l.centroid,s.centroid,i,o,"esriGeometryPoint",e)),n[t]=l}return t.transform=e,t}function $(e,t,r,n,i,o,s=r,l=n){if(le(e),!t?.coords.length)return null;const a=y[i],{coords:u,lengths:c}=t,p=d(r,n),h=d(r&&s,n&&l),f=q(r,n,s,l);if(!c.length)return f(e.coords,u,0,0,v(o,u[0]),F(o,u[1])),le(e,p,0),e;let m,g,w,_,T=0,x=0,I=x;for(const t of c){if(t<a)continue;let r=0;x=I,w=m=v(o,u[T]),_=g=F(o,u[T+1]),f(e.coords,u,x,T,w,_),r++,T+=p,x+=h;for(let n=1;n<t;n++,T+=p)w=v(o,u[T]),_=F(o,u[T+1]),w===m&&_===g||(f(e.coords,u,x,T,w-m,_-g),x+=h,r++,m=w,g=_);r>=a&&(e.lengths.push(r),I=x)}return ae(e.coords,I),e.coords.length?e:null}function X(e,t,r,n,i,o,s=r,l=n){if(le(e),!t?.coords.length)return null;const a=y[i],{coords:u,lengths:c}=t,p=d(r,n),h=d(r&&s,n&&l),f=q(r,n,s,l);if(!c.length)return f(e.coords,u,0,0,u[0],u[1]),le(e,p,0),e;let m=0;const g=o*o;for(const t of c){if(t<a){m+=t*p;continue}const r=e.coords.length/h,n=m,i=m+(t-1)*p;f(e.coords,u,e.coords.length,n,u[n],u[n+1]),te(e.coords,u,p,g,f,n,i),f(e.coords,u,e.coords.length,i,u[i],u[i+1]);const o=e.coords.length/h-r;o>=a?e.lengths.push(o):ae(e.coords,r*h),m+=t*p}return e.coords.length?e:null}function ee(e,t,r,n){const i=e[t],o=e[t+1],s=e[r],l=e[r+1],a=e[n],u=e[n+1];let c=s,p=l,d=a-c,h=u-p;if(0!==d||0!==h){const e=((i-c)*d+(o-p)*h)/(d*d+h*h);e>1?(c=a,p=u):e>0&&(c+=d*e,p+=h*e)}return d=i-c,h=o-p,d*d+h*h}function te(e,t,r,n,i,o,s){let l,a=n,u=0;for(let e=o+r;e<s;e+=r)l=ee(t,e,o,s),l>a&&(u=e,a=l);a>n&&(u-o>r&&te(e,t,r,n,i,o,u),i(e,t,e.length,u,t[u],t[u+1]),s-u>r&&te(e,t,r,n,i,u,s))}function re(e,t,r,n){if(!t?.coords?.length)return null;const i=d(r,n);let o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=i){const r=e[t],n=e[t+1];o=Math.min(o,r),u=Math.max(u,r),a=Math.min(a,n),c=Math.max(c,n)}}return(0,s.is)(e)?(0,s.qy)(e,o,a,u,c):(0,l.WK)(o,a,u,c,e),e}function ne(e,t,r,n,i){const{coords:s,lengths:l}=t,a=d(r,n);if(!s.length)return e!==t&&le(e),e;(0,o.EN)(i);const{originPosition:u,scale:c,translate:p}=i,h=ue;h.originPosition=u;const y=h.scale;y[0]=c[0]??1,y[1]=-(c[1]??1),y[2]=c[2]??1,y[3]=c[3]??1;const f=h.translate;if(f[0]=p[0]??0,f[1]=p[1]??0,f[2]=p[2]??0,f[3]=p[3]??0,!l.length){for(let t=0;t<a;++t)e.coords[t]=_(h,s[t],t);return e!==t&&le(e,a,0),e}let m=0;for(let t=0;t<l.length;t++){const r=l[t];e.lengths[t]=r;for(let t=0;t<a;++t)e.coords[m+t]=_(h,s[m+t],t);let n=e.coords[m],i=e.coords[m+1];m+=a;for(let t=1;t<r;t++,m+=a){n+=s[m]*y[0],i+=s[m+1]*y[1],e.coords[m]=n,e.coords[m+1]=i;for(let t=2;t<a;++t)e.coords[m+t]=_(h,s[m+t],t)}}return e!==t&&le(e,s.length,l.length),e}function ie(e,t,r,n,i,o){if(le(e),e.lengths.push(...t.lengths),r===i&&n===o)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const s=d(r,n),l=q(r,n,i,o),a=t.coords;for(let t=0;t<a.length;t+=s)l(e.coords,a,e.coords.length,t,a[t],a[t+1])}return e}function oe(e,t,r,n){let i=0,o=e[n*t],s=e[n*(t+1)];for(let l=1;l<r;l++){const r=o+e[n*(t+l)],a=s+e[n*(t+l)+1],u=(r-o)*(a+s);o=r,s=a,i+=u}return.5*i}function se(e,t){const{coords:r,lengths:n}=e;let i=0,o=0;for(let e=0;e<n.length;e++){const s=n[e];o+=oe(r,i,s,t),i+=s}return Math.abs(o)}function le(e,t=0,r=0){ae(e.lengths,r),ae(e.coords,t)}function ae(e,t=0){e.length!==t&&(e.length=t)}const ue={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},38724:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(41948),i=r(1580),o=(r(9456),r(66360),r(72052),r(12552));const s=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n._)([(0,i.qq)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,o.c)("esri.layers.mixins.APIKeyMixin")],t),t}},13116:(e,t,r)=>{r.d(t,{w:()=>S});var n,i=r(41948),o=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),l=r(20744),a=r(40504),u=r(58820),c=r(24676),p=r(60708),d=r(25228),h=r(14628),y=r(62088),f=r(95776);const m=new h.O({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new h.O({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=n=class extends a.am{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:n,timeExtent:i,objectIds:o,units:s,distance:l}=this;return new f.c({geometry:(0,y.ct)(r),objectIds:(0,y.ct)(o),spatialRelationship:n,timeExtent:(0,y.ct)(i),where:t,units:s,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:i,objectIds:o,units:s,distance:l}=this;return new n({geometry:(0,y.ct)(t),objectIds:(0,y.ct)(o),spatialRelationship:r,timeExtent:(0,y.ct)(i),where:e,units:s,distance:l})}};(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,i._)([(0,o.qq)({types:p.Su,json:{write:!0}})],w.prototype,"geometry",void 0),(0,i._)([(0,o.qq)({type:m.apiValues,json:{name:"spatialRel",read:{reader:m.read},write:{allowNull:!1,writer:m.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,i._)([(0,o.qq)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,i._)([(0,o.qq)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,i._)([(0,o.qq)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,i._)([(0,o.qq)({type:d.c,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=n=(0,i._)([(0,s.c)("esri.layers.support.FeatureFilter")],w);const q=w;var v;const F={read:{reader:c.gH},write:{writer:c.GA,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:c.gH},write:{writer:c.GA,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},T={name:"showExcludedLabels",default:!0};let x=v=class extends a.am{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.c("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new l.c("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,i._)([(0,o.qq)({type:q,json:{write:{allowNull:!0,writer(e,t,r,n){const i=e?.write({},n);i&&0!==Object.keys(i).length?(0,u.qQ)(r,i,t):(0,u.qQ)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-map":F,"portal-item":F}}})],x.prototype,"includedEffect",void 0),(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],x.prototype,"excludedEffect",void 0),(0,i._)([(0,o.qq)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":T,"portal-item":T}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,i._)([(0,s.c)("esri.layers.support.FeatureEffect")],x);const I=x,b={write:{allowNull:!0}},S=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,i._)([(0,o.qq)({type:I,json:{origins:{"web-map":b,"portal-item":b}}})],t.prototype,"featureEffect",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.FeatureEffectLayer")],t),t}},30112:(e,t,r)=>{r.d(t,{W:()=>c});var n=r(41948),i=r(58820),o=r(1580),s=(r(9456),r(66360),r(72052),r(12552)),l=r(35968);function a(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const i=new l.c;return i.read(n,r),[i]}function u(e,t,r,n){const o=e.find((e=>!!e.field));o&&(0,i.qQ)(r,[o.toJSON()],t)}const c=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,n._)([(0,o.qq)({type:[l.c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:a},write:{target:"layerDefinition.orderBy",writer:u}}})],t.prototype,"orderBy",void 0),t=(0,n._)([(0,s.c)("esri.layers.mixins.OrderedLayer")],t),t}},19560:(e,t,r)=>{r.d(t,{u:()=>d});var n=r(41948),i=r(25228),o=r(13452),s=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),a=r(12552),u=r(564),c=r(99336),p=r(4736);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=p.e.fromJSON(r.timeOffsetUnits);return n&&i?new o.c({value:n,unit:i}):null}set timeInfo(e){(0,u.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,s.qq)({type:i.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,s.qq)({type:o.c})],t.prototype,"timeOffset",void 0),(0,n._)([(0,l.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,s.qq)({value:null,type:c.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,s.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,a.c)("esri.layers.mixins.TemporalLayer")],t),t}},87352:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(41948),i=r(3856),o=r(14628),s=r(40504),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552));const u=new o.O({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let c=class extends((0,i.q)(s.am)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n._)([(0,l.qq)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,l.qq)({json:{write:!0}})],c.prototype,"description",void 0),(0,n._)([(0,l.qq)({json:{read:u.read,write:u.write}})],c.prototype,"drawingTool",void 0),(0,n._)([(0,l.qq)({json:{write:!0}})],c.prototype,"prototype",void 0),(0,n._)([(0,l.qq)({json:{write:!0}})],c.prototype,"thumbnail",void 0),c=(0,n._)([(0,a.c)("esri.layers.support.FeatureTemplate")],c);const p=c},79648:(e,t,r)=>{r.d(t,{c:()=>h});var n=r(41948),i=r(3856),o=r(40504),s=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),a=r(12552),u=r(18996),c=r(89812),p=r(87352);let d=class extends((0,i.q)(o.am)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,c.h4)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n._)([(0,s.qq)({json:{write:!0}})],d.prototype,"id",void 0),(0,n._)([(0,s.qq)({json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,s.qq)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n._)([(0,l.E)("domains")],d.prototype,"readDomains",null),(0,n._)([(0,u.G)("domains")],d.prototype,"writeDomains",null),(0,n._)([(0,s.qq)({type:[p.c],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n._)([(0,a.c)("esri.layers.support.FeatureType")],d);const h=d},16424:(e,t,r)=>{r.d(t,{c:()=>d});var n=r(20744),i=r(40504),o=r(66360),s=r(86916),l=r(75824),a=r(564),u=r(28484),c=r(39452);const p=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],m(e))}static fromLayerJSON(e){return new d(e.fields??[],m(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 r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(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(h(e))??this._normalizedFieldsMap.get(y(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?(o.c.getLogger("esri.layers.support.FieldsIndex").error(new n.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.Gw):f.has(t.type)?u.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.OI?l.qG.instance:t===u.Gw?c.Kq.utcInstance:(0,s.wJ)(p,t,(()=>c._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(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,i.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.Mt)(e.dateFieldsTimeReference):null,a=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.dateFieldsTimeReference?(0,u.Mt)(i.dateFieldsTimeReference):l??u.Gw:null,c=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,u.Mt)(n.timeReference):l:null,p=new Map([[h(i?.creationDateField??""),a],[h(i?.editDateField??""),a],[h(o),c],[h(s),c]]);for(const{name:n,type:i}of e.fields)if(f.has(i))t.set(n,u.OI);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,u.OI);else{const e=p.get(h(n??""))??l;t.set(n,e)}return t}},35968:(e,t,r)=>{r.d(t,{c:()=>p});var n,i=r(41948),o=r(14628),s=r(40504),l=r(1580),a=(r(9456),r(66360),r(72052),r(12552));const u=new o.O({asc:"ascending",desc:"descending"});let c=n=class extends s.am{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i._)([(0,l.qq)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,i._)([(0,l.qq)({type:u.apiValues,json:{read:u.read,write:u.write}})],c.prototype,"order",void 0),c=n=(0,i._)([(0,a.c)("esri.layers.support.OrderByInfo")],c);const p=c},99336:(e,t,r)=>{r.d(t,{c:()=>f});var n=r(41948),i=r(25228),o=r(13452),s=r(3856),l=r(40504),a=r(1580),u=(r(9456),r(66360),r(72052),r(33600)),c=r(12552),p=r(18996),d=r(28484);function h(e,t){return o.c.fromJSON({value:e,unit:t})}let y=class extends((0,s.q)(l.am)){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 r=new Date(t.timeExtent[0]),n=new Date(t.timeExtent[1]);return new i.c({start:r,end:n})}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?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n._)([(0,a.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n._)([(0,a.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n._)([(0,a.qq)({type:i.c,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n._)([(0,u.E)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n._)([(0,p.G)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n._)([(0,a.qq)({type:o.c,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n._)([(0,u.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n._)([(0,p.G)("interval")],y.prototype,"writeInterval",null),(0,n._)([(0,a.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n._)([(0,a.qq)((0,d.SM)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n._)([(0,a.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,n._)([(0,c.c)("esri.layers.support.TimeInfo")],y);const f=y},36408:(e,t,r)=>{r.d(t,{M:()=>n});const n=new(r(14628).O)({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"})},4736:(e,t,r)=>{r.d(t,{e:()=>n});const n=(0,r(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},59500:(e,t,r)=>{r.d(t,{c:()=>q});var n,i=r(41948),o=r(60708),s=r(6444),l=r(14628),a=r(40504),u=r(62088),c=r(1580),p=(r(9456),r(66360),r(33600)),d=r(12552),h=r(18996),y=r(56156),f=r(6704),m=r(600);const g=new l.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends a.am{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=y.c.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const i=e[t],o=s.c.fromJSON(i),l=i.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=i.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],n=a[e],i=n?.spatialReference;null==t||i||(t.spatialReference=r)}n.push(o)}return n}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,f.h4)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=y.c.fromJSON(t.spatialReference)),n}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 n(this.cloneProperties())}cloneProperties(){return(0,u.ct)({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 n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*o+n),(e=>i-e*s),l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(l[0]),i=r(l[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,f.Cs)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,f.Cs)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Cs)(e)?e.rings:e.paths;let s,l;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,c.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,c.qq)({type:[s.c],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,p.E)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,c.qq)({type:[m.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,c.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,h.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,c.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,c.qq)({types:o.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,p.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,c.qq)({type:y.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,h.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,c.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i._)([(0,d.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const q=w}}]);
package/interfaces.d.ts CHANGED
@@ -191,10 +191,8 @@ declare namespace __esri {
191
191
  export type CSVLayerLayerviewDestroyEventHandler = (event: CSVLayerLayerviewDestroyEvent) => void;
192
192
  export type CSVLayerRefreshEventHandler = (event: CSVLayerRefreshEvent) => void;
193
193
  export type EditorSketchCreateEventHandler = (event: EditorSketchCreateEvent) => void;
194
- export type EditorSketchDeleteEventHandler = (event: EditorSketchDeleteEvent) => void;
195
194
  export type EditorSketchUpdateEventHandler = (event: EditorSketchUpdateEvent) => void;
196
195
  export type EditorViewModelSketchCreateEventHandler = (event: EditorViewModelSketchCreateEvent) => void;
197
- export type EditorViewModelSketchDeleteEventHandler = (event: EditorViewModelSketchDeleteEvent) => void;
198
196
  export type EditorViewModelSketchUpdateEventHandler = (event: EditorViewModelSketchUpdateEvent) => void;
199
197
  export type ElevationSamplerChangedEventHandler = (event: ElevationSamplerChangedEvent) => void;
200
198
  export type FeatureFormSubmitEventHandler = (event: FeatureFormSubmitEvent) => void;
@@ -96109,7 +96107,6 @@ declare namespace __esri {
96109
96107
  */
96110
96108
  startUpdateWorkflowAtMultipleFeatureSelection(candidates: Graphic[]): Promise<void>;
96111
96109
  on(name: "sketch-create", eventHandler: EditorSketchCreateEventHandler): IHandle;
96112
- on(name: "sketch-delete", eventHandler: EditorSketchDeleteEventHandler): IHandle;
96113
96110
  on(name: "sketch-update", eventHandler: EditorSketchUpdateEventHandler): IHandle;
96114
96111
  }
96115
96112
 
@@ -96464,7 +96461,6 @@ declare namespace __esri {
96464
96461
  */
96465
96462
  toggleUpdateWorkflow(): void;
96466
96463
  on(name: "sketch-create", eventHandler: EditorViewModelSketchCreateEventHandler): IHandle;
96467
- on(name: "sketch-delete", eventHandler: EditorViewModelSketchDeleteEventHandler): IHandle;
96468
96464
  on(name: "sketch-update", eventHandler: EditorViewModelSketchUpdateEventHandler): IHandle;
96469
96465
  }
96470
96466
 
@@ -96628,25 +96624,31 @@ declare namespace __esri {
96628
96624
  }
96629
96625
 
96630
96626
  export interface EditorViewModelSketchCreateEvent {
96627
+ detail: EditorViewModelSketchCreateEventDetail;
96628
+ layer: FeatureLayer | SceneLayer | SubtypeSublayer;
96629
+ type: "sketch-create";
96630
+ }
96631
+
96632
+ export interface EditorViewModelSketchUpdateEvent {
96633
+ detail: EditorViewModelSketchUpdateEventDetail;
96634
+ layer: FeatureLayer | SceneLayer | SubtypeSublayer;
96635
+ toolEventInfo: UpdateToolEventInfo;
96636
+ type: "sketch-update";
96637
+ }
96638
+
96639
+ export interface EditorViewModelSketchCreateEventDetail {
96631
96640
  graphic: Graphic;
96632
96641
  state: "start" | "active" | "complete" | "cancel";
96633
- tool: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle" | "mesh";
96642
+ tool: "point" | "multipoint" | "polyline" | "polygon" | "circle" | "rectangle" | "mesh";
96634
96643
  toolEventInfo: CreateToolEventInfo;
96635
96644
  type: "create";
96636
96645
  }
96637
96646
 
96638
- export interface EditorViewModelSketchDeleteEvent {
96639
- graphics: Graphic[];
96640
- tool: "move" | "reshape" | "transform";
96641
- type: "delete";
96642
- }
96643
-
96644
- export interface EditorViewModelSketchUpdateEvent {
96647
+ export interface EditorViewModelSketchUpdateEventDetail {
96645
96648
  aborted: boolean;
96646
96649
  graphics: Graphic[];
96647
96650
  state: "start" | "active" | "complete";
96648
96651
  tool: "move" | "transform" | "reshape";
96649
- toolEventInfo: UpdateToolEventInfo;
96650
96652
  type: "update";
96651
96653
  }
96652
96654
 
@@ -96966,26 +96968,16 @@ declare namespace __esri {
96966
96968
  }
96967
96969
 
96968
96970
  export interface EditorSketchCreateEvent {
96969
- graphic: Graphic;
96970
- state: "start" | "active" | "complete" | "cancel";
96971
- tool: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle" | "mesh";
96972
- toolEventInfo: CreateToolEventInfo;
96973
- type: "create";
96974
- }
96975
-
96976
- export interface EditorSketchDeleteEvent {
96977
- graphics: Graphic[];
96978
- tool: "move" | "reshape" | "transform";
96979
- type: "delete";
96971
+ detail: EditorSketchCreateEventDetail;
96972
+ layer: FeatureLayer | SceneLayer | SubtypeSublayer;
96973
+ type: "sketch-create";
96980
96974
  }
96981
96975
 
96982
96976
  export interface EditorSketchUpdateEvent {
96983
- aborted: boolean;
96984
- graphics: Graphic[];
96985
- state: "start" | "active" | "complete";
96986
- tool: "move" | "transform" | "reshape";
96977
+ detail: EditorSketchUpdateEventDetail;
96978
+ layer: FeatureLayer | SceneLayer | SubtypeSublayer;
96987
96979
  toolEventInfo: UpdateToolEventInfo;
96988
- type: "update";
96980
+ type: "sketch-update";
96989
96981
  }
96990
96982
 
96991
96983
  /**
@@ -97064,6 +97056,22 @@ declare namespace __esri {
97064
97056
  snappingControlsElements?: VisibleElementsSnappingControlsElements;
97065
97057
  }
97066
97058
 
97059
+ export interface EditorSketchCreateEventDetail {
97060
+ graphic: Graphic;
97061
+ state: "start" | "active" | "complete" | "cancel";
97062
+ tool: "point" | "multipoint" | "polyline" | "polygon" | "circle" | "rectangle" | "mesh";
97063
+ toolEventInfo: CreateToolEventInfo;
97064
+ type: "create";
97065
+ }
97066
+
97067
+ export interface EditorSketchUpdateEventDetail {
97068
+ aborted: boolean;
97069
+ graphics: Graphic[];
97070
+ state: "start" | "active" | "complete";
97071
+ tool: "move" | "transform" | "reshape";
97072
+ type: "update";
97073
+ }
97074
+
97067
97075
  export interface SupportingWidgetDefaultsAttachments {
97068
97076
  /**
97069
97077
  * String indicating how to [display](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#displayType) the attachments.
@@ -111731,11 +111739,6 @@ declare namespace __esri {
111731
111739
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#CursorUpdateEventInfo)
111732
111740
  */
111733
111741
  export interface CursorUpdateEventInfo {
111734
- /**
111735
- * Type is always `cursor-update`.
111736
- *
111737
- * [Read more...](global.html#type)
111738
- */
111739
111742
  type: "cursor-update";
111740
111743
  /**
111741
111744
  * An array of numbers representing the coordinates of the cursor location.
@@ -111855,11 +111858,6 @@ declare namespace __esri {
111855
111858
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#SelectionChangeEventInfo)
111856
111859
  */
111857
111860
  export interface SelectionChangeEventInfo {
111858
- /**
111859
- * Type is always `selection-change`.
111860
- *
111861
- * [Read more...](global.html#type)
111862
- */
111863
111861
  type: "selection-change";
111864
111862
  /**
111865
111863
  * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing the latest graphic selected.
@@ -112096,12 +112094,12 @@ declare namespace __esri {
112096
112094
  }
112097
112095
 
112098
112096
  export interface SketchUpdateEvent {
112097
+ __4: "update";
112099
112098
  aborted: boolean;
112100
112099
  graphics: Graphic[];
112101
112100
  state: "start" | "active" | "complete";
112102
112101
  tool: "move" | "transform" | "reshape";
112103
112102
  toolEventInfo: UpdateToolEventInfo;
112104
- type: "update";
112105
112103
  }
112106
112104
 
112107
112105
  /**
@@ -112123,11 +112121,6 @@ declare namespace __esri {
112123
112121
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
112124
112122
  */
112125
112123
  export interface VertexAddEventInfo {
112126
- /**
112127
- * Type is always `vertex-add`.
112128
- *
112129
- * [Read more...](global.html#type)
112130
- */
112131
112124
  type: "vertex-add";
112132
112125
  /**
112133
112126
  * An array of x,y coordinates representing the vertices added.
@@ -112149,11 +112142,6 @@ declare namespace __esri {
112149
112142
  * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
112150
112143
  */
112151
112144
  export interface VertexRemoveEventInfo {
112152
- /**
112153
- * Type is always `vertex-remove`.
112154
- *
112155
- * [Read more...](global.html#type)
112156
- */
112157
112145
  type: "vertex-remove";
112158
112146
  /**
112159
112147
  * An array of x,y coordinates representing the vertices removed.
package/kernel.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";import{buildDate as s,commitHash as e}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const r="4.29";let t,i=r;i="4.29.3";function n(o){t=o}function m(s){const e=t?.findCredential(s);return e?.token?o(s,"token",e.token):s}has("host-webworker");export{m as addTokenParameter,s as buildDate,i as fullVersion,t as id,e as revision,n as setId,r as version};
5
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";import{buildDate as s,commitHash as e}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const r="4.29";let t,i=r;i="4.29.5";function n(o){t=o}function m(s){const e=t?.findCredential(s);return e?.token?o(s,"token",e.token):s}has("host-webworker");export{m as addTokenParameter,s as buildDate,i as fullVersion,t as id,e as revision,n as setId,r as version};