@arcgis/core 5.2.0-next.49 → 5.2.0-next.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{d1af0bd611a3dc549858.js → 0037a878499d8a512772.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{172571397c66f992d08c.js → 0790bf0eb276cd9166f6.js} +1 -1
  4. package/assets/esri/core/workers/chunks/10b367563f894ceb9864.js +1 -0
  5. package/assets/esri/core/workers/chunks/{1b0557fcb058fc450230.js → 246cd372d4184233f48e.js} +1 -1
  6. package/assets/esri/core/workers/chunks/268ab65afc3fce775ad2.js +1 -0
  7. package/assets/esri/core/workers/chunks/{3af2b9d6d5466cb2b957.js → 3157f85bb319294878ca.js} +9 -9
  8. package/assets/esri/core/workers/chunks/{5dbd28fce73751d2d1aa.js → 3406a01dad6338e3c548.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{18edf2846d7546285e5e.js → 34fbeeeeef4bd01672c6.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{6ccd5fa5e35dc70fcd5d.js → 403f08e0c1a9203f7fba.js} +1 -1
  11. package/assets/esri/core/workers/chunks/478540265c86436da05e.js +1 -0
  12. package/assets/esri/core/workers/chunks/{547a2fe53139f705f95e.js → 4a340836ddbc856993f2.js} +1 -1
  13. package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +1 -0
  14. package/assets/esri/core/workers/chunks/57b07448da06d0302a46.js +1 -0
  15. package/assets/esri/core/workers/chunks/5a9ff50fdcc99ae28cce.js +1 -0
  16. package/assets/esri/core/workers/chunks/{40f7bb0ebd918d76f078.js → 5eb6f37c74a217772eca.js} +1 -1
  17. package/assets/esri/core/workers/chunks/70452f6d63e9be8d03dd.js +1 -0
  18. package/assets/esri/core/workers/chunks/{99eccf9ce53582cfa5b5.js → 73aa1bfa6e1dc271c9d7.js} +1 -1
  19. package/assets/esri/core/workers/chunks/7889f4a17cf249f2acc5.js +1 -0
  20. package/assets/esri/core/workers/chunks/7a2dcd57849048c6e00d.js +1 -0
  21. package/assets/esri/core/workers/chunks/{801a664f21e0218bc705.js → 81accb1820e2735fa376.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{ab5aa4280ed0cb7fcbe9.js → 83991475aa54fd5aa008.js} +1 -1
  23. package/assets/esri/core/workers/chunks/8bdca809dd88eab9e5d8.js +29 -0
  24. package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +1 -0
  25. package/assets/esri/core/workers/chunks/97c758f736f28c5dab84.js +1 -0
  26. package/assets/esri/core/workers/chunks/a5f058567419ea70dff6.js +1 -0
  27. package/assets/esri/core/workers/chunks/{ee7c8a7f384ea6393487.js → a615a644086e98a90579.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{0b2ca406761c63529a6a.js → b0b37c67a14a4dfb6538.js} +1 -1
  29. package/assets/esri/core/workers/chunks/b5c7813495657f844171.js +1 -0
  30. package/assets/esri/core/workers/chunks/{78add8e6b54b51eaa299.js → b8e5d7aefddddbd0a10c.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{e2e2162adbfb9b46bede.js → c16e83e448a32d13048f.js} +1 -1
  32. package/assets/esri/core/workers/chunks/dc24e80d061f7b063608.js +1 -0
  33. package/config.js +1 -1
  34. package/kernel.js +1 -1
  35. package/package.json +1 -1
  36. package/support/revision.js +1 -1
  37. package/views/2d/input/MapViewInputManager.js +1 -1
  38. package/views/2d/input/handlers/DragZoomBox.js +2 -0
  39. package/views/2d/navigation/MapViewNavigation.js +1 -1
  40. package/views/3d/input/SceneInputManager.js +1 -1
  41. package/views/3d/input/handlers/DragZoomBox.js +2 -0
  42. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  43. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  44. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  45. package/views/3d/state/controllers/PointToPointAnimationController.js +1 -1
  46. package/views/3d/terrain/TerrainRenderer.js +1 -1
  47. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentGeometryBVH.js +1 -1
  48. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  49. package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
  50. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  51. package/views/3d/webgl-engine/lib/NavigationDepthCache.js +1 -1
  52. package/views/3d/webgl-engine/lib/NavigationDepthCacheStore.js +1 -1
  53. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  54. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  55. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  56. package/views/3d/webgl-engine/lib/PolygonIntersections2D.js +1 -1
  57. package/views/3d/webgl-engine/lib/PositionReader.js +2 -0
  58. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  59. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  60. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  61. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  62. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  63. package/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +1 -1
  64. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  65. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  66. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  67. package/views/MapView.d.ts +1 -0
  68. package/views/SceneView.d.ts +4 -2
  69. package/views/input/handlers/DragZoomBox.js +2 -0
  70. package/views/types.d.ts +10 -4
  71. package/assets/esri/core/workers/chunks/031ccf2e1583beebdf24.js +0 -1
  72. package/assets/esri/core/workers/chunks/382d9491c2a56c1925fe.js +0 -1
  73. package/assets/esri/core/workers/chunks/4ee7232ea41fa41c5ed4.js +0 -29
  74. package/assets/esri/core/workers/chunks/50674ba5f24129d61d89.js +0 -1
  75. package/assets/esri/core/workers/chunks/5ce09c4d06e98b1e9251.js +0 -1
  76. package/assets/esri/core/workers/chunks/5f54d927dc77e92cf145.js +0 -1
  77. package/assets/esri/core/workers/chunks/63e3d338751240479335.js +0 -1
  78. package/assets/esri/core/workers/chunks/6e520ef645c5edcd499a.js +0 -1
  79. package/assets/esri/core/workers/chunks/7b61f56d0f766421eaef.js +0 -1
  80. package/assets/esri/core/workers/chunks/9b7cb96acea388d86fa4.js +0 -1
  81. package/assets/esri/core/workers/chunks/b49952541d189b4b9f7e.js +0 -1
  82. package/assets/esri/core/workers/chunks/bb552089b34d6811fb03.js +0 -1
  83. package/assets/esri/core/workers/chunks/d560ed96dde5ca3a5583.js +0 -1
  84. package/assets/esri/core/workers/chunks/eac8cae89da9ce2f4946.js +0 -1
  85. package/assets/esri/core/workers/chunks/f244632f7934a4b72c91.js +0 -1
  86. package/views/2d/navigation/ZoomBox.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4778],{68197(e,t,r){r.d(t,{A:()=>u});var n=r(40876),i=r(4576),o=r(34727),s=r(56507);function a(e){return(0,o.qE)((0,s.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,n.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,o=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?o.toUpperCase():o}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},52106(e,t,r){r.d(t,{A:()=>C});var n,i,o=r(5482),s=r(37838),a=r(69540),l=r(51447),u=r(25482),c=r(53966),p=r(36708),d=r(24326),f=r(91429),h=r(12195),m=r(65864),y=r(50498),g=r(55156),b=r(60950),v=r(54339),M=r(94128),w=r(33910);function I(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let C=class extends((0,a.OU)(u.o)){static{n=M.Z}static{i=this}constructor(e){super(e),this[n]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const n=(0,m.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,f.MZ)({value:null})],C.prototype,"attributes",null),(0,o.Cg)([(0,f.MZ)({value:null,types:y.yR,json:{read:m.rS}})],C.prototype,"geometry",null),(0,o.Cg)([(0,f.MZ)()],C.prototype,"distance",void 0),(0,o.Cg)([(0,f.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,o.Cg)([(0,f.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,o.Cg)([(0,f.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,o.Cg)([(0,f.MZ)({type:s.A,value:null})],C.prototype,"popupTemplate",null),(0,o.Cg)([(0,f.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,f.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],C.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,f.MZ)({value:null,types:w.Es})],C.prototype,"symbol",null),(0,o.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,o.Cg)([(0,f.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=i=(0,o.Cg)([(0,f.$K)("esri.Graphic")],C)},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,TS:()=>o,V6:()=>i,Vm:()=>h,ay:()=>l,c1:()=>y,c4:()=>s,j5:()=>u,lT:()=>p,oW:()=>c,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function o(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...o(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,s=2*r-o;return[Math.round(255*a(s,o,i+1/3)),Math.round(255*a(s,o,i)),Math.round(255*a(s,o,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,o=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return o&&(l=s&n,s>>=r,a[3]=i*l/255),l=s&n,s>>=r,a[2]=i*l,l=s&n,s>>=r,a[1]=i*l,l=s&n,s>>=r,a[0]=i*l,a}function c(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=y(e[0]),e[1]=y(e[1]),e[2]=y(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=i(e)?o(e):null;return t??=p(e),t??=c(e),t}function h(e){const t=f(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function m(e){return g(e,0,1)}function y(e){return Math.round(g(e,0,255))}function g(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=1/2.2;function v(e){return e**b}r.d(t,["iw",0,b])},66344(e,t,r){r.d(t,{q:()=>a});const n=!!(0,r(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class i{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const r=this._db.get(e.id+t);return r?.size??0}put(e,t,r,i,s){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==r&&this._notifyRemove(t,a.entry,a.size,0)),i>this._maxSize)return void this._notifyRemove(t,r,i,0);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return n||console.warn(`Refusing to cache entry with size ${i} for key ${t}`),void this._notifyRemove(t,r,0,0);const l=1+Math.max(s,-4)- -3;this._db.set(t,new o(r,i,l)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,t){t=e.id+t;const r=this._db.get(t);if(!r)return;this._size-=r.size,e.size-=r.size;let n=r.entry.usedMemory;for(;n>this._maxSize;){const e=this._notifyRemove(t,r.entry,n,1);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}r.size=n,this._size+=n,e.size+=n,this._checkSize()}pop(e,t){t=e.id+t;const r=this._db.get(t);if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t;const r=this._db.get(t);if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){const r=this._db.get(e.id+t);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=new Array;this._db.forEach((e,n)=>{const i=e.lifetime;r[i]=(r[i]||0)+e.size,this._clients.forEach(r=>{const{id:i,name:o}=r;if(n.startsWith(i)){const r=t[o]||0;t[o]=r+e.size}})});const n={};this._clients.forEach(e=>{const r=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const i=t[r]||0;t[r]=i,n[r]=Math.round(100*e.hitRate)+"%"}else n[r]="0%"});const i=Object.keys(t);i.sort((e,r)=>t[r]-t[e]),i.forEach(r=>e[r]=Math.round(t[r]/2**20)+"MB / "+n[r]);for(let t=r.length-1;t>=0;--t){const n=r[t];n&&(e["Priority "+(t+-3-1)]=Math.round(n/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,r]of this._db)t.startsWith(e.id)&&(yield r.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r,n){const i=this._clients.get(e.split(s)[0])?.removeFunc,o=i?.(t,n,r);return"number"==typeof o?o:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const r=t??this;if(r.size<=e)return;const n=t?.id;let i=!0;for(;i;){i=!1;for(const[o,a]of this._db)if(0===a.lifetime&&(!n||o.startsWith(n))){const n=t??this._clients.get(o.split(s)[0]);if(this._purgeItem(o,a,n),r.size<=.9*e)return;i||=this._db.has(o)}}for(const[i,o]of this._db)if(!n||i.startsWith(n)){const n=t??this._clients.get(i.split(s)[0]);if(this._purgeItem(i,o,n),r.size<=.9*e)return}}_purgeItem(e,t,r){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size);const n=this._notifyRemove(e,t.entry,t.size,1);null!=n&&n>0&&(this._size+=n,r&&(r.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new i(0);class o{constructor(e,t,r){this.entry=e,this.size=t,this.lifetime=r,this.lives=r}}const s=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new i(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,r=1){this._storage.put(this,e,t,r,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{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 n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(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 n.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 n.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 i(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var n=r(69622),i=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 n.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=l(e),i=l(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.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=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),h=c(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const n of f){const i=u(e,n),o=u(t,n);let s;if((y||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&c(i)===c(o)?p(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=m?m.diff[n]=s:m={type:"partial",diff:{[n]:s}})}}return m}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&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(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:()=>i,vt:()=>n});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:i,create:n,fromValues:function(e,t,r,n,i,o,s,a,l,u,c,p,d,f,h,m){return[e,t,r,n,i,o,s,a,l,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,o])},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(e,t,r,n){return[e,t,r,n]}function s(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{CN:()=>o,_Y:()=>c,fA:()=>i,vt:()=>n});const p=[0,0,0,0],d=s(),f=a(),h=l(),m=u(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:f,UNIT_Y:h,UNIT_Z:m,ZEROS:p,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:o,fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:s,unitW:c,unitX:a,unitY:l,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,p])},35522(e,t,r){r.d(t,{$A:()=>S,Bw:()=>o,C:()=>s,Cc:()=>_,DI:()=>I,Io:()=>b,Ln:()=>g,Om:()=>x,Qr:()=>p,Re:()=>u,S8:()=>C,T9:()=>m,WQ:()=>l,Z0:()=>A,_S:()=>f,aI:()=>R,ei:()=>T,fw:()=>P,g7:()=>F,gL:()=>E,hG:()=>v,hZ:()=>a,hs:()=>y,jk:()=>h,lw:()=>c,m3:()=>M,oW:()=>L,t2:()=>z,tn:()=>d,ze:()=>w});var n=r(51850),i=r(34304);function o(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,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 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 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 d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function h(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 m(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 y(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,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function b(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function M(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function w(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function C(e,t){const r=t[0],n=t[1],i=t[2];let o=r*r+n*n+i*i;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 x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function S(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2];return e[0]=i*l-o*a,e[1]=o*s-n*l,e[2]=n*a-i*s,e}function _(e,t,r,n){const i=t[0],o=t[1],s=t[2];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e}function A(e,t,r){const n=t[0],i=t[1],o=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12],e[1]=r[1]*n+r[5]*i+r[9]*o+r[13],e[2]=r[2]*n+r[6]*i+r[10]*o+r[14],e}function T(e,t,r){const n=t[0],i=t[1],o=t[2];return e[0]=n*r[0]+i*r[3]+o*r[6],e[1]=n*r[1]+i*r[4]+o*r[7],e[2]=n*r[2]+i*r[5]+o*r[8],e}function E(e,t,r){return P(e,t,r[0],r[1],r[2],r[3])}function P(e,t,r,n,i,o){const s=t[0],a=t[1],l=t[2],u=n*l-i*a,c=i*s-r*l,p=r*a-n*s,d=n*p-i*c,f=i*u-r*p,h=r*c-n*u,m=2*o;return e[0]=s+u*m+2*d,e[1]=a+c*m+2*f,e[2]=l+p*m+2*h,e}function F(e,t){C(k,e),C(O,t);const r=x(k,O);return r>1?0:r<-1?Math.PI:Math.acos(r)}const k=(0,n.vt)(),O=(0,n.vt)();function z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function R(e,t){if(e===t)return!0;const r=e[0],n=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function L(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],o=r[2]-t[2];let s=n*n+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=n*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const j=u,Z=c,N=p,D=b,B=v,G=o,V=M;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:F,bezier:function(e,t,r,n,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,p=3*l*s,d=l*o;return e[0]=t[0]*u+r[0]*c+n[0]*p+i[0]*d,e[1]=t[1]*u+r[1]*c+n[1]*p+i[1]*d,e[2]=t[2]*u+r[2]*c+n[2]*p+i[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:S,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=i*l-o*a,c=o*s-n*l,p=n*a-i*s,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:L,dist:D,distance:b,div:N,divide:p,dot:x,equals:R,exactEquals:z,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,n,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},inverse:I,len:G,length:o,lerp:_,max:m,min:h,mul:Z,multiply:c,negate:w,normalize:C,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,o=2*r()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(n)*s,e[1]=Math.sin(n)*s,e[2]=o*t,e},rotateX:function(e,t,r,n){const i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0],o[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),o[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),o[1]=i[1],o[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),o[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),o[2]=i[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:y,scaleAndAdd:g,set:a,sign:f,sqrDist:B,sqrLen:V,squaredDistance:v,squaredLength:M,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:j,subtract:u,transformMat3:T,transformMat4:A,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:E,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),r.d(t,["Il",0,G,"jb",0,j,"lo",0,B,"uE",0,V,"xg",0,D])},78955(e,t,r){r.d(t,{Bw:()=>y,C:()=>i,Cc:()=>M,LI:()=>d,Om:()=>v,S8:()=>b,T9:()=>p,WQ:()=>s,Z0:()=>w,aI:()=>C,hG:()=>m,hZ:()=>o,hs:()=>f,jk:()=>c,m3:()=>g,t2:()=>I});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function s(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function p(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function m(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function y(e){const t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function g(e){const t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function b(e,t){const r=t[0],n=t[1],i=t[2],o=t[3];let s=r*r+n*n+i*i+o*o;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=n*s,e[2]=i*s,e[3]=o*s),e}function v(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function M(e,t,r,n){const i=t[0],o=t[1],s=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e[3]=a+n*(r[3]-a),e}function w(e,t,r){const n=t[0],i=t[1],o=t[2],s=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*s,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*s,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*s,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*s,e}function I(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){const r=e[0],i=e[1],o=e[2],s=e[3],a=t[0],l=t[1],u=t[2],c=t[3],p=(0,n.FD)();return Math.abs(r-a)<=p*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-l)<=p*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=p*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(s-c)<=p*Math.max(1,Math.abs(s),Math.abs(c))}const x=a,S=l,_=u,A=h,T=m,E=y,P=g;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:A,distance:h,div:_,divide:u,dot:v,equals:C,exactEquals:I,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:E,length:y,lerp:M,max:p,min:c,mul:S,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){const r=n.Ov;let i,o,s,a,l,u;do{i=2*r()-1,o=2*r()-1,l=i*i+o*o}while(l>=1);do{s=2*r()-1,a=2*r()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*i,e[1]=t*o,e[2]=t*s*c,e[3]=t*a*c,e},round:d,scale:f,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:T,sqrLen:P,squaredDistance:m,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:x,subtract:a,transformMat4:w,transformQuat:function(e,t,r){const n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],l=r[2],u=r[3],c=u*n+a*o-l*i,p=u*i+l*n-s*o,d=u*o+s*i-a*n,f=-s*n-a*i-l*o;return e[0]=c*u+f*-s+p*-l-d*-a,e[1]=p*u+f*-a+d*-s-c*-l,e[2]=d*u+f*-l+c*-a-p*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>i,PN:()=>o,cr:()=>s,gs:()=>l,r_:()=>u,tc:()=>a}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function i(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function s(e){if("string"==typeof e){const t=e.match(n);if(t){const r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),s="px"===n?o(r):r;return i?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function a(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},83027(e,t,r){const n=r(29953).ho;r.d(t,["h",0,n])},159(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(69540),s=r(25482),a=r(91429),l=r(99157);let u=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),o=r(69540),s=r(25482),a=r(91429);let l=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,r)=>{t[r]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,r){r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(49208);function i(e,t,r,i,o,s,a=Math.floor(e.length/3)){const l=(0,n.jd)(t,o);if(null==l)return!1;if(l===n.pO){if(e===i&&r===s)return!0;const t=r+3*a;for(let n=r,o=s;n<t;n++,o++)i[o]=e[n]??0;return!0}const u=r+3*a;for(let t=r,n=s;t<u;t+=3,n+=3)l(e,t,i,n);return!0}},49208(e,t,r){r.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f});var n=r(34727),i=r(86211),o=r(73941),s=r(79258),a=r(34403),l=r(21325);const u={2:{5:f,7:null,9:null,10:f,1:w,6:null,8:null,0:null,3:m,11:y,2:f,4:_},5:{5:f,7:null,9:null,10:f,1:w,6:null,8:null,0:null,3:m,11:y,2:f,4:_},7:{5:null,7:f,9:null,10:f,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,r,n){const i=e[t]/k,o=F-2*Math.atan(Math.exp(-e[t+1]/k)),s=k+(e[t+2]??0),a=Math.cos(o)*s;r[n]=Math.cos(i)*a,r[n+1]=Math.sin(i)*a,r[n+2]=Math.sin(o)*s},6:null,8:null,0:null,3:f,11:function(e,t,r,n){h(e,t,r,n),y(r,n,r,n)},2:h,4:function(e,t,r,n){h(e,t,r,n),_(r,n,r,n)}},4:{5:A,7:null,9:null,10:A,1:function(e,t,r,n){A(e,t,r,n),w(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){A(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){A(e,t,r,n),y(r,n,r,n)},2:A,4:f},1:{5:S,7:null,9:null,10:S,1:f,6:null,8:null,0:null,3:function(e,t,r,n){S(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){S(e,t,r,n),y(r,n,r,n)},2:S,4:function(e,t,r,n){S(e,t,r,n),_(r,n,r,n)}},6:{5:null,7:x,9:null,10:x,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:f,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:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:w,6:M,8:v,0:null,3:m,11:y,2:f,4:_},11:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){g(e,t,r,n),w(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){g(e,t,r,n),m(r,n,r,n)},11:f,2:g,4:function(e,t,r,n){g(e,t,r,n),_(r,n,r,n)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const r=d(e,T.source),n=d(t,T.dest);return 0===r&&0===n?(0,l.aI)(e,t)?T.projector=f:T.projector=null:T.projector=u[r][n],T}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.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 f(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function h(e,t,r,n){r[n]=P*(e[t]/k),r[n+1]=P*(F-2*Math.atan(Math.exp(-e[t+1]/k))),r[n+2]=e[t+2]??0}function m(e,t,r,i){!function(e,t,r,i,o){const s=.4999999*Math.PI,a=(0,n.qE)(E*e[t+1],-s,s),l=Math.sin(a);r[i++]=E*e[t]*o.radius,r[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]??0}(e,t,r,i,s.$O)}function y(e,t,r,n){r[n]=e[t]*O,r[n+1]=e[t+1]*O,r[n+2]=e[t+2]??0}function g(e,t,r,n){r[n]=e[t]*z,r[n+1]=e[t+1]*z,r[n+2]=e[t+2]??0}function b(e,t,r,n,i){const o=i+(e[t+2]??0),s=E*e[t],a=E*e[t+1],l=Math.cos(a)*o;r[n]=Math.cos(s)*l,r[n+1]=Math.sin(s)*l,r[n+2]=Math.sin(a)*o}function v(e,t,r,n){b(e,t,r,n,s.Sw.radius)}function M(e,t,r,n){b(e,t,r,n,s.sH.radius)}function w(e,t,r,n){b(e,t,r,n,s.$O.radius)}function I(e,t,r,i,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),c=(0,n.YN)(l/(0===u?1:u)),p=Math.atan2(a,s);r[i++]=P*p,r[i++]=P*c,r[i]=u-o}function C(e,t,r,n){I(e,t,r,n,s.Sw.radius)}function x(e,t,r,n){I(e,t,r,n,s.sH.radius)}function S(e,t,r,n){I(e,t,r,n,s.$O.radius)}function _(e,t,r,n){!function(e,t,r,n,i){const o=E*e[t],s=E*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);r[n++]=(c+a)*u*Math.cos(o),r[n++]=(c+a)*u*Math.sin(o),r[n++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,r,n,s.$O)}function A(e,t,r,n){const i=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,f,h,m,y,g,b,v,M,w,I,C,x,S,_,A,T,E,F;c=Math.abs(u),p=o*o+l*l,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),E=Math.atan2(l,o),m=u*u/f,y=p/f,C=i.a2/h,x=i.a3-i.a4/h,y>.3?(g=c/h*(1+y*(i.a1+C+m*x)/h),T=Math.asin(g),v=g*g,b=Math.sqrt(1-v)):(b=d/h*(1-m*(i.a5-C-y*x)/h),T=Math.acos(b),v=1-b*b,g=Math.sqrt(v)),M=1-s.$O.eccentricitySquared*v,w=s.$O.radius/Math.sqrt(M),I=i.a6*w,C=d-w*b,x=c-I*g,_=b*C+g*x,S=b*x-g*C,A=S/(I/M+_),T+=A,F=_+S*A/2,u<0&&(T=-T),r[n++]=P*E,r[n++]=P*T,r[n]=F}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},E=(0,n.kU)(1),P=(0,n.KJ)(1),F=.5*Math.PI,k=s.$O.radius,O=k*Math.PI/180,z=180/(k*Math.PI);r.d(t,["w5",0,u])},91218(e,t,r){r.r(t),r.d(t,{canProjectWithoutEngine:()=>U,initializeProjection:()=>K,isEqualBaseGCS:()=>J,isLoaded:()=>k,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>z,load:()=>L,project:()=>j,projectAsync:()=>$,projectExtent:()=>ie,projectMany:()=>Z,projectMultipoint:()=>Q,projectOrLoad:()=>D,projectOrLoadMany:()=>B,projectPoint:()=>W,projectPolygon:()=>re,projectPolyline:()=>ee,projectWithoutEngine:()=>H,requiresLoad:()=>R,test:()=>q,tryProject:()=>N,unload:()=>V});var n=r(49186),i=r(17676),o=r(62788),s=r(95488),a=r(51850),l=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),f=r(86738),h=r(39829),m=r(82799),y=r(16930),g=r(98764),b=r(159),v=r(9762),M=r(49208);function w(e,t,r,n,i,o){return I[0]=e,I[1]=t,I[2]=r,(0,v.projectBuffer)(I,n,0,i,o,0)}const I=(0,a.vt)();var C=r(60408),x=r(21325),S=r(52006);let _=null,A=null,T=null,E=null,P={};const F=new s.I;function k(){return!!(A?.isLoaded()&&T?.isLoaded()&&E?.isLoaded())}function O(){return!!k()||((0,o.gc)(F),L(),!1)}function z(e,t){return!e||!t||U(e,t)||O()}function R(e,t){return!U(e,t)&&!k()}async function L(e){null==_&&(_=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(A=e,A.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(E=e,E.load()))])),await _,(0,i.Te)(e),F.notify()}function j(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),Z(e,e[0].spatialReference,t,r)):((0,l.f)(e),Z([e],e.spatialReference,t,r)[0])}function Z(e,t,r,n){if(null==t||null==r)return e;if(U(t,r,n))return e.map(e=>H(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return Z(e.map(e=>H(e,t,y.A.WGS84)),y.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return Z(e,t,y.A.WGS84).map(e=>H(e,y.A.WGS84,r));if(!k())throw new G;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:E.getTransformation(t,r,n.areaOfInterestExtent)||new b.A};else if(!n?.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 i=P[e];i||(i=E.getTransformation(t,r)||new b.A,P[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?A.executeMany(e,r,n):T.executeMany(e,r,n)}function N(e,t,r){try{return j(e,t,r)}catch(e){return null}}function D(e,t){const r=B([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 B(e,t,r){if(!k())for(const r of e)if(null!=r&&!(0,x.aI)(r.spatialReference,t)&&(0,x.fn)(r.spatialReference)&&(0,x.fn)(t)&&!U(r.spatialReference,t))return(0,o.gc)(F),{pending:L(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,x.aI)(e.spatialReference,t)?e:(0,x.fn)(e.spatialReference)&&(0,x.fn)(t)?j(e,t,r):null)}}class G extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function V(){_=null,A=null,T=null,E=null,P={}}const q={get loadPromise(){return _}};async function $(e,t,r){if((0,i.Te)(r),!e)return e;const n=B(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),$(e,t,r);const o=n.geometries??[];return Array.isArray(e)?o:o[0]}function U(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,x.aI)(e,t)||(0,x.fn)(e)&&(0,x.fn)(t)&&!!(0,M.jd)(e,t))}function J(e,t){if((0,x.aI)(e,t))return!0;if(!(0,x.fn)(e)||!(0,x.fn)(t))return!1;const r=(0,x.oT)(e)||(0,x.K8)(e)||(0,x.x1)(e),n=(0,x.oT)(t)||(0,x.K8)(t)||(0,x.x1)(t);return r&&n}async function K(e,t,r,n){if(k())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!U(t,r,i))return L(n)}else if(e&&t&&!U(e,t,r))return L(n);return(0,i.NO)(n)}function H(e,t,r){return e?(0,C.fT)(e)?Y(e,t,new f.A,r,0):(0,C.ZC)(e)?oe(e,t,new c.A,r,0):(0,C.Bi)(e)?ne(e,t,new h.A,r,0):(0,C.Rg)(e)?te(e,t,new m.A,r,0):(0,C.U9)(e)?X(e,t,new d.A,r,0):null:null}function W(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=Y(e,e.spatialReference,t,r,n)}function Y(e,t,r,n,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,v.projectBuffer)(ue,t,0,ue,n,0)?(r.x=ue[0],r.y=ue[1],r.spatialReference=n,void 0!==o||(0,u.xP)(n)?(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 Q(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=X(e,e.spatialReference,t,r,n)}function X(e,t,r,n,i){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,c=[];for(const e of o)c.push(e[0],e[1],s?e[2]:i);if(!(0,v.projectBuffer)(c,t,0,c,n,0,u))return null;const p=le(s,n);for(let e=0;e<u;++e){const t=3*e,r=c[t],n=c[t+1];p&&a?l.push([r,n,c[t+2],o[e][3]]):p?l.push([r,n,c[t+2]]):a?l.push([r,n,o[e][2]]):l.push([r,n])}return r.points=l,r.spatialReference=n,r.hasZ=s,r.hasM=a,r}function ee(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=te(e,e.spatialReference,t,r,n)}function te(e,t,r,n,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,r.curvePaths=[],n,i):se(s,a??!1,l??!1,t,r.paths,n,i)))return null;const u=le(a,n);return r.spatialReference=n,r.hasZ=u,r.hasM=l,r}function re(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ne(e,e.spatialReference,t,r,n)}function ne(e,t,r,n,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,r.curveRings=[],n,i):se(s,a??!1,l??!1,t,r.rings,n,i))?(r.spatialReference=n,r.hasZ=le(a,n),r.hasM=l,r):null}function ie(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=oe(e,e.spatialReference,t,r,n)}function oe(e,t,r,n,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!w(o,s,u?e.zmin:i,t,ue,n))return null;const p=le(u,n);return r.xmin=ue[0],r.ymin=ue[1],p&&(r.zmin=ue[2]),w(a,l,u?e.zmax:i,t,ue,n)?(r.xmax=ue[0],r.ymax=ue[1],p&&(r.zmax=ue[2]),c&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function se(e,t,r,n,i,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,n,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const n of t){const t=a.slice(l,l+=3);c||t.pop(),r&&t.push(n[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,r,n,i,o,s=0){const a=new Array;for(const r of e)for(const e of r){if((0,S.FG)(e))return!1;if((0,S.aO)(e)){const[r,n]=e.c;a.push(r[0],r[1],t?r[2]:s,n[0],n[1],s);continue}if((0,S.n1)(e)){const[r,n,i]=e.b;a.push(r[0],r[1],t?r[2]:s,n[0],n[1],s,i[0],i[1],s);continue}const r=e;a.push(r[0],r[1],t?r[2]:s)}if(!(0,v.projectBuffer)(a,n,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const n of t){const t=a.slice(l,l+=3);if(c||t.pop(),r&&t.push((0,S.yP)(n)[u]),(0,S.FG)(n))return!1;if((0,S.aO)(n)){const r=a[l++],n=a[l++];++l,e.push({c:[t,[r,n]]});continue}if((0,S.n1)(n)){const r=a[l++],n=a[l++];++l;const i=a[l++],o=a[l++];++l,e.push({b:[t,[r,n],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,x.aI)(t,g.Y0)}const ue=(0,a.vt)()},98764(e,t,r){r.d(t,{lO:()=>c});var n=r(73941),i=r(16930),o=r(21325);const s=new i.A(n.fv),a=new i.A(n.FY),l=new i.A(n.LJ),u=new i.A(n.Ro);function c(e){const t=p.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,n=e.latestWkid;if(null!=t||null!=n)(0,o.tl)(t)||(0,o.tl)(n)?r=a:((0,o.ZL)(t)||(0,o.ZL)(n))&&(r=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?r=a:e===f&&(r=l)}}}return p.set(e,r),r}const p=new Map,d=a.wkt.toUpperCase(),f=l.wkt.toUpperCase();r.d(t,["GD",0,s,"Y0",0,u])},4197(e,t,r){r.d(t,{Vj:()=>c,cj:()=>u,jh:()=>o,l5:()=>a,yH:()=>l});var n=r(34275),i=r(9093);function o(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e,t){if(0===t.length)return s(e);if(0===e.length)return s(t);const r=o(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function u(e){return[...e]}function c(e){const t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>T,C:()=>s,DC:()=>d,Dg:()=>h,Ej:()=>M,Ie:()=>_,Jt:()=>A,Lu:()=>I,Ne:()=>C,RF:()=>p,TF:()=>b,VL:()=>m,aI:()=>P,fA:()=>a,gE:()=>u,gX:()=>v,hZ:()=>S,iT:()=>f,is:()=>E,pg:()=>w,uJ:()=>g,vI:()=>x,vY:()=>l,vt:()=>o,w1:()=>c,yr:()=>y}),r(35522);var n=r(5443),i=(r(19419),r(4197));function o(e=k){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function a(e,t,r,n,i,s,a=o()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=i,a[5]=s,a}function l(e,t=o()){return function(e,t,r,n=o()){return S(n,F),function(e,t,r=0,n=t.length/3){let i=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),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]=i,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){const[r,n,o,s,a,l]=e;return t[0]=r,t[1]=n,t[2]=o,t[3]=r,t[4]=n,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]=n,t[14]=o,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function c(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.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,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(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 f(e,[t,r,n]){h(e,t,r,n)}function h(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function y(e){return e[1]>=e[4]?0:e[4]-e[1]}function g(e){return e[2]>=e[5]?0:e[5]-e[2]}function b(e){const t=m(e),r=g(e),n=y(e);return t*t+r*r+n*n}function v(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+y(e)/2,t[2]=e[2]+g(e)/2,t}function M(e,t=[0,0,0]){return t[0]=m(e),t[1]=y(e),t[2]=g(e),t}function w(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function I(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function C(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 x(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 S(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 _(e){return e?S(e,F):o(F)}function A(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 T(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function E(e){return 6===e.length}function P(e,t,r){if(null==e||null==t)return e===t;if(!E(e)||!E(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const F=[1/0,1/0,1/0,-1/0,-1/0,-1/0],k=[0,0,0,0,0,0];o(),r.d(t,["qv",0,F,"v_",0,k])},34403(e,t,r){var n=r(79258);Math.PI;const i=n.$O.radius,o=n.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};n.$O.radius,n.$O.flattening,n.Sw.radius,n.Sw.flattening,n.sH.radius,n.sH.flattening,n.sH.radius,r.d(t,["TP",0,s])},50498(e,t,r){var n=r(66552),i=r(5443),o=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,p,"gy",0,c,"iI",0,f,"yR",0,d])},55156(e,t,r){r.d(t,{I:()=>i});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}r.d(t,["e",0,n])},68695(e,t,r){r.r(t),r.d(t,{default:()=>te});var n=r(5482),i=r(37838),o=r(49186),s=r(25728),a=r(17676),l=r(84952),u=r(91429),c=r(89317),p=r(16930),d=r(55156),f=r(60950),h=r(89808),m=r(99959);const y=Symbol("isCSVGraphicOrigin");var g;class b extends m.A{get[(g=y,f.ym)](){return this.layer}get[d.e](){return this.layer}get[h.Q](){return this.layer}constructor(e){super(),this[g]=!0,this.type="csv",this.layer=e}get id(){return this.layer.id}}var v=r(4146),M=r(44208),w=r(92474),I=r(83027),C=r(5443),x=r(22671);let S=class extends w.x_{constructor(e){super(e),this.type="csv",this.refresh=(0,a.sg)(async e=>{await this.load();const{extent:t,timeExtent:r}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),r&&(this.sourceJSON.timeInfo.timeExtent=[r.start,r.end]),{dataChanged:!0,updates:{extent:this.sourceJSON.extent,timeInfo:this.sourceJSON.timeInfo}}})}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return x.A.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:C.A.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?e.toJSON():null,t)}async _startWorker(e){this._connection=await(0,I.h)("CSVSourceWorker",{strategy:(0,M.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{url:t,delimiter:r,fields:n,latitudeField:i,longitudeField:o,spatialReference:s,timeInfo:a}=this.loadOptions,l=await this._connection.invoke("load",{url:t,customParameters:this.customParameters,parsingOptions:{delimiter:r,fields:n?.map(e=>e.toJSON()),latitudeField:i,longitudeField:o,spatialReference:s?.toJSON(),timeInfo:a?.toJSON()}},{signal:e});this.locationInfo=l.locationInfo,this.sourceJSON=l.layerDefinition,this.delimiter=l.delimiter}};(0,n.Cg)([(0,u.MZ)()],S.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)()],S.prototype,"loadOptions",void 0),(0,n.Cg)([(0,u.MZ)()],S.prototype,"customParameters",void 0),(0,n.Cg)([(0,u.MZ)()],S.prototype,"locationInfo",void 0),(0,n.Cg)([(0,u.MZ)()],S.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,u.MZ)()],S.prototype,"delimiter",void 0),S=(0,n.Cg)([(0,u.$K)("esri.layers.graphics.sources.CSVSource")],S);var _=r(64714),A=r(63074),T=r(69208),E=r(6455),P=r(87718),F=r(56658),k=r(34287),O=r(32756),z=r(8303),R=r(54310),L=r(25036),j=r(82935),Z=r(63396),N=r(10873),D=r(15426),B=r(20437),G=r(17036),V=r(30524),q=r(46499),$=r(39383),U=r(37352),J=r(96184),K=r(41214),H=r(97552),W=r(30291),Y=r(56400),Q=r(36005);const X=(0,G.p)();let ee=class extends((0,O.fY)((0,E.FJ)((0,T.d)((0,F.J)((0,P.F)((0,A.dM)((0,j.e)((0,Z.d)((0,L.j)((0,R.J)((0,k.q)((0,z.A)((0,s.M)(v.A)))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=(0,_.f)(!1,!1),this.copyright=null,this.definitionExpression=null,this.delimiter=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.geometryType="point",this.graphicOrigin=new b(this),this.labelingInfo=null,this.labelsVisible=!0,this.latitudeField=null,this.legendEnabled=!0,this.locationType="coordinates",this.longitudeField=null,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.opacity=1,this.operationalLayerType="CSV",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new S,this.spatialReference=p.A.WGS84,this.timeInfo=null,this.type="csv"}load(e){const t=this.loadFromPortal({supportedTypes:["CSV"],supportsData:!1},e).catch(a.QP).then(()=>(this.source.loadOptions={delimiter:this.delimiter,fields:this.fields,latitudeField:this.latitudeField??void 0,longitudeField:this.longitudeField??void 0,spatialReference:this.spatialReference??void 0,timeInfo:this.timeInfo??void 0,url:this.url},this.source.customParameters=this.customParameters??void 0,this.source.load(e))).then(()=>{this.read({layerDefinition:this.source.sourceJSON,locationInfo:this.source.locationInfo,columnDelimiter:this.source.delimiter},{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex)});return this.addResolvingPromise(t),Promise.resolve(this)}destroy(){this.source?.destroy()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return this.loaded&&null==this.geometryType}readWebMapLabelsVisible(e,t){return t.showLabels??!!t.layerDefinition?.drawingInfo?.labelingInfo}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}set url(e){if(!e)return void this._set("url",e);const t=(0,l.An)(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}createPopupTemplate(e){return(0,W.tn)(this,e)}createQuery(){const e=new H.A,t=this.capabilities?.data;e.returnGeometry=!0,t?.supportsZ&&(e.returnZ=!0),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:r,timeExtent:n}=this;return e.timeExtent=r&&n?n.offset(-r.value,r.unit):n??null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex.get(e)}async queryAttributeBins(e,t){const{source:n,capabilities:i}=await this.load();if(!n.queryAttributeBins)throw new o.A("CSVLayer","Layer source does not support queryAttributeBins capability");(0,D.ZJ)(e,i,"CSVLayer");const{default:s}=await r.e(4575).then(r.bind(r,14575)),a=await n.queryAttributeBins(s.from(e),t),l=this.graphicOrigin;if(a.features)for(const e of a.features)e.layer=e.sourceLayer=this,e.origin=l;return a}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(H.A.from(e)||this.createQuery())).then(e=>{const t=this.graphicOrigin;if(e.features)for(const r of e.features)r.layer=r.sourceLayer=this,r.origin=t;return e})}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(H.A.from(e)||this.createQuery())}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(H.A.from(e)||this.createQuery()))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(H.A.from(e)||this.createQuery()))}read(e,t){super.read(e,t),"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","latitudeField","longitudeField"].forEach(e=>this.revertToOrigin(e,"service")),this.spatialReference||this.revertToOrigin("spatialReference","service"))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,n.Cg)([(0,u.MZ)(N.zQ)],ee.prototype,"attributeTableTemplate",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1}})],ee.prototype,"capabilities",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],ee.prototype,"copyright",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],ee.prototype,"createQueryVersion",null),(0,n.Cg)([(0,u.MZ)({json:{name:"layerDefinition.dateFieldsTimeReference",read:{reader:Y.ZS}}})],ee.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],ee.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,u.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ee.prototype,"definitionExpression",void 0),(0,n.Cg)([(0,u.MZ)({type:[","," ",";","|","\t"],json:{name:"columnDelimiter",write:{ignoreOrigin:!0}}})],ee.prototype,"delimiter",void 0),(0,n.Cg)([(0,u.MZ)({type:String})],ee.prototype,"displayField",void 0),(0,n.Cg)([(0,u.MZ)(N.Yj)],ee.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:[B.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0}}})],ee.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)(X.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)({type:U.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:c.K}}})],ee.prototype,"floorInfo",void 0),(0,n.Cg)([(0,u.MZ)({json:{origins:{service:{name:"layerDefinition.extent"}}}})],ee.prototype,"fullExtent",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],ee.prototype,"geometryType",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],ee.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],ee.prototype,"isTable",null),(0,n.Cg)([(0,u.MZ)({type:[q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:$.w},write:!0}})],ee.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,u.MZ)(N.kF)],ee.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,Q.w)("web-map","labelsVisible",["layerDefinition.drawingInfo.labelingInfo","showLabels"])],ee.prototype,"readWebMapLabelsVisible",null),(0,n.Cg)([(0,u.MZ)({type:String,json:{name:"locationInfo.latitudeFieldName",write:{ignoreOrigin:!0}}})],ee.prototype,"latitudeField",void 0),(0,n.Cg)([(0,u.MZ)(N.fV)],ee.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({type:["coordinates"],json:{name:"locationInfo.locationType",write:{ignoreOrigin:!0,isRequired:!0}}})],ee.prototype,"locationType",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{name:"locationInfo.longitudeFieldName",write:{ignoreOrigin:!0}}})],ee.prototype,"longitudeField",void 0),(0,n.Cg)([(0,u.MZ)(N.hG)],ee.prototype,"maxScale",void 0),(0,n.Cg)([(0,u.MZ)(N.hn)],ee.prototype,"minScale",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{name:"layerDefinition.objectIdField",origins:{"web-map":{write:{target:"layerDefinition.objectIdField",ignoreOrigin:!0}}}}})],ee.prototype,"objectIdField",void 0),(0,n.Cg)([(0,u.MZ)(N.Ih)],ee.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["CSV"]})],ee.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)()],ee.prototype,"outFields",void 0),(0,n.Cg)([(0,u.MZ)(N.M6)],ee.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,u.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,u.MZ)({types:K.Hg,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:K.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},write:{ignoreOrigin:!0,layerContainerTypes:c.K}}})],ee.prototype,"renderer",null),(0,n.Cg)([(0,u.MZ)(N.PY)],ee.prototype,"screenSizePerspectiveEnabled",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],ee.prototype,"source",void 0),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{origins:{service:{name:"layerDefinition.extent.spatialReference"}}}})],ee.prototype,"spatialReference",void 0),(0,n.Cg)([(0,u.MZ)({type:J.A,json:{name:"layerDefinition.timeInfo"}})],ee.prototype,"timeInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{service:{name:"layerDefinition.name"},"web-document":{name:"title",write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],ee.prototype,"title",void 0),(0,n.Cg)([(0,u.MZ)({json:{read:!1},value:"csv",readOnly:!0})],ee.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)(N.OZ)],ee.prototype,"url",null),ee=(0,n.Cg)([(0,u.$K)("esri.layers.CSVLayer")],ee);const te=ee},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},54339(e,t,r){function n(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 n of t.fieldNames)r.push(e.attributes[n]??null);return JSON.stringify(r)}}}function i(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:()=>n,r:()=>i})},64714(e,t,r){r.d(t,{F0:()=>a,Vx:()=>c,e2:()=>d,f:()=>f});var n=r(44208),i=r(4718),o=r(99352),s=r(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${p(t)} = null;`);for(const t in e)r+=`this${p(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new n}catch(r){return()=>t?{[t]:null,...e}:{...e}}}function p(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function f(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:o.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},69208(e,t,r){var n=r(5482),i=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},6455(e,t,r){r.d(t,{FJ:()=>g,Dp:()=>b,KV:()=>v});var n=r(5482),i=r(93637),o=r(91429),s=r(89317),a=r(69540),l=r(7762),u=r(25482),c=r(83960),p=r(13069);const d={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let f=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:d})],f.prototype,"maxScale",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:d})],f.prototype,"minScale",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,n.Cg)([(0,o.$K)("esri.layers.support.DisplayFilter")],f);var h=r(41560),m=r(43937);let y=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(f)),this.mode="manual"}writeFilters(e,t,r,n){const i=e.toArray();"scale"===this.mode&&i.sort((e,t)=>{const r=(0,c.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===r?n:r}),t[r]=i.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,h.mW)(this,t))}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],y.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A.ofType(f),nonNullable:!0,json:{write:!0}})],y.prototype,"filters",void 0),(0,n.Cg)([(0,m.K)("filters")],y.prototype,"writeFilters",null),(0,n.Cg)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],y.prototype,"mode",void 0),y=(0,n.Cg)([(0,o.$K)("esri.layers.support.DisplayFilterInfo")],y);const g=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,o.MZ)(b)],r.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,o.MZ)(v)],r.prototype,"displayFilterInfo",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},b={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,r){(0,i.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:y,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},32756(e,t,r){r.d(t,{Rr:()=>a});var n=r(5482),i=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new s.A;return i.read(n,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,l])},8303(e,t,r){var n=r(5482),i=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(36563),c=r(53966),p=r(97768),d=r(17676),f=r(84952),h=r(91429),m=r(77548),y=r(20655),g=r(80812),b=r(41318),v=r(10407),M=r(36005),w=r(43937);const I={credential:null,user:null};r.d(t,["A",0,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(){super.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 g.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:n}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,d.zf)(e)||c.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!o.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let s,a;if(i)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,f.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,d.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new g.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.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=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.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 n=`${r.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,f.S8)(i.restUrl)===(0,f.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return r&&n&&!(0,f.ut)(n.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,n.Cg)([(0,h.MZ)({type:g.default})],C.prototype,"portalItem",null),(0,n.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],C.prototype,"readPortalItem",null),(0,n.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],C.prototype,"writePortalItem",null),(0,n.Cg)([(0,h.MZ)({clonable:!1})],C.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],C.prototype,"userHasUpdateItemPrivileges",void 0),C=(0,n.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],C),C}])},82935(e,t,r){var n=r(5482),i=r(91429),o=r(89317),s=r(30524),a=r(96184),l=r(73133),u=r(79677),c=r(10184),p=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}};r.d(t,["B",0,d,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new c.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:c.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>I});var n=r(5482),i=r(91429),o=r(60950),s=r(99959);class a extends s.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var l=r(37838),u=r(69540),c=r(25482),p=r(93637),d=r(50820),f=r(10873),h=r(46499),m=r(41214);let y=class extends((0,u.OU)(c.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,n.Cg)([(0,i.MZ)({type:[h.A],json:{write:!0}})],y.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,i.MZ)(f.kF)],y.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,i.MZ)({types:m.Hg,json:{write:!0}})],y.prototype,"renderer",void 0),(0,n.Cg)([(0,i.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"visible",void 0),y=(0,n.Cg)([(0,i.$K)("esri.layers.support.TrackPartInfo")],y);var g=r(96576),b=r(59868),v=r(10184),M=r(43937);let w=class extends((0,u.OU)(c.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new y({renderer:new g.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new y({renderer:new g.A({symbol:b.UK.clone()})}),this.trackLines=new y({renderer:new g.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){const n=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,p.sM)(r,n,t)}};(0,n.Cg)([(0,i.MZ)({type:Boolean,json:{write:!0}})],w.prototype,"enabled",void 0),(0,n.Cg)([(0,i.MZ)({type:[d.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,n.Cg)([(0,M.K)("fields")],w.prototype,"writeFields",null),(0,n.Cg)([(0,i.MZ)({type:y,json:{write:!0}})],w.prototype,"latestObservations",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,json:{write:!0}})],w.prototype,"maxDisplayDuration",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],w.prototype,"maxDisplayObservationsPerTrack",void 0),(0,n.Cg)([(0,i.MZ)(f.M6)],w.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,i.MZ)({type:l.A,json:{name:"popupInfo",write:!0}})],w.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,i.MZ)({type:y,json:{write:!0}})],w.prototype,"previousObservations",void 0),(0,n.Cg)([(0,i.MZ)({type:y,json:{write:!0}})],w.prototype,"trackLines",void 0),(0,n.Cg)([(0,i.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],w.prototype,"timeField",void 0),w=(0,n.Cg)([(0,i.$K)("esri.layers.support.TrackInfo")],w);const I=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,n.Cg)([(0,i.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,n.Cg)([(0,i.MZ)({type:w})],r.prototype,"trackInfo",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TrackableLayer")],r),r}},30279(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(69540),o=r(25482),s=r(10107),a=r(64108),l=r(62044);let u=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,n.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,n.Cg)([(0,s.MZ)({types:l.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,n.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},46499(e,t,r){r.d(t,{A:()=>C});var n,i,o=r(5482),s=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),c=r(91429),p=r(73913),d=r(32730),f=r(77548),h=r(59868),m=r(73838),y=r(33910),g=r(36005),b=r(43937);const v=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function M(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function w(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function I(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let C=class extends a.o{static{n=d.vK}static{i=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){const e=r(t[n[0]],n[1],n[2]),i=n[3],o=r(t[n[4]],n[5],n[6]);switch(i){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this[n]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&w(n))e=new p.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const i=e.toJSON(n);i.expression&&(t[r]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new i({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],C.prototype,"name",void 0),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:M}}}}})],C.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:M}}}}})],C.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&I(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],C.prototype,"labelExpression",void 0),(0,o.Cg)([(0,g.w)("labelExpression")],C.prototype,"readLabelExpression",null),(0,o.Cg)([(0,b.K)("labelExpression")],C.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,c.MZ)({type:p.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return w(e)||I(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],C.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,b.K)("labelExpressionInfo")],C.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,c.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],C.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],C.prototype,"labelPosition",void 0),(0,o.Cg)([(0,c.MZ)({type:Number})],C.prototype,"maxScale",void 0),(0,o.Cg)([(0,b.K)("maxScale")],C.prototype,"writeMaxScale",null),(0,o.Cg)([(0,c.MZ)({type:Number})],C.prototype,"minScale",void 0),(0,o.Cg)([(0,b.K)("minScale")],C.prototype,"writeMinScale",null),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:M}}}}})],C.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:M}}}}})],C.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,c.MZ)({types:y.em,json:{origins:{"web-scene":{types:y.Rv,write:m.oO,default:null}},write:m.oO,default:null}})],C.prototype,"symbol",void 0),(0,o.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],C.prototype,"where",void 0),C=i=(0,o.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],C)},73913(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),o=r(25482),s=r(91429),a=r(32730),l=r(36005),u=r(43937);let c=class extends o.o{static{n=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,i.Cg)([(0,l.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,i.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],c)},37352(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),o=r(7762),s=r(25482),a=r(91429);let l=n=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},91880(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},96184(e,t,r){r.d(t,{A:()=>f});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(79677),l=r(10184),u=r(56400),c=r(36005),p=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let f=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,n.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,n.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],f.prototype,"writeInterval",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,n.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,n.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,n.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],f)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],p(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=c(e.at(0)?.minScale),o=p(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(c(i.minScale),p(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,r)&&(yield n)}}function l(e,t,r,i){return e=c(e),r=c(r),t=p(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>l,sS:()=>c,xY:()=>u});var n=r(4718),i=r(30279),o=r(62044),s=r(30524),a=r(41227);function l(e){const{popupTemplate:t,fieldsIndex:r}=e,n=t?.fieldInfos;if(!n?.length||!r)return;const s=[];for(const e of n){const{fieldName:t,label:n}=e,a=r.get(t);if(!a)continue;const l=n&&n!==a.alias?n:null,u=(0,o.iu)(e,a);(l||u)&&s.push(new i.A({name:a.name,alias:l,fieldFormat:u}))}return s.length?s:null}function u(e){const{fields:t}=e;if(!t?.length)return;const r=[];for(const e of t){const t=(0,o.qH)(e)?(0,o.$P)(e):null;t&&r.push(new i.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function c(e,t){const{popupTemplate:r,fieldsIndex:i}=e;if(!r||!i)return;const s=function(e,t,r){t??=[],r=(0,n.o8)(r)??[];let i=!1;const s=new Map;for(const r of t){const t=e.fieldsIndex.get(r.name);t&&s.set(t.name,r)}for(const t of r){const r=e.fieldsIndex.get(t.fieldName);if(!r)continue;const n=s.get(r.name);t.label=n?.alias||r.alias,t.format=(0,o.qH)(r)&&n?.fieldFormat?(0,o.PK)(n.fieldFormat,r):null,i=!0,s.delete(r.name)}for(const t of s.values()){const n=p(e,t);n&&(r.push(n),i=!0)}return i?r:null}(e,t,r.fieldInfos);if(!s)return;const a=r.clone();return a.fieldInfos=s,a}function p(e,t){const{name:r,alias:n,fieldFormat:i}=t,l=e.fieldsIndex.get(r);if(!l||!n&&!i)return;const u=n||l.alias,c=(0,o.qH)(l)&&i?(0,o.PK)(i,l):null;return new a.A({fieldName:l.name,label:u,format:c,visible:!1,isEditable:(0,s.R$)(l,e)})}},17036(e,t,r){r.d(t,{p:()=>l});var n=r(44208),i=r(53966),o=r(20437),s=r(95466),a=r(30524);function l(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},32730(e,t,r){r.d(t,{BI:()=>f,D3:()=>p,XJ:()=>d,lc:()=>c,mX:()=>m,rU:()=>h,tH:()=>M,zA:()=>I});var n=r(799);const i="__begin__",o="__end__",s=new RegExp(i,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+i,"i"),u=new RegExp(o+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function p(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function d(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function h(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(y);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function m(e){let t;return e?(t=(0,n.HC)(e,e=>i+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(a,' + "')):t='""',t}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=g.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}const w=Symbol("LabelClassInstance");function I(e){return null!=e&&"object"==typeof e&&w in e}r.d(t,["vK",0,w])},39383(e,t,r){r.d(t,{w:()=>l,z:()=>p});var n=r(49186),i=r(53966),o=r(46499);const s=()=>i.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const n=new o.A;if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`)}return n}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){const r=[];for(const i of e){const e=i.labelPlacement,o=c[t];if(!i.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(i);else{const n=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);const a=i.clone();a.labelPlacement=n,r.push(a)}}return r}},5757(e,t,r){r.d(t,{B:()=>i});const n=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["P",0,n])},10407(e,t,r){r.d(t,{It:()=>f,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,sQ:()=>p});var n=r(91218),i=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 c(e,t,r){r?s(e,t):u(e,t)}async function p(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=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function f(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}r.d(t,["mm",0,d])},86162(e,t,r){r.d(t,{A:()=>_});var n,i=r(5482),o=r(66552),s=r(4718),a=r(53966),l=r(91429),u=r(56507),c=r(30524),p=r(92438),d=r(63988),f=r(88542),h=r(49849),m=r(20061),y=r(80911),g=r(43668),b=r(33910),v=r(36005),M=r(43937),w=r(93223);const I="percent-of-total",C="field",x=new o.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:I,esriNormalizeByField:C}),S=(0,u.dp)(f.A);let _=n=class extends((0,d.h)(p.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,r){if(!Array.isArray(e))return;let n=t.minValue;return e.map(e=>{const t=new f.A;return t.read(e,r),null==t.minValue&&(t.minValue=n),null==t.maxValue&&(t.maxValue=t.minValue),n=t.maxValue,t})}writeClassBreakInfos(e,t,r,n){const i=e.map(e=>e.write({},n));this._areClassBreaksConsecutive()&&i.forEach(e=>delete e.classMinValue),t[r]=i}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,u.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&C||r&&I||null,t&&r&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==C&&e!==I||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,r){let n=null;n="number"==typeof e?new f.A({minValue:e,maxValue:t,symbol:(0,b.dp)(r)}):S((0,s.o8)(e)),this.classBreakInfos.push(n),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const r=this.classBreakInfos.length;for(let n=0;n<r;n++){const r=[this.classBreakInfos[n].minValue,this.classBreakInfos[n].maxValue];if(r[0]===e&&r[1]===t){this.classBreakInfos.splice(n,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let r=t;this.valueExpression&&null==t?.arcade&&(r={...r,arcade:await(0,g.l)()});const n=this.getBreakIndex(e,r);return-1!==n?this.classBreakInfos[n]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const r=this.getBreakIndex(e,t);return-1===r?this.defaultSymbol:(0,y.c)(this.classBreakInfos[r],t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let r=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,g.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),r={...r,arcade:e}}const n=this.getBreakIndex(e,r);return-1===n?this.defaultSymbol:(0,y.c)(this.classBreakInfos[n],r?.scale)??this.defaultSymbol}get symbols(){const e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[])}),this.defaultSymbol&&e.push(this.defaultSymbol),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new n({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,s.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,s.o8)(this.visualVariables),legendOptions:(0,s.o8)(this.legendOptions),authoringInfo:(0,s.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const r=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(r)}async collectSymbolFields(e,t){const r=[...this.symbols.map(r=>r.collectRequiredFields(e,t)),(0,c.Dx)(e,t,null,this.valueExpression)];(0,c.rq)(e,t,this.field),(0,c.rq)(e,t,this.normalizationField),await Promise.all(r)}_getBreakIndexForExpression(e,t){const{viewingMode:r,scale:n,spatialReference:i,arcade:o,timeZone:s}=t??{},{valueExpression:a}=this;let l=this._compiledValueExpression.valueExpression===a?this._compiledValueExpression.compiledFunction:null;const u=o.arcadeUtils;if(!l){const e=u.createSyntaxTree(a);l=u.createFunction(e),this._compiledValueExpression.compiledFunction=l}this._compiledValueExpression.valueExpression=a;const c=u.executeFunction(l,u.createExecContext(e,u.getViewInfo({viewingMode:r,scale:n,spatialReference:i}),s));return this._getBreakIndexfromInfos(c)}_getBreakIndexForField(e){const t=this.field,r=e.attributes,n=this.normalizationType;let i=parseFloat(r[t]);if(n){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?r[this.normalizationField]:void 0);if("log"===n)i=Math.log(i)*Math.LOG10E;else if(n!==I||null==e||isNaN(e)){if(n===C&&!isNaN(t)){if(isNaN(i)||isNaN(t))return-1;i/=t}}else i=i/e*100}return this._getBreakIndexfromInfos(i)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let r=0;r<this.classBreakInfos.length;r++){const n=[this.classBreakInfos[r].minValue,this.classBreakInfos[r].maxValue];if(n[0]<=e&&(t?e<=n[1]:e<n[1]))return r}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let r=1;r<t;r++)if(e[r-1].maxValue!==e[r].minValue)return!1;return!0}};(0,i.Cg)([(0,l.MZ)(h.As)],_.prototype,"backgroundFillSymbol",void 0),(0,i.Cg)([(0,l.MZ)({type:[f.A],json:{write:{isRequired:!0}}})],_.prototype,"classBreakInfos",void 0),(0,i.Cg)([(0,v.w)("classBreakInfos")],_.prototype,"readClassBreakInfos",null),(0,i.Cg)([(0,M.K)("classBreakInfos")],_.prototype,"writeClassBreakInfos",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"defaultLabel",void 0),(0,i.Cg)([(0,l.MZ)(h.z4)],_.prototype,"defaultSymbol",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"field",void 0),(0,i.Cg)([(0,l.wg)("field")],_.prototype,"castField",null),(0,i.Cg)([(0,l.MZ)({type:Boolean})],_.prototype,"isMaxInclusive",void 0),(0,i.Cg)([(0,l.MZ)({type:m.A,json:{write:!0}})],_.prototype,"legendOptions",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],_.prototype,"minValue",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],_.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.MZ)({type:x.apiValues,value:null,json:{type:x.jsonValues,read:x.read,write:x.write}})],_.prototype,"normalizationType",null),(0,i.Cg)([(0,w.e)({classBreaks:"class-breaks"})],_.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"valueExpression",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"valueExpressionTitle",void 0),_=n=(0,i.Cg)([(0,l.$K)("esri.renderers.ClassBreaksRenderer")],_)},88542(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(25482),s=r(91429),a=r(49849),l=r(40863);let u=n=class extends o.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof l.A?e:(delete e.type,new l.A(e)))):this._set("alternateSymbols",null)}clone(){return new n({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,i.Cg)([(0,s.MZ)({type:[l.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),u=n=(0,i.Cg)([(0,s.$K)("esri.renderers.support.ClassBreakInfo")],u)},73681(e,t,r){r.d(t,{n:()=>l});var n=r(49186),i=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,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,a.xR)(e.expression,null,p);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const m=new u(r,h);return new l(h,c,f,m)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.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]}}},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i});const n=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&n 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),n=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"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,n])},22671(e,t,r){r.d(t,{A:()=>b});var n,i=r(5482),o=r(52106),s=r(66552),a=r(25482),l=r(4718),u=r(91429),c=r(16930),p=r(60408),d=r(65864),f=r(50498),h=r(20437),m=r(36005),y=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,d.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=c.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*o+n,e=>i-e*s,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=c.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],s=r.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=n);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(s)}return i}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(a[0]),i=r(a[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,p.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,p.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,p.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=r(a)}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],b.prototype,"features",void 0),(0,i.Cg)([(0,m.w)("features")],b.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,i.Cg)([(0,y.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:f.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,m.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var n=r(5482),i=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,l])},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),c=r(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of p)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,n){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new i.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 c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=o.compileScript(a,c);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new m(e,o,a,p,t,f,d,s)}constructor(e,t,r,n,i,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,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:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({__proto__:null,currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=r?n.lY.epochToArcadeDate(o,r):n.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 y{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 n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,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)===c.L}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 n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??"system");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(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.toJSON()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}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}},28076(e,t,r){var n=r(13337);const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,i])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>S,DW:()=>w,FH:()=>P,FM:()=>a,Kn:()=>v,Kq:()=>G,MM:()=>p,Nl:()=>_,O2:()=>A,YC:()=>k,YF:()=>T,_1:()=>C,_d:()=>M,_h:()=>s,bs:()=>F,e6:()=>u,gQ:()=>o,jn:()=>f,lW:()=>c,ll:()=>L,mA:()=>d,oI:()=>V,pM:()=>I,pV:()=>b,pk:()=>z,rB:()=>R,xo:()=>x,yX:()=>B,z9:()=>g,zb:()=>E,zr:()=>h});var n=r(28076);function i(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function o(e,t){const r=[];let n=0,o=-1;do{if(o=e.indexOf("[",n),o>=n){if(o>n){const t=e.slice(n,o);r.push([t,null,i(t)])}if(n=o+1,o=e.indexOf("]",n),o>=n){if(o>n){const i=t[e.slice(n,o)];i&&r.push([null,i,!1])}n=o+1}}}while(-1!==o);if(n<e.length){const t=e.slice(n);r.push([t,null,i(t)])}return r}function s(e,t,r){let n="",i=null;for(const r of t){const[t,o,s]=r;if(null!=t&&""!==t)s?i=t:(null!=i&&(n+=i,i=null),n+=t);else{const t=e.readAttribute(o);null!=t&&""!==t&&(null!==i&&(n+=i,i=null),n+=t)}}return l(n,r)}function a(e,t,r,n){let i="",o=null;for(const n of t){const[t,s,a]=n;if(null!=t&&""!==t)a?o=t:(null!=o&&(i+=o,o=null),i+=t);else{let t=s;null!=r&&(t=O(s,r));const n=e.attributes[t];null!=n&&""!==n&&(null!=o&&(i+=o,o=null),i+=n)}}return l(i,n)}function l(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function u(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function c(e){return e.data?.symbol??null}function p(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function d(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function f(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const m=(e,t=0)=>null==e||isNaN(e)?t:e;class y{constructor(e){this._import=e}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(e=>this.module=e)),this._promise}}function g(e){return new y(e)}function b(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function v(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function M(e){let t="normal",r="normal";if(e){const n=e.toLowerCase();n.includes("italic")?t="italic":n.includes("oblique")&&(t="oblique"),n.includes("bold")?r="bold":n.includes("light")&&(r="lighter")}return{style:t,weight:r}}function w(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function I(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=I(t);if(null!=e)return e}break;case"CIMTextSymbol":return I(e.symbol);case"CIMSolidFill":return e.color}return null}function C(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const t=e.symbolLayers;if(t)for(const e of t){const t=C(e);if(null!=t)return t}break}case"CIMTextSymbol":return C(e.symbol);case"CIMSolidStroke":return e.color}}function x(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=x(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return x(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function S(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function _(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function A(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function T(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function E(e,t,r,n,i,o,s=!0){const{infos:a}=o;let l=1,u=0,c=0,p=0,d=1;for(const{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:n,size:i,frameHeight:o,rotateClockWise:f,scaleSymbolsProportionally:h}of a)d=e?1:l,c=N(t,r,u,d,c),p=Z(t,r,u,d,p),o&&(h||s)&&(l*=i/o),u=D(n,f,u);const f=N(n,i,u,d,c),h=Z(n,i,u,d,p);return{size:e*l,rotation:D(t,r,u),offsetX:f,offsetY:h}}function P(e){return e?.dashTemplate&&(e.dashTemplate=function(e){return"string"==typeof e?function(e){return e.split(" ").map(e=>Number(e))}(e):e}(e.dashTemplate)),e}function F(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const t=e.symbolLayers;if(!t)return"Normal";for(const e of t)if("CIMVectorMarker"===e.type)return F(e)}break;case"CIMVectorMarker":{const t=e.markerGraphics;if(!t)return"Normal";for(const e of t)if(e.symbol)return F(e.symbol)}}return"Normal"}function k(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){const e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{const e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function O(e,t){if(null!==t){const r=t.get(e);return r?r.name:e}return e}function z(e){return e.map(e=>({...e,propertyName:T(e.propertyName)}))}function R(e){const t={};for(const r in e){const n=e[r];t[T(r)]=n}return t}function L(e){if(!e)return 0;let t=0;for(const r of e)t+=j(r);return t}function j(e){if(!e)return 0;if(G(e))return e.inflateSize??256;switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(m(e.offsetX)),Math.abs(m(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function Z(e,t,r,n,i){const o=r*Math.PI/180;if(o){const r=Math.cos(o);return(Math.sin(o)*e+r*t)*n+i}return t*n+i}function N(e,t,r,n,i){const o=r*Math.PI/180;return o?(Math.cos(o)*e-Math.sin(o)*t)*n+i:e*n+i}function D(e,t,r){return t?r-e:r+e}function B(e,t){return Math.max(Math.min((e??t)/100,1),0)}function G(e){return e.type.startsWith("Private")}function V(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,m,"UE",0,e=>e.includes("data:image/svg+xml")])},93470(e,t,r){const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};r.d(t,["Cb",0,i,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6780],{5482(t,n,e){function r(t,n,e,r){var i,s=arguments.length,o=s<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(n,e,o):i(n,e))||o);return s>3&&o&&Object.defineProperty(n,e,o),o}function i(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function o(t){function n(n){t.error=t.hasError?new s(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function i(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(i);if(e.dispose){var s=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(s).then(i,function(t){return n(t),i()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,n,e,r,i,s,o,a,c){return[t,n,e,r,i,s,o,a,c]}e.d(n,{fA:()=>i,vt:()=>r});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,a,c,u,h,f,l,d,m,M){return[t,n,e,r,i,s,o,a,c,u,h,f,l,d,m,M]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},77690(t,n,e){e.d(n,{B8:()=>a,Ge:()=>d,I0:()=>l,KC:()=>c,a4:()=>u,hZ:()=>s,hs:()=>f,lw:()=>h,mg:()=>o,z0:()=>i});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function s(t,n,e,r,i,s,o,a,c,u){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=c,t[8]=u,t}function o(t,n){if(t===n){const e=n[1],r=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function a(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=h*o-a*u,l=-h*s+a*c,d=u*s-o*c;let m=e*f+r*l+i*d;return m?(m=1/m,t[0]=f*m,t[1]=(-h*r+i*u)*m,t[2]=(a*r-i*o)*m,t[3]=l*m,t[4]=(h*e-i*c)*m,t[5]=(-a*e+i*s)*m,t[6]=d*m,t[7]=(-u*e+r*c)*m,t[8]=(o*e-r*s)*m,t):null}function c(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8];return t[0]=o*h-a*u,t[1]=i*u-r*h,t[2]=r*a-i*o,t[3]=a*c-s*h,t[4]=e*h-i*c,t[5]=i*s-e*a,t[6]=s*u-o*c,t[7]=r*c-e*u,t[8]=e*o-r*s,t}function u(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],c=t[7],u=t[8];return n*(u*s-o*c)+e*(-u*i+o*a)+r*(c*i-s*a)}function h(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=e[0],d=e[1],m=e[2],M=e[3],b=e[4],g=e[5],_=e[6],p=e[7],v=e[8];return t[0]=l*r+d*o+m*u,t[1]=l*i+d*a+m*h,t[2]=l*s+d*c+m*f,t[3]=M*r+b*o+g*u,t[4]=M*i+b*a+g*h,t[5]=M*s+b*c+g*f,t[6]=_*r+p*o+v*u,t[7]=_*i+p*a+v*h,t[8]=_*s+p*c+v*f,t}function f(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=s*n[6],t[7]=s*n[7],t[8]=s*n[8],t}function l(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,c=i+i,u=e*o,h=r*o,f=r*a,l=i*o,d=i*a,m=i*c,M=s*o,b=s*a,g=s*c;return t[0]=1-f-m,t[3]=h-g,t[6]=l+b,t[1]=h+g,t[4]=1-u-m,t[7]=d-M,t[2]=l-b,t[5]=d+M,t[8]=1-u-f,t}function d(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15],_=e*a-r*o,p=e*c-i*o,v=e*u-s*o,y=r*c-i*a,x=r*u-s*a,S=i*u-s*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,O=f*b-l*M,T=f*g-d*M,q=l*g-d*b;let I=_*q-p*T+v*O+y*j-x*A+S*w;return I?(I=1/I,t[0]=(a*q-c*T+u*O)*I,t[1]=(c*j-o*q-u*A)*I,t[2]=(o*T-a*j+u*w)*I,t[3]=(i*T-r*q-s*O)*I,t[4]=(e*q-i*j+s*A)*I,t[5]=(r*j-e*T-s*w)*I,t[6]=(M*S-b*x+g*y)*I,t[7]=(b*v-m*S-g*p)*I,t[8]=(m*x-M*v+g*_)*I,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const M=h,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:u,equals:function(t,n){const e=t[0],i=t[1],s=t[2],o=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8],l=n[0],d=n[1],m=n[2],M=n[3],b=n[4],g=n[5],_=n[6],p=n[7],v=n[8],y=(0,r.FD)();return Math.abs(e-l)<=y*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(i-d)<=y*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(s-m)<=y*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(o-M)<=y*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-b)<=y*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-g)<=y*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(u-_)<=y*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(h-p)<=y*Math.max(1,Math.abs(h),Math.abs(p))&&Math.abs(f-v)<=y*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:i,fromQuat:l,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],i=t[1],s=t[2],o=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8];return Math.abs(1-(e*e+o*o+u*u))<=n&&Math.abs(1-(i*i+a*a+h*h))<=n&&Math.abs(1-(s*s+c*c+f*f))<=n},mul:M,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],c=n[8],u=n[9],h=n[10],f=h*o-a*u,l=-h*s+a*c,d=u*s-o*c,m=e*f+r*l+i*d;if(!m)return null;const M=1/m;return t[0]=f*M,t[1]=(-h*r+i*u)*M,t[2]=(a*r-i*o)*M,t[3]=l*M,t[4]=(h*e-i*c)*M,t[5]=(-a*e+i*s)*M,t[6]=d*M,t[7]=(-u*e+r*c)*M,t[8]=(o*e-r*s)*M,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=Math.sin(e),d=Math.cos(e);return t[0]=d*r+l*o,t[1]=d*i+l*a,t[2]=d*s+l*c,t[3]=d*o-l*r,t[4]=d*a-l*i,t[5]=d*c-l*s,t[6]=u,t[7]=h,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],i=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=e[0],d=e[1];return t[0]=r,t[1]=i,t[2]=s,t[3]=o,t[4]=a,t[5]=c,t[6]=l*r+d*o+u,t[7]=l*i+d*a+h,t[8]=l*s+d*c+f,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>O,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>p,O7:()=>j,Qw:()=>u,Tl:()=>l,X_:()=>S,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>o,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>f,mg:()=>c,o1:()=>A,sC:()=>x,t2:()=>E,t5:()=>q,tZ:()=>P,ut:()=>C,v3:()=>T});var r=e(51850),i=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,i,s,o,a,c,u,h,f,l,d,m,M,b){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=c,t[8]=u,t[9]=h,t[10]=f,t[11]=l,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],s=n[6],o=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=s,t[11]=n[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function u(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15],_=e*a-r*o,p=e*c-i*o,v=e*u-s*o,y=r*c-i*a,x=r*u-s*a,S=i*u-s*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,O=f*b-l*M,T=f*g-d*M,q=l*g-d*b;let I=_*q-p*T+v*O+y*j-x*A+S*w;return I?(I=1/I,t[0]=(a*q-c*T+u*O)*I,t[1]=(i*T-r*q-s*O)*I,t[2]=(M*S-b*x+g*y)*I,t[3]=(l*x-f*S-d*y)*I,t[4]=(c*j-o*q-u*A)*I,t[5]=(e*q-i*j+s*A)*I,t[6]=(b*v-m*S-g*p)*I,t[7]=(h*S-l*v+d*p)*I,t[8]=(o*T-a*j+u*w)*I,t[9]=(r*j-e*T-s*w)*I,t[10]=(m*x-M*v+g*_)*I,t[11]=(f*v-h*x-d*_)*I,t[12]=(a*A-o*O-c*w)*I,t[13]=(e*O-r*A+i*w)*I,t[14]=(M*p-m*y-b*_)*I,t[15]=(h*y-f*p+l*_)*I,t):null}function f(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=n[8],l=n[9],d=n[10],m=n[11],M=n[12],b=n[13],g=n[14],_=n[15];let p=e[0],v=e[1],y=e[2],x=e[3];return t[0]=p*r+v*a+y*f+x*M,t[1]=p*i+v*c+y*l+x*b,t[2]=p*s+v*u+y*d+x*g,t[3]=p*o+v*h+y*m+x*_,p=e[4],v=e[5],y=e[6],x=e[7],t[4]=p*r+v*a+y*f+x*M,t[5]=p*i+v*c+y*l+x*b,t[6]=p*s+v*u+y*d+x*g,t[7]=p*o+v*h+y*m+x*_,p=e[8],v=e[9],y=e[10],x=e[11],t[8]=p*r+v*a+y*f+x*M,t[9]=p*i+v*c+y*l+x*b,t[10]=p*s+v*u+y*d+x*g,t[11]=p*o+v*h+y*m+x*_,p=e[12],v=e[13],y=e[14],x=e[15],t[12]=p*r+v*a+y*f+x*M,t[13]=p*i+v*c+y*l+x*b,t[14]=p*s+v*u+y*d+x*g,t[15]=p*o+v*h+y*m+x*_,t}function l(t,n,e){const r=e[0],i=e[1],s=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*s+n[12],t[13]=n[1]*r+n[5]*i+n[9]*s+n[13],t[14]=n[2]*r+n[6]*i+n[10]*s+n[14],t[15]=n[3]*r+n[7]*i+n[11]*s+n[15];else{const e=n[0],o=n[1],a=n[2],c=n[3],u=n[4],h=n[5],f=n[6],l=n[7],d=n[8],m=n[9],M=n[10],b=n[11];t[0]=e,t[1]=o,t[2]=a,t[3]=c,t[4]=u,t[5]=h,t[6]=f,t[7]=l,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=e*r+u*i+d*s+n[12],t[13]=o*r+h*i+m*s+n[13],t[14]=a*r+f*i+M*s+n[14],t[15]=c*r+l*i+b*s+n[15]}return t}function d(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function m(t,n,e,r){let o=r[0],a=r[1],c=r[2],u=Math.sqrt(o*o+a*a+c*c);if(u<=(0,i.FD)())return void s(t,n);u=1/u,o*=u,a*=u,c*=u;const h=Math.sin(e),f=Math.cos(e),l=1-f,d=n[0],m=n[1],M=n[2],b=n[3],g=n[4],_=n[5],p=n[6],v=n[7],y=n[8],x=n[9],S=n[10],w=n[11],A=o*o*l+f,j=a*o*l+c*h,O=c*o*l-a*h,T=o*a*l-c*h,q=a*a*l+f,I=c*a*l+o*h,E=o*c*l+a*h,C=a*c*l-o*h,P=c*c*l+f;t[0]=d*A+g*j+y*O,t[1]=m*A+_*j+x*O,t[2]=M*A+p*j+S*O,t[3]=b*A+v*j+w*O,t[4]=d*T+g*q+y*I,t[5]=m*T+_*q+x*I,t[6]=M*T+p*q+S*I,t[7]=b*T+v*q+w*I,t[8]=d*E+g*C+y*P,t[9]=m*E+_*C+x*P,t[10]=M*E+p*C+S*P,t[11]=b*E+v*C+w*P,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function M(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[4],o=n[5],a=n[6],c=n[7],u=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*i+u*r,t[5]=o*i+h*r,t[6]=a*i+f*r,t[7]=c*i+l*r,t[8]=u*i-s*r,t[9]=h*i-o*r,t[10]=f*i-a*r,t[11]=l*i-c*r,t}function b(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,e){if(0===n)return a(t);let r=e[0],s=e[1],o=e[2],c=Math.sqrt(r*r+s*s+o*o);if(c<=(0,i.FD)())return null;c=1/c,r*=c,s*=c,o*=c;const u=Math.sin(n),h=Math.cos(n),f=1-h;return t[0]=r*r*f+h,t[1]=s*r*f+o*u,t[2]=o*r*f-s*u,t[3]=0,t[4]=r*s*f-o*u,t[5]=s*s*f+h,t[6]=o*s*f+r*u,t[7]=0,t[8]=r*o*f+s*u,t[9]=s*o*f-r*u,t[10]=o*o*f+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=r+r,c=i+i,u=s+s,h=r*a,f=r*c,l=r*u,d=i*c,m=i*u,M=s*u,b=o*a,g=o*c,_=o*u;return t[0]=1-(d+M),t[1]=f+_,t[2]=l-g,t[3]=0,t[4]=f-_,t[5]=1-(h+M),t[6]=m+b,t[7]=0,t[8]=l+g,t[9]=m-b,t[10]=1-(h+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const y=(0,r.vt)();function x(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function S(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],c=n[8],u=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(c*c+u*u+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3],c=i+i,u=s+s,h=o+o,f=i*c,l=i*u,d=i*h,m=s*u,M=s*h,b=o*h,g=a*c,_=a*u,p=a*h,v=r[0],y=r[1],x=r[2];return t[0]=(1-(m+b))*v,t[1]=(l+p)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(l-p)*y,t[5]=(1-(f+b))*y,t[6]=(M+g)*y,t[7]=0,t[8]=(d+_)*x,t[9]=(M-g)*x,t[10]=(1-(f+m))*x,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function j(t,n,e,r,i){const s=n[0],o=n[1],a=n[2],c=n[3],u=s+s,h=o+o,f=a+a,l=s*u,d=s*h,m=s*f,M=o*h,b=o*f,g=a*f,_=c*u,p=c*h,v=c*f,y=r[0],x=r[1],S=r[2],w=i[0],A=i[1],j=i[2],O=(1-(M+g))*y,T=(d+v)*y,q=(m-p)*y,I=(d-v)*x,E=(1-(l+g))*x,C=(b+_)*x,P=(m+p)*S,N=(b-_)*S,R=(1-(l+M))*S;return t[0]=O,t[1]=T,t[2]=q,t[3]=0,t[4]=I,t[5]=E,t[6]=C,t[7]=0,t[8]=P,t[9]=N,t[10]=R,t[11]=0,t[12]=e[0]+w-(O*w+I*A+P*j),t[13]=e[1]+A-(T*w+E*A+N*j),t[14]=e[2]+j-(q*w+C*A+R*j),t[15]=1,t}function O(t,n,e,r,i,s,o){const a=1/(e-n),c=1/(i-r),u=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*c,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*c,t[10]=(o+s)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*u,t[15]=0,t}function T(t,n,e,r,i,s,o){const a=1/(n-e),c=1/(r-i),u=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*c,t[14]=(o+s)*u,t[15]=1,t}function q(t,n,e,r){const s=n[0],o=n[1],c=n[2];let u=s-e[0],h=o-e[1],f=c-e[2];const l=(0,i.FD)();if(Math.abs(u)<l&&Math.abs(h)<l&&Math.abs(f)<l)return void a(t);let d=1/Math.sqrt(u*u+h*h+f*f);u*=d,h*=d,f*=d;const m=r[0],M=r[1],b=r[2];let g=M*f-b*h,_=b*u-m*f,p=m*h-M*u;d=Math.sqrt(g*g+_*_+p*p),d?(d=1/d,g*=d,_*=d,p*=d):(g=0,_=0,p=0);let v=h*p-f*_,y=f*g-u*p,x=u*_-h*g;d=Math.sqrt(v*v+y*y+x*x),d?(d=1/d,v*=d,y*=d,x*=d):(v=0,y=0,x=0),t[0]=g,t[1]=v,t[2]=u,t[3]=0,t[4]=_,t[5]=y,t[6]=h,t[7]=0,t[8]=p,t[9]=x,t[10]=f,t[11]=0,t[12]=-(g*s+_*o+p*c),t[13]=-(v*s+y*o+x*c),t[14]=-(u*s+h*o+f*c),t[15]=1}function I(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function C(t){const n=(0,i.FD)(),e=t[0],r=t[1],s=t[2],o=t[4],a=t[5],c=t[6],u=t[8],h=t[9],f=t[10];return Math.abs(1-(e*e+o*o+u*u))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(s*s+c*c+f*f))<=n}function P(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=f,R=I;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],c=n[6],u=n[7],h=n[8],f=n[9],l=n[10],d=n[11],m=n[12],M=n[13],b=n[14],g=n[15];return t[0]=a*(l*g-d*b)-f*(c*g-u*b)+M*(c*d-u*l),t[1]=-(r*(l*g-d*b)-f*(i*g-s*b)+M*(i*d-s*l)),t[2]=r*(c*g-u*b)-a*(i*g-s*b)+M*(i*u-s*c),t[3]=-(r*(c*d-u*l)-a*(i*d-s*l)+f*(i*u-s*c)),t[4]=-(o*(l*g-d*b)-h*(c*g-u*b)+m*(c*d-u*l)),t[5]=e*(l*g-d*b)-h*(i*g-s*b)+m*(i*d-s*l),t[6]=-(e*(c*g-u*b)-o*(i*g-s*b)+m*(i*u-s*c)),t[7]=e*(c*d-u*l)-o*(i*d-s*l)+h*(i*u-s*c),t[8]=o*(f*g-d*M)-h*(a*g-u*M)+m*(a*d-u*f),t[9]=-(e*(f*g-d*M)-h*(r*g-s*M)+m*(r*d-s*f)),t[10]=e*(a*g-u*M)-o*(r*g-s*M)+m*(r*u-s*a),t[11]=-(e*(a*d-u*f)-o*(r*d-s*f)+h*(r*u-s*a)),t[12]=-(o*(f*b-l*M)-h*(a*b-c*M)+m*(a*l-c*f)),t[13]=e*(f*b-l*M)-h*(r*b-i*M)+m*(r*l-i*f),t[14]=-(e*(a*b-c*M)-o*(r*b-i*M)+m*(r*c-i*a)),t[15]=e*(a*l-c*f)-o*(r*l-i*f)+h*(r*c-i*a),t},copy:s,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],c=t[7],u=t[8],h=t[9],f=t[10],l=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(n*o-e*s)*(f*b-l*M)-(n*a-r*s)*(h*b-l*m)+(n*c-i*s)*(h*M-f*m)+(e*a-r*o)*(u*b-l*d)-(e*c-i*o)*(u*M-f*d)+(r*c-i*a)*(u*m-h*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=t[3],a=t[4],c=t[5],u=t[6],h=t[7],f=t[8],l=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],_=t[15],p=n[0],v=n[1],y=n[2],x=n[3],S=n[4],w=n[5],A=n[6],j=n[7],O=n[8],T=n[9],q=n[10],I=n[11],E=n[12],C=n[13],P=n[14],N=n[15],R=(0,i.FD)();return Math.abs(e-p)<=R*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(r-v)<=R*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-y)<=R*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(o-x)<=R*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-S)<=R*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(c-w)<=R*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(u-A)<=R*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(h-j)<=R*Math.max(1,Math.abs(h),Math.abs(j))&&Math.abs(f-O)<=R*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(l-T)<=R*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(d-q)<=R*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-I)<=R*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(M-E)<=R*Math.max(1,Math.abs(M),Math.abs(E))&&Math.abs(b-C)<=R*Math.max(1,Math.abs(b),Math.abs(C))&&Math.abs(g-P)<=R*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-N)<=R*Math.max(1,Math.abs(_),Math.abs(N))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,c=i+i,u=e*o,h=r*o,f=r*a,l=i*o,d=i*a,m=i*c,M=s*o,b=s*a,g=s*c;return t[0]=1-f-m,t[1]=h+g,t[2]=l-b,t[3]=0,t[4]=h-g,t[5]=1-u-m,t[6]=d+M,t[7]=0,t[8]=l+b,t[9]=d-M,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=y,r=-n[0],i=-n[1],s=-n[2],o=n[3],a=n[4],c=n[5],u=n[6],h=n[7],f=r*r+i*i+s*s+o*o;return f>0?(e[0]=2*(a*o+h*r+c*s-u*i)/f,e[1]=2*(c*o+h*i+u*r-a*s)/f,e[2]=2*(u*o+h*s+a*i-c*r)/f):(e[0]=2*(a*o+h*r+c*s-u*i),e[1]=2*(c*o+h*i+u*r-a*s),e[2]=2*(u*o+h*s+a*i-c*r)),v(t,n,e),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:j,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:_,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:O,getRotation:w,getScale:S,getTranslation:x,hasIdentityRotation:P,identity:a,invert:h,invertOrIdentity:u,isOrthoNormal:C,lookAt:q,mul:N,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:T,perspective:function(t,n,e,r,i){const s=1/Math.tan(n/2);let o;return t[0]=s/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),c=2/(o+a),u=2/(i+s);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-a)*c*.5,t[9]=(i-s)*u*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],c=n[3],u=n[8],h=n[9],f=n[10],l=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i-u*r,t[1]=o*i-h*r,t[2]=a*i-f*r,t[3]=c*i-l*r,t[8]=s*r+u*i,t[9]=o*r+h*i,t[10]=a*r+f*i,t[11]=c*r+l*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],c=n[3],u=n[4],h=n[5],f=n[6],l=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i+u*r,t[1]=o*i+h*r,t[2]=a*i+f*r,t[3]=c*i+l*r,t[4]=u*i-s*r,t[5]=h*i-o*r,t[6]=f*i-a*r,t[7]=l*i-c*r,t},scale:d,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:R,subtract:I,targetTo:function(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=r[0],c=r[1],u=r[2];let h=i-e[0],f=s-e[1],l=o-e[2],d=h*h+f*f+l*l;d>0&&(d=1/Math.sqrt(d),h*=d,f*=d,l*=d);let m=c*l-u*f,M=u*h-a*l,b=a*f-c*h;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=f*b-l*M,t[5]=l*m-h*b,t[6]=h*M-f*m,t[7]=0,t[8]=h,t[9]=f,t[10]=l,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:l,transpose:c},Symbol.toStringTag,{value:"Module"}))},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>u,jh:()=>s,l5:()=>a,yH:()=>c});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);const e=s(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function u(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>T,C:()=>o,DC:()=>l,Dg:()=>m,Ej:()=>v,Ie:()=>j,Jt:()=>O,Lu:()=>x,Ne:()=>S,RF:()=>f,TF:()=>_,VL:()=>M,aI:()=>I,fA:()=>a,gE:()=>u,gX:()=>p,hZ:()=>A,iT:()=>d,is:()=>q,pg:()=>y,uJ:()=>g,vI:()=>w,vY:()=>c,vt:()=>s,w1:()=>h,yr:()=>b}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,o,a=s()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=o,a}function c(t,n=s()){return function(t,n,e,r=s()){return A(r,E),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],c=t[4],u=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),u=Math.max(u,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=c,t[5]=u}(r,t,n,e),r}(t,0,t.length/3,n)}function u(t,n=(0,i.jh)(24)){const[e,r,s,o,a,c]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=a,n[8]=s,n[9]=e,n[10]=a,n[11]=c,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=c,n[18]=o,n[19]=a,n[20]=s,n[21]=o,n[22]=a,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function f(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function d(t,[n,e,r]){m(t,n,e,r)}function m(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}function M(t){return t[0]>=t[3]?0:t[3]-t[0]}function b(t){return t[1]>=t[4]?0:t[4]-t[1]}function g(t){return t[2]>=t[5]?0:t[5]-t[2]}function _(t){const n=M(t),e=g(t),r=b(t);return n*n+e*e+r*r}function p(t,n=[0,0,0]){return n[0]=t[0]+M(t)/2,n[1]=t[1]+b(t)/2,n[2]=t[2]+g(t)/2,n}function v(t,n=[0,0,0]){return n[0]=M(t),n[1]=b(t),n[2]=g(t),n}function y(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function x(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function S(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function w(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function A(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function j(t){return t?A(t,E):s(E)}function O(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function T(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function q(t){return 6===t.length}function I(t,n,e){if(null==t||null==n)return t===n;if(!q(t)||!q(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const E=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),e.d(n,["qv",0,E,"v_",0,C])},82919(t,n,e){e.d(n,{DV:()=>_,C:()=>b,vt:()=>m,Qy:()=>M,ui:()=>g,ST:()=>S,bU:()=>w,pw:()=>x,m7:()=>p,ZU:()=>v,GH:()=>y,c8:()=>j});var r=e(4341),i=e(58083),s=e(35522),o=e(51850),a=e(78955),c=e(91829),u=e(70328),h=e(71351);function f(t){return t?{ray:(0,h.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,h.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>f());var l=e(27921),d=e(32114);function m(t){return t?[(0,l.vt)(t[0]),(0,l.vt)(t[1]),(0,l.vt)(t[2]),(0,l.vt)(t[3]),(0,l.vt)(t[4]),(0,l.vt)(t[5])]:[(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)()]}function M(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function b(t,n){for(let e=0;e<O;e++)(0,l.C)(t[e],n[e]);return t}function g(t,n,e,r=E){const o=(0,i.lw)(d.Rc.get(),n,t);(0,i.B8)(o,o);for(let t=0;t<T;++t){const n=(0,a.Z0)(d.Km.get(),q[t],o);(0,s.hZ)(r[t],n[0]/n[3],n[1]/n[3],n[2]/n[3])}_(e,r)}function _(t,n){(0,l.Cr)(n[4],n[0],n[3],t[0]),(0,l.Cr)(n[1],n[5],n[6],t[1]),(0,l.Cr)(n[4],n[5],n[1],t[2]),(0,l.Cr)(n[3],n[2],n[6],t[3]),(0,l.Cr)(n[0],n[1],n[2],t[4]),(0,l.Cr)(n[5],n[4],n[7],t[5])}function p(t,n){return v(t,n.center,n.radius)}function v(t,n,e){for(let r=0;r<O;r++){const i=t[r];if(i[0]*n[0]+i[1]*n[1]+i[2]*n[2]+i[3]>=e)return!1}return!0}function y(t,n,e){const r=(0,u.gX)(n,C),i=(0,u.VL)(n)/2,o=(0,u.yr)(n)/2,a=(0,u.uJ)(n)/2;return e?function(t,n,e,r,i,o){const a=(0,s.Z0)(P,n,o);for(let n=0;n<O;n++){const s=t[n];if(s[0]*a[0]+s[1]*a[1]+s[2]*a[2]+s[3]-(Math.abs(s[0]*o[0]+s[1]*o[1]+s[2]*o[2])*e+Math.abs(s[0]*o[4]+s[1]*o[5]+s[2]*o[6])*r+Math.abs(s[0]*o[8]+s[1]*o[9]+s[2]*o[10])*i)>0)return!1}return!0}(t,r,i,o,a,e):function(t,n,e,r,i){for(let s=0;s<O;s++){const o=t[s];if(o[0]*n[0]+o[1]*n[1]+o[2]*n[2]+o[3]-(Math.abs(o[0])*e+Math.abs(o[1])*r+Math.abs(o[2])*i)>0)return!1}return!0}(t,r,i,o,a)}function x(t,n){return A(t,function(t,n=f()){return(0,h.C)(t,n.ray),n.c0=0,n.c1=Number.MAX_VALUE,n}(n,I.get()))}function S(t,n,e){return A(t,function(t,n,e=f()){const r=(0,s.Bw)(t.vector);return(0,h.fA)(t.origin,n,e.ray),e.c0=0,e.c1=r,e}(n,e,I.get()))}function w(t,n){for(let e=0;e<O;e++)if((0,l.mN)(t[e],n)>0)return!1;return!0}function A(t,n){for(let e=0;e<O;e++)if(!(0,l.$Q)(t[e],n))return!1;return!0}const j={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},O=6,T=8,q=[(0,c.fA)(-1,-1,-1,1),(0,c.fA)(1,-1,-1,1),(0,c.fA)(1,1,-1,1),(0,c.fA)(-1,1,-1,1),(0,c.fA)(-1,-1,1,1),(0,c.fA)(1,-1,1,1),(0,c.fA)(1,1,1,1),(0,c.fA)(-1,1,1,1)],I=new r.I(f),E=M(),C=(0,o.vt)(),P=(0,o.vt)()},11964(t,n,e){e.d(n,{Cr:()=>h,G1:()=>d,LV:()=>u,_I:()=>l,kb:()=>f,ld:()=>m,vt:()=>c});var r=e(34727),i=e(4341),s=e(35522),o=e(51850),a=e(32114);function c(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function u(t,n){const e=b.get();return e.origin=t,e.vector=n,e}function h(t,n,e=c()){return(0,s.C)(e.origin,t),(0,s.Re)(e.vector,n,t),e}function f(t,n){const e=(0,s.Re)(a.rq.get(),n,t.origin),i=(0,s.Om)(t.vector,e),o=(0,s.Om)(t.vector,t.vector);if(Math.abs(o)<g)return(0,s.hG)(t.origin,n);const c=(0,r.qE)(i/o,0,1),u=(0,s.Re)(a.rq.get(),(0,s.hs)(a.rq.get(),t.vector,c),e);return(0,s.Om)(u,u)}function l(t,n,e){return function(t,n,e,i,o){const{vector:c,origin:u}=t,h=(0,s.Re)(a.rq.get(),n,u),f=(0,s.Om)(c,h)/(0,s.m3)(c);return(0,s.hs)(o,c,(0,r.qE)(f,0,1)),(0,s.WQ)(o,o,t.origin)}(t,n,0,0,e)}function d(t,n){const{vector:e,origin:i}=t,o=(0,s.Re)(a.rq.get(),n,i),c=(0,s.Om)(e,o)/(0,s.m3)(e);return(0,r.qE)(c,0,1)}function m(t,n,e){return!!function(t,n,e,i){const o=1e-6,c=t.origin,u=(0,s.WQ)(a.rq.get(),c,t.vector),h=n.origin,f=(0,s.WQ)(a.rq.get(),h,n.vector),l=a.rq.get(),d=a.rq.get();if(l[0]=c[0]-h[0],l[1]=c[1]-h[1],l[2]=c[2]-h[2],d[0]=f[0]-h[0],d[1]=f[1]-h[1],d[2]=f[2]-h[2],Math.abs(d[0])<o&&Math.abs(d[1])<o&&Math.abs(d[2])<o)return!1;const m=a.rq.get();if(m[0]=u[0]-c[0],m[1]=u[1]-c[1],m[2]=u[2]-c[2],Math.abs(m[0])<o&&Math.abs(m[1])<o&&Math.abs(m[2])<o)return!1;const M=l[0]*d[0]+l[1]*d[1]+l[2]*d[2],b=d[0]*m[0]+d[1]*m[1]+d[2]*m[2],g=l[0]*m[0]+l[1]*m[1]+l[2]*m[2],_=d[0]*d[0]+d[1]*d[1]+d[2]*d[2],p=(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])*_-b*b;if(Math.abs(p)<o)return!1;let v=(M*b-g*_)/p,y=(M+b*v)/_;e&&(v=(0,r.qE)(v,0,1),y=(0,r.qE)(y,0,1));const x=a.rq.get(),S=a.rq.get();return x[0]=c[0]+v*m[0],x[1]=c[1]+v*m[1],x[2]=c[2]+v*m[2],S[0]=h[0]+y*d[0],S[1]=h[1]+y*d[1],S[2]=h[2]+y*d[2],i.tA=v,i.tB=y,i.pA=x,i.pB=S,i.distance2=(0,s.hG)(x,S),!0}(t,n,!0,M)&&((0,s.C)(e,M.pA),!0)}const M={tA:0,tB:0,pA:(0,o.vt)(),pB:(0,o.vt)(),distance2:0},b=new i.I(()=>c()),g=1e-9},27921(t,n,e){e.d(n,{$Q:()=>v,C:()=>a,Cr:()=>h,H:()=>x,O_:()=>u,Qj:()=>c,T7:()=>_,Tj:()=>p,lU:()=>f,mN:()=>S,vE:()=>w,vt:()=>o});var r=e(34727),i=e(35522),s=e(51850);function o(t=A){return[t[0],t[1],t[2],t[3]]}function a(t,n){return function(t,n,e,r,i=o()){return i[0]=t,i[1]=n,i[2]=e,i[3]=r,i}(n[0],n[1],n[2],n[3],t)}function c(t){return t}function u(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function h(t,n,e,r=o()){const i=e[0]-n[0],s=e[1]-n[1],a=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-a*u,l=a*c-i*h,d=i*u-s*c,m=f*f+l*l+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=f*M,r[1]=l*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function f(t,n,e,r=0,s=Math.floor(e*(1/3)),o=Math.floor(e*(2/3))){if(e<3)return!1;n(d,r);let a=s,c=!1;for(;a<e-1&&!c;)n(m,a),a++,c=!(0,i.t2)(d,m);if(!c)return!1;for(a=Math.max(a,o),c=!1;a<e&&!c;)n(M,a),a++,(0,i.Re)(b,d,m),(0,i.S8)(b,b),(0,i.Re)(g,m,M),(0,i.S8)(g,g),c=!(0,i.t2)(d,M)&&!(0,i.t2)(m,M)&&Math.abs((0,i.Om)(b,g))<l;return c?(h(d,m,M,t),!0):(0!==r||1!==s||2!==o)&&f(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const l=.99619469809,d=(0,s.vt)(),m=(0,s.vt)(),M=(0,s.vt)(),b=(0,s.vt)(),g=(0,s.vt)();function _(t,n,e){return function(t){return 0===t||1===t}(w(t,n.origin,n.vector,0,e))}function p(t,n){return S(t,n)>=0}function v(t,n){return function(t,n,e,r,s,o,a){const c=(0,i.Om)(t,e),u=S(t,n);if(c>-1e-6&&c<1e-6)return y(u,s,o);const h=-u/c,f=y(c,s,!1);return!(a&&!f&&!y(u,s,o))&&(f?h>r.c0&&(r.c0=h):h<r.c1&&(r.c1=h),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function y(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function x(t,n,e,r=!1){let s=n.at(-1),o=S(t,s),a=r?o>0:o<=0;for(let c=0;c<n.length;c++){const u=n.at(c),h=S(t,u),f=r?h>0:h<=0;a!==f&&(0,i.Cc)(e(),s,u,o/(o-h)),f&&(0,i.C)(e(),u),s=u,o=h,a=f}}function S(t,n){return(0,i.Om)(t,n)+t[3]}function w(t,n,e,s,o){const a=(0,i.Om)(t,e),c=S(t,n);if(0===a)return c>=0?2:3;let u=-c/a;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,i.WQ)(o,n,(0,i.hs)(o,e,u)),c>=0?0:1)}const A=[0,0,1,0];(0,s.vt)()},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>f,LV:()=>u,fA:()=>l,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(35522),o=e(51850);function a(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,n){return{origin:t,direction:n}}function u(t,n){const e=d.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return l(t.origin,t.direction,n)}function f(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.Re)(e.direction,n,t),e}function l(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.C)(e.direction,n),e}e(32114);const d=new r.I(()=>a());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},94008(t,n,e){e.d(n,{iy:()=>d}),e(44208),e(53966);var r=e(34727),i=e(34304),s=e(58083),o=e(35522),a=e(51850),c=e(91829),u=e(34275);var h=e(71351),f=e(44280),l=e(32114);class d{constructor(t=0,n=0,e=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,a.fA)(t,n,e):function(t){return n=t,(0,u.vZ)(n)&&n.length>=3||function(t){return((0,u.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var n}(t)||function(t){return(n=t)instanceof Float32Array&&n.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var n}(t)?(this._center=(0,a.ci)(t),this.radius=4===t.length?t[3]:n):(this._center=(0,a.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.C)(this.center,t)}exactEquals(t){return(0,o.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,c.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.hG)(this.center,t)<=this.radius**2}intersects(t){const n=this.radius+t.radius;return(0,o.hG)(this.center,t.center)<=n*n}intersectRay(t,n){if(null==t)return!1;if(!this._intersect(t,m))return!1;let{t0:e,t1:r}=m;if((e<0||r<e&&r>0)&&(e=r),e<0)return!1;if(n){const{origin:r,direction:i}=t;n[0]=r[0]+i[0]*e,n[1]=r[1]+i[1]*e,n[2]=r[2]+i[2]*e}return!0}intersectLine(t,n){const e=(0,h.Cr)(t,n);if(!this._intersect(e,m))return[];const{origin:r,direction:s}=e,{t0:c,t1:u}=m,f=t=>{const n=(0,a.vt)();return(0,o.Ln)(n,r,s,t),this.projectPoint(n,n)};return Math.abs(c-u)<(0,i.FD)()?[f(c)]:[f(c),f(u)]}_intersect(t,n){const{origin:e,direction:r}=t,i=M;i[0]=e[0]-this.center[0],i[1]=e[1]-this.center[1],i[2]=e[2]-this.center[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const o=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),a=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(a<0)return!1;const c=Math.sqrt(a);return n.t0=(-o-c)/(2*s),n.t1=(-o+c)/(2*s),!0}projectPoint(t,n){const e=(0,o.Re)(l.rq.get(),t,this.center),r=(0,o.hs)(l.rq.get(),e,this.radius/(0,o.Bw)(e));return(0,o.WQ)(n,r,this.center)}closestPointOnSilhouette(t,n){const e=l.rq.get(),r=l.Rc.get();(0,o.$A)(e,t.origin,t.direction),(0,o.$A)(n,e,t.origin),(0,o.hs)(n,n,1/(0,o.Bw)(n)*this.radius);const i=this._angleToSilhouette(t.origin),a=(0,f.g7)(t.origin,n);return(0,s.$0)(r,a+i,e),(0,o.Z0)(n,n,r),n}frustumCoverage(t,n,e){const r=this.radius,i=r*r,s=t+.5*Math.PI,o=n*n+i-2*Math.cos(s)*n*r,a=Math.sqrt(o),c=o-i;if(c<=0)return.5;const u=Math.sqrt(c),h=Math.acos(u/a)-Math.asin(r/(a/Math.sin(s)));return Math.min(1,(h+.5*e)/e)}_angleToSilhouette(t){const n=(0,o.Re)(l.rq.get(),t,this.center),e=(0,o.Bw)(n),i=this.radius,s=i+Math.abs(i-e);return(0,r.XM)(i/s)}union(t){const n=(0,o.Io)(this._center,t.center),e=this.radius,r=t.radius;return n+r<e?this:n+e<r?(this.copyFrom(t),this):((0,o.Cc)(this._center,this._center,t.center,(n+r-e)/(2*n)),this.radius=(n+e+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){const{center:n,radius:e}=this,r=t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3];return r<0?Math.min(r+e,0):Math.max(r-e,0)}}new d;const m={t0:0,t1:0},M=(0,a.vt)();(0,a.vt)(),(0,a.vt)()},44280(t,n,e){e.d(n,{g7:()=>a,gr:()=>o});var r=e(34727),i=e(35522),s=e(51850);function o(t,n){return(0,i.Om)(t,n)/(0,i.Bw)(t)}function a(t,n){const e=(0,i.Om)(t,n)/((0,i.Bw)(t)*(0,i.Bw)(n));return-(0,r.XM)(e)}(0,s.vt)(),(0,s.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),i=e(29242),s=e(9093),o=e(82534),a=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},32728(t,n,e){e.d(n,{YH:()=>a,hG:()=>s,nu:()=>c,wp:()=>o}),e(34727);var r=e(35522),i=e(51850);function s(t){const n=t[0]*t[0]+t[4]*t[4]+t[8]*t[8],e=t[1]*t[1]+t[5]*t[5]+t[9]*t[9],r=t[2]*t[2]+t[6]*t[6]+t[10]*t[10];return Math.sqrt(Math.max(n,e,r))}function o(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),i=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,i,s),t}function a(t,n,e){e=e||t;const i=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-i*n[0],t[1]-i*n[1],t[2]-i*n[2]),(0,r.S8)(e,e)}function c(t,n,e,s=(0,i.vt)()){const o=(0,r.Bw)(t),a=(0,r.Bw)(n),c=(0,r.Om)(t,n)/(o*a);if(c<.9999999999999999){const i=Math.acos(c),f=((1-e)*o+e*a)/Math.sin(i),l=f/o*Math.sin((1-e)*i),d=f/a*Math.sin(e*i);return(0,r.hs)(u,t,l),(0,r.hs)(h,n,d),(0,r.WQ)(s,u,h)}return(0,r.Cc)(s,t,n,e)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const u=(0,i.vt)(),h=(0,i.vt)()},78230(t,n,e){e.d(n,{x:()=>f});var r=e(93687),i=e(15142),s=e(35522),o=e(51850),a=e(82919),c=e(71351),u=e(94008),h=e(620);class f{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,n){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new l,this._objectCount=0,n&&(void 0!==n.maximumObjectsPerNode&&(this._maximumObjectsPerNode=n.maximumObjectsPerNode),void 0!==n.maximumDepth&&(this._maximumDepth=n.maximumDepth))}destroy(){this._degenerateObjects.clear(),l.clearPool(),q[0]=null,N.prune(),D.prune()}add(t){const n=Array.from(t);this._grow(n);const e=l.acquire();for(const t of n)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(e.init(this._root),this._add(t,e));l.release(e)}remove(t,n=null){this._objectCount-=t.length;const e=l.acquire();for(const r of t){const t=n??this.objectToBoundingSphere(r);A(t.radius)?(e.init(this._root),b(r,t,e)):this._degenerateObjects.delete(r)}l.release(e),this._shrink()}update(t,n){if(!A(n.radius)&&this._isDegenerate(t))return;const e=function(t){return q[0]=t,q}(t);this.remove(e,n),this.add(e)}forEachAlongRay(t,n,e){const r=(0,c.LV)(t,n);m(this._root,t=>{if(!function(t,n){return y(n.bounds.center,2*-n.halfSize,C),y(n.bounds.center,2*n.halfSize,P),(0,h.O_)(t.origin,t.direction,C,P)}(r,t))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObject(r,t)&&e(t)}),!0})}forEachAlongRayWithVerticalOffset(t,n,e,r){const i=(0,c.LV)(t,n);m(this._root,t=>{if(!function(t,n,e){return y(n.bounds.center,2*-n.halfSize,C),y(n.bounds.center,2*n.halfSize,P),e.applyToMinMax(C,P),(0,h.O_)(t.origin,t.direction,C,P)}(i,t,r))return!1;const n=t.node;return n.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&e(t)}),null!==n.residents&&n.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&e(t)}),!0})}forEach(t){for(const n of this.values())t(n)}*values(){for(const t of this._nodeIteratorValues()){const n=t.node;yield*n.terminals,null!==n.residents&&(yield*n.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,n,e,r=()=>!0,i=1/0){let o=1/0,c=1/0,u=null;const h=S(t,n),f=s=>{if(--i,!r(s))return;const h=this.objectToBoundingSphere(s);if(!(0,a.m7)(e,h))return;const f=w(t,n,h.center),l=f-h.radius,d=f+h.radius;l<o&&(o=l,c=d,u=s)};return M(this._root,r=>{if(i<=0||!(0,a.ZU)(e,r.bounds.center,2*r.bounds.radius))return!1;if((0,s.hs)(E,h,2*r.halfSize),(0,s.WQ)(E,E,r.bounds.center),w(t,n,E)>c)return!1;const o=r.node;return o.terminals.forAll(t=>f(t)),null!==o.residents&&o.residents.forAll(t=>f(t)),!0},t,n),u}forEachInDepthRange(t,n,e,r,i,o,c){let u=-1/0,h=1/0;const f={setRange:t=>{1===e?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};f.setRange(r);const l=w(n,e,t),d=S(n,e),m=S(n,-e),b=t=>{if(!c(t))return;const r=this.objectToBoundingSphere(t),s=w(n,e,r.center)-l,d=s-r.radius,m=s+r.radius;d>h||m<u||!(0,a.m7)(o,r)||i(t,f)};M(this._root,t=>{if(!(0,a.ZU)(o,t.bounds.center,2*t.bounds.radius))return!1;if((0,s.hs)(E,d,2*t.halfSize),(0,s.WQ)(E,E,t.bounds.center),w(n,e,E)-l>h)return!1;if((0,s.hs)(E,m,2*t.halfSize),(0,s.WQ)(E,E,t.bounds.center),w(n,e,E)-l<u)return!1;const r=t.node;return r.terminals.forAll(t=>b(t)),null!==r.residents&&r.residents.forAll(t=>b(t)),!0},n,e)}forEachNode(t){m(this._root,n=>t(n.node,n.bounds,n.halfSize,n.depth))}forEachIntersectingFrustum(t,n,e=()=>!0){for(const r of this.intersectingFrustumValues(t,e))n(r)}*intersectingFrustumValues(t,n=()=>!0){for(const e of this._nodeIteratorValues(n=>(0,a.ZU)(t,n.bounds.center,2*n.bounds.radius))){const r=e.node;for(const e of r.terminals)n(e)&&(0,a.m7)(t,this.objectToBoundingSphere(e))&&(yield e);if(null!==r.residents)for(const e of r.residents)n(e)&&(0,a.m7)(t,this.objectToBoundingSphere(e))&&(yield e)}}*_nodeIteratorValues(t=()=>!0){yield*d(this._root,t)}forEachNeighbor(t,n){const e=n.radius,r=n.center,i=e=>{const r=this.objectToBoundingSphere(e);return!n.intersects(r)||t(e)};let o=!0;const a=t=>{o&&(o=i(t))};m(this._root,t=>{const n=2*t.bounds.radius,i=e+n;if((0,s.hG)(t.bounds.center,r)-i*i>0)return!1;const c=t.node;return c.terminals.forAll(a),o&&null!==c.residents&&c.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(t,n){const e=this.objectToBoundingSphere(n);return!(e.radius>0)||e.intersectRay(t)}_intersectsObjectWithOffset(t,n,e){const r=this.objectToBoundingSphere(n);return!(r.radius>0)||e.applyToBoundingSphere(r).intersectRay(t)}_add(t,n){n.advanceTo(this.objectToBoundingSphere(t))?n.node.terminals.push(t):(n.node.residents.push(t),n.node.residents.length>this._maximumObjectsPerNode&&n.depth<this._maximumDepth&&this._split(n))}_split(t){const n=t.node.residents;t.node.residents=null;for(let e=0;e<n.length;e++){const r=l.acquire().init(t);this._add(n.at(e),r),l.release(r)}}_grow(t){if(x(t,t=>this.objectToBoundingSphere(t),R),A(R.radius)&&!this._fitsInsideTree(R))if(_(this._root.node))this._root.bounds.copyFrom(R),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(R);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(R,t):this._growRootAsSubNode(t),l.release(t)}}_rebuildTree(t,n){F.center=n.bounds.center,F.radius=n.halfSize,x([t,F],t=>t,z);const e=l.acquire().init(this._root);this._root.initFrom(null,z,z.radius),this._root.increaseHalfSize(1.25),m(e,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),l.release(e)}_placingRootViolatesMaxDepth(t){const n=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let e=0;return m(this._root,t=>(e=Math.max(e,t.depth),e+n<=this._maximumDepth)),e+n>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const n=t.radius,e=t.center;let r=-1/0;const i=this._root.bounds.center,s=this._root.halfSize;for(let t=0;t<3;t++){const o=i[t]-s-(e[t]-n),a=e[t]+n-(i[t]+s),c=Math.max(0,Math.ceil(o/(2*s))),u=Math.max(0,Math.ceil(a/(2*s)))+1,h=2**Math.ceil(Math.log(c+u)*Math.LOG2E);r=Math.max(r,h),V[t].min=c,V[t].max=u}for(let t=0;t<3;t++){let n=V[t].min,e=V[t].max;const o=(r-(n+e))/2;n+=Math.ceil(o),e+=Math.floor(o);const a=i[t]-s-n*s*2;I.center[t]=a+(e+n)*s}const o=r*s;return I.radius=o*T,l.acquire().initFrom(null,I,o,0)}_growRootAsSubNode(t){const n=this._root.node;R.center=this._root.bounds.center,R.radius=this._root.halfSize,this._root.init(t),t.advanceTo(R,null,!0),t.node.children=n.children,t.node.residents=n.residents,t.node.terminals=n.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const n=this._root.node.children;let e=0,r=0;for(;r<n.length&&null==t;)e=r++,t=n[e];for(;r<n.length;)if(n[r++])return-1;return e}_isDegenerate(t){return!A(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){const n=this._root.bounds,e=this._root.halfSize;return t.radius<=e&&t.center[0]>=n.center[0]-e&&t.center[0]<=n.center[0]+e&&t.center[1]>=n.center[1]-e&&t.center[1]<=n.center[1]+e&&t.center[2]>=n.center[2]-e&&t.center[2]<=n.center[2]+e}_nodeToJSON(t){const n=t.children.map(t=>t?this._nodeToJSON(t):null),e=t.residents?.map(t=>this.objectToBoundingSphere(t)),r=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:n,residents:e,terminals:r}}}class l{constructor(){this.bounds=new u.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,n,e,r=this.depth){return this.node=null!=t?t:l.createEmptyNode(),n&&this.bounds.copyFrom(n),this.halfSize=e,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*T}advance(t){let n=this.node.children[t];n||(n=l.createEmptyNode(),this.node.children[t]=n),this.node=n,this.halfSize/=2,this.depth++;const e=j[t];return this.bounds.center[0]+=e[0]*this.halfSize,this.bounds.center[1]+=e[1]*this.halfSize,this.bounds.center[2]+=e[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,n,e=!1){for(;;){if(this.isTerminalFor(t))return n?.(this,-1),!0;if(this.isLeaf()){if(!e)return n?.(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);n?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){const n=this.bounds.center;return(n[0]<t.center[0]?1:0)+(n[1]<t.center[1]?2:0)+(n[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new i.A({shrink:!0}),residents:new i.A({shrink:!0})}}static{this._pool=new r.A(()=>new l)}static acquire(){return l._pool.acquire()}static release(t){l._pool.release(t)}static clearPool(){l._pool.prune()}}function*d(t,n=()=>!0){const e=[l.acquire().init(t)];for(;0!==e.length;){const t=e.pop();if(n(t)){if(yield t,!t.isLeaf())for(let n=0;n<t.node.children.length;n++)t.node.children[n]&&e.push(l.acquire().init(t).advance(n));l.release(t)}}}function m(t,n){const e=d(t,n);for(const t of e);}function M(t,n,e,r=1){let i=l.acquire().init(t);const s=[i];for(function(t,n,e){if(!D.length)for(let t=0;t<8;++t)D.push({index:0,distance:0});for(let e=0;e<8;++e){const r=j[e];D.data[e].index=e,D.data[e].distance=w(t,n,r)}D.sort((t,n)=>t.distance-n.distance);for(let t=0;t<8;++t)e[t]=D.data[t].index}(e,r,B);0!==s.length;){if(i=s.pop(),n(i)&&!i.isLeaf())for(let t=7;t>=0;--t){const n=B[t];i.node.children[n]&&s.push(l.acquire().init(i).advance(n))}l.release(i)}}function b(t,n,e){N.clear();const r=e.advanceTo(n,(t,n)=>{N.push(t.node),N.push(n)})?e.node.terminals:e.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=N.length-2;t>=0&&g(N.data[t],N.data[t+1]);t-=2);}function g(t,n){return n>=0&&(t.children[n]=null),!!_(t)&&(null===t.residents&&(t.residents=new i.A({shrink:!0})),!0)}function _(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let n=0;n<t.children.length;n++)if(t.children[n])return!1;return!0}function p(t,n){t[0]=Math.min(t[0],n.center[0]-n.radius),t[1]=Math.min(t[1],n.center[1]-n.radius),t[2]=Math.min(t[2],n.center[2]-n.radius)}function v(t,n){t[0]=Math.max(t[0],n.center[0]+n.radius),t[1]=Math.max(t[1],n.center[1]+n.radius),t[2]=Math.max(t[2],n.center[2]+n.radius)}function y(t,n,e){e[0]=t[0]+n,e[1]=t[1]+n,e[2]=t[2]+n}function x(t,n,e){C[0]=1/0,C[1]=1/0,C[2]=1/0,P[0]=-1/0,P[1]=-1/0,P[2]=-1/0;for(const e of t){const t=n(e);A(t.radius)&&(p(C,t),v(P,t))}(0,s.Cc)(e.center,C,P,.5),e.radius=Math.max(P[0]-C[0],P[1]-C[1],P[2]-C[2])/2}function S(t,n){let e,r=1/0;for(let i=0;i<8;++i){const s=w(t,n,O[i]);s<r&&(r=s,e=O[i])}return e}function w(t,n,e){return n*(t[0]*e[0]+t[1]*e[1]+t[2]*e[2])}function A(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const j=[(0,o.fA)(-1,-1,-1),(0,o.fA)(1,-1,-1),(0,o.fA)(-1,1,-1),(0,o.fA)(1,1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(1,-1,1),(0,o.fA)(-1,1,1),(0,o.fA)(1,1,1)],O=[(0,o.fA)(-1,-1,-1),(0,o.fA)(-1,-1,1),(0,o.fA)(-1,1,-1),(0,o.fA)(-1,1,1),(0,o.fA)(1,-1,-1),(0,o.fA)(1,-1,1),(0,o.fA)(1,1,-1),(0,o.fA)(1,1,1)],T=Math.sqrt(3),q=[null],I=new u.iy,E=(0,o.vt)(),C=(0,o.vt)(),P=(0,o.vt)(),N=new i.A,R=new u.iy,F=new u.iy,z=new u.iy,V=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],D=new i.A,B=[0,0,0,0,0,0,0,0]},56780(t,n,e){e.r(n),e.d(n,{default:()=>_});var r=e(5482),i=e(17676),s=e(24326),o=e(91429),a=e(35522),c=e(51850),u=e(11964),h=e(94008),f=e(78230),l=e(44801);function d(t,n,e){const r=new h.iy;return(0,a.hs)(r.center,t,.5),(0,a.Ln)(r.center,r.center,n,.5),r.radius=(0,a.Io)(r.center,t),(0,a.WQ)(r.center,r.center,e),r}class m{constructor(t,n,e){this.objectId=t,this.target=n,this.distance=e}}class M extends m{constructor(t,n,e){super(t,n,e),this.type="vertex"}}class b extends m{constructor(t,n,e,r,i){super(t,n,e),this.start=r,this.end=i,this.type="edge"}}let g=class{constructor(){this._idToComponent=new Map,this._components=new f.x(t=>t.bounds),this._edges=new f.x(t=>t.bounds),this._tmpLineSegment=(0,u.vt)(),this._tmpP1=(0,c.vt)(),this._tmpP2=(0,c.vt)(),this._tmpP3=(0,c.vt)(),this.remoteClient=null}async fetchCandidates(t,n){await Promise.resolve(),(0,i.Te)(n);const e=t;e.mbs=new h.iy(t.mbsJSON),await this._ensureEdgeLocations(e,n);const r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(e,t,r),r.length<1e3),e.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,n){const e=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:n,uid:r}=t;e.push({id:n,uid:r})}return!0},t.mbs),!e.length)return;const r={components:e},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,n??{});for(const t of i.components)this._setFetchEdgeLocations(t)}async add(t){const n=new v(t.id,new h.iy(t.bounds));return this._idToComponent.set(n.id,n),this._components.add([n]),{result:{}}}async remove(t){const n=this._idToComponent.get(t.id);if(n){const t=[];this._edges.forEachNeighbor(e=>(e.component===n&&t.push(e),!0),n.bounds),this._edges.remove(t),this._components.remove([n]),this._idToComponent.delete(n.id)}return{result:{}}}_setFetchEdgeLocations(t){const n=this._idToComponent.get(t.id);if(null==n||t.uid!==n.uid)return;const e=l.HY.createView(t.locations),r=new Array(e.count),i=(0,c.vt)(),s=(0,c.vt)();for(let o=0;o<e.count;o++){e.position0.getVec(o,i),e.position1.getVec(o,s);const a=d(i,s,t.origin),c=new y(n,o,a);r[o]=c}this._edges.add(r);const{objectIds:o,origin:a}=t;n.info={locations:e,objectIds:o,origin:a}}_addCandidates(t,n,e){const{info:r}=n.component,{origin:i,objectIds:s}=r,o=r.locations,c=o.position0.getVec(n.index,this._tmpP1),u=o.position1.getVec(n.index,this._tmpP2);(0,a.WQ)(c,c,i),(0,a.WQ)(u,u,i);const h=s[o.componentIndex.get(n.index)];this._addEdgeCandidate(t,h,c,u,e),p(t,h,c,e),p(t,h,u,e)}_addEdgeCandidate(t,n,e,r,i){if(!t.returnEdge)return;const s=t.mbs.center,o=(0,u.Cr)(e,r,this._tmpLineSegment),h=(0,u._I)(o,s,this._tmpP3);t.mbs.contains(h)&&i.push(new b(n,(0,c.o8)(h),(0,a.Io)(s,h),(0,c.o8)(e),(0,c.o8)(r)))}};g=(0,r.Cg)([(0,o.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],g);const _=g;function p(t,n,e,r){t.returnVertex&&t.mbs.contains(e)&&r.push(new M(n,(0,c.o8)(e),(0,a.Io)(t.mbs.center,e)))}class v{constructor(t,n){this.id=t,this.bounds=n,this.info=null,this.uid=(0,s.c)()}}class y{constructor(t,n,e){this.component=t,this.index=n,this.bounds=e}}}}]);
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as t}from"tslib";import e from"../../../core/Accessor.js";import{createScreenPoint as i}from"../../../core/screenUtils.js";import{property as r,subclass as o}from"../../../core/accessorSupport/decorators.js";import{getGoToDuration as s}from"./duration.js";import{ViewEventPriorities as a}from"../../input/InputManager.js";const n="esri-zoom-box",h={container:`${n}__container`,overlay:`${n}__overlay`,background:`${n}__overlay-background`,box:`${n}__outline`},l={zoom:"Shift",counter:"Control"};let d=class extends e{constructor(t){super(t),this._container=null,this._overlay=null,this._backgroundShape=null,this._boxShape=null,this._box={x:0,y:0,width:0,height:0},this._rafId=null,this._redraw=this._redraw.bind(this)}destroy(){this.view=null}set view(t){this.removeAllHandles(),this._destroyOverlay(),this._set("view",t),t&&this.addHandles([t.on("drag",[l.zoom],t=>this._handleDrag(t,1),a.INTERNAL),t.on("drag",[l.zoom,l.counter],t=>this._handleDrag(t,-1),a.INTERNAL)])}_start(){this._createContainer(),this._createOverlay(),this.navigation.begin()}_update(t,e,i,r){this._box.x=t,this._box.y=e,this._box.width=i,this._box.height=r,this._rafId||(this._rafId=requestAnimationFrame(this._redraw))}_end(t,e,r,o,a){const n=this.view,h=n.toMap(i(t+.5*r,e+.5*o));let l=Math.max(r/n.width,o/n.height);-1===a&&(l=1/l),this._destroyOverlay(),this.navigation.end(),n.goTo({center:h,scale:n.scale*l},{animationMode:"always",duration:s()})}_updateBox(t,e,i,r){const o=this._boxShape;o.setAttributeNS(null,"x",""+t),o.setAttributeNS(null,"y",""+e),o.setAttributeNS(null,"width",""+i),o.setAttributeNS(null,"height",""+r),o.setAttributeNS(null,"class",h.box)}_updateBackground(t,e,i,r){this._backgroundShape.setAttributeNS(null,"d",this._toSVGPath(t,e,i,r,this.view.width,this.view.height))}_createContainer(){const t=document.createElement("div");t.className=h.container,this.view.root.appendChild(t),this._container=t}_createOverlay(){const t=this.view.width,e=this.view.height,i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttributeNS(null,"d","M 0 0 L "+t+" 0 L "+t+" "+e+" L 0 "+e+" Z"),i.setAttributeNS(null,"class",h.background);const r=document.createElementNS("http://www.w3.org/2000/svg","rect"),o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttributeNS(null,"class",h.overlay),o.appendChild(i),o.appendChild(r),this._container.appendChild(o),this._backgroundShape=i,this._boxShape=r,this._overlay=o}_destroyOverlay(){this._container&&this._container.parentNode&&this._container.parentNode.removeChild(this._container),this._container=this._backgroundShape=this._boxShape=this._overlay=null}_toSVGPath(t,e,i,r,o,s){const a=t+i,n=e+r;return"M 0 0 L "+o+" 0 L "+o+" "+s+" L 0 "+s+" ZM "+t+" "+e+" L "+t+" "+n+" L "+a+" "+n+" L "+a+" "+e+" Z"}_handleDrag(t,e){const i=t.x,r=t.y,o=t.origin.x,s=t.origin.y;let a,n,h,l;switch(i>o?(a=o,h=i-o):(a=i,h=o-i),r>s?(n=s,l=r-s):(n=r,l=s-r),t.action){case"start":this._start();break;case"update":this._update(a,n,h,l);break;case"end":this._end(a,n,h,l,e)}t.stopPropagation()}_redraw(){if(!this._rafId)return;if(this._rafId=null,!this._overlay)return;const{x:t,y:e,width:i,height:r}=this._box;this._updateBox(t,e,i,r),this._updateBackground(t,e,i,r),this._rafId=requestAnimationFrame(this._redraw)}};t([r()],d.prototype,"navigation",void 0),t([r()],d.prototype,"view",null),d=t([o("esri.views.2d.navigation.ZoomBox")],d);const c=d;export{c as default};