@arcgis/core 5.1.0-next.72 → 5.1.0-next.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/Viewpoint.js +1 -1
  2. package/applications/Urban/editingSessionUtils.d.ts +95 -0
  3. package/applications/Urban/editingSessionUtils.js +2 -0
  4. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{91a0227a64a944af3286.js → 003476e950bd27a2f884.js} +2 -2
  7. package/assets/esri/core/workers/chunks/{8a664451845a47048859.js → 0539b5d015157c1d34a0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{5a4d7ba6dc1d4b41d80d.js → 07eff82916681fcff069.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{b801631b58e6fc6cec8a.js → 0ae360bf253adee46737.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8a14e3db28c403b046cf.js → 0d2bc1be5802681666a4.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0eed2b1b06355ab89013.js +1 -0
  12. package/assets/esri/core/workers/chunks/{b495f14d90abe8d1a558.js → 12e575a6d2b008b8fc2b.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{61ef14e42bc09b787d89.js → 13e60f19f436b8d683ae.js} +1 -1
  14. package/assets/esri/core/workers/chunks/18f77ee3552d92962f15.js +1 -0
  15. package/assets/esri/core/workers/chunks/1a87e9bbd85ba29b1514.js +1 -0
  16. package/assets/esri/core/workers/chunks/{aa1a3a849aba84cf585b.js → 1db1656a033f3992f0d6.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{b54b7cc6b23a70fed700.js → 1f8ccf96069ac3a40c3d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{cdf6ad970dc1893dac58.js → 24646a1176ce34039155.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{93ceb74ac88ef460fe5f.js → 359d3acb3953e64e5a78.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{b79058f5bda6fcac22f8.js → 37091cf498a16ccad7ff.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{0839da55707f7c4cf780.js → 3b9100c59a8050f4834e.js} +1 -1
  22. package/assets/esri/core/workers/chunks/452c01cecbbd1e370098.js +1 -0
  23. package/assets/esri/core/workers/chunks/47656ec12401e53f4bd3.js +1 -0
  24. package/assets/esri/core/workers/chunks/{260d4571722cb1ff1366.js → 484d6c1b0fe1633515b7.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{0d96e39380fd84cea9ba.js → 4bbe684050b3b04681d0.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{7e6ccf9f3e756186e93e.js → 4c13869d260a902d3014.js} +1 -1
  27. package/assets/esri/core/workers/chunks/4c97cc922eece3a91b6b.js +1 -0
  28. package/assets/esri/core/workers/chunks/{656d6963e8f837fbf28f.js → 54023458195549f66215.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{02876e434dc91c42b2f4.js → 5476c2f7b83f4ccd0335.js} +1 -1
  30. package/assets/esri/core/workers/chunks/5511e640e171c294f52a.js +2 -0
  31. package/assets/esri/core/workers/chunks/{faad127dc07e54e7f6d1.js → 5abe34bb0110694f7b42.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{c1838822b096d5f36a8b.js → 5b324e572737a308500d.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6124141ac642e4ce1454.js +1 -0
  34. package/assets/esri/core/workers/chunks/{ae0a572cbbdd9815ee2e.js → 62b3e933f548ce354b99.js} +1 -1
  35. package/assets/esri/core/workers/chunks/6b66fc32451433129a88.js +1 -0
  36. package/assets/esri/core/workers/chunks/{6ea8b0d68881d16a2432.js → 6d25230dd85a4ba54c4f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +1 -0
  38. package/assets/esri/core/workers/chunks/{9f4b97204def91567e3c.js → 7595ceba529ed01c7590.js} +1 -1
  39. package/assets/esri/core/workers/chunks/75d5ea0da181f9e7425f.js +1312 -0
  40. package/assets/esri/core/workers/chunks/{af75e91b88e747aa76ac.js → 7601278ebced0c0c31cf.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{1661684357912726a72a.js → 77dd719516138afb1a2a.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{6f9ea461c268c421f9c9.js → 7951d93f5f15aa76f49c.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{ce2aa75e084ee56f5e29.js → 7f55eef696e9ed717bfc.js} +1 -1
  44. package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +1 -0
  45. package/assets/esri/core/workers/chunks/{50d5d6654ada9f28345d.js → 85e65ced3312bf9cf162.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b92794def31592a6a25f.js → 8d75f6f27c1c17c33992.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{3cd9bd20e75ba4d5b294.js → 8f4cd30ce23e41c1a42c.js} +1 -1
  48. package/assets/esri/core/workers/chunks/95d82c619dcbec2e1050.js +1 -0
  49. package/assets/esri/core/workers/chunks/983f6c8727fd9484718e.js +1 -0
  50. package/assets/esri/core/workers/chunks/{5a83ea967ecde01d5622.js → 9be9ccce6369f67202bc.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{628f56c09838eb9c573b.js → a270960d80d8344dd75f.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{b475f5492c6e3fd4cca8.js → a36761e3122f70fbb3c9.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1edd39c7c4acdc591d10.js → a809b811121099a87a98.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{47f2113357b2aa4f4f37.js → a9d2c83bb10b5ade0ca0.js} +1 -1
  55. package/assets/esri/core/workers/chunks/abdf146b35e179b5b245.js +1 -0
  56. package/assets/esri/core/workers/chunks/ad064583f8a836005098.js +1 -0
  57. package/assets/esri/core/workers/chunks/{d2aa75816e84b1e7fd25.js → afc0baf86ece710ef867.js} +1 -1
  58. package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +1 -0
  59. package/assets/esri/core/workers/chunks/{68b47a5a50e0b5fffca2.js → b905e637a67fbb7af4ae.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{03894992558d063d0d5e.js → bab23b905678e42815e5.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{6ef3b8d67b498d655a99.js → bcb021a167580bb1619f.js} +1 -1
  62. package/assets/esri/core/workers/chunks/be0341567bb19e101a4f.js +1 -0
  63. package/assets/esri/core/workers/chunks/bec3ee5ea945e1e07a35.js +1 -0
  64. package/assets/esri/core/workers/chunks/{a65d576e90179a2b5400.js → c5507480344176fad241.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{d4a9eb4470cc6a1f67fc.js → c5f155fe114a2a05aaf2.js} +2 -2
  66. package/assets/esri/core/workers/chunks/{84772b023d04e415f17f.js → c61002a117dc2218d6af.js} +1 -1
  67. package/assets/esri/core/workers/chunks/c70df6ed190f9ebcf6aa.js +1 -0
  68. package/assets/esri/core/workers/chunks/{0dad0bca8d58b2c63d22.js → c804a66ef7615aa8de89.js} +1 -1
  69. package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +1 -0
  70. package/assets/esri/core/workers/chunks/{dec6d41d614105e6fd93.js → d00dafad202450e6ee2e.js} +1 -1
  71. package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +1 -0
  72. package/assets/esri/core/workers/chunks/{06df187a116709f69952.js → d35c475f004367e333eb.js} +1 -1
  73. package/assets/esri/core/workers/chunks/d82da31dc702b8fd6a07.js +1 -0
  74. package/assets/esri/core/workers/chunks/dd4f431511edd975a53b.js +1 -0
  75. package/assets/esri/core/workers/chunks/{99101789035f1787c630.js → e785f76c1a75cb1d1e1f.js} +1 -1
  76. package/assets/esri/core/workers/chunks/f53805c7a84203305b2c.js +1 -0
  77. package/assets/esri/core/workers/chunks/f590b60fca607d66001a.js +1 -0
  78. package/assets/esri/core/workers/chunks/{f6d047358d14328f3622.js → f60292d97bcdbf19165b.js} +1 -1
  79. package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +1 -0
  80. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  81. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  82. package/chunks/GlobalIllumination.glsl.js +186 -116
  83. package/chunks/GlobalIlluminationBlur.glsl.js +81 -61
  84. package/chunks/GlobalIlluminationUpscale.glsl.js +66 -0
  85. package/chunks/geometryEngineBase.js +1 -1
  86. package/config.js +1 -1
  87. package/core/has.js +1 -1
  88. package/form/elements/FieldElement.d.ts +3 -2
  89. package/form/elements/FieldElement.js +1 -1
  90. package/form/elements/inputs/Input.d.ts +1 -1
  91. package/form/elements/inputs/MultipleChoiceInput.d.ts +65 -0
  92. package/form/elements/inputs/MultipleChoiceInput.js +2 -0
  93. package/form/elements/inputs/inputUtils.js +1 -1
  94. package/form/elements/inputs/multipleChoice/Choice.d.ts +30 -0
  95. package/form/elements/inputs/multipleChoice/Choice.js +2 -0
  96. package/form/elements/inputs/multipleChoice/OtherChoice.d.ts +28 -0
  97. package/form/elements/inputs/multipleChoice/OtherChoice.js +2 -0
  98. package/form/elements/inputs.d.ts +11 -2
  99. package/form/elements/inputs.js +1 -1
  100. package/form/support/formUtils.js +1 -1
  101. package/geometry/geometryEngine.js +1 -1
  102. package/geometry/geometryEngineJSON.js +1 -1
  103. package/geometry/operators/projectOperator.d.ts +5 -4
  104. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  105. package/geometry/support/normalizeUtils.js +1 -1
  106. package/geometry/support/normalizeUtilsCommon.js +1 -1
  107. package/identity/IdentityManagerBase.js +1 -1
  108. package/interfaces.d.ts +28 -0
  109. package/kernel.js +1 -1
  110. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  111. package/layers/IntegratedMeshLayer.js +1 -1
  112. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  113. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  114. package/layers/support/SymbolLayerDrawing.d.ts +18 -4
  115. package/package.json +2 -2
  116. package/popup/Features.d.ts +9 -9
  117. package/popup/Features.js +1 -1
  118. package/popup/actionUtils.js +1 -1
  119. package/popup/actions.js +1 -1
  120. package/portal/Portal.js +1 -1
  121. package/portal/PortalQueryParams.js +1 -1
  122. package/rest/print.js +1 -1
  123. package/support/revision.js +1 -1
  124. package/third-party-notices.txt +7 -29
  125. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  126. package/views/3d/camera/intersectionUtils.js +1 -1
  127. package/views/3d/environment/EnvironmentManager.js +1 -1
  128. package/views/3d/input/SceneInputManager.js +1 -1
  129. package/views/3d/input/handlers/PinchAndPanNavigation.js +1 -1
  130. package/views/3d/layers/I3SMeshView3D.js +1 -1
  131. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  132. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  133. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  134. package/views/3d/state/GoToOperation.js +1 -1
  135. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  136. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  137. package/views/3d/support/cameraScaleUtils.js +2 -0
  138. package/views/3d/support/cameraUtils.js +1 -1
  139. package/views/3d/support/orientedBoundingBox.js +1 -1
  140. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  141. package/views/3d/support/renderInfoUtils/line.js +1 -1
  142. package/views/3d/support/viewpointUtils.js +1 -1
  143. package/views/3d/terrain/TerrainRenderer.js +1 -1
  144. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  145. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +13 -12
  146. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  147. package/views/3d/webgl-engine/core/shaderLibrary/shading/GlobalIlluminationWeights.glsl.js +21 -0
  148. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +11 -7
  149. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +2 -0
  150. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  151. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +2 -0
  152. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlurTechnique.js +1 -1
  153. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechnique.js +1 -1
  154. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscale.glsl.js +2 -0
  155. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationUpscaleTechnique.js +2 -0
  156. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  157. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  158. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  159. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  160. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  161. package/views/3d/webgl.js +1 -1
  162. package/views/SceneView.d.ts +1 -0
  163. package/views/draw/support/editingSessionUtils.js +2 -0
  164. package/views/interactive/sketch/SketchOptions.d.ts +3 -1
  165. package/views/interactive/sketch/SketchTooltipOptions.d.ts +15 -1
  166. package/views/support/Scheduler.js +1 -1
  167. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  168. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  169. package/widgets/BatchAttributeForm/inputs/SingleFeatureInputAdapter.js +2 -0
  170. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +28 -4
  171. package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
  172. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  173. package/widgets/BatchAttributeForm/templates/AttachmentElementTemplate.js +2 -0
  174. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  175. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  176. package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
  177. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  178. package/widgets/Editor/EditorViewModel.js +1 -1
  179. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  180. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  181. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  182. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  183. package/widgets/Editor/support/SketchController.js +1 -1
  184. package/widgets/Editor/workflowUtils.js +1 -1
  185. package/widgets/Search/support/layerSearchUtils.js +1 -1
  186. package/widgets/support/widgetUtils.js +1 -1
  187. package/assets/esri/core/workers/chunks/027c3ea756db68e51f0a.js +0 -1
  188. package/assets/esri/core/workers/chunks/0c00e5e4bd18467bcecd.js +0 -1
  189. package/assets/esri/core/workers/chunks/0ef93722524620023f69.js +0 -1
  190. package/assets/esri/core/workers/chunks/266ba61b72a278d93a26.js +0 -1
  191. package/assets/esri/core/workers/chunks/2abf124e2956e4f76688.js +0 -1
  192. package/assets/esri/core/workers/chunks/43678e08a3d9d51c2a6d.js +0 -1
  193. package/assets/esri/core/workers/chunks/5b278b9980752ef495a2.js +0 -1
  194. package/assets/esri/core/workers/chunks/5e59ff96aecdf2adcb3b.js +0 -1
  195. package/assets/esri/core/workers/chunks/74be994d789c57031631.js +0 -1
  196. package/assets/esri/core/workers/chunks/770880ad43f252962017.js +0 -1
  197. package/assets/esri/core/workers/chunks/81750c5177d8d52a3e05.js +0 -1
  198. package/assets/esri/core/workers/chunks/85edbb072a2ce6c1bb30.js +0 -2
  199. package/assets/esri/core/workers/chunks/943cf0653a2b7de16a4f.js +0 -1
  200. package/assets/esri/core/workers/chunks/a11f05ddd8314b648f76.js +0 -1
  201. package/assets/esri/core/workers/chunks/a37fc886227365f7ecd5.js +0 -1
  202. package/assets/esri/core/workers/chunks/af5db0372d526e592fcc.js +0 -1
  203. package/assets/esri/core/workers/chunks/bc53ce9a643f82d516c2.js +0 -1
  204. package/assets/esri/core/workers/chunks/bea70be8e38b8c83ccd2.js +0 -1
  205. package/assets/esri/core/workers/chunks/c3381b9a36299210ee47.js +0 -1
  206. package/assets/esri/core/workers/chunks/d0c3ab70f390cd579fed.js +0 -1
  207. package/assets/esri/core/workers/chunks/d8d7331600d93bbca2b4.js +0 -1
  208. package/assets/esri/core/workers/chunks/dca595fdd5e1a571e441.js +0 -1
  209. package/assets/esri/core/workers/chunks/de583214195eff13cb00.js +0 -1140
  210. package/assets/esri/core/workers/chunks/df8143b72ef94806c992.js +0 -1
  211. package/assets/esri/core/workers/chunks/ef013a77950c1902de11.js +0 -1
  212. package/assets/esri/core/workers/chunks/fa160a2a5dc9f5a7c34b.js +0 -1
  213. package/geometry/support/triangulationUtilsDeprecated.js +0 -2
  214. package/views/3d/layers/graphics/extrudeUtilsDeprecated.js +0 -2
  215. package/views/3d/support/renderInfoUtils/polygonDeprecated.js +0 -2
  216. package/views/3d/webgl-engine/core/shaderLibrary/shading/EncodingColor.glsl.js +0 -7
  217. package/views/3d/webgl-engine/shaders/GlobalIllumination.glsl.js +0 -2
  218. package/views/3d/webgl-engine/shaders/GlobalIlluminationBlur.glsl.js +0 -2
  219. /package/assets/esri/core/workers/chunks/{85edbb072a2ce6c1bb30.js.LICENSE.txt → 5511e640e171c294f52a.js.LICENSE.txt} +0 -0
  220. /package/assets/esri/core/workers/chunks/{d4a9eb4470cc6a1f67fc.js.LICENSE.txt → c5f155fe114a2a05aaf2.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1951],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>c,c:()=>a,d:()=>i,e:()=>p,f:()=>f,l:()=>u,n:()=>d,t:()=>o});var r=n(40876),s=(n(44208),n(72727));function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,r=3,i=r){const o=(0,s.k)(t.length,r,3),a=(0,s.k)(e.length,i,3),c=Math.min(o,a),h=n[0],u=n[1],f=n[2],l=n[4],p=n[5],d=n[6],m=n[8],g=n[9],S=n[10],y=n[12],M=n[13],k=n[14];let E=0,v=0;for(let n=0;n<c;n++){const n=e[E],s=e[E+1],o=e[E+2];t[v]=h*n+l*s+m*o+y,t[v+1]=u*n+p*s+g*o+M,t[v+2]=f*n+d*s+S*o+k,E+=i,v+=r}return t}function a(t,e,n){c(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function c(t,e,n,r=3,i=r){const o=(0,s.k)(t.length,r,3),a=(0,s.k)(e.length,i,3),c=Math.min(o,a),h=n[0],u=n[1],f=n[2],l=n[3],p=n[4],d=n[5],m=n[6],g=n[7],S=n[8];let y=0,M=0;for(let n=0;n<c;n++){const n=e[y],s=e[y+1],o=e[y+2];t[M]=h*n+l*s+m*o,t[M+1]=u*n+p*s+g*o,t[M+2]=f*n+d*s+S*o,y+=i,M+=r}}function h(t,e,n,r=3,s=r){const i=Math.min(t.length/r,e.length/s);let o=0,a=0;for(let c=0;c<i;c++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=s,a+=r;return t}function u(t,e,n,r){f(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n,s,i=3,o=i){const a=Math.min(t.length/i,e.length/o);let c=0,h=0;const u=1/r.Tf;for(let r=0;r<a;r++)t[h]=s*(n*e[c])**u,t[h+1]=s*(n*e[c+1])**u,t[h+2]=s*(n*e[c+2])**u,c+=o,h+=i}function l(t,e,n,r=3,i=r){const o=(0,s.k)(t.length,r,3),a=(0,s.k)(e.length,i,3),c=Math.min(o,a);let h=0,u=0;for(let s=0;s<c;s++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=i,u+=r;return t}function p(t,e){d(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function d(t,e,n=3,r=n){const s=Math.min(t.length/n,e.length/r);let i=0,o=0;for(let a=0;a<s;a++){const s=e[i],a=e[i+1],c=e[i+2],h=s*s+a*a+c*c;if(h>0){const e=1/Math.sqrt(h);t[o]=e*s,t[o+1]=e*a,t[o+2]=e*c}i+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:u,normalize:d,normalizeView:p,scale:h,scaleView:function(t,e,n){h(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride;let c=0,h=0;for(let t=0;t<r;t++)s[h]=o[c]>>n,s[h+1]=o[c+1]>>n,s[h+2]=o[c+2]>>n,c+=a,h+=i},transformMat3:c,transformMat3View:a,transformMat4:o,transformMat4View:i,translate:l},Symbol.toStringTag,{value:"Module"}))},69052(t,e,n){n.d(e,{hr:()=>s,ie:()=>c,uC:()=>a});var r=n(34727);class s{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return i(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return i(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function i(t,e,n,r,s=0,i=!1){return(r-=s)<e?r+=o(t,e-r):r>n&&(r-=o(t,r-n)),i&&r===n&&(r=e),r+s}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new s(0,2*Math.PI),c=(new s(-Math.PI,Math.PI),new s(0,360))},69397(t,e,n){n.d(e,{Qf:()=>c,Qh:()=>o,RS:()=>s,Ul:()=>p,i5:()=>l,lM:()=>i,qK:()=>u});var r=n(34275);const s=16;function i(t){if(!t)return 0;let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=f;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?o(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return s;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+l:Array.isArray(e)?h(e,s):0:0),0)}function h(t,e){return f+t.length*e}const u=32,f=16,l=145,p=64},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},31411(t,e,n){n.d(e,{GS:()=>w,gh:()=>b});var r=n(49186),s=n(56512),i=n(65864),o=n(4305),a=n(50954),c=n(52006),h=n(49663),u=n(46068),f=n(15507);const l=1e-6,p=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class m{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:r,minSegmentsPerCurve:s}){const i=n*n,o=e*e,a=1/r,c=this.interpolate(0),h=this.interpolate(1);(0,f.kb)(this.curveStart,c)>l&&t.push(c),this.initialize(c,h);const u=1/s;for(let t=s-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===i||!isFinite(i)||(0,f.kb)(this.arcStart,this.arcEnd)<i)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,f.kb)(this.curveEnd,h)>l&&t.push([...this.curveEnd]),t}}class g extends m{constructor(t,e){const[n,r,s]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[r,s],this._arcControlPoints=[r,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:r,tEnd:s}=this,[i,o]=this._arcControlPoints,a=(t-r)/(s-r),c=(0,f.RS)([],e,i,a),h=(0,f.RS)(p,i,o,a),u=(0,f.RS)([],o,n,a),l=(0,f.RS)([],c,h,a),d=(0,f.RS)([],h,u,a),m=(0,f.RS)([],l,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,u]),this.tEndStack.push(t),this.arcEndStack.push(m),this._arcControlPoints[0]=c,this._arcControlPoints[1]=l,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[r,s]=this._curveControlPoints;return(0,o.B4)(e,r,s,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,r]=this._arcControlPoints;return Math.max((0,f.yE)(n,t,e),(0,f.yE)(r,t,e))}}class S extends m{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,f.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function y(t,e,n,{cx:r,cy:s,radius:i,thetaStart:o,thetaEnd:a,isInvalid:c},{maxDeviation:h,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:d}){if(c)return t.push([...n]),t;const m=2*i,g=[r+i*Math.cos(o),s+i*Math.sin(o)],S=[r+i*Math.cos(a),s+i*Math.sin(a)];(0,f.kb)(e,g)>l&&t.push(g);const y=Math.abs(a-o),M=u>0&&u<m?2*Math.asin(u/m):y,k=h>0&&h<=i?2*Math.acos(1-h/i):y,E=Math.min(M,k),v=Math.min(p,Math.max(d,Math.ceil(Math.abs(y/E)))),x=1/v;for(let e=1;e<v;e++){const n=e*x,c=o*(1-n)+a*n;t.push([r+i*Math.cos(c),s+i*Math.sin(c)])}return t.push(S),(0,f.kb)(n,S)>l&&t.push([...n]),t}function M(t,e,n,r){return new g(e,n).densify(t,r)}function k(t,e,n,r){const s=(0,a.pM)(e,n),[i]=n.c;return y(t,e,i,s,r)}function E(t,e,n,r){const s=(0,h.io)(e,n),[i]=n.a;return y(t,e,i,s,r)}function v(t,e,n,r){const[s,i,o,a,c,h,u]=n.a;return 0===h||0===u?(t.push([...s]),t):new S(e,n).densify(t,r)}function x(t,e,n,r){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,r):(0,c.aO)(n)?k(t,e,n,r):(0,c.DA)(n)?E(t,e,n,r):v(t,e,n,r)}function w(t,e={}){if(!(0,c.Ed)(t))return t;const n=d(e),r=(0,c.FD)(t),s=[];for(const t of r){const e=[];for(let r=0;r<t.length-1;r++){const s=r+1,i=[...(0,c.yP)(t[r])];0===r&&e.push(i),x(e,i,t[s],n)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:s,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:s,spatialReference:t.spatialReference}}const R=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function b(t,e,s){const o=new Set(e);return await async function(t,e,s){let i=null;for(const o of t)if(o&&(0,c.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,c.V8)(o,e)){const t=o.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(s.has(e))o.spatialReference=s.get(e);else{i||(i=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=i.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:c}),o.spatialReference=h,s.set(e,h)}}}(t,o,s),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const r=R(n);return(0,i.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const r=new Set(e),s=d(n),i=(0,c.FD)(t),o=[];let a=!1;for(const t of i){const e=[];for(let n=0;n<t.length-1;n++){const i=n+1,o=[...(0,c.yP)(t[n])];0===n&&e.push(o);const h=t[i];(0,c.Xq)(h)?e.push([...h]):(0,c.n1)(h)&&!r.has("cubic-bezier")?M(e,o,h,s):(0,c.aO)(h)&&!r.has("circular-arc")?k(e,o,h,s):(0,c.DA)(h)&&!r.has("elliptic-arc")?E(e,o,h,s):(0,c.wY)(h)&&!r.has("elliptic-arc")?v(e,o,h,s):(e.push((0,c.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,r))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>_,O7:()=>A,el:()=>P});var r=n(92602),s=n(69052),i=n(49186),o=n(53966),a=n(39829),c=n(82799),h=n(16930),u=n(80754),f=n(21325),l=n(28735),p=n(52006),d=n(31411),m=n(11254),g=n(60408),S=n(65864),y=n(2272),M=n(84952),k=n(92300);const E=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function v(t){return"polygon"===t[0].type}function x(t){return"polyline"===t[0].type}function w(t,e,n){const r=1e6;if(e){const e=(0,p.Ed)(t)?(0,d.GS)(t,{maxSegmentLength:r}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw E().error(t),new i.A("internal:geometry",t)}const n=(0,u.r8)(t),r=[];for(const t of n){const n=[];r.push(n),n.push([t[0][0],t[0][1]]);for(let r=0;r<t.length-1;r++){const s=t[r][0],i=t[r][1],o=t[r+1][0],a=t[r+1][1],c=Math.sqrt((o-s)*(o-s)+(a-i)*(a-i)),h=(a-i)/c,u=(o-s)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const r=t*e,o=u*r+s,a=h*r+i;n.push([o,a])}const t=(c+Math.floor(f-1)*e)/2,r=u*t+s,o=h*t+i;n.push([r,o])}n.push([o,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:r,spatialReference:t.spatialReference}):new c.A({paths:r,spatialReference:t.spatialReference})}(t,r);t=(0,l.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function R(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,u.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,u.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,u.kd)(r,e);t=t.clone().offset(n*(-2*e),0)}else if(r<n){const e=(0,u.kd)(r,n);t=t.clone().offset(e*(-2*n),0)}}return t}function b(t,e){let n=-1;for(let r=0;r<e.cutIndexes.length;r++){const s=e.cutIndexes[r],i=e.geometries[r],o=(0,u.r8)(i);for(let t=0;t<o.length;t++){const e=o[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const r=e[t][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=i.getPoint(t,n);i.setPoint(t,n,e.clone().offset(r,0))}return!0}})}if(s===n){if(v(t))for(const e of(0,u.r8)(i))t[s]=t[s].addRing(e);else if(x(t))for(const e of(0,u.r8)(i))t[s]=t[s].addPath(e)}else n=s,t[s]=i}return t}async function P(t,e,n){if(!Array.isArray(t))return P([t],e);e&&"string"!=typeof e&&E().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof e?e:e?.url??r.A.geometryServiceUrl;let i,o,h,p,d,v,x,A,B=0;const _=[],C=[];for(const e of t)if(null!=e)if(i||(i=e.spatialReference,o=(0,f.Vp)(i),h=i.isWebMercator,v=h?102100:4326,p=u.j7[v].maxX,d=u.j7[v].minX,x=u.j7[v].plus180Line,A=u.j7[v].minus180Line),o)if("mesh"===e.type)C.push(e);else if("point"===e.type)C.push(R(e.clone(),p,d));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>R(t,p,d)),C.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,o);C.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,d)*(2*p);let r=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:s,xmax:i}=t;s=Number(s.toFixed(9)),i=Number(i.toFixed(9)),t.intersects(x)&&i!==p?(B=i>B?i:B,r=w(r,h),_.push(r),C.push("cut")):t.intersects(A)&&s!==d?(B=i*(2*p)>B?i*(2*p):B,r=w(r,h,360),_.push(r),C.push("cut")):C.push(r)}else C.push(e.clone());else C.push(e);else C.push(e);let O=(0,u.kd)(B,p),D=-90;const L=O,T=new c.A;for(;O>0;){const t=360*O-180;T.addPath([[t,D],[t,-1*D]]),D*=-1,O--}if(_.length>0&&L>0){const e=b(_,await async function(t,e,n,r){const s=(0,y.Dl)(t),i=e[0].spatialReference,o={...r,responseType:"json",query:{...s.query,f:"json",sr:(0,f.YX)(i),target:JSON.stringify({geometryType:(0,g.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,m.A)(s.path+"/cut",o),{cutIndexes:c,geometries:h=[]}=a.data;return{cutIndexes:c,geometries:h.map(t=>{const e=(0,S.rS)(t);return e.spatialReference=i,e})}}(s,_,T,n)),r=[],i=[];for(let n=0;n<C.length;n++){const s=C[n];if("cut"!==s)i.push(s);else{const s=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(r.push(s),i.push("simplify")):i.push(h?(0,l.Gh)(s):s)}}if(!r.length)return i;const o=await async function(t,e,n){const r="string"==typeof t?(0,M.An)(t):t,s=e[0].spatialReference,i=(0,g.$B)(e[0]),o={...n,query:{...r.query,f:"json",sr:(0,f.YX)(s),geometries:JSON.stringify((0,k.X)(e))}},{data:a}=await(0,m.A)(r.path+"/simplify",o);return(0,k.V)(a.geometries,i,s)}(s,r,n),a=[];for(let t=0;t<i.length;t++){const e=i[t];"simplify"!==e?a.push(e):a.push(h?(0,l.Gh)(o.shift()):o.shift())}return a}const z=[];for(let t=0;t<C.length;t++){const e=C[t];if("cut"!==e)z.push(e);else{const t=_.shift();z.push(!0===h?(0,l.Gh)(t):t)}}return z}function A(t,e,n){const r=(0,f.Vp)(n);if(null==r)return t;const[s,i]=r.valid,o=2*i;let a=0,c=0;e>i?a=Math.ceil(Math.abs(e-i)/o):e<s&&(a=-Math.ceil(Math.abs(e-s)/o)),t>i?c=Math.ceil(Math.abs(t-i)/o):t<s&&(c=-Math.ceil(Math.abs(t-s)/o));let h=t+(a-c)*o;const u=h-e;return u>i?h-=o:u<s&&(h+=o),h}function B(t){const e=(0,f.Vp)(t);if(null==e)return null;const[n,r]=e.valid;return new s.hr(n,r)}const _=B(h.A.WGS84);B(h.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>h,kd:()=>c,r8:()=>u});var r=n(82799),s=n(16930),i=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(const n of function(t){return(0,i.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,o.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,o.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,o.n1)(t)){const[n,r,s]=t.b;n[0]+=e,r[0]+=e,s[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,i.Bi)(t)?t.rings:t.paths}},38969(t,e,n){n.d(e,{i:()=>s});var r=n(37955);function s(t,e){return new Promise((n,s)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,r.Oo)(t,"canplay",n)),e((0,r.Oo)(t,"error",s)))})}},92300(t,e,n){n.d(e,{V:()=>o,X:()=>i});var r=n(60408),s=n(65864);function i(t){return{geometryType:(0,r.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function o(t,e,n){const r=(0,s.xD)(e);return t.map(t=>{const e=r.fromJSON(t);return e.spatialReference=n,e})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6754],{4341(t,e,r){r.d(e,{I:()=>i});var n=r(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},97146(t,e,r){r.d(e,{Dg:()=>s,my:()=>o,tM:()=>a,uW:()=>i});var n=r(34275);function i(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<n.y9)return t}else if(t.length<n.y9)return Array.from(t);let r=!0,i=!0;return t.some((t,e)=>(r=r&&0===t,i=i&&t===e,!r&&!i)),r?function(t){if(1===t)return c;if(t<n.y9)return new Array(t).fill(0);if(t>_.length){const e=Math.max(2*_.length,t);_=new Uint8Array(e)}return new Uint8Array(_.buffer,0,t)}(t.length):i?a(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function o(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let u=f(131072);const c=[0],h=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function a(t){return 1===t?c:t<n.y9?Array.from(new Uint16Array(h.buffer,0,t)):t<h.length?new Uint16Array(h.buffer,0,t):(t>u.length&&(u=f(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function f(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let _=new Uint8Array(65536)},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},82919(t,e,r){r.d(e,{DV:()=>p,C:()=>E,vt:()=>d,Qy:()=>l,ui:()=>R,ST:()=>S,bU:()=>T,pw:()=>g,m7:()=>A,c8:()=>N});var n=r(4341),i=r(58083),s=r(35522),o=r(51850),u=r(78955),c=r(91829),h=r(71351);function a(t){return t?{ray:(0,h.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,h.vt)(),c0:0,c1:Number.MAX_VALUE}}new n.I(()=>a());var f=r(27921),_=r(32114);function d(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function l(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function E(t,e){for(let r=0;r<m;r++)(0,f.C)(t[r],e[r]);return t}function R(t,e,r,n=C){const o=(0,i.lw)(_.Rc.get(),e,t);(0,i.B8)(o,o);for(let t=0;t<G;++t){const e=(0,u.Z0)(_.Km.get(),I[t],o);(0,s.hZ)(n[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}p(r,n)}function p(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}function A(t,e){for(let r=0;r<m;r++){const n=t[r];if(n[0]*e.center[0]+n[1]*e.center[1]+n[2]*e.center[2]+n[3]>=e.radius)return!1}return!0}function g(t,e){return v(t,function(t,e=a()){return(0,h.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,y.get()))}function S(t,e,r){return v(t,function(t,e,r=a()){const n=(0,s.Bw)(t.vector);return(0,h.fA)(t.origin,e,r.ray),r.c0=0,r.c1=n,r}(e,r,y.get()))}function T(t,e){for(let r=0;r<m;r++)if((0,f.mN)(t[r],e)>0)return!1;return!0}function v(t,e){for(let r=0;r<m;r++)if(!(0,f.$Q)(t[r],e))return!1;return!0}const N={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},m=6,G=8,I=[(0,c.fA)(-1,-1,-1,1),(0,c.fA)(1,-1,-1,1),(0,c.fA)(1,1,-1,1),(0,c.fA)(-1,1,-1,1),(0,c.fA)(-1,-1,1,1),(0,c.fA)(1,-1,1,1),(0,c.fA)(1,1,1,1),(0,c.fA)(-1,1,1,1)],y=new n.I(a),C=l()},11964(t,e,r){r.d(e,{Cr:()=>a,G1:()=>d,LV:()=>h,_I:()=>_,kb:()=>f,ld:()=>l,vt:()=>c});var n=r(34727),i=r(4341),s=r(35522),o=r(51850),u=r(32114);function c(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function h(t,e){const r=R.get();return r.origin=t,r.vector=e,r}function a(t,e,r=c()){return(0,s.C)(r.origin,t),(0,s.Re)(r.vector,e,t),r}function f(t,e){const r=(0,s.Re)(u.rq.get(),e,t.origin),i=(0,s.Om)(t.vector,r),o=(0,s.Om)(t.vector,t.vector),c=(0,n.qE)(i/o,0,1),h=(0,s.Re)(u.rq.get(),(0,s.hs)(u.rq.get(),t.vector,c),r);return(0,s.Om)(h,h)}function _(t,e,r){return function(t,e,r,i,o){const{vector:c,origin:h}=t,a=(0,s.Re)(u.rq.get(),e,h),f=(0,s.Om)(c,a)/(0,s.m3)(c);return(0,s.hs)(o,c,(0,n.qE)(f,0,1)),(0,s.WQ)(o,o,t.origin)}(t,e,0,0,r)}function d(t,e){const{vector:r,origin:i}=t,o=(0,s.Re)(u.rq.get(),e,i),c=(0,s.Om)(r,o)/(0,s.m3)(r);return(0,n.qE)(c,0,1)}function l(t,e,r){return!!function(t,e,r,i){const o=1e-6,c=t.origin,h=(0,s.WQ)(u.rq.get(),c,t.vector),a=e.origin,f=(0,s.WQ)(u.rq.get(),a,e.vector),_=u.rq.get(),d=u.rq.get();if(_[0]=c[0]-a[0],_[1]=c[1]-a[1],_[2]=c[2]-a[2],d[0]=f[0]-a[0],d[1]=f[1]-a[1],d[2]=f[2]-a[2],Math.abs(d[0])<o&&Math.abs(d[1])<o&&Math.abs(d[2])<o)return!1;const l=u.rq.get();if(l[0]=h[0]-c[0],l[1]=h[1]-c[1],l[2]=h[2]-c[2],Math.abs(l[0])<o&&Math.abs(l[1])<o&&Math.abs(l[2])<o)return!1;const E=_[0]*d[0]+_[1]*d[1]+_[2]*d[2],R=d[0]*l[0]+d[1]*l[1]+d[2]*l[2],p=_[0]*l[0]+_[1]*l[1]+_[2]*l[2],A=d[0]*d[0]+d[1]*d[1]+d[2]*d[2],g=(l[0]*l[0]+l[1]*l[1]+l[2]*l[2])*A-R*R;if(Math.abs(g)<o)return!1;let S=(E*R-p*A)/g,T=(E+R*S)/A;r&&(S=(0,n.qE)(S,0,1),T=(0,n.qE)(T,0,1));const v=u.rq.get(),N=u.rq.get();return v[0]=c[0]+S*l[0],v[1]=c[1]+S*l[1],v[2]=c[2]+S*l[2],N[0]=a[0]+T*d[0],N[1]=a[1]+T*d[1],N[2]=a[2]+T*d[2],i.tA=S,i.tB=T,i.pA=v,i.pB=N,i.distance2=(0,s.hG)(v,N),!0}(t,e,!0,E)&&((0,s.C)(r,E.pA),!0)}const E={tA:0,tB:0,pA:(0,o.vt)(),pB:(0,o.vt)(),distance2:0},R=new i.I(()=>c())},71351(t,e,r){r.d(e,{C:()=>a,Cr:()=>f,LV:()=>h,fA:()=>_,oC:()=>d,vt:()=>u}),r(4576);var n=r(4341),i=(r(77690),r(29242)),s=r(35522),o=r(51850);function u(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,e){return{origin:t,direction:e}}function h(t,e){const r=l.get();return r.origin=t,r.direction=e,r}function a(t,e=u()){return _(t.origin,t.direction,e)}function f(t,e,r=u()){return(0,s.C)(r.origin,t),(0,s.Re)(r.direction,e,t),r}function _(t,e,r=u()){return(0,s.C)(r.origin,t),(0,s.C)(r.direction,e),r}function d(t,e,r){const n=(0,s.Om)(t.direction,(0,s.Re)(r,e,t.origin));return(0,s.WQ)(r,t.origin,(0,s.hs)(r,t.direction,n)),r}r(32114);const l=new n.I(()=>u());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},94008(t,e,r){r.d(e,{iy:()=>d}),r(44208),r(53966);var n=r(34727),i=r(34304),s=r(58083),o=r(35522),u=r(51850),c=r(91829),h=r(34275);var a=r(71351),f=r(44280),_=r(32114);class d{constructor(t=0,e=0,r=0,n=0){this.radius=n,"number"==typeof t?this._center=(0,u.fA)(t,e,r):function(t){return e=t,(0,h.vZ)(e)&&e.length>=3||function(t){return((0,h.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,u.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,u.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.C)(this.center,t)}exactEquals(t){return(0,o.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,c.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.hG)(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,l))return!1;let{t0:r,t1:n}=l;if((r<0||n<r&&n>0)&&(r=n),r<0)return!1;if(e){const{origin:n,direction:i}=t;e[0]=n[0]+i[0]*r,e[1]=n[1]+i[1]*r,e[2]=n[2]+i[2]*r}return!0}intersectLine(t,e){const r=(0,a.Cr)(t,e);if(!this._intersect(r,l))return[];const{origin:n,direction:s}=r,{t0:c,t1:h}=l,f=t=>{const e=(0,u.vt)();return(0,o.Ln)(e,n,s,t),this.projectPoint(e,e)};return Math.abs(c-h)<(0,i.FD)()?[f(c)]:[f(c),f(h)]}_intersect(t,e){const{origin:r,direction:n}=t,i=E;i[0]=r[0]-this.center[0],i[1]=r[1]-this.center[1],i[2]=r[2]-this.center[2];const s=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(0===s)return!1;const o=2*(n[0]*i[0]+n[1]*i[1]+n[2]*i[2]),u=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(u<0)return!1;const c=Math.sqrt(u);return e.t0=(-o-c)/(2*s),e.t1=(-o+c)/(2*s),!0}projectPoint(t,e){const r=(0,o.Re)(_.rq.get(),t,this.center),n=(0,o.hs)(_.rq.get(),r,this.radius/(0,o.Bw)(r));return(0,o.WQ)(e,n,this.center)}closestPointOnSilhouette(t,e){const r=_.rq.get(),n=_.Rc.get();(0,o.$A)(r,t.origin,t.direction),(0,o.$A)(e,r,t.origin),(0,o.hs)(e,e,1/(0,o.Bw)(e)*this.radius);const i=this._angleToSilhouette(t.origin),u=(0,f.g7)(t.origin,e);return(0,s.$0)(n,u+i,r),(0,o.Z0)(e,e,n),e}frustumCoverage(t,e,r){const n=this.radius,i=n*n,s=t+.5*Math.PI,o=e*e+i-2*Math.cos(s)*e*n,u=Math.sqrt(o),c=o-i;if(c<=0)return.5;const h=Math.sqrt(c),a=Math.acos(h/u)-Math.asin(n/(u/Math.sin(s)));return Math.min(1,(a+.5*r)/r)}_angleToSilhouette(t){const e=(0,o.Re)(_.rq.get(),t,this.center),r=(0,o.Bw)(e),i=this.radius,s=i+Math.abs(i-r);return(0,n.XM)(i/s)}union(t){const e=(0,o.Io)(this._center,t.center),r=this.radius,n=t.radius;return e+n<r?this:e+r<n?(this.copyFrom(t),this):((0,o.Cc)(this._center,this._center,t.center,(e+n-r)/(2*e)),this.radius=(e+r+n)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){const{center:e,radius:r}=this,n=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3];return n<0?Math.min(n+r,0):Math.max(n-r,0)}}new d;const l={t0:0,t1:0},E=(0,u.vt)();(0,u.vt)(),(0,u.vt)()},1843(t,e,r){r.d(e,{BP:()=>f,l5:()=>_});var n=r(20498),i=r(13030),s=r(90239),o=r(4431),u=r(620),c=r(85079);class h{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new h(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const i=this.stride;if(i%4==0){const s=new Uint32Array(t.buffer,e*i,n*i/4);new Uint32Array(this.buffer,r*i,n*i/4).set(s)}else{const s=new Uint8Array(t.buffer,e*i,n*i);new Uint8Array(this.buffer,r*i,n*i).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class a{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,c.Xk)((0,o.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?i.ZD:i.gH,e),this}vec2f(t,e){return this._appendField(t,i.gH,e),this}vec2f64(t,e){return this._appendField(t,i.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?i.EC:i.xs,e),this}vec3f(t,e){return this._appendField(t,i.xs,e),this}vec3f64(t,e){return this._appendField(t,i.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?i.jz:i.Eq,e),this}vec4f(t,e){return this._appendField(t,i.Eq,e),this}vec4f64(t,e){return this._appendField(t,i.Aj,e),this}mat3f(t,e){return this._appendField(t,i.jZ,e),this}mat3f64(t,e){return this._appendField(t,i.j0,e),this}mat4f(t,e){return this._appendField(t,i.Sx,e),this}mat4f64(t,e){return this._appendField(t,i.E$,e),this}vec4u8(t,e){return this._appendField(t,i.XP,e),this}f16(t,e){return this._appendField(t,n.SX?i.XW:i.Y$,e),this}f32(t,e){return this._appendField(t,i.Y$,e),this}f64(t,e){return this._appendField(t,i.qB,e),this}u8(t,e){return this._appendField(t,i.SL,e),this}u16(t,e){return this._appendField(t,i.h,e),this}i8(t,e){return this._appendField(t,i.bf,e),this}vec2i8(t,e){return this._appendField(t,i.D6,e),this}vec2i16(t,e){return this._appendField(t,i.mJ,e),this}vec2u8(t,e){return this._appendField(t,i.LC,e),this}vec2u16(t,e){return this._appendField(t,i.Yi,e),this}vec4u16(t,e){return this._appendField(t,i.Uz,e),this}vec4i16(t,e){return this._appendField(t,i.E7,e),this}u32(t,e){return this._appendField(t,i.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,u.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new h(this,t)}createView(t,e){return new h(this,t,e)}clone(){const t=new a;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function f(){return new a}class _{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:l(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[i.Y$,i.gH,i.xs,i.Eq,i.jZ,i.Sx,i.qB,i.si,i.Xm,i.Aj,i.j0,i.E$,i.SL,i.LC,i.eI,i.XP,i.h,i.Yi,i.nS,i.Uz,i.P,i.An,i.H$,i.ml,i.bf,i.D6,i.m8,i.TX,i.Qt,i.mJ,i.Vp,i.E7,i.My,i.UL,i.zD,i.Y4];function l(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return R.get(t)}const R=new Map;d.forEach(t=>R.set(l(t),t))},4431(t,e,r){r.d(e,{U:()=>s});var n=r(63907),i=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const o=t.fields.get(s),u=o.constructor.ElementCount,c=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(o.constructor.ElementType),h=o.offset,a=o.optional?.glNormalized??!1,f=o.optional?.integer??!1;return new i._(s,u,c,h,r,a,e,f)})}},85079(t,e,r){r.d(e,{Sk:()=>o,Xk:()=>i,_u:()=>s});var n=r(21818);function i(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function o(t){return s(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,i,s=!1,o=0,u=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=i,this.normalized=s,this.divisor=o,this.integer=u}}},63907(t,e,r){r.d(e,{$0:()=>_,C5:()=>f,CQ:()=>p,H0:()=>s,SB:()=>c,WR:()=>n,XN:()=>o,iE:()=>u,ld:()=>h,nI:()=>l,pe:()=>i,r6:()=>d,uH:()=>R,vt:()=>a,xL:()=>E});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(s),u={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},c={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},h={FLOAT:i.FLOAT,UNSIGNED_BYTE:i.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:i.BYTE,UNSIGNED_SHORT:i.UNSIGNED_SHORT,SHORT:i.SHORT,UNSIGNED_INT:i.UNSIGNED_INT,INT:i.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},a={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},f=1029,_=0,d=36064,l=33306,E=36096,R=36128,p={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6754],{4341(t,e,r){r.d(e,{I:()=>i});var n=r(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},97146(t,e,r){r.d(e,{Dg:()=>s,my:()=>o,tM:()=>a,uW:()=>i});var n=r(34275);function i(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<n.y9)return t}else if(t.length<n.y9)return Array.from(t);let r=!0,i=!0;return t.some((t,e)=>(r=r&&0===t,i=i&&t===e,!r&&!i)),r?function(t){if(1===t)return c;if(t<n.y9)return new Array(t).fill(0);if(t>_.length){const e=Math.max(2*_.length,t);_=new Uint8Array(e)}return new Uint8Array(_.buffer,0,t)}(t.length):i?a(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function o(t){return t<=n.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let u=f(131072);const c=[0],h=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function a(t){return 1===t?c:t<n.y9?Array.from(new Uint16Array(h.buffer,0,t)):t<h.length?new Uint16Array(h.buffer,0,t):(t>u.length&&(u=f(Math.max(2*u.length,t))),new Uint32Array(u.buffer,0,t))}function f(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let _=new Uint8Array(65536)},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},82919(t,e,r){r.d(e,{DV:()=>p,C:()=>E,vt:()=>d,Qy:()=>l,ui:()=>R,ST:()=>S,bU:()=>T,pw:()=>g,m7:()=>A,c8:()=>N});var n=r(4341),i=r(58083),s=r(35522),o=r(51850),u=r(78955),c=r(91829),h=r(71351);function a(t){return t?{ray:(0,h.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,h.vt)(),c0:0,c1:Number.MAX_VALUE}}new n.I(()=>a());var f=r(27921),_=r(32114);function d(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function l(){return[(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)()]}function E(t,e){for(let r=0;r<m;r++)(0,f.C)(t[r],e[r]);return t}function R(t,e,r,n=C){const o=(0,i.lw)(_.Rc.get(),e,t);(0,i.B8)(o,o);for(let t=0;t<G;++t){const e=(0,u.Z0)(_.Km.get(),I[t],o);(0,s.hZ)(n[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}p(r,n)}function p(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}function A(t,e){for(let r=0;r<m;r++){const n=t[r];if(n[0]*e.center[0]+n[1]*e.center[1]+n[2]*e.center[2]+n[3]>=e.radius)return!1}return!0}function g(t,e){return v(t,function(t,e=a()){return(0,h.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,y.get()))}function S(t,e,r){return v(t,function(t,e,r=a()){const n=(0,s.Bw)(t.vector);return(0,h.fA)(t.origin,e,r.ray),r.c0=0,r.c1=n,r}(e,r,y.get()))}function T(t,e){for(let r=0;r<m;r++)if((0,f.mN)(t[r],e)>0)return!1;return!0}function v(t,e){for(let r=0;r<m;r++)if(!(0,f.$Q)(t[r],e))return!1;return!0}const N={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},m=6,G=8,I=[(0,c.fA)(-1,-1,-1,1),(0,c.fA)(1,-1,-1,1),(0,c.fA)(1,1,-1,1),(0,c.fA)(-1,1,-1,1),(0,c.fA)(-1,-1,1,1),(0,c.fA)(1,-1,1,1),(0,c.fA)(1,1,1,1),(0,c.fA)(-1,1,1,1)],y=new n.I(a),C=l()},11964(t,e,r){r.d(e,{Cr:()=>a,G1:()=>d,LV:()=>h,_I:()=>_,kb:()=>f,ld:()=>l,vt:()=>c});var n=r(34727),i=r(4341),s=r(35522),o=r(51850),u=r(32114);function c(t){return t?{origin:(0,o.o8)(t.origin),vector:(0,o.o8)(t.vector)}:{origin:(0,o.vt)(),vector:(0,o.vt)()}}function h(t,e){const r=R.get();return r.origin=t,r.vector=e,r}function a(t,e,r=c()){return(0,s.C)(r.origin,t),(0,s.Re)(r.vector,e,t),r}function f(t,e){const r=(0,s.Re)(u.rq.get(),e,t.origin),i=(0,s.Om)(t.vector,r),o=(0,s.Om)(t.vector,t.vector),c=(0,n.qE)(i/o,0,1),h=(0,s.Re)(u.rq.get(),(0,s.hs)(u.rq.get(),t.vector,c),r);return(0,s.Om)(h,h)}function _(t,e,r){return function(t,e,r,i,o){const{vector:c,origin:h}=t,a=(0,s.Re)(u.rq.get(),e,h),f=(0,s.Om)(c,a)/(0,s.m3)(c);return(0,s.hs)(o,c,(0,n.qE)(f,0,1)),(0,s.WQ)(o,o,t.origin)}(t,e,0,0,r)}function d(t,e){const{vector:r,origin:i}=t,o=(0,s.Re)(u.rq.get(),e,i),c=(0,s.Om)(r,o)/(0,s.m3)(r);return(0,n.qE)(c,0,1)}function l(t,e,r){return!!function(t,e,r,i){const o=1e-6,c=t.origin,h=(0,s.WQ)(u.rq.get(),c,t.vector),a=e.origin,f=(0,s.WQ)(u.rq.get(),a,e.vector),_=u.rq.get(),d=u.rq.get();if(_[0]=c[0]-a[0],_[1]=c[1]-a[1],_[2]=c[2]-a[2],d[0]=f[0]-a[0],d[1]=f[1]-a[1],d[2]=f[2]-a[2],Math.abs(d[0])<o&&Math.abs(d[1])<o&&Math.abs(d[2])<o)return!1;const l=u.rq.get();if(l[0]=h[0]-c[0],l[1]=h[1]-c[1],l[2]=h[2]-c[2],Math.abs(l[0])<o&&Math.abs(l[1])<o&&Math.abs(l[2])<o)return!1;const E=_[0]*d[0]+_[1]*d[1]+_[2]*d[2],R=d[0]*l[0]+d[1]*l[1]+d[2]*l[2],p=_[0]*l[0]+_[1]*l[1]+_[2]*l[2],A=d[0]*d[0]+d[1]*d[1]+d[2]*d[2],g=(l[0]*l[0]+l[1]*l[1]+l[2]*l[2])*A-R*R;if(Math.abs(g)<o)return!1;let S=(E*R-p*A)/g,T=(E+R*S)/A;r&&(S=(0,n.qE)(S,0,1),T=(0,n.qE)(T,0,1));const v=u.rq.get(),N=u.rq.get();return v[0]=c[0]+S*l[0],v[1]=c[1]+S*l[1],v[2]=c[2]+S*l[2],N[0]=a[0]+T*d[0],N[1]=a[1]+T*d[1],N[2]=a[2]+T*d[2],i.tA=S,i.tB=T,i.pA=v,i.pB=N,i.distance2=(0,s.hG)(v,N),!0}(t,e,!0,E)&&((0,s.C)(r,E.pA),!0)}const E={tA:0,tB:0,pA:(0,o.vt)(),pB:(0,o.vt)(),distance2:0},R=new i.I(()=>c())},71351(t,e,r){r.d(e,{C:()=>a,Cr:()=>f,LV:()=>h,fA:()=>_,oC:()=>d,vt:()=>u}),r(4576);var n=r(4341),i=(r(77690),r(29242)),s=r(35522),o=r(51850);function u(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,e){return{origin:t,direction:e}}function h(t,e){const r=l.get();return r.origin=t,r.direction=e,r}function a(t,e=u()){return _(t.origin,t.direction,e)}function f(t,e,r=u()){return(0,s.C)(r.origin,t),(0,s.Re)(r.direction,e,t),r}function _(t,e,r=u()){return(0,s.C)(r.origin,t),(0,s.C)(r.direction,e),r}function d(t,e,r){const n=(0,s.Om)(t.direction,(0,s.Re)(r,e,t.origin));return(0,s.WQ)(r,t.origin,(0,s.hs)(r,t.direction,n)),r}r(32114);const l=new n.I(()=>u());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},94008(t,e,r){r.d(e,{iy:()=>d}),r(44208),r(53966);var n=r(34727),i=r(34304),s=r(58083),o=r(35522),u=r(51850),c=r(91829),h=r(34275);var a=r(71351),f=r(44280),_=r(32114);class d{constructor(t=0,e=0,r=0,n=0){this.radius=n,"number"==typeof t?this._center=(0,u.fA)(t,e,r):function(t){return e=t,(0,h.vZ)(e)&&e.length>=3||function(t){return((0,h.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,u.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,u.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,o.C)(this.center,t)}exactEquals(t){return(0,o.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,o.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,c.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,o.hG)(this.center,t)<=this.radius**2}intersectRay(t,e){if(null==t)return!1;if(!this._intersect(t,l))return!1;let{t0:r,t1:n}=l;if((r<0||n<r&&n>0)&&(r=n),r<0)return!1;if(e){const{origin:n,direction:i}=t;e[0]=n[0]+i[0]*r,e[1]=n[1]+i[1]*r,e[2]=n[2]+i[2]*r}return!0}intersectLine(t,e){const r=(0,a.Cr)(t,e);if(!this._intersect(r,l))return[];const{origin:n,direction:s}=r,{t0:c,t1:h}=l,f=t=>{const e=(0,u.vt)();return(0,o.Ln)(e,n,s,t),this.projectPoint(e,e)};return Math.abs(c-h)<(0,i.FD)()?[f(c)]:[f(c),f(h)]}_intersect(t,e){const{origin:r,direction:n}=t,i=E;i[0]=r[0]-this.center[0],i[1]=r[1]-this.center[1],i[2]=r[2]-this.center[2];const s=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(0===s)return!1;const o=2*(n[0]*i[0]+n[1]*i[1]+n[2]*i[2]),u=o*o-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(u<0)return!1;const c=Math.sqrt(u);return e.t0=(-o-c)/(2*s),e.t1=(-o+c)/(2*s),!0}projectPoint(t,e){const r=(0,o.Re)(_.rq.get(),t,this.center),n=(0,o.hs)(_.rq.get(),r,this.radius/(0,o.Bw)(r));return(0,o.WQ)(e,n,this.center)}closestPointOnSilhouette(t,e){const r=_.rq.get(),n=_.Rc.get();(0,o.$A)(r,t.origin,t.direction),(0,o.$A)(e,r,t.origin),(0,o.hs)(e,e,1/(0,o.Bw)(e)*this.radius);const i=this._angleToSilhouette(t.origin),u=(0,f.g7)(t.origin,e);return(0,s.$0)(n,u+i,r),(0,o.Z0)(e,e,n),e}frustumCoverage(t,e,r){const n=this.radius,i=n*n,s=t+.5*Math.PI,o=e*e+i-2*Math.cos(s)*e*n,u=Math.sqrt(o),c=o-i;if(c<=0)return.5;const h=Math.sqrt(c),a=Math.acos(h/u)-Math.asin(n/(u/Math.sin(s)));return Math.min(1,(a+.5*r)/r)}_angleToSilhouette(t){const e=(0,o.Re)(_.rq.get(),t,this.center),r=(0,o.Bw)(e),i=this.radius,s=i+Math.abs(i-r);return(0,n.XM)(i/s)}union(t){const e=(0,o.Io)(this._center,t.center),r=this.radius,n=t.radius;return e+n<r?this:e+r<n?(this.copyFrom(t),this):((0,o.Cc)(this._center,this._center,t.center,(e+n-r)/(2*e)),this.radius=(e+r+n)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){const{center:e,radius:r}=this,n=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3];return n<0?Math.min(n+r,0):Math.max(n-r,0)}}new d;const l={t0:0,t1:0},E=(0,u.vt)();(0,u.vt)(),(0,u.vt)()},1843(t,e,r){r.d(e,{BP:()=>f,l5:()=>_});var n=r(20498),i=r(13030),s=r(90239),o=r(4431),u=r(620),c=r(85079);class h{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new h(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const i=this.stride;if(i%4==0){const s=new Uint32Array(t.buffer,e*i,n*i/4);new Uint32Array(this.buffer,r*i,n*i/4).set(s)}else{const s=new Uint8Array(t.buffer,e*i,n*i);new Uint8Array(this.buffer,r*i,n*i).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class a{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,c.Xk)((0,o.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?i.ZD:i.gH,e),this}vec2f(t,e){return this._appendField(t,i.gH,e),this}vec2f64(t,e){return this._appendField(t,i.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?i.EC:i.xs,e),this}vec3f(t,e){return this._appendField(t,i.xs,e),this}vec3f64(t,e){return this._appendField(t,i.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?i.jz:i.Eq,e),this}vec4f(t,e){return this._appendField(t,i.Eq,e),this}vec4f64(t,e){return this._appendField(t,i.Aj,e),this}mat3f(t,e){return this._appendField(t,i.jZ,e),this}mat3f64(t,e){return this._appendField(t,i.j0,e),this}mat4f(t,e){return this._appendField(t,i.Sx,e),this}mat4f64(t,e){return this._appendField(t,i.E$,e),this}vec4u8(t,e){return this._appendField(t,i.XP,e),this}f16(t,e){return this._appendField(t,n.SX?i.XW:i.Y$,e),this}f32(t,e){return this._appendField(t,i.Y$,e),this}f64(t,e){return this._appendField(t,i.qB,e),this}u8(t,e){return this._appendField(t,i.SL,e),this}u16(t,e){return this._appendField(t,i.h,e),this}i8(t,e){return this._appendField(t,i.bf,e),this}vec2i8(t,e){return this._appendField(t,i.D6,e),this}vec2i16(t,e){return this._appendField(t,i.mJ,e),this}vec2u8(t,e){return this._appendField(t,i.LC,e),this}vec2u16(t,e){return this._appendField(t,i.Yi,e),this}vec4u16(t,e){return this._appendField(t,i.Uz,e),this}vec4i16(t,e){return this._appendField(t,i.E7,e),this}u32(t,e){return this._appendField(t,i.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,u.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new h(this,t)}createView(t,e){return new h(this,t,e)}clone(){const t=new a;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function f(){return new a}class _{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:l(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[i.Y$,i.gH,i.xs,i.Eq,i.jZ,i.Sx,i.qB,i.si,i.Xm,i.Aj,i.j0,i.E$,i.SL,i.LC,i.eI,i.XP,i.h,i.Yi,i.nS,i.Uz,i.P,i.An,i.H$,i.ml,i.bf,i.D6,i.m8,i.TX,i.Qt,i.mJ,i.Vp,i.E7,i.My,i.UL,i.zD,i.Y4];function l(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return R.get(t)}const R=new Map;d.forEach(t=>R.set(l(t),t))},4431(t,e,r){r.d(e,{U:()=>s});var n=r(63907),i=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const o=t.fields.get(s),u=o.constructor.ElementCount,c=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(o.constructor.ElementType),h=o.offset,a=o.optional?.glNormalized??!1,f=o.optional?.integer??!1;return new i._(s,u,c,h,r,a,e,f)})}},85079(t,e,r){r.d(e,{Sk:()=>o,Xk:()=>i,_u:()=>s});var n=r(21818);function i(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function o(t){return s(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,i,s=!1,o=0,u=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=i,this.normalized=s,this.divisor=o,this.integer=u}}},63907(t,e,r){r.d(e,{$0:()=>_,C5:()=>f,CQ:()=>A,H0:()=>s,SB:()=>c,WR:()=>n,XN:()=>o,iE:()=>u,ld:()=>h,nI:()=>E,pe:()=>i,r6:()=>d,uH:()=>p,vt:()=>a,xL:()=>R,yI:()=>l});const n={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},i={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},o=Object.values(s),u={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},c={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},h={FLOAT:i.FLOAT,UNSIGNED_BYTE:i.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:i.BYTE,UNSIGNED_SHORT:i.UNSIGNED_SHORT,SHORT:i.SHORT,UNSIGNED_INT:i.UNSIGNED_INT,INT:i.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},a={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},f=1029,_=0,d=36064,l=36065,E=33306,R=36096,p=36128,A={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6606],{78247(e,t,i){i.d(t,{A:()=>le});var n,o=i(5482),r=i(69540),s=i(25482),l=i(3483),p=i(91429),a=i(36005);let u=n=class extends s.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new n({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],u.prototype,"returnType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],u.prototype,"title",void 0),u=n=(0,o.Cg)([(0,p.$K)("esri.form.ExpressionInfo")],u);const y=u;var d=i(4718),m=i(79901),c=i(43937),h=i(28787),g=i(56507);let w=class extends((0,r.OU)(s.o)){constructor(){super(...arguments),this.type=null}};(0,o.Cg)([(0,p.MZ)()],w.prototype,"type",void 0),w=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.Input")],w);const C=w,x=["any","capture","upload"];let f=class extends C{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],f.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:x,json:{write:!0}})],f.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],f.prototype,"maxDuration",void 0),f=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.AudioInput")],f);const v=f;let M=class extends C{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,o.Cg)([(0,p.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],M.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxFileSize",void 0),M=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.DocumentInput")],M);const b=M;let Z=class extends C{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,o.Cg)([(0,p.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:x,json:{write:!0}})],Z.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Z.prototype,"maxImageSize",void 0),Z=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.ImageInput")],Z);const j=Z;let S=class extends C{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,o.Cg)([(0,p.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],S.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:x,json:{write:!0}})],S.prototype,"inputMethod",void 0),S=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.SignatureInput")],S);const E=S;let T=class extends C{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:x,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.VideoInput")],T);const I=T;function O(e){return{nestableTypes:{base:C,key:"type",typeMap:{audio:v,document:b,image:j,signature:E,video:I}},allTypes:{base:C,key:"type",typeMap:{attachment:e,audio:v,document:b,image:j,signature:E,video:I}}}}let N=class extends C{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact"}get inputTypes(){return this._get("inputTypes")??null}set inputTypes(e){this._set("inputTypes",e)}castInputs(e){return function(e,t){return e?e.map(e=>(0,g.aq)(t.nestableTypes,e)):null}(e,A)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,A)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,A)}};(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],N.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],N.prototype,"attachmentAssociationType",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:{isRequired:!0}}})],N.prototype,"inputTypes",null),(0,o.Cg)([(0,p.wg)("inputTypes")],N.prototype,"castInputs",null),(0,o.Cg)([(0,a.w)("inputTypes")],N.prototype,"readInputs",null),(0,o.Cg)([(0,c.K)("inputTypes")],N.prototype,"writeInputs",null),N=(0,o.Cg)([(0,p.$K)("esri.form.elements.inputs.attachments.AttachmentInput")],N);const A=O(N);var F;const K=O(N);let $=F=class extends h.A{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression='StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), "YMMDDHHmmss")}`)',this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new F({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"allowUserRename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],$.prototype,"attachmentKeyword",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"displayFilename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],$.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],$.prototype,"filenameExpression",void 0),(0,o.Cg)([(0,p.MZ)({types:K.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],$.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],$.prototype,"maxAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],$.prototype,"minAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],$.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"useOriginalFilename",void 0),$=F=(0,o.Cg)([(0,p.$K)("esri.form.elements.AttachmentElement")],$);const R=$;var k,L=i(11684),V=i(49852);let D=k=class extends h.A{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new k({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,d.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"displayCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["list"],json:{write:!0}})],D.prototype,"displayType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:[V.A],json:{write:!0}})],D.prototype,"orderByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"relationshipId",void 0),(0,o.Cg)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],D.prototype,"type",void 0),D=k=(0,o.Cg)([(0,p.$K)("esri.form.elements.RelationshipElement")],D);const B=D;var _;let U=_=class extends h.A{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new _({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],U.prototype,"text",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],U.prototype,"textFormat",void 0),(0,o.Cg)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],U.prototype,"type",void 0),U=_=(0,o.Cg)([(0,p.$K)("esri.form.elements.TextElement")],U);const q=U;var W=i(83342);let G=class extends((0,r.OU)(h.A)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,o.Cg)([(0,p.MZ)({type:[W.A],json:{write:{isRequired:!0}}})],G.prototype,"associationTypes",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=(0,o.Cg)([(0,p.$K)("esri.form.elements.UtilityNetworkAssociationsElement")],G);const P=G,J=e=>"field"===e.type,z=e=>"group"===e.type,H=e=>"text"===e.type;function X(e){return{typesWithGroup:{base:h.A,key:"type",typeMap:{attachment:R,field:L.A,group:e,relationship:B,text:q,utilityNetworkAssociations:P}},typesWithoutGroup:{base:h.A,key:"type",typeMap:{attachment:R,field:L.A,relationship:B,text:q,utilityNetworkAssociations:P}}}}function Y(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>n[e.type]).map(e=>n[e.type].fromJSON(e))}function Q(e,t,i=!0){if(!e)return null;const n=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>n[e.type]).map(e=>e.toJSON())}function ee(e,t,i=!0){return e?e.map(e=>(0,g.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}var te;let ie=te=class extends h.A{constructor(e){super(e),this.initialState="expanded",this.type="group"}get elements(){return this._get("elements")??null}set elements(e){this._set("elements",e)}castElements(e){return ee(e,ne,!1)}readElements(e,t){return Y(t.formElements,ne,!1)}writeElements(e,t){t.formElements=Q(e,ne,!1)}clone(){return new te({description:this.description,elements:(0,d.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],ie.prototype,"elements",null),(0,o.Cg)([(0,m.w)("elements")],ie.prototype,"castElements",null),(0,o.Cg)([(0,a.w)("elements",["formElements"])],ie.prototype,"readElements",null),(0,o.Cg)([(0,c.K)("elements")],ie.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],ie.prototype,"initialState",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],ie.prototype,"type",void 0),ie=te=(0,o.Cg)([(0,p.$K)("esri.form.elements.GroupElement")],ie);const ne=X(ie),oe=ie;var re=i(30524);const se=X(oe);let le=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.description=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.supportsAttachmentElements=!1,this.title=null}get elements(){return this._get("elements")??null}set elements(e){this._set("elements",e)}castElements(e){return ee(e,se)}readElements(e,t){return Y(t.formElements,se)}writeElements(e,t){t.formElements=Q(e,se)}async getFieldsUsed(e,t){const i=new Set,{description:n,elements:o,expressionInfos:r,title:s}=this;if(ue(i,e,n),ue(i,e,s),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=ae(e),n=[];for(const e of t)i.has(e.name)&&n.push(e.expression);return n}(o,r).map(t=>(0,re.Dx)(i,e,null,t));await Promise.all(l);for(const n of o)pe(i,{fieldsIndex:e,relationships:t},n);return Array.from(i).sort()}};function pe(e,t,i){const{fieldsIndex:n}=t;if(n?.fields.length!==e.size)switch(ue(e,n,i.label),ue(e,n,i.description),i.type){case"field":(0,re.rq)(e,n,i.fieldName);break;case"group":i.elements.forEach(i=>pe(e,t,i));break;case"relationship":if(t.relationships){const o=t.relationships.find(e=>e.id===i.relationshipId);o&&(0,re.rq)(e,n,o.keyField)}(0,re._w)(e,n,i.orderByFields?.map(e=>e.field));break;case"text":ue(e,n,i.text)}}function ae(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!H(i))if(z(i))(0,l.FB)(t,ae(i.elements));else if((0,l.kb)(t,i.editableExpression),J(i)){const{requiredExpression:e,valueExpression:n}=i;(0,l.FB)(t,[e,n])}return t}function ue(e,t,i){(0,re._w)(e,t,(0,re.nw)(i))}(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],le.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],le.prototype,"elements",null),(0,o.Cg)([(0,p.wg)("elements")],le.prototype,"castElements",null),(0,o.Cg)([(0,a.w)("elements",["formElements"])],le.prototype,"readElements",null),(0,o.Cg)([(0,c.K)("elements")],le.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:[y],json:{write:!0}})],le.prototype,"expressionInfos",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],le.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],le.prototype,"supportsAttachmentElements",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],le.prototype,"title",void 0),le=(0,o.Cg)([(0,p.$K)("esri.form.FormTemplate")],le)},28787(e,t,i){i.d(t,{A:()=>l});var n=i(5482),o=i(25482),r=i(10107),s=i(64108);let l=class extends o.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"label",void 0),(0,n.Cg)([(0,r.MZ)()],l.prototype,"type",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"visibilityExpression",void 0),l=(0,n.Cg)([(0,s.$)("esri.form.elements.Element")],l)},11684(e,t,i){i.d(t,{A:()=>pe});var n=i(5482),o=i(91429),r=i(28787),s=i(25482);let l=class extends s.o{constructor(e){super(e),this.type=null}};(0,n.Cg)([(0,o.MZ)()],l.prototype,"type",void 0),l=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.Input")],l);const p=l;let a=class extends p{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"maxLength",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"minLength",void 0),a=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextInput")],a);const u=a;var y;let d=y=class extends u{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new y({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],d.prototype,"type",void 0),d=y=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.BarcodeScannerInput")],d);const m=d;var c;let h=c=class extends p{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new c({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"noValueOptionLabel",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"showNoValueOption",void 0),(0,n.Cg)([(0,o.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=c=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.ComboBoxInput")],h);const g=h;var w,C=i(36005),x=i(43937);function f(e){return null!=e?e:null}function v(e){return null!=e?e:null}let M=w=class extends p{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return f(t.max)}writeMax(e,t){t.max=v(e)}readMin(e,t){return f(t.min)}writeMin(e,t){t.min=v(e)}clone(){return new w({max:this.max,min:this.min})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],M.prototype,"max",void 0),(0,n.Cg)([(0,C.w)("max")],M.prototype,"readMax",null),(0,n.Cg)([(0,x.K)("max")],M.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],M.prototype,"min",void 0),(0,n.Cg)([(0,C.w)("min")],M.prototype,"readMin",null),(0,n.Cg)([(0,x.K)("min")],M.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],M.prototype,"type",void 0),M=w=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DatePickerInput")],M);const b=M;var Z;function j(e){return null!=e?e:null}function S(e){return null!=e?e:null}let E=Z=class extends p{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="timestampoffset-picker"}readMax(e,t){return j(t.max)}writeMax(e,t){t.max=S(e)}readMin(e,t){return j(t.min)}writeMin(e,t){t.min=S(e)}readTimeResolution(e,t){return j(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=S(e)}clone(){return new Z({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],E.prototype,"includeTimeOffset",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"max",void 0),(0,n.Cg)([(0,C.w)("max")],E.prototype,"readMax",null),(0,n.Cg)([(0,x.K)("max")],E.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"min",void 0),(0,n.Cg)([(0,C.w)("min")],E.prototype,"readMin",null),(0,n.Cg)([(0,x.K)("min")],E.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],E.prototype,"timeResolution",void 0),(0,n.Cg)([(0,C.w)("timeResolution")],E.prototype,"readTimeResolution",null),(0,n.Cg)([(0,x.K)("timeResolution")],E.prototype,"writeTimeResolution",null),(0,n.Cg)([(0,o.MZ)({type:["timestampoffset-picker"],json:{read:!1,write:!0}})],E.prototype,"type",void 0),E=Z=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],E);const T=E;var I;function O(e){return null!=e?new Date(e):null}function N(e){return e?e.getTime():null}let A=I=class extends p{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return O(t.max)}writeMax(e,t){t.max=N(e)}readMin(e,t){return O(t.min)}writeMin(e,t){t.min=N(e)}clone(){return new I({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"includeTime",void 0),(0,n.Cg)([(0,o.MZ)({type:Date,json:{type:Number,write:!0}})],A.prototype,"max",void 0),(0,n.Cg)([(0,C.w)("max")],A.prototype,"readMax",null),(0,n.Cg)([(0,x.K)("max")],A.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{type:Number,write:!0}})],A.prototype,"min",void 0),(0,n.Cg)([(0,C.w)("min")],A.prototype,"readMin",null),(0,n.Cg)([(0,x.K)("min")],A.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],A.prototype,"type",void 0),A=I=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.DateTimePickerInput")],A);const F=A;var K;let $=K=class extends s.o{constructor(e){super(e),this.label="",this.value=""}clone(){return new K({label:this.label,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],$.prototype,"label",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],$.prototype,"value",void 0),$=K=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.multipleChoice.Choice")],$);const R=$;var k;let L=k=class extends s.o{constructor(e){super(e),this.fieldName="",this.hint=null,this.label=null}clone(){return new k({fieldName:this.fieldName,hint:this.hint,label:this.label})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],L.prototype,"fieldName",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],L.prototype,"hint",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],L.prototype,"label",void 0),L=k=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.multipleChoice.OtherChoice")],L);const V=L;var D;let B=D=class extends p{constructor(e){super(e),this.choiceDelimeter=",",this.choices=null,this.includeOtherChoice=null,this.maxSelectedChoices=null,this.minSelectedChoices=null,this.otherChoice=null,this.type="multiple-choice"}clone(){return new D({choiceDelimeter:this.choiceDelimeter,choices:this.choices?.map(e=>e.clone())??null,includeOtherChoice:this.includeOtherChoice,maxSelectedChoices:this.maxSelectedChoices,minSelectedChoices:this.minSelectedChoices,otherChoice:this.otherChoice?.clone()??null})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],B.prototype,"choiceDelimeter",void 0),(0,n.Cg)([(0,o.MZ)({type:[R],json:{write:{isRequired:!0}}})],B.prototype,"choices",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],B.prototype,"includeOtherChoice",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],B.prototype,"maxSelectedChoices",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],B.prototype,"minSelectedChoices",void 0),(0,n.Cg)([(0,o.MZ)({type:V,json:{write:!0}})],B.prototype,"otherChoice",void 0),(0,n.Cg)([(0,o.MZ)({type:["multiple-choice"],json:{read:!1,write:!0}})],B.prototype,"type",void 0),B=D=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.MultipleChoiceInput")],B);const _=B;var U;let q=U=class extends p{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new U({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],q.prototype,"noValueOptionLabel",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],q.prototype,"showNoValueOption",void 0),(0,n.Cg)([(0,o.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=U=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.RadioButtonsInput")],q);const W=q;var G;let P=G=class extends p{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new G({offValue:this.offValue,onValue:this.onValue})}};(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],P.prototype,"offValue",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],P.prototype,"onValue",void 0),(0,n.Cg)([(0,o.MZ)({type:["switch"],json:{read:!1,write:!0}})],P.prototype,"type",void 0),P=G=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.SwitchInput")],P);const J=P;var z;let H=z=class extends u{constructor(e){super(e),this.type="text-area"}clone(){return new z({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["text-area"],json:{read:!1,write:!0}})],H.prototype,"type",void 0),H=z=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextAreaInput")],H);const X=H;var Y;let Q=Y=class extends u{constructor(e){super(e),this.type="text-box"}clone(){return new Y({maxLength:this.maxLength,minLength:this.minLength})}};(0,n.Cg)([(0,o.MZ)({type:["text-box"],json:{read:!1,write:!0}})],Q.prototype,"type",void 0),Q=Y=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TextBoxInput")],Q);const ee=Q;var te;function ie(e){return null!=e?e:null}function ne(e){return null!=e?e:null}let oe=te=class extends p{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return ie(t.max)}writeMax(e,t){t.max=ne(e)}readMin(e,t){return ie(t.min)}writeMin(e,t){t.min=ne(e)}readTimeResolution(e,t){return ie(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ne(e)}clone(){return new te({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],oe.prototype,"max",void 0),(0,n.Cg)([(0,C.w)("max")],oe.prototype,"readMax",null),(0,n.Cg)([(0,x.K)("max")],oe.prototype,"writeMax",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],oe.prototype,"min",void 0),(0,n.Cg)([(0,C.w)("min")],oe.prototype,"readMin",null),(0,n.Cg)([(0,x.K)("min")],oe.prototype,"writeMin",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{type:String,write:!0}})],oe.prototype,"timeResolution",void 0),(0,n.Cg)([(0,C.w)("timeResolution")],oe.prototype,"readTimeResolution",null),(0,n.Cg)([(0,x.K)("timeResolution")],oe.prototype,"writeTimeResolution",null),(0,n.Cg)([(0,o.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],oe.prototype,"type",void 0),oe=te=(0,n.Cg)([(0,o.$K)("esri.form.elements.inputs.TimePickerInput")],oe);const re={base:p,key:"type",typeMap:{"barcode-scanner":m,"combo-box":g,"date-picker":b,"datetime-picker":F,"multiple-choice":_,"timestampoffset-picker":T,"radio-buttons":W,switch:J,"text-area":X,"text-box":ee,"time-picker":oe}};var se,le=i(8631);let pe=se=class extends r.A{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new se({description:this.description,domain:this.domain?.clone()??null,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input?.clone(),label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,n.Cg)([(0,o.MZ)({types:le.g,json:{read:{reader:le.r},write:!0}})],pe.prototype,"domain",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],pe.prototype,"editable",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],pe.prototype,"editableExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],pe.prototype,"fieldName",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],pe.prototype,"hint",void 0),(0,n.Cg)([(0,o.MZ)({types:re,json:{read:{source:"inputType"},write:{target:"inputType"}}})],pe.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],pe.prototype,"requiredExpression",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!0}})],pe.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],pe.prototype,"valueExpression",void 0),pe=se=(0,n.Cg)([(0,o.$K)("esri.form.elements.FieldElement")],pe)},83960(e,t,i){i.d(t,{X_:()=>r,oW:()=>l,zx:()=>s});var n=i(34727),o=i(86211);function r(e,t){const i=t||e.extent,n=e.width,r=(0,o.GA)(i?.spatialReference);return i&&n?i.width/n*r*o.dy*96:0}function s(e,t,i){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,i)}function l(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},6455(e,t,i){i.d(t,{FJ:()=>w,Dp:()=>C,KV:()=>x});var n=i(5482),o=i(93637),r=i(91429),s=i(89317),l=i(69540),p=i(7762),a=i(25482),u=i(83960),y=i(13069);const d={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends((0,l.OU)(a.o)){constructor(e){super(e),this.id=(0,y.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,n.Cg)([(0,r.MZ)({type:Number,json:d})],m.prototype,"maxScale",void 0),(0,n.Cg)([(0,r.MZ)({type:Number,json:d})],m.prototype,"minScale",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,n.Cg)([(0,r.$K)("esri.layers.support.DisplayFilter")],m);var c=i(41560),h=i(43937);let g=class extends((0,l.OU)(a.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(p.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,n){const o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{const i=(0,u.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===i?n:i}),t[i]=o.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,c.mW)(this,t))}};(0,n.Cg)([(0,r.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,r.MZ)({type:p.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,n.Cg)([(0,h.K)("filters")],g.prototype,"writeFilters",null),(0,n.Cg)([(0,r.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,n.Cg)([(0,r.$K)("esri.layers.support.DisplayFilterInfo")],g);const w=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,r.MZ)(C)],i.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,r.MZ)(x)],i.prototype,"displayFilterInfo",void 0),i=(0,n.Cg)([(0,r.$K)("esri.layers.mixins.DisplayFilteredLayer")],i),i},C={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,i){(0,o.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},x={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},82935(e,t,i){i.d(t,{B:()=>d,e:()=>m});var n=i(5482),o=i(91429),r=i(89317),s=i(30524),l=i(96184),p=i(73133),a=i(79677),u=i(10184),y=i(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:r.K}}},m=e=>{const t=e;let i=class extends t{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 n=i.timeOffset,o=p.j.fromJSON(i.timeOffsetUnits);return n&&o?new u.A({value:n,unit:o}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,n.Cg)([(0,o.MZ)({type:u.A})],i.prototype,"timeOffset",void 0),(0,n.Cg)([(0,y.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,n.Cg)([(0,o.MZ)({value:null,type:l.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,n.Cg)([(0,o.MZ)(d)],i.prototype,"useViewTime",void 0),i=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],i),i}},96184(e,t,i){i.d(t,{A:()=>m});var n=i(5482),o=i(69540),r=i(25482),s=i(91429),l=i(79677),p=i(10184),a=i(56400),u=i(36005),y=i(43937);function d(e,t){return p.A.fromJSON({value:e,unit:t})}let m=class extends((0,o.OU)(r.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],m.prototype,"cumulative",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"endField",void 0),(0,n.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,u.w)("fullTimeExtent",["timeExtent"])],m.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,y.K)("fullTimeExtent")],m.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,s.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"interval",void 0),(0,n.Cg)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],m.prototype,"readInterval",null),(0,n.Cg)([(0,y.K)("interval")],m.prototype,"writeInterval",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],m.prototype,"startField",void 0),(0,n.Cg)([(0,s.MZ)((0,a.P6)("timeReference",!0))],m.prototype,"timeZone",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],m.prototype,"trackIdField",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],m.prototype,"useTime",void 0),(0,n.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],m.prototype,"stops",void 0),m=(0,n.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],m)},17036(e,t,i){i.d(t,{p:()=>p});var n=i(44208),o=i(53966),r=i(20437),s=i(95466),l=i(30524);function p(){return{fields:{type:[r.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}}}]);