@arcgis/core 6.0.0-next.4 → 6.0.0-next.6

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 (108) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  4. package/arcade/geometry/unitConversion.js +1 -1
  5. package/arcgisGlobal.d.ts +5 -5
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → 250d3be6d3849d71fed8.js} +1 -1
  12. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  13. package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +1 -0
  14. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +1 -0
  15. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  16. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/4d3f97a48046021713a6.js +1 -0
  18. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  19. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  20. package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +1 -0
  21. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  24. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  25. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 85908e6e9c50749cee60.js} +1 -1
  26. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  27. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  28. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  29. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  30. package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +1 -0
  31. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  32. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  33. package/assets/esri/core/workers/chunks/f43a50d4bd9636e68ae5.js +1118 -0
  34. package/assets/esri/core/workers/chunks/f46a0d7cf588ba1b4157.js +1 -0
  35. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  36. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  37. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  38. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  39. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  40. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  41. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  42. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  43. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  44. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  45. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  46. package/config.js +1 -1
  47. package/core/units.js +1 -1
  48. package/geometry/support/wkt.js +2 -0
  49. package/kernel.js +1 -1
  50. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  51. package/layers/graphics/transferFeatures.js +1 -1
  52. package/package.json +2 -2
  53. package/symbols/cim/cimAnalyzer.js +1 -1
  54. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  55. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  56. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  57. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  58. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  59. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  60. package/views/3d/layers/support/FeatureMemory.js +1 -1
  61. package/views/3d/layers/support/FeatureTile.js +1 -1
  62. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  63. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  64. package/views/3d/support/PBFDecoder.js +1 -1
  65. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  66. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  67. package/views/SceneView.d.ts +4 -10
  68. package/views/View.d.ts +4 -12
  69. package/views/interactive/options/SnappingOptions.d.ts +28 -12
  70. package/views/interactive/options/TooltipOptions.d.ts +8 -1
  71. package/views/interactive/options/ValueOptions.d.ts +9 -2
  72. package/views/interactive/options/ViewOptions.d.ts +81 -6
  73. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  74. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  75. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  76. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  77. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  78. package/widgets/BasemapGallery/types.d.ts +3 -3
  79. package/widgets/BatchAttributeForm.js +1 -1
  80. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  81. package/widgets/Editor.d.ts +9 -9
  82. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  83. package/widgets/Sketch.d.ts +9 -9
  84. package/arcade/geometry/wkt.js +0 -2
  85. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  86. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  87. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  88. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  89. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  90. package/assets/esri/core/workers/chunks/512628db534605a2a93e.js +0 -1742
  91. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  92. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  93. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  94. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  95. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  96. package/assets/esri/core/workers/chunks/71103472c45928bd730c.js +0 -1
  97. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +0 -1
  98. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  99. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  100. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  101. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  102. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  103. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  104. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  105. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  106. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  107. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  108. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,1951,3312],{52106(e,t,r){r.d(t,{A:()=>S});var i,n,l=r(32198),o=r(37838),a=r(69540),s=r(51447),u=r(25482),c=r(53966),d=r(36708),p=r(24326),f=r(91429),h=r(12195),y=r(65864),m=r(50498),g=r(55156),b=r(60950),M=r(54339),C=r(94128),w=r(33910);const v=Symbol("meshGeometryHandles");function I(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,a.OU)(u.o)){static{i=C.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,s.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,g.I)(this.origin);if(e)return(0,M.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){let e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(v);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],v)}};(0,l.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,f.MZ)({value:null})],S.prototype,"attributes",null),(0,l.Cg)([(0,f.MZ)({value:null,types:m.yR,json:{read:y.rS}})],S.prototype,"geometry",null),(0,l.Cg)([(0,f.MZ)()],S.prototype,"distance",void 0),(0,l.Cg)([(0,f.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,l.Cg)([(0,f.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,l.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,l.Cg)([(0,f.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,l.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,f.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,f.MZ)({value:null,types:w.Es})],S.prototype,"symbol",null),(0,l.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,l.Cg)([(0,f.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=n=(0,l.Cg)([(0,f.$K)("esri.Graphic")],S)},6797(e,t,r){r.d(t,{Ui:()=>p});var i=r(69622),n=r(7762),l=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function s(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=s(e),n=s(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=n.filter(e=>!i.includes(e)),p=i.filter(e=>!n.includes(e)),f=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(l,p).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y,m=a(e)&&a(t);for(let i of f){let n,l=u(e,i),o=u(t,i);if((m||"function"!=typeof l&&"function"!=typeof o)&&l!==o&&(null!=l||null!=o)){if(r&&r[i]&&"function"==typeof r[i])n=r[i]?.(l,o);else if(l instanceof Date&&o instanceof Date){if(l.getTime()===o.getTime())continue;n={type:"complete",oldValue:l,newValue:o}}else n="object"==typeof l&&"object"==typeof o&&c(l)===c(o)?d(l,o):{type:"complete",oldValue:l,newValue:o};null!=n&&(null==y?y={type:"partial",diff:{[i]:n}}:y.diff[i]=n)}}return y}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},85334(e,t,r){r.d(t,{$:()=>b,IB:()=>a,Iy:()=>S,KV:()=>v,N2:()=>M,RH:()=>w,ZD:()=>C,sn:()=>I});var i=r(68197),n=r(4576),l=r(4718),o=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function s(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function c(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const d=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],p=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,i,n=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let l=e.length,o=e[0].length,a=0;for(r=0;r<l;r++){for(a=0,i=0;i<o;i++)a+=e[r][i]*t[i];n.push(a)}return n}function h(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(d,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function y(e){let t=f(p,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function g(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function b(e){return a(e)?e:c(e)?function(e){return y(g(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return y(g(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?y(e):s(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,n=e.v/100*255,l=n*i,o=l*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:l,g:o,b:0};break;case 1:t={r:o,g:l,b:0};break;case 2:t={r:0,g:l,b:o};break;case 3:t={r:0,g:o,b:l};break;case 4:t={r:o,g:0,b:l};break;case 5:case 6:t={r:l,g:0,b:o};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+n-l),t.g=Math.round(t.g+n-l),t.b=Math.round(t.b+n-l),t}(e):e}function M(e){return s(e)?e:function(e){let{r:t,g:r,b:i}=e,n=Math.max(t,r,i),l=n-Math.min(t,r,i),o=n,a=0===l?0:n===t?(r-i)/l%6:n===r?(i-t)/l+2:(t-r)/l+4,s=0===l?0:l/o;return a<0&&(a+=6),a*=60,s*=100,o*=100/255,{h:a,s,v:o}}(b(e))}function C(e){return u(e)?e:function(e){return m(h(e))}(b(e))}function w(e){return c(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,n=Math.sqrt(r*r+i*i),l=Math.atan2(i,r);return l=l>0?l:l+2*Math.PI,{l:t,c:n,h:l}}(m(h(e)))}(b(e))}function v(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function I(e){return e.length=4,v(e),e[3]??=1,(0,o.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,n.k4)((0,l.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let n=0;n<t;n++){let t=Math.round(n*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],l=e.length-1,o=Math.ceil((t-e.length)/l);e:for(let n=0;n<l;n++){let l=e[n],a=e[n+1];for(let n=1;n<=o;n++){let s=n/(o+1);if(i.push(F(l,a,s,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,n.k4)(i,r.seed??1)]}(e,t,r)}const x=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function F(e,t,r,l={}){let o=e.r,a=e.g,s=e.b,u=t.r,c=t.g,d=t.b,p=Math.round(o+(u-o)*r),f=Math.round(a+(c-a)*r),h=Math.round(s+(d-s)*r);if(!l.offset)return new i.A([p,f,h]);let y=(0,n.Mo)(l.seed);return new i.A([x(p,y),x(f,y),x(h,y)])}},91829(e,t,r){function i(){return[0,0,0,0]}function n(e,t,r,i){return[e,t,r,i]}function l(){return n(1,1,1,1)}function o(){return n(1,0,0,0)}function a(){return n(0,1,0,0)}function s(){return n(0,0,1,0)}function u(){return n(0,0,0,1)}r.d(t,{_Y:()=>u,fA:()=>n,vt:()=>i});const c=[0,0,0,0],d=l(),p=o(),f=a(),h=s(),y=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:p,UNIT_Y:f,UNIT_Z:h,ZEROS:c,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,r,i){return[e,t,r,i]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:n,ones:l,unitW:u,unitX:o,unitY:a,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,c,"v7",0,y])},78955(e,t,r){r.d(t,{Bw:()=>m,C:()=>n,Cc:()=>C,LI:()=>p,Om:()=>M,S8:()=>b,T9:()=>d,WQ:()=>o,Z0:()=>w,aI:()=>I,hG:()=>y,hZ:()=>l,hs:()=>f,jk:()=>c,m3:()=>g,t2:()=>v});var i=r(34304);function n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function p(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){let r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+l*l)}function y(e,t){let r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],l=t[3]-e[3];return r*r+i*i+n*n+l*l}function m(e){let t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)}function g(e){let t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n}function b(e,t){let r=t[0],i=t[1],n=t[2],l=t[3],o=r*r+i*i+n*n+l*l;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=l*o),e}function M(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function C(e,t,r,i){let n=t[0],l=t[1],o=t[2],a=t[3];return e[0]=n+i*(r[0]-n),e[1]=l+i*(r[1]-l),e[2]=o+i*(r[2]-o),e[3]=a+i*(r[3]-a),e}function w(e,t,r){let i=t[0],n=t[1],l=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*l+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*l+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*l+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*l+r[15]*o,e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function I(e,t){let r=e[0],n=e[1],l=e[2],o=e[3],a=t[0],s=t[1],u=t[2],c=t[3],d=(0,i.FD)();return Math.abs(r-a)<=d*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-s)<=d*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(l-u)<=d*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(o-c)<=d*Math.max(1,Math.abs(o),Math.abs(c))}const S=a,x=s,F=u,k=h,A=y,T=m,E=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:n,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:k,distance:h,div:F,divide:u,dot:M,equals:I,exactEquals:v,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:T,length:m,lerp:C,max:d,min:c,mul:x,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){let r,n,l,o,a,s,u=i.Ov;do{r=2*u()-1,n=2*u()-1,a=r*r+n*n}while(a>=1);do{l=2*u()-1,o=2*u()-1,s=l*l+o*o}while(s>=1);let c=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*n,e[2]=t*l*c,e[3]=t*o*c,e},round:p,scale:f,scaleAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e},set:l,sqrDist:A,sqrLen:E,squaredDistance:y,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:S,subtract:a,transformMat4:w,transformQuat:function(e,t,r){let i=t[0],n=t[1],l=t[2],o=r[0],a=r[1],s=r[2],u=r[3],c=u*i+a*l-s*n,d=u*n+s*i-o*l,p=u*l+o*n-a*i,f=-o*i-a*n-s*l;return e[0]=c*u+f*-o+d*-s-p*-a,e[1]=d*u+f*-a+p*-o-c*-s,e[2]=p*u+f*-s+c*-a-d*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},81583(e,t,r){r.d(t,{L:()=>a,g:()=>o});var i=r(60999),n=r(7762),l=r(92474);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){let r=[],o=(...e)=>{for(let t of e)null!=t&&(Array.isArray(t)?o(...t):n.A.isCollection(t)?t.forEach(e=>o(e)):(0,l.Zm)(t)&&r.push(t))};t(o);let a=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!a&&(a=t)}),a)throw a.error;return e}},16494(e,t,r){var i=r(76361);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),l="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),o=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{let i=`${t}="${r}"`;if(l.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);r.d(t,["Nd",0,a,"W5",0,o])},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>n,vD:()=>o,yS:()=>l});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function l(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function a(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},97483(e,t,r){r.r(t),r.d(t,{default:()=>Ne});var i=r(32198),n=r(69540),l=r(7762),o=r(49186),a=r(81583),s=r(91869),u=r(25728),c=r(17676),d=r(36708),p=r(39516),f=r(91429),h=r(4146),y=r(52136),m=r(18768),g=r(63074),b=r(69208),M=r(6455),C=r(47685),w=r(10086),v=r(99644),I=r(34287),S=r(8303),x=r(54310),F=r(25036),k=r(82935),A=r(60694),T=r(10873),E=r(15426),P=r(17036),L=r(30524),j=r(85334),_=r(90360),Z=r(86162),O=r(92438),z=r(96576),R=r(93618),G=r(62046),V=r(37531);const B={key:"type",base:O.A,errorContext:"renderer",typeMap:{simple:z.A,"unique-value":R.A,"class-breaks":Z.A}},N=(0,_.C)({types:B}),D=["#ed5151","#149ece","#a7c636","#9e559c","#fc921f","#ffde3e","#f789d8","#b7814a","#3caf99","#6b6bd6","#b54779","#7f7f7f"];var q=r(37838),U=r(4902),$=r(4718),K=r(92474),H=r(53966),W=r(97768),J=r(93637),X=r(89317),Y=r(78247),Q=r(16930),ee=r(41910),te=r(55156),re=r(60950),ie=r(89808),ne=r(99959);const le=Symbol("isSubtypeGroupGraphicOriginSymbol");var oe;class ae extends ne.A{get[(oe=le,re.ym)](){return this.sublayer}get[te.e](){return this.sublayer}get[ie.Q](){return this.layer}get[ee.e7](){return this.sublayer}constructor(e){super(),this[oe]=!0,this.type="subtype-group",this.sublayer=e}get layer(){return this.sublayer.parent}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var se=r(29005),ue=r(30279),ce=r(16194),de=r(46499),pe=r(39383),fe=r(17311),he=r(54546),ye=r(97552),me=r(30291),ge=r(59868),be=r(43440),Me=r(43937),Ce=r(36005);const we=(0,P.p)();let ve=0;function Ie(e,t){let r=e.json.write;return"object"!=typeof r&&(r=e.json.write={}),r.ignoreOrigin=!0,t?.spatialOnly&&(r.layerContainerTypes=X.K),e}function Se(e){let t={write:{ignoreOrigin:!0}};return e?.name&&(t.name=e.name),"object"==typeof t.write&&(e?.spatialOnly&&(t.write.layerContainerTypes=X.K),e?.target&&(t.write.target=e.target)),t}function xe(e){switch(e){case"point":case"multipoint":return ge.UK.clone();case"polyline":return ge.A7.clone();case"polygon":case"multipatch":return ge.Cx.clone();default:return null}}function Fe(e){return Ae(e,"user")===e}function ke(e){return Ae(e,"service")}function Ae(e,t){return(e.parent?.getAtOrigin("sublayers",t))?.find(({subtypeCode:t})=>t===e.subtypeCode)}function Te(e,t){return null==e?null:t.subtypes?.find(t=>t.code===e)}function Ee(e,t){let r=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":r="point";break;case"esriGeometryPolyline":r="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":r="polygon";break;default:t.type,r=null}let i={},n=Te(e,t);if(null!=n){let{defaultValues:e}=n;for(let t in e)i[t]=e[t]}return i[t.subtypeField]=e,new se.A({name:"New Feature",drawingTool:r,prototype:{attributes:i}})}let Pe=class extends((0,u.M)((0,n.OU)((0,U.s)(K.x_)))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.graphicOrigin=new ae(this),this.id=`${Date.now().toString(16)}-subtype-sublayer-${ve++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.visible=!0}load(e){return(0,L.yp)(this.renderer,this.fieldsIndex),Promise.resolve(this)}get _titleCreator(){let e=this._get("_titleCreator");return(0,W.pR)(e),new fe.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,displayField:this.parent?.displayField??"",fields:this.fields,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}get capabilities(){return this.parent?.capabilities}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get effectiveEditingEnabled(){let{parent:e}=this;return e?e.effectiveEditingEnabled&&this.editingEnabled:this.editingEnabled}get elevationInfo(){return this.parent?.elevationInfo}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;let t=(0,ce.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,ce.QX)(this)||null}writeFieldOverrides(e,t,r){let i,{fields:n,parent:l}=this;if(n){i=[];let e=0;n.forEach(({name:t,alias:r,editable:n,visible:o})=>{if(!o)return;let a=l?.fields?.find(e=>e.name===t);if(!a)return;let s={name:t},u=!1;r!==a.alias&&(s.alias=r,u=!0),n!==a.editable&&(s.editable=n,u=!0),i.push(s),u&&e++}),0===e&&i.length===n.length&&(i=null)}else i=(0,$.o8)(e);i?.length&&(0,J.sM)(r,i,t)}get fields(){let{parent:e,fieldOverrides:t,subtypeCode:r}=this,i=e?.fields;if(!e||!i?.length)return null;let{subtypes:n,subtypeField:l}=e,o=n?.find(e=>e.code===r),a=o?.defaultValues,s=o?.domains,u=[];for(let e of i){let i=e.clone(),{name:n}=i,o=t?.find(e=>e.name===n);if(i.visible=!t?.length||!!o,o){let{alias:e,editable:t}=o;e&&(i.alias=e),!1===t&&(i.editable=!1)}let c=a?.[n]??null;i.defaultValue=n===l?r:c;let d=s?.[n]??null;i.domain=n===l?null:d?"inherited"===d.type?i.domain:d.clone():null,u.push(i)}return u}get floorInfo(){return this.parent?.floorInfo}get isTable(){return!!this.parent?.isTable}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?this.parent.globalIdField:(H.A.getLogger(this).error(_e("globalIdField")),null)}get effectiveScaleRange(){let{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get objectIdField(){return this.parent||H.A.getLogger(this).error(_e("objectIdField")),this.parent?.objectIdField}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get defaultPopupTemplate(){return this.createPopupTemplate()}get relationships(){return this.parent?.relationships}set renderer(e){(0,L.yp)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");let{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?(Fe(this)?(0,$.o8)(ke(this)?.renderer):null)??function(e){return new z.A({symbol:xe(e)})}(e.geometryType):null}readRendererFromService(e,t,r){if("Table"===t.type)return null;let i,n=t.drawingInfo?.renderer,l=N(n,t,r),{subtypeCode:o}=this;if(null!=o&&function(e,t){return!(!t||"unique-value"!==e?.type||null==e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(l,t.subtypeField)){let e=l.uniqueValueInfos?.find(({value:e})=>(e="number"==typeof e?String(e):e)===String(o));e&&(i=new z.A({symbol:e.symbol}))}else"simple"===l?.type&&!l.visualVariables?.length&&(i=l);return i}readRenderer(e,t,r){let i=t?.layerDefinition?.drawingInfo?.renderer;if(i)return N(i,t,r)||void 0}get spatialReference(){return this.parent?.spatialReference??Q.A.WGS84}get subtypeField(){return this.parent?.subtypeField}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,$.o8)(Fe(this)?ke(this)?.templates:function(e){return Ae(e,"portal-item")}(this)?.templates||ke(this)?.templates)}set templates(e){this._override("templates",e)}readTemplatesFromService(e,t){return[Ee(this.subtypeCode,t)]}get title(){return this._isOverridden("title")?this._get("title"):(Fe(this)?ke(this):null)?.title}set title(e){this._override("title",e)}readTitleFromService(e,t){let r=Te(this.subtypeCode,t);return null==r?null:r.name}get url(){return this.parent?.url}get userHasUpdateItemPrivileges(){return!!this.parent?.userHasUpdateItemPrivileges}async addAttachment(e,t,r){let{parent:i}=this;if(!i)throw _e("addAttachment");if(e.getAttribute(i.subtypeField)!==this.subtypeCode)throw new o.A("subtype-sublayer:addAttachment","The feature provided does not belong to this SubtypeSublayer");return i.addAttachment(e,t,r)}async updateAttachment(e,t,r,i){let{parent:n}=this;if(!n)throw _e("updateAttachment");if(e.getAttribute(n.subtypeField)!==this.subtypeCode)throw new o.A("subtype-sublayer:updateAttachment","The feature provided does not belong to this SubtypeSublayer");return n.updateAttachment(e,t,r,i)}async deleteAttachments(e,t,r){let{parent:i}=this;if(!i)throw _e("deleteAttachments");if(e.getAttribute(i.subtypeField)!==this.subtypeCode)throw new o.A("subtype-sublayer:deleteAttachments","The feature provided does not belong to this SubtypeSublayer");return i.deleteAttachments(e,t,r)}async applyEdits(e,t){if(!this.parent)throw _e("applyEdits");return this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,ce.xY)(this)}createPopupTemplate(e){let t=this,{parent:r,fields:i,title:n}=this;if(r){let{displayField:e,editFieldsInfo:l,objectIdField:o}=r;t={displayField:e,editFieldsInfo:l,fields:i,objectIdField:o,title:n}}return(0,me.tn)(t,e)}createQuery(){if(!this.parent)throw _e("createQuery");let e=(0,E.VZ)(this.parent),t=`${this.parent.subtypeField}=${this.subtypeCode}`;return e.where=(0,p.mA)(t,this.parent.definitionExpression),e}getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains&&this.parent){let t=(0,E.pc)(this.parent,e);if(t)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){let r=await this.load();if(!r.parent)throw _e("queryAttachments");let i=e instanceof he.A?e.clone():new he.A(e);return i.where=je(i.where,r.parent.subtypeField,r.subtypeCode),r.parent.queryAttachments(i,t)}async queryFeatureCount(e,t){let r=await this.load();if(!r.parent)throw _e("queryFeatureCount");return r.parent.queryFeatureCount(Le(r.parent,r,e),t)}async queryFeatures(e,t){let r=await this.load();if(!r.parent)throw _e("queryFeatures");return r.parent.queryFeatures(Le(r.parent,r,e),t)}async queryObjectIds(e,t){let r=await this.load();if(!r.parent)throw _e("queryObjectIds");return r.parent.queryObjectIds(Le(r.parent,r,e),t)}async queryRelatedFeatures(e,t){let r=await this.load();if(!r.parent)throw _e("queryRelatedFeatures");return r.parent.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){let r=await this.load();if(!r.parent)throw _e("queryRelatedFeaturesCount");return r.parent.queryRelatedFeaturesCount(e,t)}_getLayerDomain(e){let t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Pe.prototype,"_titleCreator",null),(0,i.Cg)([(0,f.MZ)({type:be.A,json:Se({name:"attributeTableInfo"})})],Pe.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,f.MZ)({json:Se()})],Pe.prototype,"charts",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:Se({name:"enableEditing"})})],Pe.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],Pe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"elevationInfo",null),(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Pe.prototype,"featureTitleFields",null),(0,i.Cg)([(0,f.MZ)({type:[ue.A],json:{name:"layerDefinition.fieldConfigurations",write:{ignoreOrigin:!0}}})],Pe.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,f.MZ)({json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],Pe.prototype,"fieldOverrides",void 0),(0,i.Cg)([(0,Me.K)("fieldOverrides")],Pe.prototype,"writeFieldOverrides",null),(0,i.Cg)([(0,f.MZ)({...we.fields,readOnly:!0,json:{read:!1}})],Pe.prototype,"fields",null),(0,i.Cg)([(0,f.MZ)(we.fieldsIndex)],Pe.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"floorInfo",null),(0,i.Cg)([(0,f.MZ)({type:Y.A,json:Se({name:"formInfo"})})],Pe.prototype,"formTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Pe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)({type:String,clonable:!1,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],Pe.prototype,"id",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"isTable",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"geometryType",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"globalIdField",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)(Ie((0,$.o8)(T.kF)))],Pe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[de.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:pe.w},write:{ignoreOrigin:!0,layerContainerTypes:X.K}}})],Pe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,layerContainerTypes:X.K}}})],Pe.prototype,"layerType",void 0),(0,i.Cg)([(0,f.MZ)(Ie((0,$.o8)(T.fV)))],Pe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Pe.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)((()=>{let e=(0,$.o8)(T.hn);return e.json.origins.service.read=!1,Ie(e,{spatialOnly:!0})})())],Pe.prototype,"minScale",void 0),(0,i.Cg)([(0,f.MZ)((()=>{let e=(0,$.o8)(T.hG);return e.json.origins.service.read=!1,Ie(e,{spatialOnly:!0})})())],Pe.prototype,"maxScale",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"objectIdField",null),(0,i.Cg)([(0,f.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:Se({spatialOnly:!0})})],Pe.prototype,"opacity",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],Pe.prototype,"parent",void 0),(0,i.Cg)([(0,f.MZ)(Ie((0,$.o8)(T.M6)))],Pe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:q.A,json:Se({name:"popupInfo"})})],Pe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,Me.K)("popupTemplate")],Pe.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"relationships",null),(0,i.Cg)([(0,f.MZ)({types:B,json:Se({target:"layerDefinition.drawingInfo.renderer",spatialOnly:!0})})],Pe.prototype,"renderer",null),(0,i.Cg)([(0,Ce.w)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],Pe.prototype,"readRendererFromService",null),(0,i.Cg)([(0,Ce.w)("renderer",["layerDefinition.drawingInfo.renderer"])],Pe.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"spatialReference",null),(0,i.Cg)([(0,f.MZ)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],Pe.prototype,"subtypeCode",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"subtypeField",null),(0,i.Cg)([(0,f.MZ)({type:[se.A],json:Se({name:"layerDefinition.templates"})})],Pe.prototype,"templates",null),(0,i.Cg)([(0,Ce.w)("service","templates",["geometryType","subtypeField","subtypes","type"])],Pe.prototype,"readTemplatesFromService",null),(0,i.Cg)([(0,f.MZ)({type:String,json:Se()})],Pe.prototype,"title",null),(0,i.Cg)([(0,Ce.w)("service","title",["subtypes"])],Pe.prototype,"readTitleFromService",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"url",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Pe.prototype,"userHasUpdateItemPrivileges",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:Se({name:"visibility",spatialOnly:!0})})],Pe.prototype,"visible",void 0),Pe=(0,i.Cg)([(0,f.$K)("esri.layers.support.SubtypeSublayer")],Pe);const Le=(e,t,r)=>{if(!r)return t.createQuery();let i=ye.A.from(r);return i.where=je(i.where,e.subtypeField,t.subtypeCode),i},je=(e,t,r)=>{let i=RegExp(`${t}\\s*=\\s*\\d+`),n=`${t}=${r}`,l=e??"";return i.test(l)?l.replace(i,n):(0,p.mA)(n,l)},_e=e=>new o.A("subtype-sublayer:parent-missing",`This sublayer must have a parent SubtypeGroupLayer in order to use ${e}`);var Ze=r(91908),Oe=r(54218),ze=r(59923);const Re="SubtypeGroupLayer";function Ge(e,t){let r=[];for(let i of e){let e=new Pe;e.read(i,t),r.push(e)}return r}const Ve=(0,P.p)();let Be=class extends((0,v.z)((0,w.j)((0,M.FJ)((0,C.w6)((0,g.dM)((0,k.e)((0,F.j)((0,x.J)((0,m.b)((0,I.q)((0,S.A)((0,u.M)((0,b.d)((0,y.p)((0,n.OU)(h.A)))))))))))))))){constructor(...e){super(...e),this._sublayerLookup=new Map,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.sublayers=new(l.A.ofType(Pe)),this.useUniqueColorsForSublayers=!0,this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Feature Layer","Table"]),this.title="Layer",this.type="subtype-group",this._debouncedSaveOperations=(0,c.sg)(async(e,t,i)=>{let{save:n,saveAs:l}=await r.e(5740).then(()=>r(33359));switch(e){case 0:return n(this,t);case 1:return l(this,i,t)}}),this.addHandles((0,d.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),d.OH))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(c.QP).then(async()=>{if(!this.url)throw new o.A("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==this.layerId)throw new o.A("subtype-grouplayer:missing-layerid","layerId is required for a SubtypeGroupLayer created with url");this._initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,E.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return(0,E.C$)(this)}get operationalLayerType(){return this.isTable?"SubtypeGroupTable":"SubtypeGroupLayer"}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,A.yG)(this.url,t):t}async addAttachment(e,t,r){let i=await(0,E.Xl)(this,e,t,Re,r);return this.lastEditsEventDate=new Date,i}async updateAttachment(e,t,r,i){let n=await(0,E.bt)(this,e,t,r,Re,i);return this.lastEditsEventDate=new Date,n}async applyEdits(e,t){return(0,E.ct)(this,e,t)}async createGraphicsSource(e){let{default:t}=await(0,c.qr)(Promise.all([r.e(893),r.e(7013),r.e(8548)]).then(()=>r(65515)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){let e=(0,E.VZ)(this),t=this.sublayers.map(e=>e.subtypeCode);return e.where=(0,p.mA)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}async deleteAttachments(e,t,r){let i=await(0,E.mm)(this,e,t,Re,r);return this.lastEditsEventDate=new Date,i}async fetchRecomputedExtents(e){return(0,E.WP)(this,e,Re)}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.findSublayerForSubtypeCode(r)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains){let t=(0,E.pc)(this,e);if(t)return t}let r=(0,E.Nv)(this,t?.feature);if(r){let t=r.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}return this._getLayerDomain(e)}loadAll(){return(0,a.g)(this,e=>{e(this.sublayers)})}async queryAttachments(e,t){return(0,E.lV)(this,e,t,Re)}async queryFeatures(e,t){let r=await this.load(),i=ye.A.from(e)??r.createQuery(),n=i.outFields??[];n.includes(this.subtypeField)||(n.push(this.subtypeField),i.outFields=n);let l=await r.source.queryFeatures(i,t);if(l?.features)for(let e of l.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin,e.layer=e.sourceLayer=this.findSublayerForFeature(e);return l}async queryObjectIds(e,t){return(await(0,E.sg)(this,e,t,Re)).filter(Oe.Et)}async queryFeatureCount(e,t){return(0,E.Ye)(this,e,t,Re)}async queryExtent(e,t){return(0,E.B5)(this,e,t,Re)}async queryRelatedFeatures(e,t){return(0,E.hM)(this,e,t,Re)}async queryRelatedFeaturesCount(e,t){return(0,E.S2)(this,e,t,Re)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){let{origin:r,layerContainerType:i,messages:n}=t;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==i)return(0,ze.U4)(t,this,"a table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&"web-map"===r&&"tables"===i)return(0,ze.U4)(t,this,"a non-table source cannot be written to tables in web maps"),null;return this.sublayers?.length?super.write(e,t):(n?.push(new o.A("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,Ze.D)(this,e)}async getFeatureTitle(e,t){let r=this.findSublayerForFeature(e);return r?await r.getFeatureTitle(e,t):this._getFeatureTitleForUnknownSublayer(e)}async getFeatureTitles(e,t){let r=new Map,i=new Map,n=[],l=[i];if(e.forEach(e=>{let l=this.findSublayerForFeature(e);if(l)(0,s.tE)(r,l,()=>[]).push(e);else{let r=e.getObjectId()??e.attributes[this.objectIdField];t?.fetchMissingFields?n.push(e):i.set(r,this._getFeatureTitleForUnknownSublayer(e))}}),n.length>0){let e=new Set(this.featureTitleFields);e.add(this.objectIdField),e.add(this.subtypeField);let t=await this.queryFeatures({outFields:[...e],returnGeometry:!1,objectIds:n.map(e=>e.getObjectId()??e.attributes[this.objectIdField])}),l=new Set;for(let e of t.features??[]){let t=e.getObjectId()??e.attributes[this.objectIdField];l.add(t);let n=this.findSublayerForFeature(e);n?(0,s.tE)(r,n,()=>[]).push(e):i.set(t,this._getFeatureTitleForUnknownSublayer(e))}for(let e of n){let t=e.getObjectId()??e.attributes[this.objectIdField];l.has(t)||i.set(t,this._getFeatureTitleForUnknownSublayer(e))}}(await Promise.all(Array.from(r).map(([e,r])=>e.getFeatureTitles(r,t)))).forEach(e=>l.push(e));let o=new Map(l.flatMap(e=>[...e]));return i.forEach((e,t)=>{o.set(t,e)}),o}get featureTitleFields(){let e=new Set;for(let t of this.sublayers){let r=t.featureTitleFields;for(let t of r)e.add(t)}return[...e]}_getLayerDomain(e){let t=this.fieldsIndex.get(e);return t?t.domain:null}_initLayerProperties(e){this._set("source",e);let{sourceJSON:t}=e;if(t&&(this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})),!this.subtypes?.length)throw new o.A("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");this._verifyFields(),(0,L.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await t.reload({signal:e}),this._initLayerProperties(t)}async hasDataChanged(){return(0,E.jp)(this)}_verifyFields(){let e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),!this.isTable&&-1===e.search(/\/FeatureServer\//i)&&!this.fields?.some(e=>"geometry"===e.type)&&console.log("SubtypeGroupLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}_getFeatureTitleForUnknownSublayer(e){let{displayField:t,fieldsIndex:r,objectIdField:i}=this;if(t&&r.has(t))return e.attributes[r.get(t).name]??"";let n=e.getObjectId();return null==n?i&&r.has(i)?e.attributes[r.get(i).name]??"":"":n.toString()}};(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Be.prototype,"createQueryVersion",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Be.prototype,"editingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Be.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({...Ve.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Be.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(Ve.fieldsIndex)],Be.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)(T.id)],Be.prototype,"id",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],Be.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:["SubtypeGroupLayer","SubtypeGroupTable"],json:{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{"web-document":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}},"portal-item":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],Be.prototype,"operationalLayerType",null),(0,i.Cg)([(0,f.MZ)(Ve.outFields)],Be.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],Be.prototype,"source",null),(0,i.Cg)([(0,f.MZ)({type:l.A.ofType(Pe),json:{origins:{service:{read:{source:"subtypes",reader(e,t,r){let i=null;if(this.useUniqueColorsForSublayers){let n=function(e,t){let r=e.drawingInfo?.renderer,i=r?N(r,e,t):null;return"simple"===i?.type?(0,V.Sx)(i.symbol,null)?i.symbol.clone():null:void 0}(t,r);i=n?function(e,t){return(0,j.Iy)(D,e,{offset:!0,shuffle:!0}).reverse().map(e=>{let r=t.clone();return"cim"===r.type?(0,G.Fe)(r,e):(0,V.dt)(r,e),new z.A({symbol:r})})}(e.length,n):null}let n=e.map(({code:e},n)=>{let l=new Pe({subtypeCode:e});l.read(t,r);let o=i?.[n];return o&&l.read({drawingInfo:{renderer:o.toJSON()}},r),l});return new(l.A.ofType(Pe))(n)}}}},read:{source:["layers","tables"],reader(e,t,r){let i;return"SubtypeGroupLayer"===t.layerType&&t.layers?.length?i=Ge(t.layers,r):"SubtypeGroupTable"===t.layerType&&t.tables?.length&&(i=Ge(t.tables,r)),new(l.A.ofType(Pe))(i)}},write:{ignoreOrigin:!0,writer(e,t,r,i){let n=[];for(let t of e){let e=t.write({},i);n.push(e)}this.isTable?t.tables=n:t.layers=n}}}})],Be.prototype,"sublayers",void 0),(0,i.Cg)([(0,f.MZ)()],Be.prototype,"useUniqueColorsForSublayers",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"portal-item":{write:{enabled:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Be.prototype,"title",void 0),(0,i.Cg)([(0,Ce.w)("service","title",["name"])],Be.prototype,"readTitleFromService",null),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Be.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Be.prototype,"featureTitleFields",null),Be=(0,i.Cg)([(0,f.$K)("esri.layers.SubtypeGroupLayer")],Be);const Ne=Be},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},52136(e,t,r){var i=r(32198),n=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>f,Zk:()=>d});var i=r(32198),n=r(65529),l=r(4718),o=r(91429),a=r(20816);const s=new n.bk;function u(e){return s.on("apply-edits",new WeakRef(e))}function c(e){return s.on("update-moment",new WeakRef(e))}function d(e,t,r=null,i=!1){let n=Promise.withResolvers();return i=null==t||i,s.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:n.promise}),n}const p=Symbol();function f(e){return"object"==typeof e&&!!e&&p in e}function h(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function y(e,t,r){let i=new URL(e).host,n=a.Z3.get(i),l=e=>!e||e===n;return l(t)&&l(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,n=class extends r{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:n,result:o}=e,a=t===this.url,s=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),c=h(this),d=h(this)&&y(t,i,this.gdbVersion);if(!a||c&&!d||!s&&!u&&!n)return;let p=o.then(e=>{if(this.lastEditsEventDate=new Date,s&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,l.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:n}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:n?n.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return this.emit("edits",o),o}let n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,n.historicMoment)&&this.emit("edits",n),n}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));p.catch(()=>{}),this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,n=t===this.url,l=h(this),o=h(this)&&y(t,r,this.gdbVersion),a=h(this)&&!y(t,this.gdbVersion,null);n&&l&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(c(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],n.prototype,"lastEditsEventDate",void 0),n=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],n),n}])},28032(e,t,r){r.d(t,{A:()=>s});var i=r(32198),n=r(69540),l=r(25482),o=r(91429),a=r(56400);let s=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],s.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],s)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({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,n.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},30279(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(25482),o=r(10107),a=r(64108),s=r(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({types:s.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,i.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},46499(e,t,r){r.d(t,{A:()=>S});var i,n,l=r(32198),o=(r(44208),r(66552)),a=r(25482),s=r(4718),u=r(90629),c=r(91429),d=r(90360),p=r(73913),f=r(32730),h=r(77548),y=r(59868),m=r(73838),g=r(33910),b=r(36005),M=r(43937);const C=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function w(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function v(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function I(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends a.o{static{i=f.vK}static{n=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),n=i[3],l=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=y.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&v(i))e=new p.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,s.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,s.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:w}}}}})],S.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:w}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&I(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,l.Cg)([(0,b.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,l.Cg)([(0,M.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,c.MZ)({type:p.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return v(e)||I(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,M.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,c.MZ)({type:C.apiValues,json:{type:C.jsonValues,read:C.read,write:C.write}})],S.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,l.Cg)([(0,c.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,l.Cg)([(0,M.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,l.Cg)([(0,c.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,l.Cg)([(0,M.K)("minScale")],S.prototype,"writeMinScale",null),(0,l.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],S.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],S.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,c.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,d.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,d.C)({types:g.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],S.prototype,"symbol",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=n=(0,l.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],S)},73913(e,t,r){r.d(t,{A:()=>c});var i,n=r(32198),l=r(25482),o=r(91429),a=r(32730),s=r(36005),u=r(43937);let c=class extends l.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,n.Cg)([(0,s.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],c)},37352(e,t,r){r.d(t,{A:()=>s});var i,n=r(32198),l=r(7762),o=r(25482),a=r(91429);let s=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,r){r.d(t,{A:()=>c});var i=r(32198),n=r(69540),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.Relationship")],c)},17311(e,t,r){r.d(t,{A:()=>f});var i=r(32198),n=r(69622),l=r(4576),o=r(60999),a=r(7762),s=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let f=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(3281),r.e(9301)]).then(()=>r(99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){let e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(let t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(let t of this.expressionsUsedInTitle)try{let r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"==typeof e?(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[]):[]}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){let e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(let t of this.calculatedExpressions?.toArray()??[])try{let r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(let t of r){let r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}let t=this._extractFieldNames(this.workingTitle);for(let r of t){let t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||=this.fieldsIndex.get(this.objectIdField)?.name??"",e?`{${e}}`:""}get workingTitle(){let e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){let i=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){let i=new Map,n=r?.timeZone??"system";try{let[{substituteFieldsInLinksAndAttributes:l}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));let{fieldInfoMap:o,workingTitle:a}=this,u=a&&o;t.forEach(t=>{let c=t.getObjectId()??t.attributes[e.objectIdField],d=u?l({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,n).global,layer:e,text:a}):"";r?.removeHTML&&(d=s.Nd.sanitize(d).replaceAll(p," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){let r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(l.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){let i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;let n=await e.queryFeatures(i);if(n?.features.length===t.length)return n.features}return t}_createFieldInfoMap(e){let t=new Map;if(!e)return t;for(let r of e){if(!r.fieldName)continue;let e=this.fieldsIndex.get(r.fieldName)?.name??r.fieldName;r.fieldName=e,t.set(e.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){let i=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){let r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(let e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}let l={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:l,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"requiredFields",null),f=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],f)},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>l});var i=r(34727),n=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let o=Array.from(a(e,t,r)),s=function(e,t,r){if(0===e.length)return!0;let n=c(e.at(0)?.minScale),l=d(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if((0,i.ZH)(c(n.minScale),d(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return s&&"1=1"!==s?s:""}function*a(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)s(i.minScale,i.maxScale,t,r)&&(yield i)}}function s(e,t,r,n){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||1/0}function d(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>s,sS:()=>c,xY:()=>u});var i=r(4718),n=r(30279),l=r(39663),o=r(30524),a=r(41227);function s(e){let{popupTemplate:t,fieldsIndex:r}=e,i=t?.fieldInfos;if(!i?.length||!r)return;let o=[];for(let e of i){let{fieldName:t,label:i}=e,a=r.get(t);if(!a)continue;let s=i&&i!==a.alias?i:null,u=(0,l.iu)(e,a);(s||u)&&o.push(new n.A({name:a.name,alias:s,fieldFormat:u}))}return o.length?o:null}function u(e){let{fields:t}=e;if(!t?.length)return;let r=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&r.push(new n.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function c(e,t){let{popupTemplate:r,fieldsIndex:n}=e;if(!r||!n)return;let o=function(e,t,r){t??=[],r=(0,i.o8)(r)??[];let n=!1,o=new Map;for(let r of t){let t=e.fieldsIndex.get(r.name);t&&o.set(t.name,r)}for(let t of r){let r=e.fieldsIndex.get(t.fieldName);if(!r)continue;let i=o.get(r.name);t.label=i?.alias||r.alias,t.format=(0,l.qH)(r)&&i?.fieldFormat?(0,l.PK)(i.fieldFormat,r):null,n=!0,o.delete(r.name)}for(let t of o.values()){let i=d(e,t);i&&(r.push(i),n=!0)}return n?r:null}(e,t,r.fieldInfos);if(!o)return;let a=r.clone();return a.fieldInfos=o,a}function d(e,t){let{name:r,alias:i,fieldFormat:n}=t,s=e.fieldsIndex.get(r);if(!s||!i&&!n)return;let u=i||s.alias,c=(0,l.qH)(s)&&n?(0,l.PK)(n,s):null;return new a.A({fieldName:s.name,label:u,format:c,visible:!1,isEditable:(0,o.R$)(s,e)})}},32730(e,t,r){r.d(t,{BI:()=>d,D3:()=>u,XJ:()=>c,lc:()=>s,mX:()=>f,rU:()=>p,tH:()=>b,zA:()=>C});var i=r(799);const n=RegExp("__begin__","ig"),l=RegExp("__end__","ig"),o=RegExp("^__begin__","i"),a=RegExp("__end__$","i");function s(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function c(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=s(e.labelExpression),t.type="conventional"),t}function d(e){let t=c(e);if(!t)return null;switch(t.type){case"conventional":return f(t.expression);case"arcade":return t.expression}return null}function p(e){let t=c(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(h))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function f(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=o.test(t)?t.replace(o,""):'"'+t,t=a.test(t)?t.replace(a,""):t+'"',t=t.replaceAll(n,'" + ').replaceAll(l,' + "')):t='""',t}const h=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,g=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=y.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=g.exec(e),t?t[2]:null)}const M=Symbol("LabelClassInstance");function C(e){return"object"==typeof e&&!!e&&M in e}r.d(t,["vK",0,M])},39383(e,t,r){r.d(t,{w:()=>s,z:()=>d});var i=r(49186),n=r(53966),l=r(46499);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function s(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let n of e){let e=n.labelPlacement,l=c[t];if(!n.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!l)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(n);else{let i=l[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let a=n.clone();a.labelPlacement=i,r.push(a)}}return r}},86162(e,t,r){r.d(t,{A:()=>F});var i,n=r(32198),l=r(66552),o=r(4718),a=r(53966),s=r(91429),u=r(78888),c=r(30524),d=r(92438),p=r(63988),f=r(88542),h=r(49849),y=r(20061),m=r(80911),g=r(43668),b=r(33910),M=r(36005),C=r(43937),w=r(93223);const v="percent-of-total",I="field",S=new l.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:v,esriNormalizeByField:I}),x=(0,u.dp)(f.A);let F=i=class extends((0,p.h)(d.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,r){if(!Array.isArray(e))return;let i=t.minValue;return e.map(e=>{let t=new f.A;return t.read(e,r),t.minValue??=i,t.maxValue??=t.minValue,i=t.maxValue,t})}writeClassBreakInfos(e,t,r,i){let n=e.map(e=>e.write({},i));this._areClassBreaksConsecutive()&&n.forEach(e=>delete e.classMinValue),t[r]=n}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,u.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&I||r&&v||null,t&&r&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===I||e===v)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,r){let i=null;i="number"==typeof e?new f.A({minValue:e,maxValue:t,symbol:(0,b.dp)(r)}):x((0,o.o8)(e)),this.classBreakInfos.push(i),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){let r=this.classBreakInfos.length;for(let i=0;i<r;i++){let r=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(r[0]===e&&r[1]===t){this.classBreakInfos.splice(i,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let r=t;this.valueExpression&&null==t?.arcade&&(r={...r,arcade:await(0,g.l)()});let i=this.getBreakIndex(e,r);return-1===i?null:this.classBreakInfos[i]}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");let r=this.getBreakIndex(e,t);return-1===r?this.defaultSymbol:(0,m.c)(this.classBreakInfos[r],t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let r=t;if(this.valueExpression&&null==t?.arcade){let e=await(0,g.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),r={...r,arcade:e}}let i=this.getBreakIndex(e,r);return-1===i?this.defaultSymbol:(0,m.c)(this.classBreakInfos[i],r?.scale)??this.defaultSymbol}get symbols(){let e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[])}),this.defaultSymbol&&e.push(this.defaultSymbol),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new i({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.o8)(this.visualVariables),legendOptions:(0,o.o8)(this.legendOptions),authoringInfo:(0,o.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){let r=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(r)}async collectSymbolFields(e,t){let r=[...this.symbols.map(r=>r.collectRequiredFields(e,t)),(0,c.Dx)(e,t,null,this.valueExpression)];(0,c.rq)(e,t,this.field),(0,c.rq)(e,t,this.normalizationField),await Promise.all(r)}getBreakIndexfromInfos(e){let t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let r=0;r<this.classBreakInfos.length;r++){let i=[this.classBreakInfos[r].minValue,this.classBreakInfos[r].maxValue];if(i[0]<=e&&(t?e<=i[1]:e<i[1]))return r}return-1}_getBreakIndexForExpression(e,t){let{viewingMode:r,scale:i,spatialReference:n,arcade:l,timeZone:o}=t??{},{valueExpression:a}=this,s=this._compiledValueExpression.valueExpression===a?this._compiledValueExpression.compiledFunction:null,u=l.arcadeUtils;if(!s){let e=u.createSyntaxTree(a);s=u.createFunction(e),this._compiledValueExpression.compiledFunction=s}this._compiledValueExpression.valueExpression=a;let c=u.executeFunction(s,u.createExecContext(e,u.getViewInfo({viewingMode:r,scale:i,spatialReference:n}),o));return this.getBreakIndexfromInfos(c)}_getBreakIndexForField(e){let t=this.field,r=e.attributes,i=this.normalizationType,n=parseFloat(r[t]);if(i){let e=this.normalizationTotal,t=parseFloat(this.normalizationField?r[this.normalizationField]:void 0);if("log"===i)n=Math.log(n)*Math.LOG10E;else if(i!==v||null==e||isNaN(e)){if(i===I&&!isNaN(t)){if(isNaN(n)||isNaN(t))return-1;n/=t}}else n=n/e*100}return this.getBreakIndexfromInfos(n)}_areClassBreaksConsecutive(){let e=this.classBreakInfos,t=e.length;for(let r=1;r<t;r++)if(e[r-1].maxValue!==e[r].minValue)return!1;return!0}};(0,n.Cg)([(0,s.MZ)(h.As)],F.prototype,"backgroundFillSymbol",void 0),(0,n.Cg)([(0,s.MZ)({type:[f.A],json:{write:{isRequired:!0}}})],F.prototype,"classBreakInfos",void 0),(0,n.Cg)([(0,M.w)("classBreakInfos")],F.prototype,"readClassBreakInfos",null),(0,n.Cg)([(0,C.K)("classBreakInfos")],F.prototype,"writeClassBreakInfos",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],F.prototype,"defaultLabel",void 0),(0,n.Cg)([(0,s.MZ)(h.z4)],F.prototype,"defaultSymbol",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],F.prototype,"field",void 0),(0,n.Cg)([(0,s.wg)("field")],F.prototype,"castField",null),(0,n.Cg)([(0,s.MZ)({type:Boolean})],F.prototype,"isMaxInclusive",void 0),(0,n.Cg)([(0,s.MZ)({type:y.A,json:{write:!0}})],F.prototype,"legendOptions",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],F.prototype,"minValue",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],F.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],F.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,s.MZ)({type:S.apiValues,value:null,json:{type:S.jsonValues,read:S.read,write:S.write}})],F.prototype,"normalizationType",null),(0,n.Cg)([(0,w.e)({classBreaks:"class-breaks"})],F.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],F.prototype,"valueExpression",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],F.prototype,"valueExpressionTitle",void 0),F=i=(0,n.Cg)([(0,s.$K)("esri.renderers.ClassBreaksRenderer")],F)},88542(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),l=r(25482),o=r(91429),a=r(49849),s=r(40863);let u=i=class extends l.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof s.A?e:(delete e.type,new s.A(e)))):this._set("alternateSymbols",null)}clone(){return new i({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,n.Cg)([(0,o.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,n.Cg)([(0,o.MZ)({type:[s.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),u=i=(0,n.Cg)([(0,o.$K)("esri.renderers.support.ClassBreakInfo")],u)},41366(e,t,r){var i=r(32198),n=r(66552),l=r(53966),o=r(91429),a=r(93223);const s=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===c||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,s])},28076(e,t,r){var i=r(13337);const n={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,n])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>v,DW:()=>b,FM:()=>a,Kn:()=>g,Kq:()=>R,MM:()=>d,Nl:()=>I,O2:()=>S,YC:()=>A,YF:()=>x,_1:()=>C,_h:()=>o,bs:()=>k,e6:()=>u,gQ:()=>l,jn:()=>f,lW:()=>c,ll:()=>L,mA:()=>p,oI:()=>G,pM:()=>M,pV:()=>m,pk:()=>E,rB:()=>P,xo:()=>w,yX:()=>z,zb:()=>F,zr:()=>h});var i=r(28076);function n(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function l(e,t){let r=[],i=0,l=-1;do{if(l=e.indexOf("[",i),l>=i){if(l>i){let t=e.slice(i,l);r.push([t,null,n(t)])}if(i=l+1,l=e.indexOf("]",i),l>=i){if(l>i){let n=t[e.slice(i,l)];n&&r.push([null,n,!1])}i=l+1}}}while(-1!==l);if(i<e.length){let t=e.slice(i);r.push([t,null,n(t)])}return r}function o(e,t,r){let i="",n=null;for(let r of t){let[t,l,o]=r;if(null!=t&&""!==t)o?n=t:(null!=n&&(i+=n,n=null),i+=t);else{let t=e.readAttribute(l);null!=t&&""!==t&&(null!==n&&(i+=n,n=null),i+=t)}}return s(i,r)}function a(e,t,r,i){let n="",l=null;for(let i of t){let[t,o,a]=i;if(null!=t&&""!==t)a?l=t:(null!=l&&(n+=l,l=null),n+=t);else{let t=o;null!=r&&(t=T(o,r));let i=e.attributes[t];null!=i&&""!==i&&(null!=l&&(n+=l,l=null),n+=i)}}return s(n,i)}function s(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function u(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function c(e){return e.data?.symbol??null}function d(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function p(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function f(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const y=(e,t=0)=>null==e||isNaN(e)?t:e;function m(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function g(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function b(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function M(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=M(t);if(null!=e)return e}break;case"CIMTextSymbol":return M(e.symbol);case"CIMSolidFill":return e.color}return null}function C(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{let t=e.symbolLayers;if(t)for(let e of t){let t=C(e);if(null!=t)return t}break}case"CIMTextSymbol":return C(e.symbol);case"CIMSolidStroke":return e.color}}function w(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=w(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return w(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function v(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function I(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function S(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function x(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function F(e,t,r,i,n,l,o=!0){let{infos:a}=l,s=1,u=0,c=0,d=0,p=1;for(let{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:i,size:n,frameHeight:l,rotateClockWise:f,scaleSymbolsProportionally:h}of a)p=e?1:s,c=Z(t,r,u,p,c),d=_(t,r,u,p,d),l&&(h||o)&&(s*=n/l),u=O(i,f,u);let f=Z(i,n,u,p,c),h=_(i,n,u,p,d);return{size:e*s,rotation:O(t,r,u),offsetX:f,offsetY:h}}function k(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=e.symbolLayers;if(!t)return"Normal";for(let e of t)if("CIMVectorMarker"===e.type)return k(e)}break;case"CIMVectorMarker":{let t=e.markerGraphics;if(!t)return"Normal";for(let e of t)if(e.symbol)return k(e.symbol)}}return"Normal"}function A(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{let e=r.size??i.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{let e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){let e=r.size??i.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{let e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function T(e,t){if(null!==t){let r=t.get(e);return r?r.name:e}return e}function E(e){return e.map(e=>({...e,propertyName:x(e.propertyName)}))}function P(e){let t={};for(let r in e){let i=e[r];t[x(r)]=i}return t}function L(e){if(!e)return 0;let t=0;for(let r of e)t+=j(r);return t}function j(e){if(!e)return 0;if(R(e))return e.inflateSize??256;if(function(e){return"CIMSimpleLineCallout"===e.type||"CIMBackgroundCallout"===e.type||"CIMBalloonCallout"===e.type||"CIMPointSymbolCallout"===e.type}(e))return Math.abs(e.inflateSize);switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectCircularSector":return Math.abs(e.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(y(e.offsetX)),Math.abs(y(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function _(e,t,r,i,n){let l=r*Math.PI/180;if(l){let r=Math.cos(l);return(Math.sin(l)*e+r*t)*i+n}return t*i+n}function Z(e,t,r,i,n){let l=r*Math.PI/180;return l?(Math.cos(l)*e-Math.sin(l)*t)*i+n:e*i+n}function O(e,t,r){return t?r-e:r+e}function z(e,t){return Math.max(Math.min((e??t)/100,1),0)}function R(e){return e.type.startsWith("Private")}function G(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,y,"UE",0,e=>e.includes("data:image/svg+xml")])},62046(e,t,r){r.d(t,{Fe:()=>h,KU:()=>b,Nk:()=>u,X5:()=>l});var i=r(68197),n=r(93397);function l(e,t,r){if(!e)return;let i=(0,n.lW)(e),l=function(e){let t=(0,n.lW)(e);if("CIMTextSymbol"===t?.type)return t.height??0;let r=0;if(t?.symbolLayers)for(let e of t.symbolLayers)(0,n.MM)(e)&&null!=e.size&&e.size>r?r=e.size:(0,n.mA)(e)&&null!=e.width&&e.width>r?r=e.width:(0,n.jn)(e);return r}(e);0===l?function(e,t){if(e)if("CIMTextSymbol"===e.type)e.height=t;else if(e.symbolLayers)for(let r of e.symbolLayers)switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":r.size=t;break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":r.width=t}}(i,t):o(i,t/l,!1,r)}function o(e,t,r,i){if(e)if("CIMTextSymbol"===e.type)null!=e.height&&(e.height*=t);else{if(r&&e.effects)for(let r of e.effects)s(r,t);if(e.symbolLayers)for(let r of e.symbolLayers){switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":a(r,t,i);break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":!i?.preserveOutlineWidth&&r.width&&(r.width*=t);break;case"CIMPictureFill":r.height&&(r.height*=t),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t);break;case"CIMHatchFill":o(r.lineSymbol,t,!0,{...i,preserveOutlineWidth:!1}),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t),r.separation&&(r.separation*=t)}if(r.effects)for(let e of r.effects)s(e,t)}}}function a(e,t,r){if(e&&(e.markerPlacement&&function(e,t){switch((0,n.zr)(e)&&e.offset&&(e.offset*=t),e.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementAlongLineVariableSize":e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementOnLine":e.startPointOffset&&(e.startPointOffset*=t);break;case"CIMMarkerPlacementAtExtremities":e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case"CIMMarkerPlacementPolygonCenter":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMMarkerPlacementInsidePolygon":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&"Absolute"===e.anchorPointUnits&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=null==e.size?0:e.size*t,"CIMVectorMarker"===e.type&&e.markerGraphics))for(let i of e.markerGraphics)e.scaleSymbolsProportionally||o(i.symbol,t,!0,r)}function s(e,t){if(!(0,n.Kq)(e))switch(e.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":e.width&&(e.width*=t);break;case"CIMGeometricEffectBuffer":e.size&&(e.size*=t);break;case"CIMGeometricEffectCut":e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case"CIMGeometricEffectDashes":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length&&(e.dashTemplate=e.dashTemplate.map(e=>e*t));break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":e.length&&(e.length*=t);break;case"CIMGeometricEffectMove":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":e.offset&&(e.offset*=t);break;case"CIMGeometricEffectRegularPolygon":e.radius&&(e.radius*=t);break;case"CIMGeometricEffectTaperedPolygon":e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case"CIMGeometricEffectWave":e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function u(e){let t=[];return c((0,n.lW)(e),t),t.length?new i.A((0,n.e6)(t[0])):null}function c(e,t){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;let i="CIMPolygonSymbol"===e.type;if(r?.symbolLayers)for(let e of r.symbolLayers)if(!(e.colorLocked||i&&((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&d(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{c(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":d(t,e.color);break;case"CIMGradientFill":p(t,e);break;case"CIMHatchFill":c(e.lineSymbol,t)}}function d(e,t){for(let r of e)if(r.join(".")===t.join("."))return;e.push(t)}function p(e,t){switch(t.colorRamp?.type){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&f(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":f(e,t.colorRamp)}}function f(e,t){t&&(t.fromColor&&d(e,t.fromColor),t.toColor&&d(e,t.toColor))}function h(e,t,r){t instanceof i.A||(t=new i.A(t));let l=(0,n.lW)(e);l&&y(l,t,r)}function y(e,t,r){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;let l="CIMPolygonSymbol"===i?.type;if(i?.symbolLayers)for(let e of i.symbolLayers){if(e.colorLocked)continue;if(l)if(r){let{layersToColor:t}=r;if(((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))&&"fill"===t||(0,n.jn)(e)&&"outline"===t)continue}else if((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))continue;let i=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=i;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{y(e.symbol,t,r)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=i;break;case"CIMGradientFill":m(e,t);break;case"CIMHatchFill":y(e.lineSymbol,t,r)}}}function m(e,t){switch(e.colorRamp?.type){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&g(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":g(e.colorRamp,t)}}function g(e,t){if(e&&(e.fromColor&&=t.toArray(),e.toColor)){let r=t.clone();r.a=0,e.toColor=r.toArray()}}function b(e,t,r=!1){let i=(0,n.lW)(e);if(r&&(t=360-t),"CIMTextSymbol"===i?.type)i.angle=t;else if("CIMPointSymbol"===i?.type&&i.symbolLayers){let e=t-(i.angle||0);for(let t of i.symbolLayers)if((0,n.MM)(t)){let r=t.rotation||0;t.rotateClockwise?r-=e:r+=e,t.rotation=r}i.angle=t}}},93470(e,t,r){const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,n,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])},37531(e,t,r){r.d(t,{dt:()=>p,GG:()=>g,UQ:()=>m,Sx:()=>c});var i=r(68197),n=r(60999),l=(r(90629),r(51850)),o=(r(76369),r(62046)),a=(r(2741),r(56507),r(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new i.A([128,128,128]);var s=r(28975),u=r(33910);function c(e,t){if(!e)return null;let r=null;return(0,u.wk)(e)?r=function(e){let t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(r="water"===e.type?e.color:e.material?e.material.color:null)}),r?new i.A(r):null}(e):(0,u.$y)(e)&&(r="cim"===e.type?(0,o.Nk)(e):e.color?new i.A(e.color):null),r?d(r,t):null}function d(e,t){if(null==t||null==e)return e;let r=e.toRgba();return r[3]*=t,new i.A(r)}function p(e,t,r){e&&(t||null!=r)&&(t&&=new i.A(t),(0,u.wk)(e)?function(e,t,r){let n=e.symbolLayers;if(!n)return;let l=(e,n=!1)=>{let l=t??e??null;return null!=r?.override&&(!l&&n&&(l=new i.A([255,255,255])),l&&(l.a=r.override)),d(l,r?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,r?.add));let t=null==e.material?null:e.material.color,i=l(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new s.A({color:i}):e.material.color=i,"outline"in e&&e.outline?.color&&null!=r?.add&&(e.outline.color=d(e.outline.color,r.add)),"marker"in e&&null!=e.marker&&(e.marker.color=l(e.marker.color))})}(e,t,r):(0,u.$y)(e)&&function(e,t,r){t??=e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=d(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,r?.add))}(e,t,r))}function f(e){for(let t of e)if("number"==typeof t)return t;return null}function h(e,t,r){for(let i=0;i<3;i++){let n=e[i];switch(n){case"symbol-value":{let e=r[i];return null==e?1:e/t[i]}case"proportional":break;default:if(null!=n&&t[i])return n/t[i]}}return null}function y(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return t??r;default:return e}}async function m(e,t){if(e&&t){if((0,u.wk)(e))return async function(e,t){let i=e.symbolLayers;i&&await(0,n.jJ)(i,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){let r=t[2];"number"==typeof r&&(e.size=r)}(e,t);break;case"icon":case"line":case"text":!function(e,t){let r=f(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){let r=h(t,l.Un,[e.width,void 0,e.height]);null!=r&&(e.width=y(t[0],e.width,1,r),e.height=y(t[2],e.height,1,r))}(e,t);break;case"object":await async function(e,t){let{resourceSize:i,symbolSize:n}=await async function(e){let{computeObjectLayerResourceSize:t}=await r.e(5404).then(()=>r(95404)),i=await t(e,10),{width:n,height:l,depth:o}=e,a=[n,o,l],s=1;for(let e=0;e<3;e++){let t=a[e];if(null!=t){s=t/i[e];break}}for(let e=0;e<3;e++)a[e]??(a[e]=i[e]*s);return{resourceSize:i,symbolSize:a}}(e),l=h(t,i,n);null!=l&&(e.width=y(t[0],n[0],i[0],l),e.depth=y(t[1],n[1],i[1],l),e.height=y(t[2],n[2],i[2],l))}(e,t)}}(e,t))}(e,t);(0,u.$y)(e)&&function(e,t){let r=f(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{let t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r;break;case"simple-fill":case"picture-fill":break;case"cim":(0,o.X5)(e,r,{preserveOutlineWidth:!1})}}(e,t)}}function g(e,t,r){if(e&&null!=t)if((0,u.wk)(e)){let i=e.symbolLayers;i&&i.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,u.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,o.KU)(e,t,!0)}}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>s,w5:()=>u});var i=r(56507);const n=(0,r(13069).vD)(),l=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;let n=new URL(e).host,o=l.get(n);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function s(e,t,i=!1){if(!e||!t)return!0;let l=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(l)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(l,e,new i({sessionId:n,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,n,"Z3",0,l])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1843],{48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function u(){return n(1,1)}function f(){return n(-1,-1)}function h(){return n(1,0)}function c(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const l=u(),d=f(),o=h(),a=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:l,UNIT_X:o,UNIT_Y:a,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:f,ones:u,unitX:h,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,l])},91829(e,t,r){function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function n(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function f(){return i(0,1,0,0)}function h(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>i,vt:()=>s});const l=[0,0,0,0],d=n(),o=u(),a=f(),p=h(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:o,UNIT_Y:a,UNIT_Z:p,ZEROS:l,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,freeze:function(e,t,r,s){return[e,t,r,s]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:i,ones:n,unitW:c,unitX:u,unitY:f,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,l,"v7",0,y])},78955(e,t,r){r.d(t,{Bw:()=>E,C:()=>i,Cc:()=>S,LI:()=>o,Om:()=>_,S8:()=>T,T9:()=>d,WQ:()=>u,Z0:()=>m,aI:()=>R,hG:()=>y,hZ:()=>n,hs:()=>a,jk:()=>l,m3:()=>B,t2:()=>A});var s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function n(e,t,r,s,i){return e[0]=t,e[1]=r,e[2]=s,e[3]=i,e}function u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function f(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function l(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function o(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function a(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+s*s+i*i+n*n)}function y(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return r*r+s*s+i*i+n*n}function E(e){let t=e[0],r=e[1],s=e[2],i=e[3];return Math.sqrt(t*t+r*r+s*s+i*i)}function B(e){let t=e[0],r=e[1],s=e[2],i=e[3];return t*t+r*r+s*s+i*i}function T(e,t){let r=t[0],s=t[1],i=t[2],n=t[3],u=r*r+s*s+i*i+n*n;return u>0&&(u=1/Math.sqrt(u),e[0]=r*u,e[1]=s*u,e[2]=i*u,e[3]=n*u),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function S(e,t,r,s){let i=t[0],n=t[1],u=t[2],f=t[3];return e[0]=i+s*(r[0]-i),e[1]=n+s*(r[1]-n),e[2]=u+s*(r[2]-u),e[3]=f+s*(r[3]-f),e}function m(e,t,r){let s=t[0],i=t[1],n=t[2],u=t[3];return e[0]=r[0]*s+r[4]*i+r[8]*n+r[12]*u,e[1]=r[1]*s+r[5]*i+r[9]*n+r[13]*u,e[2]=r[2]*s+r[6]*i+r[10]*n+r[14]*u,e[3]=r[3]*s+r[7]*i+r[11]*n+r[15]*u,e}function A(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function R(e,t){let r=e[0],i=e[1],n=e[2],u=e[3],f=t[0],h=t[1],c=t[2],l=t[3],d=(0,s.FD)();return Math.abs(r-f)<=d*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-h)<=d*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(u-l)<=d*Math.max(1,Math.abs(u),Math.abs(l))}const M=f,N=h,I=c,b=p,C=y,F=E,O=B;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:b,distance:p,div:I,divide:c,dot:_,equals:R,exactEquals:A,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:F,length:E,lerp:S,max:d,min:l,mul:N,multiply:h,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:T,random:function(e,t=1){let r,i,n,u,f,h,c=s.Ov;do{r=2*c()-1,i=2*c()-1,f=r*r+i*i}while(f>=1);do{n=2*c()-1,u=2*c()-1,h=n*n+u*u}while(h>=1);let l=Math.sqrt((1-f)/h);return e[0]=t*r,e[1]=t*i,e[2]=t*n*l,e[3]=t*u*l,e},round:o,scale:a,scaleAndAdd:function(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e[3]=t[3]+r[3]*s,e},set:n,sqrDist:C,sqrLen:O,squaredDistance:y,squaredLength:B,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:f,transformMat4:m,transformQuat:function(e,t,r){let s=t[0],i=t[1],n=t[2],u=r[0],f=r[1],h=r[2],c=r[3],l=c*s+f*n-h*i,d=c*i+h*s-u*n,o=c*n+u*i-f*s,a=-u*s-f*i-h*n;return e[0]=l*c+a*-u+d*-h-o*-f,e[1]=d*c+a*-f+o*-u-l*-h,e[2]=o*c+a*-h+l*-f-d*-u,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},13030(e,t,r){r.d(t,{Y$:()=>E,XW:()=>y,qB:()=>b,Qt:()=>Z,My:()=>J,bf:()=>X,jZ:()=>R,j0:()=>M,Sx:()=>N,E$:()=>I,Qy:()=>se,h:()=>x,P:()=>w,SL:()=>G,dy:()=>te,ES:()=>ie,gH:()=>T,ZD:()=>B,si:()=>C,mJ:()=>$,UL:()=>Q,D6:()=>j,Yi:()=>P,An:()=>Y,LC:()=>g,xs:()=>S,EC:()=>_,Xm:()=>F,Vp:()=>k,zD:()=>K,m8:()=>q,nS:()=>D,H$:()=>H,eI:()=>L,td:()=>re,Eq:()=>A,jz:()=>m,Aj:()=>O,E7:()=>W,Y4:()=>ee,TX:()=>z,Uz:()=>v,ml:()=>V,XP:()=>U});var s=r(34727),i=r(37585),n=r(48163),u=r(78955),f=r(91829);class h{static{this.ElementCount=9}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=9;let n=this.TypedArrayConstructor;void 0===s&&(s=9*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;for(let e=0;e<9;++e)s[n++]=i[u++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=16}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=16;let n=this.TypedArrayConstructor;void 0===s&&(s=16*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){let s=this.typedBuffer,i=e*this.typedBufferStride;for(let e=0;e<16;++e)s[i++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=1}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=1;let n=this.TypedArrayConstructor;void 0===s&&(s=n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.stride=s,this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class d{static{this.ElementCount=2}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;let n=this.TypedArrayConstructor;void 0===s&&(s=2*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,i.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var o=r(35522);class a{static{this.ElementCount=3}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=3;let n=this.TypedArrayConstructor;void 0===s&&(s=3*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=s}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;let n=this.TypedArrayConstructor;void 0===s&&(s=4*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,u.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s,i){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=s,this.typedBuffer[e]=i}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class y extends l{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class E extends l{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}static{this.ElementType="f32"}}class B extends d{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(B,e,t)}static{this.ElementType="f16"}}class T extends d{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f32"}}class _ extends a{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f16"}}class S extends a{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(S,e,t)}static fromTypedArray(e,t){return new S(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class m extends p{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(m,e,t)}static{this.ElementType="f16"}}class A extends p{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f32"}}class R extends h{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class M extends h{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="f32"}}class I extends c{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class b extends l{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f64"}}class C extends d{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="f64"}}class F extends a{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(F,e,t)}static fromTypedArray(e,t){return new F(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class O extends p{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(O,e,t)}static{this.ElementType="f64"}}class G extends l{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u8"}}class g extends d{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="u8"}}class L extends a{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static fromTypedArray(e,t){return new L(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class U extends p{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u8"}}class x extends l{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="u16"}}class P extends d{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class D extends a{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class v extends p{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="u16"}}class w extends l{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="u32"}}class Y extends d{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="u32"}}class H extends a{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="u32"}}class V extends p{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class X extends l{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i8"}}class j extends d{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class q extends a{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="i8"}}class z extends p{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i8"}}class Z extends l{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class k extends a{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="i16"}}class W extends p{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class J extends l{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class Q extends d{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i32"}}class K extends a{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends G{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,s.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends U{constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,u.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,u.jk)(ue,(0,u.T9)(ue,t,f.uY),f.Un),(0,u.hs)(ue,ue,255),(0,u.LI)(ue,ue),super.setVec(e,ue)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,s.qE)(r,0,1)))}setValues(e,t,r,s,i){(0,u.hZ)(ue,t,r,s,i),this.setVec(e,ue)}slice(e,t){return this.sliceBuffer(re,e,t)}}class se extends Z{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,s.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(se,e,t)}}class ie extends ${constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,i.hZ)(ne,-1,-1),(0,i.T9)(t,(0,i.hs)(t,super.getVec(e,t),1/32767),ne)}setVec(e,t){(0,i.qE)(ne,t,n.IA,n.Un),(0,i.hs)(ne,ne,32767),(0,i.LI)(ne,ne),super.setVec(e,ne)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,s.qE)(r,-1,1)))}setValues(e,t,r){(0,i.hZ)(ne,t,r),this.setVec(e,ne)}slice(e,t){return this.sliceBuffer(ie,e,t)}}const ne=(0,n.vt)(),ue=(0,f.vt)()},90239(e,t,r){function s(e){switch(e){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(t,{GJ:()=>s})},1843(e,t,r){r.d(t,{BP:()=>l,l5:()=>d});var s=r(13030),i=r(90239),n=r(4431),u=r(620),f=r(85079);class h{constructor(e,t,r=0){this.layout=e,this.byteOffset=r,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(let t of e.fields.keys()){let s=e.fields.get(t);this[t]=new s.constructor(this.buffer,r+s.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(e,t){let r=this[e];return r&&r.elementCount===t.ElementCount&&r.elementType===t.ElementType?r:null}slice(e,t){return new h(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t=0,r=0,s=e.count){let i=this.stride,n=e.byteOffset+t*i,u=this.byteOffset+r*i,f=s*i;if(i%4==0&&n%4==0&&u%4==0){let t=new Uint32Array(e.buffer,n,f/4);new Uint32Array(this.buffer,u,f/4).set(t)}else{let t=new Uint8Array(e.buffer,n,f);new Uint8Array(this.buffer,u,f).set(t)}return this}get usedMemory(){return this.byteLength}dispose(){}}class c{constructor(e){this._stride=0,this._fields=new Map,e&&(this._stride=e.stride,e.fields.forEach(e=>this._fields.set(e[0],{...e[1],constructor:p(e[1].constructor)})))}freeze(){return this}get locations(){return(0,f.Xk)((0,n.U)(this))}vec2f16(e,t){return this._appendField(e,s.ZD,t),this}vec2f(e,t){return this._appendField(e,s.gH,t),this}vec2f64(e,t){return this._appendField(e,s.si,t),this}vec3f16(e,t){return this._appendField(e,s.EC,t),this}vec3f(e,t){return this._appendField(e,s.xs,t),this}vec3f64(e,t){return this._appendField(e,s.Xm,t),this}vec4f16(e,t){return this._appendField(e,s.jz,t),this}vec4f(e,t){return this._appendField(e,s.Eq,t),this}vec4f64(e,t){return this._appendField(e,s.Aj,t),this}mat3f(e,t){return this._appendField(e,s.jZ,t),this}mat3f64(e,t){return this._appendField(e,s.j0,t),this}mat4f(e,t){return this._appendField(e,s.Sx,t),this}mat4f64(e,t){return this._appendField(e,s.E$,t),this}vec4u8(e,t){return this._appendField(e,s.XP,t),this}f16(e,t){return this._appendField(e,s.XW,t),this}f32(e,t){return this._appendField(e,s.Y$,t),this}f64(e,t){return this._appendField(e,s.qB,t),this}u8(e,t){return this._appendField(e,s.SL,t),this}u16(e,t){return this._appendField(e,s.h,t),this}i8(e,t){return this._appendField(e,s.bf,t),this}vec2i8(e,t){return this._appendField(e,s.D6,t),this}vec2i16(e,t){return this._appendField(e,s.mJ,t),this}vec2u8(e,t){return this._appendField(e,s.LC,t),this}vec2u16(e,t){return this._appendField(e,s.Yi,t),this}vec4u16(e,t){return this._appendField(e,s.Uz,t),this}vec4i16(e,t){return this._appendField(e,s.E7,t),this}u32(e,t){return this._appendField(e,s.P,t),this}_appendField(e,t,r){this._fields.has(e)&&(0,u.vA)(!1,`${e} already added to vertex buffer layout`);let s=t.ElementCount*(0,i.GJ)(t.ElementType),n=this._stride;this._fields.set(e,{constructor:t,size:s,offset:n,optional:r}),this._alignFields()}_alignFields(){let e=0,t=1;this._fields.forEach(r=>{let s=(0,i.GJ)(r.constructor.ElementType);e=Math.floor((e+s-1)/s)*s,r.offset=e,e+=r.size,t=Math.max(t,s)}),e=Math.floor((e+t-1)/t)*t,this._stride=e}createBuffer(e){return new h(this,e)}createView(e,t){return new h(this,e,t)}clone(){let e=new c;return e._stride=this._stride,e._fields=new Map,this._fields.forEach((t,r)=>e._fields.set(r,t)),e}get stride(){return this._stride}get fields(){return this._fields}}function l(){return new c}class d{constructor(e){this.fields=[],e.fields.forEach((e,t)=>{let r={...e,constructor:a(e.constructor)};this.fields.push([t,r])}),this.stride=e.stride}}const o=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function a(e){return`${e.ElementType}_${e.ElementCount}`}function p(e){return y.get(e)}const y=new Map;o.forEach(e=>y.set(a(e),e))},4431(e,t,r){r.d(t,{U:()=>n});var s=r(63907),i=r(74038);function n(e,t=0){let r=e.stride;return e.fields.entries().map(([e,n])=>{let u=n.constructor.ElementCount,f=function(e){switch(e){case"u8":return s.pe.UNSIGNED_BYTE;case"u16":return s.pe.UNSIGNED_SHORT;case"u32":return s.pe.UNSIGNED_INT;case"i8":return s.pe.BYTE;case"i16":return s.pe.SHORT;case"i32":return s.pe.INT;case"f16":return s.pe.HALF_FLOAT;case"f32":return s.pe.FLOAT;default:throw Error("BufferType not supported in WebGL")}}(n.constructor.ElementType),h=n.offset,c=n.optional?.glNormalized??!1,l=n.optional?.integer??!1;return new i._(e,u,f,h,r,c,t,l)}).toArray()}},620(e,t,r){r.d(t,{O_:()=>n,vA:()=>i}),r(48163),r(78955),(0,r(91829).vt)();class s{constructor(e){this.message=e}toString(){return`AssertException: ${this.message}`}}function i(e,t="Assertion"){if(!e){let e=Error(t).stack;throw new s(`${t} at ${e}`)}}function n(e,t,r,s){let i,n=(r[0]-e[0])/t[0],u=(s[0]-e[0])/t[0];n>u&&(i=n,n=u,u=i);let f=(r[1]-e[1])/t[1],h=(s[1]-e[1])/t[1];if(f>h&&(i=f,f=h,h=i),n>h||f>u)return!1;f>n&&(n=f),h<u&&(u=h);let c=(r[2]-e[2])/t[2],l=(s[2]-e[2])/t[2];return c>l&&(i=c,c=l,l=i),!(n>l||c>u||(l<u&&(u=l),u<0))}},85079(e,t,r){r.d(t,{Sk:()=>u,Xk:()=>i,_u:()=>n});var s=r(21818);function i(e){let t=0;return(0,s.z)(new Map(e.map(({name:e,count:r})=>{let s=[e,t];return 16===r?t+=4:9===r?t+=3:++t,s})))}function n(e){let t=new Map,r=0;return e.forEach(e=>e.forEach(({name:e,count:s})=>{t.set(e,r),16===s?r+=4:9===s?r+=3:++r})),t}function u(e){return n(Array.from(e.values()).map(({layout:e})=>e))}},74038(e,t,r){r.d(t,{_:()=>s});class s{constructor(e,t,r,s,i,n=!1,u=0,f=!1){this.name=e,this.count=t,this.type=r,this.offset=s,this.stride=i,this.normalized=n,this.divisor=u,this.integer=f}}},63907(e,t,r){const s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},n=Object.values(i),u={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(t,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,n,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,s,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);