mixdashboards 1.0.58 → 1.0.60

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 (348) hide show
  1. package/dist/{CSS2DRenderer-D68URIAJ.js → CSS2DRenderer-BpZog3-L.js} +1 -1
  2. package/dist/{EChartComponentBase-DIv73y0H.cjs → EChartComponentBase-BTKqEN1q.cjs} +1 -1
  3. package/dist/{EChartComponentBase-pycOQb73.js → EChartComponentBase-CTsYBK8Y.js} +2 -2
  4. package/dist/EmergencyPlanPanel-C_tJjPWb.js +107 -0
  5. package/dist/EmergencyPlanPanel-Do-kC3CL.cjs +1 -0
  6. package/dist/ExtensionUtilities-ClTuwtC-.cjs +1 -0
  7. package/dist/ExtensionUtilities-D6MxZMHR.js +1748 -0
  8. package/dist/{GLTFLoader-B0eG2KLa.js → GLTFLoader-nke8z0Ol.js} +1 -1
  9. package/dist/HistoryPlanDialog-DCXWvYc0.js +513 -0
  10. package/dist/HistoryPlanDialog-DbyY6Uzi.cjs +7 -0
  11. package/dist/MonitoringMap-DVwHZazy.js +1240 -0
  12. package/dist/MonitoringMap-ISJuBQYc.cjs +11 -0
  13. package/dist/{OrbitControls-DpwHj8RG.js → OrbitControls-BHOrUcwg.js} +1 -1
  14. package/dist/{UniverSheet-BghZ8hFP.cjs → UniverSheet-35Ni6Uiq.cjs} +1 -1
  15. package/dist/{UniverSheet-CDIsNaIG.js → UniverSheet-Dim-lj-q.js} +2 -2
  16. package/dist/{accelerationChart-Dq-LIAOu.cjs → accelerationChart-CyeiV85k.cjs} +1 -1
  17. package/dist/{accelerationChart-BbS6x7j4.js → accelerationChart-JQsRFPtz.js} +3 -3
  18. package/dist/{actionItem-Dp6b33bN.js → actionItem-B1OK_XZY.js} +2 -2
  19. package/dist/{actionItem-FRDqmYyT.cjs → actionItem-FX1CC9D0.cjs} +1 -1
  20. package/dist/{alarmLevelChart-eQ0MSA6e.cjs → alarmLevelChart-9fH-QxZZ.cjs} +1 -1
  21. package/dist/{alarmLevelChart-BPMuuwgo.js → alarmLevelChart-SvAHTo9p.js} +2 -2
  22. package/dist/{alertTable-WUwOwRzp.cjs → alertTable-B9nXlAJS.cjs} +1 -1
  23. package/dist/{alertTable-wftut9Z-.js → alertTable-BxTGoRAX.js} +2 -2
  24. package/dist/{aliasObjectSelectorDemo-iTupzf7u.cjs → aliasObjectSelectorDemo-D_U7vxQp.cjs} +1 -1
  25. package/dist/{aliasObjectSelectorDemo-BWXSH6oX.js → aliasObjectSelectorDemo-Dvx34CpR.js} +1 -1
  26. package/dist/{annualRainfallChart-B7inxhC4.js → annualRainfallChart-Bs2xijAF.js} +2 -2
  27. package/dist/{annualRainfallChart-DoNQV3YI.cjs → annualRainfallChart-DsfMEGQT.cjs} +1 -1
  28. package/dist/{aqi-PGIMtICt.js → aqi-B1S6V2Dq.js} +3 -3
  29. package/dist/{aqi-DUt3yBW6.cjs → aqi-CREIGD5b.cjs} +1 -1
  30. package/dist/{aqiIndass-CM928pHX.js → aqiIndass-BD9Qfh6I.js} +2 -2
  31. package/dist/{aqiIndass-CDFt92af.cjs → aqiIndass-C9pKc4uP.cjs} +1 -1
  32. package/dist/{areaDeformCurve-Co6cF3OR.js → areaDeformCurve-B3UgDcho.js} +2 -2
  33. package/dist/{areaDeformCurve-BJU8WHvQ.cjs → areaDeformCurve-B3akKLe7.cjs} +1 -1
  34. package/dist/{arrayCard-C6dEty3z.js → arrayCard-CQ0vcmPO.js} +2 -2
  35. package/dist/{arrayCard-B6KfmP6u.cjs → arrayCard-sW25PVfL.cjs} +1 -1
  36. package/dist/{audio-DBArvUG3.js → audio-CAMZw4-n.js} +2 -2
  37. package/dist/{audio-CxIS-H12.cjs → audio-CDnJfjak.cjs} +1 -1
  38. package/dist/{bar-BVBT-pq2.cjs → bar-B6qaU18_.cjs} +1 -1
  39. package/dist/{bar-DJfyXQoB.js → bar-DFZpiE0i.js} +3 -3
  40. package/dist/{bmp-BUcWelEI.cjs → bmp-CzbP9hM5.cjs} +1 -1
  41. package/dist/{bmp-CmGhn6pH.js → bmp-DPfeu_lI.js} +2 -2
  42. package/dist/{box-D_x1Aiq5.cjs → box-Bs_WEQe_.cjs} +1 -1
  43. package/dist/{box-ka83KXJs.js → box-DH9c-OzX.js} +2 -2
  44. package/dist/{chartConfigPanel-gIKuXej9.cjs → chartConfigPanel-Ctwv2rfE.cjs} +1 -1
  45. package/dist/{chartConfigPanel-CtDBwb8U.js → chartConfigPanel-xRbl59Hv.js} +1 -1
  46. package/dist/{circleBar-BI5PnaTN.cjs → circleBar-DTvLhsjV.cjs} +1 -1
  47. package/dist/{circleBar-DabVWI6u.js → circleBar-DYaHM4TC.js} +7 -7
  48. package/dist/{clock--h8LoDHx.cjs → clock-BJQvQGzI.cjs} +1 -1
  49. package/dist/{clock-TQPFDU0V.js → clock-DobT229A.js} +2 -2
  50. package/dist/{clt-DnEqko_v.js → clt-D-cBT0jv.js} +2 -2
  51. package/dist/{clt-Bjs2vFlD.cjs → clt-DoPud27P.cjs} +1 -1
  52. package/dist/{cmc-B3NeOuEh.cjs → cmc-BZpiLP4A.cjs} +1 -1
  53. package/dist/{cmc-iiArpzqX.js → cmc-BcFr2Pxb.js} +2 -2
  54. package/dist/{cmp-N_Cvk01I.js → cmp-C0-Ua2AV.js} +3 -3
  55. package/dist/{cmp-BLRW10kD.cjs → cmp-Cu_BWuSg.cjs} +1 -1
  56. package/dist/{composite-BMUDtBpe.js → composite-BwZJ9XO9.js} +2 -2
  57. package/dist/{composite-7Tn12pR3.cjs → composite-CUHYIbC7.cjs} +1 -1
  58. package/dist/conclusionCard-Cimh4vKx.js +156 -0
  59. package/dist/conclusionCard-D38NgvX_.cjs +1 -0
  60. package/dist/{controlList-gylanmEo.js → controlList-BnHuzPho.js} +189 -183
  61. package/dist/controlList-DolPcPvH.cjs +1 -0
  62. package/dist/controlRecordList-Bjk1-3du.cjs +1 -0
  63. package/dist/{controlRecordList-B8xqy-az.js → controlRecordList-Xg3VGC6N.js} +157 -151
  64. package/dist/{crd-CBSIbFNk.cjs → crd-BIfoCIU1.cjs} +1 -1
  65. package/dist/{crd-K0E8a0cq.js → crd-DQ3J2dmj.js} +2 -2
  66. package/dist/{ctrBtn-4mv_jJS8.cjs → ctrBtn-D-cp_1Ej.cjs} +1 -1
  67. package/dist/{ctrBtn-ktzXKhfr.js → ctrBtn-xEpAUO_K.js} +3 -3
  68. package/dist/{ctrSet-CbmyNm0t.cjs → ctrSet-BHDz8CwG.cjs} +1 -1
  69. package/dist/{ctrSet-DEabvlSc.js → ctrSet-Clw8GQhN.js} +3 -3
  70. package/dist/{ctrSwitch-BqNzSzgc.js → ctrSwitch-Cfo0LcDE.js} +3 -3
  71. package/dist/{ctrSwitch-D_MAKXre.cjs → ctrSwitch-Dtf34Ele.cjs} +1 -1
  72. package/dist/{dataManagement-C2muzerg.js → dataManagement-BhwPp15e.js} +2 -2
  73. package/dist/{dataManagement-CpZgmGxM.cjs → dataManagement-CFHy0o1X.cjs} +1 -1
  74. package/dist/{dataReport-DO8izgNO.cjs → dataReport-BIR79-be.cjs} +1 -1
  75. package/dist/{dataReport-BEgYE8co.js → dataReport-CkWdtZCA.js} +2 -2
  76. package/dist/{dataTable-BttTfiGI.cjs → dataTable-ABb0lSor.cjs} +1 -1
  77. package/dist/{dataTable-bPg6OHyT.js → dataTable-DZpYRulq.js} +1 -1
  78. package/dist/{datetime-BrDrF5Y0.cjs → datetime-QalEoVeH.cjs} +1 -1
  79. package/dist/{datetime-vVajzJUE.js → datetime-iTefC0S4.js} +2 -2
  80. package/dist/{deepClusterSlipSurface-CLXRAieT.js → deepClusterSlipSurface-30s7Mxf9.js} +3 -3
  81. package/dist/{deepClusterSlipSurface-DPCVwhzc.cjs → deepClusterSlipSurface-DnO7ktGp.cjs} +1 -1
  82. package/dist/{deepDataMatrix-CDIRDJRx.cjs → deepDataMatrix-CYJF7DVS.cjs} +1 -1
  83. package/dist/{deepDataMatrix-7uJhOTbI.js → deepDataMatrix-MuZXIqoi.js} +2 -2
  84. package/dist/{deepDisplacement3D-CYRfZJRd.js → deepDisplacement3D-BREyM4VW.js} +3 -3
  85. package/dist/{deepDisplacement3D-CKZOz4ky.cjs → deepDisplacement3D-DFUH0q4c.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-C15rXn0d.cjs → deepDisplacementChart-Ce3WcqwP.cjs} +1 -1
  87. package/dist/{deepDisplacementChart-dX1-Gizw.js → deepDisplacementChart-DAd6ieLS.js} +2 -2
  88. package/dist/{deepDisplacementChart-BTRyq0Wm.js → deepDisplacementChart-JoGQihoK.js} +4 -4
  89. package/dist/{deepDisplacementChart-Cz0KzxL8.cjs → deepDisplacementChart-k9fHhAb0.cjs} +1 -1
  90. package/dist/{deepDisplacementView-D4-V7dvI.cjs → deepDisplacementView-CbFnxN4D.cjs} +1 -1
  91. package/dist/{deepDisplacementView-DZiwh7DU.js → deepDisplacementView-Dcb_zs2K.js} +1 -1
  92. package/dist/{deepNodeTemperatureChart-vzjpGpxZ.cjs → deepNodeTemperatureChart-CEb0jDtv.cjs} +1 -1
  93. package/dist/{deepNodeTemperatureChart-CThU-QuV.js → deepNodeTemperatureChart-SU0ORg8d.js} +3 -3
  94. package/dist/{deepTangentAngleChart-BhIaCUZ5.cjs → deepTangentAngleChart-9cl7SMLk.cjs} +1 -1
  95. package/dist/{deepTangentAngleChart-BwjAJXqq.js → deepTangentAngleChart-B8UFkhfW.js} +3 -3
  96. package/dist/{deepTemperatureField-OpCgl5yT.cjs → deepTemperatureField-B-ip2jJt.cjs} +1 -1
  97. package/dist/{deepTemperatureField-DOwsOevO.js → deepTemperatureField-D-ZBYWBG.js} +4 -4
  98. package/dist/{deepTrendChart-kxdd6gGT.cjs → deepTrendChart-CxHEVM1-.cjs} +1 -1
  99. package/dist/{deepTrendChart-Dw-3dvQq.js → deepTrendChart-DR4Wq6te.js} +3 -3
  100. package/dist/{deviceOnlineStatus-Cnudj50t.cjs → deviceOnlineStatus-B-1ipGMZ.cjs} +1 -1
  101. package/dist/{deviceOnlineStatus-BjfVLmR9.js → deviceOnlineStatus-Cisj1TTD.js} +2 -2
  102. package/dist/{deviceStatus-BSApsvb_.cjs → deviceStatus-8MPbwseM.cjs} +1 -1
  103. package/dist/{deviceStatus-fPKmtJJq.js → deviceStatus-gb6rewaM.js} +2 -2
  104. package/dist/{displacementDataTable-B-azwfOs.js → displacementDataTable-BbzhsUuX.js} +2 -2
  105. package/dist/{displacementDataTable-CwYhFFHe.cjs → displacementDataTable-nf_YJyA8.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-SbSrnw4h.js → displacementTrajectoryChart-CukrSkG4.js} +3 -3
  107. package/dist/{displacementTrajectoryChart-D2MujX7r.cjs → displacementTrajectoryChart-D2sqwJHj.cjs} +1 -1
  108. package/dist/{displacementTrendChart-BOzB7Uh3.js → displacementTrendChart-BZkQWkid.js} +2 -2
  109. package/dist/{displacementTrendChart-wHGW73X8.cjs → displacementTrendChart-BaZVL6Ug.cjs} +1 -1
  110. package/dist/{dxf-Dxk0Wsjq.cjs → dxf-B9Tw-0Do.cjs} +1 -1
  111. package/dist/{dxf-yljnjxuc.js → dxf-D3jlZyoW.js} +3 -3
  112. package/dist/{dzc-DejRKFCB.cjs → dzc-DYeyG33b.cjs} +1 -1
  113. package/dist/{dzc-Bj_-pZWY.js → dzc-PneJExRE.js} +3 -3
  114. package/dist/ele-pie-icon-BNhXPoUT.cjs +1 -0
  115. package/dist/ele-pie-icon-RPfHJxqp.js +5 -0
  116. package/dist/emergencyPlan-1elckkbG.cjs +1 -0
  117. package/dist/emergencyPlan-sjuzclqN.js +156 -0
  118. package/dist/{evn-BtxnHIA_.js → evn-CbAGDl1c.js} +2 -2
  119. package/dist/{evn-Dqs8PCm1.cjs → evn-Dr4yOO6n.cjs} +1 -1
  120. package/dist/{evolutionChart-DlxdSkCZ.js → evolutionChart-D7pFIYxX.js} +3 -3
  121. package/dist/{evolutionChart-Bs8h3B01.cjs → evolutionChart-c0M8CCgq.cjs} +1 -1
  122. package/dist/{fileViewer-nA8Gbtnq.cjs → fileViewer-5CDrUWrF.cjs} +1 -1
  123. package/dist/{fileViewer-DEe80Lyi.js → fileViewer-D2A5jAT4.js} +2 -2
  124. package/dist/{filterBar-Bq0OFEbD.cjs → filterBar-DegHwfvR.cjs} +1 -1
  125. package/dist/{filterBar-x2d4i-WH.js → filterBar-xeJTN3eB.js} +2 -2
  126. package/dist/{fireCombustionCurve-CJU96UY3.js → fireCombustionCurve-BxHIvEWv.js} +3 -3
  127. package/dist/{fireCombustionCurve-DRMDbjZe.cjs → fireCombustionCurve-DKHWbSNO.cjs} +1 -1
  128. package/dist/{fireFilterBar-DwMFB-Zw.cjs → fireFilterBar-Pam-ubML.cjs} +1 -1
  129. package/dist/{fireFilterBar-DCTdwAN7.js → fireFilterBar-ijVW9CKy.js} +2 -2
  130. package/dist/{fireHistoryTable-BdwjtY9Q.cjs → fireHistoryTable-BMhqGa8B.cjs} +1 -1
  131. package/dist/{fireHistoryTable-B3R6mBXM.js → fireHistoryTable-DQchqp_g.js} +3 -3
  132. package/dist/{gag-D4De3LHL.js → gag-CzHitFBw.js} +2 -2
  133. package/dist/{gag-L5MkYiP3.cjs → gag-Dr8b1nB7.cjs} +1 -1
  134. package/dist/{gasStationList-DucyGCRa.cjs → gasStationList-CU4-uHtX.cjs} +1 -1
  135. package/dist/{gasStationList-Dlmbe83j.js → gasStationList-NzWvxdyr.js} +2 -2
  136. package/dist/geo3dViewer-CSmUSuwK.js +2126 -0
  137. package/dist/geo3dViewer-kAtldgE0.cjs +1 -0
  138. package/dist/{glbModel-C40A2Lrt.cjs → glbModel-Bo2wqdoT.cjs} +1 -1
  139. package/dist/{glbModel-D8BnKDo3.js → glbModel-b-SP554f.js} +6 -6
  140. package/dist/{globalObjectSelector-SiKdrwPT.cjs → globalObjectSelector-C-PsZdsG.cjs} +1 -1
  141. package/dist/{globalObjectSelector-BpuJGJsa.js → globalObjectSelector-CG2quLmd.js} +1 -1
  142. package/dist/{gnssFilterBar-C7AYx-qg.cjs → gnssFilterBar-CAh1YIhY.cjs} +1 -1
  143. package/dist/{gnssFilterBar-DI0yG8cG.js → gnssFilterBar-_n70r1hW.js} +2 -2
  144. package/dist/{gnssHistoryTable-BoczXf7O.cjs → gnssHistoryTable-8Zol7SWh.cjs} +1 -1
  145. package/dist/{gnssHistoryTable-D9kNmGll.js → gnssHistoryTable-MER94qdJ.js} +3 -3
  146. package/dist/{gnssMapView-CoKxyX7S.cjs → gnssMapView-CkBzVk6q.cjs} +2 -2
  147. package/dist/{gnssMapView-By8eToQu.js → gnssMapView-CtiJbtR0.js} +212 -212
  148. package/dist/{gnssSectionProfile-B2NQFPvO.js → gnssSectionProfile-B04pZ2gj.js} +2 -2
  149. package/dist/{gnssSectionProfile-BVelx6Yw.cjs → gnssSectionProfile-CvQ83J2A.cjs} +1 -1
  150. package/dist/{gnssTimeSeriesChart-eUKdIAQQ.js → gnssTimeSeriesChart-XBBIv5vD.js} +3 -3
  151. package/dist/{gnssTimeSeriesChart-KeSD61y_.cjs → gnssTimeSeriesChart-oP1y2vAC.cjs} +1 -1
  152. package/dist/{gnssXYTrajectory-1FQd7GLi.js → gnssXYTrajectory-CnGIozXE.js} +3 -3
  153. package/dist/{gnssXYTrajectory-DhulQJdv.cjs → gnssXYTrajectory-DghR2BvO.cjs} +1 -1
  154. package/dist/{grd-BIjwQTiL.js → grd-DDZCrQxT.js} +2 -2
  155. package/dist/{grd-CWgmHh5c.cjs → grd-DzqwqXPv.cjs} +1 -1
  156. package/dist/{grdIndass-BTAzI9gN.js → grdIndass-BMpGMm4s.js} +2 -2
  157. package/dist/{grdIndass-DnSdZDYx.cjs → grdIndass-DoCF5PIi.cjs} +1 -1
  158. package/dist/{grg-BPAm6s9r.cjs → grg-B5da2nKa.cjs} +1 -1
  159. package/dist/{grg-BkJxMf6X.js → grg-CV2sKb-z.js} +2 -2
  160. package/dist/{gridview-Bxd1njqI.cjs → gridview-CIB_TQpj.cjs} +1 -1
  161. package/dist/{gridview-DtKv71p7.js → gridview-Dd8ypYs9.js} +2 -2
  162. package/dist/{groundwaterFilterBar-B_Awl0ci.js → groundwaterFilterBar-54RBswn4.js} +2 -2
  163. package/dist/{groundwaterFilterBar-DYNyDb1P.cjs → groundwaterFilterBar-DzEV_XLk.cjs} +1 -1
  164. package/dist/{groundwaterProfileChart-ofCwP_2a.js → groundwaterProfileChart-BIPbBQEu.js} +3 -3
  165. package/dist/{groundwaterProfileChart-DZUHjEcW.cjs → groundwaterProfileChart-CD1F_7Pm.cjs} +2 -2
  166. package/dist/{groundwaterTimeCurve-ipQhjuyZ.cjs → groundwaterTimeCurve-BtKM2elA.cjs} +1 -1
  167. package/dist/{groundwaterTimeCurve-DqcjM-Tt.js → groundwaterTimeCurve-CuNsLZuP.js} +3 -3
  168. package/dist/{groupCard-DhlJlqIH.cjs → groupCard-BtiXsNqL.cjs} +1 -1
  169. package/dist/{groupCard-Bb26zBU_.js → groupCard-Bv6gwans.js} +2 -2
  170. package/dist/{headerBar-CWNH8W_V.cjs → headerBar-C7unMDsy.cjs} +1 -1
  171. package/dist/{headerBar-DuYDhGui.js → headerBar-DvAWOuLS.js} +2 -2
  172. package/dist/{history-CeGzv3GP.cjs → history-C55wRj0Q.cjs} +1 -1
  173. package/dist/{history-Bv1uGC4H.js → history-DNa9X2ss.js} +2 -2
  174. package/dist/{index-t1gLOVql.js → index-BjnedpPd.js} +1325 -1300
  175. package/dist/{index-KmH5IjZC.cjs → index-BpdquN7F.cjs} +11 -11
  176. package/dist/{insarDeformChart-B6kpfyrX.js → insarDeformChart-8U9NWTXo.js} +2 -2
  177. package/dist/{insarDeformChart-BRwqjPgE.cjs → insarDeformChart-BEvJPytM.cjs} +1 -1
  178. package/dist/{insarImageViewer-_g9gLyU-.js → insarImageViewer-Cn5sfuqX.js} +2 -2
  179. package/dist/{insarImageViewer-hp-UhcmO.cjs → insarImageViewer-DPbPqYX6.cjs} +1 -1
  180. package/dist/{kds-sDo1iIrV.js → kds-Di5vqVHA.js} +2 -2
  181. package/dist/{kds-1AkQfvEa.cjs → kds-OqY-8M9p.cjs} +1 -1
  182. package/dist/kpiCard-CIZCGd0a.js +426 -0
  183. package/dist/kpiCard-CS_NWDPx.cjs +2 -0
  184. package/dist/landslideMap-C6K5_dCD.cjs +1 -0
  185. package/dist/landslideMap-MNwvQ5U8.js +443 -0
  186. package/dist/landslideWarning-KQdao4ia.js +465 -0
  187. package/dist/landslideWarning-mTe-lM6B.cjs +1 -0
  188. package/dist/{layerTabs-e_W1dXnO.cjs → layerTabs-CojQYJpj.cjs} +1 -1
  189. package/dist/{layerTabs-Ds0JKti6.js → layerTabs-ZMBaF72d.js} +2 -2
  190. package/dist/{leaflet-src-h1s9Oqjl.cjs → leaflet-src-CMjLsJT2.cjs} +1 -1
  191. package/dist/{leaflet-src-C_2eQFJh.js → leaflet-src-liYZiFhX.js} +1 -1
  192. package/dist/{lerc-CK8_ve0x.js → lerc-BvUBagJ2.js} +2 -2
  193. package/dist/{lerc-CqJJ34-p.cjs → lerc-hbDiGyGD.cjs} +1 -1
  194. package/dist/{lin-rkSCtmKm.js → lin-CxPu4XkR.js} +3 -3
  195. package/dist/{lin-T-pBNw0H.cjs → lin-D_-xWUYy.cjs} +1 -1
  196. package/dist/{linIndass-CQWWRI7Q.js → linIndass-CEAxFqDz.js} +2 -2
  197. package/dist/{linIndass-B3CfxS-g.cjs → linIndass-CSnGOnEZ.cjs} +1 -1
  198. package/dist/{lst-C1MJKpJg.js → lst-Byu_t5tE.js} +2 -2
  199. package/dist/{lst-Ch__nNTe.cjs → lst-D7tt1sTi.cjs} +1 -1
  200. package/dist/{manualEntry-HAyWaERX.cjs → manualEntry-1wz3sw61.cjs} +1 -1
  201. package/dist/{manualEntry-NzArPz7X.js → manualEntry-pZlzJ9It.js} +2 -2
  202. package/dist/{mapBackground-DD-Y-tBo.js → mapBackground-DoYGa0l2.js} +3 -3
  203. package/dist/{mapBackground-CSRSnPqb.cjs → mapBackground-Ye1DsAyL.cjs} +1 -1
  204. package/dist/mappingList-B98hDbng.cjs +1 -0
  205. package/dist/{mappingList-BcOE5Oa9.js → mappingList-DZgwi5Bc.js} +187 -181
  206. package/dist/{markdownViewer-fawCFBtr.cjs → markdownViewer-B-sqnNhd.cjs} +1 -1
  207. package/dist/{markdownViewer-Bd9mrOn5.js → markdownViewer-DNAdC7cz.js} +2 -2
  208. package/dist/{mix-control-modal-DDTQ0Y5i.js → mix-control-modal-BpWevFio.js} +2 -2
  209. package/dist/{mix-control-modal-Duhcqp-k.cjs → mix-control-modal-TnDCRTvI.cjs} +1 -1
  210. package/dist/{mixGrid-BJirHwcL.cjs → mixGrid-C_9uYcVF.cjs} +1 -1
  211. package/dist/{mixGrid-TaZBLw7A.js → mixGrid-Cb-KMAjW.js} +2 -2
  212. package/dist/{mixMap-Smgk5aCB.cjs → mixMap-CsMMoAPq.cjs} +1 -1
  213. package/dist/{mixMap-DfskrUSE.js → mixMap-DoyU8RVd.js} +2 -2
  214. package/dist/{mixModel-BHuC3Ga7.js → mixModel-CFlM0QXW.js} +2 -2
  215. package/dist/{mixModel-TTpe3JBF.cjs → mixModel-DWvWHyHr.cjs} +1 -1
  216. package/dist/{mixPie-D6GHKiwn.cjs → mixPie-DN1XHFaD.cjs} +1 -1
  217. package/dist/{mixPie-CScGkwtx.js → mixPie-QSA5SKlP.js} +2 -2
  218. package/dist/mixdashboards.cjs +1 -1
  219. package/dist/mixdashboards.css +1 -1
  220. package/dist/mixdashboards.js +1 -1
  221. package/dist/{mjpegCamera-DAOiA79R.cjs → mjpegCamera-B_dZRZLL.cjs} +1 -1
  222. package/dist/{mjpegCamera-P6kqqjGG.js → mjpegCamera-BgDGmbEv.js} +2 -2
  223. package/dist/mockData-Cj71Qk7-.cjs +1 -0
  224. package/dist/mockData-DcqLnbJF.js +348 -0
  225. package/dist/{monitorAlert-DwPVDQ_V.cjs → monitorAlert-BIRP8m9Q.cjs} +1 -1
  226. package/dist/{monitorAlert-Dy6omBvv.js → monitorAlert-CvqkVhe3.js} +2 -2
  227. package/dist/{monitorData-ClHROMxq.cjs → monitorData-BXngpaiz.cjs} +1 -1
  228. package/dist/{monitorData-IgmIZKjF.js → monitorData-UxhspNru.js} +3 -3
  229. package/dist/{monitorSpeedChart-B3hCe6yF.js → monitorSpeedChart-B-Vm1za0.js} +1 -1
  230. package/dist/{monitorSpeedChart-Co0wlhbi.cjs → monitorSpeedChart-CnN0iC8u.cjs} +1 -1
  231. package/dist/{mxa-BeZkuXbQ.js → mxa-BPcRQRcY.js} +3 -3
  232. package/dist/{mxa-D-i31ld8.cjs → mxa-BX2STEVM.cjs} +1 -1
  233. package/dist/{myValue-D9BfZfyi.js → myValue-BONva0NQ.js} +2 -2
  234. package/dist/{myValue-BGOHr9GV.cjs → myValue-DQ_hKvi8.cjs} +1 -1
  235. package/dist/{myValueList-YbdlLSX4.cjs → myValueList-4aCne94X.cjs} +1 -1
  236. package/dist/{myValueList-t3NV7OkV.js → myValueList-BDR8NF5i.js} +2 -2
  237. package/dist/objectList-D6ubmpaa.cjs +1 -0
  238. package/dist/{objectList-D45fov8Y.js → objectList-Da_4qImm.js} +188 -181
  239. package/dist/{photo-COZpBISG.js → photo-BwspQLqN.js} +2 -2
  240. package/dist/{photo-CKzMo1dA.cjs → photo-D_r5SgW4.cjs} +1 -1
  241. package/dist/pie-5hEe0Cyl.cjs +2 -0
  242. package/dist/pie-SuOCF6DJ.js +200 -0
  243. package/dist/{pressBtn-DjkhOpzL.cjs → pressBtn-BLkFvYiT.cjs} +1 -1
  244. package/dist/{pressBtn-DEvRCYtZ.js → pressBtn-CFAsFoqc.js} +3 -3
  245. package/dist/processTable-CzMWBqju.cjs +3 -0
  246. package/dist/processTable-gv6dqXG6.js +254 -0
  247. package/dist/{progressBar-CGewR7b3.cjs → progressBar-BS3lkd-n.cjs} +1 -1
  248. package/dist/{progressBar-hrUBql11.js → progressBar-BhmGD8Ej.js} +2 -2
  249. package/dist/{progressCircle-Dfp0HT5K.js → progressCircle-BNmxkM77.js} +2 -2
  250. package/dist/{progressCircle-DIXis7Pw.cjs → progressCircle-BQCkOkoQ.cjs} +1 -1
  251. package/dist/{qrcode-CiM1Re1V.js → qrcode-BN2oJSXC.js} +2 -2
  252. package/dist/{qrcode-CWI4Cpqj.cjs → qrcode-wrXmBrpu.cjs} +1 -1
  253. package/dist/{raceBar-xn4sR_i5.cjs → raceBar-Bu0u232B.cjs} +1 -1
  254. package/dist/{raceBar-akZBjb38.js → raceBar-Czs-fS0R.js} +3 -3
  255. package/dist/{rad-Ct5zrlFC.js → rad-CEQt8sSs.js} +2 -2
  256. package/dist/{rad-BcztTZ1F.cjs → rad-DnrVZZFX.cjs} +1 -1
  257. package/dist/{radarMapViewer-BW3B8iW4.js → radarMapViewer-D-TiiXi8.js} +2 -2
  258. package/dist/{radarMapViewer-DfixQfZw.cjs → radarMapViewer-WpYT0evO.cjs} +1 -1
  259. package/dist/{rainfallFilterBar-DDPWx90M.js → rainfallFilterBar-BnuDqaTm.js} +2 -2
  260. package/dist/{rainfallFilterBar-DbMTFyUu.cjs → rainfallFilterBar-P2iD4mIn.cjs} +1 -1
  261. package/dist/{rainfallTimeCurve-ByUoiECs.cjs → rainfallTimeCurve-CTxNOxNf.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-C9gi3Xjr.js → rainfallTimeCurve-Dv6oKBpB.js} +3 -3
  263. package/dist/{rangeLin-G8rIskko.js → rangeLin-CmYoinz4.js} +2 -2
  264. package/dist/{rangeLin-ub9IP8Iu.cjs → rangeLin-DXOB3laV.cjs} +1 -1
  265. package/dist/{realtimeEvolutionMap-Bg83UZsk.cjs → realtimeEvolutionMap-CAvsbuU1.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-KPQrjWe8.js → realtimeEvolutionMap-j5DXYFsJ.js} +2 -2
  267. package/dist/regionBar-CoaRBaVP.js +192 -0
  268. package/dist/regionBar-DRrp1LjY.cjs +3 -0
  269. package/dist/{request-DUgviIz4.cjs → request-1-dcBsd2.cjs} +1 -1
  270. package/dist/{request-lQd41ZEs.js → request-BtR1I50S.js} +1 -1
  271. package/dist/{retainer1-BW5aG1vP.cjs → retainer1-ChyrI0ji.cjs} +1 -1
  272. package/dist/{retainer1-CvvX6eAF.js → retainer1-UvQBrfqt.js} +3 -3
  273. package/dist/{retainer2-ihJfz2hP.cjs → retainer2-CSa9Rzr4.cjs} +1 -1
  274. package/dist/{retainer2-EP9ZrO7y.js → retainer2-mlk0MVP9.js} +3 -3
  275. package/dist/{retainerRecordList-3YnPzD0I.js → retainerRecordList-Cj6ZgebW.js} +2 -2
  276. package/dist/{retainerRecordList-fOvGC2Ql.cjs → retainerRecordList-DV1pHaos.cjs} +1 -1
  277. package/dist/ringTopN-DaI0vqwz.js +179 -0
  278. package/dist/ringTopN-XUfaF71P.cjs +1 -0
  279. package/dist/{riskRegionTable-zdvvYokw.js → riskRegionTable-CUn4gOSW.js} +2 -2
  280. package/dist/{riskRegionTable-w3I36umR.cjs → riskRegionTable-Dz5WjFfs.cjs} +1 -1
  281. package/dist/{sankey-wQw4W9nQ.cjs → sankey-007A3lx4.cjs} +1 -1
  282. package/dist/{sankey-DoSWe4Ay.js → sankey-lfRIG144.js} +3 -3
  283. package/dist/{scd-CBPYPsxf.js → scd-CQQmiDAJ.js} +2 -2
  284. package/dist/{scd-ZuVYixJm.cjs → scd-C_aXsS-A.cjs} +1 -1
  285. package/dist/{sideMenu-B9odMHdo.cjs → sideMenu-B8HghoVG.cjs} +1 -1
  286. package/dist/{sideMenu-BHyLhUX1.js → sideMenu-zp48Lheb.js} +2 -2
  287. package/dist/{slopeStability-DPL5M4dI.js → slopeStability-DmMDSrBf.js} +3 -3
  288. package/dist/{slopeStability-DI39iJvz.cjs → slopeStability-LwF1YePH.cjs} +1 -1
  289. package/dist/{speedCurve-UVeJx4Iy.js → speedCurve-DP1aDDXm.js} +3 -3
  290. package/dist/{speedCurve-BUmLvSXT.cjs → speedCurve-T65s4wFb.cjs} +1 -1
  291. package/dist/{staticLine-Btw1oxyP.cjs → staticLine-BocZX48n.cjs} +1 -1
  292. package/dist/{staticLine-DZg8-NzH.js → staticLine-qFZ4ePlQ.js} +2 -2
  293. package/dist/{stressFilterBar-DSGfynTI.cjs → stressFilterBar-DVxmS9m_.cjs} +1 -1
  294. package/dist/{stressFilterBar-NsHg-I_8.js → stressFilterBar-ricq3Wha.js} +2 -2
  295. package/dist/{stressTimeCurve-rflOLNR0.cjs → stressTimeCurve-CjpEieum.cjs} +1 -1
  296. package/dist/{stressTimeCurve-BHLTRXpt.js → stressTimeCurve-CupSnwfj.js} +3 -3
  297. package/dist/{swiper-CUyegrH8.cjs → swiper-B6M3wuqA.cjs} +1 -1
  298. package/dist/{swiper-DtGzum2H.js → swiper-CGt3pL4o.js} +2 -2
  299. package/dist/{terminalConfigList-BkRvRUX9.js → terminalConfigList-Cp_R0B09.js} +187 -181
  300. package/dist/terminalConfigList-CrDP3eif.cjs +1 -0
  301. package/dist/{terminalList-BZsrWT6m.js → terminalList-CBDuCaK-.js} +233 -227
  302. package/dist/terminalList-DvF4tpbT.cjs +1 -0
  303. package/dist/{textbox-I1dEVqi3.js → textbox-BQ8yzA9E.js} +2 -2
  304. package/dist/{textbox-DcVKmYzz.cjs → textbox-CcdSuPYr.cjs} +1 -1
  305. package/dist/{three.module-BEj8GPyG.js → three.module-DDLQaQWC.js} +24 -24
  306. package/dist/{timeQueryBar-DS9VC5bw.cjs → timeQueryBar-A0jsLkEn.cjs} +1 -1
  307. package/dist/{timeQueryBar-plqqsq6N.js → timeQueryBar-CZjpHGQ0.js} +1 -1
  308. package/dist/{timeSeries-CzjuKAim.js → timeSeries-CMOuhKyF.js} +4 -4
  309. package/dist/{timeSeries-CK2fz7dZ.cjs → timeSeries-Cf7oHXOA.cjs} +1 -1
  310. package/dist/{timeSeriesCurve-C5Yd0qbV.js → timeSeriesCurve-CKqJvFnh.js} +3 -3
  311. package/dist/{timeSeriesCurve-BGuDW_XY.cjs → timeSeriesCurve-eyrgobFO.cjs} +1 -1
  312. package/dist/{toggleBtn-hHIHV2ip.cjs → toggleBtn-BkY-md62.cjs} +1 -1
  313. package/dist/{toggleBtn-Cr3lFz4v.js → toggleBtn-C0Bu8v4r.js} +2 -2
  314. package/dist/{trajectoryConfigPanel-CqvI_crS.cjs → trajectoryConfigPanel-BRWm1vX-.cjs} +1 -1
  315. package/dist/{trajectoryConfigPanel--9Uw7Pey.js → trajectoryConfigPanel-XIoodnMU.js} +1 -1
  316. package/dist/{trajectoryScatter-oyX05wIm.js → trajectoryScatter-DYB_RLRI.js} +3 -3
  317. package/dist/{trajectoryScatter-D5ZjO0CN.cjs → trajectoryScatter-TPYNXWs-.cjs} +1 -1
  318. package/dist/{universalConfigPanel-BOdlFMdn.js → universalConfigPanel-52JZIY30.js} +1 -1
  319. package/dist/{universalConfigPanel-DNoM5o8Q.cjs → universalConfigPanel-CSsK4sZS.cjs} +1 -1
  320. package/dist/{universalTable-Da7ESUOR.js → universalTable-BtL5aJfg.js} +2 -2
  321. package/dist/{universalTable-DlDiaFa0.cjs → universalTable-DGtzbXor.cjs} +1 -1
  322. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  323. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  324. package/dist/{utils-CKlFoKbw.js → utils-CqcIwYhJ.js} +4 -4
  325. package/dist/{utils-tFu3U5Oe.cjs → utils-lTO6Nt8P.cjs} +1 -1
  326. package/dist/{video-DaqSvTn2.cjs → video-CUrvTS9g.cjs} +1 -1
  327. package/dist/{video-BoVQgcHm.js → video-DNCUKunj.js} +2 -2
  328. package/dist/{videoMonitor-Q9E0ySxX.cjs → videoMonitor-1yz7yL0n.cjs} +1 -1
  329. package/dist/{videoMonitor-BO4nn-Ao.js → videoMonitor-BjZeWR3B.js} +2 -2
  330. package/dist/{vlu-apmVv1Ry.cjs → vlu-B9tyPNWh.cjs} +1 -1
  331. package/dist/{vlu-Cdxge7Na.js → vlu-CuN5YDZn.js} +2 -2
  332. package/dist/warningOverview-CTxgAoYR.cjs +1 -0
  333. package/dist/warningOverview-CgekCv3q.js +167 -0
  334. package/dist/{weather-Df6mm8XD.js → weather-CxPSi3xK.js} +2 -2
  335. package/dist/{weather-cZYia3Em.cjs → weather-D2w0uQz4.cjs} +1 -1
  336. package/dist/{windLin-D4TwVVao.cjs → windLin-OKC5iA2r.cjs} +1 -1
  337. package/dist/{windLin-i8Tgsnm2.js → windLin-l196mBTJ.js} +2 -2
  338. package/package.json +1 -1
  339. package/dist/controlList-DJDIkKG9.cjs +0 -1
  340. package/dist/controlRecordList-C1otQYsw.cjs +0 -1
  341. package/dist/geo3dViewer-BrC9MU3s.cjs +0 -1
  342. package/dist/geo3dViewer-DgJB7aXk.js +0 -3856
  343. package/dist/mappingList-Bt1_bSR5.cjs +0 -1
  344. package/dist/objectList-DJsaat8I.cjs +0 -1
  345. package/dist/pie-C_Zxxygo.cjs +0 -2
  346. package/dist/pie-CnGWxHZP.js +0 -199
  347. package/dist/terminalConfigList-Bn9l6wTZ.cjs +0 -1
  348. package/dist/terminalList-BIaMF10C.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { o as M, V as p, t as z, m as A } from "./three.module-BEj8GPyG.js";
