yi-map-web 1.0.0

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 (464) hide show
  1. package/README.md +184 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  4. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  5. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  6. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  7. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  8. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  9. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  10. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  11. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  12. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  13. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  14. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  15. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  16. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  17. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  18. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  19. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  20. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  21. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  22. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  23. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  24. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  25. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  26. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  27. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  28. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  29. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  30. package/dist/assets/mars3d-cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  31. package/dist/assets/mars3d-cesium/Assets/Images/bing_maps_credit.png +0 -0
  32. package/dist/assets/mars3d-cesium/Assets/Images/cesium_credit.png +0 -0
  33. package/dist/assets/mars3d-cesium/Assets/Images/google_earth_credit.png +0 -0
  34. package/dist/assets/mars3d-cesium/Assets/Images/ion-credit.png +0 -0
  35. package/dist/assets/mars3d-cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  36. package/dist/assets/mars3d-cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  37. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  38. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  39. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  40. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  41. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  42. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  43. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  44. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  45. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  46. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  47. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  48. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  49. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  50. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  51. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  52. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  53. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  54. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  55. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  56. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  57. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  58. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  59. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  60. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  61. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  62. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  63. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  64. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  65. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  66. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  67. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  68. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  69. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  70. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  71. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  72. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  73. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  74. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  75. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  76. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  77. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  78. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  79. package/dist/assets/mars3d-cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  80. package/dist/assets/mars3d-cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  81. package/dist/assets/mars3d-cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  82. package/dist/assets/mars3d-cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  83. package/dist/assets/mars3d-cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  84. package/dist/assets/mars3d-cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  85. package/dist/assets/mars3d-cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  86. package/dist/assets/mars3d-cesium/Assets/Textures/maki/airfield.png +0 -0
  87. package/dist/assets/mars3d-cesium/Assets/Textures/maki/airport.png +0 -0
  88. package/dist/assets/mars3d-cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
  89. package/dist/assets/mars3d-cesium/Assets/Textures/maki/america-football.png +0 -0
  90. package/dist/assets/mars3d-cesium/Assets/Textures/maki/art-gallery.png +0 -0
  91. package/dist/assets/mars3d-cesium/Assets/Textures/maki/bakery.png +0 -0
  92. package/dist/assets/mars3d-cesium/Assets/Textures/maki/bank.png +0 -0
  93. package/dist/assets/mars3d-cesium/Assets/Textures/maki/bar.png +0 -0
  94. package/dist/assets/mars3d-cesium/Assets/Textures/maki/baseball.png +0 -0
  95. package/dist/assets/mars3d-cesium/Assets/Textures/maki/basketball.png +0 -0
  96. package/dist/assets/mars3d-cesium/Assets/Textures/maki/beer.png +0 -0
  97. package/dist/assets/mars3d-cesium/Assets/Textures/maki/bicycle.png +0 -0
  98. package/dist/assets/mars3d-cesium/Assets/Textures/maki/building.png +0 -0
  99. package/dist/assets/mars3d-cesium/Assets/Textures/maki/bus.png +0 -0
  100. package/dist/assets/mars3d-cesium/Assets/Textures/maki/cafe.png +0 -0
  101. package/dist/assets/mars3d-cesium/Assets/Textures/maki/camera.png +0 -0
  102. package/dist/assets/mars3d-cesium/Assets/Textures/maki/campsite.png +0 -0
  103. package/dist/assets/mars3d-cesium/Assets/Textures/maki/car.png +0 -0
  104. package/dist/assets/mars3d-cesium/Assets/Textures/maki/cemetery.png +0 -0
  105. package/dist/assets/mars3d-cesium/Assets/Textures/maki/cesium.png +0 -0
  106. package/dist/assets/mars3d-cesium/Assets/Textures/maki/chemist.png +0 -0
  107. package/dist/assets/mars3d-cesium/Assets/Textures/maki/cinema.png +0 -0
  108. package/dist/assets/mars3d-cesium/Assets/Textures/maki/circle-stroked.png +0 -0
  109. package/dist/assets/mars3d-cesium/Assets/Textures/maki/circle.png +0 -0
  110. package/dist/assets/mars3d-cesium/Assets/Textures/maki/city.png +0 -0
  111. package/dist/assets/mars3d-cesium/Assets/Textures/maki/clothing-store.png +0 -0
  112. package/dist/assets/mars3d-cesium/Assets/Textures/maki/college.png +0 -0
  113. package/dist/assets/mars3d-cesium/Assets/Textures/maki/commercial.png +0 -0
  114. package/dist/assets/mars3d-cesium/Assets/Textures/maki/cricket.png +0 -0
  115. package/dist/assets/mars3d-cesium/Assets/Textures/maki/cross.png +0 -0
  116. package/dist/assets/mars3d-cesium/Assets/Textures/maki/dam.png +0 -0
  117. package/dist/assets/mars3d-cesium/Assets/Textures/maki/danger.png +0 -0
  118. package/dist/assets/mars3d-cesium/Assets/Textures/maki/disability.png +0 -0
  119. package/dist/assets/mars3d-cesium/Assets/Textures/maki/dog-park.png +0 -0
  120. package/dist/assets/mars3d-cesium/Assets/Textures/maki/embassy.png +0 -0
  121. package/dist/assets/mars3d-cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
  122. package/dist/assets/mars3d-cesium/Assets/Textures/maki/entrance.png +0 -0
  123. package/dist/assets/mars3d-cesium/Assets/Textures/maki/farm.png +0 -0
  124. package/dist/assets/mars3d-cesium/Assets/Textures/maki/fast-food.png +0 -0
  125. package/dist/assets/mars3d-cesium/Assets/Textures/maki/ferry.png +0 -0
  126. package/dist/assets/mars3d-cesium/Assets/Textures/maki/fire-station.png +0 -0
  127. package/dist/assets/mars3d-cesium/Assets/Textures/maki/fuel.png +0 -0
  128. package/dist/assets/mars3d-cesium/Assets/Textures/maki/garden.png +0 -0
  129. package/dist/assets/mars3d-cesium/Assets/Textures/maki/gift.png +0 -0
  130. package/dist/assets/mars3d-cesium/Assets/Textures/maki/golf.png +0 -0
  131. package/dist/assets/mars3d-cesium/Assets/Textures/maki/grocery.png +0 -0
  132. package/dist/assets/mars3d-cesium/Assets/Textures/maki/hairdresser.png +0 -0
  133. package/dist/assets/mars3d-cesium/Assets/Textures/maki/harbor.png +0 -0
  134. package/dist/assets/mars3d-cesium/Assets/Textures/maki/heart.png +0 -0
  135. package/dist/assets/mars3d-cesium/Assets/Textures/maki/heliport.png +0 -0
  136. package/dist/assets/mars3d-cesium/Assets/Textures/maki/hospital.png +0 -0
  137. package/dist/assets/mars3d-cesium/Assets/Textures/maki/ice-cream.png +0 -0
  138. package/dist/assets/mars3d-cesium/Assets/Textures/maki/industrial.png +0 -0
  139. package/dist/assets/mars3d-cesium/Assets/Textures/maki/land-use.png +0 -0
  140. package/dist/assets/mars3d-cesium/Assets/Textures/maki/laundry.png +0 -0
  141. package/dist/assets/mars3d-cesium/Assets/Textures/maki/library.png +0 -0
  142. package/dist/assets/mars3d-cesium/Assets/Textures/maki/lighthouse.png +0 -0
  143. package/dist/assets/mars3d-cesium/Assets/Textures/maki/lodging.png +0 -0
  144. package/dist/assets/mars3d-cesium/Assets/Textures/maki/logging.png +0 -0
  145. package/dist/assets/mars3d-cesium/Assets/Textures/maki/london-underground.png +0 -0
  146. package/dist/assets/mars3d-cesium/Assets/Textures/maki/marker-stroked.png +0 -0
  147. package/dist/assets/mars3d-cesium/Assets/Textures/maki/marker.png +0 -0
  148. package/dist/assets/mars3d-cesium/Assets/Textures/maki/minefield.png +0 -0
  149. package/dist/assets/mars3d-cesium/Assets/Textures/maki/mobilephone.png +0 -0
  150. package/dist/assets/mars3d-cesium/Assets/Textures/maki/monument.png +0 -0
  151. package/dist/assets/mars3d-cesium/Assets/Textures/maki/museum.png +0 -0
  152. package/dist/assets/mars3d-cesium/Assets/Textures/maki/music.png +0 -0
  153. package/dist/assets/mars3d-cesium/Assets/Textures/maki/oil-well.png +0 -0
  154. package/dist/assets/mars3d-cesium/Assets/Textures/maki/park.png +0 -0
  155. package/dist/assets/mars3d-cesium/Assets/Textures/maki/park2.png +0 -0
  156. package/dist/assets/mars3d-cesium/Assets/Textures/maki/parking-garage.png +0 -0
  157. package/dist/assets/mars3d-cesium/Assets/Textures/maki/parking.png +0 -0
  158. package/dist/assets/mars3d-cesium/Assets/Textures/maki/pharmacy.png +0 -0
  159. package/dist/assets/mars3d-cesium/Assets/Textures/maki/pitch.png +0 -0
  160. package/dist/assets/mars3d-cesium/Assets/Textures/maki/place-of-worship.png +0 -0
  161. package/dist/assets/mars3d-cesium/Assets/Textures/maki/playground.png +0 -0
  162. package/dist/assets/mars3d-cesium/Assets/Textures/maki/police.png +0 -0
  163. package/dist/assets/mars3d-cesium/Assets/Textures/maki/polling-place.png +0 -0
  164. package/dist/assets/mars3d-cesium/Assets/Textures/maki/post.png +0 -0
  165. package/dist/assets/mars3d-cesium/Assets/Textures/maki/prison.png +0 -0
  166. package/dist/assets/mars3d-cesium/Assets/Textures/maki/rail-above.png +0 -0
  167. package/dist/assets/mars3d-cesium/Assets/Textures/maki/rail-light.png +0 -0
  168. package/dist/assets/mars3d-cesium/Assets/Textures/maki/rail-metro.png +0 -0
  169. package/dist/assets/mars3d-cesium/Assets/Textures/maki/rail-underground.png +0 -0
  170. package/dist/assets/mars3d-cesium/Assets/Textures/maki/rail.png +0 -0
  171. package/dist/assets/mars3d-cesium/Assets/Textures/maki/religious-christian.png +0 -0
  172. package/dist/assets/mars3d-cesium/Assets/Textures/maki/religious-jewish.png +0 -0
  173. package/dist/assets/mars3d-cesium/Assets/Textures/maki/religious-muslim.png +0 -0
  174. package/dist/assets/mars3d-cesium/Assets/Textures/maki/restaurant.png +0 -0
  175. package/dist/assets/mars3d-cesium/Assets/Textures/maki/roadblock.png +0 -0
  176. package/dist/assets/mars3d-cesium/Assets/Textures/maki/rocket.png +0 -0
  177. package/dist/assets/mars3d-cesium/Assets/Textures/maki/school.png +0 -0
  178. package/dist/assets/mars3d-cesium/Assets/Textures/maki/scooter.png +0 -0
  179. package/dist/assets/mars3d-cesium/Assets/Textures/maki/shop.png +0 -0
  180. package/dist/assets/mars3d-cesium/Assets/Textures/maki/skiing.png +0 -0
  181. package/dist/assets/mars3d-cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
  182. package/dist/assets/mars3d-cesium/Assets/Textures/maki/soccer.png +0 -0
  183. package/dist/assets/mars3d-cesium/Assets/Textures/maki/square-stroked.png +0 -0
  184. package/dist/assets/mars3d-cesium/Assets/Textures/maki/square.png +0 -0
  185. package/dist/assets/mars3d-cesium/Assets/Textures/maki/star-stroked.png +0 -0
  186. package/dist/assets/mars3d-cesium/Assets/Textures/maki/star.png +0 -0
  187. package/dist/assets/mars3d-cesium/Assets/Textures/maki/suitcase.png +0 -0
  188. package/dist/assets/mars3d-cesium/Assets/Textures/maki/swimming.png +0 -0
  189. package/dist/assets/mars3d-cesium/Assets/Textures/maki/telephone.png +0 -0
  190. package/dist/assets/mars3d-cesium/Assets/Textures/maki/tennis.png +0 -0
  191. package/dist/assets/mars3d-cesium/Assets/Textures/maki/theatre.png +0 -0
  192. package/dist/assets/mars3d-cesium/Assets/Textures/maki/toilets.png +0 -0
  193. package/dist/assets/mars3d-cesium/Assets/Textures/maki/town-hall.png +0 -0
  194. package/dist/assets/mars3d-cesium/Assets/Textures/maki/town.png +0 -0
  195. package/dist/assets/mars3d-cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
  196. package/dist/assets/mars3d-cesium/Assets/Textures/maki/triangle.png +0 -0
  197. package/dist/assets/mars3d-cesium/Assets/Textures/maki/village.png +0 -0
  198. package/dist/assets/mars3d-cesium/Assets/Textures/maki/warehouse.png +0 -0
  199. package/dist/assets/mars3d-cesium/Assets/Textures/maki/waste-basket.png +0 -0
  200. package/dist/assets/mars3d-cesium/Assets/Textures/maki/water.png +0 -0
  201. package/dist/assets/mars3d-cesium/Assets/Textures/maki/wetland.png +0 -0
  202. package/dist/assets/mars3d-cesium/Assets/Textures/maki/zoo.png +0 -0
  203. package/dist/assets/mars3d-cesium/Assets/Textures/moonSmall.jpg +0 -0
  204. package/dist/assets/mars3d-cesium/Assets/Textures/pin.svg +1 -0
  205. package/dist/assets/mars3d-cesium/Assets/Textures/waterNormals.jpg +0 -0
  206. package/dist/assets/mars3d-cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
  207. package/dist/assets/mars3d-cesium/Assets/approximateTerrainHeights.json +1 -0
  208. package/dist/assets/mars3d-cesium/Cesium.js +17126 -0
  209. package/dist/assets/mars3d-cesium/ThirdParty/Workers/package.json +1 -0
  210. package/dist/assets/mars3d-cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
  211. package/dist/assets/mars3d-cesium/ThirdParty/basis_transcoder.wasm +0 -0
  212. package/dist/assets/mars3d-cesium/ThirdParty/draco_decoder.wasm +0 -0
  213. package/dist/assets/mars3d-cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
  214. package/dist/assets/mars3d-cesium/ThirdParty/wasm_splats_bg.wasm +0 -0
  215. package/dist/assets/mars3d-cesium/Widgets/Animation/Animation.css +127 -0
  216. package/dist/assets/mars3d-cesium/Widgets/Animation/lighter.css +70 -0
  217. package/dist/assets/mars3d-cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
  218. package/dist/assets/mars3d-cesium/Widgets/BaseLayerPicker/lighter.css +22 -0
  219. package/dist/assets/mars3d-cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
  220. package/dist/assets/mars3d-cesium/Widgets/CesiumInspector/CesiumInspector.css +113 -0
  221. package/dist/assets/mars3d-cesium/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  222. package/dist/assets/mars3d-cesium/Widgets/CesiumWidget/lighter.css +14 -0
  223. package/dist/assets/mars3d-cesium/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  224. package/dist/assets/mars3d-cesium/Widgets/Geocoder/Geocoder.css +70 -0
  225. package/dist/assets/mars3d-cesium/Widgets/Geocoder/lighter.css +17 -0
  226. package/dist/assets/mars3d-cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  227. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  228. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  229. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  230. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  231. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  232. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  233. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  234. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  235. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  236. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  237. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  238. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  239. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  240. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  241. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  242. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  243. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  244. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  245. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  246. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  247. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  248. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  249. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  250. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  251. package/dist/assets/mars3d-cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  252. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  253. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  254. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  255. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  256. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  257. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  258. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  259. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  260. package/dist/assets/mars3d-cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  261. package/dist/assets/mars3d-cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  262. package/dist/assets/mars3d-cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  263. package/dist/assets/mars3d-cesium/Widgets/Images/TimelineIcons.png +0 -0
  264. package/dist/assets/mars3d-cesium/Widgets/Images/info-loading.gif +0 -0
  265. package/dist/assets/mars3d-cesium/Widgets/InfoBox/InfoBox.css +92 -0
  266. package/dist/assets/mars3d-cesium/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  267. package/dist/assets/mars3d-cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
  268. package/dist/assets/mars3d-cesium/Widgets/NavigationHelpButton/lighter.css +38 -0
  269. package/dist/assets/mars3d-cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  270. package/dist/assets/mars3d-cesium/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
  271. package/dist/assets/mars3d-cesium/Widgets/SceneModePicker/SceneModePicker.css +56 -0
  272. package/dist/assets/mars3d-cesium/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
  273. package/dist/assets/mars3d-cesium/Widgets/Timeline/Timeline.css +103 -0
  274. package/dist/assets/mars3d-cesium/Widgets/Timeline/lighter.css +23 -0
  275. package/dist/assets/mars3d-cesium/Widgets/VRButton/VRButton.css +8 -0
  276. package/dist/assets/mars3d-cesium/Widgets/Viewer/Viewer.css +107 -0
  277. package/dist/assets/mars3d-cesium/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  278. package/dist/assets/mars3d-cesium/Widgets/lighter.css +237 -0
  279. package/dist/assets/mars3d-cesium/Widgets/lighterShared.css +46 -0
  280. package/dist/assets/mars3d-cesium/Widgets/shared.css +103 -0
  281. package/dist/assets/mars3d-cesium/Widgets/widgets.css +1342 -0
  282. package/dist/assets/mars3d-cesium/Workers/chunk-336QMGTQ.js +26 -0
  283. package/dist/assets/mars3d-cesium/Workers/chunk-3BFV72N7.js +26 -0
  284. package/dist/assets/mars3d-cesium/Workers/chunk-422SYBQS.js +27 -0
  285. package/dist/assets/mars3d-cesium/Workers/chunk-4FULWVRZ.js +26 -0
  286. package/dist/assets/mars3d-cesium/Workers/chunk-5IQULCCZ.js +26 -0
  287. package/dist/assets/mars3d-cesium/Workers/chunk-5JMVLL6X.js +26 -0
  288. package/dist/assets/mars3d-cesium/Workers/chunk-65MI2E3A.js +26 -0
  289. package/dist/assets/mars3d-cesium/Workers/chunk-7SZRKGJD.js +26 -0
  290. package/dist/assets/mars3d-cesium/Workers/chunk-7U5EVTKW.js +26 -0
  291. package/dist/assets/mars3d-cesium/Workers/chunk-AXIQD4JA.js +26 -0
  292. package/dist/assets/mars3d-cesium/Workers/chunk-AZSS2BNB.js +26 -0
  293. package/dist/assets/mars3d-cesium/Workers/chunk-BYYYB2C7.js +26 -0
  294. package/dist/assets/mars3d-cesium/Workers/chunk-C6HKNYGW.js +26 -0
  295. package/dist/assets/mars3d-cesium/Workers/chunk-DMJB4DHC.js +29 -0
  296. package/dist/assets/mars3d-cesium/Workers/chunk-ECLCX5XZ.js +26 -0
  297. package/dist/assets/mars3d-cesium/Workers/chunk-FHECC5EZ.js +26 -0
  298. package/dist/assets/mars3d-cesium/Workers/chunk-GDJPERBD.js +26 -0
  299. package/dist/assets/mars3d-cesium/Workers/chunk-GLZ7AVHY.js +26 -0
  300. package/dist/assets/mars3d-cesium/Workers/chunk-GVEYCBKG.js +26 -0
  301. package/dist/assets/mars3d-cesium/Workers/chunk-HNKLZQOV.js +26 -0
  302. package/dist/assets/mars3d-cesium/Workers/chunk-II4OPXPA.js +26 -0
  303. package/dist/assets/mars3d-cesium/Workers/chunk-ILTEXGHO.js +26 -0
  304. package/dist/assets/mars3d-cesium/Workers/chunk-JD76ATDQ.js +26 -0
  305. package/dist/assets/mars3d-cesium/Workers/chunk-JQWGTP3K.js +26 -0
  306. package/dist/assets/mars3d-cesium/Workers/chunk-K35RPNUR.js +27 -0
  307. package/dist/assets/mars3d-cesium/Workers/chunk-KIXGV6RH.js +26 -0
  308. package/dist/assets/mars3d-cesium/Workers/chunk-LT7NKOZD.js +26 -0
  309. package/dist/assets/mars3d-cesium/Workers/chunk-LUCUOT65.js +26 -0
  310. package/dist/assets/mars3d-cesium/Workers/chunk-MWY74K7V.js +63 -0
  311. package/dist/assets/mars3d-cesium/Workers/chunk-N6SIW7ZL.js +26 -0
  312. package/dist/assets/mars3d-cesium/Workers/chunk-NL753UYH.js +26 -0
  313. package/dist/assets/mars3d-cesium/Workers/chunk-OVOY7YA7.js +26 -0
  314. package/dist/assets/mars3d-cesium/Workers/chunk-PQWMNK6M.js +26 -0
  315. package/dist/assets/mars3d-cesium/Workers/chunk-PUOAX5MA.js +26 -0
  316. package/dist/assets/mars3d-cesium/Workers/chunk-PUPGLHXG.js +26 -0
  317. package/dist/assets/mars3d-cesium/Workers/chunk-PXZYU6PD.js +26 -0
  318. package/dist/assets/mars3d-cesium/Workers/chunk-Q6MK2R6B.js +26 -0
  319. package/dist/assets/mars3d-cesium/Workers/chunk-Q6YG52WP.js +26 -0
  320. package/dist/assets/mars3d-cesium/Workers/chunk-QQJ4EFK2.js +26 -0
  321. package/dist/assets/mars3d-cesium/Workers/chunk-RPFEAA52.js +26 -0
  322. package/dist/assets/mars3d-cesium/Workers/chunk-RTRJ3LVQ.js +26 -0
  323. package/dist/assets/mars3d-cesium/Workers/chunk-SDQXNLTQ.js +26 -0
  324. package/dist/assets/mars3d-cesium/Workers/chunk-TJ6QLJOT.js +26 -0
  325. package/dist/assets/mars3d-cesium/Workers/chunk-TJUBNZ45.js +26 -0
  326. package/dist/assets/mars3d-cesium/Workers/chunk-TOK3PZ73.js +26 -0
  327. package/dist/assets/mars3d-cesium/Workers/chunk-UKJ254OV.js +26 -0
  328. package/dist/assets/mars3d-cesium/Workers/chunk-VC43NA4S.js +26 -0
  329. package/dist/assets/mars3d-cesium/Workers/chunk-WPXTUJZY.js +26 -0
  330. package/dist/assets/mars3d-cesium/Workers/chunk-WRLXLKCG.js +26 -0
  331. package/dist/assets/mars3d-cesium/Workers/chunk-WYMSHGR6.js +28 -0
  332. package/dist/assets/mars3d-cesium/Workers/chunk-X56SSSS5.js +26 -0
  333. package/dist/assets/mars3d-cesium/Workers/chunk-XXWWJ3QU.js +28 -0
  334. package/dist/assets/mars3d-cesium/Workers/chunk-YBIGLQJN.js +26 -0
  335. package/dist/assets/mars3d-cesium/Workers/chunk-YDQLCOZM.js +26 -0
  336. package/dist/assets/mars3d-cesium/Workers/chunk-YECQFZBX.js +29 -0
  337. package/dist/assets/mars3d-cesium/Workers/chunk-YWNU5ZQD.js +26 -0
  338. package/dist/assets/mars3d-cesium/Workers/chunk-Z4E6T4NK.js +26 -0
  339. package/dist/assets/mars3d-cesium/Workers/combineGeometry.js +26 -0
  340. package/dist/assets/mars3d-cesium/Workers/createBoxGeometry.js +26 -0
  341. package/dist/assets/mars3d-cesium/Workers/createBoxOutlineGeometry.js +26 -0
  342. package/dist/assets/mars3d-cesium/Workers/createCircleGeometry.js +26 -0
  343. package/dist/assets/mars3d-cesium/Workers/createCircleOutlineGeometry.js +26 -0
  344. package/dist/assets/mars3d-cesium/Workers/createCoplanarPolygonGeometry.js +26 -0
  345. package/dist/assets/mars3d-cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
  346. package/dist/assets/mars3d-cesium/Workers/createCorridorGeometry.js +26 -0
  347. package/dist/assets/mars3d-cesium/Workers/createCorridorOutlineGeometry.js +26 -0
  348. package/dist/assets/mars3d-cesium/Workers/createCylinderGeometry.js +26 -0
  349. package/dist/assets/mars3d-cesium/Workers/createCylinderOutlineGeometry.js +26 -0
  350. package/dist/assets/mars3d-cesium/Workers/createEllipseGeometry.js +26 -0
  351. package/dist/assets/mars3d-cesium/Workers/createEllipseOutlineGeometry.js +26 -0
  352. package/dist/assets/mars3d-cesium/Workers/createEllipsoidGeometry.js +26 -0
  353. package/dist/assets/mars3d-cesium/Workers/createEllipsoidOutlineGeometry.js +26 -0
  354. package/dist/assets/mars3d-cesium/Workers/createFrustumGeometry.js +26 -0
  355. package/dist/assets/mars3d-cesium/Workers/createFrustumOutlineGeometry.js +26 -0
  356. package/dist/assets/mars3d-cesium/Workers/createGeometry.js +26 -0
  357. package/dist/assets/mars3d-cesium/Workers/createGroundPolylineGeometry.js +26 -0
  358. package/dist/assets/mars3d-cesium/Workers/createPlaneGeometry.js +26 -0
  359. package/dist/assets/mars3d-cesium/Workers/createPlaneOutlineGeometry.js +26 -0
  360. package/dist/assets/mars3d-cesium/Workers/createPolygonGeometry.js +26 -0
  361. package/dist/assets/mars3d-cesium/Workers/createPolygonOutlineGeometry.js +26 -0
  362. package/dist/assets/mars3d-cesium/Workers/createPolylineGeometry.js +26 -0
  363. package/dist/assets/mars3d-cesium/Workers/createPolylineVolumeGeometry.js +26 -0
  364. package/dist/assets/mars3d-cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
  365. package/dist/assets/mars3d-cesium/Workers/createRectangleGeometry.js +26 -0
  366. package/dist/assets/mars3d-cesium/Workers/createRectangleOutlineGeometry.js +26 -0
  367. package/dist/assets/mars3d-cesium/Workers/createSimplePolylineGeometry.js +26 -0
  368. package/dist/assets/mars3d-cesium/Workers/createSphereGeometry.js +26 -0
  369. package/dist/assets/mars3d-cesium/Workers/createSphereOutlineGeometry.js +26 -0
  370. package/dist/assets/mars3d-cesium/Workers/createTaskProcessorWorker.js +26 -0
  371. package/dist/assets/mars3d-cesium/Workers/createVectorTileClampedPolylines.js +26 -0
  372. package/dist/assets/mars3d-cesium/Workers/createVectorTileGeometries.js +26 -0
  373. package/dist/assets/mars3d-cesium/Workers/createVectorTilePoints.js +26 -0
  374. package/dist/assets/mars3d-cesium/Workers/createVectorTilePolygons.js +26 -0
  375. package/dist/assets/mars3d-cesium/Workers/createVectorTilePolylines.js +26 -0
  376. package/dist/assets/mars3d-cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
  377. package/dist/assets/mars3d-cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
  378. package/dist/assets/mars3d-cesium/Workers/createVerticesFromHeightmap.js +26 -0
  379. package/dist/assets/mars3d-cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
  380. package/dist/assets/mars3d-cesium/Workers/createWallGeometry.js +26 -0
  381. package/dist/assets/mars3d-cesium/Workers/createWallOutlineGeometry.js +26 -0
  382. package/dist/assets/mars3d-cesium/Workers/decodeDraco.js +26 -0
  383. package/dist/assets/mars3d-cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
  384. package/dist/assets/mars3d-cesium/Workers/decodeI3S.js +26 -0
  385. package/dist/assets/mars3d-cesium/Workers/gaussianSplatSorter.js +26 -0
  386. package/dist/assets/mars3d-cesium/Workers/gaussianSplatTextureGenerator.js +26 -0
  387. package/dist/assets/mars3d-cesium/Workers/incrementallyBuildTerrainPicker.js +26 -0
  388. package/dist/assets/mars3d-cesium/Workers/transcodeKTX2.js +56 -0
  389. package/dist/assets/mars3d-cesium/Workers/transferTypedArrayTest.js +26 -0
  390. package/dist/assets/mars3d-cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -0
  391. package/dist/assets/mars3d-cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
  392. package/dist/components/business/index.d.ts +13 -0
  393. package/dist/components/business/poi-marker/PoiMarkerPanel.vue.d.ts +2 -0
  394. package/dist/components/business/poi-marker/usePoiMarker.d.ts +46 -0
  395. package/dist/components/business/track/TrackPanel.vue.d.ts +2 -0
  396. package/dist/components/business/track/useTrack.d.ts +84 -0
  397. package/dist/components/mars-map/composables/useDraw.d.ts +15 -0
  398. package/dist/components/mars-map/composables/useMap.d.ts +29 -0
  399. package/dist/components/mars-map/composables/useMeasure.d.ts +11 -0
  400. package/dist/components/mars-map/composables/useVision.d.ts +11 -0
  401. package/dist/components/mars-map/index.d.ts +15 -0
  402. package/dist/components/mars-map/panels/ToolbarPanel.vue.d.ts +21 -0
  403. package/dist/components/mars-map/panels/VisionPanel.vue.d.ts +25 -0
  404. package/dist/components/mars-work/mars-map.vue.d.ts +44 -0
  405. package/dist/config/config copy.json +1488 -0
  406. package/dist/config/config.json +1298 -0
  407. package/dist/favicon.ico +0 -0
  408. package/dist/img/basemaps/TerrainEllipsoid.png +0 -0
  409. package/dist/img/basemaps/TerrainSTK.png +0 -0
  410. package/dist/img/basemaps/arcgis.png +0 -0
  411. package/dist/img/basemaps/bd-c-bluish.png +0 -0
  412. package/dist/img/basemaps/bd-c-dark.png +0 -0
  413. package/dist/img/basemaps/bd-c-darkgreen.png +0 -0
  414. package/dist/img/basemaps/bd-c-googlelite.png +0 -0
  415. package/dist/img/basemaps/bd-c-grassgreen.png +0 -0
  416. package/dist/img/basemaps/bd-c-grayscale.png +0 -0
  417. package/dist/img/basemaps/bd-c-hardedge.png +0 -0
  418. package/dist/img/basemaps/bd-c-light.png +0 -0
  419. package/dist/img/basemaps/bd-c-midnight.png +0 -0
  420. package/dist/img/basemaps/bd-c-pink.png +0 -0
  421. package/dist/img/basemaps/bd-c-redalert.png +0 -0
  422. package/dist/img/basemaps/bd-img.png +0 -0
  423. package/dist/img/basemaps/bd-vec.png +0 -0
  424. package/dist/img/basemaps/bingAerial.png +0 -0
  425. package/dist/img/basemaps/bingAerialLabels.png +0 -0
  426. package/dist/img/basemaps/bingRoads.png +0 -0
  427. package/dist/img/basemaps/bingimage.png +0 -0
  428. package/dist/img/basemaps/bingmap.png +0 -0
  429. package/dist/img/basemaps/blackMarble.png +0 -0
  430. package/dist/img/basemaps/esriNationalGeographic.png +0 -0
  431. package/dist/img/basemaps/esriWorldImagery.png +0 -0
  432. package/dist/img/basemaps/esriWorldStreetMap.png +0 -0
  433. package/dist/img/basemaps/gaode_img.png +0 -0
  434. package/dist/img/basemaps/gaode_vec.png +0 -0
  435. package/dist/img/basemaps/google_img.png +0 -0
  436. package/dist/img/basemaps/google_ter.png +0 -0
  437. package/dist/img/basemaps/google_vec.png +0 -0
  438. package/dist/img/basemaps/mapQuestOpenStreetMap.png +0 -0
  439. package/dist/img/basemaps/mapboxSatellite.png +0 -0
  440. package/dist/img/basemaps/mapboxStreets.png +0 -0
  441. package/dist/img/basemaps/mapboxTerrain.png +0 -0
  442. package/dist/img/basemaps/naturalEarthII.png +0 -0
  443. package/dist/img/basemaps/offline.png +0 -0
  444. package/dist/img/basemaps/osm.png +0 -0
  445. package/dist/img/basemaps/sea.png +0 -0
  446. package/dist/img/basemaps/stamenToner.png +0 -0
  447. package/dist/img/basemaps/stamenWatercolor.png +0 -0
  448. package/dist/img/basemaps/tdt_img.png +0 -0
  449. package/dist/img/basemaps/tdt_ter.png +0 -0
  450. package/dist/img/basemaps/tdt_vec.png +0 -0
  451. package/dist/img/basemaps/tencent_img.png +0 -0
  452. package/dist/img/basemaps/tencent_vec.png +0 -0
  453. package/dist/img/marker/mark-blue.png +0 -0
  454. package/dist/img/textures/fence.png +0 -0
  455. package/dist/img/textures/poly-rivers.png +0 -0
  456. package/dist/img/textures/waterNormals.jpg +0 -0
  457. package/dist/index.d.ts +41 -0
  458. package/dist/main.d.ts +4 -0
  459. package/dist/style.css +4295 -0
  460. package/dist/yi-map-web.mjs +2107 -0
  461. package/dist/yi-map-web.mjs.map +1 -0
  462. package/dist/yi-map-web.umd.cjs +2128 -0
  463. package/dist/yi-map-web.umd.cjs.map +1 -0
  464. package/package.json +64 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as h}from"./chunk-KIXGV6RH.js";import{b as y}from"./chunk-QQJ4EFK2.js";import{a as n,b as a}from"./chunk-XXWWJ3QU.js";import{b as f}from"./chunk-K35RPNUR.js";var x={},b=new n,P=new n,B=new n,M=new n,w=new h;x.validOutline=function(i){f.defined("positions",i);let o=h.fromPoints(i,w).halfAxes,e=a.getColumn(o,0,P),r=a.getColumn(o,1,B),t=a.getColumn(o,2,M),u=n.magnitude(e),s=n.magnitude(r),l=n.magnitude(t);return!(u===0&&(s===0||l===0)||s===0&&l===0)};x.computeProjectTo2DArguments=function(i,c,o,e){f.defined("positions",i),f.defined("centerResult",c),f.defined("planeAxis1Result",o),f.defined("planeAxis2Result",e);let r=h.fromPoints(i,w),t=r.halfAxes,u=a.getColumn(t,0,P),s=a.getColumn(t,1,B),l=a.getColumn(t,2,M),A=n.magnitude(u),d=n.magnitude(s),g=n.magnitude(l),m=Math.min(A,d,g);if(A===0&&(d===0||g===0)||d===0&&g===0)return!1;let p,C;return(m===d||m===g)&&(p=u),m===A?p=s:m===g&&(C=s),(m===A||m===d)&&(C=l),n.normalize(p,o),n.normalize(C,e),n.clone(r.center,c),!0};function z(i,c,o,e,r){let t=n.subtract(i,c,b),u=n.dot(o,t),s=n.dot(e,t);return y.fromElements(u,s,r)}x.createProjectPointsTo2DFunction=function(i,c,o){return function(e){let r=new Array(e.length);for(let t=0;t<e.length;t++)r[t]=z(e[t],i,c,o);return r}};x.createProjectPointTo2DFunction=function(i,c,o){return function(e,r){return z(e,i,c,o,r)}};var O=x;export{O as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{c as e}from"./chunk-XXWWJ3QU.js";function r(t){t=t??e.EMPTY_OBJECT,this.position=t.position,this.normal=t.normal,this.st=t.st,this.bitangent=t.bitangent,this.tangent=t.tangent,this.color=t.color}var n=r;export{n as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as C}from"./chunk-N6SIW7ZL.js";import{b as g}from"./chunk-K35RPNUR.js";import{e as f}from"./chunk-RTRJ3LVQ.js";var d=C.EPSILON10;function x(e,r,h,n){if(g.defined("equalsEpsilon",r),!f(e))return;h=h??!1;let c=f(n),l=e.length;if(l<2)return e;let i,s=e[0],o,t,p=0,m=-1;for(i=1;i<l;++i)o=e[i],r(s,o,d)?(f(t)||(t=e.slice(0,i),p=i-1,m=0),c&&n.push(i)):(f(t)&&(t.push(o),p=i,c&&(m=n.length)),s=o);return h&&r(e[0],e[l-1],d)&&(c&&(f(t)?n.splice(m,0,p):n.push(l-1)),f(t)?t.length-=1:t=e.slice(0,-1)),f(t)?t:e}var k=x;export{k as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as g}from"./chunk-UKJ254OV.js";import{a as d}from"./chunk-YDQLCOZM.js";import{j as x}from"./chunk-MWY74K7V.js";import{a as p,b as M,c as O}from"./chunk-QQJ4EFK2.js";import{b as m}from"./chunk-K35RPNUR.js";import{e as f}from"./chunk-RTRJ3LVQ.js";function n(i,h,o,t){this.x=i??0,this.y=h??0,this.width=o??0,this.height=t??0}n.packedLength=4;n.pack=function(i,h,o){return m.typeOf.object("value",i),m.defined("array",h),o=o??0,h[o++]=i.x,h[o++]=i.y,h[o++]=i.width,h[o]=i.height,h};n.unpack=function(i,h,o){return m.defined("array",i),h=h??0,f(o)||(o=new n),o.x=i[h++],o.y=i[h++],o.width=i[h++],o.height=i[h],o};n.fromPoints=function(i,h){if(f(h)||(h=new n),!f(i)||i.length===0)return h.x=0,h.y=0,h.width=0,h.height=0,h;let o=i.length,t=i[0].x,c=i[0].y,e=i[0].x,w=i[0].y;for(let y=1;y<o;y++){let R=i[y],b=R.x,j=R.y;t=Math.min(b,t),e=Math.max(b,e),c=Math.min(j,c),w=Math.max(j,w)}return h.x=t,h.y=c,h.width=e-t,h.height=w-c,h};var L=new g,X=new p,Y=new p;n.fromRectangle=function(i,h,o){if(f(o)||(o=new n),!f(i))return o.x=0,o.y=0,o.width=0,o.height=0,o;L._ellipsoid=O.default,h=h??L;let t=h.project(x.southwest(i,X)),c=h.project(x.northeast(i,Y));return M.subtract(c,t,c),o.x=t.x,o.y=t.y,o.width=c.x,o.height=c.y,o};n.clone=function(i,h){if(f(i))return f(h)?(h.x=i.x,h.y=i.y,h.width=i.width,h.height=i.height,h):new n(i.x,i.y,i.width,i.height)};n.union=function(i,h,o){m.typeOf.object("left",i),m.typeOf.object("right",h),f(o)||(o=new n);let t=Math.min(i.x,h.x),c=Math.min(i.y,h.y),e=Math.max(i.x+i.width,h.x+h.width),w=Math.max(i.y+i.height,h.y+h.height);return o.x=t,o.y=c,o.width=e-t,o.height=w-c,o};n.expand=function(i,h,o){m.typeOf.object("rectangle",i),m.typeOf.object("point",h),o=n.clone(i,o);let t=h.x-o.x,c=h.y-o.y;return t>o.width?o.width=t:t<0&&(o.width-=t,o.x=h.x),c>o.height?o.height=c:c<0&&(o.height-=c,o.y=h.y),o};n.intersect=function(i,h){m.typeOf.object("left",i),m.typeOf.object("right",h);let o=i.x,t=i.y,c=h.x,e=h.y;return o>c+h.width||o+i.width<c||t+i.height<e||t>e+h.height?d.OUTSIDE:d.INTERSECTING};n.equals=function(i,h){return i===h||f(i)&&f(h)&&i.x===h.x&&i.y===h.y&&i.width===h.width&&i.height===h.height};n.prototype.clone=function(i){return n.clone(this,i)};n.prototype.intersect=function(i){return n.intersect(this,i)};n.prototype.equals=function(i){return n.equals(this,i)};var S=n;export{S as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as o}from"./chunk-XXWWJ3QU.js";import{a as p}from"./chunk-N6SIW7ZL.js";import{a as O,b as r}from"./chunk-K35RPNUR.js";import{e as a}from"./chunk-RTRJ3LVQ.js";var Ee=new o,Ce=new o;function Te(n,e,t,i,u){if(!a(n))throw new O("cartesian is required.");if(!a(e))throw new O("oneOverRadii is required.");if(!a(t))throw new O("oneOverRadiiSquared is required.");if(!a(i))throw new O("centerToleranceSquared is required.");let c=n.x,d=n.y,y=n.z,R=e.x,A=e.y,S=e.z,w=c*c*R*R,_=d*d*A*A,j=y*y*S*S,M=w+_+j,E=Math.sqrt(1/M),P=o.multiplyByScalar(n,E,Ee);if(M<i)return isFinite(E)?o.clone(P,u):void 0;let Y=t.x,Q=t.y,H=t.z,k=Ce;k.x=P.x*Y*2,k.y=P.y*Q*2,k.z=P.z*H*2;let I=(1-E)*o.magnitude(n)/(.5*o.magnitude(k)),se=0,J,fe,C,T,v,K,ee,te,de,pe,le;do{I-=se,C=1/(1+I*Y),T=1/(1+I*Q),v=1/(1+I*H),K=C*C,ee=T*T,te=v*v,de=K*C,pe=ee*T,le=te*v,J=w*K+_*ee+j*te-1,fe=w*de*Y+_*pe*Q+j*le*H;let je=-2*fe;se=J/je}while(Math.abs(J)>p.EPSILON12);return a(u)?(u.x=c*C,u.y=d*T,u.z=y*v,u):new o(c*C,d*T,y*v)}var B=Te;function f(n,e,t){this.longitude=n??0,this.latitude=e??0,this.height=t??0}f.fromRadians=function(n,e,t,i){return r.typeOf.number("longitude",n),r.typeOf.number("latitude",e),t=t??0,a(i)?(i.longitude=n,i.latitude=e,i.height=t,i):new f(n,e,t)};f.fromDegrees=function(n,e,t,i){return r.typeOf.number("longitude",n),r.typeOf.number("latitude",e),n=p.toRadians(n),e=p.toRadians(e),f.fromRadians(n,e,t,i)};var ve=new o,Fe=new o,Me=new o;f._ellipsoidOneOverRadii=new o(1/6378137,1/6378137,1/6356752314245179e-9);f._ellipsoidOneOverRadiiSquared=new o(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9));f._ellipsoidCenterToleranceSquared=p.EPSILON1;f.fromCartesian=function(n,e,t){let i=a(e)?e.oneOverRadii:f._ellipsoidOneOverRadii,u=a(e)?e.oneOverRadiiSquared:f._ellipsoidOneOverRadiiSquared,c=a(e)?e._centerToleranceSquared:f._ellipsoidCenterToleranceSquared,d=B(n,i,u,c,Fe);if(!a(d))return;let y=o.multiplyComponents(d,u,ve);y=o.normalize(y,y);let R=o.subtract(n,d,Me),A=Math.atan2(y.y,y.x),S=Math.asin(y.z),w=p.sign(o.dot(R,n))*o.magnitude(R);return a(t)?(t.longitude=A,t.latitude=S,t.height=w,t):new f(A,S,w)};f.toCartesian=function(n,e,t){return r.defined("cartographic",n),o.fromRadians(n.longitude,n.latitude,n.height,e,t)};f.clone=function(n,e){if(a(n))return a(e)?(e.longitude=n.longitude,e.latitude=n.latitude,e.height=n.height,e):new f(n.longitude,n.latitude,n.height)};f.equals=function(n,e){return n===e||a(n)&&a(e)&&n.longitude===e.longitude&&n.latitude===e.latitude&&n.height===e.height};f.equalsEpsilon=function(n,e,t){return t=t??0,n===e||a(n)&&a(e)&&Math.abs(n.longitude-e.longitude)<=t&&Math.abs(n.latitude-e.latitude)<=t&&Math.abs(n.height-e.height)<=t};f.ZERO=Object.freeze(new f(0,0,0));f.prototype.clone=function(n){return f.clone(this,n)};f.prototype.equals=function(n){return f.equals(this,n)};f.prototype.equalsEpsilon=function(n,e){return f.equalsEpsilon(this,n,e)};f.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};var N=f;var l=class n{constructor(e,t){this.x=e??0,this.y=t??0}static fromElements(e,t,i){return a(i)?(i.x=e,i.y=t,i):new n(e,t)}static clone(e,t){if(a(e))return a(t)?(t.x=e.x,t.y=e.y,t):new n(e.x,e.y)}static pack(e,t,i){return r.typeOf.object("value",e),r.defined("array",t),i=i??0,t[i++]=e.x,t[i]=e.y,t}static unpack(e,t,i){return r.defined("array",e),t=t??0,a(i)||(i=new n),i.x=e[t++],i.y=e[t],i}static packArray(e,t){r.defined("array",e);let i=e.length,u=i*2;if(!a(t))t=new Array(u);else{if(!Array.isArray(t)&&t.length!==u)throw new O("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==u&&(t.length=u)}for(let c=0;c<i;++c)n.pack(e[c],t,c*2);return t}static unpackArray(e,t){if(r.defined("array",e),r.typeOf.number.greaterThanOrEquals("array.length",e.length,2),e.length%2!==0)throw new O("array length must be a multiple of 2.");let i=e.length;a(t)?t.length=i/2:t=new Array(i/2);for(let u=0;u<i;u+=2){let c=u/2;t[c]=n.unpack(e,u,t[c])}return t}static maximumComponent(e){return r.typeOf.object("cartesian",e),Math.max(e.x,e.y)}static minimumComponent(e){return r.typeOf.object("cartesian",e),Math.min(e.x,e.y)}static minimumByComponent(e,t,i){return r.typeOf.object("first",e),r.typeOf.object("second",t),r.typeOf.object("result",i),i.x=Math.min(e.x,t.x),i.y=Math.min(e.y,t.y),i}static maximumByComponent(e,t,i){return r.typeOf.object("first",e),r.typeOf.object("second",t),r.typeOf.object("result",i),i.x=Math.max(e.x,t.x),i.y=Math.max(e.y,t.y),i}static clamp(e,t,i,u){r.typeOf.object("value",e),r.typeOf.object("min",t),r.typeOf.object("max",i),r.typeOf.object("result",u);let c=p.clamp(e.x,t.x,i.x),d=p.clamp(e.y,t.y,i.y);return u.x=c,u.y=d,u}static magnitudeSquared(e){return r.typeOf.object("cartesian",e),e.x*e.x+e.y*e.y}static magnitude(e){return Math.sqrt(n.magnitudeSquared(e))}static distance(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),n.subtract(e,t,W),n.magnitude(W)}static distanceSquared(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),n.subtract(e,t,W),n.magnitudeSquared(W)}static normalize(e,t){r.typeOf.object("cartesian",e),r.typeOf.object("result",t);let i=n.magnitude(e);if(t.x=e.x/i,t.y=e.y/i,isNaN(t.x)||isNaN(t.y))throw new O("normalized result is not a number");return t}static dot(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),e.x*t.x+e.y*t.y}static cross(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),e.x*t.y-e.y*t.x}static multiplyComponents(e,t,i){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",i),i.x=e.x*t.x,i.y=e.y*t.y,i}static divideComponents(e,t,i){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",i),i.x=e.x/t.x,i.y=e.y/t.y,i}static add(e,t,i){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",i),i.x=e.x+t.x,i.y=e.y+t.y,i}static subtract(e,t,i){return r.typeOf.object("left",e),r.typeOf.object("right",t),r.typeOf.object("result",i),i.x=e.x-t.x,i.y=e.y-t.y,i}static multiplyByScalar(e,t,i){return r.typeOf.object("cartesian",e),r.typeOf.number("scalar",t),r.typeOf.object("result",i),i.x=e.x*t,i.y=e.y*t,i}static divideByScalar(e,t,i){return r.typeOf.object("cartesian",e),r.typeOf.number("scalar",t),r.typeOf.object("result",i),i.x=e.x/t,i.y=e.y/t,i}static negate(e,t){return r.typeOf.object("cartesian",e),r.typeOf.object("result",t),t.x=-e.x,t.y=-e.y,t}static abs(e,t){return r.typeOf.object("cartesian",e),r.typeOf.object("result",t),t.x=Math.abs(e.x),t.y=Math.abs(e.y),t}static lerp(e,t,i,u){return r.typeOf.object("start",e),r.typeOf.object("end",t),r.typeOf.number("t",i),r.typeOf.object("result",u),n.multiplyByScalar(t,i,me),u=n.multiplyByScalar(e,1-i,u),n.add(me,u,u)}static angleBetween(e,t){return r.typeOf.object("left",e),r.typeOf.object("right",t),n.normalize(e,ye),n.normalize(t,he),p.acosClamped(n.dot(ye,he))}static mostOrthogonalAxis(e,t){r.typeOf.object("cartesian",e),r.typeOf.object("result",t);let i=n.normalize(e,Ne);return n.abs(i,i),i.x<=i.y?t=n.clone(n.UNIT_X,t):t=n.clone(n.UNIT_Y,t),t}static equals(e,t){return e===t||a(e)&&a(t)&&e.x===t.x&&e.y===t.y}static equalsArray(e,t,i){return e.x===t[i]&&e.y===t[i+1]}static equalsEpsilon(e,t,i,u){return e===t||a(e)&&a(t)&&p.equalsEpsilon(e.x,t.x,i,u)&&p.equalsEpsilon(e.y,t.y,i,u)}clone(e){return n.clone(this,e)}equals(e){return n.equals(this,e)}equalsEpsilon(e,t,i){return n.equalsEpsilon(this,e,t,i)}toString(){return`(${this.x}, ${this.y})`}};l.fromCartesian3=l.clone;l.fromCartesian4=l.clone;l.packedLength=2;l.fromArray=l.unpack;var W=new l,me=new l,ye=new l,he=new l,Ne=new l;l.ZERO=Object.freeze(new l(0,0));l.ONE=Object.freeze(new l(1,1));l.UNIT_X=Object.freeze(new l(1,0));l.UNIT_Y=Object.freeze(new l(0,1));var ne=l;function ge(n,e,t,i){e=e??0,t=t??0,i=i??0,r.typeOf.number.greaterThanOrEquals("x",e,0),r.typeOf.number.greaterThanOrEquals("y",t,0),r.typeOf.number.greaterThanOrEquals("z",i,0),n._radii=new o(e,t,i),n._radiiSquared=new o(e*e,t*t,i*i),n._radiiToTheFourth=new o(e*e*e*e,t*t*t*t,i*i*i*i),n._oneOverRadii=new o(e===0?0:1/e,t===0?0:1/t,i===0?0:1/i),n._oneOverRadiiSquared=new o(e===0?0:1/(e*e),t===0?0:1/(t*t),i===0?0:1/(i*i)),n._minimumRadius=Math.min(e,t,i),n._maximumRadius=Math.max(e,t,i),n._centerToleranceSquared=p.EPSILON1,n._radiiSquared.z!==0&&(n._squaredXOverSquaredZ=n._radiiSquared.x/n._radiiSquared.z)}function s(n,e,t){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,ge(this,n,e,t)}Object.defineProperties(s.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});s.clone=function(n,e){if(!a(n))return;let t=n._radii;return a(e)?(o.clone(t,e._radii),o.clone(n._radiiSquared,e._radiiSquared),o.clone(n._radiiToTheFourth,e._radiiToTheFourth),o.clone(n._oneOverRadii,e._oneOverRadii),o.clone(n._oneOverRadiiSquared,e._oneOverRadiiSquared),e._minimumRadius=n._minimumRadius,e._maximumRadius=n._maximumRadius,e._centerToleranceSquared=n._centerToleranceSquared,e):new s(t.x,t.y,t.z)};s.fromCartesian3=function(n,e){return a(e)||(e=new s),a(n)&&ge(e,n.x,n.y,n.z),e};s.WGS84=Object.freeze(new s(6378137,6378137,6356752314245179e-9));s.UNIT_SPHERE=Object.freeze(new s(1,1,1));s.MOON=Object.freeze(new s(p.LUNAR_RADIUS,p.LUNAR_RADIUS,p.LUNAR_RADIUS));s.MARS=Object.freeze(new s(3396190,3396190,3376200));s._default=s.WGS84;Object.defineProperties(s,{default:{get:function(){return s._default},set:function(n){r.typeOf.object("value",n),s._default=n,o._ellipsoidRadiiSquared=n.radiiSquared,N._ellipsoidOneOverRadii=n.oneOverRadii,N._ellipsoidOneOverRadiiSquared=n.oneOverRadiiSquared,N._ellipsoidCenterToleranceSquared=n._centerToleranceSquared}}});s.prototype.clone=function(n){return s.clone(this,n)};s.packedLength=o.packedLength;s.pack=function(n,e,t){return r.typeOf.object("value",n),r.defined("array",e),t=t??0,o.pack(n._radii,e,t),e};s.unpack=function(n,e,t){r.defined("array",n),e=e??0;let i=o.unpack(n,e);return s.fromCartesian3(i,t)};s.prototype.geocentricSurfaceNormal=o.normalize;s.prototype.geodeticSurfaceNormalCartographic=function(n,e){r.typeOf.object("cartographic",n);let t=n.longitude,i=n.latitude,u=Math.cos(i),c=u*Math.cos(t),d=u*Math.sin(t),y=Math.sin(i);return a(e)||(e=new o),e.x=c,e.y=d,e.z=y,o.normalize(e,e)};s.prototype.geodeticSurfaceNormal=function(n,e){if(r.typeOf.object("cartesian",n),isNaN(n.x)||isNaN(n.y)||isNaN(n.z))throw new O("cartesian has a NaN component");if(!o.equalsEpsilon(n,o.ZERO,p.EPSILON14))return a(e)||(e=new o),e=o.multiplyComponents(n,this._oneOverRadiiSquared,e),o.normalize(e,e)};var ze=new o,Pe=new o;s.prototype.cartographicToCartesian=function(n,e){let t=ze,i=Pe;this.geodeticSurfaceNormalCartographic(n,t),o.multiplyComponents(this._radiiSquared,t,i);let u=Math.sqrt(o.dot(t,i));return o.divideByScalar(i,u,i),o.multiplyByScalar(t,n.height,t),a(e)||(e=new o),o.add(i,t,e)};s.prototype.cartographicArrayToCartesianArray=function(n,e){r.defined("cartographics",n);let t=n.length;a(e)?e.length=t:e=new Array(t);for(let i=0;i<t;i++)e[i]=this.cartographicToCartesian(n[i],e[i]);return e};var ke=new o,Ie=new o,Be=new o;s.prototype.cartesianToCartographic=function(n,e){let t=this.scaleToGeodeticSurface(n,Ie);if(!a(t))return;let i=this.geodeticSurfaceNormal(t,ke),u=o.subtract(n,t,Be),c=Math.atan2(i.y,i.x),d=Math.asin(i.z),y=p.sign(o.dot(u,n))*o.magnitude(u);return a(e)?(e.longitude=c,e.latitude=d,e.height=y,e):new N(c,d,y)};s.prototype.cartesianArrayToCartographicArray=function(n,e){r.defined("cartesians",n);let t=n.length;a(e)?e.length=t:e=new Array(t);for(let i=0;i<t;++i)e[i]=this.cartesianToCartographic(n[i],e[i]);return e};s.prototype.scaleToGeodeticSurface=function(n,e){return B(n,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,e)};s.prototype.scaleToGeocentricSurface=function(n,e){r.typeOf.object("cartesian",n),a(e)||(e=new o);let t=n.x,i=n.y,u=n.z,c=this._oneOverRadiiSquared,d=1/Math.sqrt(t*t*c.x+i*i*c.y+u*u*c.z);return o.multiplyByScalar(n,d,e)};s.prototype.transformPositionToScaledSpace=function(n,e){return a(e)||(e=new o),o.multiplyComponents(n,this._oneOverRadii,e)};s.prototype.transformPositionFromScaledSpace=function(n,e){return a(e)||(e=new o),o.multiplyComponents(n,this._radii,e)};s.prototype.equals=function(n){return this===n||a(n)&&o.equals(this._radii,n._radii)};s.prototype.toString=function(){return this._radii.toString()};s.prototype.getSurfaceNormalIntersectionWithZAxis=function(n,e,t){if(r.typeOf.object("position",n),!p.equalsEpsilon(this._radii.x,this._radii.y,p.EPSILON15))throw new O("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");r.typeOf.number.greaterThan("Ellipsoid.radii.z",this._radii.z,0),e=e??0;let i=this._squaredXOverSquaredZ;if(a(t)||(t=new o),t.x=0,t.y=0,t.z=n.z*(1-i),!(Math.abs(t.z)>=this._radii.z-e))return t};var We=new o;s.prototype.getLocalCurvature=function(n,e){r.typeOf.object("surfacePosition",n),a(e)||(e=new ne);let t=this.getSurfaceNormalIntersectionWithZAxis(n,0,We),i=o.distance(n,t),u=this.minimumRadius*i/this.maximumRadius**2,c=i*u**2;return ne.fromElements(1/i,1/c,e)};var Ue=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],Ve=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function Oe(n,e,t){r.typeOf.number("a",n),r.typeOf.number("b",e),r.typeOf.func("func",t);let i=.5*(e+n),u=.5*(e-n),c=0;for(let d=0;d<5;d++){let y=u*Ue[d];c+=Ve[d]*(t(i+y)+t(i-y))}return c*=u,c}s.prototype.surfaceArea=function(n){r.typeOf.object("rectangle",n);let e=n.west,t=n.east,i=n.south,u=n.north;for(;t<e;)t+=p.TWO_PI;let c=this._radiiSquared,d=c.x,y=c.y,R=c.z,A=d*y;return Oe(i,u,function(S){let w=Math.cos(S),_=Math.sin(S);return Math.cos(S)*Oe(e,t,function(j){let M=Math.cos(j),E=Math.sin(j);return Math.sqrt(A*_*_+R*(y*M*M+d*E*E)*w*w)})})};var wt=s;var q,m={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},g={};Object.defineProperties(g,{element:{get:function(){if(g.supportsFullscreen())return document[m.fullscreenElement]}},changeEventName:{get:function(){if(g.supportsFullscreen())return m.fullscreenchange}},errorEventName:{get:function(){if(g.supportsFullscreen())return m.fullscreenerror}},enabled:{get:function(){if(g.supportsFullscreen())return document[m.fullscreenEnabled]}},fullscreen:{get:function(){if(g.supportsFullscreen())return g.element!==null}}});g.supportsFullscreen=function(){if(a(q))return q;q=!1;let n=document.body;if(typeof n.requestFullscreen=="function")return m.requestFullscreen="requestFullscreen",m.exitFullscreen="exitFullscreen",m.fullscreenEnabled="fullscreenEnabled",m.fullscreenElement="fullscreenElement",m.fullscreenchange="fullscreenchange",m.fullscreenerror="fullscreenerror",q=!0,q;let e=["webkit","moz","o","ms","khtml"],t;for(let i=0,u=e.length;i<u;++i){let c=e[i];t=`${c}RequestFullscreen`,typeof n[t]=="function"?(m.requestFullscreen=t,q=!0):(t=`${c}RequestFullScreen`,typeof n[t]=="function"&&(m.requestFullscreen=t,q=!0)),t=`${c}ExitFullscreen`,typeof document[t]=="function"?m.exitFullscreen=t:(t=`${c}CancelFullScreen`,typeof document[t]=="function"&&(m.exitFullscreen=t)),t=`${c}FullscreenEnabled`,document[t]!==void 0?m.fullscreenEnabled=t:(t=`${c}FullScreenEnabled`,document[t]!==void 0&&(m.fullscreenEnabled=t)),t=`${c}FullscreenElement`,document[t]!==void 0?m.fullscreenElement=t:(t=`${c}FullScreenElement`,document[t]!==void 0&&(m.fullscreenElement=t)),t=`${c}fullscreenchange`,document[`on${t}`]!==void 0&&(c==="ms"&&(t="MSFullscreenChange"),m.fullscreenchange=t),t=`${c}fullscreenerror`,document[`on${t}`]!==void 0&&(c==="ms"&&(t="MSFullscreenError"),m.fullscreenerror=t)}return q};g.requestFullscreen=function(n,e){g.supportsFullscreen()&&n[m.requestFullscreen]({vrDisplay:e})};g.exitFullscreen=function(){g.supportsFullscreen()&&document[m.exitFullscreen]()};g._names=m;var be=g;var b;typeof navigator<"u"?b=navigator:b={};function z(n){let e=n.split(".");for(let t=0,i=e.length;t<i;++t)e[t]=parseInt(e[t],10);return e}var U,xe;function ue(){if(!a(U)&&(U=!1,!G())){let n=/ Chrome\/([\.0-9]+)/.exec(b.userAgent);n!==null&&(U=!0,xe=z(n[1]))}return U}function Le(){return ue()&&xe}var V,Se;function we(){if(!a(V)&&(V=!1,!ue()&&!G()&&/ Safari\/[\.0-9]+/.test(b.userAgent))){let n=/ Version\/([\.0-9]+)/.exec(b.userAgent);n!==null&&(V=!0,Se=z(n[1]))}return V}function $e(){return we()&&Se}var L,ae;function qe(){if(!a(L)){L=!1;let n=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(b.userAgent);n!==null&&(L=!0,ae=z(n[1]),ae.isNightly=!!n[2])}return L}function De(){return qe()&&ae}var $,Re;function G(){if(!a($)){$=!1;let n=/ Edg\/([\.0-9]+)/.exec(b.userAgent);n!==null&&($=!0,Re=z(n[1]))}return $}function Ze(){return G()&&Re}var D,ce;function X(){if(!a(D)){D=!1;let n=/Firefox\/([\.0-9]+)/.exec(b.userAgent);n!==null&&(D=!0,ce=z(n[1]))}return D}var ie;function Ge(){return a(ie)||(ie=/Windows/i.test(b.appVersion)),ie}var re;function Xe(){return a(re)||(re=navigator.platform==="iPhone"||navigator.platform==="iPod"||navigator.platform==="iPad"),re}function Ye(){return X()&&ce}var oe;function Qe(){return a(oe)||(oe=!X()&&typeof PointerEvent<"u"&&(!a(b.pointerEnabled)||b.pointerEnabled)),oe}var Ae,Z;function _e(){if(!a(Z)){let n=document.createElement("canvas");n.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");let e=n.style.imageRendering;Z=a(e)&&e!=="",Z&&(Ae=e)}return Z}function He(){return _e()?Ae:void 0}function h(){if(!h.initialized)throw new O("You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP");return h._result}h._promise=void 0;h._result=void 0;h.initialize=function(){return a(h._promise)||(h._promise=new Promise(n=>{let e=new Image;e.onload=function(){h._result=e.width>0&&e.height>0,n(h._result)},e.onerror=function(){h._result=!1,n(h._result)},e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),h._promise};Object.defineProperties(h,{initialized:{get:function(){return a(h._result)}}});var F=[];typeof ArrayBuffer<"u"&&(F.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&F.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&F.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&F.push(BigInt64Array),typeof BigUint64Array<"u"&&F.push(BigUint64Array));var x={isChrome:ue,chromeVersion:Le,isSafari:we,safariVersion:$e,isWebkit:qe,webkitVersion:De,isEdge:G,edgeVersion:Ze,isFirefox:X,firefoxVersion:Ye,isWindows:Ge,isIPadOrIOS:Xe,hardwareConcurrency:b.hardwareConcurrency??3,supportsPointerEvents:Qe,supportsImageRenderingPixelated:_e,supportsWebP:h,imageRenderingValue:He,typedArrayTypes:F};x.supportsBasis=function(n){return x.supportsWebAssembly()&&n.context.supportsBasis};x.supportsFullscreen=function(){return be.supportsFullscreen()};x.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};x.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};x.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};x.supportsBigInt=function(){return typeof BigInt<"u"};x.supportsWebWorkers=function(){return typeof Worker<"u"};x.supportsWebAssembly=function(){return typeof WebAssembly<"u"};x.supportsWebgl2=function(n){return r.defined("scene",n),n.context.webgl2};x.supportsEsmWebWorkers=function(){return!X()||parseInt(ce)>=114};var Tt=x;export{N as a,ne as b,wt as c,Tt as d};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as P}from"./chunk-JQWGTP3K.js";import{a as u,b as d}from"./chunk-SDQXNLTQ.js";import{a as j}from"./chunk-PUOAX5MA.js";import{i as A}from"./chunk-MWY74K7V.js";import{a as _,b as h}from"./chunk-YECQFZBX.js";import{b as l,c as g}from"./chunk-QQJ4EFK2.js";import{a as e}from"./chunk-XXWWJ3QU.js";import{a as y,b as p}from"./chunk-K35RPNUR.js";import{e as r}from"./chunk-RTRJ3LVQ.js";var x=new _;function s(n,t){if(p.defined("origin",n),t=t??g.default,n=t.scaleToGeodeticSurface(n),!r(n))throw new y("origin must not be at the center of the ellipsoid.");let o=A.eastNorthUpToFixedFrame(n,t);this._ellipsoid=t,this._origin=n,this._xAxis=e.fromCartesian4(h.getColumn(o,0,x)),this._yAxis=e.fromCartesian4(h.getColumn(o,1,x));let i=e.fromCartesian4(h.getColumn(o,2,x));this._plane=j.fromPointNormal(n,i)}Object.defineProperties(s.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var w=new P;s.fromPoints=function(n,t){p.defined("cartesians",n);let o=P.fromPoints(n,w);return new s(o.center,t)};var O=new u,m=new e;s.prototype.projectPointOntoPlane=function(n,t){p.defined("cartesian",n);let o=O;o.origin=n,e.normalize(n,o.direction);let i=d.rayPlane(o,this._plane,m);if(r(i)||(e.negate(o.direction,o.direction),i=d.rayPlane(o,this._plane,m)),r(i)){let c=e.subtract(i,this._origin,i),a=e.dot(this._xAxis,c),f=e.dot(this._yAxis,c);return r(t)?(t.x=a,t.y=f,t):new l(a,f)}};s.prototype.projectPointsOntoPlane=function(n,t){p.defined("cartesians",n),r(t)||(t=[]);let o=0,i=n.length;for(let c=0;c<i;c++){let a=this.projectPointOntoPlane(n[c],t[o]);r(a)&&(t[o]=a,o++)}return t.length=o,t};s.prototype.projectPointToNearestOnPlane=function(n,t){p.defined("cartesian",n),r(t)||(t=new l);let o=O;o.origin=n,e.clone(this._plane.normal,o.direction);let i=d.rayPlane(o,this._plane,m);r(i)||(e.negate(o.direction,o.direction),i=d.rayPlane(o,this._plane,m));let c=e.subtract(i,this._origin,i),a=e.dot(this._xAxis,c),f=e.dot(this._yAxis,c);return t.x=a,t.y=f,t};s.prototype.projectPointsToNearestOnPlane=function(n,t){p.defined("cartesians",n),r(t)||(t=[]);let o=n.length;t.length=o;for(let i=0;i<o;i++)t[i]=this.projectPointToNearestOnPlane(n[i],t[i]);return t};var C=new e;s.prototype.projectPointOntoEllipsoid=function(n,t){p.defined("cartesian",n),r(t)||(t=new e);let o=this._ellipsoid,i=this._origin,c=this._xAxis,a=this._yAxis,f=C;return e.multiplyByScalar(c,n.x,f),t=e.add(i,f,t),e.multiplyByScalar(a,n.y,f),e.add(t,f,t),o.scaleToGeocentricSurface(t,t),t};s.prototype.projectPointsOntoEllipsoid=function(n,t){p.defined("cartesians",n);let o=n.length;r(t)?t.length=o:t=new Array(o);for(let i=0;i<o;++i)t[i]=this.projectPointOntoEllipsoid(n[i],t[i]);return t};var D=s;export{D as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ var i=Object.create;var u=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var a=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,d)=>(typeof require<"u"?require:e)[d]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')}),b=n=>e=>{var d=n[e];if(d)return d();throw new Error("Module not found in bundle: "+e)};var g=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var p=(n,e,d,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of l(e))!c.call(n,f)&&f!==d&&u(n,f,{get:()=>e[f],enumerable:!(t=r(e,f))||t.enumerable});return n};var h=(n,e,d)=>(d=n!=null?i(o(n)):{},p(e||!n||!n.__esModule?u(d,"default",{value:n,enumerable:!0}):d,n));function x(n){return n!=null}var k=x;export{a,b,g as c,h as d,k as e};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{b as U}from"./chunk-UKJ254OV.js";import{a as ft}from"./chunk-QQJ4EFK2.js";import{a as i,b}from"./chunk-XXWWJ3QU.js";import{a as y}from"./chunk-N6SIW7ZL.js";import{a as w,b as tt}from"./chunk-K35RPNUR.js";import{e as g}from"./chunk-RTRJ3LVQ.js";var nt={};nt.computeDiscriminant=function(t,n,r){if(typeof t!="number")throw new w("a is a required number.");if(typeof n!="number")throw new w("b is a required number.");if(typeof r!="number")throw new w("c is a required number.");return n*n-4*t*r};function mt(t,n,r){let e=t+n;return y.sign(t)!==y.sign(n)&&Math.abs(e/Math.max(Math.abs(t),Math.abs(n)))<r?0:e}nt.computeRealRoots=function(t,n,r){if(typeof t!="number")throw new w("a is a required number.");if(typeof n!="number")throw new w("b is a required number.");if(typeof r!="number")throw new w("c is a required number.");let e;if(t===0)return n===0?[]:[-r/n];if(n===0){if(r===0)return[0,0];let u=Math.abs(r),f=Math.abs(t);if(u<f&&u/f<y.EPSILON14)return[0,0];if(u>f&&f/u<y.EPSILON14)return[];if(e=-r/t,e<0)return[];let h=Math.sqrt(e);return[-h,h]}else if(r===0)return e=-n/t,e<0?[e,0]:[0,e];let o=n*n,s=4*t*r,c=mt(o,-s,y.EPSILON14);if(c<0)return[];let a=-.5*mt(n,y.sign(n)*Math.sqrt(c),y.EPSILON14);return n>0?[a/t,r/a]:[r/a,a/t]};var z=nt;var rt={};rt.computeDiscriminant=function(t,n,r,e){if(typeof t!="number")throw new w("a is a required number.");if(typeof n!="number")throw new w("b is a required number.");if(typeof r!="number")throw new w("c is a required number.");if(typeof e!="number")throw new w("d is a required number.");let o=t*t,s=n*n,c=r*r,a=e*e;return 18*t*n*r*e+s*c-27*o*a-4*(t*c*r+s*n*e)};function et(t,n,r,e){let o=t,s=n/3,c=r/3,a=e,u=o*c,f=s*a,h=s*s,d=c*c,p=o*c-h,q=o*a-s*c,m=s*a-d,l=4*p*m-q*q,E,x;if(l<0){let J,k,G;h*f>=u*d?(J=o,k=p,G=-2*s*p+o*q):(J=a,k=m,G=-a*q+2*c*m);let ut=-(G<0?-1:1)*Math.abs(J)*Math.sqrt(-l);x=-G+ut;let K=x/2,Y=K<0?-Math.pow(-K,1/3):Math.pow(K,1/3),$=x===ut?-Y:-k/Y;return E=k<=0?Y+$:-G/(Y*Y+$*$+k),h*f>=u*d?[(E-s)/o]:[-a/(E+c)]}let v=p,W=-2*s*p+o*q,L=m,B=-a*q+2*c*m,I=Math.sqrt(l),C=Math.sqrt(3)/2,P=Math.abs(Math.atan2(o*I,-W)/3);E=2*Math.sqrt(-v);let R=Math.cos(P);x=E*R;let S=E*(-R/2-C*Math.sin(P)),M=x+S>2*s?x-s:S-s,N=o,D=M/N;P=Math.abs(Math.atan2(a*I,-B)/3),E=2*Math.sqrt(-L),R=Math.cos(P),x=E*R,S=E*(-R/2-C*Math.sin(P));let _=-a,Z=x+S<2*c?x+c:S+c,A=_/Z,Rt=N*Z,at=-M*Z-N*_,bt=M*_,V=(c*at-s*bt)/(-s*at+c*Rt);return D<=V?D<=A?V<=A?[D,V,A]:[D,A,V]:[A,D,V]:D<=A?[V,D,A]:V<=A?[V,A,D]:[A,V,D]}rt.computeRealRoots=function(t,n,r,e){if(typeof t!="number")throw new w("a is a required number.");if(typeof n!="number")throw new w("b is a required number.");if(typeof r!="number")throw new w("c is a required number.");if(typeof e!="number")throw new w("d is a required number.");let o,s;if(t===0)return z.computeRealRoots(n,r,e);if(n===0){if(r===0){if(e===0)return[0,0,0];s=-e/t;let c=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3);return[c,c,c]}else if(e===0)return o=z.computeRealRoots(t,0,r),o.Length===0?[0]:[o[0],0,o[1]];return et(t,0,r,e)}else{if(r===0)return e===0?(s=-n/t,s<0?[s,0,0]:[0,0,s]):et(t,n,0,e);if(e===0)return o=z.computeRealRoots(t,n,r),o.length===0?[0]:o[1]<=0?[o[0],o[1],0]:o[0]>=0?[0,o[0],o[1]]:[o[0],0,o[1]]}return et(t,n,r,e)};var H=rt;var ot={};ot.computeDiscriminant=function(t,n,r,e,o){if(typeof t!="number")throw new w("a is a required number.");if(typeof n!="number")throw new w("b is a required number.");if(typeof r!="number")throw new w("c is a required number.");if(typeof e!="number")throw new w("d is a required number.");if(typeof o!="number")throw new w("e is a required number.");let s=t*t,c=s*t,a=n*n,u=a*n,f=r*r,h=f*r,d=e*e,p=d*e,q=o*o,m=q*o;return a*f*d-4*u*p-4*t*h*d+18*t*n*r*p-27*s*d*d+256*c*m+o*(18*u*r*e-4*a*h+16*t*f*f-80*t*n*f*e-6*t*a*d+144*s*r*d)+q*(144*t*a*r-27*a*a-128*s*f-192*s*n*e)};function T(t,n,r,e){let o=t*t,s=n-3*o/8,c=r-n*t/2+o*t/8,a=e-r*t/4+n*o/16-3*o*o/256,u=H.computeRealRoots(1,2*s,s*s-4*a,-c*c);if(u.length>0){let f=-t/4,h=u[u.length-1];if(Math.abs(h)<y.EPSILON14){let d=z.computeRealRoots(1,s,a);if(d.length===2){let p=d[0],q=d[1],m;if(p>=0&&q>=0){let l=Math.sqrt(p),E=Math.sqrt(q);return[f-E,f-l,f+l,f+E]}else{if(p>=0&&q<0)return m=Math.sqrt(p),[f-m,f+m];if(p<0&&q>=0)return m=Math.sqrt(q),[f-m,f+m]}}return[]}else if(h>0){let d=Math.sqrt(h),p=(s+h-c/d)/2,q=(s+h+c/d)/2,m=z.computeRealRoots(1,d,p),l=z.computeRealRoots(1,-d,q);return m.length!==0?(m[0]+=f,m[1]+=f,l.length!==0?(l[0]+=f,l[1]+=f,m[1]<=l[0]?[m[0],m[1],l[0],l[1]]:l[1]<=m[0]?[l[0],l[1],m[0],m[1]]:m[0]>=l[0]&&m[1]<=l[1]?[l[0],m[0],m[1],l[1]]:l[0]>=m[0]&&l[1]<=m[1]?[m[0],l[0],l[1],m[1]]:m[0]>l[0]&&m[0]<l[1]?[l[0],m[0],l[1],m[1]]:[m[0],l[0],m[1],l[1]]):m):l.length!==0?(l[0]+=f,l[1]+=f,l):[]}}return[]}function j(t,n,r,e){let o=r*r,s=n*n,c=t*t,a=-2*n,u=r*t+s-4*e,f=c*e-r*n*t+o,h=H.computeRealRoots(1,a,u,f);if(h.length>0){let d=h[0],p=n-d,q=p*p,m=t/2,l=p/2,E=q-4*e,x=q+4*Math.abs(e),v=c-4*d,W=c+4*Math.abs(d),L,B;if(d<0||E*W<v*x){let N=Math.sqrt(v);L=N/2,B=N===0?0:(t*l-r)/N}else{let N=Math.sqrt(E);L=N===0?0:(t*l-r)/N,B=N/2}let I,C;m===0&&L===0?(I=0,C=0):y.sign(m)===y.sign(L)?(I=m+L,C=d/I):(C=m-L,I=d/C);let P,R;l===0&&B===0?(P=0,R=0):y.sign(l)===y.sign(B)?(P=l+B,R=e/P):(R=l-B,P=e/R);let S=z.computeRealRoots(1,I,P),M=z.computeRealRoots(1,C,R);if(S.length!==0)return M.length!==0?S[1]<=M[0]?[S[0],S[1],M[0],M[1]]:M[1]<=S[0]?[M[0],M[1],S[0],S[1]]:S[0]>=M[0]&&S[1]<=M[1]?[M[0],S[0],S[1],M[1]]:M[0]>=S[0]&&M[1]<=S[1]?[S[0],M[0],M[1],S[1]]:S[0]>M[0]&&S[0]<M[1]?[M[0],S[0],M[1],S[1]]:[S[0],M[0],S[1],M[1]]:S;if(M.length!==0)return M}return[]}ot.computeRealRoots=function(t,n,r,e,o){if(typeof t!="number")throw new w("a is a required number.");if(typeof n!="number")throw new w("b is a required number.");if(typeof r!="number")throw new w("c is a required number.");if(typeof e!="number")throw new w("d is a required number.");if(typeof o!="number")throw new w("e is a required number.");if(Math.abs(t)<y.EPSILON15)return H.computeRealRoots(n,r,e,o);let s=n/t,c=r/t,a=e/t,u=o/t,f=s<0?1:0;switch(f+=c<0?f+1:f,f+=a<0?f+1:f,f+=u<0?f+1:f,f){case 0:return T(s,c,a,u);case 1:return j(s,c,a,u);case 2:return j(s,c,a,u);case 3:return T(s,c,a,u);case 4:return T(s,c,a,u);case 5:return j(s,c,a,u);case 6:return T(s,c,a,u);case 7:return T(s,c,a,u);case 8:return j(s,c,a,u);case 9:return T(s,c,a,u);case 10:return T(s,c,a,u);case 11:return j(s,c,a,u);case 12:return T(s,c,a,u);case 13:return T(s,c,a,u);case 14:return T(s,c,a,u);case 15:return T(s,c,a,u);default:return}};var dt=ot;function X(t,n){n=i.clone(n??i.ZERO),i.equals(n,i.ZERO)||i.normalize(n,n),this.origin=i.clone(t??i.ZERO),this.direction=n}X.clone=function(t,n){if(g(t))return g(n)?(n.origin=i.clone(t.origin),n.direction=i.clone(t.direction),n):new X(t.origin,t.direction)};X.getPoint=function(t,n,r){return tt.typeOf.object("ray",t),tt.typeOf.number("t",n),g(r)||(r=new i),r=i.multiplyByScalar(t.direction,n,r),i.add(t.origin,r,r)};var it=X;var O={};O.rayPlane=function(t,n,r){if(!g(t))throw new w("ray is required.");if(!g(n))throw new w("plane is required.");g(r)||(r=new i);let e=t.origin,o=t.direction,s=n.normal,c=i.dot(s,o);if(Math.abs(c)<y.EPSILON15)return;let a=(-n.distance-i.dot(s,e))/c;if(!(a<0))return r=i.multiplyByScalar(o,a,r),i.add(e,r,r)};var Ot=new i,Pt=new i,Mt=new i,ht=new i,lt=new i;O.rayTriangleParametric=function(t,n,r,e,o){if(!g(t))throw new w("ray is required.");if(!g(n))throw new w("p0 is required.");if(!g(r))throw new w("p1 is required.");if(!g(e))throw new w("p2 is required.");o=o??!1;let s=t.origin,c=t.direction,a=i.subtract(r,n,Ot),u=i.subtract(e,n,Pt),f=i.cross(c,u,Mt),h=i.dot(a,f),d,p,q,m,l;if(o){if(h<y.EPSILON6||(d=i.subtract(s,n,ht),q=i.dot(d,f),q<0||q>h)||(p=i.cross(d,a,lt),m=i.dot(c,p),m<0||q+m>h))return;l=i.dot(u,p)/h}else{if(Math.abs(h)<y.EPSILON6)return;let E=1/h;if(d=i.subtract(s,n,ht),q=i.dot(d,f)*E,q<0||q>1||(p=i.cross(d,a,lt),m=i.dot(c,p)*E,m<0||q+m>1))return;l=i.dot(u,p)*E}return l};O.rayTriangle=function(t,n,r,e,o,s){let c=O.rayTriangleParametric(t,n,r,e,o);if(!(!g(c)||c<0))return g(s)||(s=new i),i.multiplyByScalar(t.direction,c,s),i.add(t.origin,s,s)};var Et=new it;O.lineSegmentTriangle=function(t,n,r,e,o,s,c){if(!g(t))throw new w("v0 is required.");if(!g(n))throw new w("v1 is required.");if(!g(r))throw new w("p0 is required.");if(!g(e))throw new w("p1 is required.");if(!g(o))throw new w("p2 is required.");let a=Et;i.clone(t,a.origin),i.subtract(n,t,a.direction),i.normalize(a.direction,a.direction);let u=O.rayTriangleParametric(a,r,e,o,s);if(!(!g(u)||u<0||u>i.distance(t,n)))return g(c)||(c=new i),i.multiplyByScalar(a.direction,u,c),i.add(a.origin,c,c)};function Ct(t,n,r,e){let o=n*n-4*t*r;if(o<0)return;if(o>0){let c=1/(2*t),a=Math.sqrt(o),u=(-n+a)*c,f=(-n-a)*c;return u<f?(e.root0=u,e.root1=f):(e.root0=f,e.root1=u),e}let s=-n/(2*t);if(s!==0)return e.root0=e.root1=s,e}var Nt={root0:0,root1:0};function yt(t,n,r){g(r)||(r=new U);let e=t.origin,o=t.direction,s=n.center,c=n.radius*n.radius,a=i.subtract(e,s,Mt),u=i.dot(o,o),f=2*i.dot(o,a),h=i.magnitudeSquared(a)-c,d=Ct(u,f,h,Nt);if(g(d))return r.start=d.root0,r.stop=d.root1,r}O.raySphere=function(t,n,r){if(!g(t))throw new w("ray is required.");if(!g(n))throw new w("sphere is required.");if(r=yt(t,n,r),!(!g(r)||r.stop<0))return r.start=Math.max(r.start,0),r};var Lt=new it;O.lineSegmentSphere=function(t,n,r,e){if(!g(t))throw new w("p0 is required.");if(!g(n))throw new w("p1 is required.");if(!g(r))throw new w("sphere is required.");let o=Lt;i.clone(t,o.origin);let s=i.subtract(n,t,o.direction),c=i.magnitude(s);if(i.normalize(s,s),e=yt(o,r,e),!(!g(e)||e.stop<0||e.start>c))return e.start=Math.max(e.start,0),e.stop=Math.min(e.stop,c),e};var It=new i,xt=new i;O.rayEllipsoid=function(t,n){if(!g(t))throw new w("ray is required.");if(!g(n))throw new w("ellipsoid is required.");let r=n.oneOverRadii,e=i.multiplyComponents(r,t.origin,It),o=i.multiplyComponents(r,t.direction,xt),s=i.magnitudeSquared(e),c=i.dot(e,o),a,u,f,h,d;if(s>1){if(c>=0)return;let p=c*c;if(a=s-1,u=i.magnitudeSquared(o),f=u*a,p<f)return;if(p>f){h=c*c-f,d=-c+Math.sqrt(h);let m=d/u,l=a/d;return m<l?new U(m,l):{start:l,stop:m}}let q=Math.sqrt(a/u);return new U(q,q)}else if(s<1)return a=s-1,u=i.magnitudeSquared(o),f=u*a,h=c*c-f,d=-c+Math.sqrt(h),new U(0,d/u);if(c<0)return u=i.magnitudeSquared(o),new U(0,-c/u)};var Bt=new U,Dt=new U,zt=new U;O.rayAxisAlignedBoundingBox=function(t,n,r){if(!g(t))throw new w("ray is required.");if(!g(n))throw new w("box is required.");g(r)||(r=new U);let e=st(t.origin.x,t.direction.x,n.minimum.x,n.maximum.x,Bt),o=st(t.origin.y,t.direction.y,n.minimum.y,n.maximum.y,Dt),s=st(t.origin.z,t.direction.z,n.minimum.z,n.maximum.z,zt);if(r.start=e.start>o.start?e.start:o.start,r.stop=e.stop<o.stop?e.stop:o.stop,!(e.start>o.stop||o.start>e.stop)&&!(r.start>s.stop||s.start>r.stop))return s.start>r.start&&(r.start=s.start),s.stop<r.stop&&(r.stop=s.stop),r};function st(t,n,r,e,o){if(o.start=(r-t)/n,o.stop=(e-t)/n,o.stop<o.start){let s=o.stop;o.stop=o.start,o.start=s}return o}function Q(t,n,r){let e=t+n;return y.sign(t)!==y.sign(n)&&Math.abs(e/Math.max(Math.abs(t),Math.abs(n)))<r?0:e}O.quadraticVectorExpression=function(t,n,r,e,o){let s=e*e,c=o*o,a=(t[b.COLUMN1ROW1]-t[b.COLUMN2ROW2])*c,u=o*(e*Q(t[b.COLUMN1ROW0],t[b.COLUMN0ROW1],y.EPSILON15)+n.y),f=t[b.COLUMN0ROW0]*s+t[b.COLUMN2ROW2]*c+e*n.x+r,h=c*Q(t[b.COLUMN2ROW1],t[b.COLUMN1ROW2],y.EPSILON15),d=o*(e*Q(t[b.COLUMN2ROW0],t[b.COLUMN0ROW2])+n.z),p,q=[];if(d===0&&h===0){if(p=z.computeRealRoots(a,u,f),p.length===0)return q;let P=p[0],R=Math.sqrt(Math.max(1-P*P,0));if(q.push(new i(e,o*P,o*-R)),q.push(new i(e,o*P,o*R)),p.length===2){let S=p[1],M=Math.sqrt(Math.max(1-S*S,0));q.push(new i(e,o*S,o*-M)),q.push(new i(e,o*S,o*M))}return q}let m=d*d,l=h*h,E=a*a,x=d*h,v=E+l,W=2*(u*a+x),L=2*f*a+u*u-l+m,B=2*(f*u-x),I=f*f-m;if(v===0&&W===0&&L===0&&B===0)return q;p=dt.computeRealRoots(v,W,L,B,I);let C=p.length;if(C===0)return q;for(let P=0;P<C;++P){let R=p[P],S=R*R,M=Math.max(1-S,0),N=Math.sqrt(M),D;y.sign(a)===y.sign(f)?D=Q(a*S+f,u*R,y.EPSILON12):y.sign(f)===y.sign(u*R)?D=Q(a*S,u*R+f,y.EPSILON12):D=Q(a*S+u*R,f,y.EPSILON12);let _=Q(h*R,d,y.EPSILON15),Z=D*_;Z<0?q.push(new i(e,o*R,o*N)):Z>0?q.push(new i(e,o*R,o*-N)):N!==0?(q.push(new i(e,o*R,o*-N)),q.push(new i(e,o*R,o*N)),++P):q.push(new i(e,o*R,o*N))}return q};var ct=new i,wt=new i,qt=new i,F=new i,Tt=new i,vt=new b,Wt=new b,At=new b,Ut=new b,Vt=new b,gt=new b,pt=new b,St=new i,Qt=new i,Zt=new ft;O.grazingAltitudeLocation=function(t,n){if(!g(t))throw new w("ray is required.");if(!g(n))throw new w("ellipsoid is required.");let r=t.origin,e=t.direction;if(!i.equals(r,i.ZERO)){let I=n.geodeticSurfaceNormal(r,ct);if(i.dot(e,I)>=0)return r}let o=g(this.rayEllipsoid(t,n)),s=n.transformPositionToScaledSpace(e,ct),c=i.normalize(s,s),a=i.mostOrthogonalAxis(s,F),u=i.normalize(i.cross(a,c,wt),wt),f=i.normalize(i.cross(c,u,qt),qt),h=vt;h[0]=c.x,h[1]=c.y,h[2]=c.z,h[3]=u.x,h[4]=u.y,h[5]=u.z,h[6]=f.x,h[7]=f.y,h[8]=f.z;let d=b.transpose(h,Wt),p=b.fromScale(n.radii,At),q=b.fromScale(n.oneOverRadii,Ut),m=Vt;m[0]=0,m[1]=-e.z,m[2]=e.y,m[3]=e.z,m[4]=0,m[5]=-e.x,m[6]=-e.y,m[7]=e.x,m[8]=0;let l=b.multiply(b.multiply(d,q,gt),m,gt),E=b.multiply(b.multiply(l,p,pt),h,pt),x=b.multiplyByVector(l,r,Tt),v=O.quadraticVectorExpression(E,i.negate(x,ct),0,0,1),W,L,B=v.length;if(B>0){let I=i.clone(i.ZERO,Qt),C=Number.NEGATIVE_INFINITY;for(let R=0;R<B;++R){W=b.multiplyByVector(p,b.multiplyByVector(h,v[R],St),St);let S=i.normalize(i.subtract(W,r,F),F),M=i.dot(S,e);M>C&&(C=M,I=i.clone(W,I))}let P=n.cartesianToCartographic(I,Zt);return C=y.clamp(C,0,1),L=i.magnitude(i.subtract(I,r,F))*Math.sqrt(1-C*C),L=o?-L:L,P.height=L,n.cartographicToCartesian(P,new i)}};var _t=new i;O.lineSegmentPlane=function(t,n,r,e){if(!g(t))throw new w("endPoint0 is required.");if(!g(n))throw new w("endPoint1 is required.");if(!g(r))throw new w("plane is required.");g(e)||(e=new i);let o=i.subtract(n,t,_t),s=r.normal,c=i.dot(s,o);if(Math.abs(c)<y.EPSILON6)return;let a=i.dot(s,t),u=-(r.distance+a)/c;if(!(u<0||u>1))return i.multiplyByScalar(o,u,e),i.add(t,e,e),e};O.trianglePlaneIntersection=function(t,n,r,e){if(!g(t)||!g(n)||!g(r)||!g(e))throw new w("p0, p1, p2, and plane are required.");let o=e.normal,s=e.distance,c=i.dot(o,t)+s<0,a=i.dot(o,n)+s<0,u=i.dot(o,r)+s<0,f=0;f+=c?1:0,f+=a?1:0,f+=u?1:0;let h,d;if((f===1||f===2)&&(h=new i,d=new i),f===1){if(c)return O.lineSegmentPlane(t,n,e,h),O.lineSegmentPlane(t,r,e,d),{positions:[t,n,r,h,d],indices:[0,3,4,1,2,4,1,4,3]};if(a)return O.lineSegmentPlane(n,r,e,h),O.lineSegmentPlane(n,t,e,d),{positions:[t,n,r,h,d],indices:[1,3,4,2,0,4,2,4,3]};if(u)return O.lineSegmentPlane(r,t,e,h),O.lineSegmentPlane(r,n,e,d),{positions:[t,n,r,h,d],indices:[2,3,4,0,1,4,0,4,3]}}else if(f===2)if(c)if(a){if(!u)return O.lineSegmentPlane(t,r,e,h),O.lineSegmentPlane(n,r,e,d),{positions:[t,n,r,h,d],indices:[0,1,4,0,4,3,2,3,4]}}else return O.lineSegmentPlane(r,n,e,h),O.lineSegmentPlane(t,n,e,d),{positions:[t,n,r,h,d],indices:[2,0,4,2,4,3,1,3,4]};else return O.lineSegmentPlane(n,t,e,h),O.lineSegmentPlane(r,t,e,d),{positions:[t,n,r,h,d],indices:[1,2,4,1,4,3,0,3,4]}};var gn=O;export{it as a,gn as b};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as F}from"./chunk-AZSS2BNB.js";import{a as Z}from"./chunk-YWNU5ZQD.js";import{a as X}from"./chunk-PXZYU6PD.js";import{b as K,c as Q,d as U}from"./chunk-II4OPXPA.js";import{c as H}from"./chunk-UKJ254OV.js";import{a as y}from"./chunk-TOK3PZ73.js";import{c as J}from"./chunk-QQJ4EFK2.js";import{a as r,c as V}from"./chunk-XXWWJ3QU.js";import{a as N}from"./chunk-N6SIW7ZL.js";import{a as b}from"./chunk-K35RPNUR.js";import{e as R}from"./chunk-RTRJ3LVQ.js";var ii=new r(1,1,1),B=Math.cos,S=Math.sin;function v(t){t=t??V.EMPTY_OBJECT;let o=t.radii??ii,n=t.innerRadii??o,C=t.minimumClock??0,P=t.maximumClock??N.TWO_PI,h=t.minimumCone??0,k=t.maximumCone??N.PI,s=Math.round(t.stackPartitions??10),w=Math.round(t.slicePartitions??8),m=Math.round(t.subdivisions??128);if(s<1)throw new b("options.stackPartitions cannot be less than 1");if(w<0)throw new b("options.slicePartitions cannot be less than 0");if(m<0)throw new b("options.subdivisions must be greater than or equal to zero.");if(R(t.offsetAttribute)&&t.offsetAttribute===F.TOP)throw new b("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._radii=r.clone(o),this._innerRadii=r.clone(n),this._minimumClock=C,this._maximumClock=P,this._minimumCone=h,this._maximumCone=k,this._stackPartitions=s,this._slicePartitions=w,this._subdivisions=m,this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}v.packedLength=2*r.packedLength+8;v.pack=function(t,o,n){if(!R(t))throw new b("value is required");if(!R(o))throw new b("array is required");return n=n??0,r.pack(t._radii,o,n),n+=r.packedLength,r.pack(t._innerRadii,o,n),n+=r.packedLength,o[n++]=t._minimumClock,o[n++]=t._maximumClock,o[n++]=t._minimumCone,o[n++]=t._maximumCone,o[n++]=t._stackPartitions,o[n++]=t._slicePartitions,o[n++]=t._subdivisions,o[n]=t._offsetAttribute??-1,o};var $=new r,G=new r,l={radii:$,innerRadii:G,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};v.unpack=function(t,o,n){if(!R(t))throw new b("array is required");o=o??0;let C=r.unpack(t,o,$);o+=r.packedLength;let P=r.unpack(t,o,G);o+=r.packedLength;let h=t[o++],k=t[o++],s=t[o++],w=t[o++],m=t[o++],f=t[o++],T=t[o++],a=t[o];return R(n)?(n._radii=r.clone(C,n._radii),n._innerRadii=r.clone(P,n._innerRadii),n._minimumClock=h,n._maximumClock=k,n._minimumCone=s,n._maximumCone=w,n._stackPartitions=m,n._slicePartitions=f,n._subdivisions=T,n._offsetAttribute=a===-1?void 0:a,n):(l.minimumClock=h,l.maximumClock=k,l.minimumCone=s,l.maximumCone=w,l.stackPartitions=m,l.slicePartitions=f,l.subdivisions=T,l.offsetAttribute=a===-1?void 0:a,new v(l))};v.createGeometry=function(t){let o=t._radii;if(o.x<=0||o.y<=0||o.z<=0)return;let n=t._innerRadii;if(n.x<=0||n.y<=0||n.z<=0)return;let C=t._minimumClock,P=t._maximumClock,h=t._minimumCone,k=t._maximumCone,s=t._subdivisions,w=J.fromCartesian3(o),m=t._slicePartitions+1,f=t._stackPartitions+1;m=Math.round(m*Math.abs(P-C)/N.TWO_PI),f=Math.round(f*Math.abs(k-h)/N.PI),m<2&&(m=2),f<2&&(f=2);let T=0,a=1,x=n.x!==o.x||n.y!==o.y||n.z!==o.z,W=!1,Y=!1;x&&(a=2,h>0&&(W=!0,T+=m),k<Math.PI&&(Y=!0,T+=m));let q=s*a*(f+m),u=new Float64Array(q*3),g=2*(q+T-(m+f)*a),d=Z.createTypedArray(q,g),i,e,E,z,c=0,_=new Array(f),A=new Array(f);for(i=0;i<f;i++)z=h+i*(k-h)/(f-1),_[i]=S(z),A[i]=B(z);let O=new Array(s),M=new Array(s);for(i=0;i<s;i++)E=C+i*(P-C)/(s-1),O[i]=S(E),M[i]=B(E);for(i=0;i<f;i++)for(e=0;e<s;e++)u[c++]=o.x*_[i]*M[e],u[c++]=o.y*_[i]*O[e],u[c++]=o.z*A[i];if(x)for(i=0;i<f;i++)for(e=0;e<s;e++)u[c++]=n.x*_[i]*M[e],u[c++]=n.y*_[i]*O[e],u[c++]=n.z*A[i];for(_.length=s,A.length=s,i=0;i<s;i++)z=h+i*(k-h)/(s-1),_[i]=S(z),A[i]=B(z);for(O.length=m,M.length=m,i=0;i<m;i++)E=C+i*(P-C)/(m-1),O[i]=S(E),M[i]=B(E);for(i=0;i<s;i++)for(e=0;e<m;e++)u[c++]=o.x*_[i]*M[e],u[c++]=o.y*_[i]*O[e],u[c++]=o.z*A[i];if(x)for(i=0;i<s;i++)for(e=0;e<m;e++)u[c++]=n.x*_[i]*M[e],u[c++]=n.y*_[i]*O[e],u[c++]=n.z*A[i];for(c=0,i=0;i<f*a;i++){let p=i*s;for(e=0;e<s-1;e++)d[c++]=p+e,d[c++]=p+e+1}let L=f*s*a;for(i=0;i<m;i++)for(e=0;e<s-1;e++)d[c++]=L+i+e*m,d[c++]=L+i+(e+1)*m;if(x)for(L=f*s*a+m*s,i=0;i<m;i++)for(e=0;e<s-1;e++)d[c++]=L+i+e*m,d[c++]=L+i+(e+1)*m;if(x){let p=f*s*a,D=p+s*m;if(W)for(i=0;i<m;i++)d[c++]=p+i,d[c++]=D+i;if(Y)for(p+=s*m-m,D+=s*m-m,i=0;i<m;i++)d[c++]=p+i,d[c++]=D+i}let j=new X({position:new U({componentDatatype:y.DOUBLE,componentsPerAttribute:3,values:u})});if(R(t._offsetAttribute)){let p=u.length,D=t._offsetAttribute===F.NONE?0:1,I=new Uint8Array(p/3).fill(D);j.applyOffset=new U({componentDatatype:y.UNSIGNED_BYTE,componentsPerAttribute:1,values:I})}return new Q({attributes:j,indices:d,primitiveType:K.LINES,boundingSphere:H.fromEllipsoid(w),offsetAttribute:t._offsetAttribute})};var Ci=v;export{Ci as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as y}from"./chunk-JD76ATDQ.js";import{c as W}from"./chunk-UKJ254OV.js";import{j as k}from"./chunk-MWY74K7V.js";import{b as h}from"./chunk-YECQFZBX.js";import{a as A}from"./chunk-TOK3PZ73.js";import{a as F,b as T,c as w}from"./chunk-QQJ4EFK2.js";import{a as s}from"./chunk-XXWWJ3QU.js";import{a as _}from"./chunk-N6SIW7ZL.js";import{a as I,b as r}from"./chunk-K35RPNUR.js";import{e as l}from"./chunk-RTRJ3LVQ.js";function b(e,t){r.typeOf.object("ellipsoid",e),this._ellipsoid=e,this._cameraPosition=new s,this._cameraPositionInScaledSpace=new s,this._distanceToLimbInScaledSpaceSquared=0,l(t)&&(this.cameraPosition=t)}Object.defineProperties(b.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){let o=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),n=s.magnitudeSquared(o)-1;s.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=o,this._distanceToLimbInScaledSpaceSquared=n}}});var L=new s;b.prototype.isPointVisible=function(e){let o=this._ellipsoid.transformPositionToScaledSpace(e,L);return D(o,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};b.prototype.isScaledSpacePointVisible=function(e){return D(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};var tt=new s;b.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){let o=this._ellipsoid,n,i;return l(t)&&t<0&&o.minimumRadius>-t?(i=tt,i.x=this._cameraPosition.x/(o.radii.x+t),i.y=this._cameraPosition.y/(o.radii.y+t),i.z=this._cameraPosition.z/(o.radii.z+t),n=i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,n=this._distanceToLimbInScaledSpaceSquared),D(e,i,n)};b.prototype.computeHorizonCullingPoint=function(e,t,o){return Q(this._ellipsoid,e,t,o)};var U=w.clone(w.UNIT_SPHERE);b.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,o,n){let i=v(this._ellipsoid,o,U);return Q(i,e,t,n)};b.prototype.computeHorizonCullingPointFromVertices=function(e,t,o,n,i){return Z(this._ellipsoid,e,t,o,n,i)};b.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,o,n,i,c){let a=v(this._ellipsoid,i,U);return Z(a,e,t,o,n,c)};var et=[];b.prototype.computeHorizonCullingPointFromRectangle=function(e,t,o){r.typeOf.object("rectangle",e);let n=k.subsample(e,t,0,et),i=W.fromPoints(n);if(!(s.magnitude(i.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(i.center,n,o)};var ot=new s;function v(e,t,o){if(l(t)&&t<0&&e.minimumRadius>-t){let n=s.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,ot);e=w.fromCartesian3(n,o)}return e}function Q(e,t,o,n){r.typeOf.object("directionToPoint",t),r.defined("positions",o),l(n)||(n=new s);let i=K(e,t),c=0;for(let a=0,m=o.length;a<m;++a){let d=o[a],u=B(e,d,i);if(u<0)return;c=Math.max(c,u)}return J(i,c,n)}var q=new s;function Z(e,t,o,n,i,c){r.typeOf.object("directionToPoint",t),r.defined("vertices",o),r.typeOf.number("stride",n),l(c)||(c=new s),n=n??3,i=i??s.ZERO;let a=K(e,t),m=0;for(let d=0,u=o.length;d<u;d+=n){q.x=o[d]+i.x,q.y=o[d+1]+i.y,q.z=o[d+2]+i.z;let f=B(e,q,a);if(f<0)return;m=Math.max(m,f)}return J(a,m,c)}function D(e,t,o){let n=t,i=o,c=s.subtract(e,n,L),a=-s.dot(c,n);return!(i<0?a>0:a>i&&a*a/s.magnitudeSquared(c)>i)}var it=new s,nt=new s;function B(e,t,o){let n=e.transformPositionToScaledSpace(t,it),i=s.magnitudeSquared(n),c=Math.sqrt(i),a=s.divideByScalar(n,c,nt);i=Math.max(1,i),c=Math.max(1,c);let m=s.dot(a,o),d=s.magnitude(s.cross(a,o,a)),u=1/c,f=Math.sqrt(i-1)*u;return 1/(m*u-d*f)}function J(e,t,o){if(!(t<=0||t===1/0||t!==t))return s.multiplyByScalar(e,t,o)}var R=new s;function K(e,t){return s.equals(t,s.ZERO)?t:(e.transformPositionToScaledSpace(t,R),s.normalize(R,R))}var Nt=b;var j={};j.getHeight=function(e,t,o){if(!Number.isFinite(t))throw new I("scale must be a finite number.");if(!Number.isFinite(o))throw new I("relativeHeight must be a finite number.");return(e-o)*t+o};var at=new F;j.getPosition=function(e,t,o,n,i){let c=t.cartesianToCartographic(e,at);if(!l(c))return s.clone(e,i);let a=j.getHeight(c.height,o,n);return s.fromRadians(c.longitude,c.latitude,a,t,i)};var X=j;var st={NONE:0,BITS12:1},g=Object.freeze(st);var C=new s,ct=new s,N=new T,rt=new h,mt=new h,dt=Math.pow(2,12);function p(e,t,o,n,i,c,a,m,d,u){let f=g.NONE,O,S;if(l(t)&&l(o)&&l(n)&&l(i)){let z=t.minimum,G=t.maximum,x=s.subtract(G,z,ct),$=n-o;Math.max(s.maximumComponent(x),$)<dt-1?f=g.BITS12:f=g.NONE;let P=h.fromScale(x,rt);P=h.setTranslation(P,z,P);let E=h.fromScale(s.fromElements(1/x.x,1/x.y,1/x.z,C),mt);E=h.multiplyByTranslation(E,s.negate(z,C),E),S=h.clone(i,new h);let H=h.getTranslation(i,C);H=s.subtract(H,e,C),S=h.setTranslation(S,H,S),S=h.multiply(S,P,S),O=h.inverseTransformation(i,new h),O=h.multiply(E,O,O),i=h.multiply(i,P,new h)}this.quantization=f,this.minimumHeight=o,this.maximumHeight=n,this.center=s.clone(e),this.toScaledENU=O,this.fromScaledENU=i,this.matrix=S,this.hasVertexNormals=c??!1,this.hasWebMercatorT=a??!1,this.hasGeodeticSurfaceNormals=m??!1,this.exaggeration=d??1,this.exaggerationRelativeHeight=u??0,this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}p.prototype.encode=function(e,t,o,n,i,c,a,m){r.typeOf.object("vertexBuffer",e),r.typeOf.number("bufferIndex",t),r.typeOf.object("position",o),r.typeOf.object("uv",n),r.typeOf.number("height",i);let d=n.x,u=n.y;if(this.quantization===g.BITS12){o=h.multiplyByPoint(this.toScaledENU,o,C),o.x=_.clamp(o.x,0,1),o.y=_.clamp(o.y,0,1),o.z=_.clamp(o.z,0,1);let f=this.maximumHeight-this.minimumHeight,O=_.clamp((i-this.minimumHeight)/f,0,1);T.fromElements(o.x,o.y,N);let S=y.compressTextureCoordinates(N);T.fromElements(o.z,O,N);let z=y.compressTextureCoordinates(N);T.fromElements(d,u,N);let G=y.compressTextureCoordinates(N);if(e[t++]=S,e[t++]=z,e[t++]=G,this.hasWebMercatorT){T.fromElements(a,0,N);let x=y.compressTextureCoordinates(N);e[t++]=x}}else e[t++]=o.x-this.center.x,e[t++]=o.y-this.center.y,e[t++]=o.z-this.center.z,e[t++]=i,e[t++]=d,e[t++]=u,this.hasWebMercatorT&&(e[t++]=a);return this.hasVertexNormals&&(e[t++]=y.octPackFloat(c)),this.hasGeodeticSurfaceNormals&&(e[t++]=m.x,e[t++]=m.y,e[t++]=m.z),t};var ht=new s,Y=new s;p.prototype.addGeodeticSurfaceNormals=function(e,t,o){if(r.typeOf.object("oldBuffer",e),r.typeOf.object("newBuffer",t),r.typeOf.object("ellipsoid",o),this.hasGeodeticSurfaceNormals)return;let n=this.stride,i=e.length/n;this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets();let c=this.stride;for(let a=0;a<i;a++){for(let f=0;f<n;f++){let O=a*n+f,S=a*c+f;t[S]=e[O]}let m=this.decodePosition(t,a,ht),d=o.geodeticSurfaceNormal(m,Y),u=a*c+this._offsetGeodeticSurfaceNormal;t[u]=d.x,t[u+1]=d.y,t[u+2]=d.z}};p.prototype.removeGeodeticSurfaceNormals=function(e,t){if(r.typeOf.object("oldBuffer",e),r.typeOf.object("newBuffer",t),!this.hasGeodeticSurfaceNormals)return;let o=this.stride,n=e.length/o;this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets();let i=this.stride;for(let c=0;c<n;c++)for(let a=0;a<i;a++){let m=c*o+a,d=c*i+a;t[d]=e[m]}};p.prototype.decodePosition=function(e,t,o){if(r.typeOf.object("buffer",e),r.typeOf.number("index",t),l(o)||(o=new s),t*=this.stride,this.quantization===g.BITS12){let n=y.decompressTextureCoordinates(e[t],N);o.x=n.x,o.y=n.y;let i=y.decompressTextureCoordinates(e[t+1],N);return o.z=i.x,h.multiplyByPoint(this.fromScaledENU,o,o)}return o.x=e[t],o.y=e[t+1],o.z=e[t+2],s.add(o,this.center,o)};p.prototype.getExaggeratedPosition=function(e,t,o){o=this.decodePosition(e,t,o);let n=this.exaggeration,i=this.exaggerationRelativeHeight;if(n!==1&&this.hasGeodeticSurfaceNormals){let a=this.decodeGeodeticSurfaceNormal(e,t,Y),m=this.decodeHeight(e,t),d=X.getHeight(m,n,i)-m;o.x+=a.x*d,o.y+=a.y*d,o.z+=a.z*d}return o};p.prototype.decodeTextureCoordinates=function(e,t,o){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),l(o)||(o=new T),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+2],o):T.fromElements(e[t+4],e[t+5],o)};p.prototype.decodeHeight=function(e,t){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+1],N).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]};p.prototype.decodeWebMercatorT=function(e,t){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+3],N).x:e[t+6]};p.prototype.getOctEncodedNormal=function(e,t,o){r.typeOf.object("buffer",e),r.typeOf.number("index",t),t=t*this.stride+this._offsetVertexNormal;let n=e[t]/256,i=Math.floor(n),c=(n-i)*256;return T.fromElements(i,c,o)};p.prototype.decodeNormal=function(e,t,o){r.typeOf.object("buffer",e),r.typeOf.number("index",t),r.typeOf.object("result",o);let n=t=t*this.stride+this._offsetVertexNormal;return y.octDecodeFloat(e[n],o)};p.prototype.decodeGeodeticSurfaceNormal=function(e,t,o){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),r.typeOf.object("result",o),t=t*this.stride+this._offsetGeodeticSurfaceNormal,o.x=e[t],o.y=e[t+1],o.z=e[t+2],o};p.prototype._calculateStrideAndOffsets=function(){let e=0;this.quantization===g.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e};var M={position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2},V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};p.prototype.getAttributes=function(e){r.typeOf.object("buffer",e);let t=A.FLOAT,o=A.getSizeInBytes(t),n=this.stride*o,i=0,c=[];function a(m,d){c.push({index:m,vertexBuffer:e,componentDatatype:t,componentsPerAttribute:d,offsetInBytes:i,strideInBytes:n}),i+=d*o}if(this.quantization===g.NONE){a(M.position3DAndHeight,4);let m=2;m+=this.hasWebMercatorT?1:0,m+=this.hasVertexNormals?1:0,a(M.textureCoordAndEncodedNormals,m),this.hasGeodeticSurfaceNormals&&a(M.geodeticSurfaceNormal,3)}else{let m=this.hasWebMercatorT||this.hasVertexNormals,d=this.hasWebMercatorT&&this.hasVertexNormals;a(V.compressed0,m?4:3),d&&a(V.compressed1,1),this.hasGeodeticSurfaceNormals&&a(V.geodeticSurfaceNormal,3)}return c};p.prototype.getAttributeLocations=function(){return this.quantization===g.NONE?M:V};p.clone=function(e,t){if(l(e))return l(t)||(t=new p),t.quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=s.clone(e.center),t.toScaledENU=h.clone(e.toScaledENU),t.fromScaledENU=h.clone(e.fromScaledENU),t.matrix=h.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t};var At=p;export{Nt as a,X as b,At as c};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as N}from"./chunk-65MI2E3A.js";import{a}from"./chunk-K35RPNUR.js";import{e as T}from"./chunk-RTRJ3LVQ.js";var r={BYTE:N.BYTE,UNSIGNED_BYTE:N.UNSIGNED_BYTE,SHORT:N.SHORT,UNSIGNED_SHORT:N.UNSIGNED_SHORT,INT:N.INT,UNSIGNED_INT:N.UNSIGNED_INT,FLOAT:N.FLOAT,DOUBLE:N.DOUBLE};r.getSizeInBytes=function(n){if(!T(n))throw new a("value is required.");switch(n){case r.BYTE:return Int8Array.BYTES_PER_ELEMENT;case r.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case r.SHORT:return Int16Array.BYTES_PER_ELEMENT;case r.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case r.INT:return Int32Array.BYTES_PER_ELEMENT;case r.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case r.FLOAT:return Float32Array.BYTES_PER_ELEMENT;case r.DOUBLE:return Float64Array.BYTES_PER_ELEMENT;default:throw new a("componentDatatype is not a valid value.")}};r.fromTypedArray=function(n){if(n instanceof Int8Array)return r.BYTE;if(n instanceof Uint8Array)return r.UNSIGNED_BYTE;if(n instanceof Int16Array)return r.SHORT;if(n instanceof Uint16Array)return r.UNSIGNED_SHORT;if(n instanceof Int32Array)return r.INT;if(n instanceof Uint32Array)return r.UNSIGNED_INT;if(n instanceof Float32Array)return r.FLOAT;if(n instanceof Float64Array)return r.DOUBLE;throw new a("array must be an Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, or Float64Array.")};r.validate=function(n){return T(n)&&(n===r.BYTE||n===r.UNSIGNED_BYTE||n===r.SHORT||n===r.UNSIGNED_SHORT||n===r.INT||n===r.UNSIGNED_INT||n===r.FLOAT||n===r.DOUBLE)};r.createTypedArray=function(n,e){if(!T(n))throw new a("componentDatatype is required.");if(!T(e))throw new a("valuesOrLength is required.");switch(n){case r.BYTE:return new Int8Array(e);case r.UNSIGNED_BYTE:return new Uint8Array(e);case r.SHORT:return new Int16Array(e);case r.UNSIGNED_SHORT:return new Uint16Array(e);case r.INT:return new Int32Array(e);case r.UNSIGNED_INT:return new Uint32Array(e);case r.FLOAT:return new Float32Array(e);case r.DOUBLE:return new Float64Array(e);default:throw new a("componentDatatype is not a valid value.")}};r.createArrayBufferView=function(n,e,E,t){if(!T(n))throw new a("componentDatatype is required.");if(!T(e))throw new a("buffer is required.");switch(E=E??0,t=t??(e.byteLength-E)/r.getSizeInBytes(n),n){case r.BYTE:return new Int8Array(e,E,t);case r.UNSIGNED_BYTE:return new Uint8Array(e,E,t);case r.SHORT:return new Int16Array(e,E,t);case r.UNSIGNED_SHORT:return new Uint16Array(e,E,t);case r.INT:return new Int32Array(e,E,t);case r.UNSIGNED_INT:return new Uint32Array(e,E,t);case r.FLOAT:return new Float32Array(e,E,t);case r.DOUBLE:return new Float64Array(e,E,t);default:throw new a("componentDatatype is not a valid value.")}};r.fromName=function(n){switch(n){case"BYTE":return r.BYTE;case"UNSIGNED_BYTE":return r.UNSIGNED_BYTE;case"SHORT":return r.SHORT;case"UNSIGNED_SHORT":return r.UNSIGNED_SHORT;case"INT":return r.INT;case"UNSIGNED_INT":return r.UNSIGNED_INT;case"FLOAT":return r.FLOAT;case"DOUBLE":return r.DOUBLE;default:throw new a("name is not a valid value.")}};var A=Object.freeze(r);export{A as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as _}from"./chunk-YDQLCOZM.js";import{j as U}from"./chunk-MWY74K7V.js";import{b as Z}from"./chunk-YECQFZBX.js";import{a as v,c as N}from"./chunk-QQJ4EFK2.js";import{a as n,b as A}from"./chunk-XXWWJ3QU.js";import{a as on}from"./chunk-N6SIW7ZL.js";import{a as en,b as h}from"./chunk-K35RPNUR.js";import{e as x}from"./chunk-RTRJ3LVQ.js";function W(e){this._ellipsoid=e??N.default,this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(W.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}});W.prototype.project=function(e,t){let o=this._semimajorAxis,c=e.longitude*o,r=e.latitude*o,d=e.height;return x(t)?(t.x=c,t.y=r,t.z=d,t):new n(c,r,d)};W.prototype.unproject=function(e,t){if(!x(e))throw new en("cartesian is required");let o=this._oneOverSemimajorAxis,c=e.x*o,r=e.y*o,d=e.z;return x(t)?(t.longitude=c,t.latitude=r,t.height=d,t):new v(c,r,d)};var V=W;function sn(e,t){this.start=e??0,this.stop=t??0}var cn=sn;function a(e,t){this.center=n.clone(e??n.ZERO),this.radius=t??0}var F=new n,Y=new n,I=new n,J=new n,K=new n,Q=new n,$=new n,b=new n,L=new n,H=new n,nn=new n,tn=new n,mn=4/3*on.PI;a.fromPoints=function(e,t){if(x(t)||(t=new a),!x(e)||e.length===0)return t.center=n.clone(n.ZERO,t.center),t.radius=0,t;let o=n.clone(e[0],$),c=n.clone(o,F),r=n.clone(o,Y),d=n.clone(o,I),f=n.clone(o,J),s=n.clone(o,K),m=n.clone(o,Q),z=e.length,y;for(y=1;y<z;y++){n.clone(e[y],o);let R=o.x,M=o.y,w=o.z;R<c.x&&n.clone(o,c),R>f.x&&n.clone(o,f),M<r.y&&n.clone(o,r),M>s.y&&n.clone(o,s),w<d.z&&n.clone(o,d),w>m.z&&n.clone(o,m)}let u=n.magnitudeSquared(n.subtract(f,c,b)),i=n.magnitudeSquared(n.subtract(s,r,b)),E=n.magnitudeSquared(n.subtract(m,d,b)),C=c,q=f,O=u;i>O&&(O=i,C=r,q=s),E>O&&(O=E,C=d,q=m);let p=L;p.x=(C.x+q.x)*.5,p.y=(C.y+q.y)*.5,p.z=(C.z+q.z)*.5;let S=n.magnitudeSquared(n.subtract(q,p,b)),l=Math.sqrt(S),j=H;j.x=c.x,j.y=r.y,j.z=d.z;let P=nn;P.x=f.x,P.y=s.y,P.z=m.z;let B=n.midpoint(j,P,tn),D=0;for(y=0;y<z;y++){n.clone(e[y],o);let R=n.magnitude(n.subtract(o,B,b));R>D&&(D=R);let M=n.magnitudeSquared(n.subtract(o,p,b));if(M>S){let w=Math.sqrt(M);l=(l+w)*.5,S=l*l;let g=w-l;p.x=(l*p.x+g*o.x)/w,p.y=(l*p.y+g*o.y)/w,p.z=(l*p.z+g*o.z)/w}}return l<D?(n.clone(p,t.center),t.radius=l):(n.clone(B,t.center),t.radius=D),t};var rn=new V,un=new n,xn=new n,G=new v,X=new v;a.fromRectangle2D=function(e,t,o){return a.fromRectangleWithHeights2D(e,t,0,0,o)};a.fromRectangleWithHeights2D=function(e,t,o,c,r){if(x(r)||(r=new a),!x(e))return r.center=n.clone(n.ZERO,r.center),r.radius=0,r;rn._ellipsoid=N.default,t=t??rn,U.southwest(e,G),G.height=o,U.northeast(e,X),X.height=c;let d=t.project(G,un),f=t.project(X,xn),s=f.x-d.x,m=f.y-d.y,z=f.z-d.z;r.radius=Math.sqrt(s*s+m*m+z*z)*.5;let y=r.center;return y.x=d.x+s*.5,y.y=d.y+m*.5,y.z=d.z+z*.5,r};var yn=[];a.fromRectangle3D=function(e,t,o,c){if(t=t??N.default,o=o??0,x(c)||(c=new a),!x(e))return c.center=n.clone(n.ZERO,c.center),c.radius=0,c;let r=U.subsample(e,t,o,yn);return a.fromPoints(r,c)};a.fromVertices=function(e,t,o,c){if(x(c)||(c=new a),!x(e)||e.length===0)return c.center=n.clone(n.ZERO,c.center),c.radius=0,c;t=t??n.ZERO,o=o??3,h.typeOf.number.greaterThanOrEquals("stride",o,3);let r=$;r.x=e[0]+t.x,r.y=e[1]+t.y,r.z=e[2]+t.z;let d=n.clone(r,F),f=n.clone(r,Y),s=n.clone(r,I),m=n.clone(r,J),z=n.clone(r,K),y=n.clone(r,Q),u=e.length,i;for(i=0;i<u;i+=o){let w=e[i]+t.x,g=e[i+1]+t.y,T=e[i+2]+t.z;r.x=w,r.y=g,r.z=T,w<d.x&&n.clone(r,d),w>m.x&&n.clone(r,m),g<f.y&&n.clone(r,f),g>z.y&&n.clone(r,z),T<s.z&&n.clone(r,s),T>y.z&&n.clone(r,y)}let E=n.magnitudeSquared(n.subtract(m,d,b)),C=n.magnitudeSquared(n.subtract(z,f,b)),q=n.magnitudeSquared(n.subtract(y,s,b)),O=d,p=m,S=E;C>S&&(S=C,O=f,p=z),q>S&&(S=q,O=s,p=y);let l=L;l.x=(O.x+p.x)*.5,l.y=(O.y+p.y)*.5,l.z=(O.z+p.z)*.5;let j=n.magnitudeSquared(n.subtract(p,l,b)),P=Math.sqrt(j),B=H;B.x=d.x,B.y=f.y,B.z=s.z;let D=nn;D.x=m.x,D.y=z.y,D.z=y.z;let R=n.midpoint(B,D,tn),M=0;for(i=0;i<u;i+=o){r.x=e[i]+t.x,r.y=e[i+1]+t.y,r.z=e[i+2]+t.z;let w=n.magnitude(n.subtract(r,R,b));w>M&&(M=w);let g=n.magnitudeSquared(n.subtract(r,l,b));if(g>j){let T=Math.sqrt(g);P=(P+T)*.5,j=P*P;let k=T-P;l.x=(P*l.x+k*r.x)/T,l.y=(P*l.y+k*r.y)/T,l.z=(P*l.z+k*r.z)/T}}return P<M?(n.clone(l,c.center),c.radius=P):(n.clone(R,c.center),c.radius=M),c};a.fromEncodedCartesianVertices=function(e,t,o){if(x(o)||(o=new a),!x(e)||!x(t)||e.length!==t.length||e.length===0)return o.center=n.clone(n.ZERO,o.center),o.radius=0,o;let c=$;c.x=e[0]+t[0],c.y=e[1]+t[1],c.z=e[2]+t[2];let r=n.clone(c,F),d=n.clone(c,Y),f=n.clone(c,I),s=n.clone(c,J),m=n.clone(c,K),z=n.clone(c,Q),y=e.length,u;for(u=0;u<y;u+=3){let M=e[u]+t[u],w=e[u+1]+t[u+1],g=e[u+2]+t[u+2];c.x=M,c.y=w,c.z=g,M<r.x&&n.clone(c,r),M>s.x&&n.clone(c,s),w<d.y&&n.clone(c,d),w>m.y&&n.clone(c,m),g<f.z&&n.clone(c,f),g>z.z&&n.clone(c,z)}let i=n.magnitudeSquared(n.subtract(s,r,b)),E=n.magnitudeSquared(n.subtract(m,d,b)),C=n.magnitudeSquared(n.subtract(z,f,b)),q=r,O=s,p=i;E>p&&(p=E,q=d,O=m),C>p&&(p=C,q=f,O=z);let S=L;S.x=(q.x+O.x)*.5,S.y=(q.y+O.y)*.5,S.z=(q.z+O.z)*.5;let l=n.magnitudeSquared(n.subtract(O,S,b)),j=Math.sqrt(l),P=H;P.x=r.x,P.y=d.y,P.z=f.z;let B=nn;B.x=s.x,B.y=m.y,B.z=z.z;let D=n.midpoint(P,B,tn),R=0;for(u=0;u<y;u+=3){c.x=e[u]+t[u],c.y=e[u+1]+t[u+1],c.z=e[u+2]+t[u+2];let M=n.magnitude(n.subtract(c,D,b));M>R&&(R=M);let w=n.magnitudeSquared(n.subtract(c,S,b));if(w>l){let g=Math.sqrt(w);j=(j+g)*.5,l=j*j;let T=g-j;S.x=(j*S.x+T*c.x)/g,S.y=(j*S.y+T*c.y)/g,S.z=(j*S.z+T*c.z)/g}}return j<R?(n.clone(S,o.center),o.radius=j):(n.clone(D,o.center),o.radius=R),o};a.fromCornerPoints=function(e,t,o){h.typeOf.object("corner",e),h.typeOf.object("oppositeCorner",t),x(o)||(o=new a);let c=n.midpoint(e,t,o.center);return o.radius=n.distance(c,t),o};a.fromEllipsoid=function(e,t){return h.typeOf.object("ellipsoid",e),x(t)||(t=new a),n.clone(n.ZERO,t.center),t.radius=e.maximumRadius,t};var ln=new n;a.fromBoundingSpheres=function(e,t){if(x(t)||(t=new a),!x(e)||e.length===0)return t.center=n.clone(n.ZERO,t.center),t.radius=0,t;let o=e.length;if(o===1)return a.clone(e[0],t);if(o===2)return a.union(e[0],e[1],t);let c=[],r;for(r=0;r<o;r++)c.push(e[r].center);t=a.fromPoints(c,t);let d=t.center,f=t.radius;for(r=0;r<o;r++){let s=e[r];f=Math.max(f,n.distance(d,s.center,ln)+s.radius)}return t.radius=f,t};var pn=new n,hn=new n,zn=new n;a.fromOrientedBoundingBox=function(e,t){h.defined("orientedBoundingBox",e),x(t)||(t=new a);let o=e.halfAxes,c=A.getColumn(o,0,pn),r=A.getColumn(o,1,hn),d=A.getColumn(o,2,zn);return n.add(c,r,c),n.add(c,d,c),t.center=n.clone(e.center,t.center),t.radius=n.magnitude(c),t};var Sn=new n,wn=new n;a.fromTransformation=function(e,t){h.typeOf.object("transformation",e),x(t)||(t=new a);let o=Z.getTranslation(e,Sn),c=Z.getScale(e,wn),r=.5*n.magnitude(c);return t.center=n.clone(o,t.center),t.radius=r,t};a.clone=function(e,t){if(x(e))return x(t)?(t.center=n.clone(e.center,t.center),t.radius=e.radius,t):new a(e.center,e.radius)};a.packedLength=4;a.pack=function(e,t,o){h.typeOf.object("value",e),h.defined("array",t),o=o??0;let c=e.center;return t[o++]=c.x,t[o++]=c.y,t[o++]=c.z,t[o]=e.radius,t};a.unpack=function(e,t,o){h.defined("array",e),t=t??0,x(o)||(o=new a);let c=o.center;return c.x=e[t++],c.y=e[t++],c.z=e[t++],o.radius=e[t],o};var Pn=new n,gn=new n;a.union=function(e,t,o){h.typeOf.object("left",e),h.typeOf.object("right",t),x(o)||(o=new a);let c=e.center,r=e.radius,d=t.center,f=t.radius,s=n.subtract(d,c,Pn),m=n.magnitude(s);if(r>=m+f)return e.clone(o),o;if(f>=m+r)return t.clone(o),o;let z=(r+m+f)*.5,y=n.multiplyByScalar(s,(-r+z)/m,gn);return n.add(y,c,y),n.clone(y,o.center),o.radius=z,o};var On=new n;a.expand=function(e,t,o){h.typeOf.object("sphere",e),h.typeOf.object("point",t),o=a.clone(e,o);let c=n.magnitude(n.subtract(t,o.center,On));return c>o.radius&&(o.radius=c),o};a.intersectPlane=function(e,t){h.typeOf.object("sphere",e),h.typeOf.object("plane",t);let o=e.center,c=e.radius,r=t.normal,d=n.dot(r,o)+t.distance;return d<-c?_.OUTSIDE:d<c?_.INTERSECTING:_.INSIDE};a.transform=function(e,t,o){return h.typeOf.object("sphere",e),h.typeOf.object("transform",t),x(o)||(o=new a),o.center=Z.multiplyByPoint(t,e.center,o.center),o.radius=Z.getMaximumScale(t)*e.radius,o};var jn=new n;a.distanceSquaredTo=function(e,t){h.typeOf.object("sphere",e),h.typeOf.object("cartesian",t);let o=n.subtract(e.center,t,jn),c=n.magnitude(o)-e.radius;return c<=0?0:c*c};a.transformWithoutScale=function(e,t,o){return h.typeOf.object("sphere",e),h.typeOf.object("transform",t),x(o)||(o=new a),o.center=Z.multiplyByPoint(t,e.center,o.center),o.radius=e.radius,o};var bn=new n;a.computePlaneDistances=function(e,t,o,c){h.typeOf.object("sphere",e),h.typeOf.object("position",t),h.typeOf.object("direction",o),x(c)||(c=new cn);let r=n.subtract(e.center,t,bn),d=n.dot(o,r);return c.start=d-e.radius,c.stop=d+e.radius,c};var an=new n,qn=new n,Mn=new n,Cn=new n,Rn=new n,Tn=new v,fn=new Array(8);for(let e=0;e<8;++e)fn[e]=new n;var dn=new V;a.projectTo2D=function(e,t,o){h.typeOf.object("sphere",e),dn._ellipsoid=N.default,t=t??dn;let c=t.ellipsoid,r=e.center,d=e.radius,f;n.equals(r,n.ZERO)?f=n.clone(n.UNIT_X,an):f=c.geodeticSurfaceNormal(r,an);let s=n.cross(n.UNIT_Z,f,qn);n.normalize(s,s);let m=n.cross(f,s,Mn);n.normalize(m,m),n.multiplyByScalar(f,d,f),n.multiplyByScalar(m,d,m),n.multiplyByScalar(s,d,s);let z=n.negate(m,Rn),y=n.negate(s,Cn),u=fn,i=u[0];n.add(f,m,i),n.add(i,s,i),i=u[1],n.add(f,m,i),n.add(i,y,i),i=u[2],n.add(f,z,i),n.add(i,y,i),i=u[3],n.add(f,z,i),n.add(i,s,i),n.negate(f,f),i=u[4],n.add(f,m,i),n.add(i,s,i),i=u[5],n.add(f,m,i),n.add(i,y,i),i=u[6],n.add(f,z,i),n.add(i,y,i),i=u[7],n.add(f,z,i),n.add(i,s,i);let E=u.length;for(let p=0;p<E;++p){let S=u[p];n.add(r,S,S);let l=c.cartesianToCartographic(S,Tn);t.project(l,S)}o=a.fromPoints(u,o),r=o.center;let C=r.x,q=r.y,O=r.z;return r.x=O,r.y=C,r.z=q,o};a.isOccluded=function(e,t){return h.typeOf.object("sphere",e),h.typeOf.object("occluder",t),!t.isBoundingSphereVisible(e)};a.equals=function(e,t){return e===t||x(e)&&x(t)&&n.equals(e.center,t.center)&&e.radius===t.radius};a.prototype.intersectPlane=function(e){return a.intersectPlane(this,e)};a.prototype.distanceSquaredTo=function(e){return a.distanceSquaredTo(this,e)};a.prototype.computePlaneDistances=function(e,t,o){return a.computePlaneDistances(this,e,t,o)};a.prototype.isOccluded=function(e){return a.isOccluded(this,e)};a.prototype.equals=function(e){return a.equals(this,e)};a.prototype.clone=function(e){return a.clone(this,e)};a.prototype.volume=function(){let e=this.radius;return mn*e*e*e};var Qn=a;export{V as a,cn as b,Qn as c};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as L}from"./chunk-X56SSSS5.js";import{a as S}from"./chunk-AZSS2BNB.js";import{a as D}from"./chunk-YWNU5ZQD.js";import{a as H}from"./chunk-PXZYU6PD.js";import{b as T,c as B,d as x}from"./chunk-II4OPXPA.js";import{c as E}from"./chunk-UKJ254OV.js";import{a as O}from"./chunk-TOK3PZ73.js";import{c as d}from"./chunk-QQJ4EFK2.js";import{a as c,c as V}from"./chunk-XXWWJ3QU.js";import{a as w}from"./chunk-N6SIW7ZL.js";import{a as A}from"./chunk-K35RPNUR.js";import{e as a}from"./chunk-RTRJ3LVQ.js";var q=new c,g=new c;function U(e){let t=e.center;g=c.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,g),e.height,g),g=c.add(t,g,g);let i=new E(g,e.semiMajorAxis),f=L.computeEllipsePositions(e,!1,!0).outerPositions,o=new H({position:new x({componentDatatype:O.DOUBLE,componentsPerAttribute:3,values:L.raisePositionsToHeight(f,e,!1)})}),r=f.length/3,u=D.createTypedArray(r,r*2),m=0;for(let n=0;n<r;++n)u[m++]=n,u[m++]=(n+1)%r;return{boundingSphere:i,attributes:o,indices:u}}var j=new E,N=new E;function R(e){let t=e.center,i=e.ellipsoid,f=e.semiMajorAxis,o=c.multiplyByScalar(i.geodeticSurfaceNormal(t,q),e.height,q);j.center=c.add(t,o,j.center),j.radius=f,o=c.multiplyByScalar(i.geodeticSurfaceNormal(t,o),e.extrudedHeight,o),N.center=c.add(t,o,N.center),N.radius=f;let r=L.computeEllipsePositions(e,!1,!0).outerPositions,u=new H({position:new x({componentDatatype:O.DOUBLE,componentsPerAttribute:3,values:L.raisePositionsToHeight(r,e,!0)})});r=u.position.values;let m=E.union(j,N),n=r.length/3;if(a(e.offsetAttribute)){let b=new Uint8Array(n);if(e.offsetAttribute===S.TOP)b=b.fill(1,0,n/2);else{let k=e.offsetAttribute===S.NONE?0:1;b=b.fill(k)}u.applyOffset=new x({componentDatatype:O.UNSIGNED_BYTE,componentsPerAttribute:1,values:b})}let l=e.numberOfVerticalLines??16;l=w.clamp(l,0,n/2);let h=D.createTypedArray(n,n*2+l*2);n/=2;let p=0,s;for(s=0;s<n;++s)h[p++]=s,h[p++]=(s+1)%n,h[p++]=s+n,h[p++]=(s+1)%n+n;let P;if(l>0){let b=Math.min(l,n);P=Math.round(n/b);let k=Math.min(P*l,n);for(s=0;s<k;s+=P)h[p++]=s,h[p++]=s+n}return{boundingSphere:m,attributes:u,indices:h}}function M(e){e=e??V.EMPTY_OBJECT;let t=e.center,i=e.ellipsoid??d.default,f=e.semiMajorAxis,o=e.semiMinorAxis,r=e.granularity??w.RADIANS_PER_DEGREE;if(!a(t))throw new A("center is required.");if(!a(f))throw new A("semiMajorAxis is required.");if(!a(o))throw new A("semiMinorAxis is required.");if(f<o)throw new A("semiMajorAxis must be greater than or equal to the semiMinorAxis.");if(r<=0)throw new A("granularity must be greater than zero.");let u=e.height??0,m=e.extrudedHeight??u;this._center=c.clone(t),this._semiMajorAxis=f,this._semiMinorAxis=o,this._ellipsoid=d.clone(i),this._rotation=e.rotation??0,this._height=Math.max(m,u),this._granularity=r,this._extrudedHeight=Math.min(m,u),this._numberOfVerticalLines=Math.max(e.numberOfVerticalLines??16,0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}M.packedLength=c.packedLength+d.packedLength+8;M.pack=function(e,t,i){if(!a(e))throw new A("value is required");if(!a(t))throw new A("array is required");return i=i??0,c.pack(e._center,t,i),i+=c.packedLength,d.pack(e._ellipsoid,t,i),i+=d.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=e._offsetAttribute??-1,t};var y=new c,C=new d,_={center:y,ellipsoid:C,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};M.unpack=function(e,t,i){if(!a(e))throw new A("array is required");t=t??0;let f=c.unpack(e,t,y);t+=c.packedLength;let o=d.unpack(e,t,C);t+=d.packedLength;let r=e[t++],u=e[t++],m=e[t++],n=e[t++],l=e[t++],h=e[t++],p=e[t++],s=e[t];return a(i)?(i._center=c.clone(f,i._center),i._ellipsoid=d.clone(o,i._ellipsoid),i._semiMajorAxis=r,i._semiMinorAxis=u,i._rotation=m,i._height=n,i._granularity=l,i._extrudedHeight=h,i._numberOfVerticalLines=p,i._offsetAttribute=s===-1?void 0:s,i):(_.height=n,_.extrudedHeight=h,_.granularity=l,_.rotation=m,_.semiMajorAxis=r,_.semiMinorAxis=u,_.numberOfVerticalLines=p,_.offsetAttribute=s===-1?void 0:s,new M(_))};M.createGeometry=function(e){if(e._semiMajorAxis<=0||e._semiMinorAxis<=0)return;let t=e._height,i=e._extrudedHeight,f=!w.equalsEpsilon(t,i,0,w.EPSILON2);e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center);let o={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:t,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},r;if(f)o.extrudedHeight=i,o.offsetAttribute=e._offsetAttribute,r=R(o);else if(r=U(o),a(e._offsetAttribute)){let u=r.attributes.position.values.length,m=e._offsetAttribute===S.NONE?0:1,n=new Uint8Array(u/3).fill(m);r.attributes.applyOffset=new x({componentDatatype:O.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}return new B({attributes:r.attributes,indices:r.indices,primitiveType:T.LINES,boundingSphere:r.boundingSphere,offsetAttribute:e._offsetAttribute})};var ie=M;export{ie as a};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.140.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+
26
+ import{a as ot}from"./chunk-3BFV72N7.js";import{b as xt,c as ht,d as et}from"./chunk-II4OPXPA.js";import{a as tt}from"./chunk-TOK3PZ73.js";import{a as ft}from"./chunk-65MI2E3A.js";import{a as Y,b as v,c as gt}from"./chunk-QQJ4EFK2.js";import{a}from"./chunk-XXWWJ3QU.js";import{a as X}from"./chunk-N6SIW7ZL.js";import{b as C}from"./chunk-K35RPNUR.js";import{e as D}from"./chunk-RTRJ3LVQ.js";var st={CLOCKWISE:ft.CW,COUNTER_CLOCKWISE:ft.CCW};st.validate=function(t){return t===st.CLOCKWISE||t===st.COUNTER_CLOCKWISE};var at=Object.freeze(st);function mt(t,n,e=2){let c=n&&n.length,r=c?n[0]*e:t.length,o=wt(t,0,r,e,!0),i=[];if(!o||o.next===o.prev)return i;let s,f,u;if(c&&(o=Bt(t,n,o,e)),t.length>80*e){s=1/0,f=1/0;let h=-1/0,y=-1/0;for(let d=e;d<r;d+=e){let S=t[d],p=t[d+1];S<s&&(s=S),p<f&&(f=p),S>h&&(h=S),p>y&&(y=p)}u=Math.max(h-s,y-f),u=u!==0?32767/u:0}return nt(o,i,e,s,f,u,0),i}function wt(t,n,e,c,r){let o;if(r===jt(t,n,e,c)>0)for(let i=n;i<e;i+=c)o=vt(i/c|0,t[i],t[i+1],o);else for(let i=e-c;i>=n;i-=c)o=vt(i/c|0,t[i],t[i+1],o);return o&&lt(o,o.next)&&(it(o),o=o.next),o}function N(t,n){if(!t)return t;n||(n=t);let e=t,c;do if(c=!1,!e.steiner&&(lt(e,e.next)||b(e.prev,e,e.next)===0)){if(it(e),e=n=e.prev,e===e.next)break;c=!0}else e=e.next;while(c||e!==n);return n}function nt(t,n,e,c,r,o,i){if(!t)return;!i&&o&&Ht(t,c,r,o);let s=t;for(;t.prev!==t.next;){let f=t.prev,u=t.next;if(o?Pt(t,c,r,o):Ft(t)){n.push(f.i,t.i,u.i),it(t),t=u.next,s=u.next;continue}if(t=u,t===s){i?i===1?(t=Rt(N(t),n),nt(t,n,e,c,r,o,2)):i===2&&zt(t,n,e,c,r,o):nt(N(t),n,e,c,r,o,1);break}}}function Ft(t){let n=t.prev,e=t,c=t.next;if(b(n,e,c)>=0)return!1;let r=n.x,o=e.x,i=c.x,s=n.y,f=e.y,u=c.y,h=r<o?r<i?r:i:o<i?o:i,y=s<f?s<u?s:u:f<u?f:u,d=r>o?r>i?r:i:o>i?o:i,S=s>f?s>u?s:u:f>u?f:u,p=c.next;for(;p!==n;){if(p.x>=h&&p.x<=d&&p.y>=y&&p.y<=S&&K(r,s,o,f,i,u,p.x,p.y)&&b(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Pt(t,n,e,c){let r=t.prev,o=t,i=t.next;if(b(r,o,i)>=0)return!1;let s=r.x,f=o.x,u=i.x,h=r.y,y=o.y,d=i.y,S=s<f?s<u?s:u:f<u?f:u,p=h<y?h<d?h:d:y<d?y:d,T=s>f?s>u?s:u:f>u?f:u,L=h>y?h>d?h:d:y>d?y:d,z=pt(S,p,n,e,c),F=pt(T,L,n,e,c),l=t.prevZ,x=t.nextZ;for(;l&&l.z>=z&&x&&x.z<=F;){if(l.x>=S&&l.x<=T&&l.y>=p&&l.y<=L&&l!==r&&l!==i&&K(s,h,f,y,u,d,l.x,l.y)&&b(l.prev,l,l.next)>=0||(l=l.prevZ,x.x>=S&&x.x<=T&&x.y>=p&&x.y<=L&&x!==r&&x!==i&&K(s,h,f,y,u,d,x.x,x.y)&&b(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;l&&l.z>=z;){if(l.x>=S&&l.x<=T&&l.y>=p&&l.y<=L&&l!==r&&l!==i&&K(s,h,f,y,u,d,l.x,l.y)&&b(l.prev,l,l.next)>=0)return!1;l=l.prevZ}for(;x&&x.z<=F;){if(x.x>=S&&x.x<=T&&x.y>=p&&x.y<=L&&x!==r&&x!==i&&K(s,h,f,y,u,d,x.x,x.y)&&b(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Rt(t,n){let e=t;do{let c=e.prev,r=e.next.next;!lt(c,r)&&bt(c,e,e.next,r)&&rt(c,r)&&rt(r,c)&&(n.push(c.i,e.i,r.i),it(e),it(e.next),e=t=r),e=e.next}while(e!==t);return N(e)}function zt(t,n,e,c,r,o){let i=t;do{let s=i.next.next;for(;s!==i.prev;){if(i.i!==s.i&&Ut(i,s)){let f=St(i,s);i=N(i,i.next),f=N(f,f.next),nt(i,n,e,c,r,o,0),nt(f,n,e,c,r,o,0);return}s=s.next}i=i.next}while(i!==t)}function Bt(t,n,e,c){let r=[];for(let o=0,i=n.length;o<i;o++){let s=n[o]*c,f=o<i-1?n[o+1]*c:t.length,u=wt(t,s,f,c,!1);u===u.next&&(u.steiner=!0),r.push(kt(u))}r.sort(It);for(let o=0;o<r.length;o++)e=Wt(r[o],e);return e}function It(t,n){return t.x-n.x}function Wt(t,n){let e=$t(t,n);if(!e)return n;let c=St(e,t);return N(c,c.next),N(e,e.next)}function $t(t,n){let e=n,c=t.x,r=t.y,o=-1/0,i;do{if(r<=e.y&&r>=e.next.y&&e.next.y!==e.y){let y=e.x+(r-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(y<=c&&y>o&&(o=y,i=e.x<e.next.x?e:e.next,y===c))return i}e=e.next}while(e!==n);if(!i)return null;let s=i,f=i.x,u=i.y,h=1/0;e=i;do{if(c>=e.x&&e.x>=f&&c!==e.x&&K(r<u?c:o,r,f,u,r<u?o:c,r,e.x,e.y)){let y=Math.abs(r-e.y)/(c-e.x);rt(e,t)&&(y<h||y===h&&(e.x>i.x||e.x===i.x&&Gt(i,e)))&&(i=e,h=y)}e=e.next}while(e!==s);return i}function Gt(t,n){return b(t.prev,t,n.prev)<0&&b(n.next,t,t.next)<0}function Ht(t,n,e,c){let r=t;do r.z===0&&(r.z=pt(r.x,r.y,n,e,c)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,Nt(r)}function Nt(t){let n,e=1;do{let c=t,r;t=null;let o=null;for(n=0;c;){n++;let i=c,s=0;for(let u=0;u<e&&(s++,i=i.nextZ,!!i);u++);let f=e;for(;s>0||f>0&&i;)s!==0&&(f===0||!i||c.z<=i.z)?(r=c,c=c.nextZ,s--):(r=i,i=i.nextZ,f--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;c=i}o.nextZ=null,e*=2}while(n>1);return t}function pt(t,n,e,c,r){return t=(t-e)*r|0,n=(n-c)*r|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,t|n<<1}function kt(t){let n=t,e=t;do(n.x<e.x||n.x===e.x&&n.y<e.y)&&(e=n),n=n.next;while(n!==t);return e}function K(t,n,e,c,r,o,i,s){return(r-i)*(n-s)>=(t-i)*(o-s)&&(t-i)*(c-s)>=(e-i)*(n-s)&&(e-i)*(o-s)>=(r-i)*(c-s)}function Ut(t,n){return t.next.i!==n.i&&t.prev.i!==n.i&&!_t(t,n)&&(rt(t,n)&&rt(n,t)&&Kt(t,n)&&(b(t.prev,t,n.prev)||b(t,n.prev,n))||lt(t,n)&&b(t.prev,t,t.next)>0&&b(n.prev,n,n.next)>0)}function b(t,n,e){return(n.y-t.y)*(e.x-n.x)-(n.x-t.x)*(e.y-n.y)}function lt(t,n){return t.x===n.x&&t.y===n.y}function bt(t,n,e,c){let r=ut(b(t,n,e)),o=ut(b(t,n,c)),i=ut(b(e,c,t)),s=ut(b(e,c,n));return!!(r!==o&&i!==s||r===0&&ct(t,e,n)||o===0&&ct(t,c,n)||i===0&&ct(e,t,c)||s===0&&ct(e,n,c))}function ct(t,n,e){return n.x<=Math.max(t.x,e.x)&&n.x>=Math.min(t.x,e.x)&&n.y<=Math.max(t.y,e.y)&&n.y>=Math.min(t.y,e.y)}function ut(t){return t>0?1:t<0?-1:0}function _t(t,n){let e=t;do{if(e.i!==t.i&&e.next.i!==t.i&&e.i!==n.i&&e.next.i!==n.i&&bt(e,e.next,t,n))return!0;e=e.next}while(e!==t);return!1}function rt(t,n){return b(t.prev,t,t.next)<0?b(t,n,t.next)>=0&&b(t,t.prev,n)>=0:b(t,n,t.prev)<0||b(t,t.next,n)<0}function Kt(t,n){let e=t,c=!1,r=(t.x+n.x)/2,o=(t.y+n.y)/2;do e.y>o!=e.next.y>o&&e.next.y!==e.y&&r<(e.next.x-e.x)*(o-e.y)/(e.next.y-e.y)+e.x&&(c=!c),e=e.next;while(e!==t);return c}function St(t,n){let e=yt(t.i,t.x,t.y),c=yt(n.i,n.x,n.y),r=t.next,o=n.prev;return t.next=n,n.prev=t,e.next=r,r.prev=e,c.next=e,e.prev=c,o.next=c,c.prev=o,c}function vt(t,n,e,c){let r=yt(t,n,e);return c?(r.next=c.next,r.prev=c,c.next.prev=r,c.next=r):(r.prev=r,r.next=r),r}function it(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function yt(t,n,e){return{i:t,x:n,y:e,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function jt(t,n,e,c){let r=0;for(let o=n,i=e-c;o<e;o+=c)r+=(t[i]-t[o])*(t[o+1]+t[i+1]),i=o;return r}var Vt=new a,qt=new a,B={};B.computeArea2D=function(t){C.defined("positions",t),C.typeOf.number.greaterThanOrEquals("positions.length",t.length,3);let n=t.length,e=0;for(let c=n-1,r=0;r<n;c=r++){let o=t[c],i=t[r];e+=o.x*i.y-i.x*o.y}return e*.5};B.computeWindingOrder2D=function(t){return B.computeArea2D(t)>0?at.COUNTER_CLOCKWISE:at.CLOCKWISE};B.triangulate=function(t,n){C.defined("positions",t);let e=v.packArray(t);return mt(e,n,2)};var Ot=new a,Tt=new a,Mt=new a,At=new a,Ct=new a,Et=new a,R=new a,Zt=new v,Lt=new v,Dt=new v,j=new v;B.computeSubdivision=function(t,n,e,c,r){r=r??X.RADIANS_PER_DEGREE;let o=D(c);C.typeOf.object("ellipsoid",t),C.defined("positions",n),C.defined("indices",e),C.typeOf.number.greaterThanOrEquals("indices.length",e.length,3),C.typeOf.number.equals("indices.length % 3","0",e.length%3,0),C.typeOf.number.greaterThan("granularity",r,0);let i=e.slice(0),s,f=n.length,u=new Array(f*3),h=new Array(f*2),y=0,d=0;for(s=0;s<f;s++){let l=n[s];if(u[y++]=l.x,u[y++]=l.y,u[y++]=l.z,o){let x=c[s];h[d++]=x.x,h[d++]=x.y}}let S=[],p={},T=t.maximumRadius,L=X.chordLength(r,T),z=L*L;for(;i.length>0;){let l=i.pop(),x=i.pop(),m=i.pop(),A=a.fromArray(u,m*3,Ot),E=a.fromArray(u,x*3,Tt),V=a.fromArray(u,l*3,Mt),q,J,I;o&&(q=v.fromArray(h,m*2,Zt),J=v.fromArray(h,x*2,Lt),I=v.fromArray(h,l*2,Dt));let k=a.multiplyByScalar(a.normalize(A,At),T,At),U=a.multiplyByScalar(a.normalize(E,Ct),T,Ct),W=a.multiplyByScalar(a.normalize(V,Et),T,Et),$=a.magnitudeSquared(a.subtract(k,U,R)),G=a.magnitudeSquared(a.subtract(U,W,R)),Q=a.magnitudeSquared(a.subtract(W,k,R)),H=Math.max($,G,Q),M,w,g;H>z?$===H?(M=`${Math.min(m,x)} ${Math.max(m,x)}`,s=p[M],D(s)||(w=a.add(A,E,R),a.multiplyByScalar(w,.5,w),u.push(w.x,w.y,w.z),s=u.length/3-1,p[M]=s,o&&(g=v.add(q,J,j),v.multiplyByScalar(g,.5,g),h.push(g.x,g.y))),i.push(m,s,l),i.push(s,x,l)):G===H?(M=`${Math.min(x,l)} ${Math.max(x,l)}`,s=p[M],D(s)||(w=a.add(E,V,R),a.multiplyByScalar(w,.5,w),u.push(w.x,w.y,w.z),s=u.length/3-1,p[M]=s,o&&(g=v.add(J,I,j),v.multiplyByScalar(g,.5,g),h.push(g.x,g.y))),i.push(x,s,m),i.push(s,l,m)):Q===H&&(M=`${Math.min(l,m)} ${Math.max(l,m)}`,s=p[M],D(s)||(w=a.add(V,A,R),a.multiplyByScalar(w,.5,w),u.push(w.x,w.y,w.z),s=u.length/3-1,p[M]=s,o&&(g=v.add(I,q,j),v.multiplyByScalar(g,.5,g),h.push(g.x,g.y))),i.push(l,s,x),i.push(s,m,x)):(S.push(m),S.push(x),S.push(l))}let F={attributes:{position:new et({componentDatatype:tt.DOUBLE,componentsPerAttribute:3,values:u})},indices:S,primitiveType:xt.TRIANGLES};return o&&(F.attributes.st=new et({componentDatatype:tt.FLOAT,componentsPerAttribute:2,values:h})),new ht(F)};var Jt=new Y,Qt=new Y,Xt=new Y,dt=new Y;B.computeRhumbLineSubdivision=function(t,n,e,c,r){r=r??X.RADIANS_PER_DEGREE;let o=D(c);C.typeOf.object("ellipsoid",t),C.defined("positions",n),C.defined("indices",e),C.typeOf.number.greaterThanOrEquals("indices.length",e.length,3),C.typeOf.number.equals("indices.length % 3","0",e.length%3,0),C.typeOf.number.greaterThan("granularity",r,0);let i=e.slice(0),s,f=n.length,u=new Array(f*3),h=new Array(f*2),y=0,d=0;for(s=0;s<f;s++){let m=n[s];if(u[y++]=m.x,u[y++]=m.y,u[y++]=m.z,o){let A=c[s];h[d++]=A.x,h[d++]=A.y}}let S=[],p={},T=t.maximumRadius,L=X.chordLength(r,T),z=new ot(void 0,void 0,t),F=new ot(void 0,void 0,t),l=new ot(void 0,void 0,t);for(;i.length>0;){let m=i.pop(),A=i.pop(),E=i.pop(),V=a.fromArray(u,E*3,Ot),q=a.fromArray(u,A*3,Tt),J=a.fromArray(u,m*3,Mt),I,k,U;o&&(I=v.fromArray(h,E*2,Zt),k=v.fromArray(h,A*2,Lt),U=v.fromArray(h,m*2,Dt));let W=t.cartesianToCartographic(V,Jt),$=t.cartesianToCartographic(q,Qt),G=t.cartesianToCartographic(J,Xt);z.setEndPoints(W,$);let Q=z.surfaceDistance;F.setEndPoints($,G);let H=F.surfaceDistance;l.setEndPoints(G,W);let M=l.surfaceDistance,w=Math.max(Q,H,M),g,P,_,Z,O;w>L?Q===w?(g=`${Math.min(E,A)} ${Math.max(E,A)}`,s=p[g],D(s)||(P=z.interpolateUsingFraction(.5,dt),_=(W.height+$.height)*.5,Z=a.fromRadians(P.longitude,P.latitude,_,t,R),u.push(Z.x,Z.y,Z.z),s=u.length/3-1,p[g]=s,o&&(O=v.add(I,k,j),v.multiplyByScalar(O,.5,O),h.push(O.x,O.y))),i.push(E,s,m),i.push(s,A,m)):H===w?(g=`${Math.min(A,m)} ${Math.max(A,m)}`,s=p[g],D(s)||(P=F.interpolateUsingFraction(.5,dt),_=($.height+G.height)*.5,Z=a.fromRadians(P.longitude,P.latitude,_,t,R),u.push(Z.x,Z.y,Z.z),s=u.length/3-1,p[g]=s,o&&(O=v.add(k,U,j),v.multiplyByScalar(O,.5,O),h.push(O.x,O.y))),i.push(A,s,E),i.push(s,m,E)):M===w&&(g=`${Math.min(m,E)} ${Math.max(m,E)}`,s=p[g],D(s)||(P=l.interpolateUsingFraction(.5,dt),_=(G.height+W.height)*.5,Z=a.fromRadians(P.longitude,P.latitude,_,t,R),u.push(Z.x,Z.y,Z.z),s=u.length/3-1,p[g]=s,o&&(O=v.add(U,I,j),v.multiplyByScalar(O,.5,O),h.push(O.x,O.y))),i.push(m,s,A),i.push(s,E,A)):(S.push(E),S.push(A),S.push(m))}let x={attributes:{position:new et({componentDatatype:tt.DOUBLE,componentsPerAttribute:3,values:u})},indices:S,primitiveType:xt.TRIANGLES};return o&&(x.attributes.st=new et({componentDatatype:tt.FLOAT,componentsPerAttribute:2,values:h})),new ht(x)};B.scaleToGeodeticHeight=function(t,n,e,c){e=e??gt.default;let r=Vt,o=qt;if(n=n??0,c=c??!0,D(t)){let i=t.length;for(let s=0;s<i;s+=3)a.fromArray(t,s,o),c&&(o=e.scaleToGeodeticSurface(o,o)),n!==0&&(r=e.geodeticSurfaceNormal(o,r),a.multiplyByScalar(r,n,r),a.add(o,r,o)),t[s]=o.x,t[s+1]=o.y,t[s+2]=o.z}return t};var me=B;export{at as a,me as b};