@arcgis/core 4.30.0-next.20240210 → 4.30.0-next.20240213

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 (81) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +1 -0
  3. package/assets/esri/core/workers/chunks/0d54451c740f54a59f49.js +1 -0
  4. package/assets/esri/core/workers/chunks/{2b7513fe57eca6cff7c3.js → 0f30059c4e7a9cb85d1d.js} +1 -1
  5. package/assets/esri/core/workers/chunks/18551a7eb5a9b88aa0dc.js +1 -0
  6. package/assets/esri/core/workers/chunks/24d19abc680b341d13bb.js +1 -0
  7. package/assets/esri/core/workers/chunks/{3f4d63436c3de04a6ebb.js → 254b4ee3621bbe345bb1.js} +1 -1
  8. package/assets/esri/core/workers/chunks/2d682ee6e5d66f2ea5cd.js +1 -0
  9. package/assets/esri/core/workers/chunks/{d5484d470121de2b403b.js → 36d091be859bbb1a149b.js} +1 -1
  10. package/assets/esri/core/workers/chunks/50b41f91be903a0977f9.js +1 -0
  11. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +1 -0
  12. package/assets/esri/core/workers/chunks/784b6a8216b97440b180.js +1 -0
  13. package/assets/esri/core/workers/chunks/{7f7a4de2cd4ab71b9aee.js → 8d119dc0a92ad3612daa.js} +1 -1
  14. package/assets/esri/core/workers/chunks/966cc0b54008c7348678.js +1 -0
  15. package/assets/esri/core/workers/chunks/{2853221e88ed7077a447.js → 9850b0e04cce8c1bdddf.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{0014635097a32ad38895.js → a854611d1a86b838c6ad.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{cf6970b490b98aa0a117.js → be562536212360943388.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{50a5abd75fa7dbb571a5.js → ccd53b81c2688dd11584.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{b2b8e6a0b3f70ada2799.js → e4da908079417cc2f495.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{af0314c2b5b7dc4f5bbd.js → e6dbf0a7b7b1cf64f23f.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{eba72ff1726ff6998204.js → f03d62ab7806b68d0b62.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{5fcda75ed02b8aee3a3c.js → f89278782ddfb154aa9f.js} +1 -1
  23. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  24. package/geometry/Mesh.js +1 -1
  25. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  26. package/interfaces.d.ts +174 -16
  27. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  28. package/layers/SceneLayer.js +1 -1
  29. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  30. package/layers/support/PixelBlock.js +1 -1
  31. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  32. package/layers/support/rasterDatasets/MRFRaster.js +1 -1
  33. package/layers/support/rasterFormats/RasterCodec.js +1 -1
  34. package/layers/support/rasterFunctions/surfaceUtils.js +1 -1
  35. package/package.json +2 -2
  36. package/portal/support/resourceUtils.js +1 -1
  37. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  38. package/rest/support/meshFeatureSet.js +1 -1
  39. package/support/revision.js +1 -1
  40. package/symbols/cim/constants.js +1 -1
  41. package/symbols/support/previewSymbol2D.js +1 -1
  42. package/versionManagement/support/versionManagementUtils.js +1 -1
  43. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  44. package/views/2d/engine/webgl/collisions/CollisionGrid.js +1 -1
  45. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  46. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  47. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  48. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  49. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  50. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js +1 -1
  51. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  52. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  53. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  54. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  55. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  56. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  57. package/views/3d/interactive/editingTools/transformGraphic/ExtentScale.js +1 -1
  58. package/views/3d/interactive/editingTools/transformGraphic/extentUtils.js +1 -1
  59. package/views/3d/layers/I3SMeshView3D.js +1 -1
  60. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  61. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  62. package/views/SceneView.js +1 -1
  63. package/views/draw/DrawOperation.js +1 -1
  64. package/views/draw/support/Box.js +1 -1
  65. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  66. package/views/support/automaticLengthMeasurementUtils.js +1 -1
  67. package/views/support/extentUtils.js +5 -0
  68. package/widgets/BasemapLayerList.js +1 -1
  69. package/widgets/Editor/EditorViewModel.js +1 -1
  70. package/widgets/FeatureForm.js +1 -1
  71. package/widgets/LayerList.js +1 -1
  72. package/widgets/TableList.js +1 -1
  73. package/assets/esri/core/workers/chunks/062629a9b4695dea8bf8.js +0 -1
  74. package/assets/esri/core/workers/chunks/3401157faaa8619aaa47.js +0 -1
  75. package/assets/esri/core/workers/chunks/37803888bd9a537481a7.js +0 -1
  76. package/assets/esri/core/workers/chunks/560f677a356c7ebde5d3.js +0 -1
  77. package/assets/esri/core/workers/chunks/5bfc5ffad705aaaafcd4.js +0 -1
  78. package/assets/esri/core/workers/chunks/655f4560fb36a0d9ff0b.js +0 -1
  79. package/assets/esri/core/workers/chunks/b927b655e955abe00d48.js +0 -1
  80. package/assets/esri/core/workers/chunks/d2417d179d015f1193a1.js +0 -1
  81. package/assets/esri/core/workers/chunks/f75ec599f53c66cab194.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2664],{13452:(e,t,i)=>{i.d(t,{c:()=>c});var r=i(41948),o=i(3856),s=i(40504),n=i(94360),l=i(1580),d=(i(9456),i(66360),i(72052),i(9968)),a=i(12552),p=i(4736);let u=class extends((0,o.q)(s.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.QJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,d.G)(p.e,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r._)([(0,l.qq)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r._)([(0,a.c)("esri.TimeInterval")],u);const c=u},63564:(e,t,i)=>{i.d(t,{Mr:()=>n,cf:()=>s,g1:()=>o});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${o().toUpperCase()}}`}function n(){return`{${o()}}`}},13819:(e,t,i)=>{i.d(t,{c:()=>q});var r,o=i(41948),s=i(92400),n=i(14628),l=i(40504),d=i(24296),a=i(69504),p=i(1580),u=(i(9456),i(66360),i(33600)),c=i(12552),h=i(18996);const y=(0,n.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.sH)(m,"orthometric");const f=(0,n.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let v=r=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,d.oG)(e)||f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,d._2)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new a.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,p.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,o._)([(0,h.G)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o._)([(0,u.E)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o._)([(0,p.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,o._)([(0,u.E)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o._)([(0,u.E)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o._)([(0,p.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o._)([(0,c.c)("esri.geometry.HeightModelInfo")],v);const q=v},6576:(e,t,i)=>{i.d(t,{CE:()=>f,iC:()=>h,mK:()=>p});var r=i(41948),o=i(77860),s=i(62088),n=i(10860),l=(i(66360),i(9456),i(20744),i(12552)),d=i(73184);const a=new o.c.EventEmitter;function p(e,t,i=null,r=!1){const o=(0,n.qG)();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const u="esri.layers.mixins.EditBusLayer",c=Symbol(u);function h(e){return null!=e&&"object"==typeof e&&c in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const r=new URL(e).host,o=d.k5.get(r),s=e=>!e||e===o;return s(t)&&s(i)||t===i}const f=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:n}=e,l=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,p=y(this),u=y(this)&&m(t,r,this.gdbVersion);if(!l||p&&!u||!a&&!o)return;const c=n.then((e=>{if(a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.ct)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:i,updates:r,deletes:o}=t.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:i?i.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.ct)(e.historicMoment)};return this.emit("edits",n),n}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.ct)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,d.oK)(t,r)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,s=y(this),n=y(this)&&m(t,i,this.gdbVersion),l=y(this)&&!m(t,this.gdbVersion,null);o&&s&&n&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then((()=>{this.addHandles(function(e){return a.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return a.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=c,i=(0,r._)([(0,l.c)(u)],i),i}},36388:(e,t,i)=>{i.d(t,{S:()=>A});var r=i(41948),o=i(2952),s=i(62088),n=i(66360),l=i(1580),d=(i(9456),i(33600)),a=i(12552),p=i(18996),u=i(84108),c=i(95247),h=i(13819),y=i(56156),m=i(48212),f=i(21488),v=i(3856),g=i(40504),q=(i(72052),i(28484));let w=class extends((0,v.q)(g.am)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r._)([(0,l.qq)()],w.prototype,"creatorField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"creationDateField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"editorField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"editDateField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"realm",void 0),(0,r._)([(0,l.qq)((0,q.SM)("dateFieldsTimeReference",!0))],w.prototype,"timeZone",void 0),w=(0,r._)([(0,a.c)("esri.layers.support.EditFieldsInfo")],w);const _=w;let I=class extends((0,v.q)(g.am)){constructor(e){super(e)}};(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"name",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"fields",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"isAscending",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"indexType",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"isUnique",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"description",void 0),I=(0,r._)([(0,a.c)("esri.layers.support.FeatureIndex")],I);var F=i(70388),b=i(24296);let S=class extends((0,v.q)(g.am)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.qq)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.qq)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.qq)({type:String,json:{read:e=>b.iy.read(e)||b.gz.read(e)}})],S.prototype,"units",void 0),S=(0,r._)([(0,a.c)("esri.layers.support.GeometryFieldsInfo")],S);const E=S;var j=i(24144),T=i(14628);const x=new T.O({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),M=new T.O({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let U=class extends((0,v.q)(g.am)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r._)([(0,l.qq)({json:{read:x.read,write:x.write}})],U.prototype,"cardinality",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"composite",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"id",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"keyField",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"keyFieldInRelationshipTable",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"name",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"relatedTableId",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"relationshipTableId",void 0),(0,r._)([(0,l.qq)({json:{read:M.read,write:M.write}})],U.prototype,"role",void 0),U=(0,r._)([(0,a.c)("esri.layers.support.Relationship")],U);const O=U;var R=i(54712),D=i(89812);let k=class extends((0,v.q)(g.am)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,D.h4)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.qq)({type:Number,json:{write:!0}})],k.prototype,"code",void 0),(0,r._)([(0,l.qq)({type:Object,json:{write:!0}})],k.prototype,"defaultValues",void 0),(0,r._)([(0,l.qq)({json:{write:!0}})],k.prototype,"domains",void 0),(0,r._)([(0,d.E)("domains")],k.prototype,"readDomains",null),(0,r._)([(0,p.G)("domains")],k.prototype,"writeDomains",null),(0,r._)([(0,l.qq)({type:String,json:{write:!0}})],k.prototype,"name",void 0),k=(0,r._)([(0,a.c)("esri.layers.support.Subtype")],k);const C=k,A=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.c.ofType(I)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=y.c.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}return this.userHasUpdateItemPrivileges?(0,F.gx)(this)?"load":this.hasUpdateItemRestrictions?e.operations.supportsQuery?"editing":"load":null:this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions?"editing":null}readCapabilitiesFromService(e,t){return(0,R.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,s.ct)(e),{operations:i,editing:r}=t;return this.sourceJSON?.isMultiServicesView?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,F.Y9)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||this.sourceJSON?.isMultiServicesView)return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return this.sourceJSON?.isMultiServicesView?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,F.qY)(t)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}set url(e){const t=(0,m._2)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:n.c.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,r){(0,m.wn)(this,e,null,t,r)}readVersion(e,t){return(0,F.Ce)(t)}};return(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.qq)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.qq)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,d.E)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.qq)((0,q.SM)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,r._)([(0,l.qq)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.qq)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.qq)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.qq)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,d.E)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.qq)((()=>{const e=(0,s.ct)(f.Kg),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],t.prototype,"elevationInfo",void 0),(0,r._)([(0,l.qq)({type:j.c,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.T}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.qq)({type:c.c,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.qq)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.qq)({readOnly:!0,type:E,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.qq)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:F.sD.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.qq)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,d.E)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.qq)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.qq)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.qq)({readOnly:!0,type:h.c})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.qq)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.qq)({type:o.c.ofType(I),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,d.E)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.qq)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.qq)(f.ED)],t.prototype,"maxScale",void 0),(0,r._)([(0,d.E)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.qq)(f.Og)],t.prototype,"minScale",void 0),(0,r._)([(0,d.E)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.qq)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,d.E)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.qq)((0,q.SM)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,r._)([(0,l.qq)({type:[O],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.qq)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.qq)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.qq)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,d.E)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.qq)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.qq)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.qq)({type:y.c,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.qq)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.qq)({type:[C],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.qq)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.qq)(f.qW)],t.prototype,"url",null),(0,r._)([(0,p.G)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.qq)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,d.E)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,a.c)("esri.layers.mixins.FeatureLayerBase")],t),t}},19560:(e,t,i)=>{i.d(t,{u:()=>c});var r=i(41948),o=i(25228),s=i(13452),n=i(1580),l=(i(9456),i(66360),i(72052),i(33600)),d=i(12552),a=i(564),p=i(99336),u=i(4736);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=u.e.fromJSON(i.timeOffsetUnits);return r&&o?new s.c({value:r,unit:o}):null}set timeInfo(e){(0,a.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,n.qq)({type:o.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,n.qq)({type:s.c})],t.prototype,"timeOffset",void 0),(0,r._)([(0,l.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,n.qq)({value:null,type:p.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,n.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,d.c)("esri.layers.mixins.TemporalLayer")],t),t}},99336:(e,t,i)=>{i.d(t,{c:()=>m});var r=i(41948),o=i(25228),s=i(13452),n=i(3856),l=i(40504),d=i(1580),a=(i(9456),i(66360),i(72052),i(33600)),p=i(12552),u=i(18996),c=i(28484);function h(e,t){return s.c.fromJSON({value:e,unit:t})}let y=class extends((0,n.q)(l.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new o.c({start:i,end:r})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,d.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,d.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,d.qq)({type:o.c,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,a.E)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.G)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,d.qq)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,d.qq)({type:s.c,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,a.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,u.G)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,d.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,d.qq)((0,c.SM)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,r._)([(0,d.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,d.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,r._)([(0,p.c)("esri.layers.support.TimeInfo")],y);const m=y},98984:(e,t,i)=>{i.d(t,{o:()=>s});var r=i(48212);const o=[];function s(e,t){if((0,r.Wq)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),o.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),o.push([10.61,()=>new Set([102497])]),o.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}])},4736:(e,t,i)=>{i.d(t,{e:()=>r});const r=(0,i(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73184:(e,t,i)=>{i.d(t,{aG:()=>r,eY:()=>n,k5:()=>o,oK:()=>l});const r=(0,i(63564).Mr)(),o=new Map,s=new Map;async function n(e,t,o=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(n)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&o){const[{deleteForwardEdits:t},{default:o}]=await Promise.all([i.e(772).then(i.bind(i,70772)),i.e(2460).then(i.bind(i,22460))]);return t(n,e,new o({sessionId:r,moment:s.moment}))}return t}return!0}function l(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=s.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2664],{13452:(e,t,i)=>{i.d(t,{c:()=>c});var r=i(41948),o=i(3856),s=i(40504),n=i(94360),l=i(1580),d=(i(9456),i(66360),i(72052),i(9968)),a=i(12552),p=i(4736);let u=class extends((0,o.q)(s.am)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,n.QJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,d.G)(p.e,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r._)([(0,l.qq)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r._)([(0,a.c)("esri.TimeInterval")],u);const c=u},63564:(e,t,i)=>{i.d(t,{Mr:()=>n,cf:()=>s,g1:()=>o});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${o().toUpperCase()}}`}function n(){return`{${o()}}`}},13819:(e,t,i)=>{i.d(t,{c:()=>q});var r,o=i(41948),s=i(92400),n=i(14628),l=i(40504),d=i(24296),a=i(69504),p=i(1580),u=(i(9456),i(66360),i(33600)),c=i(12552),h=i(18996);const y=(0,n.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.sH)(m,"orthometric");const f=(0,n.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let v=r=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,d.oG)(e)||f.read(e)||(i?.messages&&i.messages.push(g(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,d._2)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new a.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,p.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],v.prototype,"heightModel",void 0),(0,o._)([(0,h.G)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o._)([(0,u.E)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o._)([(0,p.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],v.prototype,"heightUnit",void 0),(0,o._)([(0,u.E)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o._)([(0,u.E)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o._)([(0,p.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o._)([(0,u.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o._)([(0,c.c)("esri.geometry.HeightModelInfo")],v);const q=v},6576:(e,t,i)=>{i.d(t,{CE:()=>f,iC:()=>h,mK:()=>p});var r=i(41948),o=i(77860),s=i(62088),n=i(10860),l=(i(66360),i(9456),i(20744),i(12552)),d=i(73184);const a=new o.c.EventEmitter;function p(e,t,i=null,r=!1){const o=(0,n.qG)();return r=null==t||r,a.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const u="esri.layers.mixins.EditBusLayer",c=Symbol(u);function h(e){return null!=e&&"object"==typeof e&&c in e}function y(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,i){const r=new URL(e).host,o=d.k5.get(r),s=e=>!e||e===o;return s(t)&&s(i)||t===i}const f=e=>{var t;let i=class extends e{constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:n}=e,l=t===this.url,a=null!=i&&null!=this.layerId&&i===this.layerId,p=y(this),u=y(this)&&m(t,r,this.gdbVersion);if(!l||p&&!u||!a&&!o)return;const c=n.then((e=>{if(a&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.ct)(e)),e;const t=e.editedFeatures?.find((({layerId:e})=>e===this.layerId));if(t){const{adds:i,updates:r,deletes:o}=t.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:i?i.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],deletedFeatures:o?o.map((({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],updatedFeatures:r?r.map((({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]}))):[],editedFeatures:(0,s.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.ct)(e.historicMoment)};return this.emit("edits",n),n}return{edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.ct)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.ct)(e.historicMoment)}})).then((e=>("historicMoment"in this&&this.historicMoment!==e.historicMoment&&(0,d.oK)(t,r)&&(this.historicMoment=e.historicMoment),e)));this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,s=y(this),n=y(this)&&m(t,i,this.gdbVersion),l=y(this)&&!m(t,this.gdbVersion,null);o&&s&&n&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then((()=>{this.addHandles(function(e){return a.on("apply-edits",new WeakRef(e))}(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(function(e){return a.on("update-moment",new WeakRef(e))}(this._updateMomentHandler))}),(()=>{}))}};return t=c,i=(0,r._)([(0,l.c)(u)],i),i}},36388:(e,t,i)=>{i.d(t,{S:()=>A});var r=i(41948),o=i(2952),s=i(62088),n=i(66360),l=i(1580),d=(i(9456),i(33600)),a=i(12552),p=i(18996),u=i(84108),c=i(95247),h=i(13819),y=i(56156),m=i(48212),f=i(21488),v=i(3856),g=i(40504),q=(i(72052),i(28484));let w=class extends((0,v.q)(g.am)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r._)([(0,l.qq)()],w.prototype,"creatorField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"creationDateField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"editorField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"editDateField",void 0),(0,r._)([(0,l.qq)()],w.prototype,"realm",void 0),(0,r._)([(0,l.qq)((0,q.SM)("dateFieldsTimeReference",!0))],w.prototype,"timeZone",void 0),w=(0,r._)([(0,a.c)("esri.layers.support.EditFieldsInfo")],w);const _=w;let I=class extends((0,v.q)(g.am)){constructor(e){super(e)}};(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"name",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"fields",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"isAscending",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"indexType",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"isUnique",void 0),(0,r._)([(0,l.qq)({constructOnly:!0,json:{write:!0}})],I.prototype,"description",void 0),I=(0,r._)([(0,a.c)("esri.layers.support.FeatureIndex")],I);var F=i(70388),b=i(24296);let S=class extends((0,v.q)(g.am)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r._)([(0,l.qq)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],S.prototype,"shapeAreaField",void 0),(0,r._)([(0,l.qq)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],S.prototype,"shapeLengthField",void 0),(0,r._)([(0,l.qq)({type:String,json:{read:e=>b.iy.read(e)||b.gz.read(e)}})],S.prototype,"units",void 0),S=(0,r._)([(0,a.c)("esri.layers.support.GeometryFieldsInfo")],S);const j=S;var E=i(24144),T=i(14628);const x=new T.O({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),M=new T.O({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let U=class extends((0,v.q)(g.am)){constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r._)([(0,l.qq)({json:{read:x.read,write:x.write}})],U.prototype,"cardinality",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"composite",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"id",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"keyField",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"keyFieldInRelationshipTable",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"name",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"relatedTableId",void 0),(0,r._)([(0,l.qq)({json:{read:!0,write:!0}})],U.prototype,"relationshipTableId",void 0),(0,r._)([(0,l.qq)({json:{read:M.read,write:M.write}})],U.prototype,"role",void 0),U=(0,r._)([(0,a.c)("esri.layers.support.Relationship")],U);const O=U;var R=i(54712),D=i(89812);let k=class extends((0,v.q)(g.am)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,D.h4)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,l.qq)({type:Number,json:{write:!0}})],k.prototype,"code",void 0),(0,r._)([(0,l.qq)({type:Object,json:{write:!0}})],k.prototype,"defaultValues",void 0),(0,r._)([(0,l.qq)({json:{write:!0}})],k.prototype,"domains",void 0),(0,r._)([(0,d.E)("domains")],k.prototype,"readDomains",null),(0,r._)([(0,p.G)("domains")],k.prototype,"writeDomains",null),(0,r._)([(0,l.qq)({type:String,json:{write:!0}})],k.prototype,"name",void 0),k=(0,r._)([(0,a.c)("esri.layers.support.Subtype")],k);const C=k,A=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.c.ofType(I)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=y.c.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.version=void 0}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}return this.userHasUpdateItemPrivileges?(0,F.gx)(this)?"load":this.hasUpdateItemRestrictions?e.operations.supportsQuery?"editing":"load":null:this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions?"editing":null}readCapabilitiesFromService(e,t){return(0,R.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,s.ct)(e),{operations:i,editing:r}=t;return this.sourceJSON?.isMultiServicesView?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}readGlobalIdFieldFromService(e,t){return(0,F.Y9)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||this.sourceJSON?.isMultiServicesView)return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return this.sourceJSON?.isMultiServicesView?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,F.qY)(t)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}set url(e){const t=(0,m._2)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:n.c.getLogger(this)});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,i,r){(0,m.wn)(this,e,null,t,r)}readVersion(e,t){return(0,F.Ce)(t)}};return(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"authenticationTriggerEvent",null),(0,r._)([(0,l.qq)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],t.prototype,"copyright",void 0),(0,r._)([(0,l.qq)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],t.prototype,"capabilities",void 0),(0,r._)([(0,d.E)("service","capabilities")],t.prototype,"readCapabilitiesFromService",null),(0,r._)([(0,l.qq)((0,q.SM)("dateFieldsTimeReference"))],t.prototype,"dateFieldsTimeZone",void 0),(0,r._)([(0,l.qq)({type:Boolean})],t.prototype,"datesInUnknownTimezone",void 0),(0,r._)([(0,l.qq)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,l.qq)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],t.prototype,"displayField",void 0),(0,r._)([(0,l.qq)({readOnly:!0,type:_})],t.prototype,"editFieldsInfo",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"editingInfo",void 0),(0,r._)([(0,d.E)("editingInfo")],t.prototype,"readEditingInfo",null),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"effectiveCapabilities",null),(0,r._)([(0,l.qq)((()=>{const e=(0,s.ct)(f.Kg),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],t.prototype,"elevationInfo",void 0),(0,r._)([(0,l.qq)({type:E.c,json:{name:"layerDefinition.floorInfo",write:!0,origins:{"web-scene":{name:"layerDefinition.floorInfo",write:{enabled:!0,layerContainerTypes:u.T}}}}})],t.prototype,"floorInfo",void 0),(0,r._)([(0,l.qq)({type:c.c,json:{origins:{service:{read:{source:"extent"}}}}})],t.prototype,"fullExtent",void 0),(0,r._)([(0,l.qq)()],t.prototype,"gdbVersion",void 0),(0,r._)([(0,l.qq)({readOnly:!0,type:j,json:{read:{source:"geometryProperties"}}})],t.prototype,"geometryFieldsInfo",void 0),(0,r._)([(0,l.qq)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:F.sD.read}}}})],t.prototype,"geometryType",void 0),(0,r._)([(0,l.qq)({type:String})],t.prototype,"globalIdField",void 0),(0,r._)([(0,d.E)("service","globalIdField",["globalIdField","fields"])],t.prototype,"readGlobalIdFieldFromService",null),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"hasFullEditingRestrictions",null),(0,r._)([(0,l.qq)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasM",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"hasUpdateItemRestrictions",null),(0,r._)([(0,l.qq)({type:Boolean,json:{origins:{service:{read:!0}}}})],t.prototype,"hasZ",void 0),(0,r._)([(0,l.qq)({readOnly:!0,type:h.c})],t.prototype,"heightModelInfo",void 0),(0,r._)([(0,l.qq)({type:Date})],t.prototype,"historicMoment",void 0),(0,r._)([(0,l.qq)({type:o.c.ofType(I),readOnly:!0})],t.prototype,"indexes",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"isTable",void 0),(0,r._)([(0,d.E)("service","isTable",["type"])],t.prototype,"readIsTableFromService",null),(0,r._)([(0,l.qq)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],t.prototype,"layerId",void 0),(0,r._)([(0,l.qq)(f.ED)],t.prototype,"maxScale",void 0),(0,r._)([(0,d.E)("service","maxScale",["maxScale","effectiveMaxScale"])],t.prototype,"readMaxScale",null),(0,r._)([(0,l.qq)(f.Og)],t.prototype,"minScale",void 0),(0,r._)([(0,d.E)("service","minScale",["minScale","effectiveMinScale"])],t.prototype,"readMinScale",null),(0,r._)([(0,l.qq)({type:String})],t.prototype,"objectIdField",void 0),(0,r._)([(0,d.E)("service","objectIdField",["objectIdField","fields"])],t.prototype,"readObjectIdFieldFromService",null),(0,r._)([(0,l.qq)((0,q.SM)("preferredTimeReference"))],t.prototype,"preferredTimeZone",void 0),(0,r._)([(0,l.qq)({type:[O],readOnly:!0})],t.prototype,"relationships",void 0),(0,r._)([(0,l.qq)({type:Boolean})],t.prototype,"returnM",void 0),(0,r._)([(0,l.qq)({type:Boolean})],t.prototype,"returnZ",void 0),(0,r._)([(0,l.qq)({readOnly:!0,json:{write:!1}})],t.prototype,"serverGens",void 0),(0,r._)([(0,l.qq)({readOnly:!0})],t.prototype,"serviceDefinitionExpression",void 0),(0,r._)([(0,d.E)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],t.prototype,"readServiceDefinitionExpression",null),(0,r._)([(0,l.qq)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"serviceItemId",void 0),(0,r._)([(0,l.qq)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,l.qq)({type:y.c,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],t.prototype,"spatialReference",void 0),(0,r._)([(0,l.qq)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],t.prototype,"subtypeField",void 0),(0,r._)([(0,l.qq)({type:[C],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],t.prototype,"subtypes",void 0),(0,r._)([(0,l.qq)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],t.prototype,"trackIdField",void 0),(0,r._)([(0,l.qq)(f.qW)],t.prototype,"url",null),(0,r._)([(0,p.G)("url")],t.prototype,"writeUrl",null),(0,r._)([(0,l.qq)({json:{origins:{service:{read:!0}},read:!1}})],t.prototype,"version",void 0),(0,r._)([(0,d.E)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],t.prototype,"readVersion",null),t=(0,r._)([(0,a.c)("esri.layers.mixins.FeatureLayerBase")],t),t}},19560:(e,t,i)=>{i.d(t,{u:()=>c});var r=i(41948),o=i(25228),s=i(13452),n=i(1580),l=(i(9456),i(66360),i(72052),i(33600)),d=i(12552),a=i(564),p=i(99336),u=i(4736);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=u.e.fromJSON(i.timeOffsetUnits);return r&&o?new s.c({value:r,unit:o}):null}set timeInfo(e){(0,a.Wc)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,n.qq)({type:o.c,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,n.qq)({type:s.c})],t.prototype,"timeOffset",void 0),(0,r._)([(0,l.E)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,n.qq)({value:null,type:p.c,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,n.qq)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,d.c)("esri.layers.mixins.TemporalLayer")],t),t}},99336:(e,t,i)=>{i.d(t,{c:()=>m});var r=i(41948),o=i(25228),s=i(13452),n=i(3856),l=i(40504),d=i(1580),a=(i(9456),i(66360),i(72052),i(33600)),p=i(12552),u=i(18996),c=i(28484);function h(e,t){return s.c.fromJSON({value:e,unit:t})}let y=class extends((0,n.q)(l.am)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new o.c({start:i,end:r})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,d.qq)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,r._)([(0,d.qq)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,r._)([(0,d.qq)({type:o.c,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,r._)([(0,a.E)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,r._)([(0,u.G)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,r._)([(0,d.qq)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,r._)([(0,d.qq)({type:s.c,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,r._)([(0,a.E)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,r._)([(0,u.G)("interval")],y.prototype,"writeInterval",null),(0,r._)([(0,d.qq)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,r._)([(0,d.qq)((0,c.SM)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,r._)([(0,d.qq)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,r._)([(0,d.qq)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,r._)([(0,p.c)("esri.layers.support.TimeInfo")],y);const m=y},98984:(e,t,i)=>{i.d(t,{o:()=>s});var r=i(48212);const o=[];function s(e,t){if((0,r.Wq)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}]),o.push([10.7,()=>{const e=new Set([8387,8391,8427,8545,8682,8685,8818,31370,104022,104024,104975]);for(let t=8065;t<=8068;t++)e.add(t);for(let t=8082;t<=8083;t++)e.add(t);for(let t=8379;t<=8385;t++)e.add(t);for(let t=8836;t<=8840;t++)e.add(t);for(let t=8857;t<=8860;t++)e.add(t);for(let t=53035;t<=53037;t++)e.add(t);for(let t=54090;t<=54091;t++)e.add(t);for(let t=102498;t<=102499;t++)e.add(t);return e}]),o.push([10.61,()=>new Set([102497])]),o.push([10.6,()=>{const e=new Set([7803,7805,7887,8086,8232,8237,8240,8246,8249,8252,8255,9019,9391]);for(let t=7755;t<=7787;t++)e.add(t);for(let t=7791;t<=7795;t++)e.add(t);for(let t=7799;t<=7801;t++)e.add(t);for(let t=7825;t<=7831;t++)e.add(t);for(let t=7877;t<=7878;t++)e.add(t);for(let t=7882;t<=7883;t++)e.add(t);for(let t=7991;t<=7992;t++)e.add(t);for(let t=8042;t<=8043;t++)e.add(t);for(let t=8058;t<=8059;t++)e.add(t);for(let t=8311;t<=8348;t++)e.add(t);for(let t=9060;t<=9067;t++)e.add(t);for(let t=102562;t<=102568;t++)e.add(t);for(let t=102799;t<=102900;t++)e.add(t);return e}])},4736:(e,t,i)=>{i.d(t,{e:()=>r});const r=(0,i(14628).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73184:(e,t,i)=>{i.d(t,{aG:()=>o,eY:()=>d,k5:()=>s,oK:()=>a,sy:()=>l});var r=i(2600);const o=(0,i(63564).Mr)(),s=new Map,n=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let n=s.get(o);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,r.c)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function d(e,t,r=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=n.get(s)?.entries();if(l)for(const[e,n]of l)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(772).then(i.bind(i,70772)),i.e(2460).then(i.bind(i,22460))]);return t(s,e,new r({sessionId:o,moment:n.moment}))}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=n.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5468],{34888:(e,t,r)=>{r.d(t,{ED:()=>o,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},97088:(e,t,r)=>{r.d(t,{C:()=>E,C_:()=>re,G0:()=>z,GE:()=>Z,Ij:()=>ne,M$:()=>D,Oo:()=>ie,Sk:()=>oe,Uh:()=>V,WY:()=>H,Y5:()=>j,a:()=>x,i:()=>R,i6:()=>B,iC:()=>K,m:()=>W,od:()=>U,qw:()=>Q,ui:()=>J,w3:()=>$,ye:()=>A});var n=r(20744),o=r(66360),s=r(70680),i=r(77048),a=r(83372),u=r(6704),c=r(34888),l=r(90412),h=r(85152);function d(e,t){return e?t?4:3:t?3:2}const f=()=>o.c.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s},p=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2]},g=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+3]},_=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:p;if(t&&n)return g}else if(t&&n)return p;return y}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function I({scale:e,translate:t},r,n){return r*e[n]+t[n]}function x(e,t,r){return e?t?r?q(e):M(e):r?C(e):G(e):null}function G(e){const t=e.coords;return{x:t[0],y:t[1]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function C(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function q(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?T:P}function D(e,t,r=N(null!=t.z,null!=t.m)){return r(e,t)}function R(e,t,r){if(null==e)return null;const n=d(t,r),o=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let o=0;o<n;o++)r.push(e.coords[t+o]);o.push(r)}return t?r?{points:o,hasZ:t,hasM:r}:{points:o,hasZ:t}:r?{points:o,hasM:r}:{points:o}}function O(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let o=0;for(const e of t.points)for(let t=0;t<r;t++)n[o++]=e[t];return e}function Z(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function k(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)o[s++]=t[e];n.push(e.length)}return e}function j(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function V(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const o=d(r,n),{lengths:s,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[a++]=t[e];s.push(e.length)}return e}(e,t.rings,r,n)}const Y=[],L=[];function A(e,t,r,n,o){Y[0]=e;const[s]=U(L,Y,t,r,n,o);return ue(Y),ue(L),s}function U(e,t,r,o,s,i){if(ue(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new c._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,o){const s=N(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?s(new h.c,r):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryMultipoint":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?O(new h.c,r,s):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolyline":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?k(new h.c,r,s):null,a=null!=i?D(new h.c,i):null;e.push(new c._M(t,n,a,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolygon":return function(e,t,r,n,o){for(const{geometry:s,centroid:i,attributes:a}of t){const t=null!=s?V(new h.c,s,r,n):null,u=o?a[o]:void 0;null!=i?e.push(new c._M(t,a,P(new h.c,i),u)):e.push(new c._M(t,a,null,u))}return e}(e,t,o,s,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),ue(e)}return e}function z(e,t,r,n){L[0]=e,X(Y,L,t,r,n);const o=Y[0];return ue(Y),ue(L),o}function E(e,t,r){if(null==e)return null;const o=new h.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,u._x)(e)?N(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(o,e):(0,u.Cs)(e)?V(o,e,t,r):(0,u.cZ)(e)?k(o,e,d(t,r)):(0,u._)(e)?O(o,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function Q(e,t,r,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=G;return r&&o?e=q:r?e=M:o&&(e=C),e(s)}case"esriGeometryMultipoint":return R(s,r,o);case"esriGeometryPolyline":return Z(s,r,o);case"esriGeometryPolygon":return j(s,r,o);default:return f().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function X(e,t,r,o,s){if(ue(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let o=G;r&&n?o=q:r?o=M:n&&(o=C);for(const r of t){const{geometry:t,attributes:n}=r,s=null!=t?o(t):null;e.push({attributes:n,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?R(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?Z(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:o,attributes:s,centroid:i}of t){const t=null!=o?j(o,r,n):null;if(null!=i){const r=G(i);e.push({attributes:s,centroid:r,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:o,hasM:s,hasZ:i,features:a,geometryType:u,exceededTransferLimit:c,uniqueIdField:l,queryGeometry:h,queryGeometryType:d}=e,f={features:X([],a,u,i,s),fields:o,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:l,queryGeometry:Q(h,d,!1,!1)};return n&&(f.transform=n),c&&(f.exceededTransferLimit=c),s&&(f.hasM=s),i&&(f.hasZ=i),f}function J(e,t){const r=new l.c,{hasM:o,hasZ:s,features:i,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=c??null,r.objectIdFieldName=a??t??null,r.spatialReference=u??null,r.objectIdFieldName?(i&&U(r.features,i,c,s,o,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),o&&(r.hasM=o),s&&(r.hasZ=s),d&&(r.transform=d),r):(f().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:o}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,o,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,o,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:n,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.c,K(a.geometry,i.geometry,o,s,r,e),i.centroid&&(a.centroid=new h.c,K(a.centroid,i.centroid,o,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function K(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,w(s,c[0]),F(s,c[1])),ae(e,h,0),e;let p,g,_,I,x=0,G=0,P=G;for(const t of l){if(t<u)continue;let r=0;G=P,_=p=w(s,c[x]),I=g=F(s,c[x+1]),y(e.coords,c,G,x,_,I),r++,x+=h,G+=f;for(let n=1;n<t;n++,x+=h)_=w(s,c[x]),I=F(s,c[x+1]),_===p&&I===g||(y(e.coords,c,G,x,_-p,I-g),G+=f,r++,p=_,g=I);r>=u&&(e.lengths.push(r),P=G)}return ue(e.coords,P),e.coords.length?e:null}function H(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,c[0],c[1]),ae(e,h,0),e;let p=0;const g=s*s;for(const t of l){if(t<u){p+=t*h;continue}const r=e.coords.length/f,n=p,o=p+(t-1)*h;y(e.coords,c,e.coords.length,n,c[n],c[n+1]),te(e.coords,c,h,g,y,n,o),y(e.coords,c,e.coords.length,o,c[o],c[o+1]);const s=e.coords.length/f-r;s>=u?e.lengths.push(s):ue(e.coords,r*f),p+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const o=e[t],s=e[t+1],i=e[r],a=e[r+1],u=e[n],c=e[n+1];let l=i,h=a,d=u-l,f=c-h;if(0!==d||0!==f){const e=((o-l)*d+(s-h)*f)/(d*d+f*f);e>1?(l=u,h=c):e>0&&(l+=d*e,h+=f*e)}return d=o-l,f=s-h,d*d+f*f}function te(e,t,r,n,o,s,i){let a,u=n,c=0;for(let e=s+r;e<i;e+=r)a=ee(t,e,s,i),a>u&&(c=e,u=a);u>n&&(c-s>r&&te(e,t,r,n,o,s,c),o(e,t,e.length,c,t[c],t[c+1]),i-c>r&&te(e,t,r,n,o,c,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const o=d(r,n);let s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const r=e[t],n=e[t+1];s=Math.min(s,r),c=Math.max(c,r),u=Math.min(u,n),l=Math.max(l,n)}}return(0,i.is)(e)?(0,i.qy)(e,s,u,c,l):(0,a.WK)(s,u,c,l,e),e}function ne(e,t,r,n,o){const{coords:i,lengths:a}=t,u=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,s.EN)(o);const{originPosition:c,scale:l,translate:h}=o,f=ce;f.originPosition=c;const m=f.scale;m[0]=l[0]??1,m[1]=-(l[1]??1),m[2]=l[2]??1,m[3]=l[3]??1;const y=f.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<u;++t)e.coords[t]=I(f,i[t],t);return e!==t&&ae(e,u,0),e}let p=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<u;++t)e.coords[p+t]=I(f,i[p+t],t);let n=e.coords[p],o=e.coords[p+1];p+=u;for(let t=1;t<r;t++,p+=u){n+=i[p]*m[0],o+=i[p+1]*m[1],e.coords[p]=n,e.coords[p+1]=o;for(let t=2;t<u;++t)e.coords[p+t]=I(f,i[p+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function oe(e,t,r,n,o,s){if(ae(e),e.lengths.push(...t.lengths),r===o&&n===s)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,o,s),u=t.coords;for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1])}return e}function se(e,t,r,n){let o=0,s=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],u=i+e[n*(t+a)+1],c=(r-s)*(u+i);s=r,i=u,o+=c}return.5*o}function ie(e,t){const{coords:r,lengths:n}=e;let o=0,s=0;for(let e=0;e<n.length;e++){const i=n[e];s+=se(r,o,i,t),o+=i}return Math.abs(s)}function ae(e,t=0,r=0){ue(e.lengths,r),ue(e.coords,t)}function ue(e,t=0){e.length!==t&&(e.length=t)}const ce={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},95468:(e,t,r)=>{r.d(t,{c:()=>x});var n=r(41948),o=r(43780),s=r(20744),i=r(9456),a=r(10860),u=r(28176),c=r(1580),l=(r(66360),r(72052),r(12552)),h=r(4048),d=r(88204),f=r(21980),m=r(46788),y=(r(60708),r(32848)),p=r(95776),g=r(95247),_=r(819),b=r(99944),w=r(49132),F=r(59500);let I=class extends o.c{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.as)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),n=null!=e.outStatistics?.[0],o=(0,i.c)("featurelayer-pbf-statistics"),s=!n||o;let a;if(this.pbfSupported&&s)try{a=await(0,w.S)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&s||(a=await(0,b.E)(this.url,r,t)),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,n){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return F.c.fromJSON(t);const{meshFeatureSetFromJSON:o}=await(0,a.Yv)(Promise.all([r.e(3180),r.e(9904),r.e(4716),r.e(456)]).then(r.bind(r,12784)),n);return o(e,this.infoFor3D,t)}executeForCount(e,t){return(0,m._)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const n=(0,f.UX)(e),o=await(0,y.A7)(n,p.c.from(t),{...r}),s=o.data.extent;return!s||isNaN(s.xmin)||isNaN(s.ymin)||isNaN(s.xmax)||isNaN(s.ymax)?{count:o.data.count,extent:null}:{count:o.data.count,extent:g.c.fromJSON(s)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,_.g)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:n},{executeRelationshipQuery:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:n},{executeRelationshipQueryForCount:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:n,fetchAttachments:o,processAttachmentQueryResult:s}=await(0,a.Yv)(r.e(2024).then(r.bind(r,82024)),t),i=(0,f.UX)(this.url);return s(i,await(this.queryAttachmentsSupported?n(i,e,t):o(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:n}=await(0,a.Yv)(r.e(3395).then(r.bind(r,93395)),t);return n(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:n}=await(0,a.Yv)(r.e(4296).then(r.bind(r,84296)),t);return n(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:n}=await(0,a.Yv)(r.e(2008).then(r.bind(r,22008)),t);return n(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:n}=await(0,a.Yv)(r.e(6796).then(r.bind(r,76796)),t);return n(this.parsedUrl,e,t)}_normalizeQuery(e){let t=p.c.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.U.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:n,queryFormats:o}=r,i=(0,h.me)("model/gltf-binary",n)??(0,h.If)("glb",n),a=(0,h.me)("model/gltf+json",n)??(0,h.If)("gltf",n);for(const e of o){if(e===i){t.formatOf3DObjects=e;break}e!==a||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new s.c("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:n,originY:o,originZ:s,translationX:i,translationY:a,translationZ:u,scaleX:c,scaleY:l,scaleZ:h,rotationX:d,rotationY:f,rotationZ:m,rotationDeg:y}=r.transformFieldRoles;t.outFields.push(n,o,s,i,a,u,c,l,h,d,f,m,y)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,n._)([(0,c.qq)({type:d.U})],I.prototype,"dynamicDataSource",void 0),(0,n._)([(0,c.qq)()],I.prototype,"fieldsIndex",void 0),(0,n._)([(0,c.qq)()],I.prototype,"gdbVersion",void 0),(0,n._)([(0,c.qq)()],I.prototype,"infoFor3D",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,n._)([(0,c.qq)()],I.prototype,"pbfSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"queryAttachmentsSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"sourceSpatialReference",void 0),(0,n._)([(0,c.qq)({type:String})],I.prototype,"url",void 0),I=(0,n._)([(0,l.c)("esri.tasks.QueryTask")],I);const x=I},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>m,kD:()=>s,me:()=>i,sz:()=>o,w$:()=>u});const n=[["binary","application/octet-stream","bin",""]];function o(e,t){return null!=h(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return d(function(e,t){const r=e.toLowerCase();return l(t).find((e=>f(e)===r))}(e,t))}function a(e,t){return d(h(e,t))}function u(e,t){return f(function(e,t){return l(t).find((t=>d(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??i(e.type,t)}function l(e){return[...n,...e]}function h(e,t){const r=e.toLowerCase();return l(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function d(e){return e?.[0]}function f(e){return e?.[1].toLowerCase()}function m(e){return e.tables?.find((e=>"assetMaps"===e.role))}},46788:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.WE)(i,s.c.from(t),{...r}).then((e=>e.data.count))}},819:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.Qn)(i,s.c.from(t),{...r}).then((e=>e.data.objectIds))}},99944:(e,t,r)=>{r.d(t,{E:()=>u,c:()=>a});var n=r(21980),o=r(32848),s=r(59500),i=r(95776);async function a(e,t,r){const n=await u(e,t,r);return s.c.fromJSON(n)}async function u(e,t,r){const s=(0,n.UX)(e),a={...r},u=i.c.from(t),{data:c}=await(0,o.EL)(s,u,u.sourceSpatialReference,a);return c}},49132:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(21980),o=r(70680),s=r(37924),i=r(97088);function a(e,t){return t}function u(e,t,r,n){switch(r){case 0:return d(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?d(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function c(e,t,r,n){return 2===r?d(e,t,2):u(e,t,r,n)}function l(e,t,r,n){return 2===r?d(e,t,3):u(e,t,r,n)}function h(e,t,r,n){return 3===r?d(e,t,3):c(e,t,r,n)}function d({translate:e,scale:t},r,n){return e[n]+r*t[n]}class f{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=a,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,s.O)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,o.EN)(r),r.push(t);const n=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,o=(0,i.Ij)(r.clone(),r,!1,!1,this._transform),s=(0,i.qw)(o,n,!1,!1);e.queryGeometryType=n,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform;switch(t=this._applyTransform(n,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const n=this._transform;return null===this._mValueOffset||0!==e||t%this._mValueOffset?this._applyTransform(n,e,t,r):0}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),o=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),o.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?h:t?c:r?l:u}}var m=r(32848),y=(r(59500),r(95776));async function p(e,t,r){const o=(0,n.UX)(e),s={...r},i=y.c.from(t),a=!i.quantizationParameters,{data:u}=await(0,m.aA)(o,i,new f({sourceSpatialReference:i.sourceSpatialReference,applyTransform:a}),s);return u}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5468],{34888:(e,t,r)=>{r.d(t,{ED:()=>o,_M:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},90412:(e,t,r)=>{r.d(t,{c:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},97088:(e,t,r)=>{r.d(t,{C:()=>E,C_:()=>re,G0:()=>z,GE:()=>Z,Ij:()=>ne,M$:()=>D,Oo:()=>ie,Sk:()=>oe,Uh:()=>V,WY:()=>H,Y5:()=>j,a:()=>x,i:()=>R,i6:()=>B,iC:()=>K,m:()=>W,od:()=>U,qw:()=>Q,ui:()=>J,w3:()=>$,ye:()=>A});var n=r(20744),o=r(66360),s=r(70680),i=r(77048),a=r(83372),u=r(6704),c=r(34888),l=r(90412),h=r(85152);function d(e,t){return e?t?4:3:t?3:2}const f=()=>o.c.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s},p=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2]},g=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+3]},_=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function b(e,t,r,n){if(e){if(r)return t&&n?_:p;if(t&&n)return g}else if(t&&n)return p;return y}function w({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function F({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function I({scale:e,translate:t},r,n){return r*e[n]+t[n]}function x(e,t,r){return e?t?r?q(e):M(e):r?C(e):G(e):null}function G(e){const t=e.coords;return{x:t[0],y:t[1]}}function P(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function C(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function q(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?T:P}function D(e,t,r=N(null!=t.z,null!=t.m)){return r(e,t)}function R(e,t,r){if(null==e)return null;const n=d(t,r),o=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let o=0;o<n;o++)r.push(e.coords[t+o]);o.push(r)}return t?r?{points:o,hasZ:t,hasM:r}:{points:o,hasZ:t}:r?{points:o,hasM:r}:{points:o}}function O(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let o=0;for(const e of t.points)for(let t=0;t<r;t++)n[o++]=e[t];return e}function Z(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function k(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)o[s++]=t[e];n.push(e.length)}return e}function j(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function V(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const o=d(r,n),{lengths:s,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[a++]=t[e];s.push(e.length)}return e}(e,t.rings,r,n)}const Y=[],L=[];function A(e,t,r,n,o){Y[0]=e;const[s]=U(L,Y,t,r,n,o);return ue(Y),ue(L),s}function U(e,t,r,o,s,i){if(ue(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new c._M(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,o){const s=N(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?s(new h.c,r):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryMultipoint":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?O(new h.c,r,s):null;e.push(new c._M(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolyline":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?k(new h.c,r,s):null,a=null!=i?D(new h.c,i):null;e.push(new c._M(t,n,a,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolygon":return function(e,t,r,n,o){for(const{geometry:s,centroid:i,attributes:a}of t){const t=null!=s?V(new h.c,s,r,n):null,u=o?a[o]:void 0;null!=i?e.push(new c._M(t,a,P(new h.c,i),u)):e.push(new c._M(t,a,null,u))}return e}(e,t,o,s,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`)),ue(e)}return e}function z(e,t,r,n){L[0]=e,X(Y,L,t,r,n);const o=Y[0];return ue(Y),ue(L),o}function E(e,t,r){if(null==e)return null;const o=new h.c;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,u._x)(e)?N(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(o,e):(0,u.Cs)(e)?V(o,e,t,r):(0,u.cZ)(e)?k(o,e,d(t,r)):(0,u._)(e)?O(o,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${e}'`))}function Q(e,t,r,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=G;return r&&o?e=q:r?e=M:o&&(e=C),e(s)}case"esriGeometryMultipoint":return R(s,r,o);case"esriGeometryPolyline":return Z(s,r,o);case"esriGeometryPolygon":return j(s,r,o);default:return f().error("convertToGeometry:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${t}'`)),null}}function X(e,t,r,o,s){if(ue(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let o=G;r&&n?o=q:r?o=M:n&&(o=C);for(const r of t){const{geometry:t,attributes:n}=r,s=null!=t?o(t):null;e.push({attributes:n,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?R(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?Z(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:o,attributes:s,centroid:i}of t){const t=null!=o?j(o,r,n):null;if(null!=i){const r=G(i);e.push({attributes:s,centroid:r,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:f().error("convertToFeatureSet:unknown-geometry",new n.c(`Unable to parse unknown geometry type '${r}'`))}return e}function B(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:o,hasM:s,hasZ:i,features:a,geometryType:u,exceededTransferLimit:c,uniqueIdField:l,queryGeometry:h,queryGeometryType:d}=e,f={features:X([],a,u,i,s),fields:o,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:l,queryGeometry:Q(h,d,!1,!1)};return n&&(f.transform=n),c&&(f.exceededTransferLimit=c),s&&(f.hasM=s),i&&(f.hasZ=i),f}function J(e,t){const r=new l.c,{hasM:o,hasZ:s,features:i,objectIdFieldName:a,spatialReference:u,geometryType:c,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=c??null,r.objectIdFieldName=a??t??null,r.spatialReference=u??null,r.objectIdFieldName?(i&&U(r.features,i,c,s,o,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),o&&(r.hasM=o),s&&(r.hasZ=s),d&&(r.transform=d),r):(f().error(new n.c("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:o}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,o,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,o,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:n,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.c,K(a.geometry,i.geometry,o,s,r,e),i.centroid&&(a.centroid=new h.c,K(a.centroid,i.centroid,o,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function K(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,w(s,c[0]),F(s,c[1])),ae(e,h,0),e;let p,g,_,I,x=0,G=0,P=G;for(const t of l){if(t<u)continue;let r=0;G=P,_=p=w(s,c[x]),I=g=F(s,c[x+1]),y(e.coords,c,G,x,_,I),r++,x+=h,G+=f;for(let n=1;n<t;n++,x+=h)_=w(s,c[x]),I=F(s,c[x+1]),_===p&&I===g||(y(e.coords,c,G,x,_-p,I-g),G+=f,r++,p=_,g=I);r>=u&&(e.lengths.push(r),P=G)}return ue(e.coords,P),e.coords.length?e:null}function H(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:c,lengths:l}=t,h=d(r,n),f=d(r&&i,n&&a),y=b(r,n,i,a);if(!l.length)return y(e.coords,c,0,0,c[0],c[1]),ae(e,h,0),e;let p=0;const g=s*s;for(const t of l){if(t<u){p+=t*h;continue}const r=e.coords.length/f,n=p,o=p+(t-1)*h;y(e.coords,c,e.coords.length,n,c[n],c[n+1]),te(e.coords,c,h,g,y,n,o),y(e.coords,c,e.coords.length,o,c[o],c[o+1]);const s=e.coords.length/f-r;s>=u?e.lengths.push(s):ue(e.coords,r*f),p+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const o=e[t],s=e[t+1],i=e[r],a=e[r+1],u=e[n],c=e[n+1];let l=i,h=a,d=u-l,f=c-h;if(0!==d||0!==f){const e=((o-l)*d+(s-h)*f)/(d*d+f*f);e>1?(l=u,h=c):e>0&&(l+=d*e,h+=f*e)}return d=o-l,f=s-h,d*d+f*f}function te(e,t,r,n,o,s,i){let a,u=n,c=0;for(let e=s+r;e<i;e+=r)a=ee(t,e,s,i),a>u&&(c=e,u=a);u>n&&(c-s>r&&te(e,t,r,n,o,s,c),o(e,t,e.length,c,t[c],t[c+1]),i-c>r&&te(e,t,r,n,o,c,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const o=d(r,n);let s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const r=e[t],n=e[t+1];s=Math.min(s,r),c=Math.max(c,r),u=Math.min(u,n),l=Math.max(l,n)}}return(0,i.is)(e)?(0,i.qy)(e,s,u,c,l):(0,a.WK)(s,u,c,l,e),e}function ne(e,t,r,n,o){const{coords:i,lengths:a}=t,u=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,s.EN)(o);const{originPosition:c,scale:l,translate:h}=o,f=ce;f.originPosition=c;const m=f.scale;m[0]=l[0]??1,m[1]=-(l[1]??1),m[2]=l[2]??1,m[3]=l[3]??1;const y=f.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<u;++t)e.coords[t]=I(f,i[t],t);return e!==t&&ae(e,u,0),e}let p=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<u;++t)e.coords[p+t]=I(f,i[p+t],t);let n=e.coords[p],o=e.coords[p+1];p+=u;for(let t=1;t<r;t++,p+=u){n+=i[p]*m[0],o+=i[p+1]*m[1],e.coords[p]=n,e.coords[p+1]=o;for(let t=2;t<u;++t)e.coords[p+t]=I(f,i[p+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function oe(e,t,r,n,o,s){if(ae(e),e.lengths.push(...t.lengths),r===o&&n===s)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=b(r,n,o,s),u=t.coords;for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1])}return e}function se(e,t,r,n){let o=0,s=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],u=i+e[n*(t+a)+1],c=(r-s)*(u+i);s=r,i=u,o+=c}return.5*o}function ie(e,t){const{coords:r,lengths:n}=e;let o=0,s=0;for(let e=0;e<n.length;e++){const i=n[e];s+=se(r,o,i,t),o+=i}return Math.abs(s)}function ae(e,t=0,r=0){ue(e.lengths,r),ue(e.coords,t)}function ue(e,t=0){e.length!==t&&(e.length=t)}const ce={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},95468:(e,t,r)=>{r.d(t,{c:()=>x});var n=r(41948),o=r(43780),s=r(20744),i=r(9456),a=r(10860),u=r(28176),c=r(1580),l=(r(66360),r(72052),r(12552)),h=r(4048),d=r(88204),f=r(21980),m=r(46788),y=(r(60708),r(32848)),p=r(95776),g=r(95247),_=r(819),b=r(99944),w=r(49132),F=r(59500);let I=class extends o.c{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.as)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),n=null!=e.outStatistics?.[0],o=(0,i.c)("featurelayer-pbf-statistics"),s=!n||o;let a;if(this.pbfSupported&&s)try{a=await(0,w.S)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&s||(a=await(0,b.E)(this.url,r,t)),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,n){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return F.c.fromJSON(t);const{meshFeatureSetFromJSON:o}=await(0,a.Yv)(Promise.all([r.e(3180),r.e(9904),r.e(4716),r.e(456)]).then(r.bind(r,12784)),n);return o(e,this.infoFor3D,t)}executeForCount(e,t){return(0,m._)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const n=(0,f.UX)(e),o=await(0,y.A7)(n,p.c.from(t),{...r}),s=o.data.extent;return!s||isNaN(s.xmin)||isNaN(s.ymin)||isNaN(s.xmax)||isNaN(s.ymax)?{count:o.data.count,extent:null}:{count:o.data.count,extent:g.c.fromJSON(s)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,_.g)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:n},{executeRelationshipQuery:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:n},{executeRelationshipQueryForCount:o}]=await(0,a.Yv)(Promise.all([r.e(8648).then(r.bind(r,18648)),r.e(1644).then(r.bind(r,1644))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:n,fetchAttachments:o,processAttachmentQueryResult:s}=await(0,a.Yv)(r.e(2024).then(r.bind(r,82024)),t),i=(0,f.UX)(this.url);return s(i,await(this.queryAttachmentsSupported?n(i,e,t):o(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:n}=await(0,a.Yv)(r.e(3395).then(r.bind(r,93395)),t);return n(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:n}=await(0,a.Yv)(r.e(4296).then(r.bind(r,84296)),t);return n(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:n}=await(0,a.Yv)(r.e(2008).then(r.bind(r,22008)),t);return n(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:n}=await(0,a.Yv)(r.e(6796).then(r.bind(r,76796)),t);return n(this.parsedUrl,e,t)}_normalizeQuery(e){let t=p.c.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.U.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:n,queryFormats:o}=r,i=(0,h.me)("model/gltf-binary",n)??(0,h.If)("glb",n),a=(0,h.me)("model/gltf+json",n)??(0,h.If)("gltf",n);for(const e of o){if(e===i){t.formatOf3DObjects=e;break}e!==a||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new s.c("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:n,originY:o,originZ:s,translationX:i,translationY:a,translationZ:u,scaleX:c,scaleY:l,scaleZ:h,rotationX:d,rotationY:f,rotationZ:m,rotationDeg:y}=r.transformFieldRoles;t.outFields.push(n,o,s,i,a,u,c,l,h,d,f,m,y)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,n._)([(0,c.qq)({type:d.U})],I.prototype,"dynamicDataSource",void 0),(0,n._)([(0,c.qq)()],I.prototype,"fieldsIndex",void 0),(0,n._)([(0,c.qq)()],I.prototype,"gdbVersion",void 0),(0,n._)([(0,c.qq)()],I.prototype,"infoFor3D",void 0),(0,n._)([(0,c.qq)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,n._)([(0,c.qq)()],I.prototype,"pbfSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"queryAttachmentsSupported",void 0),(0,n._)([(0,c.qq)()],I.prototype,"sourceSpatialReference",void 0),(0,n._)([(0,c.qq)({type:String})],I.prototype,"url",void 0),I=(0,n._)([(0,l.c)("esri.tasks.QueryTask")],I);const x=I},4048:(e,t,r)=>{r.d(t,{If:()=>a,K0:()=>c,Mn:()=>m,kD:()=>s,me:()=>i,sz:()=>o,w$:()=>u});const n=[["binary","application/octet-stream","bin",""]];function o(e,t){return null!=h(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=c(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return d(function(e,t){const r=e.toLowerCase();return l(t).find((e=>f(e)===r))}(e,t))}function a(e,t){return d(h(e,t))}function u(e,t){return f(function(e,t){return l(t).find((t=>d(t)===e))}(e,t))}function c(e,t){return a(e.name,t)??i(e.type,t)}function l(e){return[...n,...e]}function h(e,t){const r=e.toLowerCase();return l(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function d(e){return e?.[0]}function f(e){return e?.[1].toLowerCase()}function m(e){return e.tables?.find((e=>"assetMaps"===e.role))}},46788:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.WE)(i,s.c.from(t),{...r}).then((e=>e.data.count))}},819:(e,t,r)=>{r.d(t,{g:()=>i});var n=r(21980),o=r(32848),s=r(95776);async function i(e,t,r){const i=(0,n.UX)(e);return(0,o.Qn)(i,s.c.from(t),{...r}).then((e=>e.data.objectIds))}},99944:(e,t,r)=>{r.d(t,{E:()=>u,c:()=>a});var n=r(21980),o=r(32848),s=r(59500),i=r(95776);async function a(e,t,r){const n=await u(e,t,r);return s.c.fromJSON(n)}async function u(e,t,r){const s=(0,n.UX)(e),a={...r},u=i.c.from(t),{data:c}=await(0,o.EL)(s,u,u.sourceSpatialReference,a);return c}},49132:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(21980),o=r(70680),s=r(37924),i=r(97088);function a(e,t){return t}function u(e,t,r,n){switch(r){case 0:return d(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?d(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function c(e,t,r,n){return 2===r?d(e,t,2):u(e,t,r,n)}function l(e,t,r,n){return 2===r?0===t?0:d(e,t,2):u(e,t,r,n)}function h(e,t,r,n){return 3===r?0===t?0:d(e,t,3):c(e,t,r,n)}function d({translate:e,scale:t},r,n){return e[n]+r*t[n]}class f{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=a,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,s.O)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,o.EN)(r),r.push(t);const n=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,o=(0,i.Ij)(r.clone(),r,!1,!1,this._transform),s=(0,i.qw)(o,n,!1,!1);e.queryGeometryType=n,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform;switch(t=this._applyTransform(n,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const n=this._transform;return null===this._mValueOffset||0!==e||t%this._mValueOffset?this._applyTransform(n,e,t,r):0}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),o=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),o.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?h:t?c:r?l:u}}var m=r(32848),y=(r(59500),r(95776));async function p(e,t,r){const o=(0,n.UX)(e),s={...r},i=y.c.from(t),a=!i.quantizationParameters,{data:u}=await(0,m.aA)(o,i,new f({sourceSpatialReference:i.sourceSpatialReference,applyTransform:a}),s);return u}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6248,6147,4828],{8528:(t,e,r)=>{r.d(e,{c:()=>n,g:()=>s});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,r)=>{r.d(e,{q:()=>u});var n,s,i,o=r(8528),f={exports:{}};n=f,s=function(){function t(r,n,s,i,o){for(;i>s;){if(i-s>600){var f=i-s+1,u=n-s+1,a=Math.log(f),c=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*c*(f-c)/f)*(u-f/2<0?-1:1);t(r,n,Math.max(s,Math.floor(n-u*c/f+l)),Math.min(i,Math.floor(n+(f-u)*c/f+l)),o)}var h=r[n],y=s,p=i;for(e(r,s,n),o(r[i],h)>0&&e(r,s,i);y<p;){for(e(r,y,p),y++,p--;o(r[y],h)<0;)y++;for(;o(r[p],h)>0;)p--}0===o(r[s],h)?e(r,s,p):e(r,++p,i),p<=n&&(s=p+1),n<=p&&(i=p-1)}}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}return function(e,n,s,i,o){t(e,n,s||0,i||e.length-1,o||r)}},void 0!==(i=s())&&(n.exports=i);const u=(0,o.g)(f.exports)},48952:(t,e,r)=>{r.d(e,{a:()=>i,b:()=>f,c:()=>o,d:()=>s,e:()=>l,f:()=>u,n:()=>h,s:()=>a,t:()=>c}),r(9456);var n=r(23704);function s(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,n=3,s=n){if(t.length/n!==Math.ceil(e.length/s))return t;const i=t.length/n,o=r[0],f=r[1],u=r[2],a=r[4],c=r[5],l=r[6],h=r[8],y=r[9],p=r[10],d=r[12],m=r[13],b=r[14];let g=0,M=0;for(let r=0;r<i;r++){const r=e[g],i=e[g+1],B=e[g+2];t[M]=o*r+a*i+h*B+d,t[M+1]=f*r+c*i+y*B+m,t[M+2]=u*r+l*i+p*B+b,g+=s,M+=n}return t}function o(t,e,r){f(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,s=3,i=s){if(t.length/s!==Math.ceil(e.length/i))return void(0,n.A)().error("source and destination buffers need to have the same number of elements");const o=t.length/s,f=r[0],u=r[1],a=r[2],c=r[3],l=r[4],h=r[5],y=r[6],p=r[7],d=r[8];let m=0,b=0;for(let r=0;r<o;r++){const r=e[m],n=e[m+1],o=e[m+2];t[b]=f*r+c*n+y*o,t[b+1]=u*r+l*n+p*o,t[b+2]=a*r+h*n+d*o,m+=i,b+=s}}function u(t,e,r){a(t.typedBuffer,e,r,t.typedBufferStride)}function a(t,e,r,n=3){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,o=e.typedBufferStride;let f=0,u=0;for(let e=0;e<s;e++)t[u]=r*i[f],t[u+1]=r*i[f+1],t[u+2]=r*i[f+2],f+=o,u+=n}function c(t,e,r,n=3,s=n){const i=t.length/n;if(i!==Math.ceil(e.length/s))return t;let o=0,f=0;for(let u=0;u<i;u++)t[f]=e[o]+r[0],t[f+1]=e[o+1]+r[1],t[f+2]=e[o+2]+r[2],o+=s,f+=n;return t}function l(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const s=Math.min(t.length/r,e.length/n);let i=0,o=0;for(let f=0;f<s;f++){const s=e[i],f=e[i+1],u=e[i+2],a=s*s+f*f+u*u;if(a>0){const e=1/Math.sqrt(a);t[o]=e*s,t[o+1]=e*f,t[o+2]=e*u}i+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:l,scale:a,scaleView:u,shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,f=e.typedBufferStride;let u=0,a=0;for(let t=0;t<n;t++)s[a]=o[u]>>r,s[a+1]=o[u+1]>>r,s[a+2]=o[u+2]>>r,u+=f,a+=i},transformMat3:f,transformMat3View:o,transformMat4:i,transformMat4View:s,translate:c},Symbol.toStringTag,{value:"Module"}))},3856:(t,e,r)=>{r.d(e,{m:()=>l,q:()=>c});var n=r(41948),s=r(43780),i=(r(9456),r(62088)),o=(r(66360),r(70680)),f=r(71448),u=r(20916),a=r(12552);const c=t=>{let e=class extends t{clone(){const t=(0,u.m6)(this);(0,o.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,n={},s=new Map;for(const t in e){const o=e[t],u=r?.originOf(t),a=o.clonable;if(o.readOnly||!1===a||u!==f.sT.USER&&u!==f.sT.DEFAULTS&&u!==f.sT.WEB_MAP&&u!==f.sT.WEB_SCENE)continue;const c=this[t];let l=null;l="function"==typeof a?a(c):"reference"===a?c:(0,i.gx)(c),null!=c&&null==l||(u===f.sT.DEFAULTS?s.set(t,l):n[t]=l)}const a=new(0,Object.getPrototypeOf(this).constructor)(n);if(s.size){const t=(0,u.m6)(a)?.store;if(t)for(const[e,r]of s)t.set(e,r,f.sT.DEFAULTS)}return a}};return e=(0,n._)([(0,a.c)("esri.core.Clonable")],e),e};let l=class extends(c(s.c)){};l=(0,n._)([(0,a.c)("esri.core.Clonable")],l)},9592:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(50504);class s extends n.g{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},68612:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,o,f,u){return[t,e,r,n,s,i,o,f,u]}r.d(e,{IJ:()=>i,Su:()=>n,WK:()=>s});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:s},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d){return[t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,r)=>{function n(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,r)=>{r.d(e,{KU:()=>l,QT:()=>p,S_:()=>f,WO:()=>i,_7:()=>u,aU:()=>c,iW:()=>a,kr:()=>s,oL:()=>o,yy:()=>h});var n=r(47364);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,r,n,s,i,o,f,u,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=o,t[6]=f,t[7]=u,t[8]=a,t}function o(t,e){if(t===e){const r=e[1],n=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u;let p=r*l+n*h+s*y;return p?(p=1/p,t[0]=l*p,t[1]=(-c*n+s*a)*p,t[2]=(f*n-s*o)*p,t[3]=h*p,t[4]=(c*r-s*u)*p,t[5]=(-f*r+s*i)*p,t[6]=y*p,t[7]=(-a*r+n*u)*p,t[8]=(o*r-n*i)*p,t):null}function u(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8];return t[0]=o*c-f*a,t[1]=s*a-n*c,t[2]=n*f-s*o,t[3]=f*u-i*c,t[4]=r*c-s*u,t[5]=s*i-r*f,t[6]=i*a-o*u,t[7]=n*u-r*a,t[8]=r*o-n*i,t}function a(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1],p=r[2],d=r[3],m=r[4],b=r[5],g=r[6],M=r[7],B=r[8];return t[0]=h*n+y*o+p*a,t[1]=h*s+y*f+p*c,t[2]=h*i+y*u+p*l,t[3]=d*n+m*o+b*a,t[4]=d*s+m*f+b*c,t[5]=d*i+m*u+b*l,t[6]=g*n+M*o+B*a,t[7]=g*s+M*f+B*c,t[8]=g*i+M*u+B*l,t}function c(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function l(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r+r,f=n+n,u=s+s,a=r*o,c=n*o,l=n*f,h=s*o,y=s*f,p=s*u,d=i*o,m=i*f,b=i*u;return t[0]=1-l-p,t[3]=c-b,t[6]=h+m,t[1]=c+b,t[4]=1-a-p,t[7]=y-d,t[2]=h-m,t[5]=y+d,t[8]=1-a-l,t}function h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=e[9],h=e[10],y=e[11],p=e[12],d=e[13],m=e[14],b=e[15],g=r*f-n*o,M=r*u-s*o,B=r*a-i*o,T=n*u-s*f,_=n*a-i*f,E=s*a-i*u,A=c*d-l*p,x=c*m-h*p,S=c*b-y*p,w=l*m-h*d,O=l*b-y*d,v=h*b-y*m;let L=g*v-M*O+B*w+T*S-_*x+E*A;return L?(L=1/L,t[0]=(f*v-u*O+a*w)*L,t[1]=(u*S-o*v-a*x)*L,t[2]=(o*O-f*S+a*A)*L,t[3]=(s*O-n*v-i*w)*L,t[4]=(r*v-s*S+i*x)*L,t[5]=(n*S-r*O-i*A)*L,t[6]=(d*E-m*_+b*T)*L,t[7]=(m*B-p*E-b*M)*L,t[8]=(p*_-d*B+b*g)*L,t):null}function y(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function p(t){const e=(0,n.Au)(),r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8];return Math.abs(1-(r*r+o*o+a*a))<=e&&Math.abs(1-(s*s+f*f+c*c))<=e&&Math.abs(1-(i*i+u*u+l*l))<=e}const d=a,m=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:u,copy:function(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},determinant:function(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],o=t[5],f=t[6],u=t[7],a=t[8];return e*(a*i-o*u)+r*(-a*s+o*f)+n*(u*s-i*f)},equals:function(t,e){const r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8],h=e[0],y=e[1],p=e[2],d=e[3],m=e[4],b=e[5],g=e[6],M=e[7],B=e[8],T=(0,n.Au)();return Math.abs(r-h)<=T*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-y)<=T*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(i-p)<=T*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-d)<=T*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(f-m)<=T*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(u-b)<=T*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(a-g)<=T*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(c-M)<=T*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-B)<=T*Math.max(1,Math.abs(l),Math.abs(B))},exactEquals:function(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]},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,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:l,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[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:f,isOrthoNormal:p,mul:d,multiply:a,multiplyScalar:function(t,e,r){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]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:h,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],o=e[5],f=e[6],u=e[8],a=e[9],c=e[10],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u,p=r*l+n*h+s*y;if(!p)return null;const d=1/p;return t[0]=l*d,t[1]=(-c*n+s*a)*d,t[2]=(f*n-s*o)*d,t[3]=h*d,t[4]=(c*r-s*u)*d,t[5]=(-f*r+s*i)*d,t[6]=y*d,t[7]=(-a*r+n*u)*d,t[8]=(o*r-n*i)*d,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=Math.sin(r),y=Math.cos(r);return t[0]=y*n+h*o,t[1]=y*s+h*f,t[2]=y*i+h*u,t[3]=y*o-h*n,t[4]=y*f-h*s,t[5]=y*u-h*i,t[6]=a,t[7]=c,t[8]=l,t},scale:c,scaleByVec2:function(t,e,r){const n=r[0],s=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:y,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=o,t[4]=f,t[5]=u,t[6]=h*n+y*o+a,t[7]=h*s+y*f+c,t[8]=h*i+y*u+l,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},41512:(t,e,r)=>{r.d(e,{C0:()=>c,WO:()=>b,Wu:()=>d,fO:()=>y,iW:()=>l,sF:()=>O,yG:()=>a});var n=r(68612),s=r(2620),i=r(62484),o=r(47364),f=r(98472),u=r(74784);function a(t,e,r){r*=.5;const n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,o.Au)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=r[0],u=r[1],a=r[2],c=r[3];return t[0]=n*c+o*f+s*a-i*u,t[1]=s*c+o*u+i*f-n*a,t[2]=i*c+o*a+n*u-s*f,t[3]=o*c-n*f-s*u-i*a,t}function h(t,e,r,n){const s=e[0],i=e[1],f=e[2],u=e[3];let a,c,l,h,y,p=r[0],d=r[1],m=r[2],b=r[3];return c=s*p+i*d+f*m+u*b,c<0&&(c=-c,p=-p,d=-d,m=-m,b=-b),1-c>(0,o.Au)()?(a=Math.acos(c),l=Math.sin(a),h=Math.sin((1-n)*a)/l,y=Math.sin(n*a)/l):(h=1-n,y=n),t[0]=h*s+y*p,t[1]=h*i+y*d,t[2]=h*f+y*m,t[3]=h*u+y*b,t}function y(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function p(t,e){const r=e[0]+e[4]+e[8];let n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const s=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*s+s]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*s+i]-e[3*i+s])*n,t[s]=(e[3*s+r]+e[3*r+s])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function d(t,e,r,n){const s=.5*Math.PI/180;e*=s,r*=s,n*=s;const i=Math.sin(e),o=Math.cos(e),f=Math.sin(r),u=Math.cos(r),a=Math.sin(n),c=Math.cos(n);return t[0]=i*u*c-o*f*a,t[1]=o*f*c+i*u*a,t[2]=o*u*a-i*f*c,t[3]=o*u*c+i*f*a,t}const m=u.c,b=u.s,g=u.g,M=l,B=u.d,T=u.h,_=u.l,E=u.i,A=E,x=u.j,S=x,w=u.n,O=u.a,v=u.e,L=(0,i.Su)(),P=(0,i.WK)(1,0,0),C=(0,i.WK)(0,1,0),Y=(0,s.Su)(),F=(0,s.Su)(),R=(0,n.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,e){const r=e[0],n=e[1],s=e[2];return t[0]=r,t[1]=n,t[2]=s,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-s*s)),t},conjugate:y,copy:m,dot:T,equals:v,exactEquals:O,fromEuler:d,fromMat3:p,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r*r+n*n+s*s+i*i,f=o?1/o:0;return t[0]=-r*f,t[1]=-n*f,t[2]=-s*f,t[3]=i*f,t},len:A,length:E,lerp:_,mul:M,multiply:l,normalize:w,random:function(t){const e=o.QR,r=e(),n=e(),s=e(),i=Math.sqrt(1-r),f=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=f*Math.sin(2*Math.PI*s),t[3]=f*Math.cos(2*Math.PI*s),t},rotateX:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*f,t[1]=s*u+i*f,t[2]=i*u-s*f,t[3]=o*u-n*f,t},rotateY:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*f,t[1]=s*u+o*f,t[2]=i*u+n*f,t[3]=o*u-s*f,t},rotateZ:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+s*f,t[1]=s*u-n*f,t[2]=i*u+o*f,t[3]=o*u-i*f,t},rotationTo:function(t,e,r){const n=(0,f.j)(e,r);return n<-.999999?((0,f.b)(L,P,e),(0,f.C)(L)<1e-6&&(0,f.b)(L,C,e),(0,f.n)(L,L),a(t,L,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,f.b)(L,e,r),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+n,w(t,t))},scale:B,set:b,setAxes:function(t,e,r,n){const s=R;return s[0]=r[0],s[3]=r[1],s[6]=r[2],s[1]=n[0],s[4]=n[1],s[7]=n[2],s[2]=-e[0],s[5]=-e[1],s[8]=-e[2],w(t,p(t,s))},setAxisAngle:a,slerp:h,sqlerp:function(t,e,r,n,s,i){return h(Y,e,s,i),h(F,r,n,i),h(t,Y,F,2*i*(1-i)),t},sqrLen:S,squaredLength:x,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,r)=>{r.d(e,{Cq:()=>h,WO:()=>s,c9:()=>p,m4:()=>y,qy:()=>u});var n=r(47364);function s(t,e,r){return t[0]=e,t[1]=r,t}function i(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function o(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function u(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function a(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function c(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function l(t){const e=t[0],r=t[1];return e*e+r*r}function h(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function y(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function p(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),f=Math.cos(n);return t[0]=s*f-i*o+r[0],t[1]=s*o+i*f+r[1],t}const d=c,m=i,b=o,g=f,M=u,B=a,T=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let o=r*r+n*n;o>0&&(o=1/Math.sqrt(o));let f=s*s+i*i;f>0&&(f=1/Math.sqrt(f));const u=(r*s+n*i)*o*f;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:M,distance:u,div:g,divide:f,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const r=t[0],s=t[1],i=e[0],o=e[1],f=(0,n.Au)();return Math.abs(r-i)<=f*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=f*Math.max(1,Math.abs(s),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:c,lerp:h,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:b,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],o=e[1]-r[1];const f=(n[0]*i+n[1]*o)*(s-1);return i=n[0]*f,o=n[1]*f,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const r=2*(0,n.QR)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:s,sqrDist:B,sqrLen:T,squaredDistance:a,squaredLength:l,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:m,subtract:i,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:y,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,r)=>{r.d(e,{U:()=>o});var n=r(92400),s=r(24680),i=r(85304);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=l,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),B.prune(),T.prune(),_.prune()}all(t){this._all(this._data,t)}search(t,e){let r=this._data;const n=this._toBBox;if(b(t,r))for(M.clear();r;){for(let s=0,i=r.children.length;s<i;s++){const i=r.children[s],o=r.leaf?n(i):i;b(t,o)&&(r.leaf?e(i):m(t,o)?this._all(i,e):M.push(i))}r=M.pop()}}collides(t){let e=this._data;const r=this._toBBox;if(!b(t,e))return!1;for(M.clear();e;){for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n],i=e.leaf?r(s):s;if(b(t,i)){if(e.leaf||m(t,i))return!0;M.push(s)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new x([]),this}remove(t){if(!t)return this;let e,r=this._data,s=null,i=0,o=!1;const f=this._toBBox(t);for(T.clear(),_.clear();r||T.length>0;){if(r||(r=T.pop(),s=T.data[T.length-1],i=_.pop()??0,o=!0),r.leaf&&(e=(0,n.IP)(r.children,t,r.children.length,r.indexHint),-1!==e))return r.children.splice(e,1),T.push(r),this._condense(T),this;o||r.leaf||!m(r,f)?s?(i++,r=s.children[i],o=!1):r=null:(T.push(r),_.push(i),i=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let r=t;for(B.clear();r;){if(!0===r.leaf)for(const t of r.children)e(t);else B.pushArray(r.children);r=B.pop()??null}}_build(t,e,r,n){const s=r-e+1;let i=this._maxEntries;if(s<=i){const n=new x(t.slice(e,r+1));return f(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(n-1)));const o=new S([]);o.height=n;const u=Math.ceil(s/i),a=u*Math.ceil(Math.sqrt(i));g(t,e,r,a,this._compareMinX);for(let s=e;s<=r;s+=a){const e=Math.min(s+a-1,r);g(t,s,e,u,this._compareMinY);for(let r=s;r<=e;r+=u){const s=Math.min(r+u-1,e);o.children.push(this._build(t,r,s,n-1))}}return f(o,this._toBBox),o}_chooseSubtree(t,e,r,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==r;){let r,n=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],f=h(o),u=p(t,o)-f;u<s?(s=u,n=f<n?f:n,r=o):u===s&&f<n&&(n=f,r=o)}e=r||e.children[0]}return e}_insert(t,e,r){const n=this._toBBox,s=r?t:n(t);T.clear();const i=this._chooseSubtree(s,this._data,e,T);for(i.children.push(t),a(i,s);e>=0&&T.data[e].children.length>this._maxEntries;)this._split(T,e),e--;this._adjustParentBBoxes(s,T,e)}_split(t,e){const r=t.data[e],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);const i=this._chooseSplitIndex(r,s,n);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=r.children.splice(i,r.children.length-i),u=r.leaf?new x(o):new S(o);u.height=r.height,f(r,this._toBBox),f(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(r,u)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,f(this._data,this._toBBox)}_chooseSplitIndex(t,e,r){let n,s,i;n=s=1/0;for(let o=e;o<=r-e;o++){const e=u(t,0,o,this._toBBox),f=u(t,o,r,this._toBBox),a=d(e,f),c=h(e)+h(f);a<n?(n=a,i=o,s=c<s?c:s):a===n&&c<s&&(s=c,i=o)}return i}_chooseSplitAxis(t,e,r){const n=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:l;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,s)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);const s=this._toBBox,i=u(t,0,e,s),o=u(t,r-e,r,s);let f=y(i)+y(o);for(let n=e;n<r-e;n++){const e=t.children[n];a(i,t.leaf?s(e):e),f+=y(i)}for(let n=r-e-1;n>=e;n--){const e=t.children[n];a(o,t.leaf?s(e):e),f+=y(o)}return f}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)a(e.data[n],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const r=t.data[e];if(0===r.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,n.IP)(i,r,i.length,s.indexHint),1)}else this.clear();else f(r,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function f(t,e){u(t,0,t.children.length,e,t)}function u(t,e,r,n,s){s||(s=new x([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<r;o++)i=t.children[o],a(s,t.leaf?n(i):i);return s}function a(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function d(t,e){const r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t,e,r,n,s){const o=[e,r];for(;o.length;){const e=o.pop(),r=o.pop();if(e-r<=n)continue;const f=r+Math.ceil((e-r)/n/2)*n;(0,i.q)(t,f,r,e,s),o.push(r,f,f,e)}}const M=new s.c,B=new s.c,T=new s.c,_=new s.c({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new n.is}}class x extends A{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends A{constructor(t){super(),this.children=t,this.leaf=!1}}},51120:(t,e,r)=>{r.d(e,{y:()=>a});var n=r(53648),s=r(15008),i=r(62484);function o(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),f=r;return f[0]=-n,f[4]=-i*s,f[8]=o*s,f[12]=0,f[1]=s,f[5]=-i*n,f[9]=o*n,f[13]=0,f[2]=0,f[6]=o,f[10]=i,f[14]=0,f[3]=0,f[7]=0,f[11]=0,f[15]=1,f}var f=r(38380),u=r(60544);function a(t,e,r,n){if(null==t||null==n)return!1;const i=(0,f.Se)(t,f.Wy),a=(0,f.Se)(n,f.mq);if(i===a&&!c(a)&&(i!==f.o3.UNKNOWN||(0,u.yK)(t,n)))return(0,s.mu)(r,e),!0;if(c(a)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),o(l*h[0],l*h[1],r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}if((a===f.o3.WEB_MERCATOR||a===f.o3.PLATE_CARREE||a===f.o3.WGS84)&&(i===f.o3.WGS84||i===f.o3.CGCS2000&&a===f.o3.PLATE_CARREE||i===f.o3.SPHERICAL_ECEF||i===f.o3.WEB_MERCATOR)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),i===f.o3.SPHERICAL_ECEF?function(t,e,r){o(t,e,r),(0,s.oL)(r,r)}(l*h[0],l*h[1],r):(0,s.ZX)(r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}return!1}function c(t){return t===f.o3.SPHERICAL_ECEF||t===f.o3.SPHERICAL_MARS_PCPF||t===f.o3.SPHERICAL_MOON_PCPF}const l=(0,n.EF)(1),h=(0,i.Su)(),y=(0,i.Su)()},82448:(t,e,r)=>{r.d(e,{_s:()=>a});var n=r(22080),s=r(56156),i=r(60544);const o=new s.c(n._),f=new s.c(n.IP),u=new s.c(n.Om);function a(t){const e=c.get(t);if(e)return e;let r=o;if(t)if(t===f)r=f;else if(t===u)r=u;else{const e=t.wkid,n=t.latestWkid;if(null!=e||null!=n)(0,i.cJ)(e)||(0,i.cJ)(n)?r=f:((0,i.C_)(e)||(0,i.C_)(n))&&(r=u);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===l?r=f:t===h&&(r=u)}}}return c.set(t,r),r}new s.c(n.MJ);const c=new Map,l=f.wkt.toUpperCase(),h=u.wkt.toUpperCase()},15688:(t,e,r)=>{r.d(e,{Gg:()=>s,cp:()=>i,lL:()=>o,mw:()=>f,qW:()=>u});var n=r(72008);function s(t,e=!1){return t<=n._?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,n.c7)(t)?t.length:t.byteLength/8)<=n._?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function f(t,e){for(let r=0;r<e.length;++r)t[r]=e[r];return t}function u(t){return Array.isArray(t)?new Float64Array(t):t}},51232:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552);let a=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,n._)([(0,f.G)({georeferenced:"georeferenced"},{readOnly:!0})],a.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],a.prototype,"origin",void 0),a=(0,n._)([(0,u.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],a);const c=a},13708:(t,e,r)=>{r.d(e,{c:()=>l});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),a=r(62484);let c=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="local",this.origin=(0,a.Su)()}};(0,n._)([(0,f.G)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,u.c)("esri.geometry.support.MeshLocalVertexSpace")],c);const l=c},41104:(t,e,r)=>{r.d(e,{c:()=>b});var n,s=r(41948),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(12552)),u=r(15008),a=r(87104),c=r(41512),l=r(2620),h=r(98472),y=r(62484),p=r(66952);let d=n=class extends i.am{constructor(t){super(t),this.translation=(0,y.Su)(),this.rotationAxis=(0,y.eu)(p.up),this.rotationAngle=0,this.scale=(0,y.WK)(1,1,1)}get rotation(){return(0,p.eE)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,y.ct)((0,p.Yz)(t)),this.rotationAngle=(0,p.i4)(t)}get localMatrix(){const t=(0,a.Su)();return(0,c.yG)(m,(0,p.Yz)(this.rotation),(0,p.kX)(this.rotation)),(0,u.um)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.S_)((0,a.Su)(),this.localMatrix)}applyLocal(t,e){return(0,h.e)(e,t,this.localMatrix)}applyLocalInverse(t,e){return(0,h.e)(e,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.sF)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,y.ct)(this.translation),rotationAxis:(0,y.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,y.ct)(this.scale)};return new n(t)}};(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s._)([(0,o.qq)()],d.prototype,"rotation",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrix",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrixInverse",null),d=n=(0,s._)([(0,f.c)("esri.geometry.support.MeshTransform")],d);const m=(0,l.Su)(),b=d},66952:(t,e,r)=>{r.d(e,{GA:()=>l,Jn:()=>c,Su:()=>u,Yz:()=>h,eE:()=>a,i4:()=>y,kX:()=>p,up:()=>d});var n=r(53648),s=r(41512),i=r(2620),o=r(98472),f=r(62484);function u(t=d){return[t[0],t[1],t[2],t[3]]}function a(t,e,r=u()){return(0,o.c)(r,t),r[3]=e,r}function c(t,e,r=u()){return(0,s.yG)(m,t,p(t)),(0,s.yG)(b,e,p(e)),(0,s.iW)(m,b,m),function(t,e){return t[3]=e,t}(r,(0,n.UB)((0,s.C0)(r,m)))}function l(t,e,r,n=u()){return a(f.UV,t,g),a(f.IR,e,M),a(f.wx,r,B),c(g,M,g),c(g,B,n),n}function h(t){return t}function y(t){return t[3]}function p(t){return(0,n.EF)(t[3])}r(37008);const d=[0,0,1,0],m=(0,i.Su)(),b=(0,i.Su)(),g=(u(),u()),M=u(),B=u()},71004:(t,e,r)=>{r.d(e,{AZ:()=>h,oN:()=>B,Mt:()=>j,Ep:()=>k,kV:()=>q,Ko:()=>m,m_:()=>b,IL:()=>g,mF:()=>M,E_:()=>O,Ym:()=>C,Kg:()=>A,U7:()=>y,wT:()=>T,iN:()=>W,mI:()=>z,oR:()=>I,kg:()=>v,qZ:()=>Y,eS:()=>x,Yj:()=>p,Ax:()=>_,g7:()=>U,Yv:()=>G,Oq:()=>N,k5:()=>L,ER:()=>F,IN:()=>S,_5:()=>d,Ip:()=>E,OS:()=>V,i9:()=>J,mq:()=>X,Ig:()=>P,q$:()=>R,sb:()=>w});class n{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}n.ElementCount=9;class s{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<16;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}s.ElementCount=16;class i{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}i.ElementCount=1;var o=r(37648);class f{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.WO)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}f.ElementCount=2;var u=r(98472);class a{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.s)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}a.ElementCount=3;var c=r(74784);class l{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,c.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}l.ElementCount=4;class h extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static fromTypedArray(t,e){return new h(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}h.ElementType="f32";class y extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(y,t,e)}static fromTypedArray(t,e){return new y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}y.ElementType="f32";class p extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(p,t,e)}static fromTypedArray(t,e){return new p(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}p.ElementType="f32";class d extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(d,t,e)}static fromTypedArray(t,e){return new d(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}d.ElementType="f32";class m extends n{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static fromTypedArray(t,e){return new m(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}m.ElementType="f32";class b extends n{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}b.ElementType="f64";class g extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static fromTypedArray(t,e){return new g(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}g.ElementType="f32";class M extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(M,t,e)}static fromTypedArray(t,e){return new M(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}M.ElementType="f64";class B extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(B,t,e)}static fromTypedArray(t,e){return new B(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}B.ElementType="f64";class T extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}T.ElementType="f64";class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static fromTypedArray(t,e){return new _(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}_.ElementType="f64";class E extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(E,t,e)}static fromTypedArray(t,e){return new E(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}E.ElementType="f64";class A extends i{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(A,t,e)}static fromTypedArray(t,e){return new A(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}A.ElementType="u8";class x extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(x,t,e)}static fromTypedArray(t,e){return new x(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}x.ElementType="u8";class S extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}S.ElementType="u8";class w extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static fromTypedArray(t,e){return new w(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}w.ElementType="u8";class O extends i{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}O.ElementType="u16";class v extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(v,t,e)}static fromTypedArray(t,e){return new v(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}v.ElementType="u16";class L extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}L.ElementType="u16";class P extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static fromTypedArray(t,e){return new P(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}P.ElementType="u16";class C extends i{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(C,t,e)}static fromTypedArray(t,e){return new C(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}C.ElementType="u32";class Y extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static fromTypedArray(t,e){return new Y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}Y.ElementType="u32";class F extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}F.ElementType="u32";class R extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(R,t,e)}static fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}R.ElementType="u32";class q extends i{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static fromTypedArray(t,e){return new q(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}q.ElementType="i8";class I extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}I.ElementType="i8";class N extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(N,t,e)}static fromTypedArray(t,e){return new N(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}N.ElementType="i8";class X extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static fromTypedArray(t,e){return new X(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}X.ElementType="i8";class j extends i{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(j,t,e)}static fromTypedArray(t,e){return new j(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}j.ElementType="i16";class W extends f{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static fromTypedArray(t,e){return new W(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}W.ElementType="i16";class U extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}U.ElementType="i16";class V extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(V,t,e)}static fromTypedArray(t,e){return new V(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}V.ElementType="i16";class k extends i{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(k,t,e)}static fromTypedArray(t,e){return new k(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}k.ElementType="i32";class z extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(z,t,e)}static fromTypedArray(t,e){return new z(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}z.ElementType="i32";class G extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(G,t,e)}static fromTypedArray(t,e){return new G(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}G.ElementType="i32";class J extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static fromTypedArray(t,e){return new J(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}J.ElementType="i32"},23704:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(66360);const s=()=>n.c.getLogger("esri.views.3d.support.buffer.math")},58584:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var n=r(9456),s=r(3024),i=r(21136),o=r(54828);class f{async createIndex(t,e){const r=new Array;if(!t.vertexAttributes?.position)return new s.U;const n=this._createMeshData(t),i=null!=e?await e.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(i)}createIndexThread(t){const e=new Float64Array(t.position),r=this._createPooledRBush();return t.components?this._createIndexComponentsThread(r,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(r,e)}_createIndexAllThread(t,e){const r=new Array(e.length/9);let n=0;for(let t=0;t<e.length;t+=9)r[n++]=u(e,t,t+3,t+6);return t.load(r),{result:t.toJSON()}}_createIndexComponentsThread(t,e,r){let n=0;for(const t of r)n+=t.length/3;const s=new Array(n);let i=0;for(const t of r)for(let r=0;r<t.length;r+=3)s[i++]=u(e,3*t[r],3*t[r+1],3*t[r+2]);return t.load(s),{result:t.toJSON()}}_createMeshData(t){const e=((0,i.k$)(t.vertexSpace)?(0,o._S)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new s.U(9,(0,n.c)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function u(t,e,r,n){return{minX:Math.min(t[e],t[r],t[n]),maxX:Math.max(t[e],t[r],t[n]),minY:Math.min(t[e+1],t[r+1],t[n+1]),maxY:Math.max(t[e+1],t[r+1],t[n+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[r],t[r+1],t[r+2]],p2:[t[n],t[n+1],t[n+2]]}}},71488:(t,e,r)=>{r.d(e,{Kk:()=>f,QL:()=>u,yO:()=>o});var n=r(26832),s=r(66360),i=r(21136);function o(t,e){return t.isGeographic||t.isWebMercator&&(e??!0)}function f(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}function u(t,e,r,o){if(void 0!==o){(0,n.O2)(s.c.getLogger(t),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const f="local"===e.type;if(!(0,i.k$)(e)||o===f)return r.isGeographic||r.isWebMercator&&o;s.c.getLogger(t).warnOnce(`Specifying the 'geographic' parameter (${o}) for a Mesh vertex space of type "${e.type}" is not supported. This parameter will be ignored.`)}return f(e,r)}},54828:(t,e,r)=>{r.d(e,{CE:()=>T,EX:()=>E,_0:()=>Y,_S:()=>_,iS:()=>x,mC:()=>w,project:()=>S,qu:()=>v});var n=r(24296),s=r(68612),i=r(15008),o=r(87104),f=r(98472),u=r(62484),a=r(77556),c=r(60074),l=r(82448),h=r(51120),y=r(62880),p=r(15688),d=r(41104),m=r(21136),b=r(48952),g=r(71488),M=r(38496);function B(t,e,r){return(0,g.yO)(e.spatialReference,r?.geographic)?w(t,e,!1,r):function(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=s[t]*u+i,n[t+1]=s[t+1]*u+o,n[t+2]=s[t+2]*u+f;return{position:n,normal:t.normal,tangent:t.tangent}}(t,e,r)}function T(t,e=o.IJ){const{position:r,normal:n,tangent:s}=t;return{position:(0,b.a)(new Float64Array(r.length),r,e),normal:null!=n?(0,M.W4)(n,new Float32Array(n.length),e):null,tangent:null!=s?(0,M.AT)(s,new Float32Array(s.length),e):null}}function _(t,e,r,n){const{position:s,normal:i,tangent:o}=t;if(!(0,m.k$)(e))return{position:s,normal:i,tangent:o};const f=(0,m.mA)(e,n);return B(T(t,r?.localMatrix),f,{geographic:"local"===e.type})}function E(t,e,r){const n=(0,m.Al)(e,r),s=e.spatialReference,i=(0,m.k$)(n);if(!i)return{vertexAttributes:B(t,e,r),vertexSpace:n,transform:null};const{position:o,normal:f,tangent:u}=t,a=(0,g.Kk)(n,s);switch(n.type){case"georeferenced":return a?{vertexAttributes:w(t,e,i,r),vertexSpace:n,transform:null}:{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c};case"local":return{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c}}}function A(t,e,r){return(0,g.yO)(e.spatialReference,r?.geographic)?v(t,e,r):O(t,e,r)}function x(t,e,r,n,s){if(!(0,m.k$)(e))return A(t,n,s);const{spatialReference:i}=n,o=_(t,e,r,i);return n.equals((0,m.mA)(e,i))?O(o,n,s):A(o,n,s)}function S({positions:t,transform:e,vertexSpace:r,inSpatialReference:n,outSpatialReference:s,outPositions:a,localMode:d}){const m=r.origin??u.cX,g=null!=r.origin?e?.localMatrix??o.IJ:o.IJ;if("georeferenced"===r.type){const e=a??(0,p.Gg)(t.length);if((0,i.yK)(g,o.IJ)?(0,p.mw)(e,t):(0,b.a)(e,t,g),!(0,f.h)(m,u.cX)){const[t,r,n]=m;for(let s=0;s<e.length;s+=3)e[s]+=t,e[s+1]+=r,e[s+2]+=n}return(0,y.projectBuffer)(e,n,0,e,s,0,e.length/3),e}let M=n;const B=(0,l._s)(n);M=s.isWebMercator&&d||!(0,c.canProjectWithoutEngine)(n,B)?M:B,(0,h.y)(n,m,F,M),(0,i.iW)(F,F,g);const T=a??(0,p.Gg)(t.length);return(0,b.a)(T,t,F),(0,y.projectBuffer)(T,M,0,T,s,0,T.length/3),T}function w(t,e,r,n){const s=e.spatialReference,i=L(e,n,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){(0,b.a)(n,t,e);const s=new Float64Array(t.length);return(0,M.o$)(n,s,r)}(t.position,i,s,o),u=(0,a.yy)(q,i),c=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);return(0,b.b)(i,r,n),(0,M.QP)(i,t,e,s,i),i}(f,o,t.normal,u,s),l=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);(0,b.b)(i,r,n,4);for(let t=3;t<i.length;t+=4)i[t]=r[t];return(0,M.Cr)(i,t,e,s,i),i}(f,o,t.tangent,u,s);if(r){const{x:t,y:r,z:n}=e;(0,b.t)(f,f,[-t,-r,-(n??0)])}return{position:f,normal:c,tangent:l}}function O(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=(s[t]-i)/u,n[t+1]=(s[t+1]-o)/u,n[t+2]=(s[t+2]-f)/u;return{position:n,normal:t.normal,tangent:t.tangent}}function v(t,e,r){const n=e.spatialReference;L(e,r,F);const s=(0,i.S_)(R,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){const s=(0,M.K_)(t,e,n),i=new Float64Array(s.length);return(0,b.a)(i,s,r),i}(t.position,n,s,o),u=(0,a.yy)(q,s);return{position:f,normal:P(t.normal,t.position,o,n,u),tangent:C(t.tangent,t.position,o,n,u)}}function L(t,e,r){(0,h.y)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,l._s)(t.spatialReference));const n=Y(e?e.unit:null,t.spatialReference);return(0,i.aU)(r,r,[n,n,n]),r}function P(t,e,r,n,s){if(null==t)return null;const i=(0,M.cH)(t,e,r,n,new Float32Array(t.length));return(0,b.b)(i,i,s),i}function C(t,e,r,n,s){if(null==t)return null;const i=(0,M.GW)(t,e,r,n,new Float32Array(t.length));return(0,b.b)(i,i,s,4),i}function Y(t,e){if(null==t)return 1;const r=(0,n.eg)(e);return 1/(0,n.ck)(r,"meters",t)}const F=(0,o.Su)(),R=(0,o.Su)(),q=(0,s.Su)()},38496:(t,e,r)=>{r.d(e,{AT:()=>_,Cr:()=>A,GW:()=>E,K_:()=>M,QP:()=>g,W4:()=>T,cH:()=>b,o$:()=>B});var n=r(66360),s=r(77556),i=r(68612),o=r(87104),f=r(98472),u=r(62484),a=r(82448),c=r(51120),l=r(62880),h=r(60544),y=r(29120),p=r(71004),d=r(48952);const m=()=>n.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function b(t,e,r,n,s){return S(n)?(x(O.TO_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert spatial reference to PCPF"),s)}function g(t,e,r,n,s){return S(n)?(x(O.FROM_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert to spatial reference from PCPF"),s)}function M(t,e,r){return(0,l.projectBuffer)(t,e,0,r,(0,a._s)(e),0,t.length/3),r}function B(t,e,r){return(0,l.projectBuffer)(t,(0,a._s)(r),0,e,r,0,t.length/3),e}function T(t,e,r){return(0,s.yy)(Y,r),(0,d.b)(e,t,Y),(0,s.QT)(Y)||(0,d.n)(e,e),e}function _(t,e,r){if((0,s.yy)(Y,r),(0,d.b)(e,t,Y,4),(0,s.QT)(Y)||(0,d.n)(e,e,4),t!==e)for(let r=3;r<t.length;r+=4)e[r]=t[r];return e}function E(t,e,r,n,s){if(!S(n))return m().error("Cannot convert spatial reference to PCPF"),s;x(O.TO_PCPF,p.Yj.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,4*Float32Array.BYTES_PER_ELEMENT));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function A(t,e,r,n,s){if(!S(n))return m().error("Cannot convert to spatial reference from PCPF"),s;x(O.FROM_PCPF,p.Yj.fromTypedArray(t,16),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,16));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function x(t,e,r,n,i,o){if(!e)return;const u=r.count,l=(0,a._s)(i);if(w(i))for(let r=0;r<u;r++)n.getVec(r,L),e.getVec(r,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C),t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),o.setVec(r,P);else for(let i=0;i<u;i++){n.getVec(i,L),e.getVec(i,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C);const u=(0,y.MB)(r.get(i,1));let a=Math.cos(u);t===O.TO_PCPF&&(a=1/a),Y[0]*=a,Y[1]*=a,Y[2]*=a,Y[3]*=a,Y[4]*=a,Y[5]*=a,t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),(0,f.n)(P,P),o.setVec(i,P)}return o}function S(t){return w(t)||function(t){return t.isWebMercator}(t)}function w(t){return t.isWGS84||(0,h.Ub)(t)||(0,h.qg)(t)||(0,h.UB)(t)}var O,v;(v=O||(O={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const L=(0,u.Su)(),P=(0,u.Su)(),C=(0,o.Su)(),Y=(0,i.Su)()},21136:(t,e,r)=>{r.d(e,{Al:()=>y,k$:()=>l,mA:()=>h,wX:()=>c});var n=r(26832),s=r(66360),i=r(67776),o=r(51232),f=r(13708),u=r(48952);function a(){return s.c.getLogger("esri.geometry.Mesh")}function c(t){const{vertexSpace:e}=t;if(null!=e.origin)return t.clone();const{anchor:r}=t,n=r.clone(),s=new o.c({origin:[n.x,n.y,n.z]}),i=t.cloneWithVertexSpace(s),{position:f}=i.vertexAttributes;return i.vertexAttributes.position=(0,u.t)(new Float64Array(f.length),f,[-n.x,-n.y,-(n.z??0)]),i.vertexAttributesChanged(),i}function l(t){return null!=t.origin}function h(t,e){if(!l(t))return null;const[r,n,s]=t.origin;return new i.c({x:r,y:n,z:s,spatialReference:e})}function y(t,e){const{x:r,y:s,z:i,spatialReference:u}=t,c=[r,s,i??0];if(void 0!==e?.geographic){if((0,n.O2)(a(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!e?.vertexSpace)return e?.geographic?new f.c({origin:c}):new o.c({origin:c});a().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!e?.vertexSpace)return u.isGeographic||u.isWebMercator?new f.c({origin:c}):new o.c({origin:c});switch(e.vertexSpace){case"local":return new f.c({origin:c});case"georeferenced":return new o.c({origin:c});case"georeferenced-absolute":return new o.c}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6248,6147,4828],{8528:(t,e,r)=>{r.d(e,{c:()=>n,g:()=>s});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,r)=>{r.d(e,{q:()=>u});var n,s,i,o=r(8528),f={exports:{}};n=f,s=function(){function t(r,n,s,i,o){for(;i>s;){if(i-s>600){var f=i-s+1,u=n-s+1,a=Math.log(f),c=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*c*(f-c)/f)*(u-f/2<0?-1:1);t(r,n,Math.max(s,Math.floor(n-u*c/f+l)),Math.min(i,Math.floor(n+(f-u)*c/f+l)),o)}var h=r[n],y=s,p=i;for(e(r,s,n),o(r[i],h)>0&&e(r,s,i);y<p;){for(e(r,y,p),y++,p--;o(r[y],h)<0;)y++;for(;o(r[p],h)>0;)p--}0===o(r[s],h)?e(r,s,p):e(r,++p,i),p<=n&&(s=p+1),n<=p&&(i=p-1)}}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}return function(e,n,s,i,o){t(e,n,s||0,i||e.length-1,o||r)}},void 0!==(i=s())&&(n.exports=i);const u=(0,o.g)(f.exports)},48952:(t,e,r)=>{r.d(e,{a:()=>i,b:()=>f,c:()=>o,d:()=>s,e:()=>l,f:()=>u,n:()=>h,s:()=>a,t:()=>c}),r(9456);var n=r(23704);function s(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,n=3,s=n){if(t.length/n!==Math.ceil(e.length/s))return t;const i=t.length/n,o=r[0],f=r[1],u=r[2],a=r[4],c=r[5],l=r[6],h=r[8],y=r[9],p=r[10],d=r[12],m=r[13],g=r[14];let b=0,M=0;for(let r=0;r<i;r++){const r=e[b],i=e[b+1],B=e[b+2];t[M]=o*r+a*i+h*B+d,t[M+1]=f*r+c*i+y*B+m,t[M+2]=u*r+l*i+p*B+g,b+=s,M+=n}return t}function o(t,e,r){f(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,s=3,i=s){if(t.length/s!==Math.ceil(e.length/i))return void(0,n.A)().error("source and destination buffers need to have the same number of elements");const o=t.length/s,f=r[0],u=r[1],a=r[2],c=r[3],l=r[4],h=r[5],y=r[6],p=r[7],d=r[8];let m=0,g=0;for(let r=0;r<o;r++){const r=e[m],n=e[m+1],o=e[m+2];t[g]=f*r+c*n+y*o,t[g+1]=u*r+l*n+p*o,t[g+2]=a*r+h*n+d*o,m+=i,g+=s}}function u(t,e,r){a(t.typedBuffer,e,r,t.typedBufferStride)}function a(t,e,r,n=3){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,o=e.typedBufferStride;let f=0,u=0;for(let e=0;e<s;e++)t[u]=r*i[f],t[u+1]=r*i[f+1],t[u+2]=r*i[f+2],f+=o,u+=n}function c(t,e,r,n=3,s=n){const i=t.length/n;if(i!==Math.ceil(e.length/s))return t;let o=0,f=0;for(let u=0;u<i;u++)t[f]=e[o]+r[0],t[f+1]=e[o+1]+r[1],t[f+2]=e[o+2]+r[2],o+=s,f+=n;return t}function l(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const s=Math.min(t.length/r,e.length/n);let i=0,o=0;for(let f=0;f<s;f++){const s=e[i],f=e[i+1],u=e[i+2],a=s*s+f*f+u*u;if(a>0){const e=1/Math.sqrt(a);t[o]=e*s,t[o+1]=e*f,t[o+2]=e*u}i+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:l,scale:a,scaleView:u,shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,f=e.typedBufferStride;let u=0,a=0;for(let t=0;t<n;t++)s[a]=o[u]>>r,s[a+1]=o[u+1]>>r,s[a+2]=o[u+2]>>r,u+=f,a+=i},transformMat3:f,transformMat3View:o,transformMat4:i,transformMat4View:s,translate:c},Symbol.toStringTag,{value:"Module"}))},3856:(t,e,r)=>{r.d(e,{m:()=>l,q:()=>c});var n=r(41948),s=r(43780),i=(r(9456),r(62088)),o=(r(66360),r(70680)),f=r(71448),u=r(20916),a=r(12552);const c=t=>{let e=class extends t{clone(){const t=(0,u.m6)(this);(0,o.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,n={},s=new Map;for(const t in e){const o=e[t],u=r?.originOf(t),a=o.clonable;if(o.readOnly||!1===a||u!==f.sT.USER&&u!==f.sT.DEFAULTS&&u!==f.sT.WEB_MAP&&u!==f.sT.WEB_SCENE)continue;const c=this[t];let l=null;l="function"==typeof a?a(c):"reference"===a?c:(0,i.gx)(c),null!=c&&null==l||(u===f.sT.DEFAULTS?s.set(t,l):n[t]=l)}const a=new(0,Object.getPrototypeOf(this).constructor)(n);if(s.size){const t=(0,u.m6)(a)?.store;if(t)for(const[e,r]of s)t.set(e,r,f.sT.DEFAULTS)}return a}};return e=(0,n._)([(0,a.c)("esri.core.Clonable")],e),e};let l=class extends(c(s.c)){};l=(0,n._)([(0,a.c)("esri.core.Clonable")],l)},9592:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(50504);class s extends n.g{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},68612:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,o,f,u){return[t,e,r,n,s,i,o,f,u]}r.d(e,{IJ:()=>i,Su:()=>n,WK:()=>s});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:n,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:s},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d){return[t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,r)=>{function n(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,r)=>{r.d(e,{KU:()=>l,QT:()=>p,S_:()=>f,WO:()=>i,_7:()=>u,aU:()=>c,iW:()=>a,kr:()=>s,oL:()=>o,yy:()=>h});var n=r(47364);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,r,n,s,i,o,f,u,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=o,t[6]=f,t[7]=u,t[8]=a,t}function o(t,e){if(t===e){const r=e[1],n=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u;let p=r*l+n*h+s*y;return p?(p=1/p,t[0]=l*p,t[1]=(-c*n+s*a)*p,t[2]=(f*n-s*o)*p,t[3]=h*p,t[4]=(c*r-s*u)*p,t[5]=(-f*r+s*i)*p,t[6]=y*p,t[7]=(-a*r+n*u)*p,t[8]=(o*r-n*i)*p,t):null}function u(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8];return t[0]=o*c-f*a,t[1]=s*a-n*c,t[2]=n*f-s*o,t[3]=f*u-i*c,t[4]=r*c-s*u,t[5]=s*i-r*f,t[6]=i*a-o*u,t[7]=n*u-r*a,t[8]=r*o-n*i,t}function a(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1],p=r[2],d=r[3],m=r[4],g=r[5],b=r[6],M=r[7],B=r[8];return t[0]=h*n+y*o+p*a,t[1]=h*s+y*f+p*c,t[2]=h*i+y*u+p*l,t[3]=d*n+m*o+g*a,t[4]=d*s+m*f+g*c,t[5]=d*i+m*u+g*l,t[6]=b*n+M*o+B*a,t[7]=b*s+M*f+B*c,t[8]=b*i+M*u+B*l,t}function c(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function l(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r+r,f=n+n,u=s+s,a=r*o,c=n*o,l=n*f,h=s*o,y=s*f,p=s*u,d=i*o,m=i*f,g=i*u;return t[0]=1-l-p,t[3]=c-g,t[6]=h+m,t[1]=c+g,t[4]=1-a-p,t[7]=y-d,t[2]=h-m,t[5]=y+d,t[8]=1-a-l,t}function h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=e[9],h=e[10],y=e[11],p=e[12],d=e[13],m=e[14],g=e[15],b=r*f-n*o,M=r*u-s*o,B=r*a-i*o,T=n*u-s*f,_=n*a-i*f,E=s*a-i*u,A=c*d-l*p,x=c*m-h*p,S=c*g-y*p,w=l*m-h*d,O=l*g-y*d,v=h*g-y*m;let L=b*v-M*O+B*w+T*S-_*x+E*A;return L?(L=1/L,t[0]=(f*v-u*O+a*w)*L,t[1]=(u*S-o*v-a*x)*L,t[2]=(o*O-f*S+a*A)*L,t[3]=(s*O-n*v-i*w)*L,t[4]=(r*v-s*S+i*x)*L,t[5]=(n*S-r*O-i*A)*L,t[6]=(d*E-m*_+g*T)*L,t[7]=(m*B-p*E-g*M)*L,t[8]=(p*_-d*B+g*b)*L,t):null}function y(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function p(t){const e=(0,n.Au)(),r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8];return Math.abs(1-(r*r+o*o+a*a))<=e&&Math.abs(1-(s*s+f*f+c*c))<=e&&Math.abs(1-(i*i+u*u+l*l))<=e}const d=a,m=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:u,copy:function(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},determinant:function(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],o=t[5],f=t[6],u=t[7],a=t[8];return e*(a*i-o*u)+r*(-a*s+o*f)+n*(u*s-i*f)},equals:function(t,e){const r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8],h=e[0],y=e[1],p=e[2],d=e[3],m=e[4],g=e[5],b=e[6],M=e[7],B=e[8],T=(0,n.Au)();return Math.abs(r-h)<=T*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-y)<=T*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(i-p)<=T*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-d)<=T*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(f-m)<=T*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(u-g)<=T*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(a-b)<=T*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-M)<=T*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-B)<=T*Math.max(1,Math.abs(l),Math.abs(B))},exactEquals:function(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]},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,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:l,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[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:f,isOrthoNormal:p,mul:d,multiply:a,multiplyScalar:function(t,e,r){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]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:h,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],o=e[5],f=e[6],u=e[8],a=e[9],c=e[10],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u,p=r*l+n*h+s*y;if(!p)return null;const d=1/p;return t[0]=l*d,t[1]=(-c*n+s*a)*d,t[2]=(f*n-s*o)*d,t[3]=h*d,t[4]=(c*r-s*u)*d,t[5]=(-f*r+s*i)*d,t[6]=y*d,t[7]=(-a*r+n*u)*d,t[8]=(o*r-n*i)*d,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=Math.sin(r),y=Math.cos(r);return t[0]=y*n+h*o,t[1]=y*s+h*f,t[2]=y*i+h*u,t[3]=y*o-h*n,t[4]=y*f-h*s,t[5]=y*u-h*i,t[6]=a,t[7]=c,t[8]=l,t},scale:c,scaleByVec2:function(t,e,r){const n=r[0],s=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:y,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=o,t[4]=f,t[5]=u,t[6]=h*n+y*o+a,t[7]=h*s+y*f+c,t[8]=h*i+y*u+l,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},41512:(t,e,r)=>{r.d(e,{C0:()=>c,WO:()=>g,Wu:()=>d,fO:()=>y,iW:()=>l,sF:()=>O,yG:()=>a});var n=r(68612),s=r(2620),i=r(62484),o=r(47364),f=r(98472),u=r(74784);function a(t,e,r){r*=.5;const n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,o.Au)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=r[0],u=r[1],a=r[2],c=r[3];return t[0]=n*c+o*f+s*a-i*u,t[1]=s*c+o*u+i*f-n*a,t[2]=i*c+o*a+n*u-s*f,t[3]=o*c-n*f-s*u-i*a,t}function h(t,e,r,n){const s=e[0],i=e[1],f=e[2],u=e[3];let a,c,l,h,y,p=r[0],d=r[1],m=r[2],g=r[3];return c=s*p+i*d+f*m+u*g,c<0&&(c=-c,p=-p,d=-d,m=-m,g=-g),1-c>(0,o.Au)()?(a=Math.acos(c),l=Math.sin(a),h=Math.sin((1-n)*a)/l,y=Math.sin(n*a)/l):(h=1-n,y=n),t[0]=h*s+y*p,t[1]=h*i+y*d,t[2]=h*f+y*m,t[3]=h*u+y*g,t}function y(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function p(t,e){const r=e[0]+e[4]+e[8];let n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const s=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*s+s]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*s+i]-e[3*i+s])*n,t[s]=(e[3*s+r]+e[3*r+s])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function d(t,e,r,n){const s=.5*Math.PI/180;e*=s,r*=s,n*=s;const i=Math.sin(e),o=Math.cos(e),f=Math.sin(r),u=Math.cos(r),a=Math.sin(n),c=Math.cos(n);return t[0]=i*u*c-o*f*a,t[1]=o*f*c+i*u*a,t[2]=o*u*a-i*f*c,t[3]=o*u*c+i*f*a,t}const m=u.c,g=u.s,b=u.g,M=l,B=u.d,T=u.h,_=u.l,E=u.i,A=E,x=u.j,S=x,w=u.n,O=u.a,v=u.e,L=(0,i.Su)(),P=(0,i.WK)(1,0,0),C=(0,i.WK)(0,1,0),Y=(0,s.Su)(),F=(0,s.Su)(),R=(0,n.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,e){const r=e[0],n=e[1],s=e[2];return t[0]=r,t[1]=n,t[2]=s,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-s*s)),t},conjugate:y,copy:m,dot:T,equals:v,exactEquals:O,fromEuler:d,fromMat3:p,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r*r+n*n+s*s+i*i,f=o?1/o:0;return t[0]=-r*f,t[1]=-n*f,t[2]=-s*f,t[3]=i*f,t},len:A,length:E,lerp:_,mul:M,multiply:l,normalize:w,random:function(t){const e=o.QR,r=e(),n=e(),s=e(),i=Math.sqrt(1-r),f=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=f*Math.sin(2*Math.PI*s),t[3]=f*Math.cos(2*Math.PI*s),t},rotateX:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*f,t[1]=s*u+i*f,t[2]=i*u-s*f,t[3]=o*u-n*f,t},rotateY:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*f,t[1]=s*u+o*f,t[2]=i*u+n*f,t[3]=o*u-s*f,t},rotateZ:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+s*f,t[1]=s*u-n*f,t[2]=i*u+o*f,t[3]=o*u-i*f,t},rotationTo:function(t,e,r){const n=(0,f.j)(e,r);return n<-.999999?((0,f.b)(L,P,e),(0,f.C)(L)<1e-6&&(0,f.b)(L,C,e),(0,f.n)(L,L),a(t,L,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,f.b)(L,e,r),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+n,w(t,t))},scale:B,set:g,setAxes:function(t,e,r,n){const s=R;return s[0]=r[0],s[3]=r[1],s[6]=r[2],s[1]=n[0],s[4]=n[1],s[7]=n[2],s[2]=-e[0],s[5]=-e[1],s[8]=-e[2],w(t,p(t,s))},setAxisAngle:a,slerp:h,sqlerp:function(t,e,r,n,s,i){return h(Y,e,s,i),h(F,r,n,i),h(t,Y,F,2*i*(1-i)),t},sqrLen:S,squaredLength:x,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,r)=>{r.d(e,{Cq:()=>h,WO:()=>s,c9:()=>p,m4:()=>y,qy:()=>u});var n=r(47364);function s(t,e,r){return t[0]=e,t[1]=r,t}function i(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function o(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function u(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function a(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function c(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function l(t){const e=t[0],r=t[1];return e*e+r*r}function h(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function y(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function p(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),f=Math.cos(n);return t[0]=s*f-i*o+r[0],t[1]=s*o+i*f+r[1],t}const d=c,m=i,g=o,b=f,M=u,B=a,T=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let o=r*r+n*n;o>0&&(o=1/Math.sqrt(o));let f=s*s+i*i;f>0&&(f=1/Math.sqrt(f));const u=(r*s+n*i)*o*f;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:M,distance:u,div:b,divide:f,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const r=t[0],s=t[1],i=e[0],o=e[1],f=(0,n.Au)();return Math.abs(r-i)<=f*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=f*Math.max(1,Math.abs(s),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:c,lerp:h,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:g,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],o=e[1]-r[1];const f=(n[0]*i+n[1]*o)*(s-1);return i=n[0]*f,o=n[1]*f,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const r=2*(0,n.QR)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:s,sqrDist:B,sqrLen:T,squaredDistance:a,squaredLength:l,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:m,subtract:i,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:y,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,r)=>{r.d(e,{U:()=>o});var n=r(92400),s=r(24680),i=r(85304);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=l,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),B.prune(),T.prune(),_.prune()}all(t){this._all(this._data,t)}search(t,e){let r=this._data;const n=this._toBBox;if(g(t,r))for(M.clear();r;){for(let s=0,i=r.children.length;s<i;s++){const i=r.children[s],o=r.leaf?n(i):i;g(t,o)&&(r.leaf?e(i):m(t,o)?this._all(i,e):M.push(i))}r=M.pop()}}collides(t){let e=this._data;const r=this._toBBox;if(!g(t,e))return!1;for(M.clear();e;){for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n],i=e.leaf?r(s):s;if(g(t,i)){if(e.leaf||m(t,i))return!0;M.push(s)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new x([]),this}remove(t){if(!t)return this;let e,r=this._data,s=null,i=0,o=!1;const f=this._toBBox(t);for(T.clear(),_.clear();r||T.length>0;){if(r||(r=T.pop(),s=T.data[T.length-1],i=_.pop()??0,o=!0),r.leaf&&(e=(0,n.IP)(r.children,t,r.children.length,r.indexHint),-1!==e))return r.children.splice(e,1),T.push(r),this._condense(T),this;o||r.leaf||!m(r,f)?s?(i++,r=s.children[i],o=!1):r=null:(T.push(r),_.push(i),i=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let r=t;for(B.clear();r;){if(!0===r.leaf)for(const t of r.children)e(t);else B.pushArray(r.children);r=B.pop()??null}}_build(t,e,r,n){const s=r-e+1;let i=this._maxEntries;if(s<=i){const n=new x(t.slice(e,r+1));return f(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(n-1)));const o=new S([]);o.height=n;const u=Math.ceil(s/i),a=u*Math.ceil(Math.sqrt(i));b(t,e,r,a,this._compareMinX);for(let s=e;s<=r;s+=a){const e=Math.min(s+a-1,r);b(t,s,e,u,this._compareMinY);for(let r=s;r<=e;r+=u){const s=Math.min(r+u-1,e);o.children.push(this._build(t,r,s,n-1))}}return f(o,this._toBBox),o}_chooseSubtree(t,e,r,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==r;){let r,n=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],f=h(o),u=p(t,o)-f;u<s?(s=u,n=f<n?f:n,r=o):u===s&&f<n&&(n=f,r=o)}e=r||e.children[0]}return e}_insert(t,e,r){const n=this._toBBox,s=r?t:n(t);T.clear();const i=this._chooseSubtree(s,this._data,e,T);for(i.children.push(t),a(i,s);e>=0&&T.data[e].children.length>this._maxEntries;)this._split(T,e),e--;this._adjustParentBBoxes(s,T,e)}_split(t,e){const r=t.data[e],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);const i=this._chooseSplitIndex(r,s,n);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=r.children.splice(i,r.children.length-i),u=r.leaf?new x(o):new S(o);u.height=r.height,f(r,this._toBBox),f(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(r,u)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,f(this._data,this._toBBox)}_chooseSplitIndex(t,e,r){let n,s,i;n=s=1/0;for(let o=e;o<=r-e;o++){const e=u(t,0,o,this._toBBox),f=u(t,o,r,this._toBBox),a=d(e,f),c=h(e)+h(f);a<n?(n=a,i=o,s=c<s?c:s):a===n&&c<s&&(s=c,i=o)}return i}_chooseSplitAxis(t,e,r){const n=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:l;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,s)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);const s=this._toBBox,i=u(t,0,e,s),o=u(t,r-e,r,s);let f=y(i)+y(o);for(let n=e;n<r-e;n++){const e=t.children[n];a(i,t.leaf?s(e):e),f+=y(i)}for(let n=r-e-1;n>=e;n--){const e=t.children[n];a(o,t.leaf?s(e):e),f+=y(o)}return f}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)a(e.data[n],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const r=t.data[e];if(0===r.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,n.IP)(i,r,i.length,s.indexHint),1)}else this.clear();else f(r,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function f(t,e){u(t,0,t.children.length,e,t)}function u(t,e,r,n,s){s||(s=new x([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<r;o++)i=t.children[o],a(s,t.leaf?n(i):i);return s}function a(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function d(t,e){const r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function b(t,e,r,n,s){const o=[e,r];for(;o.length;){const e=o.pop(),r=o.pop();if(e-r<=n)continue;const f=r+Math.ceil((e-r)/n/2)*n;(0,i.q)(t,f,r,e,s),o.push(r,f,f,e)}}const M=new s.c,B=new s.c,T=new s.c,_=new s.c({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new n.is}}class x extends A{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends A{constructor(t){super(),this.children=t,this.leaf=!1}}},51120:(t,e,r)=>{r.d(e,{y:()=>a});var n=r(53648),s=r(15008),i=r(62484);function o(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),f=r;return f[0]=-n,f[4]=-i*s,f[8]=o*s,f[12]=0,f[1]=s,f[5]=-i*n,f[9]=o*n,f[13]=0,f[2]=0,f[6]=o,f[10]=i,f[14]=0,f[3]=0,f[7]=0,f[11]=0,f[15]=1,f}var f=r(38380),u=r(60544);function a(t,e,r,n){if(null==t||null==n)return!1;const i=(0,f.Se)(t,f.Wy),a=(0,f.Se)(n,f.mq);if(i===a&&!c(a)&&(i!==f.o3.UNKNOWN||(0,u.yK)(t,n)))return(0,s.mu)(r,e),!0;if(c(a)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),o(l*h[0],l*h[1],r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}if((a===f.o3.WEB_MERCATOR||a===f.o3.PLATE_CARREE||a===f.o3.WGS84)&&(i===f.o3.WGS84||i===f.o3.CGCS2000&&a===f.o3.PLATE_CARREE||i===f.o3.SPHERICAL_ECEF||i===f.o3.WEB_MERCATOR)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),i===f.o3.SPHERICAL_ECEF?function(t,e,r){o(t,e,r),(0,s.oL)(r,r)}(l*h[0],l*h[1],r):(0,s.ZX)(r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}return!1}function c(t){return t===f.o3.SPHERICAL_ECEF||t===f.o3.SPHERICAL_MARS_PCPF||t===f.o3.SPHERICAL_MOON_PCPF}const l=(0,n.EF)(1),h=(0,i.Su)(),y=(0,i.Su)()},82448:(t,e,r)=>{r.d(e,{_s:()=>a});var n=r(22080),s=r(56156),i=r(60544);const o=new s.c(n._),f=new s.c(n.IP),u=new s.c(n.Om);function a(t){const e=c.get(t);if(e)return e;let r=o;if(t)if(t===f)r=f;else if(t===u)r=u;else{const e=t.wkid,n=t.latestWkid;if(null!=e||null!=n)(0,i.cJ)(e)||(0,i.cJ)(n)?r=f:((0,i.C_)(e)||(0,i.C_)(n))&&(r=u);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===l?r=f:t===h&&(r=u)}}}return c.set(t,r),r}new s.c(n.MJ);const c=new Map,l=f.wkt.toUpperCase(),h=u.wkt.toUpperCase()},15688:(t,e,r)=>{r.d(e,{Gg:()=>s,cp:()=>i,lL:()=>o,mw:()=>f,qW:()=>u});var n=r(72008);function s(t,e=!1){return t<=n._?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,n.c7)(t)?t.length:t.byteLength/8)<=n._?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function f(t,e){for(let r=0;r<e.length;++r)t[r]=e[r];return t}function u(t){return Array.isArray(t)?new Float64Array(t):t}},51232:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552);let a=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,n._)([(0,f.G)({georeferenced:"georeferenced"},{readOnly:!0})],a.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],a.prototype,"origin",void 0),a=(0,n._)([(0,u.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],a);const c=a},13708:(t,e,r)=>{r.d(e,{c:()=>l});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),a=r(62484);let c=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="local",this.origin=(0,a.Su)()}};(0,n._)([(0,f.G)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,u.c)("esri.geometry.support.MeshLocalVertexSpace")],c);const l=c},41104:(t,e,r)=>{r.d(e,{c:()=>g});var n,s=r(41948),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(12552)),u=r(15008),a=r(87104),c=r(41512),l=r(2620),h=r(98472),y=r(62484),p=r(66952);let d=n=class extends i.am{constructor(t){super(t),this.translation=(0,y.Su)(),this.rotationAxis=(0,y.eu)(p.up),this.rotationAngle=0,this.scale=(0,y.WK)(1,1,1)}get rotation(){return(0,p.eE)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,y.ct)((0,p.Yz)(t)),this.rotationAngle=(0,p.i4)(t)}get localMatrix(){const t=(0,a.Su)();return(0,c.yG)(m,(0,p.Yz)(this.rotation),(0,p.kX)(this.rotation)),(0,u.um)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.S_)((0,a.Su)(),this.localMatrix)}applyLocal(t,e){return(0,h.e)(e,t,this.localMatrix)}applyLocalInverse(t,e){return(0,h.e)(e,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.sF)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,y.ct)(this.translation),rotationAxis:(0,y.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,y.ct)(this.scale)};return new n(t)}};(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s._)([(0,o.qq)()],d.prototype,"rotation",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrix",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrixInverse",null),d=n=(0,s._)([(0,f.c)("esri.geometry.support.MeshTransform")],d);const m=(0,l.Su)(),g=d},66952:(t,e,r)=>{r.d(e,{GA:()=>l,Jn:()=>c,Su:()=>u,Yz:()=>h,eE:()=>a,i4:()=>y,kX:()=>p,up:()=>d});var n=r(53648),s=r(41512),i=r(2620),o=r(98472),f=r(62484);function u(t=d){return[t[0],t[1],t[2],t[3]]}function a(t,e,r=u()){return(0,o.c)(r,t),r[3]=e,r}function c(t,e,r=u()){return(0,s.yG)(m,t,p(t)),(0,s.yG)(g,e,p(e)),(0,s.iW)(m,g,m),function(t,e){return t[3]=e,t}(r,(0,n.UB)((0,s.C0)(r,m)))}function l(t,e,r,n=u()){return a(f.UV,t,b),a(f.IR,e,M),a(f.wx,r,B),c(b,M,b),c(b,B,n),n}function h(t){return t}function y(t){return t[3]}function p(t){return(0,n.EF)(t[3])}r(37008);const d=[0,0,1,0],m=(0,i.Su)(),g=(0,i.Su)(),b=(u(),u()),M=u(),B=u()},71004:(t,e,r)=>{r.d(e,{AZ:()=>h,oN:()=>B,Mt:()=>j,Ep:()=>k,kV:()=>q,Ko:()=>m,m_:()=>g,IL:()=>b,mF:()=>M,E_:()=>O,Ym:()=>C,Kg:()=>A,U7:()=>y,wT:()=>T,iN:()=>W,mI:()=>G,oR:()=>I,kg:()=>v,qZ:()=>Y,eS:()=>x,Yj:()=>p,Ax:()=>_,g7:()=>U,Yv:()=>z,Oq:()=>N,k5:()=>L,ER:()=>F,IN:()=>S,_5:()=>d,Ip:()=>E,OS:()=>V,i9:()=>J,mq:()=>X,Ig:()=>P,q$:()=>R,sb:()=>w});class n{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}n.ElementCount=9;class s{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<16;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}s.ElementCount=16;class i{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}i.ElementCount=1;var o=r(37648);class f{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.WO)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}f.ElementCount=2;var u=r(98472);class a{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.s)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}a.ElementCount=3;var c=r(74784);class l{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,c.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}l.ElementCount=4;class h extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static fromTypedArray(t,e){return new h(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}h.ElementType="f32";class y extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(y,t,e)}static fromTypedArray(t,e){return new y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}y.ElementType="f32";class p extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(p,t,e)}static fromTypedArray(t,e){return new p(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}p.ElementType="f32";class d extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(d,t,e)}static fromTypedArray(t,e){return new d(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}d.ElementType="f32";class m extends n{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static fromTypedArray(t,e){return new m(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}m.ElementType="f32";class g extends n{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(g,t,e)}static fromTypedArray(t,e){return new g(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}g.ElementType="f64";class b extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}b.ElementType="f32";class M extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(M,t,e)}static fromTypedArray(t,e){return new M(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}M.ElementType="f64";class B extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(B,t,e)}static fromTypedArray(t,e){return new B(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}B.ElementType="f64";class T extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}T.ElementType="f64";class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static fromTypedArray(t,e){return new _(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}_.ElementType="f64";class E extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(E,t,e)}static fromTypedArray(t,e){return new E(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}E.ElementType="f64";class A extends i{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(A,t,e)}static fromTypedArray(t,e){return new A(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}A.ElementType="u8";class x extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(x,t,e)}static fromTypedArray(t,e){return new x(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}x.ElementType="u8";class S extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}S.ElementType="u8";class w extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static fromTypedArray(t,e){return new w(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}w.ElementType="u8";class O extends i{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}O.ElementType="u16";class v extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(v,t,e)}static fromTypedArray(t,e){return new v(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}v.ElementType="u16";class L extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}L.ElementType="u16";class P extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static fromTypedArray(t,e){return new P(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}P.ElementType="u16";class C extends i{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(C,t,e)}static fromTypedArray(t,e){return new C(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}C.ElementType="u32";class Y extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static fromTypedArray(t,e){return new Y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}Y.ElementType="u32";class F extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}F.ElementType="u32";class R extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(R,t,e)}static fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}R.ElementType="u32";class q extends i{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static fromTypedArray(t,e){return new q(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}q.ElementType="i8";class I extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}I.ElementType="i8";class N extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(N,t,e)}static fromTypedArray(t,e){return new N(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}N.ElementType="i8";class X extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static fromTypedArray(t,e){return new X(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}X.ElementType="i8";class j extends i{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(j,t,e)}static fromTypedArray(t,e){return new j(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}j.ElementType="i16";class W extends f{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static fromTypedArray(t,e){return new W(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}W.ElementType="i16";class U extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}U.ElementType="i16";class V extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(V,t,e)}static fromTypedArray(t,e){return new V(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}V.ElementType="i16";class k extends i{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(k,t,e)}static fromTypedArray(t,e){return new k(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}k.ElementType="i32";class G extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(G,t,e)}static fromTypedArray(t,e){return new G(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}G.ElementType="i32";class z extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(z,t,e)}static fromTypedArray(t,e){return new z(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}z.ElementType="i32";class J extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static fromTypedArray(t,e){return new J(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}J.ElementType="i32"},23704:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(66360);const s=()=>n.c.getLogger("esri.views.3d.support.buffer.math")},58584:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var n=r(9456),s=r(3024),i=r(21136),o=r(54828);class f{async createIndex(t,e){const r=new Array;if(!t.vertexAttributes?.position)return new s.U;const n=this._createMeshData(t),i=null!=e?await e.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(i)}createIndexThread(t){const e=new Float64Array(t.position),r=this._createPooledRBush();return t.components?this._createIndexComponentsThread(r,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(r,e)}_createIndexAllThread(t,e){const r=new Array(e.length/9);let n=0;for(let t=0;t<e.length;t+=9)r[n++]=u(e,t,t+3,t+6);return t.load(r),{result:t.toJSON()}}_createIndexComponentsThread(t,e,r){let n=0;for(const t of r)n+=t.length/3;const s=new Array(n);let i=0;for(const t of r)for(let r=0;r<t.length;r+=3)s[i++]=u(e,3*t[r],3*t[r+1],3*t[r+2]);return t.load(s),{result:t.toJSON()}}_createMeshData(t){const e=((0,i.k$)(t.vertexSpace)?(0,o._S)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new s.U(9,(0,n.c)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function u(t,e,r,n){return{minX:Math.min(t[e],t[r],t[n]),maxX:Math.max(t[e],t[r],t[n]),minY:Math.min(t[e+1],t[r+1],t[n+1]),maxY:Math.max(t[e+1],t[r+1],t[n+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[r],t[r+1],t[r+2]],p2:[t[n],t[n+1],t[n+2]]}}},71488:(t,e,r)=>{r.d(e,{Kk:()=>f,QL:()=>u,yO:()=>o});var n=r(26832),s=r(66360),i=r(21136);function o(t,e){return t.isGeographic||t.isWebMercator&&(e??!0)}function f(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}function u(t,e,r,o){if(void 0!==o){(0,n.O2)(s.c.getLogger(t),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const f="local"===e.type;if(!(0,i.k$)(e)||o===f)return r.isGeographic||r.isWebMercator&&o;s.c.getLogger(t).warnOnce(`Specifying the 'geographic' parameter (${o}) for a Mesh vertex space of type "${e.type}" is not supported. This parameter will be ignored.`)}return f(e,r)}},54828:(t,e,r)=>{r.d(e,{CE:()=>T,EX:()=>E,_0:()=>Y,_S:()=>_,iS:()=>x,mC:()=>w,project:()=>S,qu:()=>v});var n=r(24296),s=r(68612),i=r(15008),o=r(87104),f=r(98472),u=r(62484),a=r(77556),c=r(60074),l=r(82448),h=r(51120),y=r(62880),p=r(15688),d=r(41104),m=r(21136),g=r(48952),b=r(71488),M=r(38496);function B(t,e,r){return(0,b.yO)(e.spatialReference,r?.geographic)?w(t,e,!1,r):function(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=s[t]*u+i,n[t+1]=s[t+1]*u+o,n[t+2]=s[t+2]*u+f;return{position:n,normal:t.normal,tangent:t.tangent}}(t,e,r)}function T(t,e=o.IJ){const{position:r,normal:n,tangent:s}=t;return{position:(0,g.a)(new Float64Array(r.length),r,e),normal:null!=n?(0,M.W4)(n,new Float32Array(n.length),e):null,tangent:null!=s?(0,M.AT)(s,new Float32Array(s.length),e):null}}function _(t,e,r,n){const{position:s,normal:i,tangent:o}=t;if(!(0,m.k$)(e))return{position:s,normal:i,tangent:o};const f=(0,m.mA)(e,n);return B(T(t,r?.localMatrix),f,{geographic:"local"===e.type})}function E(t,e,r){const n=(0,m.Al)(e,r),s=e.spatialReference,i=(0,m.k$)(n);if(!i)return{vertexAttributes:B(t,e,r),vertexSpace:n,transform:null};const{position:o,normal:f,tangent:u}=t,a=(0,b.Kk)(n,s);switch(n.type){case"georeferenced":return a?{vertexAttributes:w(t,e,i,r),vertexSpace:n,transform:null}:{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c};case"local":return{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c}}}function A(t,e,r){return(0,b.yO)(e.spatialReference,r?.geographic)?v(t,e,r):O(t,e,r)}function x(t,e,r,n,s){if(!(0,m.k$)(e))return A(t,n,s);const{spatialReference:i}=n,o=_(t,e,r,i);return n.equals((0,m.mA)(e,i))?O(o,n,s):A(o,n,s)}function S({positions:t,transform:e,vertexSpace:r,inSpatialReference:n,outSpatialReference:s,outPositions:a,localMode:d}){const m=r.origin??u.cX,b=null!=r.origin?e?.localMatrix??o.IJ:o.IJ;if("georeferenced"===r.type){const e=a??(0,p.Gg)(t.length);if((0,i.yK)(b,o.IJ)?(0,p.mw)(e,t):(0,g.a)(e,t,b),!(0,f.h)(m,u.cX)){const[t,r,n]=m;for(let s=0;s<e.length;s+=3)e[s]+=t,e[s+1]+=r,e[s+2]+=n}return(0,y.projectBuffer)(e,n,0,e,s,0,e.length/3),e}let M=n;const B=(0,l._s)(n);M=s.isWebMercator&&d||!(0,c.canProjectWithoutEngine)(n,B)?M:B,(0,h.y)(n,m,F,M),(0,i.iW)(F,F,b);const T=a??(0,p.Gg)(t.length);return(0,g.a)(T,t,F),(0,y.projectBuffer)(T,M,0,T,s,0,T.length/3),T}function w(t,e,r,n){const s=e.spatialReference,i=L(e,n,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){(0,g.a)(n,t,e);const s=new Float64Array(t.length);return(0,M.o$)(n,s,r)}(t.position,i,s,o),u=(0,a.yy)(q,i),c=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);return(0,g.b)(i,r,n),(0,M.QP)(i,t,e,s,i),i}(f,o,t.normal,u,s),l=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);(0,g.b)(i,r,n,4);for(let t=3;t<i.length;t+=4)i[t]=r[t];return(0,M.Cr)(i,t,e,s,i),i}(f,o,t.tangent,u,s);if(r){const{x:t,y:r,z:n}=e;(0,g.t)(f,f,[-t,-r,-(n??0)])}return{position:f,normal:c,tangent:l}}function O(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=(s[t]-i)/u,n[t+1]=(s[t+1]-o)/u,n[t+2]=(s[t+2]-f)/u;return{position:n,normal:t.normal,tangent:t.tangent}}function v(t,e,r){const n=e.spatialReference;L(e,r,F);const s=(0,i.S_)(R,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){const s=(0,M.K_)(t,e,n),i=new Float64Array(s.length);return(0,g.a)(i,s,r),i}(t.position,n,s,o),u=(0,a.yy)(q,s);return{position:f,normal:P(t.normal,t.position,o,n,u),tangent:C(t.tangent,t.position,o,n,u)}}function L(t,e,r){(0,h.y)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,l._s)(t.spatialReference));const n=Y(e?e.unit:null,t.spatialReference);return(0,i.aU)(r,r,[n,n,n]),r}function P(t,e,r,n,s){if(null==t)return null;const i=(0,M.cH)(t,e,r,n,new Float32Array(t.length));return(0,g.b)(i,i,s),i}function C(t,e,r,n,s){if(null==t)return null;const i=(0,M.GW)(t,e,r,n,new Float32Array(t.length));return(0,g.b)(i,i,s,4),i}function Y(t,e){if(null==t)return 1;const r=(0,n.eg)(e);return 1/(0,n.ck)(r,"meters",t)}const F=(0,o.Su)(),R=(0,o.Su)(),q=(0,s.Su)()},38496:(t,e,r)=>{r.d(e,{AT:()=>_,Cr:()=>A,GW:()=>E,K_:()=>M,QP:()=>b,W4:()=>T,cH:()=>g,o$:()=>B});var n=r(66360),s=r(77556),i=r(68612),o=r(87104),f=r(98472),u=r(62484),a=r(82448),c=r(51120),l=r(62880),h=r(60544),y=r(29120),p=r(71004),d=r(48952);const m=()=>n.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function g(t,e,r,n,s){return S(n)?(x(O.TO_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert spatial reference to PCPF"),s)}function b(t,e,r,n,s){return S(n)?(x(O.FROM_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert to spatial reference from PCPF"),s)}function M(t,e,r){return(0,l.projectBuffer)(t,e,0,r,(0,a._s)(e),0,t.length/3),r}function B(t,e,r){return(0,l.projectBuffer)(t,(0,a._s)(r),0,e,r,0,t.length/3),e}function T(t,e,r){return(0,s.yy)(Y,r),(0,d.b)(e,t,Y),(0,s.QT)(Y)||(0,d.n)(e,e),e}function _(t,e,r){if((0,s.yy)(Y,r),(0,d.b)(e,t,Y,4),(0,s.QT)(Y)||(0,d.n)(e,e,4),t!==e)for(let r=3;r<t.length;r+=4)e[r]=t[r];return e}function E(t,e,r,n,s){if(!S(n))return m().error("Cannot convert spatial reference to PCPF"),s;x(O.TO_PCPF,p.Yj.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,4*Float32Array.BYTES_PER_ELEMENT));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function A(t,e,r,n,s){if(!S(n))return m().error("Cannot convert to spatial reference from PCPF"),s;x(O.FROM_PCPF,p.Yj.fromTypedArray(t,16),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,16));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function x(t,e,r,n,i,o){if(!e)return;const u=r.count,l=(0,a._s)(i);if(w(i))for(let r=0;r<u;r++)n.getVec(r,L),e.getVec(r,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C),t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),o.setVec(r,P);else for(let i=0;i<u;i++){n.getVec(i,L),e.getVec(i,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C);const u=(0,y.MB)(r.get(i,1));let a=Math.cos(u);t===O.TO_PCPF&&(a=1/a),Y[0]*=a,Y[1]*=a,Y[2]*=a,Y[3]*=a,Y[4]*=a,Y[5]*=a,t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),(0,f.n)(P,P),o.setVec(i,P)}return o}function S(t){return w(t)||function(t){return t.isWebMercator}(t)}function w(t){return t.isWGS84||(0,h.Ub)(t)||(0,h.qg)(t)||(0,h.UB)(t)}var O,v;(v=O||(O={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const L=(0,u.Su)(),P=(0,u.Su)(),C=(0,o.Su)(),Y=(0,i.Su)()},21136:(t,e,r)=>{r.d(e,{Al:()=>y,GF:()=>p,k$:()=>l,mA:()=>h,mm:()=>d,wX:()=>c});var n=r(26832),s=r(66360),i=r(67776),o=r(51232),f=r(13708),u=r(48952);function a(){return s.c.getLogger("esri.geometry.Mesh")}function c(t){const{vertexSpace:e}=t;if(null!=e.origin)return t.clone();const{anchor:r}=t,n=r.clone(),s=new o.c({origin:[n.x,n.y,n.z]}),i=t.cloneWithVertexSpace(s),{position:f}=i.vertexAttributes;return i.vertexAttributes.position=(0,u.t)(new Float64Array(f.length),f,[-n.x,-n.y,-(n.z??0)]),i.vertexAttributesChanged(),i}function l(t){return null!=t.origin}function h(t,e){if(!l(t))return null;const[r,n,s]=t.origin;return new i.c({x:r,y:n,z:s,spatialReference:e})}function y(t,e){const{x:r,y:s,z:i,spatialReference:u}=t,c=[r,s,i??0];if(void 0!==e?.geographic){if((0,n.O2)(a(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!e?.vertexSpace)return e?.geographic?new f.c({origin:c}):new o.c({origin:c});a().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!e?.vertexSpace)return u.isGeographic||u.isWebMercator?new f.c({origin:c}):new o.c({origin:c});switch(e.vertexSpace){case"local":return new f.c({origin:c});case"georeferenced":return new o.c({origin:c});case"georeferenced-absolute":return new o.c}}function p(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}function d(t,e){return"local"===t?new f.c({origin:e}):new o.c({origin:e})}}}]);