1
+ import { z as M, V as p, k as z, r as A } from "./three.module-DDLQaQWC.js";
2
2
  class q extends z {
3
3
  constructor(l = document.createElement("div")) {
4
4
  super(), this.isCSS2DObject = !0, this.element = l, this.element.style.position = "absolute", this.element.style.userSelect = "none", this.element.setAttribute("draggable", !1), this.center = new A(0.5, 0.5), this.addEventListener("removed", function() {
@@ -1 +1 @@
1
- "use strict";const r=require("vue"),i=require("./utils-tFu3U5Oe.cjs"),a=require("./index-KmH5IjZC.cjs"),s=require("./echarts-BB8O2KSA.cjs");class h extends i.BaseComponent{constructor(t,e){super(t,e),this.chartObj=null,this.erd=null,this.echartId=`${e}_${Math.random().toString(16).slice(4,12)}`}getChartOption(){return{}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),r.nextTick(()=>this.initChart())}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",30),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",40),right:this.getOptionValue("right",20),points:this.getOptionValue("points",10)}}ensureData(){var t;(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=this.getDefaultData())}getDefaultData(){return[{name:"参数一",fv:"",color:"#4162ff"}]}initChart(){const t=document.querySelector(`#${this.echartId}`);if(!t)return;this.chartObj||(this.chartObj=s.init(t),this.setupResizeListener(t));const e=this.getChartOption();this.chartObj.setOption(e,!0)}setupResizeListener(t){this.erd=a.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{var e;(e=this.chartObj)==null||e.resize()})}hasData(){return i.hasDataSource(this.props.conf)}getTimeAxis(){return i.getxAxisDataTime(this.Style.value.points,this.props.mode,this.hasData())}updateChart(t){var e;(e=this.chartObj)==null||e.setOption(t)}cleanup(){if(this.erd){const t=document.querySelector(`#${this.echartId}`);t&&this.erd.uninstall(t),this.erd=null}this.chartObj&&(this.chartObj.clear(),s.dispose(this.chartObj),this.chartObj=null)}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=h;
1
+ "use strict";const r=require("vue"),i=require("./utils-lTO6Nt8P.cjs"),a=require("./index-BpdquN7F.cjs"),s=require("./echarts-BB8O2KSA.cjs");class h extends i.BaseComponent{constructor(t,e){super(t,e),this.chartObj=null,this.erd=null,this.echartId=`${e}_${Math.random().toString(16).slice(4,12)}`}getChartOption(){return{}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),r.nextTick(()=>this.initChart())}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",30),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",40),right:this.getOptionValue("right",20),points:this.getOptionValue("points",10)}}ensureData(){var t;(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=this.getDefaultData())}getDefaultData(){return[{name:"参数一",fv:"",color:"#4162ff"}]}initChart(){const t=document.querySelector(`#${this.echartId}`);if(!t)return;this.chartObj||(this.chartObj=s.init(t),this.setupResizeListener(t));const e=this.getChartOption();this.chartObj.setOption(e,!0)}setupResizeListener(t){this.erd=a.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{var e;(e=this.chartObj)==null||e.resize()})}hasData(){return i.hasDataSource(this.props.conf)}getTimeAxis(){return i.getxAxisDataTime(this.Style.value.points,this.props.mode,this.hasData())}updateChart(t){var e;(e=this.chartObj)==null||e.setOption(t)}cleanup(){if(this.erd){const t=document.querySelector(`#${this.echartId}`);t&&this.erd.uninstall(t),this.erd=null}this.chartObj&&(this.chartObj.clear(),s.dispose(this.chartObj),this.chartObj=null)}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=h;
@@ -1,6 +1,6 @@
1
1
  import { nextTick as i } from "vue";
