@arcgis/core 5.1.0-next.73 → 5.1.0-next.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Viewpoint.js +1 -1
- package/applications/Urban/editingSessionUtils.d.ts +95 -0
- package/applications/Urban/editingSessionUtils.js +2 -0
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{d17fcfc502f0e0fa6523.js → 003476e950bd27a2f884.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a664451845a47048859.js → 0539b5d015157c1d34a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{5a4d7ba6dc1d4b41d80d.js → 07eff82916681fcff069.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a14e3db28c403b046cf.js → 0d2bc1be5802681666a4.js} +1 -1
- package/assets/esri/core/workers/chunks/0eed2b1b06355ab89013.js +1 -0
- package/assets/esri/core/workers/chunks/18f77ee3552d92962f15.js +1 -0
- package/assets/esri/core/workers/chunks/1a87e9bbd85ba29b1514.js +1 -0
- package/assets/esri/core/workers/chunks/{e1bc9ad767e08dc18bbc.js → 1db1656a033f3992f0d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{b54b7cc6b23a70fed700.js → 1f8ccf96069ac3a40c3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{cdf6ad970dc1893dac58.js → 24646a1176ce34039155.js} +1 -1
- package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 359d3acb3953e64e5a78.js} +1 -1
- package/assets/esri/core/workers/chunks/{80ace1c7203c5059525d.js → 37091cf498a16ccad7ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{0839da55707f7c4cf780.js → 3b9100c59a8050f4834e.js} +1 -1
- package/assets/esri/core/workers/chunks/452c01cecbbd1e370098.js +1 -0
- package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +1 -0
- package/assets/esri/core/workers/chunks/{260d4571722cb1ff1366.js → 484d6c1b0fe1633515b7.js} +1 -1
- package/assets/esri/core/workers/chunks/{f207b3be0714cc50030a.js → 4bbe684050b3b04681d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{29e76256e3e867e80520.js → 4c13869d260a902d3014.js} +1 -1
- package/assets/esri/core/workers/chunks/4c97cc922eece3a91b6b.js +1 -0
- package/assets/esri/core/workers/chunks/{656d6963e8f837fbf28f.js → 54023458195549f66215.js} +1 -1
- package/assets/esri/core/workers/chunks/{a78bc340a794fd332667.js → 5476c2f7b83f4ccd0335.js} +1 -1
- package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +2 -0
- package/assets/esri/core/workers/chunks/{faad127dc07e54e7f6d1.js → 5abe34bb0110694f7b42.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5c57ff48ca505ed701d.js → 5b324e572737a308500d.js} +1 -1
- package/assets/esri/core/workers/chunks/6124141ac642e4ce1454.js +1 -0
- package/assets/esri/core/workers/chunks/{b6cadb8a579241adcb86.js → 6b66fc32451433129a88.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ea8b0d68881d16a2432.js → 6d25230dd85a4ba54c4f.js} +1 -1
- package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +1 -0
- package/assets/esri/core/workers/chunks/{9f4b97204def91567e3c.js → 7595ceba529ed01c7590.js} +1 -1
- package/assets/esri/core/workers/chunks/75d5ea0da181f9e7425f.js +1312 -0
- package/assets/esri/core/workers/chunks/{af75e91b88e747aa76ac.js → 7601278ebced0c0c31cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{1661684357912726a72a.js → 77dd719516138afb1a2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce2aa75e084ee56f5e29.js → 7f55eef696e9ed717bfc.js} +1 -1
- package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +1 -0
- package/assets/esri/core/workers/chunks/{50d5d6654ada9f28345d.js → 85e65ced3312bf9cf162.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9848bdbaf3d9ac93d54.js → 8f4cd30ce23e41c1a42c.js} +1 -1
- package/assets/esri/core/workers/chunks/983f6c8727fd9484718e.js +1 -0
- package/assets/esri/core/workers/chunks/{5a83ea967ecde01d5622.js → 9be9ccce6369f67202bc.js} +1 -1
- package/assets/esri/core/workers/chunks/{422824e407b550170c8c.js → a270960d80d8344dd75f.js} +1 -1
- package/assets/esri/core/workers/chunks/{bef27a25fbc4a6e19ec0.js → a36761e3122f70fbb3c9.js} +1 -1
- package/assets/esri/core/workers/chunks/{47f2113357b2aa4f4f37.js → a9d2c83bb10b5ade0ca0.js} +1 -1
- package/assets/esri/core/workers/chunks/{e25a684eb9f025bdcc01.js → ad064583f8a836005098.js} +1 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +1 -0
- package/assets/esri/core/workers/chunks/{5c663d5f98bdfa29151b.js → b905e637a67fbb7af4ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{03894992558d063d0d5e.js → bab23b905678e42815e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → bcb021a167580bb1619f.js} +1 -1
- package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +1 -0
- package/assets/esri/core/workers/chunks/bec3ee5ea945e1e07a35.js +1 -0
- package/assets/esri/core/workers/chunks/c5f155fe114a2a05aaf2.js +2 -0
- package/assets/esri/core/workers/chunks/{84772b023d04e415f17f.js → c61002a117dc2218d6af.js} +1 -1
- package/assets/esri/core/workers/chunks/{0dad0bca8d58b2c63d22.js → c804a66ef7615aa8de89.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfe246adb5e6cb6f0cfc.js → d00dafad202450e6ee2e.js} +1 -1
- package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +1 -0
- package/assets/esri/core/workers/chunks/{06df187a116709f69952.js → d35c475f004367e333eb.js} +1 -1
- package/assets/esri/core/workers/chunks/d82da31dc702b8fd6a07.js +1 -0
- package/assets/esri/core/workers/chunks/dd4f431511edd975a53b.js +1 -0
- package/assets/esri/core/workers/chunks/{99101789035f1787c630.js → e785f76c1a75cb1d1e1f.js} +1 -1
- package/assets/esri/core/workers/chunks/f590b60fca607d66001a.js +1 -0
- package/assets/esri/core/workers/chunks/{f6d047358d14328f3622.js → f60292d97bcdbf19165b.js} +1 -1
- package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +1 -0
- package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/chunks/geometryEngineBase.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/form/elements/FieldElement.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/geometryEngineJSON.js +1 -1
- package/geometry/operators/projectOperator.d.ts +5 -4
- package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
- package/geometry/support/normalizeUtils.js +1 -1
- package/geometry/support/normalizeUtilsCommon.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/support/SymbolLayerDrawing.d.ts +18 -4
- package/package.json +2 -2
- package/popup/Features.d.ts +9 -9
- package/popup/Features.js +1 -1
- package/popup/actionUtils.js +1 -1
- package/popup/actions.js +1 -1
- package/portal/Portal.js +1 -1
- package/portal/PortalQueryParams.js +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/state/GoToOperation.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
- package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
- package/views/3d/support/cameraScaleUtils.js +2 -0
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +13 -12
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/SceneView.d.ts +1 -0
- package/views/draw/support/editingSessionUtils.js +2 -0
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +9 -1
- package/views/support/Scheduler.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +0 -1
- package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +0 -1
- package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +0 -1
- package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +0 -1
- package/assets/esri/core/workers/chunks/2abf124e2956e4f76688.js +0 -1
- package/assets/esri/core/workers/chunks/30f04dc001eaf838d64c.js +0 -1
- package/assets/esri/core/workers/chunks/43678e08a3d9d51c2a6d.js +0 -1
- package/assets/esri/core/workers/chunks/5b278b9980752ef495a2.js +0 -1
- package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +0 -1
- package/assets/esri/core/workers/chunks/74be994d789c57031631.js +0 -1
- package/assets/esri/core/workers/chunks/770880ad43f252962017.js +0 -1
- package/assets/esri/core/workers/chunks/81750c5177d8d52a3e05.js +0 -1
- package/assets/esri/core/workers/chunks/9eb4ae556950e1d0124d.js +0 -2
- package/assets/esri/core/workers/chunks/a11f05ddd8314b648f76.js +0 -1
- package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +0 -1
- package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +0 -1
- package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +0 -1
- package/assets/esri/core/workers/chunks/d65b1234867f7d773d50.js +0 -2
- package/assets/esri/core/workers/chunks/d8d7331600d93bbca2b4.js +0 -1
- package/assets/esri/core/workers/chunks/e272411e2c9378aa8496.js +0 -1312
- package/assets/esri/core/workers/chunks/fa160a2a5dc9f5a7c34b.js +0 -1
- package/geometry/support/triangulationUtilsDeprecated.js +0 -2
- package/views/3d/layers/graphics/extrudeUtilsDeprecated.js +0 -2
- package/views/3d/support/renderInfoUtils/polygonDeprecated.js +0 -2
- /package/assets/esri/core/workers/chunks/{9eb4ae556950e1d0124d.js.LICENSE.txt → 5511e640e171c294f52a.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d65b1234867f7d773d50.js.LICENSE.txt → c5f155fe114a2a05aaf2.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7033],{69052(e,t,r){r.d(t,{hr:()=>n,ie:()=>l,uC:()=>a});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return o(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return o(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function o(e,t,r,i,n=0,o=!1){return(i-=n)<t?i+=s(e,t-i):i>r&&(i-=s(e,i-r)),o&&i===r&&(i=t),i+n}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360))},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new n(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(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};const o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),m=p(e);if(m&&s.has(m)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h;const f=a(e)&&a(t);for(const i of y){const n=u(e,i),o=u(t,i);let s;if((f||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&p(n)===p(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=h?h.diff[i]=s:h={type:"partial",diff:{[i]:s}})}}return h}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},46130(e,t,r){r.d(t,{v:()=>n});var i=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,i.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:i,fromValues:function(e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,h){return[e,t,r,i,n,o,s,a,l,u,p,c,d,y,m,h]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,r){r.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>I,DI:()=>T,Il:()=>$,Io:()=>b,Ln:()=>g,Om:()=>S,Qr:()=>c,Re:()=>u,S8:()=>M,T9:()=>h,WQ:()=>l,Z0:()=>O,_S:()=>y,aI:()=>F,ei:()=>j,fw:()=>Z,g7:()=>D,gL:()=>N,hG:()=>v,hZ:()=>a,hs:()=>f,jb:()=>_,jk:()=>m,lo:()=>k,lw:()=>p,m3:()=>w,oW:()=>P,t2:()=>R,tn:()=>d,uE:()=>U,xg:()=>J,ze:()=>C});var i=r(51850),n=r(34304);function o(e){const t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],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}function p(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],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}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function y(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function m(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}function h(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}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function g(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}function b(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function v(e,t){const r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function w(e){const t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function C(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t){const r=t[0],i=t[1],n=t[2];let o=r*r+i*i+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function S(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=n*l-o*a,e[1]=o*s-i*l,e[2]=i*a-n*s,e}function I(e,t,r,i){const n=t[0],o=t[1],s=t[2];return e[0]=n+i*(r[0]-n),e[1]=o+i*(r[1]-o),e[2]=s+i*(r[2]-s),e}function O(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=r[0]*i+r[4]*n+r[8]*o+r[12],e[1]=r[1]*i+r[5]*n+r[9]*o+r[13],e[2]=r[2]*i+r[6]*n+r[10]*o+r[14],e}function j(e,t,r){const i=t[0],n=t[1],o=t[2];return e[0]=i*r[0]+n*r[3]+o*r[6],e[1]=i*r[1]+n*r[4]+o*r[7],e[2]=i*r[2]+n*r[5]+o*r[8],e}function N(e,t,r){return Z(e,t,r[0],r[1],r[2],r[3])}function Z(e,t,r,i,n,o){const s=t[0],a=t[1],l=t[2],u=i*l-n*a,p=n*s-r*l,c=r*a-i*s,d=i*c-n*p,y=n*u-r*c,m=r*p-i*u,h=2*o;return e[0]=s+u*h+2*d,e[1]=a+p*h+2*y,e[2]=l+c*h+2*m,e}function D(e,t){M(x,e),M(B,t);const r=S(x,B);return r>1?0:r<-1?Math.PI:Math.acos(r)}const x=(0,i.vt)(),B=(0,i.vt)();function R(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function F(e,t){if(e===t)return!0;const r=e[0],i=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,n.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(e,t,r){const i=r[0]-t[0],n=r[1]-t[1],o=r[2]-t[2];let s=i*i+n*n+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=i*s,e[1]=n*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const _=u,E=p,L=c,J=b,k=v,$=o,U=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:D,bezier:function(e,t,r,i,n,o){const s=1-o,a=s*s,l=o*o,u=a*s,p=3*o*a,c=3*l*s,d=l*o;return e[0]=t[0]*u+r[0]*p+i[0]*c+n[0]*d,e[1]=t[1]*u+r[1]*p+i[1]*c+n[1]*d,e[2]=t[2]*u+r[2]*p+i[2]*c+n[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:s,cross:A,crossAndNormalize:function(e,t,r){const i=t[0],n=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=n*l-o*a,p=o*s-i*l,c=i*a-n*s,d=Math.sqrt(u*u+p*p+c*c);return e[0]=u/d,e[1]=p/d,e[2]=c/d,e},direction:P,dist:J,distance:b,div:L,divide:c,dot:S,equals:F,exactEquals:R,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,i,n,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),p=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+i[0]*u+n[0]*p,e[1]=t[1]*a+r[1]*l+i[1]*u+n[1]*p,e[2]=t[2]*a+r[2]*l+i[2]*u+n[2]*p,e},inverse:T,len:$,length:o,lerp:I,max:h,min:m,mul:E,multiply:p,negate:C,normalize:M,random:function(e,t=1){const r=n.Ov,i=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(i)*s,e[1]=Math.sin(i)*s,e[2]=o*t,e},rotateX:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),o[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),o[1]=n[1],o[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,i){const n=[],o=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],o[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),o[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),o[2]=n[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:f,scaleAndAdd:g,set:a,sign:y,sqrDist:k,sqrLen:U,squaredDistance:v,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:_,subtract:u,transformMat3:j,transformMat4:O,transformQuat:N,transformQuatValues:Z},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>i})},159(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,n.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=i=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,n.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>n});var i=r(49208);function n(e,t,r,n,o,s,a=Math.floor(e.length/3)){const l=(0,i.jd)(t,o);if(null==l)return!1;if(l===i.pO){if(e===n&&r===s)return!0;const t=r+3*a;for(let i=r,o=s;i<t;i++,o++)n[o]=e[i]??0;return!0}const u=r+3*a;for(let t=r,i=s;t<u;t+=3,i+=3)l(e,t,n,i);return!0}},49208(e,t,r){r.d(t,{Tp:()=>c,jd:()=>p,pO:()=>y,w5:()=>u});var i=r(34727),n=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:h,11:f,2:y,4:I},5:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:h,11:f,2:y,4:I},7:{5:null,7:y,9:null,10:y,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,i){const n=e[t]/x,o=D-2*Math.atan(Math.exp(-e[t+1]/x)),s=x+(e[t+2]??0),a=Math.cos(o)*s;r[i]=Math.cos(n)*a,r[i+1]=Math.sin(n)*a,r[i+2]=Math.sin(o)*s},6:null,8:null,0:null,3:y,11:function(e,t,r,i){m(e,t,r,i),f(r,i,r,i)},2:m,4:function(e,t,r,i){m(e,t,r,i),I(r,i,r,i)}},4:{5:O,7:null,9:null,10:O,1:function(e,t,r,i){O(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){O(e,t,r,i),h(r,i,r,i)},11:function(e,t,r,i){O(e,t,r,i),f(r,i,r,i)},2:O,4:y},1:{5:A,7:null,9:null,10:A,1:y,6:null,8:null,0:null,3:function(e,t,r,i){A(e,t,r,i),h(r,i,r,i)},11:function(e,t,r,i){A(e,t,r,i),f(r,i,r,i)},2:A,4:function(e,t,r,i){A(e,t,r,i),I(r,i,r,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:M,10:M,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:C,6:w,8:v,0:null,3:h,11:f,2:y,4:I},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,i){g(e,t,r,i),C(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){g(e,t,r,i),h(r,i,r,i)},11:y,2:g,4:function(e,t,r,i){g(e,t,r,i),I(r,i,r,i)}}};function p(e,t){return c(e,t)?.projector}function c(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const r=d(e,j.source),i=d(t,j.dest);return 0===r&&0===i?(0,l.aI)(e,t)?j.projector=y:j.projector=null:j.projector=u[r][i],j}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function m(e,t,r,i){r[i]=Z*(e[t]/x),r[i+1]=Z*(D-2*Math.atan(Math.exp(-e[t+1]/x))),r[i+2]=e[t+2]??0}function h(e,t,r,n){!function(e,t,r,n,o){const s=.4999999*Math.PI,a=(0,i.qE)(N*e[t+1],-s,s),l=Math.sin(a);r[n++]=N*e[t]*o.radius,r[n++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[n]=e[t+2]??0}(e,t,r,n,s.$O)}function f(e,t,r,i){r[i]=e[t]*B,r[i+1]=e[t+1]*B,r[i+2]=e[t+2]??0}function g(e,t,r,i){r[i]=e[t]*R,r[i+1]=e[t+1]*R,r[i+2]=e[t+2]??0}function b(e,t,r,i,n){const o=n+(e[t+2]??0),s=N*e[t],a=N*e[t+1],l=Math.cos(a)*o;r[i]=Math.cos(s)*l,r[i+1]=Math.sin(s)*l,r[i+2]=Math.sin(a)*o}function v(e,t,r,i){b(e,t,r,i,s.Sw.radius)}function w(e,t,r,i){b(e,t,r,i,s.sH.radius)}function C(e,t,r,i){b(e,t,r,i,s.$O.radius)}function T(e,t,r,n,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),p=(0,i.YN)(l/(0===u?1:u)),c=Math.atan2(a,s);r[n++]=Z*c,r[n++]=Z*p,r[n]=u-o}function M(e,t,r,i){T(e,t,r,i,s.Sw.radius)}function S(e,t,r,i){T(e,t,r,i,s.sH.radius)}function A(e,t,r,i){T(e,t,r,i,s.$O.radius)}function I(e,t,r,i){!function(e,t,r,i,n){const o=N*e[t],s=N*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),p=n.radius/Math.sqrt(1-n.eccentricitySquared*l*l);r[i++]=(p+a)*u*Math.cos(o),r[i++]=(p+a)*u*Math.sin(o),r[i++]=(p*(1-n.eccentricitySquared)+a)*l}(e,t,r,i,s.$O)}function O(e,t,r,i){const n=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let p,c,d,y,m,h,f,g,b,v,w,C,T,M,S,A,I,O,j,N,D;p=Math.abs(u),c=o*o+l*l,d=Math.sqrt(c),y=c+u*u,m=Math.sqrt(y),N=Math.atan2(l,o),h=u*u/y,f=c/y,M=n.a2/m,S=n.a3-n.a4/m,f>.3?(g=p/m*(1+f*(n.a1+M+h*S)/m),j=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/m*(1-h*(n.a5-M-f*S)/m),j=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),w=1-s.$O.eccentricitySquared*v,C=s.$O.radius/Math.sqrt(w),T=n.a6*C,M=d-C*b,S=p-T*g,I=b*M+g*S,A=b*S-g*M,O=A/(T/w+I),j+=O,D=I+A*O/2,u<0&&(j=-j),r[i++]=Z*N,r[i++]=Z*j,r[i]=D}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},N=(0,i.kU)(1),Z=(0,i.KJ)(1),D=.5*Math.PI,x=s.$O.radius,B=x*Math.PI/180,R=180/(x*Math.PI)},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>V,initializeProjection:()=>z,isEqualBaseGCS:()=>q,isLoaded:()=>x,isLoadedOrLoad:()=>B,isLoadedOrLoadFor:()=>R,load:()=>P,project:()=>_,projectAsync:()=>G,projectExtent:()=>ne,projectMany:()=>E,projectMultipoint:()=>X,projectOrLoad:()=>J,projectOrLoadMany:()=>k,projectPoint:()=>Y,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>K,requiresLoad:()=>F,test:()=>W,tryProject:()=>L,unload:()=>U});var i=r(49186),n=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),p=r(5443),c=r(91075),d=r(48526),y=r(86738),m=r(39829),h=r(82799),f=r(16930),g=r(98764),b=r(159),v=r(9762),w=r(49208);function C(e,t,r,i,n,o){return T[0]=e,T[1]=t,T[2]=r,(0,v.projectBuffer)(T,i,0,n,o,0)}const T=(0,a.vt)();var M=r(60408),S=r(21325),A=r(52006);let I=null,O=null,j=null,N=null,Z={};const D=new s.I;function x(){return!!(O?.isLoaded()&&j?.isLoaded()&&N?.isLoaded())}function B(){return!!x()||((0,o.gc)(D),P(),!1)}function R(e,t){return!e||!t||V(e,t)||B()}function F(e,t){return!V(e,t)&&!x()}async function P(e){null==I&&(I=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(O=e,O.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(j=e,j.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(N=e,N.load()))])),await I,(0,n.Te)(e),D.notify()}function _(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),E(e,e[0].spatialReference,t,r)):((0,l.f)(e),E([e],e.spatialReference,t,r)[0])}function E(e,t,r,i){if(null==t||null==r)return e;if(V(t,r,i))return e.map(e=>K(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return E(e.map(e=>K(e,t,f.A.WGS84)),f.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return E(e,t,f.A.WGS84).map(e=>K(e,f.A.WGS84,r));if(!x())throw new $;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:N.getTransformation(t,r,i.areaOfInterestExtent)||new b.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let n=Z[e];n||(n=N.getTransformation(t,r)||new b.A,Z[e]=n),i={geographicTransformation:n,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof c.A?O.executeMany(e,r,i):j.executeMany(e,r,i)}function L(e,t,r){try{return _(e,t,r)}catch(e){return null}}function J(e,t){const r=k([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function k(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,S.aI)(r.spatialReference,t)&&(0,S.fn)(r.spatialReference)&&(0,S.fn)(t)&&!V(r.spatialReference,t))return(0,o.gc)(D),{pending:P(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,S.aI)(e.spatialReference,t)?e:(0,S.fn)(e.spatialReference)&&(0,S.fn)(t)?_(e,t,r):null)}}class $ extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){I=null,O=null,j=null,N=null,Z={}}const W={get loadPromise(){return I}};async function G(e,t,r){if((0,n.Te)(r),!e)return e;const i=k(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,n.Te)(r),G(e,t,r);const o=i.geometries??[];return Array.isArray(e)?o:o[0]}function V(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,S.aI)(e,t)||(0,S.fn)(e)&&(0,S.fn)(t)&&!!(0,w.jd)(e,t))}function q(e,t){if((0,S.aI)(e,t))return!0;if(!(0,S.fn)(e)||!(0,S.fn)(t))return!1;const r=(0,S.oT)(e)||(0,S.K8)(e)||(0,S.x1)(e),i=(0,S.oT)(t)||(0,S.K8)(t)||(0,S.x1)(t);return r&&i}async function z(e,t,r,i){if(x())return(0,n.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:n}of e)if(t&&r&&!V(t,r,n))return P(i)}else if(e&&t&&!V(e,t,r))return P(i);return(0,n.NO)(i)}function K(e,t,r){return e?(0,M.fT)(e)?H(e,t,new y.A,r,0):(0,M.ZC)(e)?oe(e,t,new p.A,r,0):(0,M.Bi)(e)?ie(e,t,new m.A,r,0):(0,M.Rg)(e)?te(e,t,new h.A,r,0):(0,M.U9)(e)?Q(e,t,new d.A,r,0):null:null}function Y(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,n){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:n,(0,v.projectBuffer)(ue,t,0,ue,i,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=i,void 0!==o||(0,u.xP)(i)?(r.z=ue[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function X(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,i)}function Q(e,t,r,i,n){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,p=[];for(const e of o)p.push(e[0],e[1],s?e[2]:n);if(!(0,v.projectBuffer)(p,t,0,p,i,0,u))return null;const c=le(s,i);for(let e=0;e<u;++e){const t=3*e,r=p[t],i=p[t+1];c&&a?l.push([r,i,p[t+2],o[e][3]]):c?l.push([r,i,p[t+2]]):a?l.push([r,i,o[e][2]]):l.push([r,i])}return r.points=l,r.spatialReference=i,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,i)}function te(e,t,r,i,n){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],i,n):se(s,a??!1,l??!1,t,r.paths,i,n)))return null;const u=le(a,i);return r.spatialReference=i,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ie(e,e.spatialReference,t,r,i)}function ie(e,t,r,i,n){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],i,n):se(s,a??!1,l??!1,t,r.rings,i,n))?(r.spatialReference=i,r.hasZ=le(a,i),r.hasM=l,r):null}function ne(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,i)}function oe(e,t,r,i,n){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:p}=e;if(!C(o,s,u?e.zmin:n,t,ue,i))return null;const c=le(u,i);return r.xmin=ue[0],r.ymin=ue[1],c&&(r.zmin=ue[2]),C(a,l,u?e.zmax:n,t,ue,i)?(r.xmax=ue[0],r.ymax=ue[1],c&&(r.zmax=ue[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function se(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:s);if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);p||t.pop(),r&&t.push(i[u]),e.push(t)}n.push(e)}return!0}function ae(e,t,r,i,n,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[r,i]=e.c;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s);continue}if((0,A.n1)(e)){const[r,i,n]=e.b;a.push(r[0],r[1],t?r[2]:s,i[0],i[1],s,n[0],n[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(a,i,0,a,o,0))return!1;let l=0;n.length=0;const u=t?3:2,p=le(t,o);for(const t of e){const e=new Array;for(const i of t){const t=a.slice(l,l+=3);if(p||t.pop(),r&&t.push((0,A.yP)(i)[u]),(0,A.FG)(i))return!1;if((0,A.aO)(i)){const r=a[l++],i=a[l++];++l,e.push({c:[t,[r,i]]});continue}if((0,A.n1)(i)){const r=a[l++],i=a[l++];++l;const n=a[l++],o=a[l++];++l,e.push({b:[t,[r,i],[n,o]]});continue}e.push(t)}n.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,S.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{GD:()=>s,Y0:()=>u,lO:()=>p});var i=r(73941),n=r(16930),o=r(21325);const s=new n.A(i.fv),a=new n.A(i.FY),l=new n.A(i.LJ),u=new n.A(i.Ro);function p(e){const t=c.get(e);if(t)return t;let r=s;if(e)if(e===a)r=a;else if(e===l)r=l;else{const t=e.wkid,i=e.latestWkid;if(null!=t||null!=i)(0,o.tl)(t)||(0,o.tl)(i)?r=a:((0,o.ZL)(t)||(0,o.ZL)(i))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===y&&(r=l)}}}return c.set(e,r),r}const c=new Map,d=a.wkt.toUpperCase(),y=l.wkt.toUpperCase()},4197(e,t,r){r.d(t,{Vj:()=>l,cj:()=>a,jh:()=>o,l5:()=>s});var i=r(34275),n=r(9093);function o(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function s(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function l(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>v,DC:()=>c,Ej:()=>y,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>p,aI:()=>C,fA:()=>s,gE:()=>l,hZ:()=>f,iT:()=>d,is:()=>w,qv:()=>T,vI:()=>h,vY:()=>a,v_:()=>M,vt:()=>o,w1:()=>u}),r(35522);var i=r(5443),n=(r(19419),r(4197));function o(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=s,a}function a(e,t=o()){return function(e,t,r,i=o()){return f(i,T),function(e,t,r=0,i=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[r,i,o,s,a,l]=e;return t[0]=r,t[1]=i,t[2]=o,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=o,t[9]=r,t[10]=a,t[11]=l,t[12]=s,t[13]=i,t[14]=o,t[15]=s,t[16]=i,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function y(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function h(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?f(e,T):o(T)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function C(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];o()},34403(e,t,r){r.d(t,{TP:()=>s});var i=r(79258);Math.PI;const n=i.$O.radius,o=i.$O.eccentricitySquared,s={a1:n*o,a2:n*o*n*o,a3:n*o*o/2,a4:n*o*n*o*2.5,a5:n*o+n*o*o/2,a6:1-o};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius},17136(e,t,r){r.d(t,{Y_:()=>j,O7:()=>I,el:()=>A});var i=r(92602),n=r(69052),o=r(49186),s=r(53966),a=r(39829),l=r(82799),u=r(16930),p=r(80754),c=r(21325),d=r(28735),y=r(11254),m=r(60408),h=r(65864),f=r(2272),g=r(84952),b=r(92300);const v=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function C(e){return"polyline"===e[0].type}function T(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new o.A("internal:geometry",e)}const r=(0,p.r8)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],o=e[i][1],s=e[i+1][0],a=e[i+1][1],l=Math.sqrt((s-n)*(s-n)+(a-o)*(a-o)),u=(a-o)/l,p=(s-n)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,s=p*i+n,a=u*i+o;r.push([s,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+n,s=u*e+o;r.push([i,s])}r.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return r&&(e=(0,p.kS)(e,r)),e}function M(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,p.kd)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,p.kd)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,p.kd)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,p.kd)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function S(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],o=t.geometries[i],s=(0,p.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,p.kd)(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(i,0))}return!0}})}if(n===r){if(w(e))for(const t of(0,p.r8)(o))e[n]=e[n].addRing(t);else if(C(e))for(const t of(0,p.r8)(o))e[n]=e[n].addPath(t)}else r=n,e[n]=o}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let o,s,u,w,C,I,O,j,N=0;const Z=[],D=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,c.Vp)(o),u=o.isWebMercator,I=u?102100:4326,w=p.j7[I].maxX,C=p.j7[I].minX,O=p.j7[I].plus180Line,j=p.j7[I].minus180Line),s)if("mesh"===t.type)D.push(t);else if("point"===t.type)D.push(M(t.clone(),w,C));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>M(e,w,C)),D.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);D.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,r=(0,p.kd)(e.xmin,C)*(2*w);let i=0===r?t.clone():(0,p.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(O)&&o!==w?(N=o>N?o:N,i=T(i,u),Z.push(i),D.push("cut")):e.intersects(j)&&n!==C?(N=o*(2*w)>N?o*(2*w):N,i=T(i,u,360),Z.push(i),D.push("cut")):D.push(i)}else D.push(t.clone());else D.push(t);else D.push(t);let x=(0,p.kd)(N,w),B=-90;const R=x,F=new l.A;for(;x>0;){const e=360*x-180;F.addPath([[e,B],[e,-1*B]]),B*=-1,x--}if(Z.length>0&&R>0){const t=S(Z,await async function(e,t,r,i){const n=(0,f.Dl)(e),o=t[0].spatialReference,s={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,c.YX)(o),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,y.A)(n.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,h.rS)(e);return t.spatialReference=o,t})}}(n,Z,F,r)),i=[],o=[];for(let r=0;r<D.length;r++){const n=D[r];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[r];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(i.push(n),o.push("simplify")):o.push(u?(0,d.Gh)(n):n)}}if(!i.length)return o;const s=await async function(e,t,r){const i="string"==typeof e?(0,g.An)(e):e,n=t[0].spatialReference,o=(0,m.$B)(t[0]),s={...r,query:{...i.query,f:"json",sr:(0,c.YX)(n),geometries:JSON.stringify((0,b.X)(t))}},{data:a}=await(0,y.A)(i.path+"/simplify",s);return(0,b.V)(a.geometries,o,n)}(n,i,r),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(s.shift()):s.shift())}return a}const P=[];for(let e=0;e<D.length;e++){const t=D[e];if("cut"!==t)P.push(t);else{const e=Z.shift();P.push(!0===u?(0,d.Gh)(e):e)}}return P}function I(e,t,r){const i=(0,c.Vp)(r);if(null==i)return e;const[n,o]=i.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<n&&(a=-Math.ceil(Math.abs(t-n)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<n&&(l=-Math.ceil(Math.abs(e-n)/s));let u=e+(a-l)*s;const p=u-t;return p>o?u-=s:p<n&&(u+=s),u}function O(e){const t=(0,c.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new n.hr(r,i)}const j=O(u.A.WGS84);O(u.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var i=r(82799),n=r(16930),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},50498(e,t,r){r.d(t,{Ye:()=>c,gy:()=>p,iI:()=>y,yR:()=>d});var i=r(66552),n=r(5443),o=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:n.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},y=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},34507(e,t,r){r.r(t),r.d(t,{default:()=>Ft});var i=r(5482),n=r(92602),o=r(52106),s=r(37838),a=r(4576),l=r(7762),u=r(49186),p=r(53966),c=r(25728),d=r(93637),y=r(17676),m=r(36708),h=r(86211),f=r(84952),g=r(91429),b=r(46130),v=r(5443),w=r(48526),C=r(91218),T=r(16930),M=r(21325),S=r(4146),A=r(63074),I=r(34287),O=r(8303),j=r(25036),N=r(60694),Z=r(25482),D=r(53930),x=r(33910);let B=class extends Z.o{constructor(e){super(e),this.break=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}}),this.first=new D.A({color:[0,255,0],size:20,outline:{color:[255,255,255],width:4}}),this.unlocated=new D.A({color:[255,0,0],size:12,outline:{color:[255,255,255],width:3}}),this.last=new D.A({color:[255,0,0],size:20,outline:{color:[255,255,255],width:4}}),this.middle=new D.A({color:[51,51,51],size:12,outline:{color:[0,122,194],width:3}}),this.waypoint=new D.A({color:[255,255,255],size:12,outline:{color:[0,122,194],width:3}})}};(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"break",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"first",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"unlocated",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"last",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"middle",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],B.prototype,"waypoint",void 0),B=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteStopSymbols")],B);var R=r(94985),F=r(31593);let P=class extends Z.o{constructor(e){super(e),this.directionLines=new F.A({color:[0,122,194],width:6}),this.directionPoints=new D.A({color:[255,255,255],size:6,outline:{color:[0,122,194],width:2}}),this.pointBarriers=new D.A({style:"x",size:10,outline:{color:[255,0,0],width:3}}),this.polygonBarriers=new R.A({color:[255,170,0,.6],outline:{width:7.5,color:[255,0,0,.6]}}),this.polylineBarriers=new F.A({width:7.5,color:[255,85,0,.7]}),this.routeInfo=new F.A({width:8,color:[20,89,127]}),this.stops=new B}};(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({types:x.wC})],P.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Ac})],P.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Y7})],P.prototype,"routeInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:B})],P.prototype,"stops",void 0),P=(0,i.Cg)([(0,g.$K)("esri.layers.support.RouteSymbols")],P);var _=r(20655),E=r(80812),L=r(10407),J=r(65494),k=r(11254),$=r(2272),U=r(2073),W=r(93223);let G=class extends Z.o{constructor(e){super(e),this.dataType=null,this.name=null,this.parameterNames=null,this.restrictionUsageParameterName=null,this.timeNeutralAttributeName=null,this.trafficSupport=null,this.units=null,this.usageType=null}};(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"dataType",void 0),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],G.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String]})],G.prototype,"parameterNames",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"restrictionUsageParameterName",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],G.prototype,"timeNeutralAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],G.prototype,"trafficSupport",void 0),(0,i.Cg)([(0,W.e)(U.dn)],G.prototype,"units",void 0),(0,i.Cg)([(0,W.e)(U.WU)],G.prototype,"usageType",void 0),G=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkAttribute")],G);const V=G;let q=class extends Z.o{constructor(e){super(e),this.buildTime=null,this.name=null,this.networkAttributes=null,this.networkSources=null,this.state=null}};(0,i.Cg)([(0,g.MZ)({type:Number})],q.prototype,"buildTime",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],q.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[V]})],q.prototype,"networkAttributes",void 0),(0,i.Cg)([(0,g.MZ)()],q.prototype,"networkSources",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],q.prototype,"state",void 0),q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkDataset")],q);const z=q;var K=r(69540),Y=r(36005),H=r(43937);let X=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}readId(e,t){return t.id??t.itemId??null}readRestrictionAttributes(e,t){const{restrictionAttributeNames:r}=t;return null==r?null:r.map(e=>U.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){null!=e&&(t[r]=e.map(e=>U.OC.toJSON(e)))}};(0,i.Cg)([(0,g.MZ)({type:[Object],json:{write:!0}})],X.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"description",void 0),(0,i.Cg)([(0,W.e)(U.dd,{ignoreUnknown:!1})],X.prototype,"distanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"id",void 0),(0,i.Cg)([(0,Y.w)("id",["id","itemId"])],X.prototype,"readId",null),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],X.prototype,"impedanceAttributeName",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],X.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{write:!0}})],X.prototype,"restrictionAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributeNames")],X.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributeNames")],X.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:{allowNull:!0}}})],X.prototype,"simplificationTolerance",void 0),(0,i.Cg)([(0,W.e)(U.hY)],X.prototype,"simplificationToleranceUnits",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],X.prototype,"timeAttributeName",void 0),(0,i.Cg)([(0,W.e)(U.ow)],X.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],X.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,W.e)(U.hE)],X.prototype,"uturnAtJunctions",void 0),X=(0,i.Cg)([(0,g.$K)("esri.rest.support.TravelMode")],X);let Q=class extends Z.o{constructor(e){super(e),this.accumulateAttributeNames=null,this.attributeParameterValues=null,this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}get capabilities(){return{supportsNow:(this.currentVersion??10)>=10.81}}readDefaultTravelMode(e,t){const r=t.supportedTravelModes?.find(({id:e})=>e===t.defaultTravelMode)??t.supportedTravelModes?.find(({itemId:e})=>e===t.defaultTravelMode);return r?X.fromJSON(r):null}};function ee(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach(e=>{t.push(e.geometry)})}async function te(e,t,r){if(!e)throw new u.A("network-service:missing-url","Url to Network service is missing");const i=(0,$.jV)({f:"json",token:t},r),{data:n}=await(0,k.A)(e,i),o=n.currentVersion>=10.4?async function(e,t,r){try{const i=(0,$.jV)({f:"json",token:t},r),n=(0,f.UC)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:o,defaultTravelMode:s}}=await(0,k.A)(n,i);return{supportedTravelModes:o,defaultTravelMode:s}}catch(e){throw new u.A("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){const r=(0,$.jV)({f:"json"},t),{data:i}=await(0,k.A)(e.replace(/\/rest\/.*$/i,"/info"),r);if(!i?.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:n}=i,o=(0,f.UC)(n)+"/sharing/rest/portals/self",{data:s}=await(0,k.A)(o,r),a=(0,d.wc)("helperServices.routingUtilities.url",s);if(!a)return{supportedTravelModes:[],defaultTravelMode:null};const l=(0,$.Dl)(n),u=/\/solve$/i.test(l.path)?"Route":/\/solveclosestfacility$/i.test(l.path)?"ClosestFacility":"ServiceAreas",p=(0,$.jV)({f:"json",serviceName:u},t),c=(0,f.UC)(a)+"/GetTravelModes/execute",y=await(0,k.A)(c,p),m=[];let h=null;if(y?.data?.results?.length){const e=y.data.results;for(const t of e)if("supportedTravelModes"===t.paramName){if(t.value?.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);m.push(t)}}else"defaultTravelMode"===t.paramName&&(h=t.value)}return{supportedTravelModes:m,defaultTravelMode:h}}(e,r),{defaultTravelMode:s,supportedTravelModes:a}=await o;return n.defaultTravelMode=s,n.supportedTravelModes=a,Q.fromJSON(n)}(0,i.Cg)([(0,g.MZ)()],Q.prototype,"accumulateAttributeNames",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributeNames")],Q.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributeNames")],Q.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"currentVersion",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"defaultTravelMode",void 0),(0,i.Cg)([(0,Y.w)("defaultTravelMode",["defaultTravelMode","supportedTravelModes"])],Q.prototype,"readDefaultTravelMode",null),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(U.Z7)],Q.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"directionsSupportedLanguages",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{ignoreUnknown:!1})],Q.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)()],Q.prototype,"hasZ",void 0),(0,i.Cg)([(0,W.e)(U.et,{ignoreUnknown:!1})],Q.prototype,"impedance",void 0),(0,i.Cg)([(0,g.MZ)({type:z})],Q.prototype,"networkDataset",void 0),(0,i.Cg)([(0,g.MZ)({type:[X]})],Q.prototype,"supportedTravelModes",void 0),Q=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkServiceDescription")],Q);var re=r(16649),ie=r(17136);function ne(e,t){if(null==e)return null;const r={},i=new RegExp(`^${t}`,"i");for(const n of Object.keys(e))if(i.test(n)){const i=n.slice(t.length);r[U.et.fromJSON(i)]=e[n]}return r}function oe(e,t,r){if(null!=e){t.attributes||(t.attributes={});for(const i in e){const n=U.et.toJSON(i);t.attributes[`${r}${n}`]=e[i]}}}function se(e){const t={};for(const r of Object.keys(e)){const i=r;t[U.et.fromJSON(i)]=e[r]}return t}function ae(e){const t={};for(const r of Object.keys(e)){const i=r;t[U.et.toJSON(i)]=e[r]}return t}function le(e,t){return null==e||null==t?null:Math.round((e-t)/6e4)}function ue(e){const t=e.toJSON(),r=t;return r.accumulateAttributeNames&&=t.accumulateAttributeNames?.join(),r.attributeParameterValues&&=JSON.stringify(t.attributeParameterValues),r.barriers&&=JSON.stringify(t.barriers),r.locateSettings&&=JSON.stringify(t.locateSettings),r.outSR&&=t.outSR?.wkid,r.overrides&&=JSON.stringify(t.overrides),r.polygonBarriers&&=JSON.stringify(t.polygonBarriers),r.polylineBarriers&&=JSON.stringify(t.polylineBarriers),r.restrictionAttributeNames&&=t.restrictionAttributeNames?.join(),r.stops&&=JSON.stringify(t.stops),r.travelMode&&=JSON.stringify(t.travelMode),r}var pe=r(22671),ce=r(66552),de=r(37807);const ye=new ce.J({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let me=class extends de.A{constructor(e){super(e),this.type=null}};(0,i.Cg)([(0,g.MZ)({type:String,json:{read:ye.read,write:ye.write}})],me.prototype,"type",void 0),me=(0,i.Cg)([(0,g.$K)("esri.rest.support.NAMessage")],me);const he=me;var fe=r(82799),ge=r(86738);let be=class extends Z.o{constructor(e){super(e)}};(0,i.Cg)([(0,g.MZ)({json:{read:{source:"string"}}})],be.prototype,"text",void 0),(0,i.Cg)([(0,W.e)(U.Ec,{name:"stringType"})],be.prototype,"type",void 0),be=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsString")],be);const ve=be;let we=class extends Z.o{constructor(e){super(e),this.arriveTime=null,this.arriveTimeOffset=null,this.geometry=null,this.strings=null}readArriveTimeOffset(e,t){return le(t.ETA,t.arriveTimeUTC)}readGeometry(e,t){return ge.A.fromJSON(t.point)}};(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"arriveTimeUTC"}}})],we.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],we.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["arriveTimeUTC","ETA"])],we.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({type:ge.A})],we.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["point"])],we.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],we.prototype,"strings",void 0),we=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsEvent")],we);const Ce=we;let Te=class extends o.A{constructor(e){super(e),this.events=null,this.geometry=null,this.strings=null}set attributes(e){super.attributes=e}readGeometry(e,t){const r=function(e){if(null==e||""===e)return null;let t=0,r=0,i=0,n=0;const o=[];let s,a,l,u,p,c,d,y,m=0,h=0,f=0;if(p=e.match(/((\+|-)[^+\-|]+|\|)/g),p||(p=[]),0===parseInt(p[m],32)){m=2;const e=parseInt(p[m],32);m++,c=parseInt(p[m],32),m++,1&e&&(h=p.indexOf("|")+1,d=parseInt(p[h],32),h++),2&e&&(f=p.indexOf("|",h)+1,y=parseInt(p[f],32),f++)}else c=parseInt(p[m],32),m++;for(;m<p.length&&"|"!==p[m];){s=parseInt(p[m],32)+t,m++,t=s,a=parseInt(p[m],32)+r,m++,r=a;const e=[s/c,a/c];h&&(u=parseInt(p[h],32)+i,h++,i=u,e.push(u/d)),f&&(l=parseInt(p[f],32)+n,f++,n=l,e.push(l/y)),o.push(e)}return{paths:[o],hasZ:h>0,hasM:f>0}}(t.compressedGeometry);return null!=r?fe.A.fromJSON(r):null}};(0,i.Cg)([(0,g.MZ)({type:[Ce]})],Te.prototype,"events",void 0),(0,i.Cg)([(0,g.MZ)({types:{base:null,key:"type",typeMap:{polygon:fe.A},defaultKeyValue:"polygon"}})],Te.prototype,"geometry",void 0),(0,i.Cg)([(0,Y.w)("geometry",["compressedGeometry"])],Te.prototype,"readGeometry",null),(0,i.Cg)([(0,g.MZ)({type:[ve]})],Te.prototype,"strings",void 0),Te=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeature")],Te);const Me=Te;let Se=class extends pe.A{constructor(e){super(e),this.extent=null,this.features=[],this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){if(!e)return[];const r=t.summary.envelope.spatialReference??t.spatialReference,i=r&&T.A.fromJSON(r);return e.map(e=>{const t=Me.fromJSON(e);if(null!=t.geometry&&(t.geometry.spatialReference=i),null!=t.events)for(const e of t.events)null!=e.geometry&&(e.geometry.spatialReference=i);return t})}get mergedGeometry(){return this.features?function(e,t){if(0===e.length)return new fe.A({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)});const{hasM:n,hasZ:o}=e[0];return new fe.A({hasM:n,hasZ:o,paths:[i],spatialReference:t})}(this.features.map(({geometry:e})=>e),this.extent.spatialReference):null}get strings(){return this.features.flatMap(({strings:e})=>e).filter(a.Ru)}};(0,i.Cg)([(0,g.MZ)({type:v.A,json:{read:{source:"summary.envelope"}}})],Se.prototype,"extent",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0})],Se.prototype,"features",void 0),(0,i.Cg)([(0,Y.w)("features")],Se.prototype,"readFeatures",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Se.prototype,"mergedGeometry",null),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeId",void 0),(0,i.Cg)([(0,g.MZ)()],Se.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({value:null,readOnly:!0})],Se.prototype,"strings",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalDriveTime"}}})],Se.prototype,"totalDriveTime",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalLength"}}})],Se.prototype,"totalLength",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"summary.totalTime"}}})],Se.prototype,"totalTime",void 0),Se=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionsFeatureSet")],Se);const Ae=Se;let Ie=class extends Z.o{constructor(e){super(e),this.directionLines=null,this.directionPoints=null,this.directions=null,this.route=null,this.routeName=null,this.stops=null,this.traversedEdges=null,this.traversedJunctions=null,this.traversedTurns=null}};(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionLines",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"directionPoints",void 0),(0,i.Cg)([(0,g.MZ)({type:Ae,json:{write:!0}})],Ie.prototype,"directions",void 0),(0,i.Cg)([(0,g.MZ)({type:o.A,json:{write:!0}})],Ie.prototype,"route",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ie.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A],json:{write:!0}})],Ie.prototype,"stops",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,json:{write:!0}})],Ie.prototype,"traversedTurns",void 0),Ie=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteResult")],Ie);const Oe=Ie;function je(e){return e?pe.A.fromJSON(e).features.filter(a.Ru):[]}let Ne=class extends Z.o{constructor(e){super(e),this.checksum=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routeResults=null}readPointBarriers(e,t){return je(t.barriers)}readPolylineBarriers(e){return je(e)}readPolygonBarriers(e){return je(e)}};function Ze(e){return e instanceof pe.A}async function De(e,t,r){const i=[],n=[],o={},s={},a=(0,$.Dl)(e),{path:l}=a;Ze(t.stops)&&ee(t.stops.features,n,"stops.features",o),Ze(t.pointBarriers)&&ee(t.pointBarriers.features,n,"pointBarriers.features",o),Ze(t.polylineBarriers)&&ee(t.polylineBarriers.features,n,"polylineBarriers.features",o),Ze(t.polygonBarriers)&&ee(t.polygonBarriers.features,n,"polygonBarriers.features",o);const u=await(0,ie.el)(n);for(const e in o){const t=o[e];i.push(e),s[e]=u.slice(t[0],t[1])}if(function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if(null!=e&&e.hasZ)return!0}return!1}(s,i)){let e=null;try{e=await te(l,t.apiKey,r)}catch{}e&&!e.hasZ&&function(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}p.A.getLogger("esri.rest.networkService").warnOnce("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}(s,i)}for(const e in s)s[e].forEach((r,i)=>{(0,re.Jt)(t,e)[i].geometry=r});const c={...r,query:{...a.query,...ue(t),f:"json"}},d=l.endsWith("/solve")?l:`${l}/solve`,{data:y}=await(0,k.A)(d,c);return function(e){const{barriers:t,checksum:r,directionLines:i,directionPoints:n,directions:o,messages:s,polygonBarriers:a,polylineBarriers:l,routes:u,stops:p,traversedEdges:c,traversedJunctions:d,traversedTurns:y}=e,m=e=>{const t=f.find(t=>t.routeName===e);if(null!=t)return t;const r={routeId:f.length+1,routeName:e};return f.push(r),r},h=e=>{const t=f.find(t=>t.routeId===e);if(null!=t)return t;const r={routeId:e,routeName:null};return f.push(r),r},f=[];u?.features.forEach((e,t)=>{e.geometry.spatialReference=u.spatialReference??void 0;const r=e.attributes.Name,i=t+1;f.push({routeId:i,routeName:r,route:e})}),o?.forEach(e=>{const{routeName:t}=e;m(t).directions=e});const g=p?.features.every(e=>null==e.attributes.RouteName)&&f.length>0?f[0].routeName:null;return p?.features.forEach(e=>{e.geometry&&(e.geometry.spatialReference??=p.spatialReference??void 0);const t=g??e.attributes.RouteName,r=m(t);r.stops??=[],r.stops.push(e)}),i?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:n,spatialReference:o}=i;r.directionLines??={features:[],geometryType:n,spatialReference:o},r.directionLines.features.push(e)}),n?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:o}=n;r.directionPoints??={features:[],geometryType:i,spatialReference:o},r.directionPoints.features.push(e)}),c?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:n}=c;r.traversedEdges??={features:[],geometryType:i,spatialReference:n},r.traversedEdges.features.push(e)}),d?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t),{geometryType:i,spatialReference:n}=d;r.traversedJunctions??={features:[],geometryType:i,spatialReference:n},r.traversedJunctions.features.push(e)}),y?.features.forEach(e=>{const t=e.attributes.RouteID,r=h(t);r.traversedTurns??={features:[]},r.traversedTurns.features.push(e)}),Ne.fromJSON({barriers:t,checksum:r,messages:s,polygonBarriers:a,polylineBarriers:l,routeResults:f})}(y)}var xe;(0,i.Cg)([(0,g.MZ)({type:String})],Ne.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:[he]})],Ne.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)("pointBarriers",["barriers"])],Ne.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)("polylineBarriers")],Ne.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[o.A]})],Ne.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)("polygonBarriers")],Ne.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({type:[Oe]})],Ne.prototype,"routeResults",void 0),Ne=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSolveResult")],Ne);let Be=class extends((0,K.OU)(Z.o)){static{xe=this}constructor(e){super(e),this.directionLineType=null,this.directionPointId=null,this.distance=null,this.duration=null,this.fromLevel=null,this.geometry=null,this.objectId=null,this.popupTemplate=null,this.symbol=null,this.toLevel=null,this.type="direction-line"}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"DirectionLineType",alias:"Line Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DirectionPointID",alias:"Direction Point ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FromLevel",alias:"From Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Meters",alias:"Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Minutes",alias:"Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ToLevel",alias:"To Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new xe({directionLineType:U.gD.fromJSON(e.attributes.DirectionLineType),directionPointId:e.attributes.DirectionPointID,distance:e.attributes.Meters,duration:e.attributes.Minutes,fromLevel:e.attributes.FromLevel??null,geometry:e.geometry,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,symbol:e.symbol,toLevel:e.attributes.ToLevel??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionLineType:this.directionLineType?U.gD.toJSON(this.directionLineType):null,DirectionPointID:this.directionPointId,Meters:this.distance,Minutes:this.duration};return null!=this.fromLevel&&(e.FromLevel=this.fromLevel),null!=this.toLevel&&(e.ToLevel=this.toLevel),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Re;(0,i.Cg)([(0,g.MZ)({type:U.gD.apiValues,json:{read:{source:"attributes.DirectionLineType",reader:U.gD.read}}})],Be.prototype,"directionLineType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DirectionPointID"}}})],Be.prototype,"directionPointId",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Meters"}}})],Be.prototype,"distance",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Minutes"}}})],Be.prototype,"duration",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FromLevel"}}})],Be.prototype,"fromLevel",void 0),(0,i.Cg)([(0,g.MZ)({type:fe.A})],Be.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Be.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Be.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Be.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ToLevel"}}})],Be.prototype,"toLevel",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Be.prototype,"type",void 0),Be=xe=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionLine")],Be);let Fe=class extends((0,K.OU)(Z.o)){static{Re=this}constructor(e){super(e),this.alternateName=null,this.arrivalTime=null,this.arrivalTimeOffset=null,this.azimuth=null,this.branchName=null,this.directionPointType=null,this.displayText=null,this.exitName=null,this.geometry=null,this.intersectingName=null,this.level=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.sequence=null,this.shortVoiceInstruction=null,this.stopId=null,this.symbol=null,this.towardName=null,this.type="direction-point",this.voiceInstruction=null}readArrivalTime(e,t){return null!=t.attributes.ArrivalTime?new Date(t.attributes.ArrivalTime):null}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AlternateName",alias:"Alternate Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Azimuth",alias:"Azimuth",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BranchName",alias:"Branch Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"DirectionPointType",alias:"Directions Point Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DisplayText",alias:"Display Text",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"ExitName",alias:"Exit Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"IntersectingName",alias:"Intersecting Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Level",alias:"Level",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ShortVoiceInstruction",alias:"Short Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"StopID",alias:"Stop ID",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TowardName",alias:"Toward Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048},{name:"VoiceInstruction",alias:"Voice Instruction",type:"esriFieldTypeString",editable:!0,nullable:!0,length:2048}]}static fromGraphic(e){return new Re({alternateName:e.attributes.AlternateName??null,arrivalTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arrivalTimeOffset:e.attributes.ArrivalUTCOffset??null,azimuth:e.attributes.Azimuth??null,branchName:e.attributes.BranchName??null,directionPointType:U._6.fromJSON(e.attributes.DirectionPointType),displayText:e.attributes.DisplayText??null,exitName:e.attributes.ExitName??null,geometry:e.geometry,intersectingName:e.attributes.IntersectingName??null,level:e.attributes.Level??null,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,sequence:e.attributes.Sequence,shortVoiceInstruction:e.attributes.ShortVoiceInstruction??null,stopId:e.attributes.StopID??null,symbol:e.symbol,towardName:e.attributes.TowardName??null,voiceInstruction:e.attributes.VoiceInstruction??null})}toGraphic(){const e={ObjectID:this.objectId,DirectionPointType:this.directionPointType?U._6.toJSON(this.directionPointType):null,Sequence:this.sequence,StopID:this.stopId};return null!=this.alternateName&&(e.AlternateName=this.alternateName),null!=this.arrivalTime&&(e.ArrivalTime=this.arrivalTime.getTime()),null!=this.arrivalTimeOffset&&(e.ArrivalUTCOffset=this.arrivalTimeOffset),null!=this.azimuth&&(e.Azimuth=this.azimuth),null!=this.branchName&&(e.BranchName=this.branchName),null!=this.displayText&&(e.DisplayText=this.displayText),null!=this.exitName&&(e.ExitName=this.exitName),null!=this.intersectingName&&(e.IntersectingName=this.intersectingName),null!=this.level&&(e.Level=this.level),null!=this.name&&(e.Name=this.name),null!=this.shortVoiceInstruction&&(e.ShortVoiceInstruction=this.shortVoiceInstruction),null!=this.towardName&&(e.TowardName=this.towardName),null!=this.voiceInstruction&&(e.VoiceInstruction=this.voiceInstruction),new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var Pe;(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.AlternateName"}}})],Fe.prototype,"alternateName",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Fe.prototype,"arrivalTime",void 0),(0,i.Cg)([(0,Y.w)("arrivalTime",["attributes.ArrivalTime"])],Fe.prototype,"readArrivalTime",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ArrivalUTCOffset"}}})],Fe.prototype,"arrivalTimeOffset",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Azimuth"}}})],Fe.prototype,"azimuth",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.BranchName"}}})],Fe.prototype,"branchName",void 0),(0,i.Cg)([(0,g.MZ)({type:U._6.apiValues,json:{read:{source:"attributes.DirectionPointType",reader:U._6.read}}})],Fe.prototype,"directionPointType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DisplayText"}}})],Fe.prototype,"displayText",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ExitName"}}})],Fe.prototype,"exitName",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A})],Fe.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.IntersectingName"}}})],Fe.prototype,"intersectingName",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Level"}}})],Fe.prototype,"level",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Fe.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Fe.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Fe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Sequence"}}})],Fe.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ShortVoiceInstruction"}}})],Fe.prototype,"shortVoiceInstruction",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopID"}}})],Fe.prototype,"stopId",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Fe.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.TowardName"}}})],Fe.prototype,"towardName",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Fe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.VoiceInstruction"}}})],Fe.prototype,"voiceInstruction",void 0),Fe=Re=(0,i.Cg)([(0,g.$K)("esri.rest.support.DirectionPoint")],Fe);let _e=class extends((0,K.OU)(Z.o)){static{Pe=this}constructor(e){super(e),this.addedCost=null,this.barrierType=null,this.costs=null,this.curbApproach=null,this.fullEdge=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.sideOfEdge=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.type="point-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AddedCost",alias:"Added Cost",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"FullEdge",alias:"Full Edge",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0}]}static fromGraphic(e){return new Pe({addedCost:e.attributes.AddedCost??null,barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,curbApproach:null!=e.attributes.CurbApproach?U.JJ.fromJSON(e.attributes.CurbApproach):null,fullEdge:null!=e.attributes.FullEdge?U.fe.fromJSON(e.attributes.FullEdge):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,status:null!=e.attributes.Status?U.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,AddedCost:this.addedCost,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,CurbApproach:this.curbApproach?U.JJ.toJSON(this.curbApproach):null,FullEdge:this.fullEdge?U.fe.toJSON(this.fullEdge):null,Name:this.name,Status:this.status?U.$r.toJSON(this.status):null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],_e.prototype,"addedCost",void 0),(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.iM.read},write:{writer:U.iM.write}}})],_e.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],_e.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],_e.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],_e.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.CurbApproach",reader:U.JJ.read}}})],_e.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:U.fe.apiValues,json:{name:"attributes.FullEdge",read:{reader:U.fe.read},write:{writer:U.fe.write}}})],_e.prototype,"fullEdge",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],_e.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],_e.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],_e.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],_e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],_e.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({type:U.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:U.mt.read},write:{writer:U.mt.write}}})],_e.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],_e.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],_e.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:U.$r.apiValues,json:{read:{source:"attributes.Status",reader:U.$r.read}}})],_e.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],_e.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],_e.prototype,"type",void 0),_e=Pe=(0,i.Cg)([(0,g.$K)("esri.rest.support.PointBarrier")],_e);var Ee,Le=r(39829);let Je=class extends((0,K.OU)(Z.o)){static{Ee=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polygon-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}writeCosts(e,t){oe(e,t,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new Ee({barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name??null,ScaleFactor:this.scaleFactor??null};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};var ke;(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{name:"attributes.BarrierType",read:{reader:U.iM.read},write:{writer:U.iM.write}}})],Je.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],Je.prototype,"readCosts",null),(0,i.Cg)([(0,H.K)("costs")],Je.prototype,"writeCosts",null),(0,i.Cg)([(0,g.MZ)({type:Le.A,json:{write:!0}})],Je.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],Je.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],Je.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Je.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],Je.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Je.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Je.prototype,"type",void 0),Je=Ee=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolygonBarrier")],Je);let $e=class extends((0,K.OU)(Z.o)){static{ke=this}constructor(e){super(e),this.barrierType=null,this.costs=null,this.geometry=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.scaleFactor=null,this.symbol=null,this.type="polyline-barrier"}readCosts(e,t){return ne(t.attributes,"Attr_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"BarrierType",alias:"Barrier Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Costs",alias:"Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"ScaleFactor",alias:"Scale Factor",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new ke({barrierType:null!=e.attributes.BarrierType?U.iM.fromJSON(e.attributes.BarrierType):null,costs:null!=e.attributes.Costs?se(JSON.parse(e.attributes.Costs)):null,geometry:e.geometry,name:e.attributes.Name??null,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,scaleFactor:e.attributes.ScaleFactor??null,symbol:e.symbol})}toGraphic(){const e={ObjectID:this.objectId,BarrierType:this.barrierType?U.iM.toJSON(this.barrierType):null,Costs:this.costs?JSON.stringify(ae(this.costs)):null,Name:this.name,ScaleFactor:this.scaleFactor};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)({type:U.iM.apiValues,json:{read:{source:"attributes.BarrierType",reader:U.iM.read}}})],$e.prototype,"barrierType",void 0),(0,i.Cg)([(0,g.MZ)()],$e.prototype,"costs",void 0),(0,i.Cg)([(0,Y.w)("costs",["attributes"])],$e.prototype,"readCosts",null),(0,i.Cg)([(0,g.MZ)({type:fe.A,json:{write:!0}})],$e.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],$e.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],$e.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],$e.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)()],$e.prototype,"scaleFactor",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],$e.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],$e.prototype,"type",void 0),$e=ke=(0,i.Cg)([(0,g.$K)("esri.rest.support.PolylineBarrier")],$e);let Ue=class extends Z.o{constructor(e){super(e),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}};var We;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],Ue.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],Ue.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],Ue.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ue.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ue.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],Ue.prototype,"travelMode",void 0),Ue=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteSettings")],Ue);let Ge=class extends((0,K.OU)(Z.o)){static{We=this}constructor(e){super(e),this.analysisSettings=null,this.endTime=null,this.endTimeOffset=null,this.firstStopId=null,this.geometry=null,this.lastStopId=null,this.messages=null,this.name=null,this.objectId=null,this.popupTemplate=null,this.startTime=null,this.startTimeOffset=null,this.stopCount=null,this.symbol=null,this.totalCosts=null,this.totalDistance=null,this.totalDuration=null,this.totalLateDuration=null,this.totalViolations=null,this.totalWait=null,this.totalWaitDuration=null,this.type="route-info",this.version="1.0.0"}readEndTime(e,t){return null!=t.attributes.EndTimeUTC?new Date(t.attributes.EndTimeUTC):null}readEndTimeOffset(e,t){return le(t.attributes.EndTime,t.attributes.EndTimeUTC)}readStartTime(e,t){return null!=t.attributes.StartTimeUTC?new Date(t.attributes.StartTimeUTC):null}readStartTimeOffset(e,t){return le(t.attributes.StartTime,t.attributes.StartTimeUTC)}readTotalCosts(e,t){return ne(t.attributes,"Total_")}readTotalViolations(e,t){return ne(t.attributes,"TotalViolation_")}readTotalWait(e,t){return ne(t.attributes,"TotalWait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"AnalysisSettings",alias:"Analysis Settings",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"EndTime",alias:"End Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"EndUTCOffset",alias:"End Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Messages",alias:"Messages",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1024},{name:"StartTime",alias:"Start Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"StartUTCOffset",alias:"Start Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TotalCosts",alias:"Total Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"TotalLateMinutes",alias:"Total Late Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMeters",alias:"Total Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalMinutes",alias:"Total Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"TotalWaitMinutes",alias:"Total Wait Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Version",alias:"Version",type:"esriFieldTypeString",editable:!0,nullable:!0,length:16}]}static fromGraphic(e){return new We({analysisSettings:null!=e.attributes.AnalysisSettings?Ue.fromJSON(JSON.parse(e.attributes.AnalysisSettings)):null,endTime:null!=e.attributes.EndTime?new Date(e.attributes.EndTime):null,endTimeOffset:e.attributes.EndUTCOffset??null,geometry:e.geometry,messages:null!=e.attributes.Messages?JSON.parse(e.attributes.Messages):null,name:e.attributes.RouteName,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,startTime:null!=e.attributes.StartTime?new Date(e.attributes.StartTime):null,startTimeOffset:e.attributes.StartUTCOffset??null,symbol:e.symbol,totalCosts:null!=e.attributes.TotalCosts?se(JSON.parse(e.attributes.TotalCosts)):null,totalDistance:e.attributes.TotalMeters??null,totalDuration:e.attributes.TotalMinutes??null,totalLateDuration:e.attributes.TotalLateMinutes??null,totalWaitDuration:e.attributes.TotalWaitMinutes??null,version:e.attributes.Version})}toGraphic(){const e={ObjectID:this.objectId,AnalysisSettings:this.analysisSettings?JSON.stringify(this.analysisSettings.toJSON()):null,EndTime:this.endTime?.getTime()??null,EndUTCOffset:this.endTimeOffset,Messages:this.messages?JSON.stringify(this.messages):null,RouteName:this.name,StartTime:this.startTime?.getTime()??null,StartUTCOffset:this.startTimeOffset,TotalCosts:this.totalCosts?JSON.stringify(ae(this.totalCosts)):null,TotalLateMinutes:this.totalLateDuration,TotalMeters:this.totalDistance,TotalMinutes:this.totalDuration,TotalWaitMinutes:this.totalWaitDuration,Version:this.version};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"analysisSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ge.prototype,"endTime",void 0),(0,i.Cg)([(0,Y.w)("endTime",["attributes.EndTimeUTC"])],Ge.prototype,"readEndTime",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"endTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("endTimeOffset",["attributes.EndTime","attributes.EndTimeUTC"])],Ge.prototype,"readEndTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.FirstStopID"}}})],Ge.prototype,"firstStopId",void 0),(0,i.Cg)([(0,g.MZ)({type:fe.A})],Ge.prototype,"geometry",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.LastStopID"}}})],Ge.prototype,"lastStopId",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"messages",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.Name"}}})],Ge.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.ObjectID"}}})],Ge.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],Ge.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:Date})],Ge.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime",["attributes.StartTimeUTC"])],Ge.prototype,"readStartTime",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"startTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("startTimeOffset",["attributes.StartTime","attributes.StartTimeUTC"])],Ge.prototype,"readStartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.StopCount"}}})],Ge.prototype,"stopCount",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],Ge.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalCosts",void 0),(0,i.Cg)([(0,Y.w)("totalCosts",["attributes"])],Ge.prototype,"readTotalCosts",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalDistance",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalLateDuration",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalViolations",void 0),(0,i.Cg)([(0,Y.w)("totalViolations",["attributes"])],Ge.prototype,"readTotalViolations",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalWait",void 0),(0,i.Cg)([(0,Y.w)("totalWait",["attributes"])],Ge.prototype,"readTotalWait",null),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"totalWaitDuration",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Ge.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Ge.prototype,"version",void 0),Ge=We=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteInfo")],Ge);var Ve=r(56507),qe=r(24097),ze=r(65864),Ke=r(50498);let Ye=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.geometry=null,this.geometryType=null,this.name=null,this.spatialRelationship=null,this.type="layer",this.where=null}};(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],Ye.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({types:Ke.yR,json:{read:ze.rS,write:!0}})],Ye.prototype,"geometry",void 0),(0,i.Cg)([(0,W.e)(U.Vj)],Ye.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerName",write:!0}})],Ye.prototype,"name",void 0),(0,i.Cg)([(0,W.e)(U.vS,{name:"spatialRel"})],Ye.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],Ye.prototype,"where",void 0),Ye=(0,i.Cg)([(0,g.$K)("esri.rest.support.DataLayer")],Ye);var He=r(10107),Xe=r(64108);let Qe=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.name=null,this.where=null}};(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"name",void 0),(0,i.Cg)([(0,He.MZ)({json:{write:!0}})],Qe.prototype,"where",void 0),Qe=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingSource")],Qe);const et=Qe;let tt=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.allowAutoRelocate=null,this.sources=null}};(0,i.Cg)([(0,He.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"allowAutoRelocate",void 0),(0,i.Cg)([(0,He.MZ)({type:[et],json:{write:!0}})],tt.prototype,"sources",void 0),tt=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingBase")],tt);const rt=tt;let it=class extends rt{constructor(e){super(e),this.tolerance=null,this.toleranceUnits=null}};(0,i.Cg)([(0,He.MZ)({type:Number,json:{write:!0}})],it.prototype,"tolerance",void 0),(0,i.Cg)([(0,W.e)(U.Y8)],it.prototype,"toleranceUnits",void 0),it=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSetting")],it);const nt=it;let ot=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.stops=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],ot.prototype,"stops",void 0),(0,i.Cg)([(0,He.MZ)({type:nt,json:{name:"barriers",write:!0}})],ot.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,He.MZ)({type:rt,json:{write:!0}})],ot.prototype,"polygonBarriers",void 0),ot=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettingsOverrides")],ot);const st=ot;let at=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.default=null,this.overrides=null}};(0,i.Cg)([(0,He.MZ)({type:nt,json:{write:!0}})],at.prototype,"default",void 0),(0,i.Cg)([(0,He.MZ)({type:st,json:{write:!0}})],at.prototype,"overrides",void 0),at=(0,i.Cg)([(0,Xe.$)("esri.rest.support.LocateSettings")],at);const lt=at;var ut;let pt=class extends pe.A{static{ut=this}constructor(e){super(e),this.doNotLocateOnRestrictedElements=null}clone(){return new ut({doNotLocateOnRestrictedElements:this.doNotLocateOnRestrictedElements,...this.cloneProperties()})}};(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],pt.prototype,"doNotLocateOnRestrictedElements",void 0),pt=ut=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkFeatureSet")],pt);let ct=class extends((0,K.OU)(Z.o)){constructor(e){super(e),this.doNotLocateOnRestrictedElements=null,this.url=null}};var dt;(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"doNotLocateOnRestrictedElements",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],ct.prototype,"url",void 0),ct=(0,i.Cg)([(0,g.$K)("esri.rest.support.NetworkUrl")],ct);let yt=class extends((0,K.OU)(Z.o)){static{dt=this}constructor(e){super(e),this.accumulateAttributes=null,this.apiKey=null,this.attributeParameterValues=null,this.checksum=null,this.directionsLanguage=null,this.directionsLengthUnits=null,this.directionsOutputType=null,this.directionsStyleName=null,this.directionsTimeAttribute=null,this.findBestSequence=null,this.geometryPrecision=null,this.geometryPrecisionM=null,this.geometryPrecisionZ=null,this.ignoreInvalidLocations=null,this.impedanceAttribute=null,this.locateSettings=null,this.outputGeometryPrecision=null,this.outputGeometryPrecisionUnits=null,this.outputLines="true-shape",this.outSpatialReference=null,this.overrides=null,this.pointBarriers=null,this.polygonBarriers=null,this.polylineBarriers=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.preserveObjectID=null,this.restrictionAttributes=null,this.restrictUTurns=null,this.returnBarriers=!1,this.returnDirections=!1,this.returnEmptyResults=null,this.returnPolygonBarriers=!1,this.returnPolylineBarriers=!1,this.returnRoutes=!0,this.returnStops=!1,this.returnTraversedEdges=null,this.returnTraversedJunctions=null,this.returnTraversedTurns=null,this.returnZ=!0,this.startTime=null,this.startTimeIsUTC=!0,this.stops=null,this.timeWindowsAreUTC=null,this.travelMode=null,this.useHierarchy=null,this.useTimeWindows=null}static from(e){return(0,Ve.PZ)(dt,e)}readAccumulateAttributes(e){return null==e?null:e.map(e=>U.et.fromJSON(e))}writeAccumulateAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.et.toJSON(e)))}writePointBarriers(e,t,r){mt(e,t,r)}writePolygonBarrier(e,t,r){mt(e,t,r)}writePolylineBarrier(e,t,r){mt(e,t,r)}readRestrictionAttributes(e){return null==e?null:e.map(e=>U.OC.fromJSON(e))}writeRestrictionAttributes(e,t,r){e?.length&&(t[r]=e.map(e=>U.OC.toJSON(e)))}readStartTime(e,t){const{startTime:r}=t;return null==r?null:"now"===r?"now":new Date(r)}writeStartTime(e,t){null!=e&&(t.startTime="now"===e?"now":e.getTime())}readStops(e,t){return function(e){return function(e){return e&&"type"in e}(e)?Ye.fromJSON(e):function(e){return e&&"url"in e}(e)?ct.fromJSON(e):function(e){return e&&"features"in e&&"doNotLocateOnRestrictedElements"in e}(e)?pt.fromJSON(e):function(e){return e&&"features"in e}(e)?pe.A.fromJSON(e):null}(t.stops)}writeStops(e,t,r){mt(e,t,r)}};function mt(e,t,r){null!=e&&(t[r]=l.A.isCollection(e)?{features:e.toArray().map(e=>e.toJSON())}:e.toJSON())}var ht;(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],yt.prototype,"accumulateAttributes",void 0),(0,i.Cg)([(0,Y.w)("accumulateAttributes")],yt.prototype,"readAccumulateAttributes",null),(0,i.Cg)([(0,H.K)("accumulateAttributes")],yt.prototype,"writeAccumulateAttributes",null),(0,i.Cg)([(0,g.MZ)(qe.K)],yt.prototype,"apiKey",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"attributeParameterValues",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:!0}})],yt.prototype,"directionsLanguage",void 0),(0,i.Cg)([(0,W.e)(U.Z7)],yt.prototype,"directionsLengthUnits",void 0),(0,i.Cg)([(0,W.e)(U.aJ)],yt.prototype,"directionsOutputType",void 0),(0,i.Cg)([(0,W.e)(U.$n)],yt.prototype,"directionsStyleName",void 0),(0,i.Cg)([(0,W.e)(U.Mm,{name:"directionsTimeAttributeName",ignoreUnknown:!1})],yt.prototype,"directionsTimeAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"findBestSequence",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionM",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"geometryPrecisionZ",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"ignoreInvalidLocations",void 0),(0,i.Cg)([(0,W.e)(U.et,{name:"impedanceAttributeName",ignoreUnknown:!1})],yt.prototype,"impedanceAttribute",void 0),(0,i.Cg)([(0,g.MZ)({type:lt,json:{write:!0}})],yt.prototype,"locateSettings",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],yt.prototype,"outputGeometryPrecision",void 0),(0,i.Cg)([(0,W.e)(U.hY)],yt.prototype,"outputGeometryPrecisionUnits",void 0),(0,i.Cg)([(0,W.e)(U.Sr)],yt.prototype,"outputLines",void 0),(0,i.Cg)([(0,g.MZ)({type:T.A,json:{name:"outSR",write:!0}})],yt.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"overrides",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"barriers",write:!0}})],yt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,H.K)("pointBarriers")],yt.prototype,"writePointBarriers",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,H.K)("polygonBarriers")],yt.prototype,"writePolygonBarrier",null),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,H.K)("polylineBarriers")],yt.prototype,"writePolylineBarrier",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveFirstStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveLastStop",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"preserveObjectID",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],json:{name:"restrictionAttributeNames",write:!0}})],yt.prototype,"restrictionAttributes",void 0),(0,i.Cg)([(0,Y.w)("restrictionAttributes")],yt.prototype,"readRestrictionAttributes",null),(0,i.Cg)([(0,H.K)("restrictionAttributes")],yt.prototype,"writeRestrictionAttributes",null),(0,i.Cg)([(0,W.e)(U.hE)],yt.prototype,"restrictUTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnDirections",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnEmptyResults",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolygonBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnPolylineBarriers",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnRoutes",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnStops",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedEdges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedJunctions",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnTraversedTurns",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"returnZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"startTime",void 0),(0,i.Cg)([(0,Y.w)("startTime")],yt.prototype,"readStartTime",null),(0,i.Cg)([(0,H.K)("startTime")],yt.prototype,"writeStartTime",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"startTimeIsUTC",void 0),(0,i.Cg)([(0,g.MZ)({json:{write:!0}})],yt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)("stops")],yt.prototype,"readStops",null),(0,i.Cg)([(0,H.K)("stops")],yt.prototype,"writeStops",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"timeWindowsAreUTC",void 0),(0,i.Cg)([(0,g.MZ)({type:X,json:{write:!0}})],yt.prototype,"travelMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useHierarchy",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{write:!0}})],yt.prototype,"useTimeWindows",void 0),yt=dt=(0,i.Cg)([(0,g.$K)("esri.rest.support.RouteParameters")],yt);let ft=class extends((0,K.OU)(Z.o)){static{ht=this}constructor(e){super(e),this.arriveCurbApproach=null,this.arriveTime=null,this.arriveTimeOffset=null,this.bearing=null,this.bearingTol=null,this.cumulativeCosts=null,this.cumulativeDistance=null,this.cumulativeDuration=null,this.curbApproach=null,this.departCurbApproach=null,this.departTime=null,this.departTimeOffset=null,this.distanceToNetworkInMeters=null,this.lateDuration=null,this.locationType=null,this.name=null,this.navLatency=null,this.objectId=null,this.popupTemplate=null,this.positionAlong=null,this.routeName=null,this.serviceCosts=null,this.serviceDistance=null,this.serviceDuration=null,this.sequence=null,this.sideOfEdge=null,this.snapX=null,this.snapY=null,this.snapZ=null,this.sourceId=null,this.sourceOid=null,this.status=null,this.symbol=null,this.timeWindowEnd=null,this.timeWindowEndOffset=null,this.timeWindowStart=null,this.timeWindowStartOffset=null,this.type="stop",this.violations=null,this.waitDuration=null,this.wait=null}readArriveTimeOffset(e,t){return le(t.attributes.ArriveTime,t.attributes.ArriveTimeUTC)}readCumulativeCosts(e,t){return ne(t.attributes,"Cumul_")}readDepartTimeOffset(e,t){return le(t.attributes.DepartTime,t.attributes.DepartTimeUTC)}set geometry(e){this._get("geometry")&&(this._set("positionAlong",null),this._set("sideOfEdge",null),this._set("sourceId",null),this._set("sourceOid",null),this._set("status",null)),this._set("geometry",e)}readServiceCosts(e,t){return ne(t.attributes,"Attr_")}writeServiceCosts(e,t){oe(e,t,"Attr_")}writeTimeWindowEnd(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowEnd=e.getTime())}writeTimeWindowStart(e,t){null!=e&&(t.attributes||(t.attributes={}),t.attributes.TimeWindowStart=e.getTime())}readViolations(e,t){return ne(t.attributes,"Violation_")}readWait(e,t){return ne(t.attributes,"Wait_")}static{this.fields=[{name:"ObjectID",alias:"ObjectID",type:"esriFieldTypeOID",editable:!1,nullable:!1},{name:"ArrivalCurbApproach",alias:"Arrival Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ArrivalTime",alias:"Arrival Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"ArrivalUTCOffset",alias:"Arrival Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"CumulativeCosts",alias:"Cumulative Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"CumulativeMeters",alias:"Cumulative Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CumulativeMinutes",alias:"Cumulative Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"CurbApproach",alias:"Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureCurbApproach",alias:"Departure Curb Approach",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"DepartureTime",alias:"Departure Time",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"DepartureUTCOffset",alias:"Departure Time Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"LateMinutes",alias:"Minutes Late",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"LocationType",alias:"Location Type",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"Name",alias:"Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"RouteName",alias:"Route Name",type:"esriFieldTypeString",editable:!0,nullable:!0,length:255},{name:"Sequence",alias:"Sequence",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"ServiceCosts",alias:"Service Costs",type:"esriFieldTypeString",editable:!0,nullable:!0,length:1048576},{name:"ServiceMeters",alias:"Service Meters",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"ServiceMinutes",alias:"Service Minutes",type:"esriFieldTypeDouble",editable:!0,nullable:!0},{name:"Status",alias:"Status",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowEnd",alias:"Time Window End",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowEndUTCOffset",alias:"Time Window End Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"TimeWindowStart",alias:"Time Window Start",type:"esriFieldTypeDate",editable:!0,nullable:!0,length:36},{name:"TimeWindowStartUTCOffset",alias:"Time Window Start Offset",type:"esriFieldTypeInteger",editable:!0,nullable:!0},{name:"WaitMinutes",alias:"Minutes Wait",type:"esriFieldTypeDouble",editable:!0,nullable:!0}]}static fromGraphic(e){return new ht({arriveCurbApproach:null!=e.attributes.ArrivalCurbApproach?U.JJ.fromJSON(e.attributes.ArrivalCurbApproach):null,arriveTime:null!=e.attributes.ArrivalTime?new Date(e.attributes.ArrivalTime):null,arriveTimeOffset:e.attributes.ArrivalUTCOffset,cumulativeCosts:null!=e.attributes.CumulativeCosts?se(JSON.parse(e.attributes.CumulativeCosts)):null,cumulativeDistance:e.attributes.CumulativeMeters??null,cumulativeDuration:e.attributes.CumulativeMinutes??null,curbApproach:null!=e.attributes.CurbApproach?U.JJ.fromJSON(e.attributes.CurbApproach):null,departCurbApproach:null!=e.attributes.DepartureCurbApproach?U.JJ.fromJSON(e.attributes.DepartureCurbApproach):null,departTime:null!=e.attributes.DepartureTime?new Date(e.attributes.DepartureTime):null,departTimeOffset:e.attributes.DepartureUTCOffset??null,geometry:e.geometry,lateDuration:e.attributes.LateMinutes??null,locationType:null!=e.attributes.LocationType?U.EM.fromJSON(e.attributes.LocationType):null,name:e.attributes.Name,objectId:e.attributes.ObjectID??e.attributes.__OBJECTID,popupTemplate:e.popupTemplate,routeName:e.attributes.RouteName,sequence:e.attributes.Sequence??null,serviceCosts:null!=e.attributes.ServiceCosts?se(JSON.parse(e.attributes.ServiceCosts)):null,serviceDistance:e.attributes.ServiceMeters??null,serviceDuration:e.attributes.ServiceMinutes??null,status:null!=e.attributes.Status?U.$r.fromJSON(e.attributes.Status):null,symbol:e.symbol,timeWindowEnd:null!=e.attributes.TimeWindowEnd?new Date(e.attributes.TimeWindowEnd):null,timeWindowEndOffset:e.attributes.TimeWindowEndUTCOffset??null,timeWindowStart:null!=e.attributes.TimeWindowStart?new Date(e.attributes.TimeWindowStart):null,timeWindowStartOffset:e.attributes.TimeWindowStartUTCOffset??null,waitDuration:e.attributes.WaitMinutes??null})}toGraphic(){const e={ObjectID:this.objectId,ArrivalCurbApproach:this.arriveCurbApproach?U.JJ.toJSON(this.arriveCurbApproach):null,ArrivalTime:this.arriveTime?.getTime()??null,ArrivalUTCOffset:this.arriveTimeOffset,CumulativeCosts:this.cumulativeCosts?JSON.stringify(ae(this.cumulativeCosts)):null,CumulativeMeters:this.cumulativeDistance,CumulativeMinutes:this.cumulativeDuration,CurbApproach:this.curbApproach?U.JJ.toJSON(this.curbApproach):null,DepartureCurbApproach:this.departCurbApproach?U.JJ.toJSON(this.departCurbApproach):null,DepartureTime:this.departTime?.getTime()??null,DepartureUTCOffset:this.departTimeOffset,LateMinutes:this.lateDuration,LocationType:this.locationType?U.EM.toJSON(this.locationType):null,Name:this.name,RouteName:this.routeName,Sequence:this.sequence,ServiceCosts:this.serviceCosts?JSON.stringify(ae(this.serviceCosts)):null,ServiceMeters:this.serviceDistance,ServiceMinutes:this.serviceDuration,Status:this.status?U.$r.toJSON(this.status):null,TimeWindowEnd:this.timeWindowEnd?.getTime()??null,TimeWindowEndUTCOffset:this.timeWindowEndOffset??this.arriveTimeOffset,TimeWindowStart:this.timeWindowStart?.getTime()??null,TimeWindowStartUTCOffset:this.timeWindowStartOffset??this.arriveTimeOffset,WaitMinutes:this.waitDuration};return new o.A({geometry:this.geometry,attributes:e,symbol:this.symbol,popupTemplate:this.popupTemplate})}};function gt(e){if(!e.length)return;const t=e.toArray(),r=t.map(({objectId:e})=>e).filter(e=>null!=e);let i=Math.max(...r,0);for(const e of t)e.objectId??=++i}function bt(e,t){return e.length===t.length&&vt(e)&&vt(t)}function vt(e){return e.every(({objectId:e})=>null!=e)}function wt(e,t){return!!e.length||!!t.length}function Ct(e){return e.length?e:null}function Tt(e){switch(e){case"esriGeometryPoint":return{type:"esriSMS",style:"esriSMSCircle",size:12,color:[0,0,0,0],outline:Tt("esriGeometryPolyline")};case"esriGeometryPolyline":return{type:"esriSLS",style:"esriSLSSolid",width:1,color:[0,0,0,0]};case"esriGeometryPolygon":return{type:"esriSFS",style:"esriSFSNull",outline:Tt("esriGeometryPolyline")}}}function Mt(e){return"layers"in e}async function St(e){const t=T.A.WGS84;return await(0,C.initializeProjection)(e.spatialReference,t),(0,C.project)(e,t)}function At(e,t){if(t&&e?.length&&!e.every(({symbol:e})=>!!e))for(const r of e)r.symbol=t}function It(e,t){switch(t){case"seconds":return e/60;case"hours":return 60*e;case"days":return 60*e*24;default:return e}}function Ot(e,t){return"decimal-degrees"===t||"points"===t||"unknown"===t?e:(0,h.oU)(e,t,"meters")}(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.ArrivalCurbApproach",reader:U.JJ.read}}})],ft.prototype,"arriveCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.ArriveTimeUTC"}}})],ft.prototype,"arriveTime",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"arriveTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("arriveTimeOffset",["attributes.ArriveTime","attributes.ArriveTimeUTC"])],ft.prototype,"readArriveTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Bearing",read:!1,write:!0}})],ft.prototype,"bearing",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.BearingTol",read:!1,write:!0}})],ft.prototype,"bearingTol",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeCosts",void 0),(0,i.Cg)([(0,Y.w)("cumulativeCosts",["attributes"])],ft.prototype,"readCumulativeCosts",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"cumulativeDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{name:"attributes.CurbApproach",read:{reader:U.JJ.read},write:{writer:U.JJ.write}}})],ft.prototype,"curbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:U.JJ.apiValues,json:{read:{source:"attributes.DepartCurbApproach",reader:U.JJ.read}}})],ft.prototype,"departCurbApproach",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{read:{source:"attributes.DepartTimeUTC"}}})],ft.prototype,"departTime",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"departTimeOffset",void 0),(0,i.Cg)([(0,Y.w)("departTimeOffset",["attributes.DepartTime","attributes.DepartTimeUTC"])],ft.prototype,"readDepartTimeOffset",null),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.DistanceToNetworkInMeters"}}})],ft.prototype,"distanceToNetworkInMeters",void 0),(0,i.Cg)([(0,g.MZ)({type:ge.A,json:{write:!0},value:null})],ft.prototype,"geometry",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"lateDuration",void 0),(0,i.Cg)([(0,g.MZ)({type:U.EM.apiValues,json:{name:"attributes.LocationType",read:{reader:U.EM.read},write:{writer:U.EM.write}}})],ft.prototype,"locationType",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Name"}})],ft.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.NavLatency",read:!1,write:!0}})],ft.prototype,"navLatency",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.ObjectID"}})],ft.prototype,"objectId",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A})],ft.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.PosAlong"}})],ft.prototype,"positionAlong",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.RouteName"}})],ft.prototype,"routeName",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceCosts",void 0),(0,i.Cg)([(0,Y.w)("serviceCosts",["attributes"])],ft.prototype,"readServiceCosts",null),(0,i.Cg)([(0,H.K)("serviceCosts")],ft.prototype,"writeServiceCosts",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceDistance",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"serviceDuration",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.Sequence"}})],ft.prototype,"sequence",void 0),(0,i.Cg)([(0,g.MZ)({type:U.mt.apiValues,json:{name:"attributes.SideOfEdge",read:{reader:U.mt.read},write:{writer:U.mt.write}}})],ft.prototype,"sideOfEdge",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapX"}}})],ft.prototype,"snapX",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapY"}}})],ft.prototype,"snapY",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:{source:"attributes.SnapZ"}}})],ft.prototype,"snapZ",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceID"}})],ft.prototype,"sourceId",void 0),(0,i.Cg)([(0,g.MZ)({json:{name:"attributes.SourceOID"}})],ft.prototype,"sourceOid",void 0),(0,i.Cg)([(0,g.MZ)({type:U.$r.apiValues,json:{name:"attributes.Status",read:{reader:U.$r.read},write:{writer:U.$r.write}}})],ft.prototype,"status",void 0),(0,i.Cg)([(0,g.MZ)({types:x.Es})],ft.prototype,"symbol",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowEnd"}})],ft.prototype,"timeWindowEnd",void 0),(0,i.Cg)([(0,H.K)("timeWindowEnd")],ft.prototype,"writeTimeWindowEnd",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"timeWindowEndOffset",void 0),(0,i.Cg)([(0,g.MZ)({type:Date,json:{name:"attributes.TimeWindowStart"}})],ft.prototype,"timeWindowStart",void 0),(0,i.Cg)([(0,H.K)("timeWindowStart")],ft.prototype,"writeTimeWindowStart",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"timeWindowStartOffset",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],ft.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"violations",void 0),(0,i.Cg)([(0,Y.w)("violations",["attributes"])],ft.prototype,"readViolations",null),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"waitDuration",void 0),(0,i.Cg)([(0,g.MZ)()],ft.prototype,"wait",void 0),(0,i.Cg)([(0,Y.w)("wait",["attributes"])],ft.prototype,"readWait",null),ft=ht=(0,i.Cg)([(0,g.$K)("esri.rest.support.Stop")],ft);const jt=l.A.ofType(Be),Nt=l.A.ofType(Fe),Zt=l.A.ofType(_e),Dt=l.A.ofType(Je),xt=l.A.ofType($e),Bt=l.A.ofType(ft);let Rt=class extends((0,A.dM)((0,j.j)((0,I.q)((0,O.A)((0,c.M)(S.A)))))){constructor(e){super(e),this._cachedServiceDescription=null,this._featureCollection=null,this._type="Feature Collection",this.checksum=null,this.defaultSymbols=new P,this.directionLines=null,this.directionPoints=null,this.featureCollectionType="route",this.legendEnabled=!1,this.maxScale=0,this.minScale=0,this.pointBarriers=new Zt,this.polygonBarriers=new Dt,this.polylineBarriers=new xt,this.routeInfo=null,this.spatialReference=T.A.WGS84,this.stops=new Bt,this.type="route"}initialize(){const e=()=>{this._setStopSymbol(this.stops)},t=()=>{At(this.pointBarriers,this.defaultSymbols.pointBarriers)},r=()=>{At(this.polylineBarriers,this.defaultSymbols.polylineBarriers)},i=()=>{At(this.polygonBarriers,this.defaultSymbols.polygonBarriers)};this.addHandles([(0,m.on)(()=>this.stops,"change",e,{sync:!0,onListenerAdd:e}),(0,m.on)(()=>this.pointBarriers,"change",t,{sync:!0,onListenerAdd:t}),(0,m.on)(()=>this.polylineBarriers,"change",r,{sync:!0,onListenerAdd:r}),(0,m.on)(()=>this.polygonBarriers,"change",i,{sync:!0,onListenerAdd:i})])}writeFeatureCollectionWebmap(e,t,r,i){const n=[this._writePolygonBarriers(),this._writePolylineBarriers(),this._writePointBarriers(),this._writeRouteInfo(),this._writeDirectionLines(),this._writeDirectionPoints(),this._writeStops()].filter(e=>!!e),o=n.map((e,t)=>t),s="web-map"===i.origin?"featureCollection.layers":"layers";(0,d.sM)(s,n,t),t.opacity=this.opacity,t.visibility=this.visible,t.visibleLayers=o}readDirectionLines(e,t){return this._getNetworkFeatures(t,"DirectionLines",e=>Be.fromGraphic(e))}readDirectionPoints(e,t){return this._getNetworkFeatures(t,"DirectionPoints",e=>Fe.fromGraphic(e))}get fullExtent(){const e=new v.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:T.A.WGS84});if(null!=this.routeInfo?.geometry)return this.routeInfo.geometry.extent??e;if(null==this.stops)return e;const t=this.stops.filter(e=>null!=e.geometry);if(t.length<2)return e;const{spatialReference:r}=t.at(0).geometry;if(null==r)return e;const i=t.toArray().map(e=>{const t=e.geometry;return[t.x,t.y]});return new w.A({points:i,spatialReference:r}).extent}readMaxScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.maxScale);return i?.layerDefinition.maxScale??0}readMinScale(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers,i=r?.find(e=>null!=e.layerDefinition.minScale);return i?.layerDefinition.minScale??0}readPointBarriers(e,t){return this._getNetworkFeatures(t,"Barriers",e=>_e.fromGraphic(e))}readPolygonBarriers(e,t){return this._getNetworkFeatures(t,"PolygonBarriers",e=>Je.fromGraphic(e))}readPolylineBarriers(e,t){return this._getNetworkFeatures(t,"PolylineBarriers",e=>$e.fromGraphic(e))}readRouteInfo(e,t){return this._getNetworkFeatures(t,"RouteInfo",e=>Ge.fromGraphic(e)).at(0)??null}readSpatialReference(e,t){const r=Mt(t)?t.layers:t.featureCollection?.layers;if(!r?.length)return T.A.WGS84;const{layerDefinition:i,featureSet:n}=r[0],o=n.features[0],s=o?.geometry?.spatialReference??n.spatialReference??i.spatialReference??i.extent.spatialReference??M.KK;return T.A.fromJSON(s)}readStops(e,t){return this._getNetworkFeatures(t,"Stops",e=>ft.fromGraphic(e),e=>this._setStopSymbol(e))}get title(){return this.routeInfo?.name??"Route"}set title(e){this._overrideIfSome("title",e)}get url(){return n.A.routeServiceUrl}set url(e){null!=e?this._set("url",(0,N.Jf)(e,p.A.getLogger(this))):this._set("url",n.A.routeServiceUrl)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}removeAll(){this.removeResult(),this.pointBarriers.removeAll(),this.polygonBarriers.removeAll(),this.polylineBarriers.removeAll(),this.stops.removeAll()}removeResult(){null!=this.directionLines&&(this.directionLines.removeAll(),this._set("directionLines",null)),null!=this.directionPoints&&(this.directionPoints.removeAll(),this._set("directionPoints",null)),null!=this.routeInfo&&this._set("routeInfo",null)}async save(){await this.load();const{fullExtent:e,portalItem:t}=this;if(!t)throw new u.A("routelayer:portal-item-not-set","save() requires to the layer to have a portal item");if(!t.id)throw new u.A("routelayer:portal-item-not-saved","Please use saveAs() first to save the routelayer");if("Feature Collection"!==t.type)throw new u.A("routelayer:portal-item-wrong-type",'Portal item needs to have type "Feature Collection"');if(!this.routeInfo)throw new u.A("routelayer:route-unsolved","save() requires a solved route");const{portal:r}=t;await r.signIn(),r.user||await t.reload();const{itemUrl:i,itemControl:n}=t;if("admin"!==n&&"update"!==n)throw new u.A("routelayer:insufficient-permissions","To save this layer, you need to be the owner or an administrator of your organization");const o={messages:[],origin:"portal-item",portal:r,url:i?(0,f.An)(i):void 0,writtenProperties:[]},s=this.write(void 0,o);return t.extent=await St(e),t.title=this.title,await t.update({data:s}),t}async saveAs(e,t={}){if(await this.load(),null==this.routeInfo)throw new u.A("routelayer:route-unsolved","saveAs() requires a solved route");const r=E.default.from(e).clone();r.extent??=await St(this.fullExtent),r.id=null,r.portal??=_.A.getDefault(),r.title??=this.title,r.type="Feature Collection",r.typeKeywords=["Data","Feature Collection",L.mm.MULTI_LAYER,"Route Layer"];const{portal:i}=r,n={messages:[],origin:"portal-item",portal:i,url:null,writtenProperties:[]};await i.signIn();const o=t?.folder,s=this.write(void 0,n);return await i.user.addItem({item:r,folder:o,data:s}),this.portalItem=r,(0,b.v)(n),n.portalItem=r,r}async solve(e,t){gt(this.stops),gt(this.pointBarriers),gt(this.polylineBarriers),gt(this.polygonBarriers);const r=e?.stops??this.stops,i=e?.pointBarriers??Ct(this.pointBarriers),n=e?.polylineBarriers??Ct(this.polylineBarriers),o=e?.polygonBarriers??Ct(this.polygonBarriers);if(null==r)throw new u.A("routelayer:undefined-stops","the route layer must have stops defined in the route parameters.");if((function(e){return"esri.rest.support.FeatureSet"===e.declaredClass}(r)||function(e){return"esri.rest.support.NetworkFeatureSet"===e.declaredClass}(r))&&r.features.length<2||l.A.isCollection(r)&&r.length<2)throw new u.A("routelayer:insufficent-stops","the route layer must have two or more stops to solve a route.");if(l.A.isCollection(r))for(const e of r)e.routeName=null;const s=e?.apiKey,{checksum:a,url:p}=this,c=await this._getServiceDescription(p,s,t),d=e?.travelMode??c.defaultTravelMode,m=e?.accumulateAttributes??[];d&&(m.push(d.distanceAttributeName),d.timeAttributeName&&m.push(d.timeAttributeName));const h={accumulateAttributes:m,checksum:a,directionsOutputType:"featuresets",ignoreInvalidLocations:!0,pointBarriers:i,polylineBarriers:n,polygonBarriers:o,preserveObjectID:!0,returnBarriers:!!i,returnDirections:!0,returnPolygonBarriers:!!o,returnPolylineBarriers:!!n,returnRoutes:!0,returnStops:!0,stops:r},f=yt.from(e??{});let g;f.set(h);try{g=await De(p,f,t)}catch(e){throw(0,y.zf)(e)?e:new u.A("routelayer:failed-route-request","the routing request failed",{error:e})}const b=this._toRouteLayerSolution(g);return this._isOverridden("title")||(this.title=b.routeInfo.name??"Route"),this._populatePortalFields(b,c,f),b}update(e){const{checksum:t,directionLines:r,directionPoints:i,pointBarriers:n,polygonBarriers:o,polylineBarriers:s,routeInfo:a,stops:l}=e;bt(l,this.stops)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.arriveCurbApproach=r.arriveCurbApproach,e.arriveTime=r.arriveTime,e.arriveTimeOffset=r.arriveTimeOffset,e.cumulativeCosts=r.cumulativeCosts,e.cumulativeDistance=r.cumulativeDistance,e.cumulativeDuration=r.cumulativeDuration,e.curbApproach=r.curbApproach,e.departCurbApproach=r.departCurbApproach,e.departTime=r.departTime,e.departTimeOffset=r.departTimeOffset,e.distanceToNetworkInMeters=r.distanceToNetworkInMeters,e.geometry=r.geometry,e.lateDuration=r.lateDuration,e.name=r.name,e.navLatency=r.navLatency,e.positionAlong=r.positionAlong,e.routeName=r.routeName,e.serviceCosts=r.serviceCosts,e.serviceDistance=r.serviceDistance,e.serviceDuration=r.serviceDuration,e.sequence=r.sequence,e.sideOfEdge=r.sideOfEdge,e.snapX=r.snapX,e.snapY=r.snapY,e.snapZ=r.snapZ,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol,e.timeWindowEnd=r.timeWindowEnd,e.timeWindowStart=r.timeWindowStart,e.violations=r.violations,e.waitDuration=r.waitDuration,e.wait=r.wait)}}(l,this.stops):this.set({stops:l}),wt(n,this.pointBarriers)&&(bt(n,this.pointBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.addedCost=r.addedCost,e.barrierType=r.barrierType,e.costs=r.costs,e.curbApproach=r.curbApproach,e.fullEdge=r.fullEdge,e.geometry=r.geometry,e.name=r.name,e.sideOfEdge=r.sideOfEdge,e.sourceId=r.sourceId,e.sourceOid=r.sourceOid,e.status=r.status,e.symbol=r.symbol)}}(n,this.pointBarriers):this.set({pointBarriers:n})),wt(s,this.polylineBarriers)&&(bt(s,this.polylineBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(s,this.polylineBarriers):this.set({polylineBarriers:s})),wt(o,this.polygonBarriers)&&(bt(o,this.polygonBarriers)?function(e,t){for(const r of e){const e=t.find(e=>e.objectId===r.objectId);e&&(e.barrierType=r.barrierType,e.costs=r.costs,e.geometry=r.geometry,e.name=r.name,e.scaleFactor=r.scaleFactor,e.symbol=r.symbol)}}(o,this.polygonBarriers):this.set({polygonBarriers:o})),this.set({checksum:t}),this._set("directionLines",r),this._set("directionPoints",i),this._set("routeInfo",a),a.geometry&&(this.spatialReference=a.geometry.spatialReference)}_getNetworkFeatures(e,t,r,i){const n=Mt(e)?e.layers:e.featureCollection?.layers,a=n?.find(e=>e.layerDefinition.name===t);if(null==a)return new l.A;const{layerDefinition:u,popupInfo:p,featureSet:c}=a,d=u.drawingInfo.renderer,{features:y}=c,m=c.spatialReference??u.spatialReference??u.extent.spatialReference??M.KK,h=d&&(0,J.L)(d),f=T.A.fromJSON(m),g=y.map(e=>{const i=o.A.fromJSON(e);i.geometry&&e.geometry&&null==e.geometry.spatialReference&&(i.geometry.spatialReference=f);const n=r(i);return n.symbol??=h?.getSymbol(i)??this._getNetworkSymbol(t),n.popupTemplate??=p&&s.A.fromJSON(p),n});return i&&g.some(({symbol:e})=>!e)&&i(g),new l.A(g)}_getNetworkSymbol(e){switch(e){case"Barriers":return this.defaultSymbols.pointBarriers;case"DirectionPoints":return this.defaultSymbols.directionPoints;case"DirectionLines":return this.defaultSymbols.directionLines;case"PolylineBarriers":return this.defaultSymbols.polylineBarriers;case"PolygonBarriers":return this.defaultSymbols.polygonBarriers;case"RouteInfo":return this.defaultSymbols.routeInfo;case"Stops":return null}}async _getServiceDescription(e,t,r){if(null!=this._cachedServiceDescription&&this._cachedServiceDescription.url===e)return this._cachedServiceDescription.serviceDescription;const i=await te(e,t,r);return this._cachedServiceDescription={serviceDescription:i,url:e},i}_setStopSymbol(e){const t=l.A.isCollection(e)?e.toArray():e;if(!t||!t.length||!this.defaultSymbols.stops||t.every(({symbol:e})=>!!e))return;const{first:r,last:i,middle:n,unlocated:o,waypoint:s,break:u}=this.defaultSymbols.stops,p=t.map(({sequence:e})=>e).filter(a.Ru),c=t.length===p.length;if(!this.routeInfo&&!c||1===t.length)return void t.forEach((e,o)=>{switch(o){case 0:e.symbol=r;break;case t.length-1:e.symbol=i;break;default:e.symbol=n}});const d=Math.min(...p),y=Math.max(...p);for(const e of t)e.sequence!==d?e.sequence!==y?this.routeInfo&&"ok"!==e.status&&"not-located-on-closest"!==e.status?e.symbol=o:"waypoint"!==e.locationType?"break"!==e.locationType?e.symbol=n:e.symbol=u:e.symbol=s:e.symbol=i:e.symbol=r}_toRouteLayerSolution(e){const{checksum:t,routeResults:r}=e,i=r[0].stops?.map(e=>ft.fromJSON(e.toJSON()));this._setStopSymbol(i);const n=new Bt(i),o=new Dt(e.polygonBarriers?.map(e=>Je.fromJSON(e.toJSON())));At(o,this.defaultSymbols.polygonBarriers);const s=new xt(e.polylineBarriers?.map(e=>$e.fromJSON(e.toJSON())));At(s,this.defaultSymbols.polylineBarriers);const a=new Zt(e.pointBarriers?.map(e=>_e.fromJSON(e.toJSON())));At(a,this.defaultSymbols.pointBarriers);const l=r[0].route?.toJSON(),u=Ge.fromJSON(l);u.symbol=this.defaultSymbols.routeInfo;const p=new Nt(r[0].directionPoints?.features.map(e=>Fe.fromJSON(e.toJSON())));At(p,this.defaultSymbols.directionPoints);const c=new jt(r[0].directionLines?.features.map(e=>Be.fromJSON(e.toJSON())));return At(c,this.defaultSymbols.directionLines),{checksum:t,directionLines:c,directionPoints:p,pointBarriers:a,polygonBarriers:o,polylineBarriers:s,routeInfo:u,stops:n}}_writeDirectionLines(){return this._writeNetworkFeatures(this.directionLines,this.defaultSymbols.directionLines,"esriGeometryPolyline",Be.fields,"DirectionLines","Direction Lines")}_writeDirectionPoints(){return this._writeNetworkFeatures(this.directionPoints,this.defaultSymbols.directionPoints,"esriGeometryPoint",Fe.fields,"DirectionPoints","Direction Points")}_writeNetworkFeatures(e,t,r,i,n,o){if(!e?.length)return null;const s=this.spatialReference.toJSON(),{fullExtent:a,maxScale:l,minScale:u}=this;return{featureSet:{features:e.toArray().map(e=>function(e){const{attributes:t,geometry:r,popupTemplate:i,symbol:n}=e.toGraphic().toJSON();return{attributes:t,geometry:r,popupInfo:i,symbol:n}}(e)),geometryType:r,spatialReference:s},layerDefinition:{capabilities:"Query,Update,Editing",drawingInfo:{renderer:{type:"simple",symbol:t?.toJSON()??Tt(r)}},extent:a.toJSON(),fields:i,geometryType:r,hasM:!1,hasZ:!1,maxScale:l,minScale:u,name:n,objectIdField:"ObjectID",spatialReference:s,title:o,type:"Feature Layer",typeIdField:""}}}_writePointBarriers(){return this._writeNetworkFeatures(this.pointBarriers,this.defaultSymbols.pointBarriers,"esriGeometryPoint",_e.fields,"Barriers","Point Barriers")}_writePolygonBarriers(){return this._writeNetworkFeatures(this.polygonBarriers,this.defaultSymbols.polygonBarriers,"esriGeometryPolygon",Je.fields,"PolygonBarriers","Polygon Barriers")}_writePolylineBarriers(){return this._writeNetworkFeatures(this.polylineBarriers,this.defaultSymbols.polylineBarriers,"esriGeometryPolyline",$e.fields,"PolylineBarriers","Line Barriers")}_writeRouteInfo(){return this._writeNetworkFeatures(null!=this.routeInfo?new l.A([this.routeInfo]):null,this.defaultSymbols.routeInfo,"esriGeometryPolyline",Ge.fields,"RouteInfo","Route Details")}_writeStops(){const e=this._writeNetworkFeatures(this.stops,null,"esriGeometryPoint",ft.fields,"Stops","Stops");if(null==e)return null;const{stops:t}=this.defaultSymbols,r=t?.first?.toJSON(),i=t?.middle?.toJSON(),n=t?.last?.toJSON();return e.layerDefinition.drawingInfo.renderer={type:"uniqueValue",field1:"Sequence",defaultSymbol:i,uniqueValueInfos:[{value:"1",symbol:r,label:"First Stop"},{value:`${this.stops.length}`,symbol:n,label:"Last Stop"}]},e}_populatePortalFields(e,t,r){const i=t.networkDataset?.networkAttributes,n=i?.filter(({usageType:e})=>"cost"===e)??[],o=r.travelMode??t.defaultTravelMode;if(null==o)return void p.A.getLogger(this).warn("route-layer:missing-travel-mode","The routing service must have a default travel mode or one must be specified in the route parameter.");const{timeAttributeName:s,distanceAttributeName:a}=o,l=n.find(({name:e})=>e===s),c=n.find(({name:e})=>e===a),d=r.travelMode?.impedanceAttributeName??r.impedanceAttribute??t.impedance,y=l?.units,m=c?.units;if(!y||!m)throw new u.A("routelayer:unknown-impedance-units","the units of either the distance or time impedance are unknown");const h=r.directionsLanguage??t.directionsLanguage,f=r.accumulateAttributes??t.accumulateAttributeNames??[],g=new Set(n.filter(({name:e})=>e===s||e===a||e===d||null!=e&&f.includes(e)).map(({name:e})=>e)),b=e=>{for(const t in e)g.has(t)||delete e[t]};for(const t of e.pointBarriers)null!=t.costs&&(t.addedCost=t.costs[d]??0,b(t.costs));for(const t of e.polygonBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));for(const t of e.polylineBarriers)null!=t.costs&&(t.scaleFactor=t.costs[d]??1,b(t.costs));const{routeInfo:v}=e,{findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S}=r;v.analysisSettings=new Ue({accumulateAttributes:f,directionsLanguage:h,findBestSequence:w,preserveFirstStop:C,preserveLastStop:T,startTimeIsUTC:M,timeWindowsAreUTC:S,travelMode:o}),v.totalDuration=It(v.totalCosts?.[s]??0,y),v.totalDistance=Ot(v.totalCosts?.[a]??0,m),v.totalLateDuration=It(v.totalViolations?.[s]??0,y),v.totalWaitDuration=It(v.totalWait?.[s]??0,y),null!=v.totalCosts&&b(v.totalCosts),null!=v.totalViolations&&b(v.totalViolations),null!=v.totalWait&&b(v.totalWait);for(const t of e.stops)null!=t.serviceCosts&&(t.serviceDuration=It(t.serviceCosts[s]??0,y),t.serviceDistance=Ot(t.serviceCosts[a]??0,m),b(t.serviceCosts)),null!=t.cumulativeCosts&&(t.cumulativeDuration=It(t.cumulativeCosts[s]??0,y),t.cumulativeDistance=Ot(t.cumulativeCosts[a]??0,m),b(t.cumulativeCosts)),null!=t.violations&&(t.lateDuration=It(t.violations[s]??0,y),b(t.violations)),null!=t.wait&&(t.waitDuration=It(t.wait[s]??0,y),b(t.wait))}};(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"portal-item":{write:{allowNull:!0,ignoreOrigin:!0}},"web-map":{write:{overridePolicy(){return{allowNull:!0,ignoreOrigin:null==this.portalItem}}}}}}})],Rt.prototype,"_featureCollection",void 0),(0,i.Cg)([(0,H.K)(["web-map","portal-item"],"_featureCollection")],Rt.prototype,"writeFeatureCollectionWebmap",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{target:"type",overridePolicy(){return{ignoreOrigin:null!=this.portalItem}}}}}}})],Rt.prototype,"_type",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],Rt.prototype,"checksum",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:P})],Rt.prototype,"defaultSymbols",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"directionLines",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionLines",["layers","featureCollection.layers"])],Rt.prototype,"readDirectionLines",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"directionPoints",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"directionPoints",["layers","featureCollection.layers"])],Rt.prototype,"readDirectionPoints",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1,origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Rt.prototype,"featureCollectionType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"fullExtent",null),(0,i.Cg)([(0,g.MZ)({json:{origins:{"web-map":{name:"featureCollection.showLegend"}},write:!0}})],Rt.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Rt.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Rt.prototype,"maxScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"maxScale",["layers","featureCollection.layers"])],Rt.prototype,"readMaxScale",null),(0,i.Cg)([(0,g.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],Rt.prototype,"minScale",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"minScale",["layers","featureCollection.layers"])],Rt.prototype,"readMinScale",null),(0,i.Cg)([(0,g.MZ)({type:["ArcGISFeatureLayer"],value:"ArcGISFeatureLayer"})],Rt.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(_e)})],Rt.prototype,"pointBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"pointBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPointBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(Je)})],Rt.prototype,"polygonBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polygonBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPolygonBarriers",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType($e)})],Rt.prototype,"polylineBarriers",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"polylineBarriers",["layers","featureCollection.layers"])],Rt.prototype,"readPolylineBarriers",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Rt.prototype,"routeInfo",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"routeInfo",["layers","featureCollection.layers"])],Rt.prototype,"readRouteInfo",null),(0,i.Cg)([(0,g.MZ)({type:T.A})],Rt.prototype,"spatialReference",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"spatialReference",["layers","featureCollection.layers"])],Rt.prototype,"readSpatialReference",null),(0,i.Cg)([(0,g.MZ)({nonNullable:!0,type:l.A.ofType(ft)})],Rt.prototype,"stops",void 0),(0,i.Cg)([(0,Y.w)(["web-map","portal-item"],"stops",["layers","featureCollection.layers"])],Rt.prototype,"readStops",null),(0,i.Cg)([(0,g.MZ)()],Rt.prototype,"title",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Rt.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)()],Rt.prototype,"url",null),Rt=(0,i.Cg)([(0,g.$K)("esri.layers.RouteLayer")],Rt);const Ft=Rt},76369(e,t,r){r.d(t,{LF:()=>T,M9:()=>M});var i=r(49186),n=r(93637),o=r(40876),s=r(59247),a=r(27865);class l extends SyntaxError{constructor(e,t,r,i){super(e),this.expected=t,this.found=r,this.location=i,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let r=null;const i=e.find(e=>e.source===this.location.source);i&&(r=i.text.split(/\r\n|\n|\r/g));const n=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+o.line+":"+o.column;if(r){const e=this.location.end,i="".padEnd(o.line.toString().length," "),a=r[n.line-1],l=(n.line===e.line?e.column:a.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+i+" |\n"+o.line+" | "+a+"\n"+i+" | "+"".padEnd(n.column-1," ")+"".padEnd(l,"^")}else t+="\n at "+s}return t}static buildMessage(e,t){function r(e){return e.codePointAt(0).toString(16).toUpperCase()}const i=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function n(e){return i?e.replace(i,e=>"\\u{"+r(e)+"}"):e}function o(e){return n(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}function s(e){return n(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+r(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+r(e)))}const a={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function l(e){return a[e.type](e)}return"Expected "+function(e){const t=e.map(l);if(t.sort(),t.length>0){let e=1;for(let r=1;r<t.length;r++)t[r-1]!==t[r]&&(t[e]=t[r],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=p(e);return t&&0!==t.length?t:null}const t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new i.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:p(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new i.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function p(e){let t;if(!e)return[];try{t=function(e,t){const r={},i=(t=void 0!==t?t:{}).grammarSource,n={start:Ce};let o=Ce;const s="none",a=")",u=",",p="(",c="%",d="px",y="cm",m="mm",h="in",f="pt",g="pc",b="deg",v="rad",w="grad",C="turn",T="#",M=".",S="e",A=/^[ \t\n\r]/,I=/^[a-z\-]/,O=/^[0-9a-fA-F]/,j=/^[+\-]/,N=/^[0-9]/,Z=ge("none"),D=he("none",!1),x=he(")",!1),B=he(",",!1),R=fe([" ","\t","\n","\r"],!1,!1,!1),F=ge("function"),P=he("(",!1),_=ge("identifier"),E=fe([["a","z"],"-"],!1,!1,!1),L=ge("percentage"),J=he("%",!1),k=ge("length"),$=he("px",!1),U=he("cm",!1),W=he("mm",!1),G=he("in",!1),V=he("pt",!1),q=he("pc",!1),z=ge("angle"),K=he("deg",!1),Y=he("rad",!1),H=he("grad",!1),X=he("turn",!1),Q=ge("number"),ee=ge("color"),te=he("#",!1),re=fe([["0","9"],["a","f"],["A","F"]],!1,!1,!1),ie=fe(["+","-"],!1,!1,!1),ne=fe([["0","9"]],!1,!1,!1),oe=he(".",!1),se=he("e",!1);let ae=0|t.peg$currPos,le=ae;const ue=[{line:1,column:1}];let pe,ce=ae,de=t.peg$maxFailExpected||[],ye=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in n))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=n[t.startRule]}function me(){return e.substring(le,ae)}function he(e,t){return{type:"literal",text:e,ignoreCase:t}}function fe(e,t,r,i){return{type:"class",parts:e,inverted:t,ignoreCase:r,unicode:i}}function ge(e){return{type:"other",description:e}}function be(t){let r,i=ue[t];if(i)return i;if(t>=ue.length)r=ue.length-1;else for(r=t;!ue[--r];);for(i=ue[r],i={line:i.line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return ue[t]=i,i}function ve(e,t,r){const n=be(e),o=be(t);return{source:i,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:o.line,column:o.column}}}function we(e){ae<ce||(ae>ce&&(ce=ae,de=[]),de.push(e))}function Ce(){let e;return e=Te(),e===r&&(e=function(){let e,t;if(e=[],t=Me(),t!==r)for(;t!==r;)e.push(t),t=Me();else e=r;return e}()),e}function Te(){let t,i;return ye++,t=ae,Ae(),e.substr(ae,4)===s?(i=s,ae+=4):(i=r,0===ye&&we(D)),i!==r?(Ae(),le=t,t=[]):(ae=t,t=r),ye--,t===r&&0===ye&&we(Z),t}function Me(){let t,i,n,o;return t=ae,Ae(),i=function(){let t,i,n;return ye++,t=ae,i=Ie(),i!==r?(40===e.charCodeAt(ae)?(n=p,ae++):(n=r,0===ye&&we(P)),n!==r?(le=t,t=i):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&(i=r,0===ye&&we(F)),t}(),i!==r?(Ae(),n=function(){let t,i,n,o,s,a,l,p;if(t=ae,i=Se(),i!==r){for(n=[],o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(B)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);o!==r;)n.push(o),o=ae,s=Ae(),44===e.charCodeAt(ae)?(a=u,ae++):(a=r,0===ye&&we(B)),a===r&&(a=null),l=Ae(),p=Se(),p!==r?(s=[s,a,l,p],o=s):(ae=o,o=r);le=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(i,n)}else ae=t,t=r;return t}(),n===r&&(n=null),Ae(),41===e.charCodeAt(ae)?(o=a,ae++):(o=r,0===ye&&we(x)),o!==r?(Ae(),le=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(i,n)):(ae=t,t=r)):(ae=t,t=r),t}function Se(){let e,t;return e=ae,t=Oe(),t===r&&(t=je(),t===r&&(t=Ne(),t===r&&(t=function(){let e,t;return ye++,e=ae,Ae(),t=De(),t!==r?(le=e,e=function(e){return{value:e,unit:null}}(t)):(ae=e,e=r),ye--,e===r&&0===ye&&we(Q),e}()))),t!==r&&(le=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=ae,t=Ze(),t!==r&&(le=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function Ae(){let t,i;for(ye++,t=[],i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(R));i!==r;)t.push(i),i=e.charAt(ae),A.test(i)?ae++:(i=r,0===ye&&we(R));return ye--,t}function Ie(){let t,i,n;if(ye++,t=ae,i=[],n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(E)),n!==r)for(;n!==r;)i.push(n),n=e.charAt(ae),I.test(n)?ae++:(n=r,0===ye&&we(E));else i=r;return i!==r&&(le=t,i=me()),t=i,ye--,t===r&&(i=r,0===ye&&we(_)),t}function Oe(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(37===e.charCodeAt(ae)?(n=c,ae++):(n=r,0===ye&&we(J)),n!==r?(le=t,t=function(e){return{value:e,unit:"%"}}(i)):(ae=t,t=r)):(ae=t,t=r),ye--,t===r&&0===ye&&we(L),t}function je(){let t,i,n;return ye++,t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===d?(n=d,ae+=2):(n=r,0===ye&&we($)),n!==r?(le=t,t=function(e){return{value:e,unit:"px"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===y?(n=y,ae+=2):(n=r,0===ye&&we(U)),n!==r?(le=t,t=function(e){return{value:e,unit:"cm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===m?(n=m,ae+=2):(n=r,0===ye&&we(W)),n!==r?(le=t,t=function(e){return{value:e,unit:"mm"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===h?(n=h,ae+=2):(n=r,0===ye&&we(G)),n!==r?(le=t,t=function(e){return{value:e,unit:"in"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===f?(n=f,ae+=2):(n=r,0===ye&&we(V)),n!==r?(le=t,t=function(e){return{value:e,unit:"pt"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,Ae(),i=De(),i!==r?(e.substr(ae,2)===g?(n=g,ae+=2):(n=r,0===ye&&we(q)),n!==r?(le=t,t=function(e){return{value:e,unit:"pc"}}(i)):(ae=t,t=r)):(ae=t,t=r)))))),ye--,t===r&&0===ye&&we(k),t}function Ne(){let t,i,n;return ye++,t=ae,i=De(),i!==r?(e.substr(ae,3)===b?(n=b,ae+=3):(n=r,0===ye&&we(K)),n!==r?(le=t,t=function(e){return{value:e,unit:"deg"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,3)===v?(n=v,ae+=3):(n=r,0===ye&&we(Y)),n!==r?(le=t,t=function(e){return{value:e,unit:"rad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===w?(n=w,ae+=4):(n=r,0===ye&&we(H)),n!==r?(le=t,t=function(e){return{value:e,unit:"grad"}}(i)):(ae=t,t=r)):(ae=t,t=r),t===r&&(t=ae,i=De(),i!==r?(e.substr(ae,4)===C?(n=C,ae+=4):(n=r,0===ye&&we(X)),n!==r?(le=t,t=function(e){return{value:e,unit:"turn"}}(i)):(ae=t,t=r)):(ae=t,t=r)))),ye--,t===r&&(i=r,0===ye&&we(z)),t}function Ze(){let t,i,n,o;if(ye++,t=ae,35===e.charCodeAt(ae)?(i=T,ae++):(i=r,0===ye&&we(te)),i!==r){if(n=[],o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),O.test(o)?ae++:(o=r,0===ye&&we(re));else n=r;n!==r?(le=t,t={type:"hex",value:me()}):(ae=t,t=r)}else ae=t,t=r;return t===r&&(t=ae,i=Me(),i!==r&&(le=t,i=function(e){return{type:"function",value:e}}(i)),t=i,t===r&&(t=ae,i=Ie(),i!==r&&(le=t,i={type:"named",value:me()}),t=i)),ye--,t===r&&(i=r,0===ye&&we(ee)),t}function De(){let t,i,n,o,s,a,l,u;for(t=ae,i=e.charAt(ae),j.test(i)?ae++:(i=r,0===ye&&we(ie)),i===r&&(i=null),n=ae,o=[],s=e.charAt(ae),N.test(s)?ae++:(s=r,0===ye&&we(ne));s!==r;)o.push(s),s=e.charAt(ae),N.test(s)?ae++:(s=r,0===ye&&we(ne));if(46===e.charCodeAt(ae)?(s=M,ae++):(s=r,0===ye&&we(oe)),s!==r){if(a=[],l=e.charAt(ae),N.test(l)?ae++:(l=r,0===ye&&we(ne)),l!==r)for(;l!==r;)a.push(l),l=e.charAt(ae),N.test(l)?ae++:(l=r,0===ye&&we(ne));else a=r;a!==r?(o=[o,s,a],n=o):(ae=n,n=r)}else ae=n,n=r;if(n===r)if(n=[],o=e.charAt(ae),N.test(o)?ae++:(o=r,0===ye&&we(ne)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(ae),N.test(o)?ae++:(o=r,0===ye&&we(ne));else n=r;if(n!==r){if(o=ae,101===e.charCodeAt(ae)?(s=S,ae++):(s=r,0===ye&&we(se)),s!==r){if(a=e.charAt(ae),j.test(a)?ae++:(a=r,0===ye&&we(ie)),a===r&&(a=null),l=[],u=e.charAt(ae),N.test(u)?ae++:(u=r,0===ye&&we(ne)),u!==r)for(;u!==r;)l.push(u),u=e.charAt(ae),N.test(u)?ae++:(u=r,0===ye&&we(ne));else l=r;l!==r?(s=[s,a,l],o=s):(ae=o,o=r)}else ae=o,o=r;o===r&&(o=null),le=t,t=parseFloat(me())}else ae=t,t=r;return t}pe=o();const xe=pe!==r&&ae===e.length;function Be(){throw pe!==r&&ae<e.length&&we({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(de,ce<e.length?function(t=ae){const r=e.codePointAt(t);return void 0===r?"":String.fromCodePoint(r)}(ce):null,ce<e.length?ve(ce,ce+1):ve(ce,ce))}return t.peg$library?{peg$result:pe,peg$currPos:ae,peg$FAILED:r,peg$maxFailExpected:de,peg$maxFailPos:ce,peg$success:xe,peg$throw:xe?void 0:Be}:xe?pe:void Be()}(e)}catch(t){throw new i.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return c(e.parameters,1),1===e.parameters.length&&(t=f(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new i.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return c(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0]),y(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new i.A("effect:type-error","Accepts only one color",{});r=b(n)}else{const e=g(n);if(Object.isFrozen(t))throw new i.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&y(e,n)}if(t.length<2||t.length>3)throw new i.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||v("black"))}(e);case"bloom":return function(e){let t=1,r=0,i=0;return c(e.parameters,3),e.parameters[0]&&(t=f(e.parameters[0])),e.parameters[1]&&(r=g(e.parameters[1]),y(r,e.parameters[1])),e.parameters[2]&&(i=f(e.parameters[2])),new s.bv(t,r,i)}(e)}}catch(t){throw t.details.filter=e,t}throw new i.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function c(e,t){if(e.length>t)throw new i.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in h)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function y(e,t){if(e<0)throw new i.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},h={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function f(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new i.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return y(t,e),"%"===e.unit?.01*t:t}function g(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new i.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*h[e.unit]||0}function b(e){switch(e.colorType){case"hex":return(0,o.j5)(e.value);case"named":return v(e.value);case"function":return function(e){if(c(e.parameters,4),w.test(e.name))return[f(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1];if(C.test(e.name))return(0,o.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new i.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),y(e.value,e),e.value}(e.parameters[0]),f(e.parameters[1]),f(e.parameters[2]),e.parameters[3]?f(e.parameters[3]):1);throw new i.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function v(e){if(!(0,o.V6)(e))throw new i.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,o.c4)(e)}const w=/^rgba?/i,C=/^hsla?/i;function T(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:S(r.value)});return t}return S(e)}(e)}catch(e){r?.messages?.push(e)}return null}function M(e,t,r,i){try{const i=function(e){const t=u(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,n.sM)(r,i,t)}catch(e){i.messages&&i.messages.push(e)}}function S(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[A(r,"amount")];break;case"blur":e=[A(r,"radius","pt")];break;case"hue-rotate":e=[A(r,"angle","deg")];break;case"drop-shadow":e=[A(r,"xoffset","pt"),A(r,"yoffset","pt"),A(r,"blurRadius","pt"),I(r,"color")];break;case"bloom":e=[A(r,"strength"),A(r,"radius","pt"),A(r,"threshold")]}const i=`${r.type}(${e.filter(Boolean).join(" ")})`;u(i),t.push(i)}return t.join(" ")}function A(e,t,r){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function I(e,t){if(null==e[t])throw new i.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},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":{const r=[];for(const 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]];const 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})},63074(e,t,r){r.d(t,{LF:()=>u,dM:()=>p,sU:()=>a});var i=r(5482),n=r(91429),o=r(89317),s=r(76369);const a={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:o.K}},"portal-item":{read:!0,write:{layerContainerTypes:o.K}}}}},l={read:{reader:s.LF},write:{allowNull:!0,writer:s.M9,layerContainerTypes:o.K}},u={json:{read:!1,write:!1,origins:{"web-map":l,"portal-item":l}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"blendMode",void 0),(0,i.Cg)([(0,n.MZ)(u)],r.prototype,"effect",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.BlendLayer")],r),r}},8303(e,t,r){r.d(t,{A:()=>C});var i=r(5482),n=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(17676),d=r(84952),y=r(91429),m=r(77548),h=r(20655),f=r(80812),g=r(41318),b=r(10407),v=r(36005),w=r(43937);const C=e=>{const t=e;let C=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,a;if(n)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!s||!(0,d.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=h.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?g.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:f.default})],C.prototype,"portalItem",null),(0,i.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,i.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],C),C},T={credential:null,user:null}},25036(e,t,r){r.d(t,{j:()=>o});var i=r(5482),n=r(91429);const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},5757(e,t,r){r.d(t,{B:()=>n,P:()=>i});const i=Symbol("PopupTemplateInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>c});var i=r(91218),n=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},96576(e,t,r){r.d(t,{A:()=>c});var i,n=r(5482),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let c=i=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,n.Cg)([(0,p.e)({simple:"simple"})],c.prototype,"type",void 0),c=i=(0,n.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],c)},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const m=!s||!s.greaterEqual(4,0);m&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new u(r,m);return new l(m,p,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},65494(e,t,r){r.d(t,{L:()=>l,r:()=>s});var i=r(90360),n=r(41214),o=r(59923);function s(e,t){return l(e,null,t)}const a=(0,i.C)({types:n.Hg});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,o.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):a(e,t,r):null}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>n,uY:()=>i});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},92300(e,t,r){r.d(t,{V:()=>s,X:()=>o});var i=r(60408),n=r(65864);function o(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const i=(0,n.xD)(t);return e.map(e=>{const t=i.fromJSON(e);return t.spatialReference=r,t})}},24097(e,t,r){r.d(t,{K:()=>i});const i={type:String,json:{read:{source:"token"},write:{target:"token"}}}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>f,QY:()=>d,lL:()=>g,xR:()=>m});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return h.create(e,t,null,["$feature","$view"])}function m(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,p);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new h(e,o,a,c,t,y,d,s)}constructor(e,t,r,i,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new f,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class f{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},11831(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(25482),s=r(90629),a=r(91429),l=r(5760);let u=i=class extends o.o{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.style="normal",this.weight="normal"}get size(){return this._get("size")??9}set size(e){this._set("size",e)}castSize(e){return(0,s.cr)(e)}clone(){return new i({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,n.Cg)([(0,a.MZ)({type:l.h9,json:{default:"none",write:!0}})],u.prototype,"decoration",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"family",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:!r||!r.textSymbol3D})}}})],u.prototype,"size",null),(0,n.Cg)([(0,a.wg)("size")],u.prototype,"castSize",null),(0,n.Cg)([(0,a.MZ)({type:l._R,json:{default:"normal",write:!0}})],u.prototype,"style",void 0),(0,n.Cg)([(0,a.MZ)({type:l.NM,json:{default:"normal",write:!0}})],u.prototype,"weight",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.symbols.Font")],u)},68249(e,t,r){r.d(t,{A:()=>m});var i,n=r(5482),o=r(68197),s=r(4718),a=r(90629),l=r(91429),u=r(11831),p=r(20378),c=r(5760),d=r(93223),y=r(43937);let m=i=class extends p.A{constructor(...e){super(...e),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.angle=0,this.width=null,this.lineHeight=1}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.text=e),t&&(i.font=t),r&&(i.color=r),i}get haloSize(){return this._get("haloSize")??null}set haloSize(e){this._set("haloSize",e)}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get lineWidth(){return this._get("lineWidth")??192}set lineWidth(e){this._set("lineWidth",e)}writeLineWidth(e,t,r,i){i&&"string"!=typeof i?i.origin:t[r]=e}castLineWidth(e){return(0,a.cr)(e)}writeLineHeight(e,t,r,i){i&&"string"!=typeof i?i.origin:t[r]=e}clone(){return new i({angle:this.angle,backgroundColor:(0,s.o8)(this.backgroundColor),borderLineColor:(0,s.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,s.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,s.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"backgroundColor",void 0),(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"borderLineColor",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0},cast:a.cr})],m.prototype,"borderLineSize",void 0),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],m.prototype,"font",void 0),(0,n.Cg)([(0,l.MZ)({...c.rM,json:{write:!0}})],m.prototype,"horizontalAlignment",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"kerning",void 0),(0,n.Cg)([(0,l.MZ)({type:o.A,json:{write:!0}})],m.prototype,"haloColor",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"haloSize",null),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"rightToLeft",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"rotated",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"text",void 0),(0,n.Cg)([(0,d.e)({esriTS:"text"},{readOnly:!0})],m.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)({...c.x0,json:{write:!0}})],m.prototype,"verticalAlignment",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"xoffset",null),(0,n.Cg)([(0,l.MZ)({type:Number,cast:a.cr,json:{write:!0}})],m.prototype,"yoffset",null),(0,n.Cg)([(0,l.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],m.prototype,"angle",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"width",void 0),(0,n.Cg)([(0,l.MZ)({type:Number})],m.prototype,"lineWidth",null),(0,n.Cg)([(0,y.K)("lineWidth")],m.prototype,"writeLineWidth",null),(0,n.Cg)([(0,l.wg)("lineWidth")],m.prototype,"castLineWidth",null),(0,n.Cg)([(0,l.MZ)(c.Tb)],m.prototype,"lineHeight",void 0),(0,n.Cg)([(0,y.K)("lineHeight")],m.prototype,"writeLineHeight",null),m=i=(0,n.Cg)([(0,l.$K)("esri.symbols.TextSymbol")],m)},5760(e,t,r){r.d(t,{NM:()=>a,Tb:()=>l,_R:()=>s,h9:()=>o,rM:()=>u,x0:()=>p,y7:()=>c});var i=r(34727),n=r(56507);const o=["none","underline","line-through"],s=["normal","italic","oblique"],a=["normal","lighter","bold","bolder"],l={type:Number,cast:e=>{const t=(0,n.GB)(e);return 0===t?1:(0,i.qE)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2303],{69052(e,t,n){n.d(t,{hr:()=>s,ie:()=>a,uC:()=>c});var r=n(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return o(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+i(this.range,e-t,n)}minimalMonotonic(e,t,n){return o(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function o(e,t,n,r,s=0,o=!1){return(r-=s)<t?r+=i(e,t-r):r>n&&(r-=i(e,r-n)),o&&r===n&&(r=t),r+s}function i(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const c=new s(0,2*Math.PI),a=(new s(-Math.PI,Math.PI),new s(0,360))},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,RS:()=>s,Ul:()=>g,i5:()=>f,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=c(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let r=0;r<t;r++)n+=c(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=c(e[n]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,s):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,f=145,g=64},17136(e,t,n){n.d(t,{Y_:()=>F,O7:()=>R,el:()=>M});var r=n(92602),s=n(69052),o=n(49186),i=n(53966),c=n(39829),a=n(82799),u=n(16930),l=n(80754),h=n(21325),f=n(28735),g=n(11254),d=n(60408),p=n(65864),y=n(2272),m=n(84952),w=n(92300);const _=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function b(e){return"polygon"===e[0].type}function S(e){return"polyline"===e[0].type}function k(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof c.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw _().error(e),new o.A("internal:geometry",e)}const n=(0,l.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],o=e[r][1],i=e[r+1][0],c=e[r+1][1],a=Math.sqrt((i-s)*(i-s)+(c-o)*(c-o)),u=(c-o)/a,l=(i-s)/a,h=a/t;if(h>1){for(let e=1;e<=h-1;e++){const r=e*t,i=l*r+s,c=u*r+o;n.push([i,c])}const e=(a+Math.floor(h-1)*t)/2,r=l*e+s,i=u*e+o;n.push([r,i])}n.push([i,c])}}return function(e){return"polygon"===e.type}(e)?new c.A({rings:r,spatialReference:e.spatialReference}):new a.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,f.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function A(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,l.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function v(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],o=t.geometries[r],i=(0,l.r8)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=o.getPoint(e,n);o.setPoint(e,n,t.clone().offset(r,0))}return!0}})}if(s===n){if(b(e))for(const t of(0,l.r8)(o))e[s]=e[s].addRing(t);else if(S(e))for(const t of(0,l.r8)(o))e[s]=e[s].addPath(t)}else n=s,e[s]=o}return e}async function M(e,t,n){if(!Array.isArray(e))return M([e],t);t&&"string"!=typeof t&&_().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,i,u,b,S,R,x,F,C=0;const P=[],L=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,i=(0,h.Vp)(o),u=o.isWebMercator,R=u?102100:4326,b=l.j7[R].maxX,S=l.j7[R].minX,x=l.j7[R].plus180Line,F=l.j7[R].minus180Line),i)if("mesh"===t.type)L.push(t);else if("point"===t.type)L.push(A(t.clone(),b,S));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>A(e,b,S)),L.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);L.push(e.rings?new c.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,S)*(2*b);let r=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:s,xmax:o}=e;s=Number(s.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(x)&&o!==b?(C=o>C?o:C,r=k(r,u),P.push(r),L.push("cut")):e.intersects(F)&&s!==S?(C=o*(2*b)>C?o*(2*b):C,r=k(r,u,360),P.push(r),L.push("cut")):L.push(r)}else L.push(t.clone());else L.push(t);else L.push(t);let W=(0,l.kd)(C,b),q=-90;const N=W,j=new a.A;for(;W>0;){const e=360*W-180;j.addPath([[e,q],[e,-1*q]]),q*=-1,W--}if(P.length>0&&N>0){const t=v(P,await async function(e,t,n,r){const s=(0,y.Dl)(e),o=t[0].spatialReference,i={...r,responseType:"json",query:{...s.query,f:"json",sr:(0,h.YX)(o),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,g.A)(s.path+"/cut",i),{cutIndexes:a,geometries:u=[]}=c.data;return{cutIndexes:a,geometries:u.map(e=>{const t=(0,p.rS)(e);return t.spatialReference=o,t})}}(s,P,j,n)),r=[],o=[];for(let n=0;n<L.length;n++){const s=L[n];if("cut"!==s)o.push(s);else{const s=t.shift(),i=e[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(r.push(s),o.push("simplify")):o.push(u?(0,f.Gh)(s):s)}}if(!r.length)return o;const i=await async function(e,t,n){const r="string"==typeof e?(0,m.An)(e):e,s=t[0].spatialReference,o=(0,d.$B)(t[0]),i={...n,query:{...r.query,f:"json",sr:(0,h.YX)(s),geometries:JSON.stringify((0,w.X)(t))}},{data:c}=await(0,g.A)(r.path+"/simplify",i);return(0,w.V)(c.geometries,o,s)}(s,r,n),c=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?c.push(t):c.push(u?(0,f.Gh)(i.shift()):i.shift())}return c}const O=[];for(let e=0;e<L.length;e++){const t=L[e];if("cut"!==t)O.push(t);else{const e=P.shift();O.push(!0===u?(0,f.Gh)(e):e)}}return O}function R(e,t,n){const r=(0,h.Vp)(n);if(null==r)return e;const[s,o]=r.valid,i=2*o;let c=0,a=0;t>o?c=Math.ceil(Math.abs(t-o)/i):t<s&&(c=-Math.ceil(Math.abs(t-s)/i)),e>o?a=Math.ceil(Math.abs(e-o)/i):e<s&&(a=-Math.ceil(Math.abs(e-s)/i));let u=e+(c-a)*i;const l=u-t;return l>o?u-=i:l<s&&(u+=i),u}function x(e){const t=(0,h.Vp)(e);if(null==t)return null;const[n,r]=t.valid;return new s.hr(n,r)}const F=x(u.A.WGS84);x(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>i,kS:()=>a,kd:()=>c,r8:()=>u});var r=n(82799),s=n(16930),o=n(60408);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>a});var r=n(86211),s=n(73941),o=n(21325),i=n(52006);function c(e,t,n){const r=a(t,n);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},30624(e,t,n){n.r(t),n.d(t,{createConnection:()=>A});var r=n(5482),s=n(11254),o=n(49186),i=n(53966),c=n(84952),a=n(91429),u=n(16930),l=n(65864),h=n(17676),f=n(62815),g=n(65529);let d=class extends g.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new o.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"connectionError",null),d=(0,r.Cg)([(0,a.$K)("esri.layers.support.StreamConnection")],d);let p=class extends d{constructor(e){super({}),this._outstandingMessages=[],this.errorString=null;const{geometryType:t,spatialReference:n,sourceSpatialReference:r}=e;this._config=e,this._featureZScaler=(0,f.N)(t,r,n),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,n=0){try{if(this.destroyed)return;const t=(0,c.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(r){const s=t/1e3;return this._config.maxReconnectionAttempts&&n>=this._config.maxReconnectionAttempts?(i.A.getLogger(this).error(new o.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(i.A.getLogger(this).error(new o.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${s}s`,r)),await(0,h.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),n+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void i.A.getLogger(this).error(new o.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,n)=>{const r=new WebSocket(e);r.onopen=()=>{if(r.onopen=null,this.destroyed)return r.onclose=null,void r.close();r.onclose=e=>this._onClose(e),r.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(r),t(r)},r.onclose=e=>{r.onopen=r.onclose=null,n(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const n=Promise.withResolvers(),r=t.onmessage,{filter:s,outFields:c,spatialReference:a}=this._config,u=setTimeout(()=>n.reject(),e),l=()=>{clearTimeout(u),n.reject()};return t.onmessage=e=>{let h=null;try{h=JSON.parse(e.data)}catch(e){}h&&"object"==typeof h||(i.A.getLogger(this).error(new o.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),l(),this.destroy()),h.spatialReference?.wkid!==a?.wkid&&(i.A.getLogger(this).error(new o.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${a.wkid}`,e.data)),l(),this.destroy()),"json"!==h.format&&(i.A.getLogger(this).error(new o.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),l(),this.destroy()),s&&h.filter!==s&&i.A.getLogger(this).error(new o.A("websocket-connection","Tried to set filter, but server doesn't support it")),c&&h.outFields!==c&&i.A.getLogger(this).error(new o.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=r;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],clearTimeout(u),n.resolve()},t.send(JSON.stringify({filter:s,outFields:c,format:"json",spatialReference:{wkid:a.wkid}})),n.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),i.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&i.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,r.Cg)([(0,a.MZ)()],p.prototype,"connectionStatus",null),(0,r.Cg)([(0,a.MZ)()],p.prototype,"errorString",void 0),p=(0,r.Cg)([(0,a.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],p);var y=n(80893),m=n(61956);const w={maxQueryDepth:5,maxRecordCountFactor:3};let _=class extends p{constructor(e){super({...w,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||i.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:n,outFields:r}=this._config;this.destroyed||this._setFilter(n,r)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void i.A.getLogger(this).error(new o.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},n=(0,s.A)(e.path,{query:t,responseType:"json"}),r=(await n).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){const n=e[0],{urls:r,token:s}=n,o=this._inferWebSocketBaseUrl(r);return(0,c.a6)(`${o}/subscribe`,{outSR:""+t.wkid,token:s})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return i.A.getLogger(this).error(new o.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const n=this._websocket;if(null==n||null==e&&null==t)return;const r=JSON.stringify({filter:this._serializeFilter(e,t)});let s=!1;const c=Promise.withResolvers();return n.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(i.A.getLogger(this).error(new o.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),c.reject(t.error)),this._setWebSocketJSONParseHandler(n),s=!0,c.resolve())},n.send(r),setTimeout(()=>{s||(this.destroyed||this._websocket!==n||i.A.getLogger(this).error(new o.A("geoevent-connection","Server timed out when setting filter")),c.reject())},1e4),c.promise}_serializeFilter(e,t){const n={};if(null==e&&null==t)return n;if(e?.geometry)try{const t=(0,l.rS)(e.geometry);if("extent"!==t.type)throw new o.A("geoevent-connection",`Expected extent but found type ${t.type}`);n.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){i.A.getLogger(this).error(new o.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(n.where=e.where),null!=t&&(n.outFields=t.join(",")),n}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,n=e.attributes[t],r=this._relatedFeatures.get(n);if(!r)return i.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:s,geometry:c}=r;for(const t in s)e.attributes[t]=s[t];return c&&(e.geometry=c),e.geometry||e.centroid||i.A.getLogger(this).error(new o.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,n=this._queryRelatedFeatures(e),r=this._queryArchive(t);await n;const s=await r;if(!s)return;for(const e of s.features)this.onFeature(this._enrich(e))}catch(e){i.A.getLogger(this).error(new o.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([n.e(7632),n.e(8278),n.e(7865),n.e(6554),n.e(2869),n.e(3910),n.e(9953),n.e(1733),n.e(1214),n.e(8399),n.e(1017),n.e(4674),n.e(6606),n.e(8589),n.e(7609),n.e(812),n.e(4460)]).then(n.bind(n,18589))).default)({url:e}),{capabilities:r}=await t.load(),s=r.query.supportsMaxRecordCountFactor,o=r.query.supportsPagination,i=r.query.supportsCentroid,c=this._config.maxRecordCountFactor,a=t.capabilities.query.maxRecordCount,l=s?a*c:a,h=new m.A;if(h.outFields=this._config.outFields??["*"],h.where=this._config.filter?.where??"1=1",h.returnGeometry=!0,h.returnExceededLimitFeatures=!0,h.outSpatialReference=u.A.fromJSON(this._config.spatialReference),i&&(h.returnCentroid=!0),s&&(h.maxRecordCountFactor=c),o)return h.num=l,t.destroy(),this._queryPages(e,h);const f=await(0,y.eW)(e,h,this._config.sourceSpatialReference);return t.destroy(),f}async _queryPages(e,t,n=[],r=0){t.start=null!=t.num?r*t.num:null;const s=await(0,y.eW)(e,t,this._config.sourceSpatialReference);return s.exceededTransferLimit&&r<(this._config.maxQueryDepth??0)?(s.features.forEach(e=>n.push(e)),this._queryPages(e,t,n,r+1)):(n.forEach(e=>s.features.push(e)),s)}_addRelatedFeatures(e){const t=new Map,n=e.features,r=this._serviceDefinition.relatedFeatures.joinField;for(const e of n){const n=e.attributes[r];t.set(n,e)}this._relatedFeatures=t}};_=(0,r.Cg)([(0,a.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],_);var b=n(64108);let S=class extends d{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:n,sourceSpatialReference:r}=e;this._featureZScaler=(0,f.N)(t,r,n)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function k(e,t){if(null==e&&null==t)return null;const n={};return null!=t&&(n.geometry=t),null!=e&&(n.where=e),n}function A(e,t,n,r,s,o,i,c,a){const u={source:e,sourceSpatialReference:t,spatialReference:n,geometryType:r,filter:k(s,o),maxReconnectionAttempts:i,maxReconnectionInterval:c,customParameters:a};return e?e.path.startsWith("wss://")||e.path.startsWith("ws://")?new p(u):new _(u):new S(u)}(0,r.Cg)([(0,a.MZ)()],S.prototype,"connectionStatus",void 0),(0,r.Cg)([(0,a.MZ)()],S.prototype,"errorString",void 0),S=(0,r.Cg)([(0,b.$)("esri.layers.support.ClientSideConnection")],S)},92300(e,t,n){n.d(t,{V:()=>i,X:()=>o});var r=n(60408),s=n(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,t,n){const r=(0,s.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},58501(e,t,n){n.d(t,{q:()=>s});var r=n(62815);function s(e,t,n){if(!n?.features||!n.hasZ)return;const s=(0,r.N)(n.geometryType,t,e.outSpatialReference);if(s)for(const e of n.features)s(e.geometry)}}}]);
|