@arcgis/core 5.2.0-next.88 → 5.2.0-next.89

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 (129) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/Dictionary.js +1 -1
  3. package/arcade/Pixel.js +1 -1
  4. package/arcade/Voxel.js +1 -1
  5. package/arcade/debug.js +1 -1
  6. package/arcade/functions/featuresetstats.js +1 -1
  7. package/arcade/functions/stats.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/07613ecf13c38ad58b79.js +1 -0
  10. package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +1 -0
  11. package/assets/esri/core/workers/chunks/159b16f47665f94a0305.js +1 -0
  12. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +1 -0
  13. package/assets/esri/core/workers/chunks/1bf967c68d0c795d3fb4.js +1 -0
  14. package/assets/esri/core/workers/chunks/{304a36e862947fdb05c0.js → 20f6e681ccd8bf884b77.js} +1 -1
  15. package/assets/esri/core/workers/chunks/23addf8b11938e0c96e9.js +1 -0
  16. package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +1 -0
  17. package/assets/esri/core/workers/chunks/{b6f67302d0d5d57add66.js → 31a0620a6028e94c7532.js} +2 -2
  18. package/assets/esri/core/workers/chunks/39b6a5222f45cb8dbc94.js +1 -0
  19. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +1 -0
  20. package/assets/esri/core/workers/chunks/3f82410d9f701e7ad8eb.js +1 -0
  21. package/assets/esri/core/workers/chunks/45858d1c6487f4a98e40.js +1 -0
  22. package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +1 -0
  23. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +1 -0
  24. package/assets/esri/core/workers/chunks/486f1a3b7269ce6c3911.js +1 -0
  25. package/assets/esri/core/workers/chunks/4c7264e3f4156f92d613.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a7727a2377470d586ff9.js → 51c9bd7c03d780fadebc.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5bf65dbfd9c7a5ea187d.js +1 -0
  28. package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +1 -0
  29. package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +1 -0
  30. package/assets/esri/core/workers/chunks/680557b8832fbdab7f46.js +1 -0
  31. package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +1 -0
  32. package/assets/esri/core/workers/chunks/777f2fdf1f4b9f243893.js +1 -0
  33. package/assets/esri/core/workers/chunks/{4d4ebb4e4d83c1123b63.js → 7e41cee4a0ae75e1490d.js} +1 -1
  34. package/assets/esri/core/workers/chunks/86c3d3c7015f1cd55fac.js +1 -0
  35. package/assets/esri/core/workers/chunks/87e0ceb1a64ab08e679a.js +1 -0
  36. package/assets/esri/core/workers/chunks/{dceaa6b68eee090073b1.js → 94453d075ce02eff4844.js} +1 -1
  37. package/assets/esri/core/workers/chunks/a176727a1148ca4fb432.js +1 -0
  38. package/assets/esri/core/workers/chunks/a6d4132a16c51323a38a.js +1 -0
  39. package/assets/esri/core/workers/chunks/a7e6382ecc91c876117f.js +1 -0
  40. package/assets/esri/core/workers/chunks/a88bf8ae93077e1b48cf.js +1 -0
  41. package/assets/esri/core/workers/chunks/bd1a7e95a797e1ed4a7b.js +1 -0
  42. package/assets/esri/core/workers/chunks/{70dc25f721c0ac5f3660.js → bdfffa5f88b559a4b42d.js} +1 -1
  43. package/assets/esri/core/workers/chunks/bf11319138facf44752c.js +1 -0
  44. package/assets/esri/core/workers/chunks/{0b7860a3f18d252b774a.js → c23943e51734254d31e8.js} +1 -1
  45. package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +1 -0
  46. package/assets/esri/core/workers/chunks/{fc4a5996fc03f6c32030.js → d58d6b55b2749a535eb3.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{60f490afdbe299f89669.js → d871572997600930e017.js} +1 -1
  48. package/assets/esri/core/workers/chunks/e50adcfb392adfb3f79c.js +1 -0
  49. package/assets/esri/core/workers/chunks/eda04911553cf99fb99b.js +1 -0
  50. package/assets/esri/core/workers/chunks/f3716ce04d09af31cfb1.js +1 -0
  51. package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +1 -0
  52. package/assets/esri/core/workers/chunks/{9eb3e6800f5034f1593f.js → f83c3597e9332bd991eb.js} +1 -1
  53. package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +1 -0
  54. package/chunks/array.js +1 -1
  55. package/chunks/boundedPlane.js +1 -1
  56. package/chunks/cameraUtilsSpherical.js +1 -1
  57. package/config.js +1 -1
  58. package/core/accessorSupport/Property.js +1 -1
  59. package/geometry/operators/support/projectionTransformation.js +1 -1
  60. package/geometry/support/convexPolyhedron.js +1 -1
  61. package/geometry/support/frustum.js +1 -1
  62. package/geometry/support/plane.js +1 -1
  63. package/kernel.js +1 -1
  64. package/layers/graphics/data/FlatFeatureStore.js +1 -1
  65. package/layers/graphics/data/QueryEngine.js +1 -1
  66. package/package.json +3 -3
  67. package/support/revision.js +1 -1
  68. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  69. package/views/2d/engine/webgl/util/Fader.js +1 -1
  70. package/views/3d/layers/I3SMeshView3D.js +1 -1
  71. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  72. package/views/3d/layers/i3s/SweptSphereVolume.js +1 -1
  73. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  74. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  75. package/views/3d/state/Frustum.js +1 -1
  76. package/views/3d/support/sphericalTileUtils.js +1 -1
  77. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  78. package/views/3d/webgl-engine/lib/LineMaterial.js +2 -0
  79. package/views/3d/webgl-engine/lib/Material.js +1 -1
  80. package/views/3d/webgl-engine/lib/PointMaterial.js +2 -0
  81. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  82. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  83. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  84. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  85. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  86. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  87. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  88. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  89. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  90. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  91. package/views/interactive/sketch/constraints.js +1 -1
  92. package/views/popupAdapter.js +1 -1
  93. package/views/support/geometry3dUtils.js +1 -1
  94. package/widgets/FeatureTable/support/types.d.ts +3 -1
  95. package/assets/esri/core/workers/chunks/0439d4f4dfd6e78be97e.js +0 -1
  96. package/assets/esri/core/workers/chunks/12a3b55195ce3244259d.js +0 -1
  97. package/assets/esri/core/workers/chunks/19aa4072764937743bd8.js +0 -1
  98. package/assets/esri/core/workers/chunks/2724900f7992a79fc442.js +0 -1
  99. package/assets/esri/core/workers/chunks/35d3e60d15294f268992.js +0 -1
  100. package/assets/esri/core/workers/chunks/37a2be4380796f14fe4e.js +0 -1
  101. package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +0 -1
  102. package/assets/esri/core/workers/chunks/466bb1b69aabaeabad6a.js +0 -1
  103. package/assets/esri/core/workers/chunks/47e60b2acec18ef37b6c.js +0 -1
  104. package/assets/esri/core/workers/chunks/4849849fc8330d05a8e6.js +0 -1
  105. package/assets/esri/core/workers/chunks/4f0804429d8989aa4c51.js +0 -1
  106. package/assets/esri/core/workers/chunks/55572cefc752b755cf0a.js +0 -1
  107. package/assets/esri/core/workers/chunks/59cf23cc8f91b5bea31a.js +0 -1
  108. package/assets/esri/core/workers/chunks/6a4f007f87d9f2a6fbc4.js +0 -1
  109. package/assets/esri/core/workers/chunks/7c1f989ee3d13dfe7ebd.js +0 -1
  110. package/assets/esri/core/workers/chunks/7ce9c84f90e9dd1deb38.js +0 -1
  111. package/assets/esri/core/workers/chunks/7fc3231768ce79e375ae.js +0 -1
  112. package/assets/esri/core/workers/chunks/7febb434f2de2436435f.js +0 -1
  113. package/assets/esri/core/workers/chunks/909a85cb6e0e9a3c8567.js +0 -1
  114. package/assets/esri/core/workers/chunks/922c24b9bb68f4201b03.js +0 -1
  115. package/assets/esri/core/workers/chunks/9407db0584c730591161.js +0 -1
  116. package/assets/esri/core/workers/chunks/a0300fac6a06e7d89a52.js +0 -1
  117. package/assets/esri/core/workers/chunks/ab9927a32350063cb5f0.js +0 -1
  118. package/assets/esri/core/workers/chunks/adc2620cbe735532004d.js +0 -1
  119. package/assets/esri/core/workers/chunks/c4f582dec07895d3bb93.js +0 -1
  120. package/assets/esri/core/workers/chunks/cd8b3c2fc27c239f9954.js +0 -1
  121. package/assets/esri/core/workers/chunks/d04a01dc1b4947478264.js +0 -1
  122. package/assets/esri/core/workers/chunks/d6b87134e0d120c68d2f.js +0 -1
  123. package/assets/esri/core/workers/chunks/db4c9a9103e979292948.js +0 -1
  124. package/assets/esri/core/workers/chunks/e32a14770e036fce79d9.js +0 -1
  125. package/assets/esri/core/workers/chunks/eacf216dcd6397c7bd7f.js +0 -1
  126. package/assets/esri/core/workers/chunks/eff359210893239ecec3.js +0 -1
  127. package/assets/esri/core/workers/chunks/f210cd8afb86b6eaf7a2.js +0 -1
  128. package/assets/esri/core/workers/chunks/f250a7aa571889c5ad4b.js +0 -1
  129. package/assets/esri/core/workers/chunks/f31330d628d7e741bf5b.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1089],{66131(t,e,r){r.d(e,{lY:()=>d,mT:()=>h});var n=r(59534),s=r(799),o=r(3330),i=r(34747);const a={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(t,e){super((0,s.HC)(a[t],e)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function c(t,e,r){return t<e?t-e:t>r?t-r:0}function l(t,e,r){return t<e?e:t>r?r:t}class d{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,e=1,r=1,n=0,s=0,o=0,a=0,u){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(s)||isNaN(o)||isNaN(a))return null;const m=i.c9.local(t,e).daysInMonth;let f=i.c9.fromObject({day:l(r,1,m),year:t,month:l(e,1,12),hour:l(n,0,23),minute:l(s,0,59),second:l(o,0,59),millisecond:l(a,0,999)},{zone:h(u)});return f=f.plus({months:c(e,1,12),days:c(r,1,m),hours:c(n,0,23),minutes:c(s,0,59),seconds:c(o,0,59),milliseconds:c(a,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,e){const r=h(e);return t.isUnknownTimeZone||r===o.GB.instance?d.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t._date.setZone(r))}static dateJSToArcadeDate(t){return new d(i.c9.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromJSDate(t,{zone:r}))}static unknownEpochToArcadeDate(t){return new d(i.c9.fromMillis(t,{zone:o.GB.instance}))}static unknownDateJSToArcadeDate(t){return new d(i.c9.fromMillis(t.getTime(),{zone:o.GB.instance}))}static epochToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromMillis(t,{zone:r}))}static dateTimeToArcadeDate(t){return new d(t)}clone(){return new d(this._date)}changeTimeZone(t){const e=h(t);return d.dateTimeToArcadeDate(this._date.setZone(e))}static dateTimeAndZoneToArcadeDate(t,e){const r=h(e);return t.zone===o.GB.instance||r===o.GB.instance?d.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t.setZone(r))}static nowToArcadeDate(t){const e=h(t);return new d(i.c9.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new d(i.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===o.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const t=this.zone;return"fixed"===t.type?0===t.fixed?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new d(this._date.plus(t))}diff(t,e){return this._date.diff(t._date,e)[e]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,e){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:e&&!this.isUnknownTimeZone})}toFormat(t,e){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,e)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;const e=i.c9.fromISO(t,{setZone:!0});return new d(e)}}function h(t,e=!0){if(t instanceof i.bo)return t;switch((0,n.B)(t)){case"system":return"system";case"utc":return"UTC";case"unknown":return o.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(t)){const e=i.mQ.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(e)return e}const r=i.oh.create(t);if(!r.isValid){if(e)throw new u("TimeZoneNotRecognized");return null}return r}},47609(t,e,r){r.d(e,{A:()=>s});var n=r(66395);class s extends n.A{constructor(t){super({__proto__:null,url:t}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(t,e,r){r.d(e,{A:()=>a});var n=r(66131),s=r(6800),o=r(85935),i=r(78878);class a{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof a?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static createMutable(t){const e=new a(t);return e.immutable=!1,e}static containerEntry(t,e){return new a({__proto__:null,key:t,value:e})}static textFormatting(){return a.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(t){const e=t.toLowerCase(),r=this.attributes[t];if(void 0!==r)return r;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$("FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$("Immutable",null);if((0,i.i)(e))throw new o.D$("NoFunctionInDictionary",null);const r=t.toLowerCase();if(e instanceof Date&&(e=n.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===r)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$("Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}values(){return this.keys().map(t=>this.attributes[t])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,i.c)(this.attributes,{useNumbersForDates:t})}castAsJson(){const t=Object.create(null);for(const e in this.attributes){const r=this.attributes[e];void 0!==r&&(t[e]=(0,i.a)(r))}return t}async castAsJsonAsync(t=null){const e=Object.create(null),r=[];for(const s in this.attributes){const o=this.attributes[s];void 0!==o&&((0,i.b)(o)||(0,i.d)(o)||o instanceof n.lY?e[s]=(0,i.a)(o):r.push((0,i.e)(o,t).then(t=>{e[s]=t})))}return r.length>0&&await Promise.all(r),e}deepClone(){const t=new a;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,s.G)(this.field(e)));return t}}},48938(t,e,r){r.d(e,{X:()=>s});var n=r(85935);function s(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new n.D$("InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1});r.d(e,["_",0,o])},6800(t,e,r){r.d(e,{G:()=>a,y:()=>o});var n=r(78878),s=r(54218);function o(t){i=t}let i;function a(t){return null==t?null:(0,n.f)(t)?t.clone():(0,n.b)(t)?t:(0,n.d)(t)?t.clone():(0,n.g)(t)?t.toArray().map(t=>a(t)):(0,s.cy)(t)?t.map(t=>a(t)):(0,n.h)(t)?i.createFromArcadeFeature(t):(0,n.j)(t)||(0,n.k)(t)?t:(0,n.l)(t)||(0,n.m)(t)?t.deepClone():((0,n.n)(t)||(0,n.o)(t)||(0,n.p)(t)||(0,n.i)(t),t)}},59534(t,e,r){r.d(e,{B:()=>s,b:()=>o});var n=r(85935);function s(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class o{constructor(t,e){const r=new Map;for(const e of t){const t=s(e);if(r.has(t))throw new Error(`${e} already added as ${r.get(t)}`);r.set(t,e)}if(null!=e)for(const[t,n]of e){const e=s(t);if(r.has(e))throw new Error(`${t} already associated with ${r.get(e)}`);r.set(e,n)}this._enumMap=r}lookup(t){return this._enumMap.get(s(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$("InvalidParameter",null);return e}}},85935(t,e,r){r.d(e,{D$:()=>a,O$:()=>l,i2:()=>d,mT:()=>c,ps:()=>m});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function o(t){return"object"==typeof t&&"line"in t&&"column"in t&&"number"==typeof t.line&&"number"==typeof t.column}class i extends Error{constructor(t,e){super(u(e)+("object"==typeof t&&null!=t&&"message"in t?t.message:""),{cause:t}),this.loc=e?.loc??null}}class a extends Error{constructor(t,e,r){super("Execution error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=e?.loc??null}}function u(t){return null==t?.loc?"":`Line ${t.loc.start.line}:${t.loc.start.column}: `}class c extends Error{constructor(t,e,r){super("Compilation error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=e?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(t,e){return!function(t){if(t instanceof Error&&"loc"in t){const e=t.loc;return null==e||"object"==typeof e&&"start"in e&&null!=e.start&&o(e.start)&&(!("end"in e)||null==e.end||o(e.end))}return!1}(t)||null==t.loc&&null!=e?.loc?new i(t,e):t}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},76343(t,e,r){r.r(e),r.d(e,{BatchTranslationServiceFactory:()=>n.B,PortalTranslationService:()=>n.P,getTranslateParametersKey:()=>n.g,registerFunctions:()=>n.r}),r(48938),r(66395),r(85935),r(78878),r(80672),r(49186),r(53966),r(45475),r(67090),r(62791),r(14942);var n=r(3367)},80672(t,e,r){r.d(e,{Iq:()=>a,RI:()=>i,VQ:()=>c,wI:()=>u});var n=r(47609),s=r(84952),o=r(20655);function i(t,e){return null==e?a(t):new o.A({url:e.url})}function a(t){return t.services?.portal??o.A.getDefault()}function u(t){const e=a(t);return new n.A(e.url)}function c(t,e){const r=t.url;return!!r&&(0,s.ut)(r,e.restUrl)}},3367(t,e,r){r.d(e,{B:()=>S,P:()=>y,g:()=>T,r:()=>C});var n=r(48938),s=r(66395),o=r(85935),i=r(78878),a=r(80672),u=r(49186),c=r(53966),l=r(91869),d=r(45475),h=r(67090),m=r(62791),f=r(14942),p=r(54218);class y{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const r=e.api?.text_translate;if(null==r)return{success:!1};const n=e.url+r;try{return t.requestSource??="arcade",{success:!0,results:(await(0,d.T)(n,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof u.A)&&this._debugLog(`TranslateText error: ${t.message}`),c.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class g{constructor(t,e,r){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let r=0;for(const t of e)r+=t.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:e,text:r}of t)(0,l.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:e});return this._requests.push(t),this._contentsTotalSize+=r,n}async send(t){const e=[],r=[];let n=0;for(const[t,s]of this._normalizedContents)e.push(new h.k({key:String(n++),text:t})),r.push(s);const s=new m.F(this._parameters);s.input=e;const o=await t.translate(s);if(!o.success)return Array.from(this._requests,()=>o);const i=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const n of r[e])i[n.batchIdx].results.push({...t,key:n.key})}return i}}function T(t){const e=[...new Set(t.outputCultures)].sort(),r=t.inputCulture??null,n=t.portalUrl,s=t.provider;return JSON.stringify([e,r,n,s])}async function w(t,e,r){try{return(await t.yieldFor(r))[e]}catch{return{success:!1}}}class S{constructor(t,e,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(t){return{translate:async e=>{const r=T(e),{input:n,outputCultures:s,inputCulture:o,provider:i,portalUrl:a}=e;if(null==s)return{success:!1};if(null==n||n.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(r);if(null!=u){const e=u.data.tryAdd(n);if(null!=e)return await w(t,e,u);u.send()}const c=new g({outputCultures:s,inputCulture:o,provider:i,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),l=c.tryAdd(n);if(null!=l){const e=this._executor.openBatch(c,{open:t=>{this._openBatches.set(r,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(r)===t&&this._openBatches.delete(r)}});return await w(t,l,e)}return await this._service.translate(e)}}}}function C(t){"async"===t.mode&&(t.functions[(0,n.X)("TranslateText")]=function(e,r){return t.standardFunctionAsync(e,r,async(t,e,r)=>{if((0,i.E)(r,2,3,e),!(0,p.Kg)(r[0])&&!(0,p.cy)(r[0])&&!(0,i.g)(r[0]))throw new o.D$("InvalidParameter",e);const n=(0,i.P)(r[0]);if(!(0,p.Kg)(r[1])&&!(0,p.cy)(r[1])&&!(0,i.g)(r[1]))throw new o.D$("InvalidParameter",e);const u=(0,i.P)(r[1]);let c=null;if(r.length>=3){if(!(0,p.Kg)(r[2]))throw new o.D$("InvalidParameter",e);c=r[2]}const l=n.map((t,e)=>new h.k({key:String(e),text:t})),d=(0,a.Iq)(t),g=new m.F({outputCultures:u,input:l,inputCulture:c,portalUrl:d.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=t.lrucache){const e=t.lrucache;S??=T(g),g.input=g.input?.filter(t=>{const r=e.getCachedTranslation(S,t.text);return null==r||(w.set(t.key,{...r,key:t.key}),!1)})}if(g.input?.length){const e=t.services?.translation??new y(d,t.console),r=await e.translate(g);if(!r.success)return new s.A({__proto__:null,success:!1});for(const e of r.results){const r=g.input?.find(t=>t.key===e.key)?.text;if(null==r)throw new o.D$("NeverReach",null);w.set(e.key,e),null!=t.lrucache&&(S??=T(g),t.lrucache.setCachedTranslation(S,r,{detectedLanguage:e.detectedLanguage,translations:e.translations}))}}const C=Array.from(l,t=>{const e=f.s.fromJSON(w.get(t.key));if(null==e)throw new o.D$("NeverReach",null);const r=Object.create(null);for(const t of e.translations)r[t.to]=t.text;return new s.A({__proto__:null,key:e.key,text:t.text,detectedLanguage:new s.A({__proto__:null,language:e.detectedLanguage,score:e.detectedLanguageScore}),translation:new s.A(r)})});return new s.A({__proto__:null,success:!0,results:C})})})}const _=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:C},Symbol.toStringTag,{value:"Module"}));r.d(e,["A",0,_])},44729(t,e,r){r.d(e,{n:()=>u});var n=r(66131),s=r(73444),o=r(34747);function i(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.startsWith("[")&&n.endsWith("]")?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}const a="esri.core.sql.dateonly";class u{constructor(t,e,r){this._year=t,this._month=e,this._day=r,this.declaredRootClass=a}static isDateOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return u.isDateOnly(t)&&t.day===this.day&&t.month===this.month&&t.year===this.year}compare(t){return this.year===t.year?this.month===t.month?this.day-t.day:this.month-t.month:this.year-t.year}clone(){return new u(this._year,this._month,this._day)}toDateTime(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toDateTimeLuxon(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,e=!0){if(null===t||""===t)return this.toString();if(e&&(t=i(t)),!t)return"";const r=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(r).toFormat(t,{locale:(0,s.JK)(),numberingSystem:"latn"})}toArcadeDate(){const t=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,e){return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}toUTCDateTime(){return o.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){const e=o.c9.fromMillis(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromSeconds(t){const e=o.c9.fromSeconds(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromReader(t){if(!t)return null;const e=t.indexOf("-");if(e<0)return null;const r=t.indexOf("-",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10))}static fromParts(t,e,r){const n=new u(t,e,r);return!1===n.isValid?null:n}static fromDateJS(t){return u.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return u.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];if(e)(e=i(e))&&r.push(e);else if(null===e||""===e){const e=o.c9.fromISO(t,{setZone:!0});return e.isValid?u.fromParts(e.year,e.month,e.day):null}for(const n of r){const r=o.c9.fromFormat(t,e??n);if(r.isValid)return new u(r.year,r.month,r.day)}return null}static fromNow(t="system"){const e=o.c9.fromJSDate(new Date).setZone((0,n.mT)(t));return new u(e.year,e.month,e.day)}}},15032(t,e,r){r.d(e,{k:()=>u});var n=r(73444),s=r(54218),o=r(34747);function i(t){if(!t)return"";const e=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let r="";for(const n of t.match(e)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}const a="esri.core.sql.timeonly";class u{constructor(t,e,r,n){this._hour=t,this._minute=e,this._second=r,this._millisecond=n,this.declaredRootClass=a}static isTimeOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return u.isTimeOnly(t)&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new u(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,s.Fq)(this.hour)&&(0,s.Fq)(this.minute)&&(0,s.Fq)(this.second)&&(0,s.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return null===t||""===t?this.toString():(t=i(t))?o.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,e,r,n){const s=new u(t,e,r,n);return s.isValid()?s:null}static fromReader(t){if(!t)return null;const e=t.indexOf(":");if(e<0)return null;const r=t.indexOf(":",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;const e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),n=Math.floor(t/36e5%24),s=Math.floor(t%1e3);return new u(n,r,e,s)}static fromDateJS(t){return new u(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new u(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];e?(e=i(e))&&r.push(e):null!==e&&""!==e||(r.push("HH:mm:ss"),r.push("HH:mm:ss.SSS"),r.push("hh:mm:ss a"),r.push("hh:mm:ss.SSS a"),r.push("HH:mm"),r.push("hh:mm a"),r.push("H:mm"),r.push("h:mm a"),r.push("H:mm:ss"),r.push("h:mm:ss a"),r.push("H:mm:ss.SSS"),r.push("h:mm:ss.SSS a"));for(const e of r){const r=o.c9.fromFormat(t,e);if(r.isValid)return new u(r.hour,r.minute,r.second,r.millisecond)}return null}plus(t,e){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}return null}toUTCDateTime(){return o.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}},67090(t,e,r){r.d(e,{k:()=>a});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{constructor(t){super(t)}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateContent")],a)},62791(t,e,r){r.d(e,{F:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108),a=r(67090);let u=class extends s.o{constructor(t){super(t),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,n.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"outputCultures",void 0),(0,n.Cg)([(0,o.MZ)({type:[a.k],json:{write:!0}})],u.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"portalUrl",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"default"}})],u.prototype,"provider",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"inputCulture",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"requestSource",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,r){r.d(e,{s:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult.Translation")],a);let u=class extends s.o{constructor(t){super(t),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],u.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],u.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,o.MZ)({type:[a],json:{write:!0}})],u.prototype,"translations",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult")],u)},45475(t,e,r){r.d(e,{T:()=>i});var n=r(11254),s=r(2272),o=r(14942);async function i(t,e,r){const i=JSON.stringify(e.toJSON()),a={};"https://www.arcgis.com"!==e.portalUrl&&(a.portal=e.portalUrl),null!=e.requestSource&&(a.request_source=e.requestSource),a.token=await(0,s.gf)(e.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const u=(0,s.Dl)(t),c=(0,s.jV)(u.query,{...r,query:a,body:i,method:"post",authMode:"anonymous"});return(await(0,n.A)(u.path,c)).data.results.map(t=>o.s.fromJSON(t))}},2272(t,e,r){r.d(e,{Dl:()=>c,gf:()=>d,jV:()=>u,lF:()=>l});var n=r(92602),s=r(70333),o=r(4718),i=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function c(t){return"string"==typeof t?(0,i.An)(t):(0,o.o8)(t)}function l(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const o=t[s];if(null!=o&&"function"!=typeof o)if(Array.isArray(o))n[s]=o.map(t=>l(t));else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?o:JSON.stringify(o);else n[s]=o}return n}async function d(t,e,o){const i=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.getApiKey)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(i)return i;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(5071)]).then(r.bind(r,50148));const u=await s.id.getCredential(t,o);return u?.token}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[491],{32198(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,S=r*u-s*a,x=i*u-s*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,T=f*b-l*M,O=f*g-d*M,I=l*g-d*b;let C=_*I-p*O+v*T+y*j-S*A+x*w;return C?(C=1/C,t[0]=(a*I-c*O+u*T)*C,t[1]=(c*j-o*I-u*A)*C,t[2]=(o*O-a*j+u*w)*C,t[3]=(i*O-r*I-s*T)*C,t[4]=(e*I-i*j+s*A)*C,t[5]=(r*j-e*O-s*w)*C,t[6]=(M*x-b*S+g*y)*C,t[7]=(b*v-m*x-g*p)*C,t[8]=(m*S-M*v+g*_)*C,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:()=>T,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>p,O7:()=>j,Qw:()=>u,Tl:()=>l,X_:()=>x,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>o,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>f,mg:()=>c,o1:()=>A,sC:()=>S,t2:()=>C,t5:()=>O,tZ:()=>P,ut:()=>E});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,S=r*u-s*a,x=i*u-s*c,w=h*M-f*m,A=h*b-l*m,j=h*g-d*m,T=f*b-l*M,O=f*g-d*M,I=l*g-d*b;let C=_*I-p*O+v*T+y*j-S*A+x*w;return C?(C=1/C,t[0]=(a*I-c*O+u*T)*C,t[1]=(i*O-r*I-s*T)*C,t[2]=(M*x-b*S+g*y)*C,t[3]=(l*S-f*x-d*y)*C,t[4]=(c*j-o*I-u*A)*C,t[5]=(e*I-i*j+s*A)*C,t[6]=(b*v-m*x-g*p)*C,t[7]=(h*x-l*v+d*p)*C,t[8]=(o*O-a*j+u*w)*C,t[9]=(r*j-e*O-s*w)*C,t[10]=(m*S-M*v+g*_)*C,t[11]=(f*v-h*S-d*_)*C,t[12]=(a*A-o*T-c*w)*C,t[13]=(e*T-r*A+i*w)*C,t[14]=(M*p-m*y-b*_)*C,t[15]=(h*y-f*p+l*_)*C,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],S=e[3];return t[0]=p*r+v*a+y*f+S*M,t[1]=p*i+v*c+y*l+S*b,t[2]=p*s+v*u+y*d+S*g,t[3]=p*o+v*h+y*m+S*_,p=e[4],v=e[5],y=e[6],S=e[7],t[4]=p*r+v*a+y*f+S*M,t[5]=p*i+v*c+y*l+S*b,t[6]=p*s+v*u+y*d+S*g,t[7]=p*o+v*h+y*m+S*_,p=e[8],v=e[9],y=e[10],S=e[11],t[8]=p*r+v*a+y*f+S*M,t[9]=p*i+v*c+y*l+S*b,t[10]=p*s+v*u+y*d+S*g,t[11]=p*o+v*h+y*m+S*_,p=e[12],v=e[13],y=e[14],S=e[15],t[12]=p*r+v*a+y*f+S*M,t[13]=p*i+v*c+y*l+S*b,t[14]=p*s+v*u+y*d+S*g,t[15]=p*o+v*h+y*m+S*_,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],S=n[9],x=n[10],w=n[11],A=o*o*l+f,j=a*o*l+c*h,T=c*o*l-a*h,O=o*a*l-c*h,I=a*a*l+f,C=c*a*l+o*h,E=o*c*l+a*h,P=a*c*l-o*h,N=c*c*l+f;t[0]=d*A+g*j+y*T,t[1]=m*A+_*j+S*T,t[2]=M*A+p*j+x*T,t[3]=b*A+v*j+w*T,t[4]=d*O+g*I+y*C,t[5]=m*O+_*I+S*C,t[6]=M*O+p*I+x*C,t[7]=b*O+v*I+w*C,t[8]=d*E+g*P+y*N,t[9]=m*E+_*P+S*N,t[10]=M*E+p*P+x*N,t[11]=b*E+v*P+w*N,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 S(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function x(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],S=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+_)*S,t[9]=(M-g)*S,t[10]=(1-(f+m))*S,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],S=r[1],x=r[2],w=i[0],A=i[1],j=i[2],T=(1-(M+g))*y,O=(d+v)*y,I=(m-p)*y,C=(d-v)*S,E=(1-(l+g))*S,P=(b+_)*S,N=(m+p)*x,q=(b-_)*x,R=(1-(l+M))*x;return t[0]=T,t[1]=O,t[2]=I,t[3]=0,t[4]=C,t[5]=E,t[6]=P,t[7]=0,t[8]=N,t[9]=q,t[10]=R,t[11]=0,t[12]=e[0]+w-(T*w+C*A+N*j),t[13]=e[1]+A-(O*w+E*A+q*j),t[14]=e[2]+j-(I*w+P*A+R*j),t[15]=1,t}function T(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 O(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,S=u*_-h*g;d=Math.sqrt(v*v+y*y+S*S),d?(d=1/d,v*=d,y*=d,S*=d):(v=0,y=0,S=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]=S,t[10]=f,t[11]=0,t[12]=-(g*s+_*o+p*c),t[13]=-(v*s+y*o+S*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 C(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 E(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,q=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],S=n[3],x=n[4],w=n[5],A=n[6],j=n[7],T=n[8],O=n[9],I=n[10],C=n[11],E=n[12],P=n[13],N=n[14],q=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-S)<=R*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(a-x)<=R*Math.max(1,Math.abs(a),Math.abs(x))&&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-T)<=R*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(l-O)<=R*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(d-I)<=R*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(m-C)<=R*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-E)<=R*Math.max(1,Math.abs(M),Math.abs(E))&&Math.abs(b-P)<=R*Math.max(1,Math.abs(b),Math.abs(P))&&Math.abs(g-N)<=R*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(_-q)<=R*Math.max(1,Math.abs(_),Math.abs(q))},exactEquals:C,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:T,getRotation:w,getScale:x,getTranslation:S,hasIdentityRotation:P,identity:a,invert:h,invertOrIdentity:u,isOrthoNormal:E,lookAt:O,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:function(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},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:q,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,Ej:()=>p,Ie:()=>A,Jt:()=>j,Lu:()=>y,Ne:()=>S,RF:()=>f,TF:()=>g,VL:()=>m,aI:()=>I,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>w,iT:()=>d,is:()=>O,pg:()=>v,uJ:()=>b,vI:()=>x,vY:()=>c,vt:()=>s,w1:()=>h,yr:()=>M}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=E){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 w(r,C),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]){!function(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)}(t,n,e,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){const n=m(t),e=b(t),r=M(t);return n*n+e*e+r*r}function _(t,n=[0,0,0]){return n[0]=t[0]+m(t)/2,n[1]=t[1]+M(t)/2,n[2]=t[2]+b(t)/2,n}function p(t,n=[0,0,0]){return n[0]=m(t),n[1]=M(t),n[2]=b(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function y(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 x(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 w(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 A(t){return t?w(t,C):s(C)}function j(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 O(t){return 6===t.length}function I(t,n,e){if(null==t||null==n)return t===n;if(!O(t)||!O(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 C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],E=[0,0,0,0,0,0];s(),e.d(n,["qv",0,C,"v_",0,E])},22304(t,n,e){e.d(n,{DV:()=>_,C:()=>b,vt:()=>m,Qy:()=>M,ui:()=>g,ST:()=>x,bU:()=>w,pw:()=>S,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<T;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<O;++t){const n=(0,a.Z0)(d.Km.get(),I[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<T;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,P),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)(N,n,o);for(let n=0;n<T;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<T;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 S(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,C.get()))}function x(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,C.get()))}function w(t,n){for(let e=0;e<T;e++)if((0,l.mN)(t[e],n)>0)return!1;return!0}function A(t,n){for(let e=0;e<T;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]},T=6,O=8,I=[(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)],C=new r.I(f),E=M(),P=(0,o.vt)(),N=(0,o.vt)()},11964(t,n,e){e.d(n,{Cr:()=>h,LV:()=>u,_I:()=>f,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=l.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,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)}(0,o.vt)(),(0,o.vt)();const l=new i.I(()=>c())},27921(t,n,e){e.d(n,{$Q:()=>v,C:()=>a,Cr:()=>h,H:()=>S,O_:()=>u,Qj:()=>c,T7:()=>_,Tj:()=>p,lU:()=>f,mN:()=>x,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 x(t,n)>=0}function v(t,n){return function(t,n,e,r,s,o,a){const c=(0,i.Om)(t,e),u=x(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 S(t,n,e,r=!1){let s=n.at(-1),o=x(t,s),a=r?o>0:o<=0;for(let c=0;c<n.length;c++){const u=n.at(c),h=x(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 x(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=x(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:()=>o,nu:()=>a,wp:()=>s}),e(34727);var r=e(35522),i=e(51850);function s(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 o(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 a(t,n,e,s=(0,i.vt)()){const o=(0,r.Bw)(t),a=(0,r.Bw)(n),h=(0,r.Om)(t,n)/(o*a);if(h<.9999999999999999){const i=Math.acos(h),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)(c,t,l),(0,r.hs)(u,n,d),(0,r.WQ)(s,c,u)}return(0,r.Cc)(s,t,n,e)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const c=(0,i.vt)(),u=(0,i.vt)()},70491(t,n,e){e.r(n),e.d(n,{default:()=>J});var r=e(32198),i=e(17676),s=e(24326),o=e(91429),a=e(35522),c=e(51850),u=e(11964),h=e(94008),f=e(93687),l=e(15142),d=e(22304),m=e(71351),M=e(620);class b{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 g,this._objectCount=0,n&&(void 0!==n.maximumObjectsPerNode&&(this._maximumObjectsPerNode=n.maximumObjectsPerNode),void 0!==n.maximumDepth&&(this._maximumDepth=n.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),q[0]=null,D.prune(),Z.prune()}add(t){const n=Array.from(t);this._grow(n);const e=g.acquire();for(const t of n)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(e.init(this._root),this._add(t,e));g.release(e)}remove(t,n=null){this._objectCount-=t.length;const e=g.acquire();for(const r of t){const t=n??this.objectToBoundingSphere(r);C(t.radius)?(e.init(this._root),y(r,t,e)):this._degenerateObjects.delete(r)}g.release(e),this._shrink()}update(t,n){if(!C(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,m.LV)(t,n);p(this._root,t=>{if(!function(t,n){return j(n.bounds.center,2*-n.halfSize,z),j(n.bounds.center,2*n.halfSize,V),(0,M.O_)(t.origin,t.direction,z,V)}(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,m.LV)(t,n);p(this._root,t=>{if(!function(t,n,e){return j(n.bounds.center,2*-n.halfSize,z),j(n.bounds.center,2*n.halfSize,V),e.applyToMinMax(z,V),(0,M.O_)(t.origin,t.direction,z,V)}(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 s=1/0,o=1/0,c=null;const u=O(t,n),h=a=>{if(--i,!r(a))return;const u=this.objectToBoundingSphere(a);if(!(0,d.m7)(e,u))return;const h=I(t,n,u.center),f=h-u.radius,l=h+u.radius;f<s&&(s=f,o=l,c=a)};return v(this._root,r=>{if(i<=0||!(0,d.ZU)(e,r.bounds.center,2*r.bounds.radius))return!1;if((0,a.hs)(F,u,2*r.halfSize),(0,a.WQ)(F,F,r.bounds.center),I(t,n,F)>o)return!1;const s=r.node;return s.terminals.forAll(t=>h(t)),null!==s.residents&&s.residents.forAll(t=>h(t)),!0},t,n),c}forEachInDepthRange(t,n,e,r,i,s,o){let c=-1/0,u=1/0;const h={setRange:t=>{1===e?(c=Math.max(c,t.near),u=Math.min(u,t.far)):(c=Math.max(c,-t.far),u=Math.min(u,-t.near))}};h.setRange(r);const f=I(n,e,t),l=O(n,e),m=O(n,-e),M=t=>{if(!o(t))return;const r=this.objectToBoundingSphere(t),a=I(n,e,r.center)-f,l=a-r.radius,m=a+r.radius;l>u||m<c||!(0,d.m7)(s,r)||i(t,h)};v(this._root,t=>{if(!(0,d.ZU)(s,t.bounds.center,2*t.bounds.radius))return!1;if((0,a.hs)(F,l,2*t.halfSize),(0,a.WQ)(F,F,t.bounds.center),I(n,e,F)-f>u)return!1;if((0,a.hs)(F,m,2*t.halfSize),(0,a.WQ)(F,F,t.bounds.center),I(n,e,F)-f<c)return!1;const r=t.node;return r.terminals.forAll(t=>M(t)),null!==r.residents&&r.residents.forAll(t=>M(t)),!0},n,e)}forEachNode(t){p(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,d.ZU)(t,n.bounds.center,2*n.bounds.radius))){const r=e.node;for(const e of r.terminals)n(e)&&(0,d.m7)(t,this.objectToBoundingSphere(e))&&(yield e);if(null!==r.residents)for(const e of r.residents)n(e)&&(0,d.m7)(t,this.objectToBoundingSphere(e))&&(yield e)}}*_nodeIteratorValues(t=()=>!0){yield*_(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 s=!0;const o=t=>{s&&(s=i(t))};p(this._root,t=>{const n=2*t.bounds.radius,i=e+n;if((0,a.hG)(t.bounds.center,r)-i*i>0)return!1;const c=t.node;return c.terminals.forAll(o),s&&null!==c.residents&&c.residents.forAll(o),s}),s&&this.forEachDegenerateObject(o)}_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=g.acquire().init(t);this._add(n.at(e),r),g.release(r)}}_grow(t){if(T(t,t=>this.objectToBoundingSphere(t),B),C(B.radius)&&!this._fitsInsideTree(B))if(x(this._root.node))this._root.bounds.copyFrom(B),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(B);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(B,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,n){L.center=n.bounds.center,L.radius=n.halfSize,T([t,L],t=>t,k);const e=g.acquire().init(this._root);this._root.initFrom(null,k,k.radius),this._root.increaseHalfSize(1.25),p(e,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(e)}_placingRootViolatesMaxDepth(t){const n=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let e=0;return p(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),Q[t].min=c,Q[t].max=u}for(let t=0;t<3;t++){let n=Q[t].min,e=Q[t].max;const o=(r-(n+e))/2;n+=Math.ceil(o),e+=Math.floor(o);const a=i[t]-s-n*s*2;R.center[t]=a+(e+n)*s}const o=r*s;return R.radius=o*N,g.acquire().initFrom(null,R,o,0)}_growRootAsSubNode(t){const n=this._root.node;B.center=this._root.bounds.center,B.radius=this._root.halfSize,this._root.init(t),t.advanceTo(B,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!C(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 g{constructor(){this.bounds=new h.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:g.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*N}advance(t){let n=this.node.children[t];n||(n=g.createEmptyNode(),this.node.children[t]=n),this.node=n,this.halfSize/=2,this.depth++;const e=E[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 l.A({shrink:!0}),residents:new l.A({shrink:!0})}}static{this._pool=new f.A(()=>new g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function*_(t,n=()=>!0){const e=[g.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(g.acquire().init(t).advance(n));g.release(t)}}}function p(t,n){const e=_(t,n);for(const t of e);}function v(t,n,e,r=1){let i=g.acquire().init(t);const s=[i];for(function(t,n,e){if(!Z.length)for(let t=0;t<8;++t)Z.push({index:0,distance:0});for(let e=0;e<8;++e){const r=E[e];Z.data[e].index=e,Z.data[e].distance=I(t,n,r)}Z.sort((t,n)=>t.distance-n.distance);for(let t=0;t<8;++t)e[t]=Z.data[t].index}(e,r,W);0!==s.length;){if(i=s.pop(),n(i)&&!i.isLeaf())for(let t=7;t>=0;--t){const n=W[t];i.node.children[n]&&s.push(g.acquire().init(i).advance(n))}g.release(i)}}function y(t,n,e){D.clear();const r=e.advanceTo(n,(t,n)=>{D.push(t.node),D.push(n)})?e.node.terminals:e.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=D.length-2;t>=0&&S(D.data[t],D.data[t+1]);t-=2);}function S(t,n){return n>=0&&(t.children[n]=null),!!x(t)&&(null===t.residents&&(t.residents=new l.A({shrink:!0})),!0)}function x(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 w(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 A(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 j(t,n,e){e[0]=t[0]+n,e[1]=t[1]+n,e[2]=t[2]+n}function T(t,n,e){z[0]=1/0,z[1]=1/0,z[2]=1/0,V[0]=-1/0,V[1]=-1/0,V[2]=-1/0;for(const e of t){const t=n(e);C(t.radius)&&(w(z,t),A(V,t))}(0,a.Cc)(e.center,z,V,.5),e.radius=Math.max(V[0]-z[0],V[1]-z[1],V[2]-z[2])/2}function O(t,n){let e,r=1/0;for(let i=0;i<8;++i){const s=I(t,n,P[i]);s<r&&(r=s,e=P[i])}return e}function I(t,n,e){return n*(t[0]*e[0]+t[1]*e[1]+t[2]*e[2])}function C(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const E=[(0,c.fA)(-1,-1,-1),(0,c.fA)(1,-1,-1),(0,c.fA)(-1,1,-1),(0,c.fA)(1,1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(1,-1,1),(0,c.fA)(-1,1,1),(0,c.fA)(1,1,1)],P=[(0,c.fA)(-1,-1,-1),(0,c.fA)(-1,-1,1),(0,c.fA)(-1,1,-1),(0,c.fA)(-1,1,1),(0,c.fA)(1,-1,-1),(0,c.fA)(1,-1,1),(0,c.fA)(1,1,-1),(0,c.fA)(1,1,1)],N=Math.sqrt(3),q=[null],R=new h.iy,F=(0,c.vt)(),z=(0,c.vt)(),V=(0,c.vt)(),D=new l.A,B=new h.iy,L=new h.iy,k=new h.iy,Q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],Z=new l.A,W=[0,0,0,0,0,0,0,0];var Y=e(44801);function H(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 G{constructor(t,n,e){this.objectId=t,this.target=n,this.distance=e}}class U extends G{constructor(t,n,e){super(t,n,e),this.type="vertex"}}class X extends G{constructor(t,n,e,r,i){super(t,n,e),this.start=r,this.end=i,this.type="edge"}}let $=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(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 tt(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=Y.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=H(i,s,t.origin),c=new nt(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),K(t,h,c,e),K(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 X(n,(0,c.o8)(h),(0,a.Io)(s,h),(0,c.o8)(e),(0,c.o8)(r)))}};$=(0,r.Cg)([(0,o.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],$);const J=$;function K(t,n,e,r){t.returnVertex&&t.mbs.contains(e)&&r.push(new U(n,(0,c.o8)(e),(0,a.Io)(t.mbs.center,e)))}class tt{constructor(t,n){this.id=t,this.bounds=n,this.info=null,this.uid=(0,s.c)()}}class nt{constructor(t,n,e){this.component=t,this.index=n,this.bounds=e}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7339],{68197(e,t,i){i.d(t,{A:()=>u});var r=i(40876),s=i(4576),n=i(34727),o=i(56507);function l(e){return(0,n.qE)((0,o.Vr)(e),0,255)}function a(e,t){const i=e.toString(16).padStart(2,"0");return t?i.slice(0,1):i}class u{static blendColors(e,t,i,r=new u){return r.r=Math.round(e.r+(t.r-e.r)*i),r.g=Math.round(e.g+(t.g-e.g)*i),r.b=Math.round(e.b+(t.b-e.b)*i),r.a=e.a+(t.a-e.a)*i,r._sanitize()}static fromRgb(e,t){const i=(0,r.lT)(e);return i?u.fromArray(i,t):null}static fromHex(e,t=new u){const i=(0,r.oW)(e);return i?u.fromArray(i,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 i=(0,r.Eq)(e);return i?u.fromArray(i,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,s.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,i=e?.digits??6,r=3===i||4===i,s=4===i||8===i,n=`#${a(this.r,r)}${a(this.g,r)}${a(this.b,r)}${s?a(Math.round(255*this.a),r):""}`;return t?n.toUpperCase():n}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=l(this.r),i=l(this.g),r=l(this.b);return 0===e||1!==this.a?[t,i,r,l(255*this.a)]:[t,i,r]}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,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(e,t,i,r){this.r=e,this.g=t,this.b=i,this.a=r}}u.prototype.declaredClass="esri.Color"},52106(e,t,i){i.d(t,{A:()=>M});var r,s,n=i(32198),o=i(37838),l=i(69540),a=i(51447),u=i(25482),h=i(53966),c=i(36708),d=i(24326),p=i(91429),y=i(12195),f=i(65864),g=i(50498),m=i(55156),b=i(60950),_=i(54339),v=i(94128),S=i(33910);function w(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,l.OU)(u.o)){static{r=v.Z}static{s=this}constructor(e){super(e),this[r]=!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,a.eF)(h.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 s({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 i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,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 i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,_.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,_.r)(this,t):null}getGlobalId(){const e=(0,m.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:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.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 i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,n.Cg)([(0,p.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,f.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,p.MZ)({value:null})],M.prototype,"attributes",null),(0,n.Cg)([(0,p.MZ)({value:null,types:g.yR,json:{read:f.rS}})],M.prototype,"geometry",null),(0,n.Cg)([(0,p.MZ)()],M.prototype,"distance",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,n.Cg)([(0,p.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,n.Cg)([(0,p.MZ)({type:o.A,value:null})],M.prototype,"popupTemplate",null),(0,n.Cg)([(0,p.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,p.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,p.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,n.Cg)([(0,p.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=s=(0,n.Cg)([(0,p.$K)("esri.Graphic")],M)},19334(e,t,i){i.d(t,{e:()=>o});var r=i(54639),s=i(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,s.e6)(e))return null;break;case"polygon":if((0,s.Wq)(e))return null;break;case"polyline":if((0,s.IY)(e))return null;break;case"multipoint":if((0,s.DG)(e))return null;break;case"extent":if((0,s.As)(e))return null;break;default:return null}const t=r.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,i){i.d(t,{R:()=>u,p:()=>h});var r=i(54639),s=i(14112),n=i(16930),o=i(60408),l=i(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if(null==e||"object"!=typeof e)return null;let i=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?i=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(i=new n.A,i.read(e.spatialReference))),null==i)throw new Error("Spatial reference required");return(0,o.fT)(e)?h("point",e,i):(0,o.Rg)(e)?h("polyline",e,i):(0,o.Bi)(e)?h("polygon",e,i):(0,o.U9)(e)?h("multipoint",e,i):(0,o.ZC)(e)?h("extent",e,i):null}function h(e,t,i){if(null==t)return null;let n=!1,o=!1;switch(e){case"point":if((0,s.e6)(t))return null;n=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,s.Wq)(t))return null;n=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,s.IY)(t))return null;n=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,s.DG)(t))return null;n=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,s.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return r.R.of(e,i,n,o,new a(t))}},14112(e,t,i){function r(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function s(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}i.d(t,{As:()=>l,DG:()=>o,IY:()=>n,Wq:()=>s,e6:()=>r})},40876(e,t,i){i.d(t,{Eq:()=>p,G1:()=>f,TS:()=>n,V6:()=>s,Vm:()=>y,ay:()=>a,c1:()=>g,c4:()=>o,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>_});const r={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 s(e){return!!r[e]||!!r[e.toLowerCase()]}function n(e){return r[e]??r[e.toLowerCase()]}function o(e){return[...n(e)]}function l(e,t,i){i<0&&++i,i>1&&--i;const r=6*i;return r<1?e+(t-e)*r:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function a(e,t,i,r=1){const s=(e%360+360)%360/360,n=i<=.5?i*(t+1):i+t-i*t,o=2*i-n;return[Math.round(255*l(o,n,s+1/3)),Math.round(255*l(o,n,s)),Math.round(255*l(o,n,s-1/3)),r]}function u(e){const t=e.length>5,i=t?8:4,r=(1<<i)-1,s=t?1:17,n=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const l=[0,0,0,1];let a;return n&&(a=o&r,o>>=i,l[3]=s*a/255),a=o&r,o>>=i,l[2]=s*a,a=o&r,o>>=i,l[1]=s*a,a=o&r,o>>=i,l[0]=s*a,l}function h(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),i=parseInt(e.slice(2,3),16),r=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,i+16*i,r+16*r,(s+16*s)/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 c(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),i=t[1];if("rgb"===i&&3===e.length||"rgba"===i&&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"===i&&3===e.length||"hsla"===i&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=g(e[0]),e[1]=g(e[1]),e[2]=g(e[2]),e[3]=4===e.length?f(e[3]):1,e}function p(e){let t=s(e)?n(e):null;return t??=c(e),t??=h(e),t}function y(e){const t=p(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return m(e,0,1)}function g(e){return Math.round(m(e,0,255))}function m(e,t,i){return e=Number(e),isNaN(e)?i:e<t?t:e>i?i:e}const b=1/2.2;function _(e){return e**b}i.d(t,["iw",0,b])},38961(e,t,i){var r=i(32198),s=i(7762),n=i(36708),o=i(10107),l=i(64108),a=i(80559);let u=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),n.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const i of e)null!=i&&(t=this._processCollection(t,i));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const i=this.itemFilterFunction??(e=>!!e);for(const r of t)if(r){if(i(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const i of t)e=this._processCollection(e,i);else e=this._processCollection(e,t)}}return e}};(0,r.Cg)([(0,o.MZ)()],u.prototype,"getCollections",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,r.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,r.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const h=u;i.d(t,["A",0,h])},66344(e,t,i){i.d(t,{q:()=>l});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{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 i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,o){t=e.id+t;const l=this._db.get(t);if(l&&(this._size-=l.size,e.size-=l.size,this._db.delete(t),l.entry!==i&&this._notifyRemove(t,l.entry,l.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);const a=1+Math.max(o,-4)- -3;this._db.set(t,new n(i,s,a)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.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={},i=new Array;this._db.forEach((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._clients.forEach(i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}})});const r={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});const s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/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,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,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,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._clients.get(e.split(o)[0])?.removeFunc,n=s?.(t,r,i);return"number"==typeof n?n: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 i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[n,l]of this._db)if(0===l.lifetime&&(!r||n.startsWith(r))){const r=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,l,r),i.size<=.9*e)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if(!r||s.startsWith(r)){const r=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,n,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class n{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class l{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,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(){}}},6797(e,t,i){i.d(t,{Ui:()=>d});var r=i(69622),s=i(7762),n=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.A}function a(e){return e instanceof s.A?Object.keys(e.items):l(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function h(e){return e?e.declaredClass:null}function c(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=a(e),s=a(t);if(0===r.length&&0===s.length)return;if(!r.length||!s.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 n=s.filter(e=>!r.includes(e)),d=r.filter(e=>!s.includes(e)),p=r.filter(i=>s.includes(i)&&u(e,i)!==u(t,i)).concat(n,d).sort(),y=h(e);if(y&&o.has(y)&&p.length)return{type:"complete",oldValue:e,newValue:t};let f;const g=l(e)&&l(t);for(const r of p){const s=u(e,r),n=u(t,r);let o;if((g||"function"!=typeof s&&"function"!=typeof n)&&s!==n&&(null!=s||null!=n)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(s,n);else if(s instanceof Date&&n instanceof Date){if(s.getTime()===n.getTime())continue;o={type:"complete",oldValue:s,newValue:n}}else o="object"==typeof s&&"object"==typeof n&&h(s)===h(n)?c(s,n):{type:"complete",oldValue:s,newValue:n};null!=o&&(null!=f?f.diff[r]=o:f={type:"partial",diff:{[r]:o}})}}return f}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&&h(e)!==h(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},90629(e,t,i){i.d(t,{Lz:()=>s,PN:()=>n,cr:()=>o,gs:()=>a,r_:()=>u,tc:()=>l}),i(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function n(e){return e?72*e/96:0}function o(e){if("string"==typeof e){const t=e.match(r);if(t){const i=Number(t[1]),r=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),o="px"===r?n(i):i;return s?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function l(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,i=0){return[e,t,i]}},65864(e,t,i){i.d(t,{rS:()=>h,xD:()=>d});var r=i(5443),s=i(91075),n=i(48526),o=i(86738),l=i(39829),a=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof s.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?a.A.fromJSON(e):(0,u.Bi)(e)?l.A.fromJSON(e):(0,u.U9)(e)?n.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:a.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:l.A};function d(e){return e&&c[e]||null}},50498(e,t,i){var r=i(66552),s=i(5443),n=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const h=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:n.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}},p=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});i.d(t,["Ye",0,c,"gy",0,h,"iI",0,p,"yR",0,d])},99959(e,t,i){i.d(t,{A:()=>n});var r=i(32198),s=i(91429);let n=class{};n=(0,r.Cg)([(0,s.$K)("esri.graphic.GraphicOrigin")],n)},55156(e,t,i){i.d(t,{I:()=>s});const r=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},89808(e,t,i){const r=Symbol("getSliceableSymbol");i.d(t,["Q",0,r])},162(e,t,i){i.r(t),i.d(t,{default:()=>V});var r=i(32198),s=i(7762),n=i(38961),o=i(25728),l=i(17676),a=i(36708),u=i(84952),h=i(91429),c=i(5443),d=i(16930),p=i(4146),y=i(63074),f=i(34287),g=i(8303),m=i(54310),b=i(25036),_=i(10873),v=i(65529),S=i(25482),w=i(92474),M=i(799),C=i(56507),A=i(89808),z=i(99959);const F=Symbol("isKMLGraphicOrigin");var I;class x extends z.A{get[(I=F,A.Q)](){return this.layer}constructor(e,t){super(),this[I]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var R=i(92602),T=i(70333),P=(i(37838),i(11254)),L=i(4718),k=i(70328),G=i(537);i(65494),i(22671);const E={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function N(e){const t=e.folders||[],i=t.slice(),r=new Map,s=new Map,n=new Map,o=new Map,l=new Map,a={esriGeometryPoint:s,esriGeometryPolyline:n,esriGeometryPolygon:o};(e.featureCollection?.layers||[]).forEach(e=>{const t=(0,L.o8)(e);t.featureSet.features=[];const i=e.featureSet.geometryType;r.set(i,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===i?J(s,l,e.featureSet.features):"esriGeometryPolyline"===i?J(n,l,e.featureSet.features):"esriGeometryPolygon"===i&&J(o,l,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{l.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(r=>{const s=function(e,t,i){const r=function(e,t){let i;return t.some(t=>t.id===e&&(i=t,!0)),i}(e,i);return r&&(r.parentFolderId=t,r.networkLink=r),r}(r,t.id,e.networkLinks);s&&i.push(s)})}),i.forEach(e=>{if(e.featureInfos){e.points=(0,L.o8)(r.get("esriGeometryPoint")),e.polylines=(0,L.o8)(r.get("esriGeometryPolyline")),e.polygons=(0,L.o8)(r.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const i=a[t.type].get(t.id);i&&e[E[t.type]]?.featureSet.features.push(i);break}case"GroundOverlay":{const i=l.get(t.id);i&&e.mapImages.push(i);break}}e.fullExtent=j([e])}});const u=j(i);return{folders:t,sublayers:i,extent:u}}function O(e,t,i,r){const s=T.id?.findCredential(e);e=(0,u.a6)(e,{token:s?.token});const n=R.A.kmlServiceUrl;return(0,P.A)(n,{query:{url:e,model:"simple",folders:"",refresh:0!==i||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:r})}function Z(e,t,i=null,r=[]){const s=[],n={},o=t.sublayers,l=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{const o=new e;if(i?o.read(t,i):o.read(t),r.length&&l.has(o.id)&&(o.visible=r.includes(o.id)),n[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=n[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers?.unshift(o)}else s.unshift(o)}),s}function J(e,t,i){i.forEach(i=>{e.set(i.attributes[t],i)})}function j(e){const t=(0,k.vt)(k.qv),i=(0,k.vt)(k.qv);for(const r of e){if(r.polygons?.featureSet?.features)for(const e of r.polygons.featureSet.features)(0,G.LJ)(t,e.geometry),(0,k.RF)(i,t);if(r.polylines?.featureSet?.features)for(const e of r.polylines.featureSet.features)(0,G.LJ)(t,e.geometry),(0,k.RF)(i,t);if(r.points?.featureSet?.features)for(const e of r.points.featureSet.features)(0,G.LJ)(t,e.geometry),(0,k.RF)(i,t);if(r.mapImages)for(const e of r.mapImages)(0,G.LJ)(t,e.extent),(0,k.RF)(i,t)}return(0,k.aI)(i,k.qv)?void 0:{xmin:i[0],ymin:i[1],zmin:i[2],xmax:i[3],ymax:i[4],zmax:i[5],spatialReference:d.A.WGS84}}var q,U=i(36005);let H=q=class extends((0,v.Zt)((0,S.T)(w.x_))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}async load(e){if(!this.networkLink)return this;if(this.networkLink.viewFormat)return this;const t=null!=e?e.signal:null,i=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{const t=j(e.sublayers);this.fullExtent=c.A.fromJSON(t),this.sourceJSON=e;const i=(0,C.dp)(s.A.ofType(q),Z(q,e));this.sublayers?this.sublayers.addMany(i):this.sublayers=i,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(i),this}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new x(this.layer,this):null}_fetchService(e,t){return O(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>N(e.data))}};(0,r.Cg)([(0,h.MZ)()],H.prototype,"description",void 0),(0,r.Cg)([(0,h.MZ)({type:c.A})],H.prototype,"fullExtent",void 0),(0,r.Cg)([(0,h.MZ)()],H.prototype,"id",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0,value:null})],H.prototype,"networkLink",void 0),(0,r.Cg)([(0,h.MZ)({json:{write:{allowNull:!0}}})],H.prototype,"parent",void 0),(0,r.Cg)([(0,h.MZ)({type:s.A.ofType(q),json:{write:{allowNull:!0}}})],H.prototype,"sublayers",void 0),(0,r.Cg)([(0,h.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,M._e)(e)}}})],H.prototype,"title",void 0),(0,r.Cg)([(0,h.MZ)({value:!0})],H.prototype,"visible",null),(0,r.Cg)([(0,U.w)("visible",["visibility"])],H.prototype,"readVisible",null),(0,r.Cg)([(0,h.MZ)()],H.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,h.MZ)()],H.prototype,"layer",void 0),(0,r.Cg)([(0,h.MZ)()],H.prototype,"origin",null),H=q=(0,r.Cg)([(0,h.$K)("esri.layers.support.KMLSublayer")],H);var B=i(43937);const D=["kml","xml"];let $=class extends((0,y.dM)((0,m.J)((0,b.j)((0,f.q)((0,g.A)((0,o.M)(p.A))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new n.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=d.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get sublayerById(){const e=new Map;for(const t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,i){return Z(H,t,i,this._visibleFolders)}writeSublayers(e,t){const i=[],r=e.toArray();for(;r.length;){const e=r[0];e.networkLink||(e.visible&&i.push(e.id),e.sublayers&&r.push(...e.sublayers.toArray())),r.shift()}t.visibleFolders=i}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,D)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],i=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(i))};return e?.forEach(i),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(l.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=N((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:O(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());const t=i=>{if(i.sublayers)for(const r of i.sublayers.items)t(r),r.visible&&r.fullExtent&&(null!=e?e.union(r.fullExtent):e=r.fullExtent.clone())};return t(this),e}};(0,r.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"allSublayers",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"sublayerById",null),(0,r.Cg)([(0,h.MZ)({type:d.A})],$.prototype,"outSpatialReference",void 0),(0,r.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],$.prototype,"path",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1,write:!1}})],$.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],$.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)({type:["KML"]})],$.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({})],$.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,h.MZ)({type:s.A.ofType(H),json:{write:{ignoreOrigin:!0}}})],$.prototype,"sublayers",void 0),(0,r.Cg)([(0,U.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],$.prototype,"readSublayersFromItemOrWebMap",null),(0,r.Cg)([(0,U.w)("service","sublayers",["sublayers"])],$.prototype,"readSublayers",null),(0,r.Cg)([(0,B.K)("sublayers")],$.prototype,"writeSublayers",null),(0,r.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],$.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],$.prototype,"title",null),(0,r.Cg)([(0,h.MZ)(_.OZ)],$.prototype,"url",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],$.prototype,"visibleSublayers",null),(0,r.Cg)([(0,h.MZ)({type:c.A})],$.prototype,"extent",void 0),(0,r.Cg)([(0,h.MZ)()],$.prototype,"fullExtent",null),$=(0,r.Cg)([(0,h.$K)("esri.layers.KMLLayer")],$);const V=$},8303(e,t,i){var r=i(32198),s=i(92602),n=i(70333),o=i(11254),l=i(60999),a=i(49186),u=i(36563),h=i(53966),c=i(97768),d=i(17676),p=i(84952),y=i(91429),f=i(77548),g=i(20655),m=i(80812),b=i(41318),_=i(10407),v=i(36005),S=i(43937);const w={credential:null,user:null};i.d(t,["A",0,e=>{const t=e;let M=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,c.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,i){if(t.itemId)return new m.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,d.Te)(t),await r({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)||h.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 i.e(1204).then(i.bind(i,41204)),r=new AbortController,s=(0,u.rE)(r);return this.addHandles(s,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:r.signal})}catch(e){throw(0,d.zf)(e)||h.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(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(s)o=i.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,p.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,u=!1,h=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await i.reload():(i=new m.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,_.It)(e);return t&&(i.features.edit=!0),i}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?n.id?.findCredential(this.url):null;if(!t)return!0;const i=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,p.S8)(s.restUrl)===(0,p.S8)(r))return s.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,h=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?b.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&r&&!(0,p.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.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,r.Cg)([(0,y.MZ)({type:m.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],M),M}])},95466(e,t,i){i.d(t,{A:()=>u});var r=i(49186),s=i(53966),n=i(12195),o=i(30524),l=i(98623),a=i(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=(0,o.GZ)(t);if(t&&r){const s=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?l.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",u=(r?"endField"in r?r.endField:r.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.ZS)(e.dateFieldsTimeReference):null,d=s?function(e){return"timeZone"in e}(s)?s.timeZone??c:s.dateFieldsTimeReference?(0,a.ZS)(s.dateFieldsTimeReference):c??"UTC":null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??c:r.timeReference?(0,a.ZS)(r.timeReference):c:null,y=new Map([[(0,o.NF)(s?.creationDateField??""),d],[(0,o.NF)(s?.editDateField??""),d],[(0,o.NF)(n),p],[(0,o.NF)(u),p]]);for(const{name:r,type:s}of e.fields)if(h.has(s))t.set(r,l.L);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,l.L);else{const e=y.get((0,o.NF)(r??""))??c;t.set(r,e)}return t}},10407(e,t,i){i.d(t,{It:()=>p,LG:()=>o,OM:()=>u,Sm:()=>h,Y:()=>l,bK:()=>a,sQ:()=>c});var r=i(99917),s=i(16930),n=i(28735);function o(e,t){if(!l(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function h(e,t,i){i?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}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 p(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),o=!!i&&!!s?.includes("features:user:fullEdit");const l="update"===r||"admin"===r;return l?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:l}}}i.d(t,["mm",0,d])},96576(e,t,i){i.d(t,{A:()=>c});var r,s=i(32198),n=i(4718),o=i(91429),l=i(92438),a=i(63988),u=i(49849),h=i(93223);let c=r=class extends((0,a.h)(l.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(i=>i.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new r({description:this.description,label:this.label,symbol:(0,n.o8)(this.symbol),visualVariables:(0,n.o8)(this.visualVariables),authoringInfo:(0,n.o8)(this.authoringInfo)})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s.Cg)([(0,o.MZ)(u.Wp)],c.prototype,"symbol",void 0),(0,s.Cg)([(0,h.e)({simple:"simple"})],c.prototype,"type",void 0),c=r=(0,s.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],c)},65494(e,t,i){i.d(t,{L:()=>a,r:()=>o});var r=i(90360),s=i(41214),n=i(59923);function o(e,t){return a(e,null,t)}const l=(0,r.C)({types:s.Hg});function a(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,n.Yc)(i,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):l(e,t,i):null}},98205(e,t,i){i.d(t,{KZ:()=>l,eh:()=>o,gf:()=>n,of:()=>s});const r=Symbol("SizeVariableInstance");function s(e){return null!=e&&"object"==typeof e&&r in e}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return"unknown"===i?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}i.d(t,["uY",0,r])},22671(e,t,i){i.d(t,{A:()=>b});var r,s=i(32198),n=i(52106),o=i(66552),l=i(25482),a=i(4718),u=i(91429),h=i(16930),c=i(60408),d=i(65864),p=i(50498),y=i(20437),f=i(36005),g=i(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=r=class extends l.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,n.A)}writeGeometryType(e,t,i,r){if(e)return void m.write(e,t,i,r);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void m.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,d.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=h.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.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 i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,s]}=e,n=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((s-e)/i));for(let e=0,t=n.length;e<t;e++)o?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,s],scale:[n,o]}=i;let l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*n+r,e=>s-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=h.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const n=e[t],o=i.fromJSON(n),l=n.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=n.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],i=a[e],s=i?.spatialReference;null==t||s||(t.spatialReference=r)}s.push(o)}return s}_quantizePoints(e,t,i){let r,s;const n=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=i(l[1]);e===r&&o===s||(n.push([e-r,o-s]),r=e,s=o)}else r=t(l[0]),s=i(l[1]),n.push([r,s])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,c.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],o=this._quantizePoints(n,t,i);o&&s.push(o)}return s.length>0?((0,c.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,s){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,s=r.length;e<s;e++){const s=r[e];e>0?(o+=s[0],l+=s[1]):(o=s[0],l=s[1]),s[0]=t(o),s[1]=i(l)}}if(r&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=s(i[3])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=s(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let o,l;for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=i(l)}if(r&&s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2]),t[3]=s(t[3])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}else if(s)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,s.Cg)([(0,f.w)("features")],b.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,s.Cg)([(0,g.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:p.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,f.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,g.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=r=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},93470(e,t,i){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,s,"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,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6129],{86129(e,t,n){n.r(t),n.d(t,{createProjectionTransformation:()=>s});var a=n(39117),r=(n(83661),n(95213),n(55537),n(79187));function s(e,t,n){let s,i;if(n?.geographicTransformation){if(n.geographicTransformation.steps?.length){const r=new a.ac;r.setInputSpatialReference(e),r.setOutputSpatialReference(t);for(const e of n.geographicTransformation.steps){let t;t=e.wkid?(0,a.y)(e.wkid,e.isInverse):(0,a.z)(e.wkt,e.isInverse),r.add(t)}s=r.create()}else s=(0,a.ad)();if(n.extendedParams){i=(0,a.H)();const{densificationStep:e}=n.extendedParams;null!=e&&(i.densificationStep=e)}}else if(n?.areaOfInterestExtent)return(0,a.E)(e,t,(o=n.areaOfInterestExtent,r.Envelope2D.construct(o.xmin,o.ymin,o.xmax,o.ymax)));var o;return s?(0,a.D)(e,t,s,i):(0,a.C)(e,t)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2292],{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,a,o,u,h,c,l,f,p,m,M){return[t,n,e,r,i,s,a,o,u,h,c,l,f,p,m,M]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},35522(t,n,e){e.d(n,{$A:()=>w,Bw:()=>s,C:()=>a,Cc:()=>R,DI:()=>A,Io:()=>g,Ln:()=>y,Om:()=>P,Qr:()=>l,Re:()=>h,S8:()=>x,T9:()=>M,WQ:()=>u,Z0:()=>C,_S:()=>p,aI:()=>F,ei:()=>N,fw:()=>q,gL:()=>Z,hG:()=>v,hZ:()=>o,hs:()=>d,jk:()=>m,lw:()=>c,m3:()=>b,oW:()=>T,t2:()=>j,tn:()=>f,ze:()=>I});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function h(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function d(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(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}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function v(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function b(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function I(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],i=n[1],s=n[2],a=e[0],o=e[1],u=e[2];return t[0]=i*u-s*o,t[1]=s*a-r*u,t[2]=r*o-i*a,t}function R(t,n,e,r){const i=n[0],s=n[1],a=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=a+r*(e[2]-a),t}function C(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function N(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function Z(t,n,e){return q(t,n,e[0],e[1],e[2],e[3])}function q(t,n,e,r,i,s){const a=n[0],o=n[1],u=n[2],h=r*u-i*o,c=i*a-e*u,l=e*o-r*a,f=r*l-i*c,p=i*h-e*l,m=e*c-r*h,M=2*s;return t[0]=a+h*M+2*f,t[1]=o+c*M+2*p,t[2]=u+l*M+2*m,t}const _=(0,r.vt)(),O=(0,r.vt)();function j(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function F(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],a=n[0],o=n[1],u=n[2],h=(0,i.FD)();return Math.abs(e-a)<=h*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-u)<=h*Math.max(1,Math.abs(s),Math.abs(u))}function T(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let a=r*r+i*i+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=i*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const S=h,z=c,E=l,G=g,J=v,k=s,D=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){x(_,t),x(O,n);const e=P(_,O);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const a=1-s,o=a*a,u=s*s,h=o*a,c=3*s*o,l=3*u*a,f=u*s;return t[0]=n[0]*h+e[0]*c+r[0]*l+i[0]*f,t[1]=n[1]*h+e[1]*c+r[1]*l+i[1]*f,t[2]=n[2]*h+e[2]*c+r[2]*l+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],a=e[0],o=e[1],u=e[2],h=i*u-s*o,c=s*a-r*u,l=r*o-i*a,f=Math.sqrt(h*h+c*c+l*l);return t[0]=h/f,t[1]=c/f,t[2]=l/f,t},direction:T,dist:G,distance:g,div:E,divide:l,dot:P,equals:F,exactEquals:j,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const a=s*s,o=a*(2*s-3)+1,u=a*(s-2)+s,h=a*(s-1),c=a*(3-2*s);return t[0]=n[0]*o+e[0]*u+r[0]*h+i[0]*c,t[1]=n[1]*o+e[1]*u+r[1]*h+i[1]*c,t[2]=n[2]*o+e[2]*u+r[2]*h+i[2]*c,t},inverse:A,len:k,length:s,lerp:R,max:M,min:m,mul:z,multiply:c,negate:I,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,a=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:d,scaleAndAdd:y,scaleTo:function(t,n){return d(t,t,n/k(t))},set:o,sign:p,sqrDist:J,sqrLen:D,squaredDistance:v,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:S,subtract:h,transformMat3:N,transformMat4:C,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:Z,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,k,"jb",0,S,"lo",0,J,"uE",0,D,"xg",0,G])},48526(t,n,e){e.d(n,{A:()=>d});var r,i=e(32198),s=e(4576),a=e(4718),o=e(91429),u=e(5443),h=e(91075),c=e(86738),l=e(16930),f=e(90634),p=e(47610),m=e(56993),M=e(43937);let d=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=l.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:i}=this;return new r({points:(0,a.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,s.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new c.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,m.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],d.prototype,"points",void 0),(0,i.Cg)([(0,M.K)("points")],d.prototype,"writePoints",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],d),d.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>m});var r,i=e(32198),s=e(4718),a=e(91429),o=e(5443),u=e(91075),h=e(86738),c=e(16930),l=e(90634),f=e(56993),p=e(43937);let m=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=c.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:n}=this;return t?new o.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new h.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new h.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new h.A(e[0],e[1],e[2],e[3],this.spatialReference):new h.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new h.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new h.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},4197(t,n,e){e.d(n,{Vj:()=>c,cj:()=>h,jh:()=>s,l5:()=>o,yH:()=>u});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function o(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t,n){if(0===n.length)return a(t);if(0===t.length)return a(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 h(t){return[...t]}function c(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:()=>C,C:()=>a,DC:()=>f,Ej:()=>v,Ie:()=>w,Jt:()=>R,Lu:()=>I,Ne:()=>A,RF:()=>l,TF:()=>y,VL:()=>m,aI:()=>Z,fA:()=>o,gE:()=>h,gX:()=>g,hZ:()=>P,iT:()=>p,is:()=>N,pg:()=>b,uJ:()=>d,vI:()=>x,vY:()=>u,vt:()=>s,w1:()=>c,yr:()=>M}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=_){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function o(t,n,e,r,i,a,o=s()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o[4]=i,o[5]=a,o}function u(t,n=s()){return function(t,n,e,r=s()){return P(r,q),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],a=t[2],o=t[3],u=t[4],h=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]),a=Math.min(a,n[e+3*t+2]),o=Math.max(o,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),h=Math.max(h,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=a,t[3]=o,t[4]=u,t[5]=h}(r,t,n,e),r}(t,0,t.length/3,n)}function h(t,n=(0,i.jh)(24)){const[e,r,s,a,o,u]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=o,n[8]=s,n[9]=e,n[10]=o,n[11]=u,n[12]=a,n[13]=r,n[14]=s,n[15]=a,n[16]=r,n[17]=u,n[18]=a,n[19]=o,n[20]=s,n[21]=a,n[22]=o,n[23]=u,n}function c(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 l(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 f(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 p(t,[n,e,r]){!function(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)}(t,n,e,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function d(t){return t[2]>=t[5]?0:t[5]-t[2]}function y(t){const n=m(t),e=d(t),r=M(t);return n*n+e*e+r*r}function g(t,n=[0,0,0]){return n[0]=t[0]+m(t)/2,n[1]=t[1]+M(t)/2,n[2]=t[2]+d(t)/2,n}function v(t,n=[0,0,0]){return n[0]=m(t),n[1]=M(t),n[2]=d(t),n}function b(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function I(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function A(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 x(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 P(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 w(t){return t?P(t,q):s(q)}function R(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 C(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 N(t){return 6===t.length}function Z(t,n,e){if(null==t||null==n)return t===n;if(!N(t)||!N(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 q=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];s(),e.d(n,["qv",0,q,"v_",0,_])},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?s(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>h,Bi:()=>o,Pv:()=>c,Rg:()=>a,U9:()=>i,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>u})},54339(t,n,e){function r(t,n){switch(n.type){case"object-id":case"unique-id-simple":return t.attributes[n.fieldName];case"unique-id-composite":{const e=[];for(const r of n.fieldNames)e.push(t.attributes[r]??null);return JSON.stringify(e)}}}function i(t,n){if("uniqueIdFields"in n&&n.uniqueIdFields?.length){if(1===n.uniqueIdFields.length)return t.attributes?.[n.uniqueIdFields[0]];const e=n.uniqueIdFields.map(n=>t.attributes?.[n]);return JSON.stringify(e)}return"objectIdField"in n&&n.objectIdField?t.attributes?.[n.objectIdField]:null}e.d(n,{W:()=>r,r:()=>i})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4538],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>o,d:()=>i,e:()=>f,f:()=>u,l:()=>c,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],M=n[12],_=n[13],b=n[14];let v=0,x=0;for(let n=0;n<h;n++){const n=e[v],r=e[v+1],i=e[v+2];t[x]=c*n+f*r+p*i+M,t[x+1]=u*n+m*r+y*i+_,t[x+2]=l*n+d*r+g*i+b,v+=s,x+=o}return t}function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8];let M=0,_=0;for(let n=0;n<h;n++){const n=e[M],r=e[M+1],i=e[M+2];t[_]=c*n+f*r+p*i,t[_+1]=u*n+m*r+y*i,t[_+2]=l*n+d*r+g*i,M+=s,_+=o}}function h(t,e,n,r=3,o=r){const s=Math.min(t.length/r,e.length/o);let i=0,a=0;for(let h=0;h<s;h++)t[a]=n*e[i],t[a+1]=n*e[i+1],t[a+2]=n*e[i+2],i+=o,a+=r;return t}function c(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,o=3,s=o){const i=Math.min(t.length/o,e.length/s);let a=0,h=0;const c=1/2.2;for(let u=0;u<i;u++)t[h]=r*(n*e[a])**c,t[h+1]=r*(n*e[a+1])**c,t[h+2]=r*(n*e[a+2])**c,a+=s,h+=o}function l(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a);let c=0,u=0;for(let r=0;r<h;r++)t[u]=e[c]+n[0],t[u+1]=e[c+1]+n[1],t[u+2]=e[c+2]+n[2],c+=s,u+=o;return t}function f(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let s=0,i=0;for(let a=0;a<o;a++){const o=e[s],a=e[s+1],h=e[s+2],c=o*o+a*a+h*h;if(c>0){const e=1/Math.sqrt(c);t[i]=e*o,t[i+1]=e*a,t[i+2]=e*h}s+=r,i+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:m,normalizeView:f,scale:h,scaleView:function(t,e,n){h(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,a=e.typedBufferStride;let h=0,c=0;for(let t=0;t<r;t++)o[c]=i[h]>>n,o[c+1]=i[h+1]>>n,o[c+2]=i[h+2]>>n,h+=a,c+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:l},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),o=n(69622),s=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),h=n(64108);const c=Symbol("ClonableMixin"),u=t=>{var e;const n=t;let o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,a.oY)(this);(0,i.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,o={},h=new Map;for(const e in n){const i=n[e],a=r?.originOf(e),c=i.clonable;if(i.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[e];let l=null;if("function"==typeof c)l=c(u,t);else if("reference"===c)l=u;else if(l=(0,s.TU)(u,t),null!=u&&null==l)continue;0===a?h.set(e,l):o[e]=l}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(h.size){const t=(0,a.oY)(c)?.store;if(t)for(const[e,n]of h)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,h.$)("esri.core.Clonable")],o),o},l=u(o.A);n.d(e,["OU",0,u,"Pw",0,l])},95488(t,e,n){n.d(e,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(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]]}n.d(e,{o8:()=>o,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:o,create:r,fromValues:function(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p){return[t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function h(){return s(1,1,1)}function c(){return s(1,0,0)}function u(){return s(0,1,0)}function l(){return s(0,0,1)}n.d(e,{CN:()=>i,ci:()=>a,fA:()=>s,o8:()=>o,vt:()=>r});const f=[0,0,0],m=h(),d=c(),p=u(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:f,clone:o,create:r,freeze:i,fromArray:a,fromValues:s,ones:h,unitX:c,unitY:u,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,f])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>s,D_:()=>a,N9:()=>_,O7:()=>w,Qw:()=>c,Tl:()=>f,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>M,hZ:()=>i,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>l,mg:()=>h,o1:()=>R,sC:()=>x,t2:()=>I,t5:()=>E,tZ:()=>N,ut:()=>O});var r=n(51850),o=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function i(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=h,t[8]=c,t[9]=u,t[10]=l,t[11]=f,t[12]=m,t[13]=d,t[14]=p,t[15]=y,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 h(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return u(t,e)||a(t),t}function u(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],M=n*a-r*i,_=n*h-o*i,b=n*c-s*i,v=r*h-o*a,x=r*c-s*a,S=o*c-s*h,A=u*p-l*d,R=u*y-f*d,w=u*g-m*d,T=l*y-f*p,E=l*g-m*p,C=f*g-m*y;let I=M*C-_*E+b*T+v*w-x*R+S*A;return I?(I=1/I,t[0]=(a*C-h*E+c*T)*I,t[1]=(o*E-r*C-s*T)*I,t[2]=(p*S-y*x+g*v)*I,t[3]=(f*x-l*S-m*v)*I,t[4]=(h*w-i*C-c*R)*I,t[5]=(n*C-o*w+s*R)*I,t[6]=(y*b-d*S-g*_)*I,t[7]=(u*S-f*b+m*_)*I,t[8]=(i*E-a*w+c*A)*I,t[9]=(r*w-n*E-s*A)*I,t[10]=(d*x-p*b+g*M)*I,t[11]=(l*b-u*x-m*M)*I,t[12]=(a*R-i*T-h*A)*I,t[13]=(n*T-r*R+o*A)*I,t[14]=(p*_-d*v-y*M)*I,t[15]=(u*v-l*_+f*M)*I,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=e[8],f=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],M=e[15];let _=n[0],b=n[1],v=n[2],x=n[3];return t[0]=_*r+b*a+v*l+x*p,t[1]=_*o+b*h+v*f+x*y,t[2]=_*s+b*c+v*m+x*g,t[3]=_*i+b*u+v*d+x*M,_=n[4],b=n[5],v=n[6],x=n[7],t[4]=_*r+b*a+v*l+x*p,t[5]=_*o+b*h+v*f+x*y,t[6]=_*s+b*c+v*m+x*g,t[7]=_*i+b*u+v*d+x*M,_=n[8],b=n[9],v=n[10],x=n[11],t[8]=_*r+b*a+v*l+x*p,t[9]=_*o+b*h+v*f+x*y,t[10]=_*s+b*c+v*m+x*g,t[11]=_*i+b*u+v*d+x*M,_=n[12],b=n[13],v=n[14],x=n[15],t[12]=_*r+b*a+v*l+x*p,t[13]=_*o+b*h+v*f+x*y,t[14]=_*s+b*c+v*m+x*g,t[15]=_*i+b*u+v*d+x*M,t}function f(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=i,t[2]=a,t[3]=h,t[4]=c,t[5]=u,t[6]=l,t[7]=f,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+c*o+m*s+e[12],t[13]=i*r+u*o+d*s+e[13],t[14]=a*r+l*o+p*s+e[14],t[15]=h*r+f*o+y*s+e[15]}return t}function m(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let i=r[0],a=r[1],h=r[2],c=Math.sqrt(i*i+a*a+h*h);if(c<=(0,o.FD)())return void s(t,e);c=1/c,i*=c,a*=c,h*=c;const u=Math.sin(n),l=Math.cos(n),f=1-l,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],M=e[5],_=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=i*i*f+l,w=a*i*f+h*u,T=h*i*f-a*u,E=i*a*f-h*u,C=a*a*f+l,I=h*a*f+i*u,O=i*h*f+a*u,N=a*h*f-i*u,P=h*h*f+l;t[0]=m*R+g*w+v*T,t[1]=d*R+M*w+x*T,t[2]=p*R+_*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*E+g*C+v*I,t[5]=d*E+M*C+x*I,t[6]=p*E+_*C+S*I,t[7]=y*E+b*C+A*I,t[8]=m*O+g*N+v*P,t[9]=d*O+M*N+x*P,t[10]=p*O+_*N+S*P,t[11]=y*O+b*N+A*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],a=e[6],h=e[7],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+c*r,t[5]=i*o+u*r,t[6]=a*o+l*r,t[7]=h*o+f*r,t[8]=c*o-s*r,t[9]=u*o-i*r,t[10]=l*o-a*r,t[11]=f*o-h*r,t}function y(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],i=n[2],h=Math.sqrt(r*r+s*s+i*i);if(h<=(0,o.FD)())return null;h=1/h,r*=h,s*=h,i*=h;const c=Math.sin(e),u=Math.cos(e),l=1-u;return t[0]=r*r*l+u,t[1]=s*r*l+i*c,t[2]=i*r*l-s*c,t[3]=0,t[4]=r*s*l-i*c,t[5]=s*s*l+u,t[6]=i*s*l+r*c,t[7]=0,t[8]=r*i*l+s*c,t[9]=s*i*l-r*c,t[10]=i*i*l+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,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 b(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=r+r,h=o+o,c=s+s,u=r*a,l=r*h,f=r*c,m=o*h,d=o*c,p=s*c,y=i*a,g=i*h,M=i*c;return t[0]=1-(m+p),t[1]=l+M,t[2]=f-g,t[3]=0,t[4]=l-M,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=f+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],a=e[6],h=e[8],c=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+a*a),t[2]=Math.sqrt(h*h+c*c+u*u),t}function A(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=e[3],h=o+o,c=s+s,u=i+i,l=o*h,f=o*c,m=o*u,d=s*c,p=s*u,y=i*u,g=a*h,M=a*c,_=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(f+_)*b,t[2]=(m-M)*b,t[3]=0,t[4]=(f-_)*v,t[5]=(1-(l+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+M)*x,t[9]=(p-g)*x,t[10]=(1-(l+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,o){const s=e[0],i=e[1],a=e[2],h=e[3],c=s+s,u=i+i,l=a+a,f=s*c,m=s*u,d=s*l,p=i*u,y=i*l,g=a*l,M=h*c,_=h*u,b=h*l,v=r[0],x=r[1],S=r[2],A=o[0],R=o[1],w=o[2],T=(1-(p+g))*v,E=(m+b)*v,C=(d-_)*v,I=(m-b)*x,O=(1-(f+g))*x,N=(y+M)*x,P=(d+_)*S,L=(y-M)*S,D=(1-(f+p))*S;return t[0]=T,t[1]=E,t[2]=C,t[3]=0,t[4]=I,t[5]=O,t[6]=N,t[7]=0,t[8]=P,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+A-(T*A+I*R+P*w),t[13]=n[1]+R-(E*A+O*R+L*w),t[14]=n[2]+w-(C*A+N*R+D*w),t[15]=1,t}function T(t,e,n,r,o,s,i){const a=1/(n-e),h=1/(o-r),c=1/(s-i);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*h,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*h,t[10]=(i+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*c,t[15]=0,t}function E(t,e,n,r){const s=e[0],i=e[1],h=e[2];let c=s-n[0],u=i-n[1],l=h-n[2];const f=(0,o.FD)();if(Math.abs(c)<f&&Math.abs(u)<f&&Math.abs(l)<f)return void a(t);let m=1/Math.sqrt(c*c+u*u+l*l);c*=m,u*=m,l*=m;const d=r[0],p=r[1],y=r[2];let g=p*l-y*u,M=y*c-d*l,_=d*u-p*c;m=Math.sqrt(g*g+M*M+_*_),m?(m=1/m,g*=m,M*=m,_*=m):(g=0,M=0,_=0);let b=u*_-l*M,v=l*g-c*_,x=c*M-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=M,t[5]=v,t[6]=u,t[7]=0,t[8]=_,t[9]=x,t[10]=l,t[11]=0,t[12]=-(g*s+M*i+_*h),t[13]=-(b*s+v*i+x*h),t[14]=-(c*s+u*i+l*h),t[15]=1}function C(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){const e=(0,o.FD)(),n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],h=t[6],c=t[8],u=t[9],l=t[10];return Math.abs(1-(n*n+i*i+c*c))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(s*s+h*h+l*l))<=e}function N(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 P=l,L=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(f*g-m*y)-l*(h*g-c*y)+p*(h*m-c*f),t[1]=-(r*(f*g-m*y)-l*(o*g-s*y)+p*(o*m-s*f)),t[2]=r*(h*g-c*y)-a*(o*g-s*y)+p*(o*c-s*h),t[3]=-(r*(h*m-c*f)-a*(o*m-s*f)+l*(o*c-s*h)),t[4]=-(i*(f*g-m*y)-u*(h*g-c*y)+d*(h*m-c*f)),t[5]=n*(f*g-m*y)-u*(o*g-s*y)+d*(o*m-s*f),t[6]=-(n*(h*g-c*y)-i*(o*g-s*y)+d*(o*c-s*h)),t[7]=n*(h*m-c*f)-i*(o*m-s*f)+u*(o*c-s*h),t[8]=i*(l*g-m*p)-u*(a*g-c*p)+d*(a*m-c*l),t[9]=-(n*(l*g-m*p)-u*(r*g-s*p)+d*(r*m-s*l)),t[10]=n*(a*g-c*p)-i*(r*g-s*p)+d*(r*c-s*a),t[11]=-(n*(a*m-c*l)-i*(r*m-s*l)+u*(r*c-s*a)),t[12]=-(i*(l*y-f*p)-u*(a*y-h*p)+d*(a*f-h*l)),t[13]=n*(l*y-f*p)-u*(r*y-o*p)+d*(r*f-o*l),t[14]=-(n*(a*y-h*p)-i*(r*y-o*p)+d*(r*h-o*a)),t[15]=n*(a*f-h*l)-i*(r*f-o*l)+u*(r*h-o*a),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],a=t[6],h=t[7],c=t[8],u=t[9],l=t[10],f=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*i-n*s)*(l*y-f*p)-(e*a-r*s)*(u*y-f*d)+(e*h-o*s)*(u*p-l*d)+(n*a-r*i)*(c*y-f*m)-(n*h-o*i)*(c*p-l*m)+(r*h-o*a)*(c*d-u*m)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],h=t[5],c=t[6],u=t[7],l=t[8],f=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],M=t[15],_=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],E=e[9],C=e[10],I=e[11],O=e[12],N=e[13],P=e[14],L=e[15],D=(0,o.FD)();return Math.abs(n-_)<=D*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-b)<=D*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-v)<=D*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(i-x)<=D*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-S)<=D*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(h-A)<=D*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-R)<=D*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(u-w)<=D*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(l-T)<=D*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(f-E)<=D*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(m-C)<=D*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(d-I)<=D*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-N)<=D*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-P)<=D*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(M-L)<=D*Math.max(1,Math.abs(M),Math.abs(L))},exactEquals:I,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,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,a=r+r,h=o+o,c=n*i,u=r*i,l=r*a,f=o*i,m=o*a,d=o*h,p=s*i,y=s*a,g=s*h;return t[0]=1-l-d,t[1]=u+g,t[2]=f-y,t[3]=0,t[4]=u-g,t[5]=1-c-d,t[6]=m+p,t[7]=0,t[8]=f+y,t[9]=m-p,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=v,r=-e[0],o=-e[1],s=-e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=r*r+o*o+s*s+i*i;return l>0?(n[0]=2*(a*i+u*r+h*s-c*o)/l,n[1]=2*(h*i+u*o+c*r-a*s)/l,n[2]=2*(c*i+u*s+a*o-h*r)/l):(n[0]=2*(a*i+u*r+h*s-c*o),n[1]=2*(h*i+u*o+c*r-a*s),n[2]=2*(c*i+u*s+a*o-h*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:N,identity:a,invert:u,invertOrIdentity:c,isOrthoNormal:O,lookAt:E,mul:P,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,i){const a=1/(e-n),h=1/(r-o),c=1/(s-i);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*h,t[14]=(i+s)*c,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,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!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),h=2/(i+a),c=2/(o+s);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(i-a)*h*.5,t[9]=(o-s)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-c*r,t[1]=i*o-u*r,t[2]=a*o-l*r,t[3]=h*o-f*r,t[8]=s*r+c*o,t[9]=i*r+u*o,t[10]=a*r+l*o,t[11]=h*r+f*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+c*r,t[1]=i*o+u*r,t[2]=a*o+l*r,t[3]=h*o+f*r,t[4]=c*o-s*r,t[5]=u*o-i*r,t[6]=l*o-a*r,t[7]=f*o-h*r,t},scale:m,set:i,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:L,subtract:C,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=r[0],h=r[1],c=r[2];let u=o-n[0],l=s-n[1],f=i-n[2],m=u*u+l*l+f*f;m>0&&(m=1/Math.sqrt(m),u*=m,l*=m,f*=m);let d=h*f-c*l,p=c*u-a*f,y=a*l-h*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=l*y-f*p,t[5]=f*d-u*y,t[6]=u*p-l*d,t[7]=0,t[8]=u,t[9]=l,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:f,transpose:h},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>s,C:()=>i,Cc:()=>w,DI:()=>x,Io:()=>M,Ln:()=>g,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>p,WQ:()=>h,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>E,fw:()=>I,gL:()=>C,hG:()=>_,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>D,t2:()=>P,tn:()=>f,ze:()=>v});var r=n(51850),o=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],o=e[2];let s=n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2];return t[0]=o*h-s*a,t[1]=s*i-r*h,t[2]=r*a-o*i,t}function w(t,e,n,r){const o=e[0],s=e[1],i=e[2];return t[0]=o+r*(n[0]-o),t[1]=s+r*(n[1]-s),t[2]=i+r*(n[2]-i),t}function T(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*s+n[12],t[1]=n[1]*r+n[5]*o+n[9]*s+n[13],t[2]=n[2]*r+n[6]*o+n[10]*s+n[14],t}function E(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=r*n[0]+o*n[3]+s*n[6],t[1]=r*n[1]+o*n[4]+s*n[7],t[2]=r*n[2]+o*n[5]+s*n[8],t}function C(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,o,s){const i=e[0],a=e[1],h=e[2],c=r*h-o*a,u=o*i-n*h,l=n*a-r*i,f=r*l-o*u,m=o*c-n*l,d=n*u-r*c,p=2*s;return t[0]=i+c*p+2*f,t[1]=a+u*p+2*m,t[2]=h+l*p+2*d,t}const O=(0,r.vt)(),N=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=e[0],a=e[1],h=e[2],c=(0,o.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}function D(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],s=n[2]-e[2];let i=r*r+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=c,G=u,U=l,F=M,j=_,k=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,e){S(O,t),S(N,e);const n=A(O,N);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,s){const i=1-s,a=i*i,h=s*s,c=a*i,u=3*s*a,l=3*h*i,f=h*s;return t[0]=e[0]*c+n[0]*u+r[0]*l+o[0]*f,t[1]=e[1]*c+n[1]*u+r[1]*l+o[1]*f,t[2]=e[2]*c+n[2]*u+r[2]*l+o[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:i,cross:R,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2],c=o*h-s*a,u=s*i-r*h,l=r*a-o*i,f=Math.sqrt(c*c+u*u+l*l);return t[0]=c/f,t[1]=u/f,t[2]=l/f,t},direction:D,dist:F,distance:M,div:U,divide:l,dot:A,equals:L,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,s){const i=s*s,a=i*(2*s-3)+1,h=i*(s-2)+s,c=i*(s-1),u=i*(3-2*s);return t[0]=e[0]*a+n[0]*h+r[0]*c+o[0]*u,t[1]=e[1]*a+n[1]*h+r[1]*c+o[1]*u,t[2]=e[2]*a+n[2]*h+r[2]*c+o[2]*u,t},inverse:x,len:k,length:s,lerp:w,max:p,min:d,mul:G,multiply:u,negate:v,normalize:S,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,s=2*n()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*e,t},rotateX:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/k(t))},set:a,sign:m,sqrDist:j,sqrLen:Z,squaredDistance:_,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:c,transformMat3:E,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:C,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,k,"jb",0,B,"lo",0,j,"uE",0,Z,"xg",0,F])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),o=n(71511),s=n(36563),i=n(53966),a=n(97768),h=n(17676),c=n(83027);class u{constructor(t,e,n,r,o={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(t,{...o,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{o.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new l(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const o=this._transferLists[t],s=o?o(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,h.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,h.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,h.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class l{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new o.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,o=n(32198),s=n(4576),i=n(4718),a=n(91429),h=n(5443),c=n(91075),u=n(86738),l=n(16930),f=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=l.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:o}=this;return new r({points:(0,i.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,o.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,o=n(32198),s=n(4718),i=n(91429),a=n(5443),h=n(91075),c=n(86738),u=n(16930),l=n(90634),f=n(56993),m=n(43937);let d=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,o=this.hasM;return r&&!o?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):o&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&o?new c.A(n[0],n[1],n[2],n[3],this.spatialReference):new c.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new c.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new c.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,o.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,o.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,o.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,o.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,o.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>i});var r=n(51850),o=n(99917),s=n(9762);function i(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);const i=(0,o.tryProject)(t,n,r);return!!i&&(e[0]=i.x,e[1]=i.y,e[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),o=n(16930),s=n(9762),i=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,s.projectBuffer)(t,e,0,n,o,0,1):(h.x=t[0],h.y=t[1],h.z=t[2],h.spatialReference=e,(0,i.g)(h,n,o)))}const h={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>h});var r=n(34275),o=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t,e){if(0===e.length)return i(t);if(0===t.length)return i(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function c(t){return[...t]}function u(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>c});var r,o=n(32198),s=n(69540),i=n(25482),a=n(91429),h=n(93223);let c=class extends((0,s.OU)(i.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,h.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,n){n.d(e,{A:()=>c});var r=n(32198),o=n(69540),s=n(25482),i=n(91429),a=n(51850),h=n(93223);let c=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,h.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function i(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":i(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>c,Bi:()=>a,Pv:()=>u,Rg:()=>i,U9:()=>o,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>h})},80754(t,e,n){n.d(e,{kS:()=>c,kd:()=>h});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,i.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,i.n1)(t)){const[n,r,o]=t.b;n[0]+=e,r[0]+=e,o[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>l,jZ:()=>u});var r=n(12195),o=n(19419),s=n(537),i=n(95108),a=n(60408),h=n(80754),c=n(21325);function u(t){return f(t,!0)}function l(t){return f(t,!1)}function f(t,e){if(null==t)return null;const n=t.spatialReference,o=(0,c.Vp)(n),i=(0,r.W)(t)?t.toJSON():t;if(!o)return i;const u=(0,c.K8)(n)?102100:4326,l=h.j7[u].maxX,f=h.j7[u].minX;if((0,a.fT)(i))return d(i,l,f);if((0,a.U9)(i))return i.points=i.points.map(t=>d(t,l,f)),i;if((0,a.ZC)(i))return m(i,o);if((0,a.Bi)(i)||(0,a.Rg)(i)){const t=(0,s.Rg)(b,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,h.kd)(n.xmin,f)*(2*l),o=0===r?i:(0,h.kS)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>l?M(o,l,e):n.xmin<f?M(o,f,e):o}return i}function m(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:o,xmin:s,xmax:i}=t,a=t.xmax-t.xmin,[h,c]=e.valid,{x:u,frameId:l}=p(t.xmin,e),{x:f,frameId:m}=p(t.xmax,e),d=u===f&&a>0;if(a>2*c){const t={xmin:s<i?u:f,ymin:r,xmax:c,ymax:o},e={xmin:h,ymin:r,xmax:s<i?f:u,ymax:o},a={xmin:0,ymin:r,xmax:c,ymax:o},d={xmin:h,ymin:r,xmax:0,ymax:o},p=[],g=[];y(t,a)&&p.push(l),y(t,d)&&g.push(l),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=l+1;t<m;t++)p.push(t),g.push(t);n.push(new _(t,[l]),new _(e,[m]),new _(a,p),new _(d,g))}else u>f||d?n.push(new _({xmin:u,ymin:r,xmax:c,ymax:o},[l]),new _({xmin:h,ymin:r,xmax:f,ymax:o},[m])):n.push(new _({xmin:u,ymin:r,xmax:f,ymax:o},[l]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,h.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,h.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t.x+=e*(-2*n)}}return t}function p(t,e){const[n,r]=e.valid,o=2*r;let s,i=0;return t>r?(s=Math.ceil(Math.abs(t-r)/o),t-=s*o,i=s):t<n&&(s=Math.ceil(Math.abs(t-n)/o),t+=s*o,i=-s),{x:t,frameId:i}}function y(t,e){const{xmin:n,ymin:r,xmax:o,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,o,s)&&g(t,o,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function M(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,i.m3)(t),n)return(new v).cut(t,e);const o=r?t.rings:t.paths,s=r?4:2,h=o.length,c=-2*e;for(let t=0;t<h;t++){const e=o[t];if(e&&e.length>=s){const t=[];for(const[n,...r]of e)t.push([n+c,...r]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class _{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,o.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],o=Math.min(t.length,e.length);for(let s=2;s<o;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>N,F8:()=>O,J2:()=>T,Yq:()=>C,_m:()=>E,iS:()=>I,wj:()=>P});var r=n(66552),o=n(73444),s=n(98623),i=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},l={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},M={...p,...y},_={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,...M},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,...M},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...g},"long-month-day-year-long-time":{...l,...p},"long-month-day-year-long-time-24":{...l,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...d},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...p},"day-short-month-year-long-time-24":{...f,...M},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},x=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),S=x.find(({type:t})=>"month"===t)?.value.toLowerCase();function A(){const t=(0,o.lR)();return(t&&v[t])??(0,o.QC)()}"mart"!==S&&(v.bs="sr-Latn-CS");let R=new WeakMap;const w=_["short-date-short-time"];function T(t){return _[t]}function E(t){const{dateStyle:e,timeStyle:n,hour12:r,year:o,month:s}=t,i={};return e?i.dateStyle=e:o&&(i.year=o,i.month=s||void 0),n&&!i.year&&(i.timeStyle=n,i.hour12="auto"===r?void 0:"always"===r),i}function C(t,e=w){return function(t){let e=R.get(t);if(!e){const n=A(),r=P(t.timeZone??"system"),o={...t,timeZone:r};e=new Intl.DateTimeFormat(n,o),R.set(t,e)}return e}(e).format(t)}function I(t,e=w){return C(new Date(t),{...e,...c,...h})}function O(t,e=w){return C(new Date(`1970-01-01T${t}Z`),{...e,...c,...a})}function N(t,e=w){const n=i.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return C(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,o={...e,timeZone:r};return n.toLocaleString(o,{locale:A()})}function P(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,o.Ml)(()=>{R=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>y,QC:()=>l,lR:()=>u,oQ:()=>d});var r=n(36563);let o;n(44208);const s=globalThis.esriConfig?.locale,i=globalThis.document?.documentElement;function a(){const t=i?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function h(){return void 0===o&&(o=a()),o}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=h()){return f(t)?.language}function l(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return c.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){const t=a();o!==t&&([...p].forEach(e=>e(t)),o=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),i&&new MutationObserver(()=>{g()}).observe(i,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>l,MU:()=>u,yf:()=>m});var r=n(35522),o=n(51850),s=n(10614),i=n(63907),a=n(74038);class h{constructor(t,e){this.data=t,this.indices=e}}class c{constructor(t,e,n,r,o){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=o}}function u(t,e,n,c,u){return!c||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,i){const a=new h(t.slice().buffer,e);if(!i)return a;const c=n[0].stride,u=a.data.byteLength/c;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(a.data),h=(0,o.vt)();for(let t=0;t<u;++t)(0,s.Tz)(h,n,t,c/2,e/2),(0,r.ei)(h,h,i),(0,s.aT)(n,t,h[0],h[1],h[2],c/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(a.data),s=(0,o.vt)();for(let t=0;t<u;++t){const o=(t*c+e)/4;s[0]=n[o],s[1]=n[o+1],s[2]=n[o+2],(0,r.ei)(s,s,i),n[o]=s[0],n[o+1]=s[1],n[o+2]=s[2]}}return a}(t,e,n,u):function(t,e,n,r){const o=n[0].stride,s=o/4,h=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/o,u=o+4;n.forEach(t=>t.stride=u),n.push(new a._("normalCompressed",2,i.pe.SHORT,o,u,!0));const m=l(e,h,s,r);return f(h,c,o,u,m)}(t,e,n,u)}function l(t,e,n,r){const o=t.length/3,s=e.length/n,{faceNormals:i,faceAreas:a,faceEdges:h,edgeFaces:c,vertexFaces:u,vertexFaceCountAndOffset:l}=function(t,e,n,r,o,s){const i=new Float32Array(3*o),a=new Float32Array(o),h=new Uint32Array(3*o),c=new Int32Array(3*o*2),u=3*o,l=new Uint32Array(u),f=new Uint32Array(2*n);for(let t=0;t<o;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<o;++t){const e=3*t;for(let n=0;n<3;++n)l[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let m=0;const d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){const r=Math.min(t,e),o=Math.max(t,e),s=t<e?0:1,i=2*r,a=p[i],h=p[i+1];let u=-1;for(let t=a;t<h;t+=2)if(d[t]===o){u=d[t+1];break}return-1===u&&(u=m++,d[h]=o,d[h+1]=u,p[i+1]=h+2,c[2*u+(1-s)]=-1),c[2*u+s]=n,u}for(let n=0;n<r.length;n+=3){const o=r[n],c=o*e,u=t[c],l=t[c+1],f=t[c+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],M=t[d+2],_=r[n+2],b=_*e,v=u-p,x=l-g,S=f-M,A=u-t[b],R=l-t[b+1],w=f-t[b+2],T=x*w-S*R,E=S*A-v*w,C=v*R-x*A,I=Math.sqrt(T*T+E*E+C*C)||1,O=n/3;a[O]=.5*I;const N=1/I;if(s){const t=s[0]*T+s[3]*E+s[6]*C,e=s[1]*T+s[4]*E+s[7]*C,n=s[2]*T+s[5]*E+s[8]*C;i[3*O]=t*N,i[3*O+1]=e*N,i[3*O+2]=n*N}else i[3*O]=T*N,i[3*O+1]=E*N,i[3*O+2]=C*N;const P=y(o,m,O),L=y(m,_,O),D=y(_,o,O);h[3*O]=P,h[3*O+1]=L,h[3*O+2]=D}return{faceNormals:i,faceAreas:a,faceEdges:h,vertexFaces:l,vertexFaceCountAndOffset:f,edgeFaces:c}}(e,n,s,t,o,r);return function(t,e,n,r,o,s){const i=new Uint8Array(e),a=new Uint32Array(e),h=new Uint32Array(3*e);let c=0;const u=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===i[t])continue;i[t]=1;const f=n[3*t],m=n[3*t+1],d=n[3*t+2];for(l=0,u[l++]=t,h[0]=o[3*t],h[1]=o[3*t+1],h[2]=o[3*t+2],c=3,a[t]=t+1;c>0;){const e=h[--c];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;const g=n[3*y],M=n[3*y+1],_=n[3*y+2];if(Math.abs(1-(f*g+m*M+d*_))<p){u[l++]=y,i[y]=1;for(let t=0;t<3;++t){const n=o[3*y+t];n!==e&&(h[c++]=n)}}}}if(l>1){let t=0,e=0,o=0,s=0;for(let i=0;i<l;++i){const a=u[i],h=r[a];t+=h,e+=n[3*a]*h,o+=n[3*a+1]*h,s+=n[3*a+2]*h}const i=Math.sqrt(e*e+o*o+s*s)||1;e/=i,o/=i,s/=i;for(let i=0;i<l;++i){const a=u[i];n[3*a]=e,n[3*a+1]=o,n[3*a+2]=s,r[a]=t}}}}(t,o,i,a,h,c),d(o,s,t,i,a,u,l)}function f(t,e,n,r,o){const s=n/4,i=r/4,a=o.outputVertexCount,c=new Float32Array(a*i),u=new Uint32Array(c.buffer),l=s,f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,o,s,i){for(let a=0;a<s;++a){const s=a*o,h=a*e;for(let e=0;e<o;++e)t[h+e]=r[s+e];t[h+n]=i[a]}}(u,i,l,f,s,e,o.packedNormals),m(u,i,l,f,s,e,a,o.appendedVertexToOriginal,o.packedNormals),new h(c.buffer,o.indices)}function m(t,e,n,r,o,s,i,a,h){for(let c=s;c<i;++c){const i=a[c-s]*o,u=c*e;for(let e=0;e<o;++e)t[u+e]=r[i+e];t[u+n]=h[c]}}function d(t,e,n,r,o,s,i){const a=3*t,h=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n);let u=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),f=new ArrayBuffer(4*a),m=new Int16Array(f),d=new Uint32Array(f);let p=0,g=0;const M=new Uint32Array(t);let _=0;const b=1-y;for(let t=0;t<e;++t){p=i[2*t+1],g=p+i[2*t];let n=t;for(;p<g;){{const t=s[--g],e=3*t,i=r[e],a=r[e+1],h=r[e+2];_=0,M[_++]=t;let c=p;for(;c<g;){const t=s[c],e=3*t;if(i*r[e]+a*r[e+1]+h*r[e+2]>b){M[_++]=t;const e=--g;if(c<e){s[c]=s[e];continue}}++c}let u=0,l=0,f=0;if(1===_)u=i,l=a,f=h;else{for(let t=0;t<_;++t){const e=M[t],n=o[e],s=3*e;u+=r[s]*n,l+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(u*u+l*l+f*f)||1;u/=t,l/=t,f/=t}{const t=1/(Math.abs(u)+Math.abs(l)+Math.abs(f)),e=u*t,r=l*t;let o=e,s=r;f<=0&&(o=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const i=2*n,a=Math.round(32767*o),h=Math.round(32767*s);m[i]=a<-32767?-32767:a>32767?32767:a,m[i+1]=h<-32767?-32767:h>32767?32767:h}}if(n!==t)for(let e=0;e<_;++e){const r=3*M[e];h[r]===t&&(h[r]=n),h[r+1]===t&&(h[r+1]=n),h[r+2]===t&&(h[r+2]=n)}if(p>=g)break;n=u++,l[n-e]=t}}return new c(h,d,l,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>A,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>_,filterObbsForModificationsSync:()=>I,initialize:()=>P,interpretObbModificationResults:()=>C,process:()=>g,project:()=>x,setLegacySchema:()=>v,setModifications:()=>b,setModificationsSync:()=>T,test:()=>D,transformNormals:()=>S});var r=n(34727),o=n(77690),s=n(29242),i=n(58083),a=n(9093),h=n(16930),c=n(4197),u=n(95696),l=n(18251),f=n(73354),m=n(2741);let d;var p=n(89606),y=n(98697);async function g(t){w=await L();const e=[t.geometryBuffer];return{result:E(w,t,e),transferList:e}}async function M(t){w=await L();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,o,r);s.set(new Uint8Array(n));const i=w.dracoDecompressPointCloudData(o,s.byteLength);if(w._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,h=i.positions.slice();return a&&e.push(a.buffer),e.push(h.buffer),{result:{positions:h,featureIds:a},transferList:e}}async function _(t){await L(),I(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function b(t){await L(),T(t)}async function v(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function x(t){const{localMatrix:e,origin:r,positions:o,vertexSpace:s}=t,i=h.A.fromJSON(t.inSpatialReference),a=h.A.fromJSON(t.outSpatialReference),f=e?(0,c.Vj)(e):void 0,m=(0,c.cj)(r);let d;const[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,99917))]);await y(i,a);const g=[0,0,0];if(!p(m,i,0,g,a,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(d=new Float64Array(o.length),!p(o,i,0,d,a,0,d.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?u.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:e}=await Promise.all([n.e(6860),n.e(4406)]).then(n.bind(n,74594)),r=e({vertexAttributes:{position:o},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:i},a);if(!r)throw new Error("Failed to project");d=r}const M=d.length,[_,b,v]=g;for(let t=0;t<M;t+=3)d[t]-=_,d[t+1]-=b,d[t+2]-=v;return{result:{projected:d,original:o,projectedOrigin:g},transferList:[d.buffer,o.buffer]}}async function S({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function A(t){O(t)}let R,w;function T(t){if(!w)return;const e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function E(t,e,n){const{context:r,globalTrafo:h,geometryElevationOffset:c,mbs:u,obbData:l,layouts:f,needNormals:m,computeNormals:d,elevationOffset:g,planetRadiusInGlobalMode:M,geometryBuffer:_,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(_.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,_.byteLength);T.set(new Uint8Array(_));const E=new Float64Array(t.HEAPU8.buffer,w,33);N(E,[NaN,NaN,NaN],0);let C=3;N(E,h,C),C+=16,N(E,u.center,C),C+=3,E[C++]=u.radius,l&&N(E,l,C++);const I={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:m&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!l,R,T.byteLength,b,I,w,g,x,S,A);if(t._free(w),t._free(R),O.error.length>0)throw new Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;const P=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,D=O.anchorIds.length>0?Array.from(O.anchorIds):null,B=O.anchors.length>0?Array.from(O.anchors):null,G=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=f[0].slice(),F=(0,o.z0)((0,s.vt)(),h),j=(0,p.MU)(O.interleavedVertedData,G,U,d&&!I.normal,F),k=O.positions.slice(),Z=function(t,e,n,r,o){const s=n?(0,a.o8)(n):(0,a.vt)();(0,i.lw)(s,e,s);const h=s[0],c=s[1],u=s[2],l=s[4],f=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],M=s[13],_=s[14];let b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],i=t[e+2],a=n*u+s*m+i*y+_;let x=0;if(r>0){const t=n*h+s*l+i*d+g,e=n*c+s*f+i*p+M;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=o,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(k,h,v?.geometries[0]?.transformation,M,c),{buffer:H,byteOffset:q,byteLength:z}=O.positionIndices,Y=1===O.positionIndicesType?new Uint16Array(H,q,z/2).slice():new Uint32Array(H,q,z/4).slice(),V=new y._b(U,j.data,j.indices,O.hasColors,O.hasModifications,{data:k,indices:Y});return L&&n.push(L.buffer),P&&n.push(P.buffer),n.push(j.data),n.push(j.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new y.sQ(P,L,D,B,V,h,O.obb,Z.minElevation,Z.maxElevation)}function C(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;const{context:e,buffer:n}=t,r=w._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,o),i=new Float64Array(n);s.set(i),w.filterOBBs(e,r,o),i.set(s),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,R=null,d=null)}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function P(){w||await L()}async function L(){return w||(w=await(R??=(d??=(async()=>{const t=await n.e(2980).then(n.bind(n,82980));return await t.default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})})(),d))),w}const D={transform:(t,e)=>w&&E(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{H1:()=>M,Ir:()=>p,_b:()=>l,sQ:()=>f});var r=n(53966),o=n(15142),s=n(51850),i=n(35982),a=n(39829),h=n(99917),c=n(27993),u=n(89056);class l{constructor(t,e,n,r,o,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=o,this.positionData=s}}class f{constructor(t,e,n,r,o,s,i,a,h){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=o,this.globalTrafo=s,this.obb=i,this.geometryMinElevation=a,this.geometryMaxElevation=h}}i.B;const m=new o.A({deallocator:null}),d=(0,s.vt)();function p(t,e,n,o=!1){m.clear();let s=1/0,i=1/0,c=-1/0,l=-1/0,f=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,d=t.geometry,p=d.spatialReference??n;if(p!==n&&!(0,h.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}let M=d.rings;if(p!==n){const t=y(d.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}M=t}const _=M;if(o){const t=(0,u.jZ)(new a.A({rings:M,spatialReference:n}));null!=t&&(M=t.rings)}const b=1===_.length&&M.length>1?[...M.map(t=>[t]),_]:[M];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!g(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:d});else{f||=1===e;for(const t of b){m.push(e),m.push(t.length);for(const e of t){m.push(e.length);for(const t of e){const e=t[2]??0;m.push(t[0]),m.push(t[1]),m.push(e),s=Math.min(s,t[0]),i=Math.min(i,t[1]),c=Math.max(c,t[0]),l=Math.max(l,t[1])}}}}}if(null!=t)if(f){const e=1e-4;m.push(2),m.push(2),m.push(4),m.push(s-e),m.push(i-e),m.push(0),m.push(c+e),m.push(i-e),m.push(0),m.push(c+e),m.push(l+e),m.push(0),m.push(s-e),m.push(l+e),m.push(0),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0);m.push(3);const d=new Float64Array(m.length);for(let t=0;t<m.length;++t)d[t]=m.at(t);return d}function y(t,e,n){const r=[];for(const o of t){const t=[];for(const r of o){if(!(0,c.F)(r,e,d,n)||!g(d))return null;t.push([d[0],d[1],d[2]])}r.push(t)}return r}function g(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(const r of e){const e=r.geometry,o=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==o&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const o=e.rings[r];n+=1;for(let s=0;s<o.length;++s){const o=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,o)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>i,aT:()=>s});var r=n(34727),o=n(35522);function s(t,e,n,r,o,s=2,i=0){const h=1/(Math.abs(n)+Math.abs(r)+Math.abs(o)),c=n*h,u=r*h,l=o<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,f=o<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,m=e*s+i;t[m]=a(l),t[m+1]=a(f)}function i(t,e,n,r=2,s=0){const i=n*r+s,a=h(e[i]),c=h(e[i+1]),u=1-Math.abs(a)-Math.abs(c);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=c),(0,o.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function h(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,o,s=!1,i=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=o,this.normalized=s,this.divisor=i,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},o={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(o),i={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,o,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,i,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);