2
- import { B as s, h as r, i as a } from "./utils-CKlFoKbw.js";
3
- import { l as h } from "./index-t1gLOVql.js";
2
+ import { B as s, h as r, i as a } from "./utils-CqcIwYhJ.js";
3
+ import { l as h } from "./index-BjnedpPd.js";
4
4
  import { i as o, d as n } from "./echarts-BVht3HHb.js";
5
5
  class g extends s {
6
6
  constructor(t, e) {
@@ -0,0 +1,107 @@
1
+ import { defineComponent as k, ref as P, computed as i, watch as S, openBlock as u, createElementBlock as r, createElementVNode as t, withDirectives as L, vModelSelect as h, normalizeClass as g, toDisplayString as a, Fragment as E, renderList as N, createCommentVNode as $ } from "vue";
2
+ import { _ as D } from "./index-BjnedpPd.js";
3
+ const I = { class: "lw-panel-section lw-plan-section" }, V = { class: "lw-plan-toolbar" }, _ = ["disabled"], B = { class: "lw-plan-table" }, T = { class: "lw-step-no" }, z = ["onClick"], F = { key: 0 }, M = /* @__PURE__ */ k({
4
+ __name: "EmergencyPlanPanel",
5
+ props: {
6
+ plans: {},
7
+ currentPlan: {},
8
+ execution: {}
9
+ },
10
+ emits: ["select-plan", "start-plan", "report-warning", "complete-step"],
11
+ setup(p, { emit: b }) {
12
+ var v, w;
13
+ const s = p, d = b, o = P(String((w = (v = s.currentPlan) == null ? void 0 : v.warningLevel) != null ? w : 4)), c = i(() => {
14
+ const n = parseInt(o.value);
15
+ return s.plans.find((e) => e.warningLevel === n) || null;
16
+ }), m = i(() => {
17
+ var n;
18
+ return s.execution.status !== "idle" && s.execution.steps.length > 0 ? s.execution.steps : ((n = c.value) == null ? void 0 : n.steps) || [];
19
+ }), x = i(() => {
20
+ const n = s.execution.status;
21
+ return n === "running" ? "lw-status-running" : n === "completed" ? "lw-status-done" : "lw-status-idle";
22
+ }), f = i(() => ({
23
+ idle: "未启动",
24
+ running: "预案进行中",
25
+ completed: "已完成",
26
+ aborted: "已中止"
27
+ })[s.execution.status] || "未启动");
28
+ function C() {
29
+ c.value && d("select-plan", c.value);
30
+ }
31
+ function y(n) {
32
+ s.execution.status === "running" && n.status === "pending" && d("complete-step", n);
33
+ }
34
+ return S(() => s.currentPlan, (n) => {
35
+ n && (o.value = String(n.warningLevel));
36
+ }), (n, e) => (u(), r("div", I, [
37
+ e[7] || (e[7] = t("div", { class: "lw-panel-header" }, [
38
+ t("span", { class: "lw-panel-title" }, "应急预案")
39
+ ], -1)),
40
+ t("div", V, [
41
+ e[4] || (e[4] = t("span", { class: "lw-plan-label" }, "预案执行步骤", -1)),
42
+ L(t("select", {
43
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => o.value = l),
44
+ class: "lw-select lw-select-sm",
45
+ onChange: C
46
+ }, [...e[3] || (e[3] = [
47
+ t("option", { value: "4" }, "Ⅳ级预警", -1),
48
+ t("option", { value: "3" }, "Ⅲ级预警", -1),
49
+ t("option", { value: "2" }, "Ⅱ级预警", -1),
50
+ t("option", { value: "1" }, "Ⅰ级预警", -1)
51
+ ])], 544), [
52
+ [h, o.value]
53
+ ]),
54
+ t("span", {
55
+ class: g(["lw-plan-status", x.value])
56
+ }, a(f.value), 3),
57
+ t("button", {
58
+ class: "lw-btn-primary lw-btn-sm",
59
+ disabled: p.execution.status === "running",
60
+ onClick: e[1] || (e[1] = (l) => n.$emit("start-plan"))
61
+ }, a(p.execution.status === "running" ? "预案进行中" : "启动预案"), 9, _),
62
+ t("button", {
63
+ class: "lw-btn-primary lw-btn-sm lw-btn-warn",
64
+ onClick: e[2] || (e[2] = (l) => n.$emit("report-warning"))
65
+ }, "报告预警情况")
66
+ ]),
67
+ t("div", B, [
68
+ t("table", null, [
69
+ e[6] || (e[6] = t("thead", null, [
70
+ t("tr", null, [
71
+ t("th", null, "#"),
72
+ t("th", null, "步骤"),
73
+ t("th", null, "责任人"),
74
+ t("th", null, "时限"),
75
+ t("th", null, "状态")
76
+ ])
77
+ ], -1)),
78
+ t("tbody", null, [
79
+ (u(!0), r(E, null, N(m.value, (l) => (u(), r("tr", {
80
+ key: l.stepId
81
+ }, [
82
+ t("td", T, a(l.stepNo), 1),
83
+ t("td", null, a(l.stepName), 1),
84
+ t("td", null, a(l.responsibleName), 1),
85
+ t("td", null, a(l.timeLimitDisplay), 1),
86
+ t("td", null, [
87
+ t("span", {
88
+ class: g(["lw-step-status", "lw-step-" + l.status]),
89
+ onClick: (U) => y(l)
90
+ }, a(l.statusText), 11, z)
91
+ ])
92
+ ]))), 128)),
93
+ m.value.length === 0 ? (u(), r("tr", F, [...e[5] || (e[5] = [
94
+ t("td", {
95
+ colspan: "5",
96
+ class: "lw-no-data"
97
+ }, "该等级暂无预案", -1)
98
+ ])])) : $("", !0)
99
+ ])
100
+ ])
101
+ ])
102
+ ]));
103
+ }
104
+ }), A = /* @__PURE__ */ D(M, [["__scopeId", "data-v-2e51d84b"]]);
105
+ export {
106
+ A as E
107
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),V=require("./index-BpdquN7F.cjs"),w={class:"lw-panel-section lw-plan-section"},g={class:"lw-plan-toolbar"},b=["disabled"],y={class:"lw-plan-table"},k={class:"lw-step-no"},x=["onClick"],S={key:0},C=e.defineComponent({__name:"EmergencyPlanPanel",props:{plans:{},currentPlan:{},execution:{}},emits:["select-plan","start-plan","report-warning","complete-step"],setup(o,{emit:m}){var u,d;const a=o,i=m,s=e.ref(String((d=(u=a.currentPlan)==null?void 0:u.warningLevel)!=null?d:4)),r=e.computed(()=>{const n=parseInt(s.value);return a.plans.find(t=>t.warningLevel===n)||null}),c=e.computed(()=>{var n;return a.execution.status!=="idle"&&a.execution.steps.length>0?a.execution.steps:((n=r.value)==null?void 0:n.steps)||[]}),p=e.computed(()=>{const n=a.execution.status;return n==="running"?"lw-status-running":n==="completed"?"lw-status-done":"lw-status-idle"}),E=e.computed(()=>({idle:"未启动",running:"预案进行中",completed:"已完成",aborted:"已中止"})[a.execution.status]||"未启动");function N(){r.value&&i("select-plan",r.value)}function v(n){a.execution.status==="running"&&n.status==="pending"&&i("complete-step",n)}return e.watch(()=>a.currentPlan,n=>{n&&(s.value=String(n.warningLevel))}),(n,t)=>(e.openBlock(),e.createElementBlock("div",w,[t[7]||(t[7]=e.createElementVNode("div",{class:"lw-panel-header"},[e.createElementVNode("span",{class:"lw-panel-title"},"应急预案")],-1)),e.createElementVNode("div",g,[t[4]||(t[4]=e.createElementVNode("span",{class:"lw-plan-label"},"预案执行步骤",-1)),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":t[0]||(t[0]=l=>s.value=l),class:"lw-select lw-select-sm",onChange:N},[...t[3]||(t[3]=[e.createElementVNode("option",{value:"4"},"Ⅳ级预警",-1),e.createElementVNode("option",{value:"3"},"Ⅲ级预警",-1),e.createElementVNode("option",{value:"2"},"Ⅱ级预警",-1),e.createElementVNode("option",{value:"1"},"Ⅰ级预警",-1)])],544),[[e.vModelSelect,s.value]]),e.createElementVNode("span",{class:e.normalizeClass(["lw-plan-status",p.value])},e.toDisplayString(E.value),3),e.createElementVNode("button",{class:"lw-btn-primary lw-btn-sm",disabled:o.execution.status==="running",onClick:t[1]||(t[1]=l=>n.$emit("start-plan"))},e.toDisplayString(o.execution.status==="running"?"预案进行中":"启动预案"),9,b),e.createElementVNode("button",{class:"lw-btn-primary lw-btn-sm lw-btn-warn",onClick:t[2]||(t[2]=l=>n.$emit("report-warning"))},"报告预警情况")]),e.createElementVNode("div",y,[e.createElementVNode("table",null,[t[6]||(t[6]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,"#"),e.createElementVNode("th",null,"步骤"),e.createElementVNode("th",null,"责任人"),e.createElementVNode("th",null,"时限"),e.createElementVNode("th",null,"状态")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.stepId},[e.createElementVNode("td",k,e.toDisplayString(l.stepNo),1),e.createElementVNode("td",null,e.toDisplayString(l.stepName),1),e.createElementVNode("td",null,e.toDisplayString(l.responsibleName),1),e.createElementVNode("td",null,e.toDisplayString(l.timeLimitDisplay),1),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["lw-step-status","lw-step-"+l.status]),onClick:P=>v(l)},e.toDisplayString(l.statusText),11,x)])]))),128)),c.value.length===0?(e.openBlock(),e.createElementBlock("tr",S,[...t[5]||(t[5]=[e.createElementVNode("td",{colspan:"5",class:"lw-no-data"},"该等级暂无预案",-1)])])):e.createCommentVNode("",!0)])])])]))}}),f=V._export_sfc(C,[["__scopeId","data-v-2e51d84b"]]);exports.EmergencyPlanPanel=f;
@@ -0,0 +1 @@
1
+ "use strict";var Nn=Object.defineProperty,qn=Object.defineProperties;var $n=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable;var xn=Math.pow,mn=(e,t,n)=>t in e?Nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dt=(e,t)=>{for(var n in t||(t={}))kn.call(t,n)&&mn(e,n,t[n]);if(hn)for(var n of hn(t))Hn.call(t,n)&&mn(e,n,t[n]);return e},Xt=(e,t)=>qn(e,$n(t));const b=require("./three.module-CjayKmiG.cjs"),Rn=0,Xn=1,jn=2,wn=2,jt=1.25,An=1,Pt=32,kt=65535,Zn=Math.pow(2,-24),Zt=Symbol("SKIP_GENERATION");function Wn(e){return e.index?e.index.count:e.attributes.position.count}function ft(e){return Wn(e)/3}function Yn(e,t=ArrayBuffer){return e>65535?new Uint32Array(new t(4*e)):new Uint16Array(new t(2*e))}function Kn(e,t){if(!e.index){const n=e.attributes.position.count,s=t.useSharedArrayBuffer?SharedArrayBuffer:ArrayBuffer,r=Yn(n,s);e.setIndex(new b.BufferAttribute(r,1));for(let l=0;l<n;l++)r[l]=l}}function zn(e,t){const n=ft(e),s=t||e.drawRange,r=s.start/3,l=(s.start+s.count)/3,i=Math.max(0,r),c=Math.min(n,l)-i;return[{offset:Math.floor(i),count:Math.floor(c)}]}function vn(e,t){if(!e.groups||!e.groups.length)return zn(e,t);const n=[],s=new Set,r=t||e.drawRange,l=r.start/3,i=(r.start+r.count)/3;for(const o of e.groups){const p=o.start/3,u=(o.start+o.count)/3;s.add(Math.max(l,p)),s.add(Math.min(i,u))}const c=Array.from(s.values()).sort((o,p)=>o-p);for(let o=0;o<c.length-1;o++){const p=c[o],u=c[o+1];n.push({offset:Math.floor(p),count:Math.floor(u-p)})}return n}function Jn(e,t){const n=ft(e),s=vn(e,t).sort((i,c)=>i.offset-c.offset),r=s[s.length-1];r.count=Math.min(n-r.offset,r.count);let l=0;return s.forEach(({count:i})=>l+=i),n!==l}function Wt(e,t,n,s,r){let l=1/0,i=1/0,c=1/0,o=-1/0,p=-1/0,u=-1/0,f=1/0,a=1/0,y=1/0,g=-1/0,T=-1/0,m=-1/0;for(let h=t*6,d=(t+n)*6;h<d;h+=6){const x=e[h+0],A=e[h+1],w=x-A,P=x+A;w<l&&(l=w),P>o&&(o=P),x<f&&(f=x),x>g&&(g=x);const B=e[h+2],_=e[h+3],M=B-_,V=B+_;M<i&&(i=M),V>p&&(p=V),B<a&&(a=B),B>T&&(T=B);const L=e[h+4],S=e[h+5],C=L-S,U=L+S;C<c&&(c=C),U>u&&(u=U),L<y&&(y=L),L>m&&(m=L)}s[0]=l,s[1]=i,s[2]=c,s[3]=o,s[4]=p,s[5]=u,r[0]=f,r[1]=a,r[2]=y,r[3]=g,r[4]=T,r[5]=m}function Qn(e,t=null,n=null,s=null){const r=e.attributes.position,l=e.index?e.index.array:null,i=ft(e),c=r.normalized;let o;t===null?(o=new Float32Array(i*6),n=0,s=i):(o=t,n=n||0,s=s||i);const p=r.array,u=r.offset||0;let f=3;r.isInterleavedBufferAttribute&&(f=r.data.stride);const a=["getX","getY","getZ"];for(let y=n;y<n+s;y++){const g=y*3,T=y*6;let m=g+0,h=g+1,d=g+2;l&&(m=l[m],h=l[h],d=l[d]),c||(m=m*f+u,h=h*f+u,d=d*f+u);for(let x=0;x<3;x++){let A,w,P;c?(A=r[a[x]](m),w=r[a[x]](h),P=r[a[x]](d)):(A=p[m+x],w=p[h+x],P=p[d+x]);let B=A;w<B&&(B=w),P<B&&(B=P);let _=A;w>_&&(_=w),P>_&&(_=P);const M=(_-B)/2,V=x*2;o[T+V+0]=B+M,o[T+V+1]=M+(Math.abs(B)+M)*Zn}}return o}function z(e,t,n){return n.min.x=t[e],n.min.y=t[e+1],n.min.z=t[e+2],n.max.x=t[e+3],n.max.y=t[e+4],n.max.z=t[e+5],n}function gn(e){let t=-1,n=-1/0;for(let s=0;s<3;s++){const r=e[s+3]-e[s];r>n&&(n=r,t=s)}return t}function Tn(e,t){t.set(e)}function Bn(e,t,n){let s,r;for(let l=0;l<3;l++){const i=l+3;s=e[l],r=t[l],n[l]=s<r?s:r,s=e[i],r=t[i],n[i]=s>r?s:r}}function Mt(e,t,n){for(let s=0;s<3;s++){const r=t[e+2*s],l=t[e+2*s+1],i=r-l,c=r+l;i<n[s]&&(n[s]=i),c>n[s+3]&&(n[s+3]=c)}}function ht(e){const t=e[3]-e[0],n=e[4]-e[1],s=e[5]-e[2];return 2*(t*n+n*s+s*t)}const W=32,Gn=(e,t)=>e.candidate-t.candidate,J=new Array(W).fill().map(()=>({count:0,bounds:new Float32Array(6),rightCacheBounds:new Float32Array(6),leftCacheBounds:new Float32Array(6),candidate:0})),_t=new Float32Array(6);function On(e,t,n,s,r,l){let i=-1,c=0;if(l===Rn)i=gn(t),i!==-1&&(c=(t[i]+t[i+3])/2);else if(l===Xn)i=gn(e),i!==-1&&(c=te(n,s,r,i));else if(l===jn){const o=ht(e);let p=jt*r;const u=s*6,f=(s+r)*6;for(let a=0;a<3;a++){const y=t[a],m=(t[a+3]-y)/W;if(r<W/4){const h=[...J];h.length=r;let d=0;for(let A=u;A<f;A+=6,d++){const w=h[d];w.candidate=n[A+2*a],w.count=0;const{bounds:P,leftCacheBounds:B,rightCacheBounds:_}=w;for(let M=0;M<3;M++)_[M]=1/0,_[M+3]=-1/0,B[M]=1/0,B[M+3]=-1/0,P[M]=1/0,P[M+3]=-1/0;Mt(A,n,P)}h.sort(Gn);let x=r;for(let A=0;A<x;A++){const w=h[A];for(;A+1<x&&h[A+1].candidate===w.candidate;)h.splice(A+1,1),x--}for(let A=u;A<f;A+=6){const w=n[A+2*a];for(let P=0;P<x;P++){const B=h[P];w>=B.candidate?Mt(A,n,B.rightCacheBounds):(Mt(A,n,B.leftCacheBounds),B.count++)}}for(let A=0;A<x;A++){const w=h[A],P=w.count,B=r-w.count,_=w.leftCacheBounds,M=w.rightCacheBounds;let V=0;P!==0&&(V=ht(_)/o);let L=0;B!==0&&(L=ht(M)/o);const S=An+jt*(V*P+L*B);S<p&&(i=a,p=S,c=w.candidate)}}else{for(let x=0;x<W;x++){const A=J[x];A.count=0,A.candidate=y+m+x*m;const w=A.bounds;for(let P=0;P<3;P++)w[P]=1/0,w[P+3]=-1/0}for(let x=u;x<f;x+=6){let P=~~((n[x+2*a]-y)/m);P>=W&&(P=W-1);const B=J[P];B.count++,Mt(x,n,B.bounds)}const h=J[W-1];Tn(h.bounds,h.rightCacheBounds);for(let x=W-2;x>=0;x--){const A=J[x],w=J[x+1];Bn(A.bounds,w.rightCacheBounds,A.rightCacheBounds)}let d=0;for(let x=0;x<W-1;x++){const A=J[x],w=A.count,P=A.bounds,_=J[x+1].rightCacheBounds;w!==0&&(d===0?Tn(P,_t):Bn(P,_t,_t)),d+=w;let M=0,V=0;d!==0&&(M=ht(_t)/o);const L=r-d;L!==0&&(V=ht(_)/o);const S=An+jt*(M*d+V*L);S<p&&(i=a,p=S,c=A.candidate)}}}}else console.warn(`MeshBVH: Invalid build strategy value ${l} used.`);return{axis:i,pos:c}}function te(e,t,n,s){let r=0;for(let l=t,i=t+n;l<i;l++)r+=e[l*6+s*2];return r/n}class Yt{constructor(){this.boundingData=new Float32Array(6)}}function ne(e,t,n,s,r,l){let i=s,c=s+r-1;const o=l.pos,p=l.axis*2;for(;;){for(;i<=c&&n[i*6+p]<o;)i++;for(;i<=c&&n[c*6+p]>=o;)c--;if(i<c){for(let u=0;u<3;u++){let f=t[i*3+u];t[i*3+u]=t[c*3+u],t[c*3+u]=f}for(let u=0;u<6;u++){let f=n[i*6+u];n[i*6+u]=n[c*6+u],n[c*6+u]=f}i++,c--}else return i}}function ee(e,t,n,s,r,l){let i=s,c=s+r-1;const o=l.pos,p=l.axis*2;for(;;){for(;i<=c&&n[i*6+p]<o;)i++;for(;i<=c&&n[c*6+p]>=o;)c--;if(i<c){let u=e[i];e[i]=e[c],e[c]=u;for(let f=0;f<6;f++){let a=n[i*6+f];n[i*6+f]=n[c*6+f],n[c*6+f]=a}i++,c--}else return i}}function N(e,t){return t[e+15]===65535}function q(e,t){return t[e+6]}function $(e,t){return t[e+14]}function k(e){return e+8}function H(e,t){return t[e+6]}function En(e,t){return t[e+7]}let Dn,Bt,qt,In;const se=Math.pow(2,32);function en(e){return"count"in e?1:1+en(e.left)+en(e.right)}function ie(e,t,n){return Dn=new Float32Array(n),Bt=new Uint32Array(n),qt=new Uint16Array(n),In=new Uint8Array(n),sn(e,t)}function sn(e,t){const n=e/4,s=e/2,r="count"in t,l=t.boundingData;for(let i=0;i<6;i++)Dn[n+i]=l[i];if(r)if(t.buffer){const i=t.buffer;In.set(new Uint8Array(i),e);for(let c=e,o=e+i.byteLength;c<o;c+=Pt){const p=c/2;N(p,qt)||(Bt[c/4+6]+=n)}return e+i.byteLength}else{const i=t.offset,c=t.count;return Bt[n+6]=i,qt[s+14]=c,qt[s+15]=kt,e+Pt}else{const i=t.left,c=t.right,o=t.splitAxis;let p;if(p=sn(e+Pt,i),p/4>se)throw new Error("MeshBVH: Cannot store child pointer greater than 32 bits.");return Bt[n+6]=p/4,p=sn(p,c),Bt[n+7]=o,p}}function re(e,t){const n=(e.index?e.index.count:e.attributes.position.count)/3,s=n>xn(2,16),r=s?4:2,l=t?new SharedArrayBuffer(n*r):new ArrayBuffer(n*r),i=s?new Uint32Array(l):new Uint16Array(l);for(let c=0,o=i.length;c<o;c++)i[c]=c;return i}function oe(e,t,n,s,r){const{maxDepth:l,verbose:i,maxLeafTris:c,strategy:o,onProgress:p,indirect:u}=r,f=e._indirectBuffer,a=e.geometry,y=a.index?a.index.array:null,g=u?ee:ne,T=ft(a),m=new Float32Array(6);let h=!1;const d=new Yt;return Wt(t,n,s,d.boundingData,m),A(d,n,s,m),d;function x(w){p&&p(w/T)}function A(w,P,B,_=null,M=0){if(!h&&M>=l&&(h=!0,i&&(console.warn(`MeshBVH: Max depth of ${l} reached when generating BVH. Consider increasing maxDepth.`),console.warn(a))),B<=c||M>=l)return x(P+B),w.offset=P,w.count=B,w;const V=On(w.boundingData,_,t,P,B,o);if(V.axis===-1)return x(P+B),w.offset=P,w.count=B,w;const L=g(f,y,t,P,B,V);if(L===P||L===P+B)x(P+B),w.offset=P,w.count=B;else{w.splitAxis=V.axis;const S=new Yt,C=P,U=L-P;w.left=S,Wt(t,C,U,S.boundingData,m),A(S,C,U,m,M+1);const F=new Yt,v=L,K=B-U;w.right=F,Wt(t,v,K,F.boundingData,m),A(F,v,K,m,M+1)}return w}}function ce(e,t){const n=e.geometry;t.indirect&&(e._indirectBuffer=re(n,t.useSharedArrayBuffer),Jn(n,t.range)&&!t.verbose&&console.warn('MeshBVH: Provided geometry contains groups or a range that do not fully span the vertex contents while using the "indirect" option. BVH may incorrectly report intersections on unrendered portions of the geometry.')),e._indirectBuffer||Kn(n,t);const s=t.useSharedArrayBuffer?SharedArrayBuffer:ArrayBuffer,r=Qn(n),l=t.indirect?zn(n,t.range):vn(n,t.range);e._roots=l.map(i=>{const c=oe(e,r,i.offset,i.count,t),o=en(c),p=new s(Pt*o);return ie(0,c,p),p})}class Y{constructor(){this.min=1/0,this.max=-1/0}setFromPointsField(t,n){let s=1/0,r=-1/0;for(let l=0,i=t.length;l<i;l++){const o=t[l][n];s=o<s?o:s,r=o>r?o:r}this.min=s,this.max=r}setFromPoints(t,n){let s=1/0,r=-1/0;for(let l=0,i=n.length;l<i;l++){const c=n[l],o=t.dot(c);s=o<s?o:s,r=o>r?o:r}this.min=s,this.max=r}isSeparated(t){return this.min>t.max||t.min>this.max}}Y.prototype.setFromBox=(function(){const e=new b.Vector3;return function(n,s){const r=s.min,l=s.max;let i=1/0,c=-1/0;for(let o=0;o<=1;o++)for(let p=0;p<=1;p++)for(let u=0;u<=1;u++){e.x=r.x*o+l.x*(1-o),e.y=r.y*p+l.y*(1-p),e.z=r.z*u+l.z*(1-u);const f=n.dot(e);i=Math.min(f,i),c=Math.max(f,c)}this.min=i,this.max=c}})();const le=(function(){const e=new b.Vector3,t=new b.Vector3,n=new b.Vector3;return function(r,l,i){const c=r.start,o=e,p=l.start,u=t;n.subVectors(c,p),e.subVectors(r.end,r.start),t.subVectors(l.end,l.start);const f=n.dot(u),a=u.dot(o),y=u.dot(u),g=n.dot(o),m=o.dot(o)*y-a*a;let h,d;m!==0?h=(f*a-g*y)/m:h=0,d=(f+h*a)/y,i.x=h,i.y=d}})(),pn=(function(){const e=new b.Vector2,t=new b.Vector3,n=new b.Vector3;return function(r,l,i,c){le(r,l,e);let o=e.x,p=e.y;if(o>=0&&o<=1&&p>=0&&p<=1){r.at(o,i),l.at(p,c);return}else if(o>=0&&o<=1){p<0?l.at(0,c):l.at(1,c),r.closestPointToPoint(c,!0,i);return}else if(p>=0&&p<=1){o<0?r.at(0,i):r.at(1,i),l.closestPointToPoint(i,!0,c);return}else{let u;o<0?u=r.start:u=r.end;let f;p<0?f=l.start:f=l.end;const a=t,y=n;if(r.closestPointToPoint(f,!0,t),l.closestPointToPoint(u,!0,n),a.distanceToSquared(f)<=y.distanceToSquared(u)){i.copy(a),c.copy(f);return}else{i.copy(u),c.copy(y);return}}}})(),ae=(function(){const e=new b.Vector3,t=new b.Vector3,n=new b.Plane,s=new b.Line3;return function(l,i){const{radius:c,center:o}=l,{a:p,b:u,c:f}=i;if(s.start=p,s.end=u,s.closestPointToPoint(o,!0,e).distanceTo(o)<=c||(s.start=p,s.end=f,s.closestPointToPoint(o,!0,e).distanceTo(o)<=c)||(s.start=u,s.end=f,s.closestPointToPoint(o,!0,e).distanceTo(o)<=c))return!0;const T=i.getPlane(n);if(Math.abs(T.distanceToPoint(o))<=c){const h=T.projectPoint(o,t);if(i.containsPoint(h))return!0}return!1}})(),ue=1e-15;function Kt(e){return Math.abs(e)<ue}class Z extends b.Triangle{constructor(...t){super(...t),this.isExtendedTriangle=!0,this.satAxes=new Array(4).fill().map(()=>new b.Vector3),this.satBounds=new Array(4).fill().map(()=>new Y),this.points=[this.a,this.b,this.c],this.sphere=new b.Sphere,this.plane=new b.Plane,this.needsUpdate=!0}intersectsSphere(t){return ae(t,this)}update(){const t=this.a,n=this.b,s=this.c,r=this.points,l=this.satAxes,i=this.satBounds,c=l[0],o=i[0];this.getNormal(c),o.setFromPoints(c,r);const p=l[1],u=i[1];p.subVectors(t,n),u.setFromPoints(p,r);const f=l[2],a=i[2];f.subVectors(n,s),a.setFromPoints(f,r);const y=l[3],g=i[3];y.subVectors(s,t),g.setFromPoints(y,r),this.sphere.setFromPoints(this.points),this.plane.setFromNormalAndCoplanarPoint(c,t),this.needsUpdate=!1}}Z.prototype.closestPointToSegment=(function(){const e=new b.Vector3,t=new b.Vector3,n=new b.Line3;return function(r,l=null,i=null){const{start:c,end:o}=r,p=this.points;let u,f=1/0;for(let a=0;a<3;a++){const y=(a+1)%3;n.start.copy(p[a]),n.end.copy(p[y]),pn(n,r,e,t),u=e.distanceToSquared(t),u<f&&(f=u,l&&l.copy(e),i&&i.copy(t))}return this.closestPointToPoint(c,e),u=c.distanceToSquared(e),u<f&&(f=u,l&&l.copy(e),i&&i.copy(c)),this.closestPointToPoint(o,e),u=o.distanceToSquared(e),u<f&&(f=u,l&&l.copy(e),i&&i.copy(o)),Math.sqrt(f)}})();Z.prototype.intersectsTriangle=(function(){const e=new Z,t=new Array(3),n=new Array(3),s=new Y,r=new Y,l=new b.Vector3,i=new b.Vector3,c=new b.Vector3,o=new b.Vector3,p=new b.Vector3,u=new b.Line3,f=new b.Line3,a=new b.Line3,y=new b.Vector3;function g(T,m,h){const d=T.points;let x=0,A=-1;for(let w=0;w<3;w++){const{start:P,end:B}=u;P.copy(d[w]),B.copy(d[(w+1)%3]),u.delta(i);const _=Kt(m.distanceToPoint(P));if(Kt(m.normal.dot(i))&&_){h.copy(u),x=2;break}const M=m.intersectLine(u,y);if(!M&&_&&y.copy(P),(M||_)&&!Kt(y.distanceTo(B))){if(x<=1)(x===1?h.start:h.end).copy(y),_&&(A=x);else if(x>=2){(A===1?h.start:h.end).copy(y),x=2;break}if(x++,x===2&&A===-1)break}}return x}return function(m,h=null,d=!1){this.needsUpdate&&this.update(),m.isExtendedTriangle?m.needsUpdate&&m.update():(e.copy(m),e.update(),m=e);const x=this.plane,A=m.plane;if(Math.abs(x.normal.dot(A.normal))>1-1e-10){const w=this.satBounds,P=this.satAxes;n[0]=m.a,n[1]=m.b,n[2]=m.c;for(let M=0;M<4;M++){const V=w[M],L=P[M];if(s.setFromPoints(L,n),V.isSeparated(s))return!1}const B=m.satBounds,_=m.satAxes;t[0]=this.a,t[1]=this.b,t[2]=this.c;for(let M=0;M<4;M++){const V=B[M],L=_[M];if(s.setFromPoints(L,t),V.isSeparated(s))return!1}for(let M=0;M<4;M++){const V=P[M];for(let L=0;L<4;L++){const S=_[L];if(l.crossVectors(V,S),s.setFromPoints(l,t),r.setFromPoints(l,n),s.isSeparated(r))return!1}}return h&&(d||console.warn("ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0."),h.start.set(0,0,0),h.end.set(0,0,0)),!0}else{const w=g(this,A,f);if(w===1&&m.containsPoint(f.end))return h&&(h.start.copy(f.end),h.end.copy(f.end)),!0;if(w!==2)return!1;const P=g(m,x,a);if(P===1&&this.containsPoint(a.end))return h&&(h.start.copy(a.end),h.end.copy(a.end)),!0;if(P!==2)return!1;if(f.delta(c),a.delta(o),c.dot(o)<0){let C=a.start;a.start=a.end,a.end=C}const B=f.start.dot(c),_=f.end.dot(c),M=a.start.dot(c),V=a.end.dot(c),L=_<M,S=B<V;return B!==V&&M!==_&&L===S?!1:(h&&(p.subVectors(f.start,a.start),p.dot(c)>0?h.start.copy(f.start):h.start.copy(a.start),p.subVectors(f.end,a.end),p.dot(c)<0?h.end.copy(f.end):h.end.copy(a.end)),!0)}}})();Z.prototype.distanceToPoint=(function(){const e=new b.Vector3;return function(n){return this.closestPointToPoint(n,e),n.distanceTo(e)}})();Z.prototype.distanceToTriangle=(function(){const e=new b.Vector3,t=new b.Vector3,n=["a","b","c"],s=new b.Line3,r=new b.Line3;return function(i,c=null,o=null){const p=c||o?s:null;if(this.intersectsTriangle(i,p))return(c||o)&&(c&&p.getCenter(c),o&&p.getCenter(o)),0;let u=1/0;for(let f=0;f<3;f++){let a;const y=n[f],g=i[y];this.closestPointToPoint(g,e),a=g.distanceToSquared(e),a<u&&(u=a,c&&c.copy(e),o&&o.copy(g));const T=this[y];i.closestPointToPoint(T,e),a=T.distanceToSquared(e),a<u&&(u=a,c&&c.copy(T),o&&o.copy(e))}for(let f=0;f<3;f++){const a=n[f],y=n[(f+1)%3];s.set(this[a],this[y]);for(let g=0;g<3;g++){const T=n[g],m=n[(g+1)%3];r.set(i[T],i[m]),pn(s,r,e,t);const h=e.distanceToSquared(t);h<u&&(u=h,c&&c.copy(e),o&&o.copy(t))}}return Math.sqrt(u)}})();class I{constructor(t,n,s){this.isOrientedBox=!0,this.min=new b.Vector3,this.max=new b.Vector3,this.matrix=new b.Matrix4,this.invMatrix=new b.Matrix4,this.points=new Array(8).fill().map(()=>new b.Vector3),this.satAxes=new Array(3).fill().map(()=>new b.Vector3),this.satBounds=new Array(3).fill().map(()=>new Y),this.alignedSatBounds=new Array(3).fill().map(()=>new Y),this.needsUpdate=!1,t&&this.min.copy(t),n&&this.max.copy(n),s&&this.matrix.copy(s)}set(t,n,s){this.min.copy(t),this.max.copy(n),this.matrix.copy(s),this.needsUpdate=!0}copy(t){this.min.copy(t.min),this.max.copy(t.max),this.matrix.copy(t.matrix),this.needsUpdate=!0}}I.prototype.update=(function(){return function(){const t=this.matrix,n=this.min,s=this.max,r=this.points;for(let p=0;p<=1;p++)for(let u=0;u<=1;u++)for(let f=0;f<=1;f++){const a=1*p|2*u|4*f,y=r[a];y.x=p?s.x:n.x,y.y=u?s.y:n.y,y.z=f?s.z:n.z,y.applyMatrix4(t)}const l=this.satBounds,i=this.satAxes,c=r[0];for(let p=0;p<3;p++){const u=i[p],f=l[p],a=1<<p,y=r[a];u.subVectors(c,y),f.setFromPoints(u,r)}const o=this.alignedSatBounds;o[0].setFromPointsField(r,"x"),o[1].setFromPointsField(r,"y"),o[2].setFromPointsField(r,"z"),this.invMatrix.copy(this.matrix).invert(),this.needsUpdate=!1}})();I.prototype.intersectsBox=(function(){const e=new Y;return function(n){this.needsUpdate&&this.update();const s=n.min,r=n.max,l=this.satBounds,i=this.satAxes,c=this.alignedSatBounds;if(e.min=s.x,e.max=r.x,c[0].isSeparated(e)||(e.min=s.y,e.max=r.y,c[1].isSeparated(e))||(e.min=s.z,e.max=r.z,c[2].isSeparated(e)))return!1;for(let o=0;o<3;o++){const p=i[o],u=l[o];if(e.setFromBox(p,n),u.isSeparated(e))return!1}return!0}})();I.prototype.intersectsTriangle=(function(){const e=new Z,t=new Array(3),n=new Y,s=new Y,r=new b.Vector3;return function(i){this.needsUpdate&&this.update(),i.isExtendedTriangle?i.needsUpdate&&i.update():(e.copy(i),e.update(),i=e);const c=this.satBounds,o=this.satAxes;t[0]=i.a,t[1]=i.b,t[2]=i.c;for(let a=0;a<3;a++){const y=c[a],g=o[a];if(n.setFromPoints(g,t),y.isSeparated(n))return!1}const p=i.satBounds,u=i.satAxes,f=this.points;for(let a=0;a<3;a++){const y=p[a],g=u[a];if(n.setFromPoints(g,f),y.isSeparated(n))return!1}for(let a=0;a<3;a++){const y=o[a];for(let g=0;g<4;g++){const T=u[g];if(r.crossVectors(y,T),n.setFromPoints(r,t),s.setFromPoints(r,f),n.isSeparated(s))return!1}}return!0}})();I.prototype.closestPointToPoint=(function(){return function(t,n){return this.needsUpdate&&this.update(),n.copy(t).applyMatrix4(this.invMatrix).clamp(this.min,this.max).applyMatrix4(this.matrix),n}})();I.prototype.distanceToPoint=(function(){const e=new b.Vector3;return function(n){return this.closestPointToPoint(n,e),n.distanceTo(e)}})();I.prototype.distanceToBox=(function(){const e=["x","y","z"],t=new Array(12).fill().map(()=>new b.Line3),n=new Array(12).fill().map(()=>new b.Line3),s=new b.Vector3,r=new b.Vector3;return function(i,c=0,o=null,p=null){if(this.needsUpdate&&this.update(),this.intersectsBox(i))return(o||p)&&(i.getCenter(r),this.closestPointToPoint(r,s),i.closestPointToPoint(s,r),o&&o.copy(s),p&&p.copy(r)),0;const u=c*c,f=i.min,a=i.max,y=this.points;let g=1/0;for(let m=0;m<8;m++){const h=y[m];r.copy(h).clamp(f,a);const d=h.distanceToSquared(r);if(d<g&&(g=d,o&&o.copy(h),p&&p.copy(r),d<u))return Math.sqrt(d)}let T=0;for(let m=0;m<3;m++)for(let h=0;h<=1;h++)for(let d=0;d<=1;d++){const x=(m+1)%3,A=(m+2)%3,w=h<<x|d<<A,P=1<<m|h<<x|d<<A,B=y[w],_=y[P];t[T].set(B,_);const V=e[m],L=e[x],S=e[A],C=n[T],U=C.start,F=C.end;U[V]=f[V],U[L]=h?f[L]:a[L],U[S]=d?f[S]:a[L],F[V]=a[V],F[L]=h?f[L]:a[L],F[S]=d?f[S]:a[L],T++}for(let m=0;m<=1;m++)for(let h=0;h<=1;h++)for(let d=0;d<=1;d++){r.x=m?a.x:f.x,r.y=h?a.y:f.y,r.z=d?a.z:f.z,this.closestPointToPoint(r,s);const x=r.distanceToSquared(s);if(x<g&&(g=x,o&&o.copy(s),p&&p.copy(r),x<u))return Math.sqrt(x)}for(let m=0;m<12;m++){const h=t[m];for(let d=0;d<12;d++){const x=n[d];pn(h,x,s,r);const A=s.distanceToSquared(r);if(A<g&&(g=A,o&&o.copy(s),p&&p.copy(r),A<u))return Math.sqrt(A)}}return Math.sqrt(g)}})();class yn{constructor(t){this._getNewPrimitive=t,this._primitives=[]}getPrimitive(){const t=this._primitives;return t.length===0?this._getNewPrimitive():t.pop()}releasePrimitive(t){this._primitives.push(t)}}class fe extends yn{constructor(){super(()=>new Z)}}const X=new fe;class pe{constructor(){this.float32Array=null,this.uint16Array=null,this.uint32Array=null;const t=[];let n=null;this.setBuffer=s=>{n&&t.push(n),n=s,this.float32Array=new Float32Array(s),this.uint16Array=new Uint16Array(s),this.uint32Array=new Uint32Array(s)},this.clearBuffer=()=>{n=null,this.float32Array=null,this.uint16Array=null,this.uint32Array=null,t.length!==0&&this.setBuffer(t.pop())}}}const R=new pe;let G,ut;const st=[],St=new yn(()=>new b.Box3);function ye(e,t,n,s,r,l){G=St.getPrimitive(),ut=St.getPrimitive(),st.push(G,ut),R.setBuffer(e._roots[t]);const i=rn(0,e.geometry,n,s,r,l);R.clearBuffer(),St.releasePrimitive(G),St.releasePrimitive(ut),st.pop(),st.pop();const c=st.length;return c>0&&(ut=st[c-1],G=st[c-2]),i}function rn(e,t,n,s,r=null,l=0,i=0){const{float32Array:c,uint16Array:o,uint32Array:p}=R;let u=e*2;if(N(u,o)){const a=q(e,p),y=$(u,o);return z(e,c,G),s(a,y,!1,i,l+e,G)}else{let V=function(S){const{uint16Array:C,uint32Array:U}=R;let F=S*2;for(;!N(F,C);)S=k(S),F=S*2;return q(S,U)},L=function(S){const{uint16Array:C,uint32Array:U}=R;let F=S*2;for(;!N(F,C);)S=H(S,U),F=S*2;return q(S,U)+$(F,C)};const a=k(e),y=H(e,p);let g=a,T=y,m,h,d,x;if(r&&(d=G,x=ut,z(g,c,d),z(T,c,x),m=r(d),h=r(x),h<m)){g=y,T=a;const S=m;m=h,h=S,d=x}d||(d=G,z(g,c,d));const A=N(g*2,o),w=n(d,A,m,i+1,l+g);let P;if(w===wn){const S=V(g),U=L(g)-S;P=s(S,U,!0,i+1,l+g,d)}else P=w&&rn(g,t,n,s,r,l,i+1);if(P)return!0;x=ut,z(T,c,x);const B=N(T*2,o),_=n(x,B,h,i+1,l+T);let M;if(_===wn){const S=V(T),U=L(T)-S;M=s(S,U,!0,i+1,l+T,x)}else M=_&&rn(T,t,n,s,r,l,i+1);return!!M}}const mt=new b.Vector3,Jt=new b.Vector3;function de(e,t,n={},s=0,r=1/0){const l=s*s,i=r*r;let c=1/0,o=null;if(e.shapecast({boundsTraverseOrder:u=>(mt.copy(t).clamp(u.min,u.max),mt.distanceToSquared(t)),intersectsBounds:(u,f,a)=>a<c&&a<i,intersectsTriangle:(u,f)=>{u.closestPointToPoint(t,mt);const a=t.distanceToSquared(mt);return a<c&&(Jt.copy(mt),c=a,o=f),a<l}}),c===1/0)return null;const p=Math.sqrt(c);return n.point?n.point.copy(Jt):n.point=Jt.clone(),n.distance=p,n.faceIndex=o,n}const he=parseInt(b.REVISION)>=169,tt=new b.Vector3,nt=new b.Vector3,et=new b.Vector3,Vt=new b.Vector2,Lt=new b.Vector2,Ct=new b.Vector2,Pn=new b.Vector3,bn=new b.Vector3,Mn=new b.Vector3,xt=new b.Vector3;function me(e,t,n,s,r,l,i,c){let o;if(l===b.BackSide?o=e.intersectTriangle(s,n,t,!0,r):o=e.intersectTriangle(t,n,s,l!==b.DoubleSide,r),o===null)return null;const p=e.origin.distanceTo(r);return p<i||p>c?null:{distance:p,point:r.clone()}}function xe(e,t,n,s,r,l,i,c,o,p,u){tt.fromBufferAttribute(t,l),nt.fromBufferAttribute(t,i),et.fromBufferAttribute(t,c);const f=me(e,tt,nt,et,xt,o,p,u);if(f){const a=new b.Vector3;b.Triangle.getBarycoord(xt,tt,nt,et,a),s&&(Vt.fromBufferAttribute(s,l),Lt.fromBufferAttribute(s,i),Ct.fromBufferAttribute(s,c),f.uv=b.Triangle.getInterpolation(xt,tt,nt,et,Vt,Lt,Ct,new b.Vector2)),r&&(Vt.fromBufferAttribute(r,l),Lt.fromBufferAttribute(r,i),Ct.fromBufferAttribute(r,c),f.uv1=b.Triangle.getInterpolation(xt,tt,nt,et,Vt,Lt,Ct,new b.Vector2)),n&&(Pn.fromBufferAttribute(n,l),bn.fromBufferAttribute(n,i),Mn.fromBufferAttribute(n,c),f.normal=b.Triangle.getInterpolation(xt,tt,nt,et,Pn,bn,Mn,new b.Vector3),f.normal.dot(e.direction)>0&&f.normal.multiplyScalar(-1));const y={a:l,b:i,c,normal:new b.Vector3,materialIndex:0};b.Triangle.getNormal(tt,nt,et,y.normal),f.face=y,f.faceIndex=l,he&&(f.barycoord=a)}return f}function Ht(e,t,n,s,r,l,i){const c=s*3;let o=c+0,p=c+1,u=c+2;const f=e.index;e.index&&(o=f.getX(o),p=f.getX(p),u=f.getX(u));const{position:a,normal:y,uv:g,uv1:T}=e.attributes,m=xe(n,a,y,g,T,o,p,u,t,l,i);return m?(m.faceIndex=s,r&&r.push(m),m):null}function E(e,t,n,s){const r=e.a,l=e.b,i=e.c;let c=t,o=t+1,p=t+2;n&&(c=n.getX(c),o=n.getX(o),p=n.getX(p)),r.x=s.getX(c),r.y=s.getY(c),r.z=s.getZ(c),l.x=s.getX(o),l.y=s.getY(o),l.z=s.getZ(o),i.x=s.getX(p),i.y=s.getY(p),i.z=s.getZ(p)}function we(e,t,n,s,r,l,i,c){const{geometry:o,_indirectBuffer:p}=e;for(let u=s,f=s+r;u<f;u++)Ht(o,t,n,u,l,i,c)}function Ae(e,t,n,s,r,l,i){const{geometry:c,_indirectBuffer:o}=e;let p=1/0,u=null;for(let f=s,a=s+r;f<a;f++){let y;y=Ht(c,t,n,f,null,l,i),y&&y.distance<p&&(u=y,p=y.distance)}return u}function ge(e,t,n,s,r,l,i){const{geometry:c}=n,{index:o}=c,p=c.attributes.position;for(let u=e,f=t+e;u<f;u++){let a;if(a=u,E(i,a*3,o,p),i.needsUpdate=!0,s(i,a,r,l))return!0}return!1}function Te(e,t=null){t&&Array.isArray(t)&&(t=new Set(t));const n=e.geometry,s=n.index?n.index.array:null,r=n.attributes.position;let l,i,c,o,p=0;const u=e._roots;for(let a=0,y=u.length;a<y;a++)l=u[a],i=new Uint32Array(l),c=new Uint16Array(l),o=new Float32Array(l),f(0,p),p+=l.byteLength;function f(a,y,g=!1){const T=a*2;if(c[T+15]===kt){const h=i[a+6],d=c[T+14];let x=1/0,A=1/0,w=1/0,P=-1/0,B=-1/0,_=-1/0;for(let M=3*h,V=3*(h+d);M<V;M++){let L=s[M];const S=r.getX(L),C=r.getY(L),U=r.getZ(L);S<x&&(x=S),S>P&&(P=S),C<A&&(A=C),C>B&&(B=C),U<w&&(w=U),U>_&&(_=U)}return o[a+0]!==x||o[a+1]!==A||o[a+2]!==w||o[a+3]!==P||o[a+4]!==B||o[a+5]!==_?(o[a+0]=x,o[a+1]=A,o[a+2]=w,o[a+3]=P,o[a+4]=B,o[a+5]=_,!0):!1}else{const h=a+8,d=i[a+6],x=h+y,A=d+y;let w=g,P=!1,B=!1;t?w||(P=t.has(x),B=t.has(A),w=!P&&!B):(P=!0,B=!0);const _=w||P,M=w||B;let V=!1;_&&(V=f(h,y,w));let L=!1;M&&(L=f(d,y,w));const S=V||L;if(S)for(let C=0;C<3;C++){const U=h+C,F=d+C,v=o[U],K=o[U+3],pt=o[F],yt=o[F+3];o[a+C]=v<pt?v:pt,o[a+C+3]=K>yt?K:yt}return S}}}function O(e,t,n,s,r){let l,i,c,o,p,u;const f=1/n.direction.x,a=1/n.direction.y,y=1/n.direction.z,g=n.origin.x,T=n.origin.y,m=n.origin.z;let h=t[e],d=t[e+3],x=t[e+1],A=t[e+3+1],w=t[e+2],P=t[e+3+2];return f>=0?(l=(h-g)*f,i=(d-g)*f):(l=(d-g)*f,i=(h-g)*f),a>=0?(c=(x-T)*a,o=(A-T)*a):(c=(A-T)*a,o=(x-T)*a),l>o||c>i||((c>l||isNaN(l))&&(l=c),(o<i||isNaN(i))&&(i=o),y>=0?(p=(w-m)*y,u=(P-m)*y):(p=(P-m)*y,u=(w-m)*y),l>u||p>i)?!1:((p>l||l!==l)&&(l=p),(u<i||i!==i)&&(i=u),l<=r&&i>=s)}function Be(e,t,n,s,r,l,i,c){const{geometry:o,_indirectBuffer:p}=e;for(let u=s,f=s+r;u<f;u++){let a=p?p[u]:u;Ht(o,t,n,a,l,i,c)}}function Pe(e,t,n,s,r,l,i){const{geometry:c,_indirectBuffer:o}=e;let p=1/0,u=null;for(let f=s,a=s+r;f<a;f++){let y;y=Ht(c,t,n,o?o[f]:f,null,l,i),y&&y.distance<p&&(u=y,p=y.distance)}return u}function be(e,t,n,s,r,l,i){const{geometry:c}=n,{index:o}=c,p=c.attributes.position;for(let u=e,f=t+e;u<f;u++){let a;if(a=n.resolveTriangleIndex(u),E(i,a*3,o,p),i.needsUpdate=!0,s(i,a,r,l))return!0}return!1}function Me(e,t,n,s,r,l,i){R.setBuffer(e._roots[t]),on(0,e,n,s,r,l,i),R.clearBuffer()}function on(e,t,n,s,r,l,i){const{float32Array:c,uint16Array:o,uint32Array:p}=R,u=e*2;if(N(u,o)){const a=q(e,p),y=$(u,o);we(t,n,s,a,y,r,l,i)}else{const a=k(e);O(a,c,s,l,i)&&on(a,t,n,s,r,l,i);const y=H(e,p);O(y,c,s,l,i)&&on(y,t,n,s,r,l,i)}}const _e=["x","y","z"];function Se(e,t,n,s,r,l){R.setBuffer(e._roots[t]);const i=cn(0,e,n,s,r,l);return R.clearBuffer(),i}function cn(e,t,n,s,r,l){const{float32Array:i,uint16Array:c,uint32Array:o}=R;let p=e*2;if(N(p,c)){const f=q(e,o),a=$(p,c);return Ae(t,n,s,f,a,r,l)}else{const f=En(e,o),a=_e[f],g=s.direction[a]>=0;let T,m;g?(T=k(e),m=H(e,o)):(T=H(e,o),m=k(e));const d=O(T,i,s,r,l)?cn(T,t,n,s,r,l):null;if(d){const w=d.point[a];if(g?w<=i[m+f]:w>=i[m+f+3])return d}const A=O(m,i,s,r,l)?cn(m,t,n,s,r,l):null;return d&&A?d.distance<=A.distance?d:A:d||A||null}}const Ut=new b.Box3,it=new Z,rt=new Z,wt=new b.Matrix4,_n=new I,Ft=new I;function Ve(e,t,n,s){R.setBuffer(e._roots[t]);const r=ln(0,e,n,s);return R.clearBuffer(),r}function ln(e,t,n,s,r=null){const{float32Array:l,uint16Array:i,uint32Array:c}=R;let o=e*2;if(r===null&&(n.boundingBox||n.computeBoundingBox(),_n.set(n.boundingBox.min,n.boundingBox.max,s),r=_n),N(o,i)){const u=t.geometry,f=u.index,a=u.attributes.position,y=n.index,g=n.attributes.position,T=q(e,c),m=$(o,i);if(wt.copy(s).invert(),n.boundsTree)return z(e,l,Ft),Ft.matrix.copy(wt),Ft.needsUpdate=!0,n.boundsTree.shapecast({intersectsBounds:d=>Ft.intersectsBox(d),intersectsTriangle:d=>{d.a.applyMatrix4(s),d.b.applyMatrix4(s),d.c.applyMatrix4(s),d.needsUpdate=!0;for(let x=T*3,A=(m+T)*3;x<A;x+=3)if(E(rt,x,f,a),rt.needsUpdate=!0,d.intersectsTriangle(rt))return!0;return!1}});for(let h=T*3,d=(m+T)*3;h<d;h+=3){E(it,h,f,a),it.a.applyMatrix4(wt),it.b.applyMatrix4(wt),it.c.applyMatrix4(wt),it.needsUpdate=!0;for(let x=0,A=y.count;x<A;x+=3)if(E(rt,x,y,g),rt.needsUpdate=!0,it.intersectsTriangle(rt))return!0}}else{const u=e+8,f=c[e+6];return z(u,l,Ut),!!(r.intersectsBox(Ut)&&ln(u,t,n,s,r)||(z(f,l,Ut),r.intersectsBox(Ut)&&ln(f,t,n,s,r)))}}const Rt=new b.Matrix4,Qt=new I,At=new I,Le=new b.Vector3,Ce=new b.Vector3,Ue=new b.Vector3,Fe=new b.Vector3;function Re(e,t,n,s={},r={},l=0,i=1/0){t.boundingBox||t.computeBoundingBox(),Qt.set(t.boundingBox.min,t.boundingBox.max,n),Qt.needsUpdate=!0;const c=e.geometry,o=c.attributes.position,p=c.index,u=t.attributes.position,f=t.index,a=X.getPrimitive(),y=X.getPrimitive();let g=Le,T=Ce,m=null,h=null;r&&(m=Ue,h=Fe);let d=1/0,x=null,A=null;return Rt.copy(n).invert(),At.matrix.copy(Rt),e.shapecast({boundsTraverseOrder:w=>Qt.distanceToBox(w),intersectsBounds:(w,P,B)=>B<d&&B<i?(P&&(At.min.copy(w.min),At.max.copy(w.max),At.needsUpdate=!0),!0):!1,intersectsRange:(w,P)=>{if(t.boundsTree)return t.boundsTree.shapecast({boundsTraverseOrder:_=>At.distanceToBox(_),intersectsBounds:(_,M,V)=>V<d&&V<i,intersectsRange:(_,M)=>{for(let V=_,L=_+M;V<L;V++){E(y,3*V,f,u),y.a.applyMatrix4(n),y.b.applyMatrix4(n),y.c.applyMatrix4(n),y.needsUpdate=!0;for(let S=w,C=w+P;S<C;S++){E(a,3*S,p,o),a.needsUpdate=!0;const U=a.distanceToTriangle(y,g,m);if(U<d&&(T.copy(g),h&&h.copy(m),d=U,x=S,A=V),U<l)return!0}}}});{const B=ft(t);for(let _=0,M=B;_<M;_++){E(y,3*_,f,u),y.a.applyMatrix4(n),y.b.applyMatrix4(n),y.c.applyMatrix4(n),y.needsUpdate=!0;for(let V=w,L=w+P;V<L;V++){E(a,3*V,p,o),a.needsUpdate=!0;const S=a.distanceToTriangle(y,g,m);if(S<d&&(T.copy(g),h&&h.copy(m),d=S,x=V,A=_),S<l)return!0}}}}}),X.releasePrimitive(a),X.releasePrimitive(y),d===1/0?null:(s.point?s.point.copy(T):s.point=T.clone(),s.distance=d,s.faceIndex=x,r&&(r.point?r.point.copy(h):r.point=h.clone(),r.point.applyMatrix4(Rt),T.applyMatrix4(Rt),r.distance=T.sub(r.point).length(),r.faceIndex=A),s)}function ze(e,t=null){t&&Array.isArray(t)&&(t=new Set(t));const n=e.geometry,s=n.index?n.index.array:null,r=n.attributes.position;let l,i,c,o,p=0;const u=e._roots;for(let a=0,y=u.length;a<y;a++)l=u[a],i=new Uint32Array(l),c=new Uint16Array(l),o=new Float32Array(l),f(0,p),p+=l.byteLength;function f(a,y,g=!1){const T=a*2;if(c[T+15]===kt){const h=i[a+6],d=c[T+14];let x=1/0,A=1/0,w=1/0,P=-1/0,B=-1/0,_=-1/0;for(let M=h,V=h+d;M<V;M++){const L=3*e.resolveTriangleIndex(M);for(let S=0;S<3;S++){let C=L+S;C=s?s[C]:C;const U=r.getX(C),F=r.getY(C),v=r.getZ(C);U<x&&(x=U),U>P&&(P=U),F<A&&(A=F),F>B&&(B=F),v<w&&(w=v),v>_&&(_=v)}}return o[a+0]!==x||o[a+1]!==A||o[a+2]!==w||o[a+3]!==P||o[a+4]!==B||o[a+5]!==_?(o[a+0]=x,o[a+1]=A,o[a+2]=w,o[a+3]=P,o[a+4]=B,o[a+5]=_,!0):!1}else{const h=a+8,d=i[a+6],x=h+y,A=d+y;let w=g,P=!1,B=!1;t?w||(P=t.has(x),B=t.has(A),w=!P&&!B):(P=!0,B=!0);const _=w||P,M=w||B;let V=!1;_&&(V=f(h,y,w));let L=!1;M&&(L=f(d,y,w));const S=V||L;if(S)for(let C=0;C<3;C++){const U=h+C,F=d+C,v=o[U],K=o[U+3],pt=o[F],yt=o[F+3];o[a+C]=v<pt?v:pt,o[a+C+3]=K>yt?K:yt}return S}}}function ve(e,t,n,s,r,l,i){R.setBuffer(e._roots[t]),an(0,e,n,s,r,l,i),R.clearBuffer()}function an(e,t,n,s,r,l,i){const{float32Array:c,uint16Array:o,uint32Array:p}=R,u=e*2;if(N(u,o)){const a=q(e,p),y=$(u,o);Be(t,n,s,a,y,r,l,i)}else{const a=k(e);O(a,c,s,l,i)&&an(a,t,n,s,r,l,i);const y=H(e,p);O(y,c,s,l,i)&&an(y,t,n,s,r,l,i)}}const Ee=["x","y","z"];function De(e,t,n,s,r,l){R.setBuffer(e._roots[t]);const i=un(0,e,n,s,r,l);return R.clearBuffer(),i}function un(e,t,n,s,r,l){const{float32Array:i,uint16Array:c,uint32Array:o}=R;let p=e*2;if(N(p,c)){const f=q(e,o),a=$(p,c);return Pe(t,n,s,f,a,r,l)}else{const f=En(e,o),a=Ee[f],g=s.direction[a]>=0;let T,m;g?(T=k(e),m=H(e,o)):(T=H(e,o),m=k(e));const d=O(T,i,s,r,l)?un(T,t,n,s,r,l):null;if(d){const w=d.point[a];if(g?w<=i[m+f]:w>=i[m+f+3])return d}const A=O(m,i,s,r,l)?un(m,t,n,s,r,l):null;return d&&A?d.distance<=A.distance?d:A:d||A||null}}const zt=new b.Box3,ot=new Z,ct=new Z,gt=new b.Matrix4,Sn=new I,vt=new I;function Ie(e,t,n,s){R.setBuffer(e._roots[t]);const r=fn(0,e,n,s);return R.clearBuffer(),r}function fn(e,t,n,s,r=null){const{float32Array:l,uint16Array:i,uint32Array:c}=R;let o=e*2;if(r===null&&(n.boundingBox||n.computeBoundingBox(),Sn.set(n.boundingBox.min,n.boundingBox.max,s),r=Sn),N(o,i)){const u=t.geometry,f=u.index,a=u.attributes.position,y=n.index,g=n.attributes.position,T=q(e,c),m=$(o,i);if(gt.copy(s).invert(),n.boundsTree)return z(e,l,vt),vt.matrix.copy(gt),vt.needsUpdate=!0,n.boundsTree.shapecast({intersectsBounds:d=>vt.intersectsBox(d),intersectsTriangle:d=>{d.a.applyMatrix4(s),d.b.applyMatrix4(s),d.c.applyMatrix4(s),d.needsUpdate=!0;for(let x=T,A=m+T;x<A;x++)if(E(ct,3*t.resolveTriangleIndex(x),f,a),ct.needsUpdate=!0,d.intersectsTriangle(ct))return!0;return!1}});for(let h=T,d=m+T;h<d;h++){const x=t.resolveTriangleIndex(h);E(ot,3*x,f,a),ot.a.applyMatrix4(gt),ot.b.applyMatrix4(gt),ot.c.applyMatrix4(gt),ot.needsUpdate=!0;for(let A=0,w=y.count;A<w;A+=3)if(E(ct,A,y,g),ct.needsUpdate=!0,ot.intersectsTriangle(ct))return!0}}else{const u=e+8,f=c[e+6];return z(u,l,zt),!!(r.intersectsBox(zt)&&fn(u,t,n,s,r)||(z(f,l,zt),r.intersectsBox(zt)&&fn(f,t,n,s,r)))}}const Et=new b.Matrix4,Gt=new I,Tt=new I,Ne=new b.Vector3,qe=new b.Vector3,$e=new b.Vector3,ke=new b.Vector3;function He(e,t,n,s={},r={},l=0,i=1/0){t.boundingBox||t.computeBoundingBox(),Gt.set(t.boundingBox.min,t.boundingBox.max,n),Gt.needsUpdate=!0;const c=e.geometry,o=c.attributes.position,p=c.index,u=t.attributes.position,f=t.index,a=X.getPrimitive(),y=X.getPrimitive();let g=Ne,T=qe,m=null,h=null;r&&(m=$e,h=ke);let d=1/0,x=null,A=null;return Et.copy(n).invert(),Tt.matrix.copy(Et),e.shapecast({boundsTraverseOrder:w=>Gt.distanceToBox(w),intersectsBounds:(w,P,B)=>B<d&&B<i?(P&&(Tt.min.copy(w.min),Tt.max.copy(w.max),Tt.needsUpdate=!0),!0):!1,intersectsRange:(w,P)=>{if(t.boundsTree){const B=t.boundsTree;return B.shapecast({boundsTraverseOrder:_=>Tt.distanceToBox(_),intersectsBounds:(_,M,V)=>V<d&&V<i,intersectsRange:(_,M)=>{for(let V=_,L=_+M;V<L;V++){const S=B.resolveTriangleIndex(V);E(y,3*S,f,u),y.a.applyMatrix4(n),y.b.applyMatrix4(n),y.c.applyMatrix4(n),y.needsUpdate=!0;for(let C=w,U=w+P;C<U;C++){const F=e.resolveTriangleIndex(C);E(a,3*F,p,o),a.needsUpdate=!0;const v=a.distanceToTriangle(y,g,m);if(v<d&&(T.copy(g),h&&h.copy(m),d=v,x=C,A=V),v<l)return!0}}}})}else{const B=ft(t);for(let _=0,M=B;_<M;_++){E(y,3*_,f,u),y.a.applyMatrix4(n),y.b.applyMatrix4(n),y.c.applyMatrix4(n),y.needsUpdate=!0;for(let V=w,L=w+P;V<L;V++){const S=e.resolveTriangleIndex(V);E(a,3*S,p,o),a.needsUpdate=!0;const C=a.distanceToTriangle(y,g,m);if(C<d&&(T.copy(g),h&&h.copy(m),d=C,x=V,A=_),C<l)return!0}}}}}),X.releasePrimitive(a),X.releasePrimitive(y),d===1/0?null:(s.point?s.point.copy(T):s.point=T.clone(),s.distance=d,s.faceIndex=x,r&&(r.point?r.point.copy(h):r.point=h.clone(),r.point.applyMatrix4(Et),T.applyMatrix4(Et),r.distance=T.sub(r.point).length(),r.faceIndex=A),s)}function Xe(){return typeof SharedArrayBuffer!="undefined"}const bt=new R.constructor,$t=new R.constructor,Q=new yn(()=>new b.Box3),lt=new b.Box3,at=new b.Box3,Ot=new b.Box3,tn=new b.Box3;let nn=!1;function je(e,t,n,s){if(nn)throw new Error("MeshBVH: Recursive calls to bvhcast not supported.");nn=!0;const r=e._roots,l=t._roots;let i,c=0,o=0;const p=new b.Matrix4().copy(n).invert();for(let u=0,f=r.length;u<f;u++){bt.setBuffer(r[u]),o=0;const a=Q.getPrimitive();z(0,bt.float32Array,a),a.applyMatrix4(p);for(let y=0,g=l.length;y<g&&($t.setBuffer(l[y]),i=j(0,0,n,p,s,c,o,0,0,a),$t.clearBuffer(),o+=l[y].length,!i);y++);if(Q.releasePrimitive(a),bt.clearBuffer(),c+=r[u].length,i)break}return nn=!1,i}function j(e,t,n,s,r,l=0,i=0,c=0,o=0,p=null,u=!1){let f,a;u?(f=$t,a=bt):(f=bt,a=$t);const y=f.float32Array,g=f.uint32Array,T=f.uint16Array,m=a.float32Array,h=a.uint32Array,d=a.uint16Array,x=e*2,A=t*2,w=N(x,T),P=N(A,d);let B=!1;if(P&&w)u?B=r(q(t,h),$(t*2,d),q(e,g),$(e*2,T),o,i+t,c,l+e):B=r(q(e,g),$(e*2,T),q(t,h),$(t*2,d),c,l+e,o,i+t);else if(P){const _=Q.getPrimitive();z(t,m,_),_.applyMatrix4(n);const M=k(e),V=H(e,g);z(M,y,lt),z(V,y,at);const L=_.intersectsBox(lt),S=_.intersectsBox(at);B=L&&j(t,M,s,n,r,i,l,o,c+1,_,!u)||S&&j(t,V,s,n,r,i,l,o,c+1,_,!u),Q.releasePrimitive(_)}else{const _=k(t),M=H(t,h);z(_,m,Ot),z(M,m,tn);const V=p.intersectsBox(Ot),L=p.intersectsBox(tn);if(V&&L)B=j(e,_,n,s,r,l,i,c,o+1,p,u)||j(e,M,n,s,r,l,i,c,o+1,p,u);else if(V)if(w)B=j(e,_,n,s,r,l,i,c,o+1,p,u);else{const S=Q.getPrimitive();S.copy(Ot).applyMatrix4(n);const C=k(e),U=H(e,g);z(C,y,lt),z(U,y,at);const F=S.intersectsBox(lt),v=S.intersectsBox(at);B=F&&j(_,C,s,n,r,i,l,o,c+1,S,!u)||v&&j(_,U,s,n,r,i,l,o,c+1,S,!u),Q.releasePrimitive(S)}else if(L)if(w)B=j(e,M,n,s,r,l,i,c,o+1,p,u);else{const S=Q.getPrimitive();S.copy(tn).applyMatrix4(n);const C=k(e),U=H(e,g);z(C,y,lt),z(U,y,at);const F=S.intersectsBox(lt),v=S.intersectsBox(at);B=F&&j(M,C,s,n,r,i,l,o,c+1,S,!u)||v&&j(M,U,s,n,r,i,l,o,c+1,S,!u),Q.releasePrimitive(S)}}return B}const Dt=new I,Vn=new b.Box3,Ze={strategy:Rn,maxDepth:40,maxLeafTris:10,useSharedArrayBuffer:!1,setBoundingBox:!0,onProgress:null,indirect:!1,verbose:!0,range:null};class dn{static serialize(t,n={}){n=dt({cloneBuffers:!0},n);const s=t.geometry,r=t._roots,l=t._indirectBuffer,i=s.getIndex();let c;return n.cloneBuffers?c={roots:r.map(o=>o.slice()),index:i?i.array.slice():null,indirectBuffer:l?l.slice():null}:c={roots:r,index:i?i.array:null,indirectBuffer:l},c}static deserialize(t,n,s={}){s=dt({setIndex:!0,indirect:!!t.indirectBuffer},s);const{index:r,roots:l,indirectBuffer:i}=t,c=new dn(n,Xt(dt({},s),{[Zt]:!0}));if(c._roots=l,c._indirectBuffer=i||null,s.setIndex){const o=n.getIndex();if(o===null){const p=new b.BufferAttribute(t.index,1,!1);n.setIndex(p)}else o.array!==r&&(o.array.set(r),o.needsUpdate=!0)}return c}get indirect(){return!!this._indirectBuffer}constructor(t,n={}){if(t.isBufferGeometry){if(t.index&&t.index.isInterleavedBufferAttribute)throw new Error("MeshBVH: InterleavedBufferAttribute is not supported for the index attribute.")}else throw new Error("MeshBVH: Only BufferGeometries are supported.");if(n=Object.assign(Xt(dt({},Ze),{[Zt]:!1}),n),n.useSharedArrayBuffer&&!Xe())throw new Error("MeshBVH: SharedArrayBuffer is not available.");this.geometry=t,this._roots=null,this._indirectBuffer=null,n[Zt]||(ce(this,n),!t.boundingBox&&n.setBoundingBox&&(t.boundingBox=this.getBoundingBox(new b.Box3))),this.resolveTriangleIndex=n.indirect?s=>this._indirectBuffer[s]:s=>s}refit(t=null){return(this.indirect?ze:Te)(this,t)}traverse(t,n=0){const s=this._roots[n],r=new Uint32Array(s),l=new Uint16Array(s);i(0);function i(c,o=0){const p=c*2,u=l[p+15]===kt;if(u){const f=r[c+6],a=l[p+14];t(o,u,new Float32Array(s,c*4,6),f,a)}else{const f=c+Pt/4,a=r[c+6],y=r[c+7];t(o,u,new Float32Array(s,c*4,6),y)||(i(f,o+1),i(a,o+1))}}}raycast(t,n=b.FrontSide,s=0,r=1/0){const l=this._roots,i=this.geometry,c=[],o=n.isMaterial,p=Array.isArray(n),u=i.groups,f=o?n.side:n,a=this.indirect?ve:Me;for(let y=0,g=l.length;y<g;y++){const T=p?n[u[y].materialIndex].side:f,m=c.length;if(a(this,y,T,t,c,s,r),p){const h=u[y].materialIndex;for(let d=m,x=c.length;d<x;d++)c[d].face.materialIndex=h}}return c}raycastFirst(t,n=b.FrontSide,s=0,r=1/0){const l=this._roots,i=this.geometry,c=n.isMaterial,o=Array.isArray(n);let p=null;const u=i.groups,f=c?n.side:n,a=this.indirect?De:Se;for(let y=0,g=l.length;y<g;y++){const T=o?n[u[y].materialIndex].side:f,m=a(this,y,T,t,s,r);m!=null&&(p==null||m.distance<p.distance)&&(p=m,o&&(m.face.materialIndex=u[y].materialIndex))}return p}intersectsGeometry(t,n){let s=!1;const r=this._roots,l=this.indirect?Ie:Ve;for(let i=0,c=r.length;i<c&&(s=l(this,i,t,n),!s);i++);return s}shapecast(t){const n=X.getPrimitive(),s=this.indirect?be:ge;let{boundsTraverseOrder:r,intersectsBounds:l,intersectsRange:i,intersectsTriangle:c}=t;if(i&&c){const f=i;i=(a,y,g,T,m)=>f(a,y,g,T,m)?!0:s(a,y,this,c,g,T,n)}else i||(c?i=(f,a,y,g)=>s(f,a,this,c,y,g,n):i=(f,a,y)=>y);let o=!1,p=0;const u=this._roots;for(let f=0,a=u.length;f<a;f++){const y=u[f];if(o=ye(this,f,l,i,r,p),o)break;p+=y.byteLength}return X.releasePrimitive(n),o}bvhcast(t,n,s){let{intersectsRanges:r,intersectsTriangles:l}=s;const i=X.getPrimitive(),c=this.geometry.index,o=this.geometry.attributes.position,p=this.indirect?g=>{const T=this.resolveTriangleIndex(g);E(i,T*3,c,o)}:g=>{E(i,g*3,c,o)},u=X.getPrimitive(),f=t.geometry.index,a=t.geometry.attributes.position,y=t.indirect?g=>{const T=t.resolveTriangleIndex(g);E(u,T*3,f,a)}:g=>{E(u,g*3,f,a)};if(l){const g=(T,m,h,d,x,A,w,P)=>{for(let B=h,_=h+d;B<_;B++){y(B),u.a.applyMatrix4(n),u.b.applyMatrix4(n),u.c.applyMatrix4(n),u.needsUpdate=!0;for(let M=T,V=T+m;M<V;M++)if(p(M),i.needsUpdate=!0,l(i,u,M,B,x,A,w,P))return!0}return!1};if(r){const T=r;r=function(m,h,d,x,A,w,P,B){return T(m,h,d,x,A,w,P,B)?!0:g(m,h,d,x,A,w,P,B)}}else r=g}return je(this,t,n,r)}intersectsBox(t,n){return Dt.set(t.min,t.max,n),Dt.needsUpdate=!0,this.shapecast({intersectsBounds:s=>Dt.intersectsBox(s),intersectsTriangle:s=>Dt.intersectsTriangle(s)})}intersectsSphere(t){return this.shapecast({intersectsBounds:n=>t.intersectsBox(n),intersectsTriangle:n=>n.intersectsSphere(t)})}closestPointToGeometry(t,n,s={},r={},l=0,i=1/0){return(this.indirect?He:Re)(this,t,n,s,r,l,i)}closestPointToPoint(t,n={},s=0,r=1/0){return de(this,t,n,s,r)}getBoundingBox(t){return t.makeEmpty(),this._roots.forEach(s=>{z(0,new Float32Array(s),Vn),t.union(Vn)}),t}}function Ln(e,t,n){return e===null?null:(e.point.applyMatrix4(t.matrixWorld),e.distance=e.point.distanceTo(n.ray.origin),e.object=t,e)}const It=new b.Ray,Cn=new b.Vector3,Un=new b.Matrix4,We=b.Mesh.prototype.raycast,Ye=b.BatchedMesh.prototype.raycast,Fn=new b.Vector3,D=new b.Mesh,Nt=[];function Ke(e,t){this.isBatchedMesh?Je.call(this,e,t):Qe.call(this,e,t)}function Je(e,t){if(this.boundsTrees){const n=this.boundsTrees,s=this._drawInfo||this._instanceInfo,r=this._drawRanges||this._geometryInfo,l=this.matrixWorld;D.material=this.material,D.geometry=this.geometry;const i=D.geometry.boundsTree,c=D.geometry.drawRange;D.geometry.boundingSphere===null&&(D.geometry.boundingSphere=new b.Sphere);for(let o=0,p=s.length;o<p;o++){if(!this.getVisibleAt(o))continue;const u=s[o].geometryIndex;if(D.geometry.boundsTree=n[u],this.getMatrixAt(o,D.matrixWorld).premultiply(l),!D.geometry.boundsTree){this.getBoundingBoxAt(u,D.geometry.boundingBox),this.getBoundingSphereAt(u,D.geometry.boundingSphere);const f=r[u];D.geometry.setDrawRange(f.start,f.count)}D.raycast(e,Nt);for(let f=0,a=Nt.length;f<a;f++){const y=Nt[f];y.object=this,y.batchId=o,t.push(y)}Nt.length=0}D.geometry.boundsTree=i,D.geometry.drawRange=c,D.material=null,D.geometry=null}else Ye.call(this,e,t)}function Qe(e,t){if(this.geometry.boundsTree){if(this.material===void 0)return;Un.copy(this.matrixWorld).invert(),It.copy(e.ray).applyMatrix4(Un),Fn.setFromMatrixScale(this.matrixWorld),Cn.copy(It.direction).multiply(Fn);const n=Cn.length(),s=e.near/n,r=e.far/n,l=this.geometry.boundsTree;if(e.firstHitOnly===!0){const i=Ln(l.raycastFirst(It,this.material,s,r),this,e);i&&t.push(i)}else{const i=l.raycast(It,this.material,s,r);for(let c=0,o=i.length;c<o;c++){const p=Ln(i[c],this,e);p&&t.push(p)}}}else We.call(this,e,t)}exports.MeshBVH=dn;exports.acceleratedRaycast=Ke;