mixdashboards 1.1.20 → 1.1.21

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 (357) hide show
  1. package/dist/{AgActionsRenderer-Bnjx7r_5.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
  2. package/dist/{AgActionsRenderer-BRWd_uZc.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
  3. package/dist/{AgGridTable-B_Enycf5.js → AgGridTable-BQ8M3fDj.js} +1 -1
  4. package/dist/{AgGridTable-DLcjjtST.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
  5. package/dist/{BaseComponent-Yu_LvlWs.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
  6. package/dist/{BaseComponent-DgAX0AyD.js → BaseComponent-Dn65PXTp.js} +3 -3
  7. package/dist/{EChartComponentBase-D4DSf0jl.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
  8. package/dist/{EChartComponentBase-BXFQtucH.js → EChartComponentBase-skupRYzl.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-Uokoto8d.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
  10. package/dist/{EmergencyPlanPanel-Bvr21RAA.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
  11. package/dist/{HistoryPlanDialog-CwzSy9Yg.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
  12. package/dist/{HistoryPlanDialog-cNO78R3Z.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
  13. package/dist/{MixiotAppDetailPage-Cn6MrctA.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-CDFMUpgE.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
  15. package/dist/{MonitoringMap-Bx-WZ55u.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
  16. package/dist/{MonitoringMap-B57466ub.js → MonitoringMap-Gxy8ldt1.js} +2 -2
  17. package/dist/{UniverSheet-udaaWiwX.js → UniverSheet-DGNOHAEJ.js} +2 -2
  18. package/dist/{UniverSheet-D_2B9y0P.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
  19. package/dist/{accelerationChart-CoF7xVle.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
  20. package/dist/{accelerationChart-CpneHEfN.js → accelerationChart-C4JTCc65.js} +2 -2
  21. package/dist/{actionItem-BL4Aq8xP.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
  22. package/dist/{actionItem-M1Ggj39E.js → actionItem-CGOgCPJR.js} +2 -2
  23. package/dist/{alarmLevelChart-B1AsPSH7.js → alarmLevelChart-BQF-4a0s.js} +2 -2
  24. package/dist/{alarmLevelChart-5C3c0X4W.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
  25. package/dist/{alertTable-B9xmoXmb.cjs → alertTable-D3riLPwz.cjs} +1 -1
  26. package/dist/{alertTable-C_N15Q6Y.js → alertTable-DgiRdm5f.js} +2 -2
  27. package/dist/{aliasObjectSelectorDemo-BrKuxy8M.js → aliasObjectSelectorDemo-C7gQUdGu.js} +1 -1
  28. package/dist/{aliasObjectSelectorDemo-D-fDz7Wg.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
  29. package/dist/{annualRainfallChart-DNiiap-k.js → annualRainfallChart-C1yG42iq.js} +2 -2
  30. package/dist/{annualRainfallChart-BNfhWc2L.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
  31. package/dist/{aqi-BZX7c9k1.cjs → aqi-B3g_go92.cjs} +1 -1
  32. package/dist/{aqi-BcMm8inv.js → aqi-DLqM9gGc.js} +2 -2
  33. package/dist/{aqiIndass-CV6Ke7AN.js → aqiIndass-DDtB5_wf.js} +2 -2
  34. package/dist/{aqiIndass-BRLTBHqq.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
  35. package/dist/{areaDeformCurve-D3BDgwXr.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
  36. package/dist/{areaDeformCurve-CnVYncv7.js → areaDeformCurve-DaLtFoJT.js} +2 -2
  37. package/dist/{arrayCard-ZHMUXIEB.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
  38. package/dist/{arrayCard-LDTG_N9H.js → arrayCard-FYb8TmUw.js} +2 -2
  39. package/dist/{audio-BzR-qYkP.js → audio-BBXpJP54.js} +2 -2
  40. package/dist/{audio-CMMleosA.cjs → audio-DGxXcB0a.cjs} +1 -1
  41. package/dist/{bar-CVqAgZWi.js → bar-D26zndUl.js} +2 -2
  42. package/dist/{bar-DGPpw_v5.cjs → bar-btY9Pwkk.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-eeHT0X70.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-DxlQ8_7z.js → basicShapeToolbox-Y6mXTA8o.js} +2 -2
  45. package/dist/{bmp-DeQAJt0Q.js → bmp-C7tYeLi0.js} +2 -2
  46. package/dist/{bmp-BrGY0Oio.cjs → bmp-DlSoc3Rw.cjs} +1 -1
  47. package/dist/{box-DoAI2aH1.js → box-DroQaZjH.js} +2 -2
  48. package/dist/{box-nnH9wkmX.cjs → box-DyIX9weX.cjs} +1 -1
  49. package/dist/{chartConfigPanel-BnFHLRcU.js → chartConfigPanel-D4dbsVKj.js} +1 -1
  50. package/dist/{chartConfigPanel-CGHSBcfE.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
  51. package/dist/{circleBar-ithnj58t.js → circleBar-DCnx8wNj.js} +2 -2
  52. package/dist/{circleBar-H_i9p7nU.cjs → circleBar-DulXgWd8.cjs} +1 -1
  53. package/dist/{clock-CRx-mxeQ.js → clock-B1X6vX22.js} +2 -2
  54. package/dist/{clock-BUqmOGY2.cjs → clock-CeM6LdAl.cjs} +1 -1
  55. package/dist/{clt-heq-rWZ_.cjs → clt-CcpO8rrD.cjs} +1 -1
  56. package/dist/{clt-BnBTzmyM.js → clt-IAzRVgiu.js} +2 -2
  57. package/dist/{cmc-Ck7TDAPb.cjs → cmc-B4xRwSti.cjs} +1 -1
  58. package/dist/{cmc-Dv1TIhJh.js → cmc-Swd4NfxE.js} +2 -2
  59. package/dist/{cmp-BY6I5rxe.js → cmp--gCtei5x.js} +2 -2
  60. package/dist/{cmp-CEoUqjTE.cjs → cmp-B9Aip3T2.cjs} +1 -1
  61. package/dist/{conclusionCard-ZEh7CxXp.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
  62. package/dist/{conclusionCard-D4bl8TNR.js → conclusionCard-DQ0HTHsg.js} +2 -2
  63. package/dist/{controlList-BnkhIoMW.js → controlList-4TidO_XJ.js} +4 -4
  64. package/dist/{controlList-D_VM94S4.cjs → controlList-CwLNEkAi.cjs} +1 -1
  65. package/dist/{controlRecordList-DBD0mCd_.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
  66. package/dist/{controlRecordList-DUfM6Cu9.js → controlRecordList-dPW6e4FN.js} +3 -3
  67. package/dist/{controlRecordListAPP-mKW7AvzT.js → controlRecordListAPP-CObVdW3l.js} +2 -2
  68. package/dist/{controlRecordListAPP-DFmDHu_n.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
  69. package/dist/{crd-yCOo05Gg.cjs → crd-AH_sGivo.cjs} +1 -1
  70. package/dist/{crd-Du78OULd.js → crd-CEWC005o.js} +2 -2
  71. package/dist/{ctrBtn-DsQtZnCc.js → ctrBtn-8xev-mny.js} +3 -3
  72. package/dist/{ctrBtn-C9ufxELU.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
  73. package/dist/{ctrSet-B38EdzmT.js → ctrSet-3Q4eJSfK.js} +3 -3
  74. package/dist/{ctrSet-DqEmMkZc.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
  75. package/dist/{ctrSwitch-BsLv1Jbh.js → ctrSwitch-BhqYXTMZ.js} +3 -3
  76. package/dist/{ctrSwitch-CBNGCgwY.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
  77. package/dist/{dataManagement-BSBRIULo.js → dataManagement-BiPhJbF1.js} +2 -2
  78. package/dist/{dataManagement-CLHvBLxd.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
  79. package/dist/{dataReport-B0jkrbRa.js → dataReport-CQaL-d_q.js} +2 -2
  80. package/dist/{dataReport-UCngV2Kr.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
  81. package/dist/{dataTable-DK9a-V2m.js → dataTable-Bbx5XgV-.js} +1 -1
  82. package/dist/{dataTable-C1uOjGRw.cjs → dataTable-D6-325qb.cjs} +1 -1
  83. package/dist/{datetime-c98_UcMo.js → datetime-CmXZdgkW.js} +2 -2
  84. package/dist/{datetime-_Pqurq2Y.cjs → datetime-DBrUO7wD.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-Caaz-E6R.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-ERMDJnAc.js → deepClusterSlipSurface-D7o7mgg7.js} +2 -2
  87. package/dist/{deepDataMatrix-Dnowf9xF.js → deepDataMatrix-D9GCg496.js} +2 -2
  88. package/dist/{deepDataMatrix-tmCdhdZ6.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
  89. package/dist/{deepDisplacement3D-DBk9_Oje.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-DbHuZGY8.js → deepDisplacement3D-Cjx11pre.js} +2 -2
  91. package/dist/{deepDisplacementChart-cKpaqP68.js → deepDisplacementChart-BHe83IoB.js} +3 -3
  92. package/dist/{deepDisplacementChart-DU7AUz3S.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-IIRMg2Oh.js → deepDisplacementChart-HuWab3pz.js} +2 -2
  94. package/dist/{deepDisplacementChart-DFcqegm5.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
  95. package/dist/{deepDisplacementView-CdPTYeb5.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
  96. package/dist/{deepDisplacementView-8PFopgFH.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
  97. package/dist/{deepNodeTemperatureChart-CpUU2RjZ.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-CTeKLsTH.js → deepNodeTemperatureChart-D9maVN-M.js} +2 -2
  99. package/dist/{deepTangentAngleChart-BO0OcTc9.js → deepTangentAngleChart-DIWKa8r3.js} +2 -2
  100. package/dist/{deepTangentAngleChart-BHH6xjlr.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
  101. package/dist/{deepTemperatureField-CoYl0cDp.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
  102. package/dist/{deepTemperatureField-BWRMA9eH.js → deepTemperatureField-DlLLcuFb.js} +3 -3
  103. package/dist/{deepTrendChart-Ch5mIwWw.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
  104. package/dist/{deepTrendChart-8pnnTpw9.js → deepTrendChart-CdX41nqe.js} +2 -2
  105. package/dist/{deviceOnlineStatus-DXcQQFgs.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-CcjQRhyI.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
  107. package/dist/{deviceStatus-CbKfdSIW.js → deviceStatus-B8Ijgoyf.js} +2 -2
  108. package/dist/{deviceStatus-BrMU6D9H.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
  109. package/dist/{displacementDataTable-DCJhpBbw.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
  110. package/dist/{displacementDataTable-BB10v691.js → displacementDataTable-Cqi5Ql6a.js} +2 -2
  111. package/dist/{displacementTrajectoryChart-19Ca6tA-.js → displacementTrajectoryChart-D1UPR4dt.js} +2 -2
  112. package/dist/{displacementTrajectoryChart-BcFy_N-8.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
  113. package/dist/{displacementTrendChart-CUtOfe05.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
  114. package/dist/{displacementTrendChart-CPgo0GtO.js → displacementTrendChart-Dii90QjN.js} +2 -2
  115. package/dist/{dxf-8i3n6nhJ.js → dxf-DAAwQlgQ.js} +2 -2
  116. package/dist/{dxf-D8ka1DKj.cjs → dxf-DsJIwOOJ.cjs} +1 -1
  117. package/dist/{dzc-jKjY0gN-.js → dzc-BjOYTnIF.js} +2 -2
  118. package/dist/{dzc-CYL3DJ2s.cjs → dzc-CpML7WAZ.cjs} +1 -1
  119. package/dist/{emergencyPlan-DI05Vj5v.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
  120. package/dist/{emergencyPlan-Caz2FDXJ.js → emergencyPlan-DeL1roPL.js} +3 -3
  121. package/dist/{evn-Ds70OLmn.js → evn-CUajXlYc.js} +2 -2
  122. package/dist/{evn-Cx67wqIO.cjs → evn-D0ROeiQD.cjs} +1 -1
  123. package/dist/{evolutionChart-BZntyPEP.js → evolutionChart-B-2W9qVE.js} +3 -3
  124. package/dist/{evolutionChart-Bqo-IFG8.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
  125. package/dist/{fileViewer-BpGHEtQn.js → fileViewer-D6-jyRWy.js} +2 -2
  126. package/dist/{fileViewer-BSWkn1Su.cjs → fileViewer-DHDmo6px.cjs} +1 -1
  127. package/dist/{filterBar-BBTOB6lu.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
  128. package/dist/{filterBar-Dp71ZLZU.js → filterBar-Cw-wbtF1.js} +2 -2
  129. package/dist/{fireCombustionCurve-BagawR29.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
  130. package/dist/{fireCombustionCurve-BmH9YE1S.js → fireCombustionCurve-wPPE55j_.js} +3 -3
  131. package/dist/{fireFilterBar-d-iyDuHX.js → fireFilterBar-COgdZt2b.js} +2 -2
  132. package/dist/{fireFilterBar-BZv8fLKz.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
  133. package/dist/{fireHistoryTable-D_UrD4za.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
  134. package/dist/{fireHistoryTable-CZJePGIU.js → fireHistoryTable-Em_cwZSy.js} +2 -2
  135. package/dist/{gag-CWFrvwcH.cjs → gag-C5gOltT8.cjs} +1 -1
  136. package/dist/{gag-rfKUWGcg.js → gag-Dd-osrR9.js} +2 -2
  137. package/dist/{gasStationList-BfG4EXe_.cjs → gasStationList-CKe02Teb.cjs} +1 -1
  138. package/dist/{gasStationList-Clhadnk8.js → gasStationList-CepcJ9BG.js} +3 -3
  139. package/dist/{geo3dViewer-DsxkExJE.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
  140. package/dist/{geo3dViewer-BiJsCBWP.js → geo3dViewer-yHqVv2BH.js} +3 -3
  141. package/dist/{glbModel-BvFmkpsx.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
  142. package/dist/{glbModel-q43s67BL.js → glbModel-DFDIJi5z.js} +2 -2
  143. package/dist/{globalObjectSelector-C0BrDEW7.js → globalObjectSelector-BoBf_njv.js} +1 -1
  144. package/dist/{globalObjectSelector-WvpSQJWJ.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
  145. package/dist/{gnssFilterBar-B-MjcBrP.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
  146. package/dist/{gnssFilterBar-Cgsgs4V5.js → gnssFilterBar-C4Ozsjee.js} +2 -2
  147. package/dist/{gnssHistoryTable-g8uWfH7Y.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
  148. package/dist/{gnssHistoryTable-CIxOd5w7.js → gnssHistoryTable-DWICO-OK.js} +2 -2
  149. package/dist/{gnssMapView-D44QaNTQ.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
  150. package/dist/{gnssMapView-BiQVf4gh.js → gnssMapView-CgLO6fng.js} +4 -4
  151. package/dist/{gnssSectionProfile-BtdpmKmn.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
  152. package/dist/{gnssSectionProfile-jjVu5A1a.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-CpFkQtUh.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-Do1kv1qm.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
  155. package/dist/{gnssXYTrajectory-CFvwWDtK.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-BvOG_D_7.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
  157. package/dist/{grd-C95ZWmOl.js → grd-BdraSTc0.js} +2 -2
  158. package/dist/{grd-B-Nvc327.cjs → grd-jisN3fY_.cjs} +1 -1
  159. package/dist/{grdIndass-BbcYs8HM.js → grdIndass-BuEWpm2p.js} +2 -2
  160. package/dist/{grdIndass-B_z4KeNP.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
  161. package/dist/{grg-BDIR6B7-.js → grg-BiUyteXn.js} +2 -2
  162. package/dist/{grg-BrmtnaIG.cjs → grg-DHDNZzvS.cjs} +1 -1
  163. package/dist/{gridview-D9LN6PFq.cjs → gridview-C2eGcIgv.cjs} +1 -1
  164. package/dist/{gridview-CW8y8BTd.js → gridview-DsDgxIu-.js} +2 -2
  165. package/dist/{groundwaterFilterBar--mLtU1NA.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
  166. package/dist/{groundwaterFilterBar-IRv_PmLr.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-B5D95_jr.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
  168. package/dist/{groundwaterProfileChart-DmECniYq.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
  169. package/dist/{groundwaterTimeCurve-Ca54aXVx.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
  170. package/dist/{groundwaterTimeCurve-BrcA-6cK.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
  171. package/dist/{groupCard-DrsDWmxv.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
  172. package/dist/{groupCard-BALuY-4u.js → groupCard-DyiQzmSU.js} +2 -2
  173. package/dist/{headerBar-BhcF9zwo.cjs → headerBar-BnZZrxdl.cjs} +1 -1
  174. package/dist/{headerBar-DN_2v5oW.js → headerBar-CT2WWLFX.js} +2 -2
  175. package/dist/{history-AbuttL7F.js → history-CY_TCu9h.js} +1 -1
  176. package/dist/{history-RyapjVQj.cjs → history-Dm7563t_.cjs} +1 -1
  177. package/dist/{index-CBUg675g.js → index-CPTJIw32.js} +1435 -1426
  178. package/dist/{index-_HLheGV-.cjs → index-DoEyCVDU.cjs} +10 -10
  179. package/dist/{insarDeformChart-D9W6Shvh.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
  180. package/dist/{insarDeformChart-CPMmyq2Q.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
  181. package/dist/{insarImageViewer-Emg8xI2y.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
  182. package/dist/{insarImageViewer-BKR35-3Y.js → insarImageViewer-CupmlYkz.js} +2 -2
  183. package/dist/{kds-BIhsngsG.cjs → kds-BXJfeT1L.cjs} +1 -1
  184. package/dist/{kds-vULqfPXw.js → kds-vKrvUAFM.js} +2 -2
  185. package/dist/{kpiCard-CMiF6mBN.js → kpiCard-DxJnC2K1.js} +2 -2
  186. package/dist/{kpiCard-B67MCYuq.cjs → kpiCard-SXeIckZe.cjs} +1 -1
  187. package/dist/{landslideMap-CjLKf2iR.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
  188. package/dist/{landslideMap-bZNNSwud.js → landslideMap-g1sW7hGk.js} +3 -3
  189. package/dist/{landslideWarning-DLv7p3mP.cjs → landslideWarning-DBYw20My.cjs} +1 -1
  190. package/dist/{landslideWarning-BuRfKa7J.js → landslideWarning-K2gltHjy.js} +5 -5
  191. package/dist/{layerTabs-Dy_3Ts8T.js → layerTabs-DhKwbCdm.js} +2 -2
  192. package/dist/{layerTabs-Dbz3cgus.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
  193. package/dist/{leaflet-src-DCyKOtdK.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
  194. package/dist/{leaflet-src-BOVMWAgQ.js → leaflet-src-CLsvhZ1a.js} +1 -1
  195. package/dist/{lerc-CiwKGo9N.cjs → lerc-7GSCiwa9.cjs} +1 -1
  196. package/dist/{lerc-CaasK4eX.js → lerc-CqUbnv8h.js} +2 -2
  197. package/dist/{lin-CL6L1ch_.js → lin-Bq35ycag.js} +2 -2
  198. package/dist/{lin-BOWJ-CW7.cjs → lin-D0itRkyl.cjs} +1 -1
  199. package/dist/{linIndass-RCHsMojj.cjs → linIndass-DWiz2vOV.cjs} +1 -1
  200. package/dist/{linIndass-CKa1_9MS.js → linIndass-DYq4eFAR.js} +2 -2
  201. package/dist/{lst-Wkgks7ep.cjs → lst-DdajeugL.cjs} +1 -1
  202. package/dist/{lst-CrqSgZwR.js → lst-qvTez4v1.js} +2 -2
  203. package/dist/{manualEntry-CXfFEtpf.js → manualEntry-D33u42uH.js} +2 -2
  204. package/dist/{manualEntry-BKQGTuWL.cjs → manualEntry-s4RAoEru.cjs} +1 -1
  205. package/dist/{mapBackground-BIf6-eD-.js → mapBackground-DM72oEn2.js} +3 -3
  206. package/dist/{mapBackground-C-kzpjdj.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
  207. package/dist/{mappingList-4KfMGq0t.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
  208. package/dist/{mappingList-CBjvognf.js → mappingList-Dy_UeCUf.js} +4 -4
  209. package/dist/{markdownViewer-D7Ywqp1H.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
  210. package/dist/{markdownViewer-rrlYeZ7I.js → markdownViewer-ZlwNlmLZ.js} +2 -2
  211. package/dist/{mix-control-modal-f40hkYH3.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
  212. package/dist/{mix-control-modal-TGnsMYa8.js → mix-control-modal-tXOouBPe.js} +1 -1
  213. package/dist/{mixGrid-UzSy29Tj.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
  214. package/dist/{mixGrid-SC1E7q90.js → mixGrid-CogLsRzO.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.js +1 -1
  217. package/dist/{mjpegCamera-D08JqvZv.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
  218. package/dist/{mjpegCamera-B-NzFCLp.js → mjpegCamera-xUmmLzM-.js} +2 -2
  219. package/dist/{monitorAlert-CySfW9hE.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
  220. package/dist/{monitorAlert-7zKlT848.js → monitorAlert-DhE_HvpR.js} +2 -2
  221. package/dist/{monitorData-CLoDrDAi.js → monitorData-BnEkcdiN.js} +2 -2
  222. package/dist/{monitorData-CN7FgFYY.cjs → monitorData-CpWVhINV.cjs} +1 -1
  223. package/dist/{monitorSpeedChart-3wn9DK7M.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
  224. package/dist/{monitorSpeedChart-DtfHwuuC.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
  225. package/dist/{mxa-nR2EARK7.cjs → mxa-0DZWI1xK.cjs} +1 -1
  226. package/dist/{mxa-BtRYaYaC.js → mxa-C58deh1I.js} +2 -2
  227. package/dist/{myValue-DRH-Z7U4.js → myValue-B4ADQTTG.js} +2 -2
  228. package/dist/{myValue-D0EmXzMl.cjs → myValue-DQLm9XLI.cjs} +1 -1
  229. package/dist/{myValueList-B5lvydIP.cjs → myValueList-DZA9_HEh.cjs} +1 -1
  230. package/dist/{myValueList-C4SdEKSN.js → myValueList-baXd51uR.js} +2 -2
  231. package/dist/{objectList-91MCrGI_.js → objectList-5m0NKALq.js} +4 -4
  232. package/dist/{objectList-D7VpzRS3.cjs → objectList-BHmAruDg.cjs} +1 -1
  233. package/dist/{objectListAPP-CAkXW-XT.js → objectListAPP-COZlfKyw.js} +3 -3
  234. package/dist/{objectListAPP-CIOx7U1x.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
  235. package/dist/{percentBar-Cie2WFfD.js → percentBar-BV6nG2iK.js} +2 -2
  236. package/dist/{percentBar-jD76os8U.cjs → percentBar-CPfJrspp.cjs} +1 -1
  237. package/dist/{photo-Dq7u9W4H.cjs → photo-C4739K_A.cjs} +1 -1
  238. package/dist/{photo-C9AebOr-.js → photo-DK4Z23e3.js} +2 -2
  239. package/dist/{pie-DvBgXusO.js → pie-Lx2zjyZY.js} +2 -2
  240. package/dist/{pie-5_CT43-6.cjs → pie-kb79hzax.cjs} +1 -1
  241. package/dist/{placeholder-DuWCH00z.cjs → placeholder-CAWJju9d.cjs} +1 -1
  242. package/dist/{placeholder-C-Jlu7cM.js → placeholder-Cv_i5j6V.js} +1 -1
  243. package/dist/{pressBtn-Ck16nIx8.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
  244. package/dist/{pressBtn-D9g4JPbg.js → pressBtn-DwN7ExMn.js} +3 -3
  245. package/dist/{processTable-G2oq4vGs.js → processTable-DRzy2-fX.js} +2 -2
  246. package/dist/{processTable-zJNS25YB.cjs → processTable-kGjdZ2SC.cjs} +1 -1
  247. package/dist/{progressBar-CvQb9bfy.cjs → progressBar-89gQ5oSf.cjs} +1 -1
  248. package/dist/{progressBar-B5C8F-Yk.js → progressBar-D5GyaH8h.js} +2 -2
  249. package/dist/{progressCircle-BWWhALsz.js → progressCircle-C0qoN2X2.js} +2 -2
  250. package/dist/{progressCircle-DmKwJZ9A.cjs → progressCircle-D6jGTviS.cjs} +1 -1
  251. package/dist/{qrcode-Bqq4gt4d.js → qrcode-B7wIdO7u.js} +2 -2
  252. package/dist/{qrcode-CiCdevKe.cjs → qrcode-DutO28qr.cjs} +1 -1
  253. package/dist/{raceBar-yXI0Fp1k.js → raceBar-JrtM5isa.js} +2 -2
  254. package/dist/{raceBar-B0IDFFMW.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
  255. package/dist/{rad-BPtEbSHd.cjs → rad-BKh0I2W8.cjs} +1 -1
  256. package/dist/{rad-CNXP40O_.js → rad-NhNcdAlO.js} +2 -2
  257. package/dist/{radarMapViewer-D6R98Oq0.js → radarMapViewer-BrGy_wsI.js} +2 -2
  258. package/dist/{radarMapViewer-BVWov5r2.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
  259. package/dist/{rainfallFilterBar-BH62ipFa.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
  260. package/dist/{rainfallFilterBar-D2FHGoJF.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
  261. package/dist/{rainfallTimeCurve-DEQJGfA-.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
  262. package/dist/{rainfallTimeCurve-IkgWW8as.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
  263. package/dist/{rangeLin-Kmz2x3Ag.cjs → rangeLin-B24wJK2h.cjs} +1 -1
  264. package/dist/{rangeLin-DfZl-V9t.js → rangeLin-CPKLO87X.js} +2 -2
  265. package/dist/{realtimeEvolutionMap-DGdsJFw9.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-D3ciiloi.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
  267. package/dist/{regionBar-CJ5RvcOF.js → regionBar-Cz4GtJuo.js} +2 -2
  268. package/dist/{regionBar-CATzPKKY.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
  269. package/dist/{request-DOww08jj.cjs → request-Dm2cf1Aw.cjs} +1 -1
  270. package/dist/{request-BKI8MJr_.js → request-aXSa-Jdv.js} +1 -1
  271. package/dist/{retainer1-DNZcOFbr.js → retainer1-B4KyW6bw.js} +3 -3
  272. package/dist/{retainer1-CoHZJfqZ.cjs → retainer1-B6byWkE5.cjs} +1 -1
  273. package/dist/{retainer2-DcQn7Yl6.cjs → retainer2-B06eGTYw.cjs} +1 -1
  274. package/dist/{retainer2-B697w6Il.js → retainer2-X6vRW_D5.js} +3 -3
  275. package/dist/{retainerRecordList-DMeZdjJR.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
  276. package/dist/{retainerRecordList-DSrkhmA6.js → retainerRecordList-DDZSYpCF.js} +4 -4
  277. package/dist/{retainerRecordListAPP-BpxCQy99.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
  278. package/dist/{retainerRecordListAPP-BwbTay0w.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
  279. package/dist/{ringTopN-C06E4LW5.cjs → ringTopN-BpJZOE13.cjs} +1 -1
  280. package/dist/{ringTopN-BUVYuls6.js → ringTopN-DX7OzPp7.js} +2 -2
  281. package/dist/{riskRegionTable-DA9T9C3G.js → riskRegionTable-D7blgvMi.js} +2 -2
  282. package/dist/{riskRegionTable-LJj1BdnP.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
  283. package/dist/{sankey-M3kOKD64.js → sankey-CmgfktZj.js} +2 -2
  284. package/dist/{sankey-CmA5O__I.cjs → sankey-DjC4IYit.cjs} +1 -1
  285. package/dist/{scd-w4eyJs3A.cjs → scd-QV9whYOR.cjs} +1 -1
  286. package/dist/{scd-_wiOjgzS.js → scd-zUFKqN8p.js} +2 -2
  287. package/dist/{sideMenu-DUdbXsAa.js → sideMenu-CI23QNpx.js} +2 -2
  288. package/dist/{sideMenu-CzaKR4Hu.cjs → sideMenu-POQpSa8C.cjs} +1 -1
  289. package/dist/{slopeStability-X5_qgGoU.cjs → slopeStability-Da70drIy.cjs} +1 -1
  290. package/dist/{slopeStability-DqPCVgPw.js → slopeStability-E55huDws.js} +2 -2
  291. package/dist/{speedCurve-BLt4Xejr.js → speedCurve-BhhUH79z.js} +2 -2
  292. package/dist/{speedCurve-7bKZOVtu.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
  293. package/dist/{stackedBar-pGTy4A2F.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
  294. package/dist/{stackedBar-_eIF1vJZ.js → stackedBar-bgd2Ls04.js} +2 -2
  295. package/dist/{stationList-DxYDeSvX.cjs → stationList-BSPTM0iI.cjs} +1 -1
  296. package/dist/{stationList--Ar-04xw.js → stationList-D7k3Lot6.js} +3 -3
  297. package/dist/{stressFilterBar-DUaU7F9R.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
  298. package/dist/{stressFilterBar-l-YrUNnj.js → stressFilterBar-Beupo7Zb.js} +2 -2
  299. package/dist/{stressTimeCurve-Da0WQpcl.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
  300. package/dist/{stressTimeCurve-CS66wxqE.js → stressTimeCurve-DGBhkdbV.js} +3 -3
  301. package/dist/{swiper-CNQtsbvs.js → swiper-BEau8Ehu.js} +2 -2
  302. package/dist/{swiper-DIUvD5xc.cjs → swiper-UlVDFht8.cjs} +1 -1
  303. package/dist/{tablemanCreate-o-4lbWMg.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
  304. package/dist/{tablemanCreate-VO2uhxAK.js → tablemanCreate-WnNbHft8.js} +3 -3
  305. package/dist/{tablemanDetail-laWaJr1H.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
  306. package/dist/{tablemanDetail-owA2XrSZ.js → tablemanDetail-yz3zQnFP.js} +4 -4
  307. package/dist/{tablemanList-DdeyJDxY.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
  308. package/dist/{tablemanList-4WOdjHUn.js → tablemanList-CzcVRDtI.js} +4 -4
  309. package/dist/{tablemanTableList-GHxVBKi_.js → tablemanTableList-Bm2fU0EX.js} +4 -4
  310. package/dist/{tablemanTableList-mwLZdCB-.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
  311. package/dist/{tablemanUpdate-2B9IwaI3.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
  312. package/dist/{tablemanUpdate-DuEWfUzq.js → tablemanUpdate-zmDu6tfj.js} +3 -3
  313. package/dist/{terminalConfigList-CRwf4zyo.js → terminalConfigList-CCTkfKIn.js} +4 -4
  314. package/dist/{terminalConfigList-D7xXTuXY.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
  315. package/dist/{terminalList-DR7oCPJy.js → terminalList-DTG1Cd-P.js} +4 -4
  316. package/dist/{terminalList-CRhQweQ-.cjs → terminalList-DlnAYr5c.cjs} +1 -1
  317. package/dist/{terminalListAPP-BFVkfx-6.js → terminalListAPP-BXX0YEmN.js} +3 -3
  318. package/dist/{terminalListAPP-D4FoVU9w.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
  319. package/dist/{textbox-ChfIKoJL.cjs → textbox-C5DmbaFz.cjs} +1 -1
  320. package/dist/{textbox-DPuetTa8.js → textbox-DyFcEXBF.js} +2 -2
  321. package/dist/{timeQueryBar-FYKYYKzy.js → timeQueryBar-BbWq3QkA.js} +1 -1
  322. package/dist/{timeQueryBar-B9DR1YVV.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
  323. package/dist/{timeSeries-DtRy32NS.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
  324. package/dist/{timeSeries-CuAwxFJi.js → timeSeries-D_-6XcY8.js} +3 -3
  325. package/dist/{timeSeriesCurve-JG6iIGJC.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
  326. package/dist/{timeSeriesCurve-C47CXjlD.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
  327. package/dist/{toggleBtn-CtCkW-hk.js → toggleBtn-D0JJAMZR.js} +2 -2
  328. package/dist/{toggleBtn-Dgpb_5Bl.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
  329. package/dist/{trajectoryConfigPanel-XwZw7pOw.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-CBAMAsAC.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
  331. package/dist/{trajectoryScatter-C2S4vFqM.js → trajectoryScatter-DqgFAVSz.js} +2 -2
  332. package/dist/{trajectoryScatter-BRH5Fuio.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
  333. package/dist/{universalConfigPanel-vJ_jQ16_.js → universalConfigPanel-BjyXE23U.js} +1 -1
  334. package/dist/{universalConfigPanel-CmNyleL1.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
  335. package/dist/{universalTable-BowNAGzn.js → universalTable-BVwrJKq8.js} +2 -2
  336. package/dist/{universalTable-nb6nzp2F.cjs → universalTable-D_rkyBG2.cjs} +1 -1
  337. package/dist/{useMixiotPanelPopperClass-BvrGMlpq.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-CLn2j_j-.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
  339. package/dist/{useTablemanApi-DUBohnYP.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
  340. package/dist/{useTablemanApi-B7y1TIcu.js → useTablemanApi-CJh5jpVJ.js} +1 -1
  341. package/dist/{useTablemanFormPanel-CTYjwCKD.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
  342. package/dist/{useTablemanFormPanel-D8jZGcoA.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
  343. package/dist/{useTablemanListActions-D0_YNwZd.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
  344. package/dist/{useTablemanListActions-BCRCO4cd.js → useTablemanListActions-DVQL1pwu.js} +5 -5
  345. package/dist/{video-BmV6PoXX.cjs → video-CdMEjVoF.cjs} +1 -1
  346. package/dist/{video-DeYLErdB.js → video-DDHDy4Eq.js} +2 -2
  347. package/dist/{videoMonitor-BtdEMF9L.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
  348. package/dist/{videoMonitor-42YAnzbJ.js → videoMonitor-JQ4tj-qi.js} +2 -2
  349. package/dist/{vlu-CRaLe3lQ.cjs → vlu-39EqfkCs.cjs} +1 -1
  350. package/dist/{vlu-CUZpeezE.js → vlu-Bmqrgnj8.js} +2 -2
  351. package/dist/{warningOverview-UEutBo3S.js → warningOverview-Ctab9k92.js} +3 -3
  352. package/dist/{warningOverview-BdQn2kqB.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
  353. package/dist/{weather-go4sIuOb.cjs → weather-BfV-w4FG.cjs} +1 -1
  354. package/dist/{weather-m9wKYl1i.js → weather-BwTT4bPM.js} +2 -2
  355. package/dist/{windLin-C48czv-s.cjs → windLin-Dfz6aBio.cjs} +1 -1
  356. package/dist/{windLin-BB3b5UZm.js → windLin-DgZctBal.js} +2 -2
  357. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var Ce=Object.defineProperty,_e=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var pe=(s,n,e)=>n in s?Ce(s,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[n]=e,le=(s,n)=>{for(var e in n||(n={}))Ne.call(n,e)&&pe(s,e,n[e]);if(fe)for(var e of fe(n))Pe.call(n,e)&&pe(s,e,n[e]);return s},se=(s,n)=>_e(s,Le(n));var ie=(s,n,e)=>new Promise((t,k)=>{var i=v=>{try{o(e.next(v))}catch(V){k(V)}},b=v=>{try{o(e.throw(v))}catch(V){k(V)}},o=v=>v.done?t(v.value):Promise.resolve(v.value).then(i,b);o((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),W=require("./index-_HLheGV-.cjs"),c=require("./three.module-CjayKmiG.cjs"),Se=require("./BaseComponent-Yu_LvlWs.cjs"),J=require("element-plus"),De=a.defineComponent({__name:"Button",emits:["click"],setup(s,{emit:n}){const e=n,t=k=>{e("click",k)};return(k,i)=>(a.openBlock(),a.createElementBlock("button",{class:"my-button",onClick:t},[a.renderSlot(k.$slots,"default",{},void 0,!0)]))}}),ve=W._export_sfc(De,[["__scopeId","data-v-01de59b5"]]);ve.install=s=>{s.component("MyButton",ve)};const Fe={class:"my-input-wrapper"},Be=["type","placeholder","disabled","value"],Ae=a.defineComponent({__name:"Input",props:{modelValue:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue","focus","blur"],setup(s,{emit:n}){const e=s,t=n,k=a.computed(()=>[{[`my-input--${e.size}`]:e.size!=="default","is-disabled":e.disabled}]),i=v=>{const V=v.target;t("update:modelValue",V.value)},b=v=>{t("focus",v)},o=v=>{t("blur",v)};return(v,V)=>(a.openBlock(),a.createElementBlock("div",Fe,[a.createElementVNode("input",{class:a.normalizeClass(["my-input",k.value]),type:s.type,placeholder:s.placeholder,disabled:s.disabled,value:s.modelValue,onInput:i,onFocus:b,onBlur:o},null,42,Be)]))}}),he=W._export_sfc(Ae,[["__scopeId","data-v-658697aa"]]);he.install=s=>{s.component("MyInput",he)};const Te={key:0,class:"my-card__header"},Me={class:"my-card__body"},Ie={key:1,class:"my-card__footer"},Oe=a.defineComponent({__name:"Card",props:{header:{},shadow:{default:"always"}},setup(s){const n=s,e=a.computed(()=>[`my-card--shadow-${n.shadow}`]);return(t,k)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["my-card",e.value])},[t.$slots.header||s.header?(a.openBlock(),a.createElementBlock("div",Te,[a.renderSlot(t.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(s.header),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Me,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",Ie,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}}),be=W._export_sfc(Oe,[["__scopeId","data-v-33b37710"]]);be.install=s=>{s.component("MyCard",be)};class He{constructor(n){this._pointer=0,this._eof=!1,this._data=n}next(){if(!this.hasNext())throw this._eof?new Error("Cannot call 'next' after EOF group has been read"):new Error("Unexpected end of input: EOF group not read before end of file. Ended on code "+this._data[this._pointer]);const n={code:parseInt(this._data[this._pointer])};return this._pointer++,n.value=ge(n.code,this._data[this._pointer].trim()),this._pointer++,n.code===0&&n.value==="EOF"&&(this._eof=!0),this.lastReadGroup=n,n}peek(){if(!this.hasNext())throw this._eof?new Error("Cannot call 'next' after EOF group has been read"):new Error("Unexpected end of input: EOF group not read before end of file. Ended on code "+this._data[this._pointer]);const n={code:parseInt(this._data[this._pointer])};return n.value=ge(n.code,this._data[this._pointer+1].trim()),n}rewind(n=1){this._pointer=this._pointer-n*2}hasNext(){return!(this._eof||this._pointer>this._data.length-2)}isEOF(){return this._eof}}function ge(s,n){return s<=9?n:s>=10&&s<=59?parseFloat(n):s>=60&&s<=99?parseInt(n):s>=100&&s<=109?n:s>=110&&s<=149?parseFloat(n):s>=160&&s<=179?parseInt(n):s>=210&&s<=239?parseFloat(n):s>=270&&s<=289?parseInt(n):s>=290&&s<=299?Re(n):s>=300&&s<=369?n:s>=370&&s<=389?parseInt(n):s>=390&&s<=399?n:s>=400&&s<=409?parseInt(n):s>=410&&s<=419?n:s>=420&&s<=429?parseInt(n):s>=430&&s<=439?n:s>=440&&s<=459?parseInt(n):s>=460&&s<=469?parseFloat(n):s>=470&&s<=481||s===999||s>=1e3&&s<=1009?n:s>=1010&&s<=1059?parseFloat(n):s>=1060&&s<=1071?parseInt(n):(console.log("WARNING: Group code does not have a defined type: %j",{code:s,value:n}),n)}function Re(s){if(s==="0")return!1;if(s==="1")return!0;throw TypeError("String '"+s+"' cannot be cast to Boolean type")}const ke=[0,16711680,16776960,65280,65535,255,16711935,16777215,8421504,12632256,16711680,16744319,13369344,13395558,10027008,10046540,8323072,8339263,4980736,4990502,16727808,16752511,13382400,13401958,10036736,10051404,8331008,8343359,4985600,4992806,16744192,16760703,13395456,13408614,10046464,10056268,8339200,8347455,4990464,4995366,16760576,16768895,13408512,13415014,10056192,10061132,8347392,8351551,4995328,4997670,16776960,16777087,13421568,13421670,10000384,10000460,8355584,8355647,5000192,5000230,12582656,14679935,10079232,11717734,7510016,8755276,6258432,7307071,3755008,4344870,8388352,12582783,6736896,10079334,5019648,7510092,4161280,6258495,2509824,3755046,4194048,10485631,3394560,8375398,2529280,6264908,2064128,5209919,1264640,3099686,65280,8388479,52224,6736998,38912,5019724,32512,4161343,19456,2509862,65343,8388511,52275,6737023,38950,5019743,32543,4161359,19475,2509871,65407,8388543,52326,6737049,38988,5019762,32575,4161375,19494,2509881,65471,8388575,52377,6737074,39026,5019781,32607,4161391,19513,2509890,65535,8388607,52428,6737100,39064,5019800,32639,4161407,19532,2509900,49151,8380415,39372,6730444,29336,5014936,24447,4157311,14668,2507340,32767,8372223,26316,6724044,19608,5010072,16255,4153215,9804,2505036,16383,8364031,13260,6717388,9880,5005208,8063,4149119,4940,2502476,255,8355839,204,6710988,152,5000344,127,4145023,76,2500172,4129023,10452991,3342540,8349388,2490520,6245528,2031743,5193599,1245260,3089996,8323327,12550143,6684876,10053324,4980888,7490712,4128895,6242175,2490444,3745356,12517631,14647295,10027212,11691724,7471256,8735896,6226047,7290751,3735628,4335180,16711935,16744447,13369548,13395660,9961624,9981080,8323199,8339327,4980812,4990540,16711871,16744415,13369497,13395634,9961586,9981061,8323167,8339311,4980793,4990530,16711807,16744383,13369446,13395609,9961548,9981042,8323135,8339295,4980774,4990521,16711743,16744351,13369395,13395583,9961510,9981023,8323103,8339279,4980755,4990511,3355443,5987163,8684676,11382189,14079702,16777215];function ze(s){return ke[s]}function P(s){const n={};s.rewind();let e=s.next(),t=e.code;if(n.x=e.value,t+=10,e=s.next(),e.code!=t)throw new Error("Expected code for point value to be "+t+" but got "+e.code+".");return n.y=e.value,t+=10,e=s.next(),e.code!=t?(s.rewind(),n):(n.z=e.value,n)}function $(s,n,e){switch(n.code){case 0:s.type=n.value;break;case 5:s.handle=n.value;break;case 6:s.lineType=n.value;break;case 8:s.layer=n.value;break;case 48:s.lineTypeScale=n.value;break;case 60:s.visible=n.value===0;break;case 62:s.colorIndex=n.value,s.color=ze(Math.abs(n.value));break;case 67:s.inPaperSpace=n.value!==0;break;case 100:break;case 101:for(;n.code!=0;)n=e.next();e.rewind();break;case 330:s.ownerHandle=n.value;break;case 347:s.materialObjectHandle=n.value;break;case 370:s.lineweight=n.value;break;case 420:s.color=n.value;break;case 1e3:s.extendedData=s.extendedData||{},s.extendedData.customStrings=s.extendedData.customStrings||[],s.extendedData.customStrings.push(n.value);break;case 1001:s.extendedData=s.extendedData||{},s.extendedData.applicationName=n.value;break;default:return!1}return!0}class $e{constructor(){this.ForEntityName="3DFACE"}parseEntity(n,e){const t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 70:t.shape=(e.value&1)===1,t.hasContinuousLinetypePattern=(e.value&128)===128;break;case 10:t.vertices=Ge(n,e),e=n.lastReadGroup;break;default:$(t,e,n);break}e=n.next()}return t}}function Ge(s,n){var e=[],t=!1,k=!1,i=4;for(let o=0;o<=i;o++){for(var b={};!s.isEOF()&&!(n.code===0||k);){switch(n.code){case 10:case 11:case 12:case 13:if(t){k=!0;continue}b.x=n.value,t=!0;break;case 20:case 21:case 22:case 23:b.y=n.value;break;case 30:case 31:case 32:case 33:b.z=n.value;break;default:return e}n=s.next()}e.push(b),t=!1,k=!1}return s.rewind(),e}class Ue{constructor(){this.ForEntityName="ARC"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 40:t.radius=e.value;break;case 50:t.startAngle=Math.PI/180*e.value;break;case 51:t.endAngle=Math.PI/180*e.value,t.angleLength=t.endAngle-t.startAngle;break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class We{constructor(){this.ForEntityName="ATTDEF"}parseEntity(n,e){var t={type:e.value,scale:1,textStyle:"STANDARD"};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 1:t.text=e.value;break;case 2:t.tag=e.value;break;case 3:t.prompt=e.value;break;case 7:t.textStyle=e.value;break;case 10:t.startPoint=P(n);break;case 11:t.endPoint=P(n);break;case 39:t.thickness=e.value;break;case 40:t.textHeight=e.value;break;case 41:t.scale=e.value;break;case 50:t.rotation=e.value;break;case 51:t.obliqueAngle=e.value;break;case 70:t.invisible=!!(e.value&1),t.constant=!!(e.value&2),t.verificationRequired=!!(e.value&4),t.preset=!!(e.value&8);break;case 71:t.backwards=!!(e.value&2),t.mirrored=!!(e.value&4);break;case 72:t.horizontalJustification=e.value;break;case 73:t.fieldLength=e.value;break;case 74:t.verticalJustification=e.value;break;case 100:break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class Xe{constructor(){this.ForEntityName="CIRCLE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 40:t.radius=e.value;break;case 50:t.startAngle=Math.PI/180*e.value;break;case 51:const k=Math.PI/180*e.value;k<t.startAngle?t.angleLength=k+2*Math.PI-t.startAngle:t.angleLength=k-t.startAngle,t.endAngle=k;break;default:$(t,e,n);break}e=n.next()}return t}}class Ye{constructor(){this.ForEntityName="DIMENSION"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 2:t.block=e.value;break;case 10:t.anchorPoint=P(n);break;case 11:t.middleOfText=P(n);break;case 12:t.insertionPoint=P(n);break;case 13:t.linearOrAngularPoint1=P(n);break;case 14:t.linearOrAngularPoint2=P(n);break;case 15:t.diameterOrRadiusPoint=P(n);break;case 16:t.arcPoint=P(n);break;case 70:t.dimensionType=e.value;break;case 71:t.attachmentPoint=e.value;break;case 42:t.actualMeasurement=e.value;break;case 1:t.text=e.value;break;case 50:t.angle=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class Ze{constructor(){this.ForEntityName="ELLIPSE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 11:t.majorAxisEndPoint=P(n);break;case 40:t.axisRatio=e.value;break;case 41:t.startAngle=e.value;break;case 42:t.endAngle=e.value;break;case 2:t.name=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class je{constructor(){this.ForEntityName="INSERT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 2:t.name=e.value;break;case 41:t.xScale=e.value;break;case 42:t.yScale=e.value;break;case 43:t.zScale=e.value;break;case 10:t.position=P(n);break;case 50:t.rotation=e.value;break;case 70:t.columnCount=e.value;break;case 71:t.rowCount=e.value;break;case 44:t.columnSpacing=e.value;break;case 45:t.rowSpacing=e.value;break;case 210:t.extrusionDirection=P(n);break;default:$(t,e,n);break}e=n.next()}return t}}class qe{constructor(){this.ForEntityName="LINE"}parseEntity(n,e){const t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.vertices.unshift(P(n));break;case 11:t.vertices.push(P(n));break;case 210:t.extrusionDirection=P(n);break;case 100:break;default:$(t,e,n);break}e=n.next()}return t}}class Ke{constructor(){this.ForEntityName="LWPOLYLINE"}parseEntity(n,e){const t={type:e.value,vertices:[]};let k=0;for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 38:t.elevation=e.value;break;case 39:t.depth=e.value;break;case 70:t.shape=(e.value&1)===1,t.hasContinuousLinetypePattern=(e.value&128)===128;break;case 90:k=e.value;break;case 10:t.vertices=Je(k,n);break;case 43:e.value!==0&&(t.width=e.value);break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}function Je(s,n){if(!s||s<=0)throw Error("n must be greater than 0 verticies");const e=[];let t=!1,k=!1,i=n.lastReadGroup;for(let b=0;b<s;b++){const o={};for(;!n.isEOF()&&!(i.code===0||k);){switch(i.code){case 10:if(t){k=!0;continue}o.x=i.value,t=!0;break;case 20:o.y=i.value;break;case 30:o.z=i.value;break;case 40:o.startWidth=i.value;break;case 41:o.endWidth=i.value;break;case 42:i.value!=0&&(o.bulge=i.value);break;default:return n.rewind(),t&&e.push(o),n.rewind(),e}i=n.next()}e.push(o),t=!1,k=!1}return n.rewind(),e}class Qe{constructor(){this.ForEntityName="MTEXT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 3:t.text?t.text+=e.value:t.text=e.value;break;case 1:t.text?t.text+=e.value:t.text=e.value;break;case 10:t.position=P(n);break;case 11:t.directionVector=P(n);break;case 40:t.height=e.value;break;case 41:t.width=e.value;break;case 50:t.rotation=e.value;break;case 71:t.attachmentPoint=e.value;break;case 72:t.drawingDirection=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class et{constructor(){this.ForEntityName="POINT"}parseEntity(n,e){const k={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:k.position=P(n);break;case 39:k.thickness=e.value;break;case 210:k.extrusionDirection=P(n);break;case 100:break;default:$(k,e,n);break}e=n.next()}return k}}class tt{constructor(){this.ForEntityName="VERTEX"}parseEntity(n,e){var t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.x=e.value;break;case 20:t.y=e.value;break;case 30:t.z=e.value;break;case 40:break;case 41:break;case 42:e.value!=0&&(t.bulge=e.value);break;case 70:t.curveFittingVertex=(e.value&1)!==0,t.curveFitTangent=(e.value&2)!==0,t.splineVertex=(e.value&8)!==0,t.splineControlPoint=(e.value&16)!==0,t.threeDPolylineVertex=(e.value&32)!==0,t.threeDPolylineMesh=(e.value&64)!==0,t.polyfaceMeshVertex=(e.value&128)!==0;break;case 50:break;case 71:t.faceA=e.value;break;case 72:t.faceB=e.value;break;case 73:t.faceC=e.value;break;case 74:t.faceD=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class nt{constructor(){this.ForEntityName="POLYLINE"}parseEntity(n,e){var t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:break;case 20:break;case 30:break;case 39:t.thickness=e.value;break;case 40:break;case 41:break;case 70:t.shape=(e.value&1)!==0,t.includesCurveFitVertices=(e.value&2)!==0,t.includesSplineFitVertices=(e.value&4)!==0,t.is3dPolyline=(e.value&8)!==0,t.is3dPolygonMesh=(e.value&16)!==0,t.is3dPolygonMeshClosed=(e.value&32)!==0,t.isPolyfaceMesh=(e.value&64)!==0,t.hasContinuousLinetypePattern=(e.value&128)!==0;break;case 71:break;case 72:break;case 73:break;case 74:break;case 75:break;case 210:t.extrusionDirection=P(n);break;default:$(t,e,n);break}e=n.next()}return t.vertices=ot(n,e),t}}function ot(s,n){const e=new tt,t=[];for(;!s.isEOF();)if(n.code===0){if(n.value==="VERTEX")t.push(e.parseEntity(s,n)),n=s.lastReadGroup;else if(n.value==="SEQEND"){at(s,n);break}}return t}function at(s,n){const e={type:n.value};for(n=s.next();!s.isEOF()&&n.code!=0;)$(e,n,s),n=s.next();return e}class lt{constructor(){this.ForEntityName="SOLID"}parseEntity(n,e){const t={type:e.value,points:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.points[0]=P(n);break;case 11:t.points[1]=P(n);break;case 12:t.points[2]=P(n);break;case 13:t.points[3]=P(n);break;case 210:t.extrusionDirection=P(n);break;default:$(t,e,n);break}e=n.next()}return t}}class st{constructor(){this.ForEntityName="SPLINE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.controlPoints||(t.controlPoints=[]),t.controlPoints.push(P(n));break;case 11:t.fitPoints||(t.fitPoints=[]),t.fitPoints.push(P(n));break;case 12:t.startTangent=P(n);break;case 13:t.endTangent=P(n);break;case 40:t.knotValues||(t.knotValues=[]),t.knotValues.push(e.value);break;case 70:(e.value&1)!=0&&(t.closed=!0),(e.value&2)!=0&&(t.periodic=!0),(e.value&4)!=0&&(t.rational=!0),(e.value&8)!=0&&(t.planar=!0),(e.value&16)!=0&&(t.planar=!0,t.linear=!0);break;case 71:t.degreeOfSplineCurve=e.value;break;case 72:t.numberOfKnots=e.value;break;case 73:t.numberOfControlPoints=e.value;break;case 74:t.numberOfFitPoints=e.value;break;case 210:t.normalVector=P(n);break;default:$(t,e,n);break}e=n.next()}return t}}class it{constructor(){this.ForEntityName="TEXT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.startPoint=P(n);break;case 11:t.endPoint=P(n);break;case 40:t.textHeight=e.value;break;case 41:t.xScale=e.value;break;case 50:t.rotation=e.value;break;case 1:t.text=e.value;break;case 72:t.halign=e.value;break;case 73:t.valign=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}var te={exports:{}},rt=te.exports,me;function ct(){return me||(me=1,(function(s){(function(n,e){s.exports?s.exports=e():n.log=e()})(rt,function(){var n=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),k=["trace","debug","info","warn","error"],i={},b=null;function o(D,O){var x=D[O];if(typeof x.bind=="function")return x.bind(D);try{return Function.prototype.bind.call(x,D)}catch(G){return function(){return Function.prototype.apply.apply(x,[D,arguments])}}}function v(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function V(D){return D==="debug"&&(D="log"),typeof console===e?!1:D==="trace"&&t?v:console[D]!==void 0?o(console,D):console.log!==void 0?o(console,"log"):n}function E(){for(var D=this.getLevel(),O=0;O<k.length;O++){var x=k[O];this[x]=O<D?n:this.methodFactory(x,D,this.name)}if(this.log=this.debug,typeof console===e&&D<this.levels.SILENT)return"No console available for logging"}function w(D){return function(){typeof console!==e&&(E.call(this),this[D].apply(this,arguments))}}function T(D,O,x){return V(D)||w.apply(this,arguments)}function H(D,O){var x=this,G,m,C,F="loglevel";typeof D=="string"?F+=":"+D:typeof D=="symbol"&&(F=void 0);function h(L){var S=(k[L]||"silent").toUpperCase();if(!(typeof window===e||!F)){try{window.localStorage[F]=S;return}catch(Z){}try{window.document.cookie=encodeURIComponent(F)+"="+S+";"}catch(Z){}}}function d(){var L;if(!(typeof window===e||!F)){try{L=window.localStorage[F]}catch(Q){}if(typeof L===e)try{var S=window.document.cookie,Z=encodeURIComponent(F),K=S.indexOf(Z+"=");K!==-1&&(L=/^([^;]+)/.exec(S.slice(K+Z.length+1))[1])}catch(Q){}return x.levels[L]===void 0&&(L=void 0),L}}function _(){if(!(typeof window===e||!F)){try{window.localStorage.removeItem(F)}catch(L){}try{window.document.cookie=encodeURIComponent(F)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(L){}}}function I(L){var S=L;if(typeof S=="string"&&x.levels[S.toUpperCase()]!==void 0&&(S=x.levels[S.toUpperCase()]),typeof S=="number"&&S>=0&&S<=x.levels.SILENT)return S;throw new TypeError("log.setLevel() called with invalid level: "+L)}x.name=D,x.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},x.methodFactory=O||T,x.getLevel=function(){return C!=null?C:m!=null?m:G},x.setLevel=function(L,S){return C=I(L),S!==!1&&h(C),E.call(x)},x.setDefaultLevel=function(L){m=I(L),d()||x.setLevel(L,!1)},x.resetLevel=function(){C=null,_(),E.call(x)},x.enableAll=function(L){x.setLevel(x.levels.TRACE,L)},x.disableAll=function(L){x.setLevel(x.levels.SILENT,L)},x.rebuild=function(){if(b!==x&&(G=I(b.getLevel())),E.call(x),b===x)for(var L in i)i[L].rebuild()},G=I(b?b.getLevel():"WARN");var U=d();U!=null&&(C=I(U)),E.call(x)}b=new H,b.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var x=i[O];return x||(x=i[O]=new H(O,b.methodFactory)),x};var R=typeof window!==e?window.log:void 0;return b.noConflict=function(){return typeof window!==e&&window.log===b&&(window.log=R),b},b.getLoggers=function(){return i},b.default=b,b})})(te)),te.exports}var ut=ct();const N=W.getDefaultExportFromCjs(ut);N.setLevel("error");function dt(s){s.registerEntityHandler($e),s.registerEntityHandler(Ue),s.registerEntityHandler(We),s.registerEntityHandler(Xe),s.registerEntityHandler(Ye),s.registerEntityHandler(Ze),s.registerEntityHandler(je),s.registerEntityHandler(qe),s.registerEntityHandler(Ke),s.registerEntityHandler(Qe),s.registerEntityHandler(et),s.registerEntityHandler(nt),s.registerEntityHandler(lt),s.registerEntityHandler(st),s.registerEntityHandler(it)}class ft{constructor(){this._entityHandlers={},dt(this)}parse(n){return typeof n=="string"?this._parse(n):(console.error("Cannot read dxf source of type `"+typeof n),null)}registerEntityHandler(n){const e=new n;this._entityHandlers[e.ForEntityName]=e}parseSync(n){return this.parse(n)}parseStream(n){let e="";const t=this;return new Promise((k,i)=>{n.on("data",b=>{e+=b}),n.on("end",()=>{try{k(t._parse(e))}catch(b){i(b)}}),n.on("error",b=>{i(b)})})}_parse(n){const e={};let t=0;const k=n.split(/\r\n|\r|\n/g),i=new He(k);if(!i.hasNext())throw Error("Empty file");const b=this;let o;function v(){for(o=i.next();!i.isEOF();)if(o.code===0&&o.value==="SECTION"){if(o=i.next(),o.code!==2){console.error("Unexpected code %s after 0:SECTION",xe(o)),o=i.next();continue}o.value==="HEADER"?(N.debug("> HEADER"),e.header=V(),N.debug("<")):o.value==="BLOCKS"?(N.debug("> BLOCKS"),e.blocks=E(),N.debug("<")):o.value==="ENTITIES"?(N.debug("> ENTITIES"),e.entities=m(!1),N.debug("<")):o.value==="TABLES"?(N.debug("> TABLES"),e.tables=T(),N.debug("<")):o.value==="EOF"?N.debug("EOF"):N.warn("Skipping section '%s'",o.value)}else o=i.next()}function V(){let h=null,d=null;const _={};for(o=i.next();;){if(Y(o,0,"ENDSEC")){h&&(_[h]=d);break}else o.code===9?(h&&(_[h]=d),h=o.value):o.code===10?d={x:o.value}:o.code===20?d.y=o.value:o.code===30?d.z=o.value:d=o.value;o=i.next()}return o=i.next(),_}function E(){const h={};for(o=i.next();o.value!=="EOF"&&!Y(o,0,"ENDSEC");)if(Y(o,0,"BLOCK")){N.debug("block {");const d=w();N.debug("}"),F(d),d.name?h[d.name]=d:N.error('block with handle "'+d.handle+'" is missing a name.')}else q(o),o=i.next();return h}function w(){const h={};for(o=i.next();o.value!=="EOF";){switch(o.code){case 1:h.xrefPath=o.value,o=i.next();break;case 2:h.name=o.value,o=i.next();break;case 3:h.name2=o.value,o=i.next();break;case 5:h.handle=o.value,o=i.next();break;case 8:h.layer=o.value,o=i.next();break;case 10:h.position=C(o),o=i.next();break;case 67:h.paperSpace=!!(o.value&&o.value==1),o=i.next();break;case 70:o.value!=0&&(h.type=o.value),o=i.next();break;case 100:o=i.next();break;case 330:h.ownerHandle=o.value,o=i.next();break;case 0:if(o.value=="ENDBLK")break;h.entities=m(!0);break;default:q(o),o=i.next()}if(Y(o,0,"ENDBLK")){o=i.next();break}}return h}function T(){const h={};for(o=i.next();o.value!=="EOF"&&!Y(o,0,"ENDSEC");)Y(o,0,"TABLE")?(o=i.next(),G[o.value]?(N.debug(o.value+" Table {"),h[G[o.value].tableName]=R(o),N.debug("}")):N.debug("Unhandled Table "+o.value)):o=i.next();return o=i.next(),h}const H="ENDTAB";function R(h){const d=G[h.value],_={};let I=0;for(o=i.next();!Y(o,0,H);)switch(o.code){case 5:_.handle=o.value,o=i.next();break;case 330:_.ownerHandle=o.value,o=i.next();break;case 100:o.value==="AcDbSymbolTable"||q(o),o=i.next();break;case 70:I=o.value,o=i.next();break;case 0:o.value===d.dxfSymbolName?_[d.tableRecordsProperty]=d.parseTableRecords():(q(o),o=i.next());break;default:q(o),o=i.next()}const U=_[d.tableRecordsProperty];if(U){let L=(()=>{if(U.constructor===Array)return U.length;if(typeof U=="object")return Object.keys(U).length})();I!==L&&N.warn("Parsed "+L+" "+d.dxfSymbolName+"'s but expected "+I)}return o=i.next(),_}function D(){const h=[];let d={};for(N.debug("ViewPort {"),o=i.next();!Y(o,0,H);)switch(o.code){case 2:d.name=o.value,o=i.next();break;case 10:d.lowerLeftCorner=C(o),o=i.next();break;case 11:d.upperRightCorner=C(o),o=i.next();break;case 12:d.center=C(o),o=i.next();break;case 13:d.snapBasePoint=C(o),o=i.next();break;case 14:d.snapSpacing=C(o),o=i.next();break;case 15:d.gridSpacing=C(o),o=i.next();break;case 16:d.viewDirectionFromTarget=C(o),o=i.next();break;case 17:d.viewTarget=C(o),o=i.next();break;case 42:d.lensLength=o.value,o=i.next();break;case 43:d.frontClippingPlane=o.value,o=i.next();break;case 44:d.backClippingPlane=o.value,o=i.next();break;case 45:d.viewHeight=o.value,o=i.next();break;case 50:d.snapRotationAngle=o.value,o=i.next();break;case 51:d.viewTwistAngle=o.value,o=i.next();break;case 79:d.orthographicType=o.value,o=i.next();break;case 110:d.ucsOrigin=C(o),o=i.next();break;case 111:d.ucsXAxis=C(o),o=i.next();break;case 112:d.ucsYAxis=C(o),o=i.next();break;case 110:d.ucsOrigin=C(o),o=i.next();break;case 281:d.renderMode=o.value,o=i.next();break;case 281:d.defaultLightingType=o.value,o=i.next();break;case 292:d.defaultLightingOn=o.value,o=i.next();break;case 330:d.ownerHandle=o.value,o=i.next();break;case 63:case 421:case 431:d.ambientColor=o.value,o=i.next();break;case 0:o.value==="VPORT"&&(N.debug("}"),h.push(d),N.debug("ViewPort {"),d={},o=i.next());break;default:q(o),o=i.next();break}return N.debug("}"),h.push(d),h}function O(){const h={};let d={},_=0,I;for(N.debug("LType {"),o=i.next();!Y(o,0,"ENDTAB");)switch(o.code){case 2:d.name=o.value,I=o.value,o=i.next();break;case 3:d.description=o.value,o=i.next();break;case 73:_=o.value,_>0&&(d.pattern=[]),o=i.next();break;case 40:d.patternLength=o.value,o=i.next();break;case 49:d.pattern.push(o.value),o=i.next();break;case 0:N.debug("}"),_>0&&_!==d.pattern.length&&N.warn("lengths do not match on LTYPE pattern"),h[I]=d,d={},N.debug("LType {"),o=i.next();break;default:o=i.next()}return N.debug("}"),h[I]=d,h}function x(){const h={};let d={},_;for(N.debug("Layer {"),o=i.next();!Y(o,0,"ENDTAB");)switch(o.code){case 2:d.name=o.value,_=o.value,o=i.next();break;case 62:d.visible=o.value>=0,d.colorIndex=Math.abs(o.value),d.color=pt(d.colorIndex),o=i.next();break;case 70:d.frozen=(o.value&1)!=0||(o.value&2)!=0,o=i.next();break;case 0:o.value==="LAYER"&&(N.debug("}"),h[_]=d,N.debug("Layer {"),d={},_=void 0,o=i.next());break;default:q(o),o=i.next();break}return N.debug("}"),h[_]=d,h}const G={VPORT:{tableRecordsProperty:"viewPorts",tableName:"viewPort",dxfSymbolName:"VPORT",parseTableRecords:D},LTYPE:{tableRecordsProperty:"lineTypes",tableName:"lineType",dxfSymbolName:"LTYPE",parseTableRecords:O},LAYER:{tableRecordsProperty:"layers",tableName:"layer",dxfSymbolName:"LAYER",parseTableRecords:x}};function m(h){const d=[],_=h?"ENDBLK":"ENDSEC";for(h||(o=i.next());;)if(o.code===0){if(o.value===_)break;const I=b._entityHandlers[o.value];if(I!=null){N.debug(o.value+" {");const U=I.parseEntity(i,o);o=i.lastReadGroup,N.debug("}"),F(U),d.push(U)}else{N.warn("Unhandled entity "+o.value),o=i.next();continue}}else o=i.next();return _=="ENDSEC"&&(o=i.next()),d}function C(h){const d={};let _=h.code;if(d.x=h.value,_+=10,h=i.next(),h.code!=_)throw new Error("Expected code for point value to be "+_+" but got "+h.code+".");return d.y=h.value,_+=10,h=i.next(),h.code!=_?(i.rewind(),d):(d.z=h.value,d)}function F(h){if(!h)throw new TypeError("entity cannot be undefined or null");h.handle||(h.handle=t++)}return v(),e}}function Y(s,n,e){return s.code===n&&s.value===e}function q(s){N.debug("unhandled group "+xe(s))}function xe(s){return s.code+":"+s.value}function pt(s){return ke[s]}const vt={key:0,class:"my-dxf-viewer__toolbar"},ht={key:0,class:"my-dxf-viewer__loading"},bt={key:1,class:"my-dxf-viewer__error"},gt={key:2,class:"my-dxf-viewer__empty"},mt={key:1,class:"my-dxf-viewer__info"},wt={class:"my-dxf-viewer__info-item"},kt={class:"my-dxf-viewer__info-item"},xt={class:"my-dxf-viewer__info-item"},yt=a.defineComponent({__name:"DxfViewer",props:{dxfUrl:{},dxfData:{},width:{default:"100%"},height:{default:"500px"},backgroundColor:{default:"#ffffff"},lineColor:{default:"#000000"},lineWidth:{default:1},showToolbar:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!1},emptyText:{default:"请加载 DXF 文件"}},emits:["load","error"],setup(s,{expose:n,emit:e}){const t=s,k=e,i=a.ref(null),b=a.ref(null),o=a.ref(!1),v=a.ref(""),V=a.ref(null);let E=null,w=null,T=null,H=null,R=null;const D=a.ref(1),O=a.ref({x:0,y:0}),x=a.ref(!1),G=a.ref({x:0,y:0});let m=null;const C=a.computed(()=>({"my-dxf-viewer--loading":o.value,"my-dxf-viewer--error":!!v.value})),F=a.computed(()=>{var l,u,y;return(y=(u=(l=V.value)==null?void 0:l.tables)==null?void 0:u.layer)!=null&&y.layers?Object.keys(V.value.tables.layer.layers).length:0}),h=a.computed(()=>{var l;return(l=V.value)!=null&&l.entities?V.value.entities.length:0}),d=a.computed(()=>{var B;if(!((B=V.value)!=null&&B.header))return"-";const l=V.value.header.$EXTMIN,u=V.value.header.$EXTMAX;if(!l||!u)return"-";const y=(u.x-l.x).toFixed(2),M=(u.y-l.y).toFixed(2);return`${y} × ${M}`}),_=()=>{if(!b.value)return;const l=b.value,u=l.clientWidth,y=l.clientHeight;E=new c.Scene,E.background=new c.Color(t.backgroundColor);const M=u/y,B=1e3;w=new c.OrthographicCamera(-B*M,B*M,B,-B,.1,1e4),w.position.z=100,w.lookAt(0,0,0),T=new c.WebGLRenderer({antialias:!0}),T.setSize(u,y),T.setPixelRatio(window.devicePixelRatio),l.appendChild(T.domElement),H=new c.Group,E.add(H),Q()},I=(l,u)=>{if(!E)return;R&&(E.remove(R),R=null);const y=l||2e4,M=50;R=new c.GridHelper(y,M,4079170,2763306),R.rotation.x=Math.PI/2,u&&R.position.set(u.x,u.y,-.1),R.visible=t.showGrid,E.add(R)},U=l=>ie(null,null,function*(){if(l){o.value=!0,v.value="",V.value=null;try{const u=yield fetch(l);if(!u.ok)throw new Error(`HTTP ${u.status}: ${u.statusText}`);const y=yield u.text(),B=new ft().parseSync(y);if(!B)throw new Error("DXF 解析返回空数据");V.value=B,k("load",B),B.entities&&B.entities.length>0?L(B):(console.warn("DXF 文件中没有实体数据"),v.value="DXF 文件中没有可显示的图形")}catch(u){console.error("DXF 加载/解析错误:",u),v.value=u.message||"加载 DXF 文件失败",k("error",v.value)}finally{o.value=!1}}}),L=l=>{if(!E||!H)return;for(;H.children.length>0;)H.remove(H.children[0]);const u=new c.Color(t.lineColor),y=new Set;l.entities&&l.entities.forEach(M=>{y.add(M.type);const B=Z(M,u);B&&H.add(B)}),K()},S=(l,u,y)=>{const M=new c.Vector3().subVectors(u,l),B=M.length(),f=t.lineWidth,r=new c.PlaneGeometry(B,f),p=new c.MeshBasicMaterial({color:y,side:c.DoubleSide}),g=new c.Mesh(r,p),A=new c.Vector3().addVectors(l,u).multiplyScalar(.5);g.position.copy(A);const z=Math.atan2(M.y,M.x);return g.rotation.z=z,g},Z=(l,u)=>{var M,B;const y=new c.LineBasicMaterial({color:u});try{if(l.type==="LINE"){const f=new c.Vector3(l.vertices[0].x,l.vertices[0].y,l.vertices[0].z||0),r=new c.Vector3(l.vertices[1].x,l.vertices[1].y,l.vertices[1].z||0);if(t.lineWidth>1)return S(f,r,u);{const p=new c.BufferGeometry,g=new Float32Array([f.x,f.y,f.z,r.x,r.y,r.z]);return p.setAttribute("position",new c.BufferAttribute(g,3)),new c.Line(p,y)}}else if(l.type==="LWPOLYLINE"){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,0))}),l.shape&&f.length>0&&f.push(f[0].clone()),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}else if(l.type==="POLYLINE"){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}else if(l.type==="CIRCLE"){const f=l.radius,g=new c.EllipseCurve(l.center.x,l.center.y,f,f,0,2*Math.PI,!1,0).getPoints(64);if(t.lineWidth>1){const A=new c.Group;for(let z=0;z<g.length;z++){const X=g[z],j=g[(z+1)%g.length],Ve=S(new c.Vector3(X.x,X.y,0),new c.Vector3(j.x,j.y,0),u);A.add(Ve)}return A}else{const A=new c.BufferGeometry().setFromPoints(g);return new c.LineLoop(A,y)}}else if(l.type==="ARC"){const r=new c.EllipseCurve(l.center.x,l.center.y,l.radius,l.radius,l.startAngle,l.endAngle,!1,0).getPoints(50);if(t.lineWidth>1){const p=new c.Group;for(let g=0;g<r.length-1;g++){const A=r[g],z=r[g+1],X=S(new c.Vector3(A.x,A.y,0),new c.Vector3(z.x,z.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.Line(p,y)}}else if(l.type==="SPLINE"){if(l.controlPoints&&l.controlPoints.length>0){const f=[];l.controlPoints.forEach(g=>{f.push(new c.Vector3(g.x,g.y,g.z||0))});const p=new c.CatmullRomCurve3(f).getPoints(50);if(t.lineWidth>1){const g=new c.Group;for(let A=0;A<p.length-1;A++){const z=S(p[A],p[A+1],u);g.add(z)}return g}else{const g=new c.BufferGeometry().setFromPoints(p);return new c.Line(g,y)}}}else if(l.type==="ELLIPSE"){const r=new c.EllipseCurve(l.center.x,l.center.y,l.majorAxisEndPoint.x,l.majorAxisEndPoint.y,l.startAngle||0,l.endAngle||Math.PI*2,!1,0).getPoints(64);if(t.lineWidth>1){const p=new c.Group;for(let g=0;g<r.length-1;g++){const A=r[g],z=r[g+1],X=S(new c.Vector3(A.x,A.y,0),new c.Vector3(z.x,z.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.Line(p,y)}}else if(l.type==="POINT"){const f=new c.BufferGeometry,r=new Float32Array([l.position.x,l.position.y,l.position.z||0]);f.setAttribute("position",new c.BufferAttribute(r,3));const p=new c.PointsMaterial({color:u,size:Math.max(t.lineWidth*2,3)});return new c.Points(f,p)}else if(l.type==="TEXT"||l.type==="MTEXT"){const f=l.text||l.string||"";if(!l.startPoint&&!l.position)return null;const r=l.startPoint||l.position,p=l.textHeight||l.height||10,g=new c.CircleGeometry(p*.3,8);g.translate(r.x,r.y,r.z||0);const A=new c.MeshBasicMaterial({color:u,side:c.DoubleSide});return new c.Mesh(g,A)}else if(l.type==="INSERT"){const f=l.name,r=(B=(M=V.value)==null?void 0:M.blocks)==null?void 0:B[f];if(!r||!r.entities||r.entities.length===0)return null;const p=new c.Group,g=l.position||{x:0,y:0,z:0},A=l.xScale!==void 0?{x:l.xScale||1,y:l.yScale||1,z:l.zScale||1}:{x:1,y:1,z:1},z=l.rotation||0;return r.entities.forEach(X=>{const j=Z(X,u);j&&(j.position.set(g.x,g.y,g.z||0),j.scale.set(A.x,A.y,A.z),z&&(j.rotation.z=z*Math.PI/180),p.add(j))}),p.children.length>0?p:null}else if(l.type==="DIMENSION"){const f=new c.Group;if(l.definingPoint&&l.anchorPoint){const r=new c.Vector3(l.definingPoint.x,l.definingPoint.y,0),p=new c.Vector3(l.anchorPoint.x,l.anchorPoint.y,0);if(t.lineWidth>1)f.add(S(r,p,u));else{const g=new c.BufferGeometry,A=new Float32Array([r.x,r.y,r.z,p.x,p.y,p.z]);g.setAttribute("position",new c.BufferAttribute(A,3)),f.add(new c.Line(g,y))}}return f.children.length>0?f:null}else if(l.type==="HATCH"){if(l.boundaries&&l.boundaries.length>0){const f=new c.Group;return l.boundaries.forEach(r=>{r.edges&&r.edges.forEach(p=>{const g=Z(p,u);g&&f.add(g)})}),f.children.length>0?f:null}return null}else if(l.type==="3DFACE"||l.type==="SOLID"){if(l.vertices&&l.vertices.length>=3){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),f.push(f[0].clone()),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}}else{if(l.type==="VERTEX"||l.type==="SEQEND")return null;if(l.type==="ATTRIB"||l.type==="ATTDEF")return null;if(l.type==="LEADER"||l.type==="MLEADER"){if(l.vertices&&l.vertices.length>1){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),t.lineWidth>1){const r=new c.Group;for(let p=0;p<f.length-1;p++)r.add(S(f[p],f[p+1],u));return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}return null}else if(l.type==="RAY"||l.type==="XLINE"){if(l.startPoint&&l.unitDirectionVector){const f=new c.Vector3(l.startPoint.x,l.startPoint.y,l.startPoint.z||0),r=new c.Vector3(l.unitDirectionVector.x,l.unitDirectionVector.y,l.unitDirectionVector.z||0),p=f.clone().add(r.multiplyScalar(1e5));if(t.lineWidth>1)return S(f,p,u);{const g=new c.BufferGeometry,A=new Float32Array([f.x,f.y,f.z,p.x,p.y,p.z]);return g.setAttribute("position",new c.BufferAttribute(A,3)),new c.Line(g,y)}}return null}else{if(l.type==="REGION")return null;if(l.type==="BODY"||l.type==="3DSOLID")return null;if(l.type==="SURFACE"||l.type==="PLANESURFACE")return null;if(l.type==="VIEWPORT")return null;if(l.type==="IMAGE")return null;if(l.type==="WIPEOUT")return null;if(l.vertices&&Array.isArray(l.vertices)&&l.vertices.length>0){const f=[];if(l.vertices.forEach(r=>{r&&typeof r=="object"&&r.x!==void 0&&r.y!==void 0&&f.push(new c.Vector3(r.x,r.y,r.z||0))}),f.length>1)if(t.lineWidth>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}if(l.startPoint&&l.endPoint){const f=new c.Vector3(l.startPoint.x,l.startPoint.y,l.startPoint.z||0),r=new c.Vector3(l.endPoint.x,l.endPoint.y,l.endPoint.z||0);if(t.lineWidth>1)return S(f,r,u);{const p=new c.BufferGeometry,g=new Float32Array([f.x,f.y,f.z,r.x,r.y,r.z]);return p.setAttribute("position",new c.BufferAttribute(g,3)),new c.Line(p,y)}}if(l.center&&l.radius){const r=new c.EllipseCurve(l.center.x,l.center.y,l.radius,l.radius,0,2*Math.PI,!1,0).getPoints(64);if(t.lineWidth>1){const p=new c.Group;for(let g=0;g<r.length;g++){const A=r[g],z=r[(g+1)%r.length],X=S(new c.Vector3(A.x,A.y,0),new c.Vector3(z.x,z.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.LineLoop(p,y)}}console.warn(`无法渲染实体类型 ${l.type},缺少必要的几何信息`)}}}catch(f){console.warn(`创建实体失败 (${l.type}):`,f,l)}return null},K=()=>{if(!w||!H||!T)return;const l=new c.Box3().setFromObject(H);if(l.isEmpty()){console.warn("没有实体,无法适应视图");return}const u=l.getSize(new c.Vector3),y=l.getCenter(new c.Vector3),M=Math.max(u.x,u.y),B=T.domElement.clientWidth/T.domElement.clientHeight,f=M*.6;w.left=-f*B,w.right=f*B,w.top=f,w.bottom=-f,w.position.set(y.x,y.y,100),w.lookAt(y.x,y.y,0),w.updateProjectionMatrix();const r=Math.max(M*1.5,1e3);I(r,y),D.value=1,O.value={x:0,y:0}},Q=()=>{!T||!E||!w||(requestAnimationFrame(Q),T.render(E,w))},ne=()=>{if(!w)return;const l=.8;w.left*=l,w.right*=l,w.top*=l,w.bottom*=l,w.updateProjectionMatrix(),D.value/=l},oe=()=>{if(!w)return;const l=1.25;w.left*=l,w.right*=l,w.top*=l,w.bottom*=l,w.updateProjectionMatrix(),D.value/=l},re=()=>{K()},ye=()=>{R&&(R.visible=!R.visible)},ce=l=>{x.value=!0,G.value={x:l.clientX,y:l.clientY}},ue=l=>{if(!x.value||!w||!T)return;const u=l.clientX-G.value.x,y=l.clientY-G.value.y,M=-u/T.domElement.clientWidth*(w.right-w.left),B=y/T.domElement.clientHeight*(w.top-w.bottom);w.position.x+=M,w.position.y+=B,w.updateProjectionMatrix(),G.value={x:l.clientX,y:l.clientY}},ee=()=>{x.value=!1},de=l=>{l.preventDefault(),l.deltaY<0?ne():oe()},ae=()=>{if(!b.value||!w||!T)return;const l=b.value.clientWidth,u=b.value.clientHeight;if(l<=0||u<=0)return;const y=l/u,M=(w.top-w.bottom)/2,B=M*y;w.left=-B,w.right=B,w.top=M,w.bottom=-M,w.updateProjectionMatrix(),T.setSize(l,u),T.setPixelRatio(window.devicePixelRatio)},Ee=()=>{if(T&&(T.dispose(),b.value&&T.domElement&&b.value.removeChild(T.domElement)),H){const l=u=>{u.geometry&&u.geometry.dispose(),u.material&&(Array.isArray(u.material)?u.material.forEach(y=>y.dispose()):u.material.dispose()),u.children&&u.children.forEach(y=>l(y))};H.children.forEach(u=>{l(u)})}E=null,w=null,T=null,H=null,R=null};return a.watch(()=>t.dxfUrl,l=>{l&&U(l)},{immediate:!0}),a.watch(()=>t.dxfData,l=>{l&&(V.value=l,L(l))},{immediate:!0}),a.watch(()=>t.backgroundColor,l=>{E&&(E.background=new c.Color(l))}),a.watch(()=>t.lineColor,()=>{V.value&&L(V.value)}),a.watch(()=>t.lineWidth,()=>{V.value&&L(V.value)}),a.watch(()=>t.showGrid,l=>{R&&(R.visible=l)}),a.onMounted(()=>{if(_(),window.addEventListener("resize",ae),b.value&&(m=new ResizeObserver(l=>{for(const u of l)u.target===b.value&&ae()}),m.observe(b.value)),b.value){const l=b.value;l.addEventListener("mousedown",ce),l.addEventListener("mousemove",ue),l.addEventListener("mouseup",ee),l.addEventListener("mouseleave",ee),l.addEventListener("wheel",de,{passive:!1})}}),a.onBeforeUnmount(()=>{if(Ee(),window.removeEventListener("resize",ae),m&&b.value&&(m.unobserve(b.value),m.disconnect(),m=null),b.value){const l=b.value;l.removeEventListener("mousedown",ce),l.removeEventListener("mousemove",ue),l.removeEventListener("mouseup",ee),l.removeEventListener("mouseleave",ee),l.removeEventListener("wheel",de)}}),n({loadDxf:U,zoomIn:ne,zoomOut:oe,resetView:re,fitToView:K}),(l,u)=>{var y;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["my-dxf-viewer",C.value])},[s.showToolbar?(a.openBlock(),a.createElementBlock("div",vt,[a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:ne,title:"放大"},[...u[0]||(u[0]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})],-1)])]),a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:oe,title:"缩小"},[...u[1]||(u[1]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M19,13H5V11H19V13Z"})],-1)])]),a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:re,title:"适应窗口"},[...u[2]||(u[2]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M9,3V4H4V9H3V4A1,1 0 0,1 4,3H9M4,20H9V21H4A1,1 0 0,1 3,20V15H4V20M20,20V15H21V20A1,1 0 0,1 20,21H15V20H20M20,9H21V4A1,1 0 0,1 20,3H15V4H20V9Z"})],-1)])]),a.createElementVNode("button",{class:a.normalizeClass(["my-dxf-viewer__btn",{active:t.showGrid&&((y=a.unref(R))==null?void 0:y.visible)}]),onClick:ye,title:"显示/隐藏网格"},[...u[3]||(u[3]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z"})],-1)])],2)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"my-dxf-viewer__canvas-wrapper",ref_key:"containerRef",ref:i},[a.createElementVNode("div",{ref_key:"canvasContainerRef",ref:b,class:"my-dxf-viewer__three-container"},null,512),o.value?(a.openBlock(),a.createElementBlock("div",ht,[...u[4]||(u[4]=[a.createElementVNode("div",{class:"my-dxf-viewer__spinner"},null,-1),a.createElementVNode("p",null,"解析 DXF 文件中...",-1)])])):a.createCommentVNode("",!0),v.value?(a.openBlock(),a.createElementBlock("div",bt,[u[5]||(u[5]=a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor"},[a.createElementVNode("path",{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"})],-1)),a.createElementVNode("p",null,a.toDisplayString(v.value),1)])):a.createCommentVNode("",!0),!s.dxfUrl&&!v.value&&!o.value?(a.openBlock(),a.createElementBlock("div",gt,[u[6]||(u[6]=a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"64",height:"64",fill:"currentColor"},[a.createElementVNode("path",{d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"})],-1)),a.createElementVNode("p",null,a.toDisplayString(s.emptyText),1)])):a.createCommentVNode("",!0)],512),s.showInfo&&V.value?(a.openBlock(),a.createElementBlock("div",mt,[a.createElementVNode("div",wt,[u[7]||(u[7]=a.createElementVNode("span",null,"图层:",-1)),a.createElementVNode("span",null,a.toDisplayString(F.value),1)]),a.createElementVNode("div",kt,[u[8]||(u[8]=a.createElementVNode("span",null,"实体:",-1)),a.createElementVNode("span",null,a.toDisplayString(h.value),1)]),a.createElementVNode("div",xt,[u[9]||(u[9]=a.createElementVNode("span",null,"边界:",-1)),a.createElementVNode("span",null,a.toDisplayString(d.value),1)])])):a.createCommentVNode("",!0)],2)}}}),Et=W._export_sfc(yt,[["__scopeId","data-v-37660f6e"]]),Vt={key:0,class:"data-panel__header"},Ct={class:"data-panel__title"},_t={key:0,class:"data-panel__icon"},Lt={class:"icon-placeholder"},Nt={class:"data-panel__content"},Pt={class:"data-panel__label"},St={class:"data-panel__value-wrapper"},Dt={class:"data-panel__value"},Ft={key:0,class:"data-panel__unit"},Bt={key:0,class:"data-panel__status"},At={class:"status-text"},Tt={key:1,class:"data-panel__description"},Mt={key:0},It={key:1},Ot={key:2},Ht={key:1,class:"data-panel__footer"},Rt={name:"MyDataPanel"},zt=a.defineComponent(se(le({},Rt),{props:{title:{},dataItems:{},columns:{default:3},showIcon:{type:Boolean,default:!0},theme:{default:"light"},size:{default:"medium"},compact:{type:Boolean,default:!1}},setup(s){const n=s,e=a.computed(()=>[`data-panel--${n.theme}`,`data-panel--${n.size}`,n.compact&&"data-panel--compact"]),t=a.computed(()=>({gridTemplateColumns:`repeat(${n.columns}, 1fr)`})),k=v=>{if(v.customStatus)return v.customStatus;const V=Number(v.value);return isNaN(V)?"normal":v.min!==void 0&&V<v.min||v.max!==void 0&&V>v.max?"danger":v.warnMin!==void 0&&V<v.warnMin||v.warnMax!==void 0&&V>v.warnMax?"warning":"normal"},i=v=>{const V=k(v);return{normal:"正常",warning:"警告",danger:"异常"}[V]},b=v=>typeof v=="string"?v:v.toFixed(2),o=v=>[`data-panel__item--${k(v)}`];return(v,V)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["data-panel",e.value])},[s.title||v.$slots.title?(a.openBlock(),a.createElementBlock("div",Vt,[a.renderSlot(v.$slots,"title",{},()=>[a.createElementVNode("h3",Ct,a.toDisplayString(s.title),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"data-panel__grid",style:a.normalizeStyle(t.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.dataItems,(E,w)=>(a.openBlock(),a.createElementBlock("div",{key:w,class:a.normalizeClass(["data-panel__item",o(E)])},[E.icon||s.showIcon?(a.openBlock(),a.createElementBlock("div",_t,[a.renderSlot(v.$slots,"icon",{item:E},()=>[a.createElementVNode("span",Lt,a.toDisplayString(E.icon||"📊"),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Nt,[a.createElementVNode("div",Pt,a.toDisplayString(E.label),1),a.createElementVNode("div",St,[a.createElementVNode("span",Dt,a.toDisplayString(b(E.value)),1),E.unit?(a.openBlock(),a.createElementBlock("span",Ft,a.toDisplayString(E.unit),1)):a.createCommentVNode("",!0)]),E.showStatus!==!1?(a.openBlock(),a.createElementBlock("div",Bt,[a.createElementVNode("span",{class:a.normalizeClass(["status-dot",`status-dot--${k(E)}`])},null,2),a.createElementVNode("span",At,a.toDisplayString(i(E)),1)])):a.createCommentVNode("",!0),E.description?(a.openBlock(),a.createElementBlock("div",Tt,a.toDisplayString(E.description),1)):a.createCommentVNode("",!0)]),E.trend?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["data-panel__trend",`trend--${E.trend}`])},[E.trend==="up"?(a.openBlock(),a.createElementBlock("span",Mt,"↑")):a.createCommentVNode("",!0),E.trend==="down"?(a.openBlock(),a.createElementBlock("span",It,"↓")):a.createCommentVNode("",!0),E.trend==="stable"?(a.openBlock(),a.createElementBlock("span",Ot,"→")):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)],2))),128))],4),v.$slots.footer?(a.openBlock(),a.createElementBlock("div",Ht,[a.renderSlot(v.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}})),we=W._export_sfc(zt,[["__scopeId","data-v-14261ac2"]]);we.install=s=>{s.component("MyDataPanel",we)};const $t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDXF查看器%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M3.5,2.15%20L13.5,2.15%20C14.3284271,2.15%2015,2.82157288%2015,3.65%20L15,13.65%20C15,14.4784271%2014.3284271,15.15%2013.5,15.15%20L3.5,15.15%20C2.67157288,15.15%202,14.4784271%202,13.65%20L2,3.65%20C2,2.82157288%202.67157288,2.15%203.5,2.15%20Z%20M13.5,3.4%20L3.5,3.4%20C3.36192881,3.4%203.25,3.51192881%203.25,3.65%20L3.25,13.65%20C3.25,13.7880712%203.36192881,13.9%203.5,13.9%20L13.5,13.9%20C13.6380712,13.9%2013.75,13.7880712%2013.75,13.65%20L13.75,3.65%20C13.75,3.51192881%2013.6380712,3.4%2013.5,3.4%20Z%20M8.5,5.15%20C10.1568542,5.15%2011.5,6.49314575%2011.5,8.15%20C11.5,9.80685425%2010.1568542,11.15%208.5,11.15%20C6.84314575,11.15%205.5,9.80685425%205.5,8.15%20C5.5,6.49314575%206.84314575,5.15%208.5,5.15%20Z%20M8.5,6.4%20C7.53350169,6.4%206.75,7.18350169%206.75,8.15%20C6.75,9.11649831%207.53350169,9.9%208.5,9.9%20C9.46649831,9.9%2010.25,9.11649831%2010.25,8.15%20C10.25,7.18350169%209.46649831,6.4%208.5,6.4%20Z%20M8.5,7.025%20C8.84517797,7.025%209.125,7.30482203%209.125,7.65%20L9.125,8.65%20C9.125,8.99517797%208.84517797,9.275%208.5,9.275%20C8.15482203,9.275%207.875,8.99517797%207.875,8.65%20L7.875,7.65%20C7.875,7.30482203%208.15482203,7.025%208.5,7.025%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Gt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDXF查看器-激活%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20fill='%234A90E2'%20fill-rule='nonzero'%3e%3cpath%20d='M3.5,2.15%20L13.5,2.15%20C14.3284271,2.15%2015,2.82157288%2015,3.65%20L15,13.65%20C15,14.4784271%2014.3284271,15.15%2013.5,15.15%20L3.5,15.15%20C2.67157288,15.15%202,14.4784271%202,13.65%20L2,3.65%20C2,2.82157288%202.67157288,2.15%203.5,2.15%20Z%20M13.5,3.4%20L3.5,3.4%20C3.36192881,3.4%203.25,3.51192881%203.25,3.65%20L3.25,13.65%20C3.25,13.7880712%203.36192881,13.9%203.5,13.9%20L13.5,13.9%20C13.6380712,13.9%2013.75,13.7880712%2013.75,13.65%20L13.75,3.65%20C13.75,3.51192881%2013.6380712,3.4%2013.5,3.4%20Z%20M8.5,5.15%20C10.1568542,5.15%2011.5,6.49314575%2011.5,8.15%20C11.5,9.80685425%2010.1568542,11.15%208.5,11.15%20C6.84314575,11.15%205.5,9.80685425%205.5,8.15%20C5.5,6.49314575%206.84314575,5.15%208.5,5.15%20Z%20M8.5,6.4%20C7.53350169,6.4%206.75,7.18350169%206.75,8.15%20C6.75,9.11649831%207.53350169,9.9%208.5,9.9%20C9.46649831,9.9%2010.25,9.11649831%2010.25,8.15%20C10.25,7.18350169%209.46649831,6.4%208.5,6.4%20Z%20M8.5,7.025%20C8.84517797,7.025%209.125,7.30482203%209.125,7.65%20L9.125,8.65%20C9.125,8.99517797%208.84517797,9.275%208.5,9.275%20C8.15482203,9.275%207.875,8.99517797%207.875,8.65%20L7.875,7.65%20C7.875,7.30482203%208.15482203,7.025%208.5,7.025%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ut={class:"mix-body"},Wt={class:"upload-content"},Xt={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},Yt={class:"upload-text"},Zt={key:0,class:"upload-hint"},jt={key:1,class:"viewer-container"},qt={key:0,class:"file-info"},Kt={class:"file-name"},Jt={DEFAULT_ICON:$t,ACTIVE_ICON:Gt,NAME_CN:"DXF查看器",NAME_EN:"DXF Viewer",ORDER:3,PLATFORM:["pc","screen","mobile"]},Qt={backgroundColor:"#ffffff",lineColor:"#000000",lineWidth:1,showToolbar:!0,showInfo:!0,showGrid:!1,fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"}},en=[],tn=[],nn=[],on=null,an={DEFAULT:Jt,OPTIONS:Qt,DATA:en,PARAMS:tn,SOURCE:nn,COMMON:on},ln=a.defineComponent(se(le({},an),{__name:"dxf",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){const n=W.useCounterStore(),e=s;class t extends Se.BaseComponent{extractStyles(){const C=this.getOptionValue("backgroundColor","#ffffff");return{backgroundColor:C,lineColor:this.getOptionValue("lineColor","#000000"),lineWidth:this.getOptionValue("lineWidth",1),showToolbar:this.getOptionValue("showToolbar",!0),showInfo:this.getOptionValue("showInfo",!0),showGrid:this.getOptionValue("showGrid",!1),bgColor:C,titleColor:"#111",textColor:"#111",radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.Style.value.backgroundColor=this.Style.value.bgColor,w()}}const k=new t(e,"dxf");k.setupLifecycle();const i=k.getStyle(),b=a.ref(null),o=a.ref(null),v=a.ref(""),V=a.ref(""),E=a.ref(!1),w=()=>{var C,F,h;const{conf:m}=e;(F=(C=m==null?void 0:m.options)==null?void 0:C.fileUrl)!=null&&F.value&&(v.value=m.options.fileUrl.value,V.value=((h=m.options.fileName)==null?void 0:h.value)||"")},T=()=>{var m;(m=b.value)==null||m.click()},H=m=>ie(null,null,function*(){var d,_;const C=m.target,F=(d=C==null?void 0:C.files)==null?void 0:d[0];if(!F)return;if(!F.name.toLowerCase().endsWith(".dxf")){J.ElMessage.warning("请选择 DXF 文件");return}v.value&&v.value.startsWith("blob:")&&URL.revokeObjectURL(v.value);const h=URL.createObjectURL(F);v.value=h,V.value=F.name;try{E.value=!0;const I=yield W.fileToDataUrl(F),U=W.getFileExtension(F.name),L=yield W.api.post("upload",{dashboard_uid:n.pageData.id,file_data:I,file_type:U},!0);if(L.code===200&&((_=L.result)!=null&&_.relative_path)){const S=W.FILE_URL+L.result.relative_path;URL.revokeObjectURL(h),v.value=S,e.conf&&e.conf.options&&(e.conf.options.fileUrl||(e.conf.options.fileUrl={value:"",type:"string",label:""}),e.conf.options.fileName||(e.conf.options.fileName={value:"",type:"string",label:""}),e.conf.options.fileUrl.value=S,e.conf.options.fileName.value=L.result.file_name||F.name),J.ElMessage.success("DXF文件上传成功")}else throw new Error(L.msg||"上传失败")}catch(I){console.error("DXF文件上传失败:",I),J.ElMessage.error("DXF文件上传失败: "+((I==null?void 0:I.message)||"未知错误"))}finally{E.value=!1,b.value&&(b.value.value="")}}),R=()=>{v.value&&URL.revokeObjectURL(v.value),v.value="",V.value="",setTimeout(()=>{T()},100)},D=m=>{console.log("DXF 文件加载成功:",m)},O=m=>{console.error("DXF 文件加载失败:",m),J.ElMessage.error("DXF 文件加载失败: "+((m==null?void 0:m.message)||"未知错误"))},x=m=>{m.preventDefault(),m.stopPropagation()},G=m=>{var h;m.preventDefault(),m.stopPropagation();const F=(h=m.dataTransfer)==null?void 0:h.files;if(F&&F.length>0){const d=F[0];if(d.name.toLowerCase().endsWith(".dxf")){if(b.value){const _=new DataTransfer;_.items.add(d),b.value.files=_.files,H({target:b.value})}}else J.ElMessage.warning("请选择 DXF 文件")}};return a.onMounted(()=>{if(e.mode!=="preview"){const m=document.querySelector(".upload-area");m&&(m.addEventListener("dragover",x),m.addEventListener("drop",G))}}),a.onBeforeUnmount(()=>{v.value&&URL.revokeObjectURL(v.value);const m=document.querySelector(".upload-area");m&&(m.removeEventListener("dragover",x),m.removeEventListener("drop",G))}),(m,C)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({borderRadius:`${a.unref(i).radiusSize}px`})},[a.createElementVNode("div",Ut,[v.value?(a.openBlock(),a.createElementBlock("div",jt,[e.mode!=="preview"?(a.openBlock(),a.createElementBlock("div",qt,[a.createElementVNode("span",Kt,a.toDisplayString(V.value),1),a.createElementVNode("button",{class:"change-file-btn",onClick:R,title:"更换文件"},[...C[2]||(C[2]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[a.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])):a.createCommentVNode("",!0),a.createVNode(a.unref(Et),{ref_key:"viewerRef",ref:o,"dxf-url":v.value,width:"100%",height:"100%","background-color":a.unref(i).backgroundColor,"line-color":a.unref(i).lineColor,"line-width":a.unref(i).lineWidth,"show-toolbar":a.unref(i).showToolbar,"show-info":a.unref(i).showInfo,"show-grid":a.unref(i).showGrid,onLoad:D,onError:O},null,8,["dxf-url","background-color","line-color","line-width","show-toolbar","show-info","show-grid"])])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["upload-area",{"preview-mode":e.mode==="preview"}]),onClick:C[0]||(C[0]=F=>e.mode!=="preview"&&T())},[a.createElementVNode("input",{ref_key:"fileInputRef",ref:b,type:"file",accept:".dxf",onChange:H,style:{display:"none"}},null,544),a.createElementVNode("div",Wt,[(a.openBlock(),a.createElementBlock("svg",Xt,[...C[1]||(C[1]=[a.createElementVNode("path",{d:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z"},null,-1)])])),a.createElementVNode("p",Yt,a.toDisplayString(e.mode==="preview"?m.$t("component.dxf.noFile"):m.$t("component.dxf.uploadText")),1),e.mode!=="preview"?(a.openBlock(),a.createElementBlock("p",Zt,a.toDisplayString(m.$t("component.dxf.uploadHint")),1)):a.createCommentVNode("",!0)])],2))]),a.renderSlot(m.$slots,"default",{},void 0,!0)],4))}})),sn=W._export_sfc(ln,[["__scopeId","data-v-bca1688e"]]);exports.default=sn;
1
+ "use strict";var Ce=Object.defineProperty,_e=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var pe=(s,n,e)=>n in s?Ce(s,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[n]=e,le=(s,n)=>{for(var e in n||(n={}))Ne.call(n,e)&&pe(s,e,n[e]);if(fe)for(var e of fe(n))Pe.call(n,e)&&pe(s,e,n[e]);return s},se=(s,n)=>_e(s,Le(n));var ie=(s,n,e)=>new Promise((t,k)=>{var i=v=>{try{o(e.next(v))}catch(V){k(V)}},b=v=>{try{o(e.throw(v))}catch(V){k(V)}},o=v=>v.done?t(v.value):Promise.resolve(v.value).then(i,b);o((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),W=require("./index-DoEyCVDU.cjs"),c=require("./three.module-CjayKmiG.cjs"),Se=require("./BaseComponent-DKuQG62G.cjs"),J=require("element-plus"),De=a.defineComponent({__name:"Button",emits:["click"],setup(s,{emit:n}){const e=n,t=k=>{e("click",k)};return(k,i)=>(a.openBlock(),a.createElementBlock("button",{class:"my-button",onClick:t},[a.renderSlot(k.$slots,"default",{},void 0,!0)]))}}),ve=W._export_sfc(De,[["__scopeId","data-v-01de59b5"]]);ve.install=s=>{s.component("MyButton",ve)};const Fe={class:"my-input-wrapper"},Be=["type","placeholder","disabled","value"],Ae=a.defineComponent({__name:"Input",props:{modelValue:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean,default:!1},size:{default:"default"}},emits:["update:modelValue","focus","blur"],setup(s,{emit:n}){const e=s,t=n,k=a.computed(()=>[{[`my-input--${e.size}`]:e.size!=="default","is-disabled":e.disabled}]),i=v=>{const V=v.target;t("update:modelValue",V.value)},b=v=>{t("focus",v)},o=v=>{t("blur",v)};return(v,V)=>(a.openBlock(),a.createElementBlock("div",Fe,[a.createElementVNode("input",{class:a.normalizeClass(["my-input",k.value]),type:s.type,placeholder:s.placeholder,disabled:s.disabled,value:s.modelValue,onInput:i,onFocus:b,onBlur:o},null,42,Be)]))}}),he=W._export_sfc(Ae,[["__scopeId","data-v-658697aa"]]);he.install=s=>{s.component("MyInput",he)};const Te={key:0,class:"my-card__header"},Me={class:"my-card__body"},Ie={key:1,class:"my-card__footer"},Oe=a.defineComponent({__name:"Card",props:{header:{},shadow:{default:"always"}},setup(s){const n=s,e=a.computed(()=>[`my-card--shadow-${n.shadow}`]);return(t,k)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["my-card",e.value])},[t.$slots.header||s.header?(a.openBlock(),a.createElementBlock("div",Te,[a.renderSlot(t.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(s.header),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Me,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),t.$slots.footer?(a.openBlock(),a.createElementBlock("div",Ie,[a.renderSlot(t.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}}),be=W._export_sfc(Oe,[["__scopeId","data-v-33b37710"]]);be.install=s=>{s.component("MyCard",be)};class He{constructor(n){this._pointer=0,this._eof=!1,this._data=n}next(){if(!this.hasNext())throw this._eof?new Error("Cannot call 'next' after EOF group has been read"):new Error("Unexpected end of input: EOF group not read before end of file. Ended on code "+this._data[this._pointer]);const n={code:parseInt(this._data[this._pointer])};return this._pointer++,n.value=ge(n.code,this._data[this._pointer].trim()),this._pointer++,n.code===0&&n.value==="EOF"&&(this._eof=!0),this.lastReadGroup=n,n}peek(){if(!this.hasNext())throw this._eof?new Error("Cannot call 'next' after EOF group has been read"):new Error("Unexpected end of input: EOF group not read before end of file. Ended on code "+this._data[this._pointer]);const n={code:parseInt(this._data[this._pointer])};return n.value=ge(n.code,this._data[this._pointer+1].trim()),n}rewind(n=1){this._pointer=this._pointer-n*2}hasNext(){return!(this._eof||this._pointer>this._data.length-2)}isEOF(){return this._eof}}function ge(s,n){return s<=9?n:s>=10&&s<=59?parseFloat(n):s>=60&&s<=99?parseInt(n):s>=100&&s<=109?n:s>=110&&s<=149?parseFloat(n):s>=160&&s<=179?parseInt(n):s>=210&&s<=239?parseFloat(n):s>=270&&s<=289?parseInt(n):s>=290&&s<=299?Re(n):s>=300&&s<=369?n:s>=370&&s<=389?parseInt(n):s>=390&&s<=399?n:s>=400&&s<=409?parseInt(n):s>=410&&s<=419?n:s>=420&&s<=429?parseInt(n):s>=430&&s<=439?n:s>=440&&s<=459?parseInt(n):s>=460&&s<=469?parseFloat(n):s>=470&&s<=481||s===999||s>=1e3&&s<=1009?n:s>=1010&&s<=1059?parseFloat(n):s>=1060&&s<=1071?parseInt(n):(console.log("WARNING: Group code does not have a defined type: %j",{code:s,value:n}),n)}function Re(s){if(s==="0")return!1;if(s==="1")return!0;throw TypeError("String '"+s+"' cannot be cast to Boolean type")}const ke=[0,16711680,16776960,65280,65535,255,16711935,16777215,8421504,12632256,16711680,16744319,13369344,13395558,10027008,10046540,8323072,8339263,4980736,4990502,16727808,16752511,13382400,13401958,10036736,10051404,8331008,8343359,4985600,4992806,16744192,16760703,13395456,13408614,10046464,10056268,8339200,8347455,4990464,4995366,16760576,16768895,13408512,13415014,10056192,10061132,8347392,8351551,4995328,4997670,16776960,16777087,13421568,13421670,10000384,10000460,8355584,8355647,5000192,5000230,12582656,14679935,10079232,11717734,7510016,8755276,6258432,7307071,3755008,4344870,8388352,12582783,6736896,10079334,5019648,7510092,4161280,6258495,2509824,3755046,4194048,10485631,3394560,8375398,2529280,6264908,2064128,5209919,1264640,3099686,65280,8388479,52224,6736998,38912,5019724,32512,4161343,19456,2509862,65343,8388511,52275,6737023,38950,5019743,32543,4161359,19475,2509871,65407,8388543,52326,6737049,38988,5019762,32575,4161375,19494,2509881,65471,8388575,52377,6737074,39026,5019781,32607,4161391,19513,2509890,65535,8388607,52428,6737100,39064,5019800,32639,4161407,19532,2509900,49151,8380415,39372,6730444,29336,5014936,24447,4157311,14668,2507340,32767,8372223,26316,6724044,19608,5010072,16255,4153215,9804,2505036,16383,8364031,13260,6717388,9880,5005208,8063,4149119,4940,2502476,255,8355839,204,6710988,152,5000344,127,4145023,76,2500172,4129023,10452991,3342540,8349388,2490520,6245528,2031743,5193599,1245260,3089996,8323327,12550143,6684876,10053324,4980888,7490712,4128895,6242175,2490444,3745356,12517631,14647295,10027212,11691724,7471256,8735896,6226047,7290751,3735628,4335180,16711935,16744447,13369548,13395660,9961624,9981080,8323199,8339327,4980812,4990540,16711871,16744415,13369497,13395634,9961586,9981061,8323167,8339311,4980793,4990530,16711807,16744383,13369446,13395609,9961548,9981042,8323135,8339295,4980774,4990521,16711743,16744351,13369395,13395583,9961510,9981023,8323103,8339279,4980755,4990511,3355443,5987163,8684676,11382189,14079702,16777215];function ze(s){return ke[s]}function P(s){const n={};s.rewind();let e=s.next(),t=e.code;if(n.x=e.value,t+=10,e=s.next(),e.code!=t)throw new Error("Expected code for point value to be "+t+" but got "+e.code+".");return n.y=e.value,t+=10,e=s.next(),e.code!=t?(s.rewind(),n):(n.z=e.value,n)}function $(s,n,e){switch(n.code){case 0:s.type=n.value;break;case 5:s.handle=n.value;break;case 6:s.lineType=n.value;break;case 8:s.layer=n.value;break;case 48:s.lineTypeScale=n.value;break;case 60:s.visible=n.value===0;break;case 62:s.colorIndex=n.value,s.color=ze(Math.abs(n.value));break;case 67:s.inPaperSpace=n.value!==0;break;case 100:break;case 101:for(;n.code!=0;)n=e.next();e.rewind();break;case 330:s.ownerHandle=n.value;break;case 347:s.materialObjectHandle=n.value;break;case 370:s.lineweight=n.value;break;case 420:s.color=n.value;break;case 1e3:s.extendedData=s.extendedData||{},s.extendedData.customStrings=s.extendedData.customStrings||[],s.extendedData.customStrings.push(n.value);break;case 1001:s.extendedData=s.extendedData||{},s.extendedData.applicationName=n.value;break;default:return!1}return!0}class $e{constructor(){this.ForEntityName="3DFACE"}parseEntity(n,e){const t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 70:t.shape=(e.value&1)===1,t.hasContinuousLinetypePattern=(e.value&128)===128;break;case 10:t.vertices=Ge(n,e),e=n.lastReadGroup;break;default:$(t,e,n);break}e=n.next()}return t}}function Ge(s,n){var e=[],t=!1,k=!1,i=4;for(let o=0;o<=i;o++){for(var b={};!s.isEOF()&&!(n.code===0||k);){switch(n.code){case 10:case 11:case 12:case 13:if(t){k=!0;continue}b.x=n.value,t=!0;break;case 20:case 21:case 22:case 23:b.y=n.value;break;case 30:case 31:case 32:case 33:b.z=n.value;break;default:return e}n=s.next()}e.push(b),t=!1,k=!1}return s.rewind(),e}class Ue{constructor(){this.ForEntityName="ARC"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 40:t.radius=e.value;break;case 50:t.startAngle=Math.PI/180*e.value;break;case 51:t.endAngle=Math.PI/180*e.value,t.angleLength=t.endAngle-t.startAngle;break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class We{constructor(){this.ForEntityName="ATTDEF"}parseEntity(n,e){var t={type:e.value,scale:1,textStyle:"STANDARD"};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 1:t.text=e.value;break;case 2:t.tag=e.value;break;case 3:t.prompt=e.value;break;case 7:t.textStyle=e.value;break;case 10:t.startPoint=P(n);break;case 11:t.endPoint=P(n);break;case 39:t.thickness=e.value;break;case 40:t.textHeight=e.value;break;case 41:t.scale=e.value;break;case 50:t.rotation=e.value;break;case 51:t.obliqueAngle=e.value;break;case 70:t.invisible=!!(e.value&1),t.constant=!!(e.value&2),t.verificationRequired=!!(e.value&4),t.preset=!!(e.value&8);break;case 71:t.backwards=!!(e.value&2),t.mirrored=!!(e.value&4);break;case 72:t.horizontalJustification=e.value;break;case 73:t.fieldLength=e.value;break;case 74:t.verticalJustification=e.value;break;case 100:break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class Xe{constructor(){this.ForEntityName="CIRCLE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 40:t.radius=e.value;break;case 50:t.startAngle=Math.PI/180*e.value;break;case 51:const k=Math.PI/180*e.value;k<t.startAngle?t.angleLength=k+2*Math.PI-t.startAngle:t.angleLength=k-t.startAngle,t.endAngle=k;break;default:$(t,e,n);break}e=n.next()}return t}}class Ye{constructor(){this.ForEntityName="DIMENSION"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 2:t.block=e.value;break;case 10:t.anchorPoint=P(n);break;case 11:t.middleOfText=P(n);break;case 12:t.insertionPoint=P(n);break;case 13:t.linearOrAngularPoint1=P(n);break;case 14:t.linearOrAngularPoint2=P(n);break;case 15:t.diameterOrRadiusPoint=P(n);break;case 16:t.arcPoint=P(n);break;case 70:t.dimensionType=e.value;break;case 71:t.attachmentPoint=e.value;break;case 42:t.actualMeasurement=e.value;break;case 1:t.text=e.value;break;case 50:t.angle=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class Ze{constructor(){this.ForEntityName="ELLIPSE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.center=P(n);break;case 11:t.majorAxisEndPoint=P(n);break;case 40:t.axisRatio=e.value;break;case 41:t.startAngle=e.value;break;case 42:t.endAngle=e.value;break;case 2:t.name=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class je{constructor(){this.ForEntityName="INSERT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 2:t.name=e.value;break;case 41:t.xScale=e.value;break;case 42:t.yScale=e.value;break;case 43:t.zScale=e.value;break;case 10:t.position=P(n);break;case 50:t.rotation=e.value;break;case 70:t.columnCount=e.value;break;case 71:t.rowCount=e.value;break;case 44:t.columnSpacing=e.value;break;case 45:t.rowSpacing=e.value;break;case 210:t.extrusionDirection=P(n);break;default:$(t,e,n);break}e=n.next()}return t}}class qe{constructor(){this.ForEntityName="LINE"}parseEntity(n,e){const t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.vertices.unshift(P(n));break;case 11:t.vertices.push(P(n));break;case 210:t.extrusionDirection=P(n);break;case 100:break;default:$(t,e,n);break}e=n.next()}return t}}class Ke{constructor(){this.ForEntityName="LWPOLYLINE"}parseEntity(n,e){const t={type:e.value,vertices:[]};let k=0;for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 38:t.elevation=e.value;break;case 39:t.depth=e.value;break;case 70:t.shape=(e.value&1)===1,t.hasContinuousLinetypePattern=(e.value&128)===128;break;case 90:k=e.value;break;case 10:t.vertices=Je(k,n);break;case 43:e.value!==0&&(t.width=e.value);break;case 210:t.extrusionDirectionX=e.value;break;case 220:t.extrusionDirectionY=e.value;break;case 230:t.extrusionDirectionZ=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}function Je(s,n){if(!s||s<=0)throw Error("n must be greater than 0 verticies");const e=[];let t=!1,k=!1,i=n.lastReadGroup;for(let b=0;b<s;b++){const o={};for(;!n.isEOF()&&!(i.code===0||k);){switch(i.code){case 10:if(t){k=!0;continue}o.x=i.value,t=!0;break;case 20:o.y=i.value;break;case 30:o.z=i.value;break;case 40:o.startWidth=i.value;break;case 41:o.endWidth=i.value;break;case 42:i.value!=0&&(o.bulge=i.value);break;default:return n.rewind(),t&&e.push(o),n.rewind(),e}i=n.next()}e.push(o),t=!1,k=!1}return n.rewind(),e}class Qe{constructor(){this.ForEntityName="MTEXT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 3:t.text?t.text+=e.value:t.text=e.value;break;case 1:t.text?t.text+=e.value:t.text=e.value;break;case 10:t.position=P(n);break;case 11:t.directionVector=P(n);break;case 40:t.height=e.value;break;case 41:t.width=e.value;break;case 50:t.rotation=e.value;break;case 71:t.attachmentPoint=e.value;break;case 72:t.drawingDirection=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class et{constructor(){this.ForEntityName="POINT"}parseEntity(n,e){const k={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:k.position=P(n);break;case 39:k.thickness=e.value;break;case 210:k.extrusionDirection=P(n);break;case 100:break;default:$(k,e,n);break}e=n.next()}return k}}class tt{constructor(){this.ForEntityName="VERTEX"}parseEntity(n,e){var t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.x=e.value;break;case 20:t.y=e.value;break;case 30:t.z=e.value;break;case 40:break;case 41:break;case 42:e.value!=0&&(t.bulge=e.value);break;case 70:t.curveFittingVertex=(e.value&1)!==0,t.curveFitTangent=(e.value&2)!==0,t.splineVertex=(e.value&8)!==0,t.splineControlPoint=(e.value&16)!==0,t.threeDPolylineVertex=(e.value&32)!==0,t.threeDPolylineMesh=(e.value&64)!==0,t.polyfaceMeshVertex=(e.value&128)!==0;break;case 50:break;case 71:t.faceA=e.value;break;case 72:t.faceB=e.value;break;case 73:t.faceC=e.value;break;case 74:t.faceD=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}class nt{constructor(){this.ForEntityName="POLYLINE"}parseEntity(n,e){var t={type:e.value,vertices:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:break;case 20:break;case 30:break;case 39:t.thickness=e.value;break;case 40:break;case 41:break;case 70:t.shape=(e.value&1)!==0,t.includesCurveFitVertices=(e.value&2)!==0,t.includesSplineFitVertices=(e.value&4)!==0,t.is3dPolyline=(e.value&8)!==0,t.is3dPolygonMesh=(e.value&16)!==0,t.is3dPolygonMeshClosed=(e.value&32)!==0,t.isPolyfaceMesh=(e.value&64)!==0,t.hasContinuousLinetypePattern=(e.value&128)!==0;break;case 71:break;case 72:break;case 73:break;case 74:break;case 75:break;case 210:t.extrusionDirection=P(n);break;default:$(t,e,n);break}e=n.next()}return t.vertices=ot(n,e),t}}function ot(s,n){const e=new tt,t=[];for(;!s.isEOF();)if(n.code===0){if(n.value==="VERTEX")t.push(e.parseEntity(s,n)),n=s.lastReadGroup;else if(n.value==="SEQEND"){at(s,n);break}}return t}function at(s,n){const e={type:n.value};for(n=s.next();!s.isEOF()&&n.code!=0;)$(e,n,s),n=s.next();return e}class lt{constructor(){this.ForEntityName="SOLID"}parseEntity(n,e){const t={type:e.value,points:[]};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.points[0]=P(n);break;case 11:t.points[1]=P(n);break;case 12:t.points[2]=P(n);break;case 13:t.points[3]=P(n);break;case 210:t.extrusionDirection=P(n);break;default:$(t,e,n);break}e=n.next()}return t}}class st{constructor(){this.ForEntityName="SPLINE"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.controlPoints||(t.controlPoints=[]),t.controlPoints.push(P(n));break;case 11:t.fitPoints||(t.fitPoints=[]),t.fitPoints.push(P(n));break;case 12:t.startTangent=P(n);break;case 13:t.endTangent=P(n);break;case 40:t.knotValues||(t.knotValues=[]),t.knotValues.push(e.value);break;case 70:(e.value&1)!=0&&(t.closed=!0),(e.value&2)!=0&&(t.periodic=!0),(e.value&4)!=0&&(t.rational=!0),(e.value&8)!=0&&(t.planar=!0),(e.value&16)!=0&&(t.planar=!0,t.linear=!0);break;case 71:t.degreeOfSplineCurve=e.value;break;case 72:t.numberOfKnots=e.value;break;case 73:t.numberOfControlPoints=e.value;break;case 74:t.numberOfFitPoints=e.value;break;case 210:t.normalVector=P(n);break;default:$(t,e,n);break}e=n.next()}return t}}class it{constructor(){this.ForEntityName="TEXT"}parseEntity(n,e){const t={type:e.value};for(e=n.next();!n.isEOF()&&e.code!==0;){switch(e.code){case 10:t.startPoint=P(n);break;case 11:t.endPoint=P(n);break;case 40:t.textHeight=e.value;break;case 41:t.xScale=e.value;break;case 50:t.rotation=e.value;break;case 1:t.text=e.value;break;case 72:t.halign=e.value;break;case 73:t.valign=e.value;break;default:$(t,e,n);break}e=n.next()}return t}}var te={exports:{}},rt=te.exports,me;function ct(){return me||(me=1,(function(s){(function(n,e){s.exports?s.exports=e():n.log=e()})(rt,function(){var n=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),k=["trace","debug","info","warn","error"],i={},b=null;function o(D,O){var x=D[O];if(typeof x.bind=="function")return x.bind(D);try{return Function.prototype.bind.call(x,D)}catch(G){return function(){return Function.prototype.apply.apply(x,[D,arguments])}}}function v(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function V(D){return D==="debug"&&(D="log"),typeof console===e?!1:D==="trace"&&t?v:console[D]!==void 0?o(console,D):console.log!==void 0?o(console,"log"):n}function E(){for(var D=this.getLevel(),O=0;O<k.length;O++){var x=k[O];this[x]=O<D?n:this.methodFactory(x,D,this.name)}if(this.log=this.debug,typeof console===e&&D<this.levels.SILENT)return"No console available for logging"}function w(D){return function(){typeof console!==e&&(E.call(this),this[D].apply(this,arguments))}}function T(D,O,x){return V(D)||w.apply(this,arguments)}function H(D,O){var x=this,G,m,C,F="loglevel";typeof D=="string"?F+=":"+D:typeof D=="symbol"&&(F=void 0);function h(L){var S=(k[L]||"silent").toUpperCase();if(!(typeof window===e||!F)){try{window.localStorage[F]=S;return}catch(Z){}try{window.document.cookie=encodeURIComponent(F)+"="+S+";"}catch(Z){}}}function d(){var L;if(!(typeof window===e||!F)){try{L=window.localStorage[F]}catch(Q){}if(typeof L===e)try{var S=window.document.cookie,Z=encodeURIComponent(F),K=S.indexOf(Z+"=");K!==-1&&(L=/^([^;]+)/.exec(S.slice(K+Z.length+1))[1])}catch(Q){}return x.levels[L]===void 0&&(L=void 0),L}}function _(){if(!(typeof window===e||!F)){try{window.localStorage.removeItem(F)}catch(L){}try{window.document.cookie=encodeURIComponent(F)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(L){}}}function I(L){var S=L;if(typeof S=="string"&&x.levels[S.toUpperCase()]!==void 0&&(S=x.levels[S.toUpperCase()]),typeof S=="number"&&S>=0&&S<=x.levels.SILENT)return S;throw new TypeError("log.setLevel() called with invalid level: "+L)}x.name=D,x.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},x.methodFactory=O||T,x.getLevel=function(){return C!=null?C:m!=null?m:G},x.setLevel=function(L,S){return C=I(L),S!==!1&&h(C),E.call(x)},x.setDefaultLevel=function(L){m=I(L),d()||x.setLevel(L,!1)},x.resetLevel=function(){C=null,_(),E.call(x)},x.enableAll=function(L){x.setLevel(x.levels.TRACE,L)},x.disableAll=function(L){x.setLevel(x.levels.SILENT,L)},x.rebuild=function(){if(b!==x&&(G=I(b.getLevel())),E.call(x),b===x)for(var L in i)i[L].rebuild()},G=I(b?b.getLevel():"WARN");var U=d();U!=null&&(C=I(U)),E.call(x)}b=new H,b.getLogger=function(O){if(typeof O!="symbol"&&typeof O!="string"||O==="")throw new TypeError("You must supply a name when creating a logger.");var x=i[O];return x||(x=i[O]=new H(O,b.methodFactory)),x};var R=typeof window!==e?window.log:void 0;return b.noConflict=function(){return typeof window!==e&&window.log===b&&(window.log=R),b},b.getLoggers=function(){return i},b.default=b,b})})(te)),te.exports}var ut=ct();const N=W.getDefaultExportFromCjs(ut);N.setLevel("error");function dt(s){s.registerEntityHandler($e),s.registerEntityHandler(Ue),s.registerEntityHandler(We),s.registerEntityHandler(Xe),s.registerEntityHandler(Ye),s.registerEntityHandler(Ze),s.registerEntityHandler(je),s.registerEntityHandler(qe),s.registerEntityHandler(Ke),s.registerEntityHandler(Qe),s.registerEntityHandler(et),s.registerEntityHandler(nt),s.registerEntityHandler(lt),s.registerEntityHandler(st),s.registerEntityHandler(it)}class ft{constructor(){this._entityHandlers={},dt(this)}parse(n){return typeof n=="string"?this._parse(n):(console.error("Cannot read dxf source of type `"+typeof n),null)}registerEntityHandler(n){const e=new n;this._entityHandlers[e.ForEntityName]=e}parseSync(n){return this.parse(n)}parseStream(n){let e="";const t=this;return new Promise((k,i)=>{n.on("data",b=>{e+=b}),n.on("end",()=>{try{k(t._parse(e))}catch(b){i(b)}}),n.on("error",b=>{i(b)})})}_parse(n){const e={};let t=0;const k=n.split(/\r\n|\r|\n/g),i=new He(k);if(!i.hasNext())throw Error("Empty file");const b=this;let o;function v(){for(o=i.next();!i.isEOF();)if(o.code===0&&o.value==="SECTION"){if(o=i.next(),o.code!==2){console.error("Unexpected code %s after 0:SECTION",xe(o)),o=i.next();continue}o.value==="HEADER"?(N.debug("> HEADER"),e.header=V(),N.debug("<")):o.value==="BLOCKS"?(N.debug("> BLOCKS"),e.blocks=E(),N.debug("<")):o.value==="ENTITIES"?(N.debug("> ENTITIES"),e.entities=m(!1),N.debug("<")):o.value==="TABLES"?(N.debug("> TABLES"),e.tables=T(),N.debug("<")):o.value==="EOF"?N.debug("EOF"):N.warn("Skipping section '%s'",o.value)}else o=i.next()}function V(){let h=null,d=null;const _={};for(o=i.next();;){if(Y(o,0,"ENDSEC")){h&&(_[h]=d);break}else o.code===9?(h&&(_[h]=d),h=o.value):o.code===10?d={x:o.value}:o.code===20?d.y=o.value:o.code===30?d.z=o.value:d=o.value;o=i.next()}return o=i.next(),_}function E(){const h={};for(o=i.next();o.value!=="EOF"&&!Y(o,0,"ENDSEC");)if(Y(o,0,"BLOCK")){N.debug("block {");const d=w();N.debug("}"),F(d),d.name?h[d.name]=d:N.error('block with handle "'+d.handle+'" is missing a name.')}else q(o),o=i.next();return h}function w(){const h={};for(o=i.next();o.value!=="EOF";){switch(o.code){case 1:h.xrefPath=o.value,o=i.next();break;case 2:h.name=o.value,o=i.next();break;case 3:h.name2=o.value,o=i.next();break;case 5:h.handle=o.value,o=i.next();break;case 8:h.layer=o.value,o=i.next();break;case 10:h.position=C(o),o=i.next();break;case 67:h.paperSpace=!!(o.value&&o.value==1),o=i.next();break;case 70:o.value!=0&&(h.type=o.value),o=i.next();break;case 100:o=i.next();break;case 330:h.ownerHandle=o.value,o=i.next();break;case 0:if(o.value=="ENDBLK")break;h.entities=m(!0);break;default:q(o),o=i.next()}if(Y(o,0,"ENDBLK")){o=i.next();break}}return h}function T(){const h={};for(o=i.next();o.value!=="EOF"&&!Y(o,0,"ENDSEC");)Y(o,0,"TABLE")?(o=i.next(),G[o.value]?(N.debug(o.value+" Table {"),h[G[o.value].tableName]=R(o),N.debug("}")):N.debug("Unhandled Table "+o.value)):o=i.next();return o=i.next(),h}const H="ENDTAB";function R(h){const d=G[h.value],_={};let I=0;for(o=i.next();!Y(o,0,H);)switch(o.code){case 5:_.handle=o.value,o=i.next();break;case 330:_.ownerHandle=o.value,o=i.next();break;case 100:o.value==="AcDbSymbolTable"||q(o),o=i.next();break;case 70:I=o.value,o=i.next();break;case 0:o.value===d.dxfSymbolName?_[d.tableRecordsProperty]=d.parseTableRecords():(q(o),o=i.next());break;default:q(o),o=i.next()}const U=_[d.tableRecordsProperty];if(U){let L=(()=>{if(U.constructor===Array)return U.length;if(typeof U=="object")return Object.keys(U).length})();I!==L&&N.warn("Parsed "+L+" "+d.dxfSymbolName+"'s but expected "+I)}return o=i.next(),_}function D(){const h=[];let d={};for(N.debug("ViewPort {"),o=i.next();!Y(o,0,H);)switch(o.code){case 2:d.name=o.value,o=i.next();break;case 10:d.lowerLeftCorner=C(o),o=i.next();break;case 11:d.upperRightCorner=C(o),o=i.next();break;case 12:d.center=C(o),o=i.next();break;case 13:d.snapBasePoint=C(o),o=i.next();break;case 14:d.snapSpacing=C(o),o=i.next();break;case 15:d.gridSpacing=C(o),o=i.next();break;case 16:d.viewDirectionFromTarget=C(o),o=i.next();break;case 17:d.viewTarget=C(o),o=i.next();break;case 42:d.lensLength=o.value,o=i.next();break;case 43:d.frontClippingPlane=o.value,o=i.next();break;case 44:d.backClippingPlane=o.value,o=i.next();break;case 45:d.viewHeight=o.value,o=i.next();break;case 50:d.snapRotationAngle=o.value,o=i.next();break;case 51:d.viewTwistAngle=o.value,o=i.next();break;case 79:d.orthographicType=o.value,o=i.next();break;case 110:d.ucsOrigin=C(o),o=i.next();break;case 111:d.ucsXAxis=C(o),o=i.next();break;case 112:d.ucsYAxis=C(o),o=i.next();break;case 110:d.ucsOrigin=C(o),o=i.next();break;case 281:d.renderMode=o.value,o=i.next();break;case 281:d.defaultLightingType=o.value,o=i.next();break;case 292:d.defaultLightingOn=o.value,o=i.next();break;case 330:d.ownerHandle=o.value,o=i.next();break;case 63:case 421:case 431:d.ambientColor=o.value,o=i.next();break;case 0:o.value==="VPORT"&&(N.debug("}"),h.push(d),N.debug("ViewPort {"),d={},o=i.next());break;default:q(o),o=i.next();break}return N.debug("}"),h.push(d),h}function O(){const h={};let d={},_=0,I;for(N.debug("LType {"),o=i.next();!Y(o,0,"ENDTAB");)switch(o.code){case 2:d.name=o.value,I=o.value,o=i.next();break;case 3:d.description=o.value,o=i.next();break;case 73:_=o.value,_>0&&(d.pattern=[]),o=i.next();break;case 40:d.patternLength=o.value,o=i.next();break;case 49:d.pattern.push(o.value),o=i.next();break;case 0:N.debug("}"),_>0&&_!==d.pattern.length&&N.warn("lengths do not match on LTYPE pattern"),h[I]=d,d={},N.debug("LType {"),o=i.next();break;default:o=i.next()}return N.debug("}"),h[I]=d,h}function x(){const h={};let d={},_;for(N.debug("Layer {"),o=i.next();!Y(o,0,"ENDTAB");)switch(o.code){case 2:d.name=o.value,_=o.value,o=i.next();break;case 62:d.visible=o.value>=0,d.colorIndex=Math.abs(o.value),d.color=pt(d.colorIndex),o=i.next();break;case 70:d.frozen=(o.value&1)!=0||(o.value&2)!=0,o=i.next();break;case 0:o.value==="LAYER"&&(N.debug("}"),h[_]=d,N.debug("Layer {"),d={},_=void 0,o=i.next());break;default:q(o),o=i.next();break}return N.debug("}"),h[_]=d,h}const G={VPORT:{tableRecordsProperty:"viewPorts",tableName:"viewPort",dxfSymbolName:"VPORT",parseTableRecords:D},LTYPE:{tableRecordsProperty:"lineTypes",tableName:"lineType",dxfSymbolName:"LTYPE",parseTableRecords:O},LAYER:{tableRecordsProperty:"layers",tableName:"layer",dxfSymbolName:"LAYER",parseTableRecords:x}};function m(h){const d=[],_=h?"ENDBLK":"ENDSEC";for(h||(o=i.next());;)if(o.code===0){if(o.value===_)break;const I=b._entityHandlers[o.value];if(I!=null){N.debug(o.value+" {");const U=I.parseEntity(i,o);o=i.lastReadGroup,N.debug("}"),F(U),d.push(U)}else{N.warn("Unhandled entity "+o.value),o=i.next();continue}}else o=i.next();return _=="ENDSEC"&&(o=i.next()),d}function C(h){const d={};let _=h.code;if(d.x=h.value,_+=10,h=i.next(),h.code!=_)throw new Error("Expected code for point value to be "+_+" but got "+h.code+".");return d.y=h.value,_+=10,h=i.next(),h.code!=_?(i.rewind(),d):(d.z=h.value,d)}function F(h){if(!h)throw new TypeError("entity cannot be undefined or null");h.handle||(h.handle=t++)}return v(),e}}function Y(s,n,e){return s.code===n&&s.value===e}function q(s){N.debug("unhandled group "+xe(s))}function xe(s){return s.code+":"+s.value}function pt(s){return ke[s]}const vt={key:0,class:"my-dxf-viewer__toolbar"},ht={key:0,class:"my-dxf-viewer__loading"},bt={key:1,class:"my-dxf-viewer__error"},gt={key:2,class:"my-dxf-viewer__empty"},mt={key:1,class:"my-dxf-viewer__info"},wt={class:"my-dxf-viewer__info-item"},kt={class:"my-dxf-viewer__info-item"},xt={class:"my-dxf-viewer__info-item"},yt=a.defineComponent({__name:"DxfViewer",props:{dxfUrl:{},dxfData:{},width:{default:"100%"},height:{default:"500px"},backgroundColor:{default:"#ffffff"},lineColor:{default:"#000000"},lineWidth:{default:1},showToolbar:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!1},emptyText:{default:"请加载 DXF 文件"}},emits:["load","error"],setup(s,{expose:n,emit:e}){const t=s,k=e,i=a.ref(null),b=a.ref(null),o=a.ref(!1),v=a.ref(""),V=a.ref(null);let E=null,w=null,T=null,H=null,R=null;const D=a.ref(1),O=a.ref({x:0,y:0}),x=a.ref(!1),G=a.ref({x:0,y:0});let m=null;const C=a.computed(()=>({"my-dxf-viewer--loading":o.value,"my-dxf-viewer--error":!!v.value})),F=a.computed(()=>{var l,u,y;return(y=(u=(l=V.value)==null?void 0:l.tables)==null?void 0:u.layer)!=null&&y.layers?Object.keys(V.value.tables.layer.layers).length:0}),h=a.computed(()=>{var l;return(l=V.value)!=null&&l.entities?V.value.entities.length:0}),d=a.computed(()=>{var B;if(!((B=V.value)!=null&&B.header))return"-";const l=V.value.header.$EXTMIN,u=V.value.header.$EXTMAX;if(!l||!u)return"-";const y=(u.x-l.x).toFixed(2),M=(u.y-l.y).toFixed(2);return`${y} × ${M}`}),_=()=>{if(!b.value)return;const l=b.value,u=l.clientWidth,y=l.clientHeight;E=new c.Scene,E.background=new c.Color(t.backgroundColor);const M=u/y,B=1e3;w=new c.OrthographicCamera(-B*M,B*M,B,-B,.1,1e4),w.position.z=100,w.lookAt(0,0,0),T=new c.WebGLRenderer({antialias:!0}),T.setSize(u,y),T.setPixelRatio(window.devicePixelRatio),l.appendChild(T.domElement),H=new c.Group,E.add(H),Q()},I=(l,u)=>{if(!E)return;R&&(E.remove(R),R=null);const y=l||2e4,M=50;R=new c.GridHelper(y,M,4079170,2763306),R.rotation.x=Math.PI/2,u&&R.position.set(u.x,u.y,-.1),R.visible=t.showGrid,E.add(R)},U=l=>ie(null,null,function*(){if(l){o.value=!0,v.value="",V.value=null;try{const u=yield fetch(l);if(!u.ok)throw new Error(`HTTP ${u.status}: ${u.statusText}`);const y=yield u.text(),B=new ft().parseSync(y);if(!B)throw new Error("DXF 解析返回空数据");V.value=B,k("load",B),B.entities&&B.entities.length>0?L(B):(console.warn("DXF 文件中没有实体数据"),v.value="DXF 文件中没有可显示的图形")}catch(u){console.error("DXF 加载/解析错误:",u),v.value=u.message||"加载 DXF 文件失败",k("error",v.value)}finally{o.value=!1}}}),L=l=>{if(!E||!H)return;for(;H.children.length>0;)H.remove(H.children[0]);const u=new c.Color(t.lineColor),y=new Set;l.entities&&l.entities.forEach(M=>{y.add(M.type);const B=Z(M,u);B&&H.add(B)}),K()},S=(l,u,y)=>{const M=new c.Vector3().subVectors(u,l),B=M.length(),f=t.lineWidth,r=new c.PlaneGeometry(B,f),p=new c.MeshBasicMaterial({color:y,side:c.DoubleSide}),g=new c.Mesh(r,p),A=new c.Vector3().addVectors(l,u).multiplyScalar(.5);g.position.copy(A);const z=Math.atan2(M.y,M.x);return g.rotation.z=z,g},Z=(l,u)=>{var M,B;const y=new c.LineBasicMaterial({color:u});try{if(l.type==="LINE"){const f=new c.Vector3(l.vertices[0].x,l.vertices[0].y,l.vertices[0].z||0),r=new c.Vector3(l.vertices[1].x,l.vertices[1].y,l.vertices[1].z||0);if(t.lineWidth>1)return S(f,r,u);{const p=new c.BufferGeometry,g=new Float32Array([f.x,f.y,f.z,r.x,r.y,r.z]);return p.setAttribute("position",new c.BufferAttribute(g,3)),new c.Line(p,y)}}else if(l.type==="LWPOLYLINE"){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,0))}),l.shape&&f.length>0&&f.push(f[0].clone()),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}else if(l.type==="POLYLINE"){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}else if(l.type==="CIRCLE"){const f=l.radius,g=new c.EllipseCurve(l.center.x,l.center.y,f,f,0,2*Math.PI,!1,0).getPoints(64);if(t.lineWidth>1){const A=new c.Group;for(let z=0;z<g.length;z++){const X=g[z],j=g[(z+1)%g.length],Ve=S(new c.Vector3(X.x,X.y,0),new c.Vector3(j.x,j.y,0),u);A.add(Ve)}return A}else{const A=new c.BufferGeometry().setFromPoints(g);return new c.LineLoop(A,y)}}else if(l.type==="ARC"){const r=new c.EllipseCurve(l.center.x,l.center.y,l.radius,l.radius,l.startAngle,l.endAngle,!1,0).getPoints(50);if(t.lineWidth>1){const p=new c.Group;for(let g=0;g<r.length-1;g++){const A=r[g],z=r[g+1],X=S(new c.Vector3(A.x,A.y,0),new c.Vector3(z.x,z.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.Line(p,y)}}else if(l.type==="SPLINE"){if(l.controlPoints&&l.controlPoints.length>0){const f=[];l.controlPoints.forEach(g=>{f.push(new c.Vector3(g.x,g.y,g.z||0))});const p=new c.CatmullRomCurve3(f).getPoints(50);if(t.lineWidth>1){const g=new c.Group;for(let A=0;A<p.length-1;A++){const z=S(p[A],p[A+1],u);g.add(z)}return g}else{const g=new c.BufferGeometry().setFromPoints(p);return new c.Line(g,y)}}}else if(l.type==="ELLIPSE"){const r=new c.EllipseCurve(l.center.x,l.center.y,l.majorAxisEndPoint.x,l.majorAxisEndPoint.y,l.startAngle||0,l.endAngle||Math.PI*2,!1,0).getPoints(64);if(t.lineWidth>1){const p=new c.Group;for(let g=0;g<r.length-1;g++){const A=r[g],z=r[g+1],X=S(new c.Vector3(A.x,A.y,0),new c.Vector3(z.x,z.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.Line(p,y)}}else if(l.type==="POINT"){const f=new c.BufferGeometry,r=new Float32Array([l.position.x,l.position.y,l.position.z||0]);f.setAttribute("position",new c.BufferAttribute(r,3));const p=new c.PointsMaterial({color:u,size:Math.max(t.lineWidth*2,3)});return new c.Points(f,p)}else if(l.type==="TEXT"||l.type==="MTEXT"){const f=l.text||l.string||"";if(!l.startPoint&&!l.position)return null;const r=l.startPoint||l.position,p=l.textHeight||l.height||10,g=new c.CircleGeometry(p*.3,8);g.translate(r.x,r.y,r.z||0);const A=new c.MeshBasicMaterial({color:u,side:c.DoubleSide});return new c.Mesh(g,A)}else if(l.type==="INSERT"){const f=l.name,r=(B=(M=V.value)==null?void 0:M.blocks)==null?void 0:B[f];if(!r||!r.entities||r.entities.length===0)return null;const p=new c.Group,g=l.position||{x:0,y:0,z:0},A=l.xScale!==void 0?{x:l.xScale||1,y:l.yScale||1,z:l.zScale||1}:{x:1,y:1,z:1},z=l.rotation||0;return r.entities.forEach(X=>{const j=Z(X,u);j&&(j.position.set(g.x,g.y,g.z||0),j.scale.set(A.x,A.y,A.z),z&&(j.rotation.z=z*Math.PI/180),p.add(j))}),p.children.length>0?p:null}else if(l.type==="DIMENSION"){const f=new c.Group;if(l.definingPoint&&l.anchorPoint){const r=new c.Vector3(l.definingPoint.x,l.definingPoint.y,0),p=new c.Vector3(l.anchorPoint.x,l.anchorPoint.y,0);if(t.lineWidth>1)f.add(S(r,p,u));else{const g=new c.BufferGeometry,A=new Float32Array([r.x,r.y,r.z,p.x,p.y,p.z]);g.setAttribute("position",new c.BufferAttribute(A,3)),f.add(new c.Line(g,y))}}return f.children.length>0?f:null}else if(l.type==="HATCH"){if(l.boundaries&&l.boundaries.length>0){const f=new c.Group;return l.boundaries.forEach(r=>{r.edges&&r.edges.forEach(p=>{const g=Z(p,u);g&&f.add(g)})}),f.children.length>0?f:null}return null}else if(l.type==="3DFACE"||l.type==="SOLID"){if(l.vertices&&l.vertices.length>=3){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),f.push(f[0].clone()),t.lineWidth>1&&f.length>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}}else{if(l.type==="VERTEX"||l.type==="SEQEND")return null;if(l.type==="ATTRIB"||l.type==="ATTDEF")return null;if(l.type==="LEADER"||l.type==="MLEADER"){if(l.vertices&&l.vertices.length>1){const f=[];if(l.vertices.forEach(r=>{f.push(new c.Vector3(r.x,r.y,r.z||0))}),t.lineWidth>1){const r=new c.Group;for(let p=0;p<f.length-1;p++)r.add(S(f[p],f[p+1],u));return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}return null}else if(l.type==="RAY"||l.type==="XLINE"){if(l.startPoint&&l.unitDirectionVector){const f=new c.Vector3(l.startPoint.x,l.startPoint.y,l.startPoint.z||0),r=new c.Vector3(l.unitDirectionVector.x,l.unitDirectionVector.y,l.unitDirectionVector.z||0),p=f.clone().add(r.multiplyScalar(1e5));if(t.lineWidth>1)return S(f,p,u);{const g=new c.BufferGeometry,A=new Float32Array([f.x,f.y,f.z,p.x,p.y,p.z]);return g.setAttribute("position",new c.BufferAttribute(A,3)),new c.Line(g,y)}}return null}else{if(l.type==="REGION")return null;if(l.type==="BODY"||l.type==="3DSOLID")return null;if(l.type==="SURFACE"||l.type==="PLANESURFACE")return null;if(l.type==="VIEWPORT")return null;if(l.type==="IMAGE")return null;if(l.type==="WIPEOUT")return null;if(l.vertices&&Array.isArray(l.vertices)&&l.vertices.length>0){const f=[];if(l.vertices.forEach(r=>{r&&typeof r=="object"&&r.x!==void 0&&r.y!==void 0&&f.push(new c.Vector3(r.x,r.y,r.z||0))}),f.length>1)if(t.lineWidth>1){const r=new c.Group;for(let p=0;p<f.length-1;p++){const g=S(f[p],f[p+1],u);r.add(g)}return r}else{const r=new c.BufferGeometry().setFromPoints(f);return new c.Line(r,y)}}if(l.startPoint&&l.endPoint){const f=new c.Vector3(l.startPoint.x,l.startPoint.y,l.startPoint.z||0),r=new c.Vector3(l.endPoint.x,l.endPoint.y,l.endPoint.z||0);if(t.lineWidth>1)return S(f,r,u);{const p=new c.BufferGeometry,g=new Float32Array([f.x,f.y,f.z,r.x,r.y,r.z]);return p.setAttribute("position",new c.BufferAttribute(g,3)),new c.Line(p,y)}}if(l.center&&l.radius){const r=new c.EllipseCurve(l.center.x,l.center.y,l.radius,l.radius,0,2*Math.PI,!1,0).getPoints(64);if(t.lineWidth>1){const p=new c.Group;for(let g=0;g<r.length;g++){const A=r[g],z=r[(g+1)%r.length],X=S(new c.Vector3(A.x,A.y,0),new c.Vector3(z.x,z.y,0),u);p.add(X)}return p}else{const p=new c.BufferGeometry().setFromPoints(r);return new c.LineLoop(p,y)}}console.warn(`无法渲染实体类型 ${l.type},缺少必要的几何信息`)}}}catch(f){console.warn(`创建实体失败 (${l.type}):`,f,l)}return null},K=()=>{if(!w||!H||!T)return;const l=new c.Box3().setFromObject(H);if(l.isEmpty()){console.warn("没有实体,无法适应视图");return}const u=l.getSize(new c.Vector3),y=l.getCenter(new c.Vector3),M=Math.max(u.x,u.y),B=T.domElement.clientWidth/T.domElement.clientHeight,f=M*.6;w.left=-f*B,w.right=f*B,w.top=f,w.bottom=-f,w.position.set(y.x,y.y,100),w.lookAt(y.x,y.y,0),w.updateProjectionMatrix();const r=Math.max(M*1.5,1e3);I(r,y),D.value=1,O.value={x:0,y:0}},Q=()=>{!T||!E||!w||(requestAnimationFrame(Q),T.render(E,w))},ne=()=>{if(!w)return;const l=.8;w.left*=l,w.right*=l,w.top*=l,w.bottom*=l,w.updateProjectionMatrix(),D.value/=l},oe=()=>{if(!w)return;const l=1.25;w.left*=l,w.right*=l,w.top*=l,w.bottom*=l,w.updateProjectionMatrix(),D.value/=l},re=()=>{K()},ye=()=>{R&&(R.visible=!R.visible)},ce=l=>{x.value=!0,G.value={x:l.clientX,y:l.clientY}},ue=l=>{if(!x.value||!w||!T)return;const u=l.clientX-G.value.x,y=l.clientY-G.value.y,M=-u/T.domElement.clientWidth*(w.right-w.left),B=y/T.domElement.clientHeight*(w.top-w.bottom);w.position.x+=M,w.position.y+=B,w.updateProjectionMatrix(),G.value={x:l.clientX,y:l.clientY}},ee=()=>{x.value=!1},de=l=>{l.preventDefault(),l.deltaY<0?ne():oe()},ae=()=>{if(!b.value||!w||!T)return;const l=b.value.clientWidth,u=b.value.clientHeight;if(l<=0||u<=0)return;const y=l/u,M=(w.top-w.bottom)/2,B=M*y;w.left=-B,w.right=B,w.top=M,w.bottom=-M,w.updateProjectionMatrix(),T.setSize(l,u),T.setPixelRatio(window.devicePixelRatio)},Ee=()=>{if(T&&(T.dispose(),b.value&&T.domElement&&b.value.removeChild(T.domElement)),H){const l=u=>{u.geometry&&u.geometry.dispose(),u.material&&(Array.isArray(u.material)?u.material.forEach(y=>y.dispose()):u.material.dispose()),u.children&&u.children.forEach(y=>l(y))};H.children.forEach(u=>{l(u)})}E=null,w=null,T=null,H=null,R=null};return a.watch(()=>t.dxfUrl,l=>{l&&U(l)},{immediate:!0}),a.watch(()=>t.dxfData,l=>{l&&(V.value=l,L(l))},{immediate:!0}),a.watch(()=>t.backgroundColor,l=>{E&&(E.background=new c.Color(l))}),a.watch(()=>t.lineColor,()=>{V.value&&L(V.value)}),a.watch(()=>t.lineWidth,()=>{V.value&&L(V.value)}),a.watch(()=>t.showGrid,l=>{R&&(R.visible=l)}),a.onMounted(()=>{if(_(),window.addEventListener("resize",ae),b.value&&(m=new ResizeObserver(l=>{for(const u of l)u.target===b.value&&ae()}),m.observe(b.value)),b.value){const l=b.value;l.addEventListener("mousedown",ce),l.addEventListener("mousemove",ue),l.addEventListener("mouseup",ee),l.addEventListener("mouseleave",ee),l.addEventListener("wheel",de,{passive:!1})}}),a.onBeforeUnmount(()=>{if(Ee(),window.removeEventListener("resize",ae),m&&b.value&&(m.unobserve(b.value),m.disconnect(),m=null),b.value){const l=b.value;l.removeEventListener("mousedown",ce),l.removeEventListener("mousemove",ue),l.removeEventListener("mouseup",ee),l.removeEventListener("mouseleave",ee),l.removeEventListener("wheel",de)}}),n({loadDxf:U,zoomIn:ne,zoomOut:oe,resetView:re,fitToView:K}),(l,u)=>{var y;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["my-dxf-viewer",C.value])},[s.showToolbar?(a.openBlock(),a.createElementBlock("div",vt,[a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:ne,title:"放大"},[...u[0]||(u[0]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})],-1)])]),a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:oe,title:"缩小"},[...u[1]||(u[1]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M19,13H5V11H19V13Z"})],-1)])]),a.createElementVNode("button",{class:"my-dxf-viewer__btn",onClick:re,title:"适应窗口"},[...u[2]||(u[2]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M9,3V4H4V9H3V4A1,1 0 0,1 4,3H9M4,20H9V21H4A1,1 0 0,1 3,20V15H4V20M20,20V15H21V20A1,1 0 0,1 20,21H15V20H20M20,9H21V4A1,1 0 0,1 20,3H15V4H20V9Z"})],-1)])]),a.createElementVNode("button",{class:a.normalizeClass(["my-dxf-viewer__btn",{active:t.showGrid&&((y=a.unref(R))==null?void 0:y.visible)}]),onClick:ye,title:"显示/隐藏网格"},[...u[3]||(u[3]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor"},[a.createElementVNode("path",{d:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z"})],-1)])],2)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"my-dxf-viewer__canvas-wrapper",ref_key:"containerRef",ref:i},[a.createElementVNode("div",{ref_key:"canvasContainerRef",ref:b,class:"my-dxf-viewer__three-container"},null,512),o.value?(a.openBlock(),a.createElementBlock("div",ht,[...u[4]||(u[4]=[a.createElementVNode("div",{class:"my-dxf-viewer__spinner"},null,-1),a.createElementVNode("p",null,"解析 DXF 文件中...",-1)])])):a.createCommentVNode("",!0),v.value?(a.openBlock(),a.createElementBlock("div",bt,[u[5]||(u[5]=a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor"},[a.createElementVNode("path",{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"})],-1)),a.createElementVNode("p",null,a.toDisplayString(v.value),1)])):a.createCommentVNode("",!0),!s.dxfUrl&&!v.value&&!o.value?(a.openBlock(),a.createElementBlock("div",gt,[u[6]||(u[6]=a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"64",height:"64",fill:"currentColor"},[a.createElementVNode("path",{d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"})],-1)),a.createElementVNode("p",null,a.toDisplayString(s.emptyText),1)])):a.createCommentVNode("",!0)],512),s.showInfo&&V.value?(a.openBlock(),a.createElementBlock("div",mt,[a.createElementVNode("div",wt,[u[7]||(u[7]=a.createElementVNode("span",null,"图层:",-1)),a.createElementVNode("span",null,a.toDisplayString(F.value),1)]),a.createElementVNode("div",kt,[u[8]||(u[8]=a.createElementVNode("span",null,"实体:",-1)),a.createElementVNode("span",null,a.toDisplayString(h.value),1)]),a.createElementVNode("div",xt,[u[9]||(u[9]=a.createElementVNode("span",null,"边界:",-1)),a.createElementVNode("span",null,a.toDisplayString(d.value),1)])])):a.createCommentVNode("",!0)],2)}}}),Et=W._export_sfc(yt,[["__scopeId","data-v-37660f6e"]]),Vt={key:0,class:"data-panel__header"},Ct={class:"data-panel__title"},_t={key:0,class:"data-panel__icon"},Lt={class:"icon-placeholder"},Nt={class:"data-panel__content"},Pt={class:"data-panel__label"},St={class:"data-panel__value-wrapper"},Dt={class:"data-panel__value"},Ft={key:0,class:"data-panel__unit"},Bt={key:0,class:"data-panel__status"},At={class:"status-text"},Tt={key:1,class:"data-panel__description"},Mt={key:0},It={key:1},Ot={key:2},Ht={key:1,class:"data-panel__footer"},Rt={name:"MyDataPanel"},zt=a.defineComponent(se(le({},Rt),{props:{title:{},dataItems:{},columns:{default:3},showIcon:{type:Boolean,default:!0},theme:{default:"light"},size:{default:"medium"},compact:{type:Boolean,default:!1}},setup(s){const n=s,e=a.computed(()=>[`data-panel--${n.theme}`,`data-panel--${n.size}`,n.compact&&"data-panel--compact"]),t=a.computed(()=>({gridTemplateColumns:`repeat(${n.columns}, 1fr)`})),k=v=>{if(v.customStatus)return v.customStatus;const V=Number(v.value);return isNaN(V)?"normal":v.min!==void 0&&V<v.min||v.max!==void 0&&V>v.max?"danger":v.warnMin!==void 0&&V<v.warnMin||v.warnMax!==void 0&&V>v.warnMax?"warning":"normal"},i=v=>{const V=k(v);return{normal:"正常",warning:"警告",danger:"异常"}[V]},b=v=>typeof v=="string"?v:v.toFixed(2),o=v=>[`data-panel__item--${k(v)}`];return(v,V)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["data-panel",e.value])},[s.title||v.$slots.title?(a.openBlock(),a.createElementBlock("div",Vt,[a.renderSlot(v.$slots,"title",{},()=>[a.createElementVNode("h3",Ct,a.toDisplayString(s.title),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"data-panel__grid",style:a.normalizeStyle(t.value)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.dataItems,(E,w)=>(a.openBlock(),a.createElementBlock("div",{key:w,class:a.normalizeClass(["data-panel__item",o(E)])},[E.icon||s.showIcon?(a.openBlock(),a.createElementBlock("div",_t,[a.renderSlot(v.$slots,"icon",{item:E},()=>[a.createElementVNode("span",Lt,a.toDisplayString(E.icon||"📊"),1)],!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",Nt,[a.createElementVNode("div",Pt,a.toDisplayString(E.label),1),a.createElementVNode("div",St,[a.createElementVNode("span",Dt,a.toDisplayString(b(E.value)),1),E.unit?(a.openBlock(),a.createElementBlock("span",Ft,a.toDisplayString(E.unit),1)):a.createCommentVNode("",!0)]),E.showStatus!==!1?(a.openBlock(),a.createElementBlock("div",Bt,[a.createElementVNode("span",{class:a.normalizeClass(["status-dot",`status-dot--${k(E)}`])},null,2),a.createElementVNode("span",At,a.toDisplayString(i(E)),1)])):a.createCommentVNode("",!0),E.description?(a.openBlock(),a.createElementBlock("div",Tt,a.toDisplayString(E.description),1)):a.createCommentVNode("",!0)]),E.trend?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["data-panel__trend",`trend--${E.trend}`])},[E.trend==="up"?(a.openBlock(),a.createElementBlock("span",Mt,"↑")):a.createCommentVNode("",!0),E.trend==="down"?(a.openBlock(),a.createElementBlock("span",It,"↓")):a.createCommentVNode("",!0),E.trend==="stable"?(a.openBlock(),a.createElementBlock("span",Ot,"→")):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)],2))),128))],4),v.$slots.footer?(a.openBlock(),a.createElementBlock("div",Ht,[a.renderSlot(v.$slots,"footer",{},void 0,!0)])):a.createCommentVNode("",!0)],2))}})),we=W._export_sfc(zt,[["__scopeId","data-v-14261ac2"]]);we.install=s=>{s.component("MyDataPanel",we)};const $t="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDXF查看器%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M3.5,2.15%20L13.5,2.15%20C14.3284271,2.15%2015,2.82157288%2015,3.65%20L15,13.65%20C15,14.4784271%2014.3284271,15.15%2013.5,15.15%20L3.5,15.15%20C2.67157288,15.15%202,14.4784271%202,13.65%20L2,3.65%20C2,2.82157288%202.67157288,2.15%203.5,2.15%20Z%20M13.5,3.4%20L3.5,3.4%20C3.36192881,3.4%203.25,3.51192881%203.25,3.65%20L3.25,13.65%20C3.25,13.7880712%203.36192881,13.9%203.5,13.9%20L13.5,13.9%20C13.6380712,13.9%2013.75,13.7880712%2013.75,13.65%20L13.75,3.65%20C13.75,3.51192881%2013.6380712,3.4%2013.5,3.4%20Z%20M8.5,5.15%20C10.1568542,5.15%2011.5,6.49314575%2011.5,8.15%20C11.5,9.80685425%2010.1568542,11.15%208.5,11.15%20C6.84314575,11.15%205.5,9.80685425%205.5,8.15%20C5.5,6.49314575%206.84314575,5.15%208.5,5.15%20Z%20M8.5,6.4%20C7.53350169,6.4%206.75,7.18350169%206.75,8.15%20C6.75,9.11649831%207.53350169,9.9%208.5,9.9%20C9.46649831,9.9%2010.25,9.11649831%2010.25,8.15%20C10.25,7.18350169%209.46649831,6.4%208.5,6.4%20Z%20M8.5,7.025%20C8.84517797,7.025%209.125,7.30482203%209.125,7.65%20L9.125,8.65%20C9.125,8.99517797%208.84517797,9.275%208.5,9.275%20C8.15482203,9.275%207.875,8.99517797%207.875,8.65%20L7.875,7.65%20C7.875,7.30482203%208.15482203,7.025%208.5,7.025%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Gt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDXF查看器-激活%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20fill='%234A90E2'%20fill-rule='nonzero'%3e%3cpath%20d='M3.5,2.15%20L13.5,2.15%20C14.3284271,2.15%2015,2.82157288%2015,3.65%20L15,13.65%20C15,14.4784271%2014.3284271,15.15%2013.5,15.15%20L3.5,15.15%20C2.67157288,15.15%202,14.4784271%202,13.65%20L2,3.65%20C2,2.82157288%202.67157288,2.15%203.5,2.15%20Z%20M13.5,3.4%20L3.5,3.4%20C3.36192881,3.4%203.25,3.51192881%203.25,3.65%20L3.25,13.65%20C3.25,13.7880712%203.36192881,13.9%203.5,13.9%20L13.5,13.9%20C13.6380712,13.9%2013.75,13.7880712%2013.75,13.65%20L13.75,3.65%20C13.75,3.51192881%2013.6380712,3.4%2013.5,3.4%20Z%20M8.5,5.15%20C10.1568542,5.15%2011.5,6.49314575%2011.5,8.15%20C11.5,9.80685425%2010.1568542,11.15%208.5,11.15%20C6.84314575,11.15%205.5,9.80685425%205.5,8.15%20C5.5,6.49314575%206.84314575,5.15%208.5,5.15%20Z%20M8.5,6.4%20C7.53350169,6.4%206.75,7.18350169%206.75,8.15%20C6.75,9.11649831%207.53350169,9.9%208.5,9.9%20C9.46649831,9.9%2010.25,9.11649831%2010.25,8.15%20C10.25,7.18350169%209.46649831,6.4%208.5,6.4%20Z%20M8.5,7.025%20C8.84517797,7.025%209.125,7.30482203%209.125,7.65%20L9.125,8.65%20C9.125,8.99517797%208.84517797,9.275%208.5,9.275%20C8.15482203,9.275%207.875,8.99517797%207.875,8.65%20L7.875,7.65%20C7.875,7.30482203%208.15482203,7.025%208.5,7.025%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ut={class:"mix-body"},Wt={class:"upload-content"},Xt={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},Yt={class:"upload-text"},Zt={key:0,class:"upload-hint"},jt={key:1,class:"viewer-container"},qt={key:0,class:"file-info"},Kt={class:"file-name"},Jt={DEFAULT_ICON:$t,ACTIVE_ICON:Gt,NAME_CN:"DXF查看器",NAME_EN:"DXF Viewer",ORDER:3,PLATFORM:["pc","screen","mobile"]},Qt={backgroundColor:"#ffffff",lineColor:"#000000",lineWidth:1,showToolbar:!0,showInfo:!0,showGrid:!1,fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"}},en=[],tn=[],nn=[],on=null,an={DEFAULT:Jt,OPTIONS:Qt,DATA:en,PARAMS:tn,SOURCE:nn,COMMON:on},ln=a.defineComponent(se(le({},an),{__name:"dxf",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){const n=W.useCounterStore(),e=s;class t extends Se.BaseComponent{extractStyles(){const C=this.getOptionValue("backgroundColor","#ffffff");return{backgroundColor:C,lineColor:this.getOptionValue("lineColor","#000000"),lineWidth:this.getOptionValue("lineWidth",1),showToolbar:this.getOptionValue("showToolbar",!0),showInfo:this.getOptionValue("showInfo",!0),showGrid:this.getOptionValue("showGrid",!1),bgColor:C,titleColor:"#111",textColor:"#111",radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.Style.value.backgroundColor=this.Style.value.bgColor,w()}}const k=new t(e,"dxf");k.setupLifecycle();const i=k.getStyle(),b=a.ref(null),o=a.ref(null),v=a.ref(""),V=a.ref(""),E=a.ref(!1),w=()=>{var C,F,h;const{conf:m}=e;(F=(C=m==null?void 0:m.options)==null?void 0:C.fileUrl)!=null&&F.value&&(v.value=m.options.fileUrl.value,V.value=((h=m.options.fileName)==null?void 0:h.value)||"")},T=()=>{var m;(m=b.value)==null||m.click()},H=m=>ie(null,null,function*(){var d,_;const C=m.target,F=(d=C==null?void 0:C.files)==null?void 0:d[0];if(!F)return;if(!F.name.toLowerCase().endsWith(".dxf")){J.ElMessage.warning("请选择 DXF 文件");return}v.value&&v.value.startsWith("blob:")&&URL.revokeObjectURL(v.value);const h=URL.createObjectURL(F);v.value=h,V.value=F.name;try{E.value=!0;const I=yield W.fileToDataUrl(F),U=W.getFileExtension(F.name),L=yield W.api.post("upload",{dashboard_uid:n.pageData.id,file_data:I,file_type:U},!0);if(L.code===200&&((_=L.result)!=null&&_.relative_path)){const S=W.FILE_URL+L.result.relative_path;URL.revokeObjectURL(h),v.value=S,e.conf&&e.conf.options&&(e.conf.options.fileUrl||(e.conf.options.fileUrl={value:"",type:"string",label:""}),e.conf.options.fileName||(e.conf.options.fileName={value:"",type:"string",label:""}),e.conf.options.fileUrl.value=S,e.conf.options.fileName.value=L.result.file_name||F.name),J.ElMessage.success("DXF文件上传成功")}else throw new Error(L.msg||"上传失败")}catch(I){console.error("DXF文件上传失败:",I),J.ElMessage.error("DXF文件上传失败: "+((I==null?void 0:I.message)||"未知错误"))}finally{E.value=!1,b.value&&(b.value.value="")}}),R=()=>{v.value&&URL.revokeObjectURL(v.value),v.value="",V.value="",setTimeout(()=>{T()},100)},D=m=>{console.log("DXF 文件加载成功:",m)},O=m=>{console.error("DXF 文件加载失败:",m),J.ElMessage.error("DXF 文件加载失败: "+((m==null?void 0:m.message)||"未知错误"))},x=m=>{m.preventDefault(),m.stopPropagation()},G=m=>{var h;m.preventDefault(),m.stopPropagation();const F=(h=m.dataTransfer)==null?void 0:h.files;if(F&&F.length>0){const d=F[0];if(d.name.toLowerCase().endsWith(".dxf")){if(b.value){const _=new DataTransfer;_.items.add(d),b.value.files=_.files,H({target:b.value})}}else J.ElMessage.warning("请选择 DXF 文件")}};return a.onMounted(()=>{if(e.mode!=="preview"){const m=document.querySelector(".upload-area");m&&(m.addEventListener("dragover",x),m.addEventListener("drop",G))}}),a.onBeforeUnmount(()=>{v.value&&URL.revokeObjectURL(v.value);const m=document.querySelector(".upload-area");m&&(m.removeEventListener("dragover",x),m.removeEventListener("drop",G))}),(m,C)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({borderRadius:`${a.unref(i).radiusSize}px`})},[a.createElementVNode("div",Ut,[v.value?(a.openBlock(),a.createElementBlock("div",jt,[e.mode!=="preview"?(a.openBlock(),a.createElementBlock("div",qt,[a.createElementVNode("span",Kt,a.toDisplayString(V.value),1),a.createElementVNode("button",{class:"change-file-btn",onClick:R,title:"更换文件"},[...C[2]||(C[2]=[a.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[a.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])):a.createCommentVNode("",!0),a.createVNode(a.unref(Et),{ref_key:"viewerRef",ref:o,"dxf-url":v.value,width:"100%",height:"100%","background-color":a.unref(i).backgroundColor,"line-color":a.unref(i).lineColor,"line-width":a.unref(i).lineWidth,"show-toolbar":a.unref(i).showToolbar,"show-info":a.unref(i).showInfo,"show-grid":a.unref(i).showGrid,onLoad:D,onError:O},null,8,["dxf-url","background-color","line-color","line-width","show-toolbar","show-info","show-grid"])])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["upload-area",{"preview-mode":e.mode==="preview"}]),onClick:C[0]||(C[0]=F=>e.mode!=="preview"&&T())},[a.createElementVNode("input",{ref_key:"fileInputRef",ref:b,type:"file",accept:".dxf",onChange:H,style:{display:"none"}},null,544),a.createElementVNode("div",Wt,[(a.openBlock(),a.createElementBlock("svg",Xt,[...C[1]||(C[1]=[a.createElementVNode("path",{d:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z"},null,-1)])])),a.createElementVNode("p",Yt,a.toDisplayString(e.mode==="preview"?m.$t("component.dxf.noFile"):m.$t("component.dxf.uploadText")),1),e.mode!=="preview"?(a.openBlock(),a.createElementBlock("p",Zt,a.toDisplayString(m.$t("component.dxf.uploadHint")),1)):a.createCommentVNode("",!0)])],2))]),a.renderSlot(m.$slots,"default",{},void 0,!0)],4))}})),sn=W._export_sfc(ln,[["__scopeId","data-v-bca1688e"]]);exports.default=sn;
@@ -11,9 +11,9 @@ var D = (i, o, s) => o in i ? N(i, o, { enumerable: !0, configurable: !0, writab
11
11
  return i;
12
12
  }, y = (i, o) => F(i, L(o));
13
13
  import { defineComponent as $, computed as w, openBlock as I, createElementBlock as V, normalizeStyle as O, unref as x, createElementVNode as S, toDisplayString as B, renderSlot as M } from "vue";
14
- import { C as _, s as j, v as H, _ as k } from "./index-CBUg675g.js";
14
+ import { C as _, s as j, v as H, _ as k } from "./index-CPTJIw32.js";
15
15
  import "element-plus";
16
- import { E as P } from "./EChartComponentBase-BXFQtucH.js";
16
+ import { E as P } from "./EChartComponentBase-skupRYzl.js";
17
17
  import { g as G } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as U, D as W } from "./ele-dzc-icon-D6eVpaHp.js";
19
19
  import { u as Z, i as q, a as J } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -1,2 +1,2 @@
1
- "use strict";var N=Object.defineProperty,T=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var E=(a,o,l)=>o in a?N(a,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[o]=l,S=(a,o)=>{for(var l in o||(o={}))F.call(o,l)&&E(a,l,o[l]);if(O)for(var l of O(o))L.call(o,l)&&E(a,l,o[l]);return a},x=(a,o)=>T(a,q(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),m=require("./index-_HLheGV-.cjs");require("element-plus");const I=require("./EChartComponentBase-D4DSf0jl.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-dzc-icon-h5wOUHF0.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),$=require("./install-z6wShIZI.cjs"),w=require("./install-CIT6k8Ga.cjs"),B=require("./install-CltTFs4e.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),H={class:"mix-body"},P=["id"],k={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"区段数据",NAME_EN:"Section Data",ORDER:4,PLATFORM:["pc","screen","mobile"]},U={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",upColor:"#FF9E44",downColor:"#FF4683",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:50,points:100,isSmooth:!1,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},G=[{name:"参数一",fv:"",object_id:""}],W=["name","fv","object_id","source"],Z=["mosaic","statistics","calculate"],J=1,K={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},Q={DEFAULT:k,OPTIONS:U,DATA:G,PARAMS:W,SOURCE:Z,ITEMS:J,COMMON:K},X=s.defineComponent(x(S({},Q),{__name:"dzc",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){C.use([V.install,$.install,w.install,B.install,C.install,M.install,C.install$1,j.install]);const o=a;class l extends I.EChartComponentBase{constructor(){super(...arguments),this.historyCache=null}syncHistoryCache(t,i){this.historyCache={xAxis:t,seriesData:i}}extractStyles(){return x(S({},super.extractStyles()),{upColor:this.getOptionValue("upColor","#FF9E44"),downColor:this.getOptionValue("downColor","#FF4683"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){var u,c;const t=this.Style.value,i=this.props.conf.data[0]||{};return{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[i.name||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor}},{type:"inside",start:0,end:20}],xAxis:[{type:"category",boundaryGap:!1,data:(c=(u=this.historyCache)==null?void 0:u.xAxis)!=null&&c.length?this.historyCache.xAxis:this.getTimeAxis(),axisLabel:{formatter:e=>e.includes(" ")?e.replace(" ",`
1
+ "use strict";var N=Object.defineProperty,T=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var E=(a,o,l)=>o in a?N(a,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[o]=l,S=(a,o)=>{for(var l in o||(o={}))F.call(o,l)&&E(a,l,o[l]);if(O)for(var l of O(o))L.call(o,l)&&E(a,l,o[l]);return a},x=(a,o)=>T(a,q(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),m=require("./index-DoEyCVDU.cjs");require("element-plus");const I=require("./EChartComponentBase-8GSbyY5P.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-dzc-icon-h5wOUHF0.cjs"),C=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),$=require("./install-z6wShIZI.cjs"),w=require("./install-CIT6k8Ga.cjs"),B=require("./install-CltTFs4e.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),H={class:"mix-body"},P=["id"],k={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"区段数据",NAME_EN:"Section Data",ORDER:4,PLATFORM:["pc","screen","mobile"]},U={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",upColor:"#FF9E44",downColor:"#FF4683",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:50,points:100,isSmooth:!1,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},G=[{name:"参数一",fv:"",object_id:""}],W=["name","fv","object_id","source"],Z=["mosaic","statistics","calculate"],J=1,K={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},Q={DEFAULT:k,OPTIONS:U,DATA:G,PARAMS:W,SOURCE:Z,ITEMS:J,COMMON:K},X=s.defineComponent(x(S({},Q),{__name:"dzc",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){C.use([V.install,$.install,w.install,B.install,C.install,M.install,C.install$1,j.install]);const o=a;class l extends I.EChartComponentBase{constructor(){super(...arguments),this.historyCache=null}syncHistoryCache(t,i){this.historyCache={xAxis:t,seriesData:i}}extractStyles(){return x(S({},super.extractStyles()),{upColor:this.getOptionValue("upColor","#FF9E44"),downColor:this.getOptionValue("downColor","#FF4683"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){var u,c;const t=this.Style.value,i=this.props.conf.data[0]||{};return{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[i.name||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor}},{type:"inside",start:0,end:20}],xAxis:[{type:"category",boundaryGap:!1,data:(c=(u=this.historyCache)==null?void 0:u.xAxis)!=null&&c.length?this.historyCache.xAxis:this.getTimeAxis(),axisLabel:{formatter:e=>e.includes(" ")?e.replace(" ",`
2
2
  `):e,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}areaGradient(t,i){return{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:t},{offset:1,color:i}]}}formatSeries(){var e,d;const t=this.Style.value,i=this.props.conf.data[0]||{},u=this.areaGradient(t.upColor,t.downColor),c=(e=this.historyCache)==null?void 0:e.seriesData;return[{name:i.name||"",type:"line",smooth:t.isSmooth,sampling:"average",itemStyle:{color:m.COLORS[0]},lineStyle:{color:m.COLORS[0]},areaStyle:{color:u},data:(d=c==null?void 0:c[0])!=null?d:m.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}]}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:i,common:u}=this.props.conf,c=u.source||"mosaic",e=this.chartObj.getOption();i.forEach((r,f)=>{const v=this.extractDataValue(t,r.fv),A=["statistics","calculate"].includes(c)?t.start_time:t.datetime;A!=null&&(f===0&&e.xAxis[0].data.push(A),e.series[f].data.push(v))});const d=m.addRealtimeData(e.xAxis[0].data,e.series.map(r=>r.data)),p=Number(this.Style.value.points)||100,n=d.times.slice(-p),h=d.data.map(r=>(r==null?void 0:r.slice(-p))||[]);e.xAxis[0].data=n,e.series.forEach((r,f)=>{r.data=h[f]}),this.syncHistoryCache(n,h),this.updateChart(e)}setHistoryData(t){var p;if(!(t!=null&&t.length))return;const i=t[0];if(!((p=i==null?void 0:i.time)!=null&&p.length))return;const u=Number(this.Style.value.points)||100,c=n=>{if(n==null||n===""||n==="-")return null;const h=Number(n);return Number.isFinite(h)?h:null},e=i.time.slice(-u),d=[];t.forEach((n,h)=>{const r=n.data||[];d[h]=r.map(c).slice(-u)}),this.syncHistoryCache(e,d),this.updateChart({xAxis:[{data:e}],series:d.map(n=>({data:n}))})}}const y=new l(o,"dzc");y.setupLifecycle();const g=y.getStyle(),_=y.getEchartId(),z=s.computed(()=>R.generateTitleStyle(o.conf.options));return(b,t)=>(s.openBlock(),s.createElementBlock("div",{class:"mix-component",style:s.normalizeStyle({background:s.unref(g).bgColor,borderRadius:`${s.unref(g).radiusSize}px`})},[s.createElementVNode("div",{class:"mix-title",style:s.normalizeStyle(z.value)},s.toDisplayString(a.conf.caption||a.conf.name),5),s.createElementVNode("div",H,[s.createElementVNode("div",{class:"w-full h-full",id:s.unref(_)},null,8,P)]),s.renderSlot(b.$slots,"default",{},void 0,!0)],4))}})),Y=m._export_sfc(X,[["__scopeId","data-v-b16cb0a2"]]);exports.default=Y;
@@ -1 +1 @@
1
- "use strict";var R=Object.defineProperty,U=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var O=(s,n,l)=>n in s?R(s,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[n]=l,d=(s,n)=>{for(var l in n||(n={}))V.call(n,l)&&O(s,l,n[l]);if(_)for(var l of _(n))j.call(n,l)&&O(s,l,n[l]);return s},b=(s,n)=>U(s,W(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const X=require("./BaseComponent-Yu_LvlWs.cjs"),$=require("./index-_HLheGV-.cjs"),I=require("./mockData-Cj71Qk7-.cjs"),K=require("./EmergencyPlanPanel-Bvr21RAA.cjs"),D=require("./ele-evn-icon-DUQMS-9T.cjs"),G={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"应急预案",NAME_EN:"Emergency Plan",ORDER:3,PLATFORM:["pc","screen"]},J={title:{value:"应急预案",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},Q=[],Y=[],Z=["mosaic"],ee={useAlias:!1,multiObject:!1,source:"mosaic"},te={DEFAULT:G,OPTIONS:J,DATA:Q,PARAMS:Y,SOURCE:Z,COMMON:ee},le=r.defineComponent(b(d({},te),{__name:"emergencyPlan",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const n=s,l=r.reactive(I.getMockPageData()),a=r.reactive(d({},I.MOCK_EXECUTION));class H extends X.BaseComponent{onLinkEvent(e){const o=e.payload||e;if((o==null?void 0:o.type)==="warning-selected"){const i=o.warning,c=l.plans.find(p=>p.warningLevel===i.warningLevel);c&&(l.currentPlan=c)}(o==null?void 0:o.type)==="plans-updated"&&(l.plans=o.plans)}extractStyles(){var o,i,c,p,f,m,g,C,v,y,S,x,h,F,w,E,z,B,P,T;const e=((o=this.props.conf)==null?void 0:o.options)||{};return{title:((i=e.title)==null?void 0:i.value)||"应急预案",bgColor:((c=e.bgColor)==null?void 0:c.value)||"#ffffff",textColor:((p=e.textColor)==null?void 0:p.value)||"#333333",accentColor:((f=e.accentColor)==null?void 0:f.value)||"#409eff",baseFontSize:(g=(m=e.baseFontSize)==null?void 0:m.value)!=null?g:13,titleFontSize:(v=(C=e.titleFontSize)==null?void 0:C.value)!=null?v:14,titleFontWeight:((y=e.titleFontWeight)==null?void 0:y.value)||"600",tableHeaderFontSize:(x=(S=e.tableHeaderFontSize)==null?void 0:S.value)!=null?x:12,tableBodyFontSize:(F=(h=e.tableBodyFontSize)==null?void 0:h.value)!=null?F:12,panelHeaderBgColor:((w=e.panelHeaderBgColor)==null?void 0:w.value)||"#ffffff",tableHeaderBgColor:((E=e.tableHeaderBgColor)==null?void 0:E.value)||"#f5f7fa",tableHeaderColor:((z=e.tableHeaderColor)==null?void 0:z.value)||"#333333",tableBorderColor:((B=e.tableBorderColor)==null?void 0:B.value)||"#ebeef5",linkChannel:((P=e.linkChannel)==null?void 0:P.value)||"landslide",customChannel:((T=e.customChannel)==null?void 0:T.value)||""}}getDefaultData(){return[]}}const u=new H(n,"emergencyPlan"),A=r.computed(()=>u.extractStyles()),N=r.computed(()=>{const t=A.value;return{background:t.bgColor,color:t.textColor,fontSize:t.baseFontSize+"px","--lw-accent":t.accentColor,"--lw-title-size":t.titleFontSize+"px","--lw-title-weight":t.titleFontWeight,"--lw-th-size":t.tableHeaderFontSize+"px","--lw-td-size":t.tableBodyFontSize+"px","--lw-panel-bg":t.bgColor,"--lw-panel-header-bg":t.panelHeaderBgColor,"--lw-table-header-bg":t.tableHeaderBgColor,"--lw-table-header-color":t.tableHeaderColor,"--lw-table-border":t.tableBorderColor}});function k(t){l.currentPlan=t}function M(){if(!l.currentPlan)return;const t=l.currentPlan;a.executionId=`EXE${Date.now()}`,a.planId=t.planId,a.status="running",a.startTime=new Date().toISOString(),a.steps=t.steps.map(o=>b(d({},o),{status:"pending",statusText:"待启动"}));const e=a.steps[0];e&&e.responsibleRole==="system"&&(e.status="completed",e.statusText="已完成",e.startTime=a.startTime,e.endTime=a.startTime),u.publish({type:"plan-started",execution:a})}function q(){}function L(t){const e=a.steps.find(i=>i.stepId===t.stepId);if(!e)return;e.status="completed",e.statusText="已完成",e.endTime=new Date().toISOString(),a.steps.every(i=>i.status==="completed"||i.status==="skipped")&&(a.status="completed",a.endTime=new Date().toISOString())}return r.onMounted(()=>u.init()),r.onBeforeUnmount(()=>u.cleanup()),(t,e)=>(r.openBlock(),r.createElementBlock("div",{class:"ep-wrapper",style:r.normalizeStyle(N.value)},[r.createVNode(K.EmergencyPlanPanel,{plans:l.plans,"current-plan":l.currentPlan,execution:a,onSelectPlan:k,onStartPlan:M,onReportWarning:q,onCompleteStep:L},null,8,["plans","current-plan","execution"]),r.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ne=$._export_sfc(le,[["__scopeId","data-v-1d05462f"]]);exports.default=ne;
1
+ "use strict";var R=Object.defineProperty,U=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var O=(s,n,l)=>n in s?R(s,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[n]=l,d=(s,n)=>{for(var l in n||(n={}))V.call(n,l)&&O(s,l,n[l]);if(_)for(var l of _(n))j.call(n,l)&&O(s,l,n[l]);return s},b=(s,n)=>U(s,W(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const X=require("./BaseComponent-DKuQG62G.cjs"),$=require("./index-DoEyCVDU.cjs"),I=require("./mockData-Cj71Qk7-.cjs"),K=require("./EmergencyPlanPanel-DLvOrE5U.cjs"),D=require("./ele-evn-icon-DUQMS-9T.cjs"),G={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"应急预案",NAME_EN:"Emergency Plan",ORDER:3,PLATFORM:["pc","screen"]},J={title:{value:"应急预案",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},Q=[],Y=[],Z=["mosaic"],ee={useAlias:!1,multiObject:!1,source:"mosaic"},te={DEFAULT:G,OPTIONS:J,DATA:Q,PARAMS:Y,SOURCE:Z,COMMON:ee},le=r.defineComponent(b(d({},te),{__name:"emergencyPlan",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const n=s,l=r.reactive(I.getMockPageData()),a=r.reactive(d({},I.MOCK_EXECUTION));class H extends X.BaseComponent{onLinkEvent(e){const o=e.payload||e;if((o==null?void 0:o.type)==="warning-selected"){const i=o.warning,c=l.plans.find(p=>p.warningLevel===i.warningLevel);c&&(l.currentPlan=c)}(o==null?void 0:o.type)==="plans-updated"&&(l.plans=o.plans)}extractStyles(){var o,i,c,p,f,m,g,C,v,y,S,x,h,F,w,E,z,B,P,T;const e=((o=this.props.conf)==null?void 0:o.options)||{};return{title:((i=e.title)==null?void 0:i.value)||"应急预案",bgColor:((c=e.bgColor)==null?void 0:c.value)||"#ffffff",textColor:((p=e.textColor)==null?void 0:p.value)||"#333333",accentColor:((f=e.accentColor)==null?void 0:f.value)||"#409eff",baseFontSize:(g=(m=e.baseFontSize)==null?void 0:m.value)!=null?g:13,titleFontSize:(v=(C=e.titleFontSize)==null?void 0:C.value)!=null?v:14,titleFontWeight:((y=e.titleFontWeight)==null?void 0:y.value)||"600",tableHeaderFontSize:(x=(S=e.tableHeaderFontSize)==null?void 0:S.value)!=null?x:12,tableBodyFontSize:(F=(h=e.tableBodyFontSize)==null?void 0:h.value)!=null?F:12,panelHeaderBgColor:((w=e.panelHeaderBgColor)==null?void 0:w.value)||"#ffffff",tableHeaderBgColor:((E=e.tableHeaderBgColor)==null?void 0:E.value)||"#f5f7fa",tableHeaderColor:((z=e.tableHeaderColor)==null?void 0:z.value)||"#333333",tableBorderColor:((B=e.tableBorderColor)==null?void 0:B.value)||"#ebeef5",linkChannel:((P=e.linkChannel)==null?void 0:P.value)||"landslide",customChannel:((T=e.customChannel)==null?void 0:T.value)||""}}getDefaultData(){return[]}}const u=new H(n,"emergencyPlan"),A=r.computed(()=>u.extractStyles()),N=r.computed(()=>{const t=A.value;return{background:t.bgColor,color:t.textColor,fontSize:t.baseFontSize+"px","--lw-accent":t.accentColor,"--lw-title-size":t.titleFontSize+"px","--lw-title-weight":t.titleFontWeight,"--lw-th-size":t.tableHeaderFontSize+"px","--lw-td-size":t.tableBodyFontSize+"px","--lw-panel-bg":t.bgColor,"--lw-panel-header-bg":t.panelHeaderBgColor,"--lw-table-header-bg":t.tableHeaderBgColor,"--lw-table-header-color":t.tableHeaderColor,"--lw-table-border":t.tableBorderColor}});function k(t){l.currentPlan=t}function M(){if(!l.currentPlan)return;const t=l.currentPlan;a.executionId=`EXE${Date.now()}`,a.planId=t.planId,a.status="running",a.startTime=new Date().toISOString(),a.steps=t.steps.map(o=>b(d({},o),{status:"pending",statusText:"待启动"}));const e=a.steps[0];e&&e.responsibleRole==="system"&&(e.status="completed",e.statusText="已完成",e.startTime=a.startTime,e.endTime=a.startTime),u.publish({type:"plan-started",execution:a})}function q(){}function L(t){const e=a.steps.find(i=>i.stepId===t.stepId);if(!e)return;e.status="completed",e.statusText="已完成",e.endTime=new Date().toISOString(),a.steps.every(i=>i.status==="completed"||i.status==="skipped")&&(a.status="completed",a.endTime=new Date().toISOString())}return r.onMounted(()=>u.init()),r.onBeforeUnmount(()=>u.cleanup()),(t,e)=>(r.openBlock(),r.createElementBlock("div",{class:"ep-wrapper",style:r.normalizeStyle(N.value)},[r.createVNode(K.EmergencyPlanPanel,{plans:l.plans,"current-plan":l.currentPlan,execution:a,onSelectPlan:k,onStartPlan:M,onReportWarning:q,onCompleteStep:L},null,8,["plans","current-plan","execution"]),r.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ne=$._export_sfc(le,[["__scopeId","data-v-1d05462f"]]);exports.default=ne;
@@ -12,10 +12,10 @@ var T = (r, a, l) => a in r ? L(r, a, { enumerable: !0, configurable: !0, writab
12
12
  }, d = (r, a) => W(r, U(a));
13
13
  import { defineComponent as X, reactive as H, computed as O, onMounted as $, onBeforeUnmount as K, openBlock as q, createElementBlock as G, normalizeStyle as J, createVNode as Q, renderSlot as Y } from "vue";
14
14
  import "html2canvas";
15
- import { B as Z } from "./BaseComponent-DgAX0AyD.js";
16
- import { _ as ee } from "./index-CBUg675g.js";
15
+ import { B as Z } from "./BaseComponent-Dn65PXTp.js";
16
+ import { _ as ee } from "./index-CPTJIw32.js";
17
17
  import { g as te, M as le } from "./mockData-DcqLnbJF.js";
18
- import { E as ae } from "./EmergencyPlanPanel-Uokoto8d.js";
18
+ import { E as ae } from "./EmergencyPlanPanel-C4OsnsPP.js";
19
19
  import { A as oe, D as ne } from "./ele-evn-icon-MWzAujnD.js";
20
20
  const re = {
21
21
  DEFAULT_ICON: ne,
@@ -27,8 +27,8 @@ var V = (l, e, o) => new Promise((_, p) => {
27
27
  v((o = o.apply(l, e)).next());
28
28
  });
29
29
  import { defineComponent as I, ref as L, computed as R, openBlock as F, createElementBlock as H, normalizeStyle as y, unref as f, createElementVNode as S, toDisplayString as m, renderSlot as P } from "vue";
30
- import { B as U } from "./BaseComponent-DgAX0AyD.js";
31
- import { d as k, _ as Y } from "./index-CBUg675g.js";
30
+ import { B as U } from "./BaseComponent-Dn65PXTp.js";
31
+ import { d as k, _ as Y } from "./index-CPTJIw32.js";
32
32
  import { g as $ } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as w, D as W } from "./ele-evn-icon-MWzAujnD.js";
34
34
  const q = { class: "mix-body" }, G = { class: "mix-footer" }, D = "--", J = {
@@ -1 +1 @@
1
- "use strict";var T=Object.defineProperty,D=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var x=(n,o,a)=>o in n?T(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,E=(n,o)=>{for(var a in o||(o={}))M.call(o,a)&&x(n,a,o[a]);if(C)for(var a of C(o))I.call(o,a)&&x(n,a,o[a]);return n},O=(n,o)=>D(n,N(o));var A=(n,o,a)=>new Promise((y,p)=>{var u=c=>{try{S(a.next(c))}catch(f){p(f)}},v=c=>{try{S(a.throw(c))}catch(f){p(f)}},S=c=>c.done?y(c.value):Promise.resolve(c.value).then(u,v);S((a=a.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),B=require("./BaseComponent-Yu_LvlWs.cjs"),b=require("./index-_HLheGV-.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),L={class:"mix-body"},F={class:"mix-footer"},z="--",P={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"状态卡片",NAME_EN:"State",ORDER:3,PLATFORM:["pc","screen","mobile"]},R={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",titleSize:14,textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},U=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}],q=["fv","status_fv"],H=["mosaic"],$={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},k=1,Y={DEFAULT:P,OPTIONS:R,DATA:U,PARAMS:q,SOURCE:H,ITEMS:k,COMMON:$},w=t.defineComponent(O(E({},Y),{__name:"evn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const o=n,a=t.ref(b.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends B.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return A(this,null,function*(){var s;this.Style.value=this.extractStyles(),this.applyTheme(),(s=this.props.conf.data)!=null&&s.length||(this.props.conf.data=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}])})}setHistoryData(s){if(!s)return;const{data:i}=this.props.conf;!i||!Array.isArray(i)||!i.length||i.forEach((e,r)=>{var g;try{const l=s[r].data[0];if(!l)return;const h=e==null?void 0:e.fv,_=e==null?void 0:e.status_fv;if(h){const d=l==null?void 0:l[h];d!=null&&(e.value=d)}if(_){const d=l==null?void 0:l[_];d!=null&&(e.statusValue=d)}const m=(g=l==null?void 0:l.time)!=null?g:l==null?void 0:l.datetime;m&&(a.value=m)}catch(l){}})}setSocketData(s){if(!s)return;const{data:i}=this.props.conf;!i||!Array.isArray(i)||i.forEach(e=>{var r;try{e.value=(r=this.extractDataValue(s,e.fv))!=null?r:z,e.statusValue=this.extractDataValue(s,e.status_fv),s.datetime&&(a.value=s.datetime)}catch(g){e.value=z}})}}const p=new y(o,"evn");p.setupLifecycle();const u=p.getStyle(),v=o.conf,S=t.computed(()=>j.generateTitleStyle(o.conf.options)),c=()=>{var e;const{data:f}=o.conf,s=f[0];let i={color:"",text:""};return(e=s==null?void 0:s.status)==null||e.forEach(r=>{String(r.code)===String(s.statusValue)&&(i={text:r.text,color:r.color})}),i};return(f,s)=>{var i,e,r;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(u).bgColor,borderRadius:`${t.unref(u).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(c().text||t.unref(v).caption||""),5),t.createElementVNode("div",L,[t.createElementVNode("div",{class:"body-value",style:t.normalizeStyle({fontSize:`${t.unref(u).valueSize}px`,color:t.unref(u).textColor})},t.toDisplayString((r=(e=(i=t.unref(v))==null?void 0:i.data)==null?void 0:e[0])==null?void 0:r.value),5)]),t.createElementVNode("div",F,[t.createElementVNode("div",{class:"footer-time",style:t.normalizeStyle({fontSize:`${t.unref(u).timeSize}px`,color:t.unref(u).textColor})},t.toDisplayString(a.value),5)]),t.renderSlot(f.$slots,"default",{},void 0,!0)],4)}}})),W=b._export_sfc(w,[["__scopeId","data-v-0dd1fa40"]]);exports.default=W;
1
+ "use strict";var T=Object.defineProperty,D=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var x=(n,o,a)=>o in n?T(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,E=(n,o)=>{for(var a in o||(o={}))M.call(o,a)&&x(n,a,o[a]);if(C)for(var a of C(o))I.call(o,a)&&x(n,a,o[a]);return n},O=(n,o)=>D(n,N(o));var A=(n,o,a)=>new Promise((y,p)=>{var u=c=>{try{S(a.next(c))}catch(f){p(f)}},v=c=>{try{S(a.throw(c))}catch(f){p(f)}},S=c=>c.done?y(c.value):Promise.resolve(c.value).then(u,v);S((a=a.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),B=require("./BaseComponent-DKuQG62G.cjs"),b=require("./index-DoEyCVDU.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),L={class:"mix-body"},F={class:"mix-footer"},z="--",P={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"状态卡片",NAME_EN:"State",ORDER:3,PLATFORM:["pc","screen","mobile"]},R={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",titleSize:14,textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},U=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}],q=["fv","status_fv"],H=["mosaic"],$={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},k=1,Y={DEFAULT:P,OPTIONS:R,DATA:U,PARAMS:q,SOURCE:H,ITEMS:k,COMMON:$},w=t.defineComponent(O(E({},Y),{__name:"evn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const o=n,a=t.ref(b.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends B.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return A(this,null,function*(){var s;this.Style.value=this.extractStyles(),this.applyTheme(),(s=this.props.conf.data)!=null&&s.length||(this.props.conf.data=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}])})}setHistoryData(s){if(!s)return;const{data:i}=this.props.conf;!i||!Array.isArray(i)||!i.length||i.forEach((e,r)=>{var g;try{const l=s[r].data[0];if(!l)return;const h=e==null?void 0:e.fv,_=e==null?void 0:e.status_fv;if(h){const d=l==null?void 0:l[h];d!=null&&(e.value=d)}if(_){const d=l==null?void 0:l[_];d!=null&&(e.statusValue=d)}const m=(g=l==null?void 0:l.time)!=null?g:l==null?void 0:l.datetime;m&&(a.value=m)}catch(l){}})}setSocketData(s){if(!s)return;const{data:i}=this.props.conf;!i||!Array.isArray(i)||i.forEach(e=>{var r;try{e.value=(r=this.extractDataValue(s,e.fv))!=null?r:z,e.statusValue=this.extractDataValue(s,e.status_fv),s.datetime&&(a.value=s.datetime)}catch(g){e.value=z}})}}const p=new y(o,"evn");p.setupLifecycle();const u=p.getStyle(),v=o.conf,S=t.computed(()=>j.generateTitleStyle(o.conf.options)),c=()=>{var e;const{data:f}=o.conf,s=f[0];let i={color:"",text:""};return(e=s==null?void 0:s.status)==null||e.forEach(r=>{String(r.code)===String(s.statusValue)&&(i={text:r.text,color:r.color})}),i};return(f,s)=>{var i,e,r;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(u).bgColor,borderRadius:`${t.unref(u).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(c().text||t.unref(v).caption||""),5),t.createElementVNode("div",L,[t.createElementVNode("div",{class:"body-value",style:t.normalizeStyle({fontSize:`${t.unref(u).valueSize}px`,color:t.unref(u).textColor})},t.toDisplayString((r=(e=(i=t.unref(v))==null?void 0:i.data)==null?void 0:e[0])==null?void 0:r.value),5)]),t.createElementVNode("div",F,[t.createElementVNode("div",{class:"footer-time",style:t.normalizeStyle({fontSize:`${t.unref(u).timeSize}px`,color:t.unref(u).textColor})},t.toDisplayString(a.value),5)]),t.renderSlot(f.$slots,"default",{},void 0,!0)],4)}}})),W=b._export_sfc(w,[["__scopeId","data-v-0dd1fa40"]]);exports.default=W;
@@ -31,9 +31,9 @@ import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/button/style/css";
32
32
  import { defineComponent as lt, ref as T, computed as R, watch as ut, openBlock as dt, createElementBlock as ht, normalizeStyle as ft, createElementVNode as E, toDisplayString as q, createVNode as mt, withCtx as pt, createTextVNode as vt, unref as bt, renderSlot as yt } from "vue";
33
33
  import { u as gt } from "./safeI18n-C5fF3KBo.js";
34
- import { d as N, _ as Ct } from "./index-CBUg675g.js";
34
+ import { d as N, _ as Ct } from "./index-CPTJIw32.js";
35
35
  import "element-plus";
36
- import { E as jt } from "./EChartComponentBase-BXFQtucH.js";
36
+ import { E as jt } from "./EChartComponentBase-skupRYzl.js";
37
37
  import "./index-eIsZnzkc.js";
38
38
  import { A as Dt, D as Ot } from "./ele-vlu-icon-Bg6EHZdJ.js";
39
39
  import { cn as G } from "./echarts-Bp7QN4X6.js";
@@ -350,7 +350,7 @@ const wt = { class: "chart-header" }, It = { class: "chart-title" }, _t = { clas
350
350
  h.object_id = o;
351
351
  }), m.multiObject || (m.object_id = o);
352
352
  try {
353
- const h = yield import("./history-AbuttL7F.js"), w = yield new h.default().getHistoryData(n, "evolutionChart");
353
+ const h = yield import("./history-CY_TCu9h.js"), w = yield new h.default().getHistoryData(n, "evolutionChart");
354
354
  if (j !== a) {
355
355
  S = !1;
356
356
  return;
@@ -1 +1 @@
1
- "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var B=(b,h,n)=>h in b?te(b,h,{enumerable:!0,configurable:!0,writable:!0,value:n}):b[h]=n,L=(b,h)=>{for(var n in h||(h={}))se.call(h,n)&&B(b,n,h[n]);if(z)for(var n of z(h))ae.call(h,n)&&B(b,n,h[n]);return b},M=(b,h)=>oe(b,ne(h));var V=(b,h,n)=>new Promise((y,C)=>{var D=i=>{try{k(n.next(i))}catch(S){C(S)}},O=i=>{try{k(n.throw(i))}catch(S){C(S)}},k=i=>i.done?y(i.value):Promise.resolve(i.value).then(D,O);k((n=n.apply(b,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const u=require("vue"),ie=require("./safeI18n-D-TYNVsv.cjs"),N=require("./index-_HLheGV-.cjs");require("element-plus");const re=require("./EChartComponentBase-D4DSf0jl.cjs");require("./index-CJgyJTvc.cjs");const W=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),Y=require("./echarts-BB8O2KSA.cjs"),le={class:"chart-header"},ue={class:"chart-title"},de={class:"chart-actions"},he=["id"],fe={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"裂缝演变图",NAME_EN:"EvolutionChart",ORDER:2,PLATFORM:["pc","screen"]},me={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleSize:{value:14,type:"number",label:"component.options.titleSize"},showLegend:{value:!0,type:"switch",label:"component.options.showLegend"},showDataZoom:{value:!0,type:"switch",label:"component.crack.showDataZoom"},lineWidth:{value:3,type:"number",label:"component.options.lineWidth"},showArea:{value:!0,type:"switch",label:"component.line.showArea"},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"宽度累计变化量",fv:"",fvDeviceName:"",object_id:""}],ve=["name","fv","fvDeviceName","object_id"],be=["mosaic","statistics","calculate"],ye={useAlias:!1,multiObject:!0,source:"mosaic"},ge=50,Ce={DEFAULT:fe,OPTIONS:me,DATA:pe,PARAMS:ve,SOURCE:be,ITEMS:ge,COMMON:ye},je=u.defineComponent(M(L({},Ce),{__name:"evolutionChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const{t:h}=ie.useSafeI18n({"component.crack.evolutionChart":"裂缝演变图","component.crack.exportImage":"导出图像","component.crack.widthCumulativeChangeUnit":"宽度累计变化量(mm)"}),n=b,y=u.ref(new Map),C=u.ref(new Map),D=u.ref([]);let O=0;class k extends re.EChartComponentBase{constructor(){super(...arguments),this.deviceColors=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4"],this.yAxisLabel="",this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(e){this.currentObjectId=e}extractStyles(){const e=this.getOptionValue("linkChannel","crack"),r=this.getOptionValue("customChannel","");return M(L({},super.extractStyles()),{showLegend:this.getOptionValue("showLegend",!0),showDataZoom:this.getOptionValue("showDataZoom",!0),lineWidth:this.getOptionValue("lineWidth",3),showArea:this.getOptionValue("showArea",!0),linkChannel:e==="custom"&&r?r:e})}setYAxisLabel(e){this.yAxisLabel=e}needsHistoryData(){return!1}onPreview(){return V(this,null,function*(){const{common:e,data:r}=this.props.conf,a=[];if(e.multiObject&&Array.isArray(r)){const c=new Set;for(const g of r){const l=yield this.resolveObjectId(g);!l||c.has(l)||(c.add(l),a.push(l))}}else{const c=yield this.resolveObjectId();c&&(this.currentObjectId=c,a.push(c))}a.length>0&&T({payload:{type:"filter",objectIds:a}})})}onLinkEvent(e){T(e)}getChartOption(){const{data:e,common:r}=this.props.conf,a=this.Style.value,c=D.value,g=c.length>1;let l;if(this.props.mode==="edit"){l=[];for(let s=30;s>=0;s--)l.push(N.dayjs().subtract(s,"day").format("MM-DD"))}else{const s=new Set;if(g)for(const d of c)e.forEach(t=>{const o=`${d}-${t.name||t.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});else e.forEach(d=>{const t=r.multiObject?this.resolveObjectId(d):this.currentObjectId||this.resolveObjectId();if(!t)return;const o=`${t}-${d.name||d.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});l=Array.from(s).sort()}const p=[];let m=0;if(g&&this.props.mode!=="edit")for(const s of c){const d=C.value.get(s)||s.slice(-6);for(const t of e){const o=this.deviceColors[m%this.deviceColors.length],v=`${s}-${t.name||t.fv||"default"}`,f=`${d}-${t.name||t.fv||"default"}`;p.push({name:f,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:o,width:a.lineWidth},itemStyle:{color:o},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${o}4D`},{offset:1,color:`${o}0D`}])}:void 0,data:this.getEvolutionData(v,l)}),m++}}else e.filter(s=>(r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId())||this.props.mode==="edit").forEach((s,d)=>{const t=this.deviceColors[d%this.deviceColors.length],o=r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId(),v=`${o}-${s.name||s.fv||"default"}`,f=s.name||s.fv||"default",A=o&&C.value.get(o)||"",w=A?`${A}-${f}`:f;p.push({name:w,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:t,width:a.lineWidth},itemStyle:{color:t},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${t}4D`},{offset:1,color:`${t}0D`}])}:void 0,data:this.getEvolutionData(v,l)})});return{tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:s=>{let d=`<div style="font-weight: bold;">${s[0].axisValue}</div>`;return s.forEach(t=>{var o;d+=`<div>${t.marker} ${t.seriesName}: ${(o=t.value)!=null?o:"--"} mm</div>`}),d}},legend:{show:a.showLegend,type:"scroll",top:10,textStyle:{color:a.textColor}},grid:{top:60,left:60,right:40,bottom:a.showDataZoom?80:40},xAxis:{type:"category",data:l,axisLabel:{interval:"auto",rotate:15,fontSize:10,color:a.textColor}},yAxis:{type:"value",name:this.yAxisLabel||"宽度累计变化量(mm)",nameTextStyle:{color:a.textColor},axisLabel:{color:a.textColor},splitLine:{lineStyle:{type:"dashed",opacity:.5}}},dataZoom:a.showDataZoom?[{type:"inside"},{type:"slider",bottom:10,height:15}]:[],series:p}}generateTimeLabels(){return[]}getEvolutionData(e,r){if(this.props.mode==="edit"){const c=[];for(let p=30;p>=0;p--)c.push(N.dayjs().subtract(p,"day").format("MM-DD"));const g=.1,l=.02+Math.random()*.03;return Array.from({length:c.length},(p,m)=>{const s=g+l*m;return parseFloat(s.toFixed(2))})}return(y.value.get(e)||[]).map(c=>c.value)}setSocketData(e){if(!e)return;const r=e.object_id||e.objectId||"";if(r&&D.value.length>0&&!D.value.includes(r))return;super.setSocketData(e);const{data:a,common:c}=this.props.conf,g=N.dayjs().format("MM-DD HH:mm:ss"),l=D.value.length>1;a.forEach((m,s)=>{const d=l&&r?r:c.multiObject?this.resolveObjectId(m):this.currentObjectId||this.resolveObjectId();if(!d)return;if(m.fvDeviceName){const o=this.extractDataValue(e,m.fvDeviceName);o?C.value.set(d,String(o)):e.data&&e.data[m.fvDeviceName]&&C.value.set(d,String(e.data[m.fvDeviceName]))}let t=m.value;if((!t||t==="--")&&(t=this.extractDataValue(e,m.fv)),t!=null&&t!=="--"){const o=`${d}-${m.name||m.fv||"default"}`,v=y.value.get(o)||[],f=typeof t=="number"?t:parseFloat(t);if(isNaN(f))return;v.push({time:g,value:f}),v.length>200&&v.shift(),y.value.set(o,v)}});const p=this.getChartInstance();p&&p.setOption(this.getChartOption())}}const i=new k(n,"evolutionChart");i.setYAxisLabel(h("component.crack.widthCumulativeChangeUnit")),i.setupLifecycle();const S=i.getStyle(),Z=i.getEchartId();let $=null,x=!1;const T=j=>V(null,null,function*(){var t;const{payload:e}=j;if(!e)return;e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&($={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId||e.object_id?[e.objectId||e.object_id]:[];if(!r.length||n.mode!=="preview")return;x=!0;const a=++O;D.value=r,i.setCurrentObjectId([...r].sort().join(",")),y.value.clear(),C.value.clear();const c=(t=i.session)==null?void 0:t.value;if(!c){x=!1;return}const g=n.conf.id;c.componentRequests&&c.componentRequests.delete(g),typeof c.unsubscribeComponent=="function"&&c.unsubscribeComponent(g);const{data:l,common:p}=n.conf;$&&(p.historyTimeRange=$),n.conf.options||(n.conf.options={});const m=n.conf.options.points,s=Object.prototype.hasOwnProperty.call(n.conf.options,"points");(!m||Number(m)<24)&&(n.conf.options.points=24);for(const o of r){if(O!==a){x=!1;return}Array.isArray(l)&&l.forEach(f=>{f.object_id=o}),p.multiObject||(p.object_id=o);try{const f=yield Promise.resolve().then(()=>require("./history-RyapjVQj.cjs")),w=yield new f.default().getHistoryData(n,"evolutionChart");if(O!==a){x=!1;return}const R=(w==null?void 0:w.history)||(Array.isArray(w)?w:[]);R.length>0&&l.forEach((_,X)=>{if(!_.fv)return;const q=`${o}-${_.name||_.fv||"default"}`,P=R[X];if(!Array.isArray(P)){y.value.set(q,[]);return}const ee=[...P].sort((I,E)=>new Date(I.time||I.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),H=[];ee.forEach(I=>{const E=I.time||I.datetime,U=I[_.fv];if(E&&U!=null){const F=parseFloat(U);isNaN(F)||H.push({time:N.dayjs(E).format("MM-DD HH:mm:ss"),value:F})}_.fvDeviceName&&I[_.fvDeviceName]&&C.value.set(o,String(I[_.fvDeviceName]))}),y.value.set(q,H)})}catch(f){console.warn("[裂缝演变图] 历史数据获取失败:",f)}if(O!==a){x=!1;return}const v=i.getSource();i.subscribeBySource(v,o),l&&Array.isArray(l)&&l.forEach(f=>{const A=`${o}-${f.name||f.fv||"default"}`;y.value.has(A)||y.value.set(A,[])})}if(s?n.conf.options.points=m:delete n.conf.options.points,x=!1,O!==a)return;const d=i.getChartInstance();d&&d.setOption(i.getChartOption(),!0),c.registerComponent({id:g,request:null,onUpdate:(o,v)=>{O===a&&o==="realtime"&&i.setSocketData(v)}})}),G=u.computed(()=>({background:S.value.bgColor,color:S.value.textColor})),J=u.computed(()=>h("component.crack.evolutionChart")),K=u.computed(()=>h("component.crack.exportImage"));u.watch(()=>h("component.crack.widthCumulativeChangeUnit"),j=>{i.setYAxisLabel(j),i.init()});const Q=()=>{const j=i.getChartInstance();if(!j)return;const e=document.createElement("a");e.href=j.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.evolutionChart")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(j,e)=>{const r=ce.ElButton;return u.openBlock(),u.createElementBlock("div",{class:"mix-component crack-evolution",style:u.normalizeStyle(G.value)},[u.createElementVNode("div",le,[u.createElementVNode("span",ue,"📊 "+u.toDisplayString(J.value),1),u.createElementVNode("div",de,[u.createVNode(r,{size:"small",onClick:Q},{default:u.withCtx(()=>[u.createTextVNode("💾 "+u.toDisplayString(K.value),1)]),_:1})])]),u.createElementVNode("div",{id:u.unref(Z),class:"chart-container"},null,8,he),u.renderSlot(j.$slots,"default",{},void 0,!0)],4)}}})),Oe=N._export_sfc(je,[["__scopeId","data-v-da6b39e5"]]);exports.default=Oe;
1
+ "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var B=(b,h,n)=>h in b?te(b,h,{enumerable:!0,configurable:!0,writable:!0,value:n}):b[h]=n,L=(b,h)=>{for(var n in h||(h={}))se.call(h,n)&&B(b,n,h[n]);if(z)for(var n of z(h))ae.call(h,n)&&B(b,n,h[n]);return b},M=(b,h)=>oe(b,ne(h));var V=(b,h,n)=>new Promise((y,C)=>{var D=i=>{try{k(n.next(i))}catch(S){C(S)}},O=i=>{try{k(n.throw(i))}catch(S){C(S)}},k=i=>i.done?y(i.value):Promise.resolve(i.value).then(D,O);k((n=n.apply(b,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ce=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const u=require("vue"),ie=require("./safeI18n-D-TYNVsv.cjs"),N=require("./index-DoEyCVDU.cjs");require("element-plus");const re=require("./EChartComponentBase-8GSbyY5P.cjs");require("./index-CJgyJTvc.cjs");const W=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),Y=require("./echarts-BB8O2KSA.cjs"),le={class:"chart-header"},ue={class:"chart-title"},de={class:"chart-actions"},he=["id"],fe={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"裂缝演变图",NAME_EN:"EvolutionChart",ORDER:2,PLATFORM:["pc","screen"]},me={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleSize:{value:14,type:"number",label:"component.options.titleSize"},showLegend:{value:!0,type:"switch",label:"component.options.showLegend"},showDataZoom:{value:!0,type:"switch",label:"component.crack.showDataZoom"},lineWidth:{value:3,type:"number",label:"component.options.lineWidth"},showArea:{value:!0,type:"switch",label:"component.line.showArea"},linkChannel:{value:"crack",type:"select",label:"component.linkChannel",options:[{label:"裂缝监测",value:"crack"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"深部位移",value:"deepDisplacement"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},pe=[{name:"宽度累计变化量",fv:"",fvDeviceName:"",object_id:""}],ve=["name","fv","fvDeviceName","object_id"],be=["mosaic","statistics","calculate"],ye={useAlias:!1,multiObject:!0,source:"mosaic"},ge=50,Ce={DEFAULT:fe,OPTIONS:me,DATA:pe,PARAMS:ve,SOURCE:be,ITEMS:ge,COMMON:ye},je=u.defineComponent(M(L({},Ce),{__name:"evolutionChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const{t:h}=ie.useSafeI18n({"component.crack.evolutionChart":"裂缝演变图","component.crack.exportImage":"导出图像","component.crack.widthCumulativeChangeUnit":"宽度累计变化量(mm)"}),n=b,y=u.ref(new Map),C=u.ref(new Map),D=u.ref([]);let O=0;class k extends re.EChartComponentBase{constructor(){super(...arguments),this.deviceColors=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4"],this.yAxisLabel="",this.currentObjectId=""}getCurrentObjectId(){return this.currentObjectId}setCurrentObjectId(e){this.currentObjectId=e}extractStyles(){const e=this.getOptionValue("linkChannel","crack"),r=this.getOptionValue("customChannel","");return M(L({},super.extractStyles()),{showLegend:this.getOptionValue("showLegend",!0),showDataZoom:this.getOptionValue("showDataZoom",!0),lineWidth:this.getOptionValue("lineWidth",3),showArea:this.getOptionValue("showArea",!0),linkChannel:e==="custom"&&r?r:e})}setYAxisLabel(e){this.yAxisLabel=e}needsHistoryData(){return!1}onPreview(){return V(this,null,function*(){const{common:e,data:r}=this.props.conf,a=[];if(e.multiObject&&Array.isArray(r)){const c=new Set;for(const g of r){const l=yield this.resolveObjectId(g);!l||c.has(l)||(c.add(l),a.push(l))}}else{const c=yield this.resolveObjectId();c&&(this.currentObjectId=c,a.push(c))}a.length>0&&T({payload:{type:"filter",objectIds:a}})})}onLinkEvent(e){T(e)}getChartOption(){const{data:e,common:r}=this.props.conf,a=this.Style.value,c=D.value,g=c.length>1;let l;if(this.props.mode==="edit"){l=[];for(let s=30;s>=0;s--)l.push(N.dayjs().subtract(s,"day").format("MM-DD"))}else{const s=new Set;if(g)for(const d of c)e.forEach(t=>{const o=`${d}-${t.name||t.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});else e.forEach(d=>{const t=r.multiObject?this.resolveObjectId(d):this.currentObjectId||this.resolveObjectId();if(!t)return;const o=`${t}-${d.name||d.fv||"default"}`;(y.value.get(o)||[]).forEach(f=>s.add(f.time))});l=Array.from(s).sort()}const p=[];let m=0;if(g&&this.props.mode!=="edit")for(const s of c){const d=C.value.get(s)||s.slice(-6);for(const t of e){const o=this.deviceColors[m%this.deviceColors.length],v=`${s}-${t.name||t.fv||"default"}`,f=`${d}-${t.name||t.fv||"default"}`;p.push({name:f,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:o,width:a.lineWidth},itemStyle:{color:o},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${o}4D`},{offset:1,color:`${o}0D`}])}:void 0,data:this.getEvolutionData(v,l)}),m++}}else e.filter(s=>(r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId())||this.props.mode==="edit").forEach((s,d)=>{const t=this.deviceColors[d%this.deviceColors.length],o=r.multiObject?this.resolveObjectId(s):this.currentObjectId||this.resolveObjectId(),v=`${o}-${s.name||s.fv||"default"}`,f=s.name||s.fv||"default",A=o&&C.value.get(o)||"",w=A?`${A}-${f}`:f;p.push({name:w,type:"line",smooth:!0,showSymbol:!0,symbol:"circle",symbolSize:6,connectNulls:!0,lineStyle:{color:t,width:a.lineWidth},itemStyle:{color:t},areaStyle:a.showArea?{color:new Y.LinearGradient(0,0,0,1,[{offset:0,color:`${t}4D`},{offset:1,color:`${t}0D`}])}:void 0,data:this.getEvolutionData(v,l)})});return{tooltip:{trigger:"axis",axisPointer:{type:"cross"},formatter:s=>{let d=`<div style="font-weight: bold;">${s[0].axisValue}</div>`;return s.forEach(t=>{var o;d+=`<div>${t.marker} ${t.seriesName}: ${(o=t.value)!=null?o:"--"} mm</div>`}),d}},legend:{show:a.showLegend,type:"scroll",top:10,textStyle:{color:a.textColor}},grid:{top:60,left:60,right:40,bottom:a.showDataZoom?80:40},xAxis:{type:"category",data:l,axisLabel:{interval:"auto",rotate:15,fontSize:10,color:a.textColor}},yAxis:{type:"value",name:this.yAxisLabel||"宽度累计变化量(mm)",nameTextStyle:{color:a.textColor},axisLabel:{color:a.textColor},splitLine:{lineStyle:{type:"dashed",opacity:.5}}},dataZoom:a.showDataZoom?[{type:"inside"},{type:"slider",bottom:10,height:15}]:[],series:p}}generateTimeLabels(){return[]}getEvolutionData(e,r){if(this.props.mode==="edit"){const c=[];for(let p=30;p>=0;p--)c.push(N.dayjs().subtract(p,"day").format("MM-DD"));const g=.1,l=.02+Math.random()*.03;return Array.from({length:c.length},(p,m)=>{const s=g+l*m;return parseFloat(s.toFixed(2))})}return(y.value.get(e)||[]).map(c=>c.value)}setSocketData(e){if(!e)return;const r=e.object_id||e.objectId||"";if(r&&D.value.length>0&&!D.value.includes(r))return;super.setSocketData(e);const{data:a,common:c}=this.props.conf,g=N.dayjs().format("MM-DD HH:mm:ss"),l=D.value.length>1;a.forEach((m,s)=>{const d=l&&r?r:c.multiObject?this.resolveObjectId(m):this.currentObjectId||this.resolveObjectId();if(!d)return;if(m.fvDeviceName){const o=this.extractDataValue(e,m.fvDeviceName);o?C.value.set(d,String(o)):e.data&&e.data[m.fvDeviceName]&&C.value.set(d,String(e.data[m.fvDeviceName]))}let t=m.value;if((!t||t==="--")&&(t=this.extractDataValue(e,m.fv)),t!=null&&t!=="--"){const o=`${d}-${m.name||m.fv||"default"}`,v=y.value.get(o)||[],f=typeof t=="number"?t:parseFloat(t);if(isNaN(f))return;v.push({time:g,value:f}),v.length>200&&v.shift(),y.value.set(o,v)}});const p=this.getChartInstance();p&&p.setOption(this.getChartOption())}}const i=new k(n,"evolutionChart");i.setYAxisLabel(h("component.crack.widthCumulativeChangeUnit")),i.setupLifecycle();const S=i.getStyle(),Z=i.getEchartId();let $=null,x=!1;const T=j=>V(null,null,function*(){var t;const{payload:e}=j;if(!e)return;e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&($={start_time:e.dateRange[0],end_time:e.dateRange[1]});const r=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId||e.object_id?[e.objectId||e.object_id]:[];if(!r.length||n.mode!=="preview")return;x=!0;const a=++O;D.value=r,i.setCurrentObjectId([...r].sort().join(",")),y.value.clear(),C.value.clear();const c=(t=i.session)==null?void 0:t.value;if(!c){x=!1;return}const g=n.conf.id;c.componentRequests&&c.componentRequests.delete(g),typeof c.unsubscribeComponent=="function"&&c.unsubscribeComponent(g);const{data:l,common:p}=n.conf;$&&(p.historyTimeRange=$),n.conf.options||(n.conf.options={});const m=n.conf.options.points,s=Object.prototype.hasOwnProperty.call(n.conf.options,"points");(!m||Number(m)<24)&&(n.conf.options.points=24);for(const o of r){if(O!==a){x=!1;return}Array.isArray(l)&&l.forEach(f=>{f.object_id=o}),p.multiObject||(p.object_id=o);try{const f=yield Promise.resolve().then(()=>require("./history-Dm7563t_.cjs")),w=yield new f.default().getHistoryData(n,"evolutionChart");if(O!==a){x=!1;return}const R=(w==null?void 0:w.history)||(Array.isArray(w)?w:[]);R.length>0&&l.forEach((_,X)=>{if(!_.fv)return;const q=`${o}-${_.name||_.fv||"default"}`,P=R[X];if(!Array.isArray(P)){y.value.set(q,[]);return}const ee=[...P].sort((I,E)=>new Date(I.time||I.datetime||"").getTime()-new Date(E.time||E.datetime||"").getTime()),H=[];ee.forEach(I=>{const E=I.time||I.datetime,U=I[_.fv];if(E&&U!=null){const F=parseFloat(U);isNaN(F)||H.push({time:N.dayjs(E).format("MM-DD HH:mm:ss"),value:F})}_.fvDeviceName&&I[_.fvDeviceName]&&C.value.set(o,String(I[_.fvDeviceName]))}),y.value.set(q,H)})}catch(f){console.warn("[裂缝演变图] 历史数据获取失败:",f)}if(O!==a){x=!1;return}const v=i.getSource();i.subscribeBySource(v,o),l&&Array.isArray(l)&&l.forEach(f=>{const A=`${o}-${f.name||f.fv||"default"}`;y.value.has(A)||y.value.set(A,[])})}if(s?n.conf.options.points=m:delete n.conf.options.points,x=!1,O!==a)return;const d=i.getChartInstance();d&&d.setOption(i.getChartOption(),!0),c.registerComponent({id:g,request:null,onUpdate:(o,v)=>{O===a&&o==="realtime"&&i.setSocketData(v)}})}),G=u.computed(()=>({background:S.value.bgColor,color:S.value.textColor})),J=u.computed(()=>h("component.crack.evolutionChart")),K=u.computed(()=>h("component.crack.exportImage"));u.watch(()=>h("component.crack.widthCumulativeChangeUnit"),j=>{i.setYAxisLabel(j),i.init()});const Q=()=>{const j=i.getChartInstance();if(!j)return;const e=document.createElement("a");e.href=j.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`${h("component.crack.evolutionChart")}_${N.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()};return(j,e)=>{const r=ce.ElButton;return u.openBlock(),u.createElementBlock("div",{class:"mix-component crack-evolution",style:u.normalizeStyle(G.value)},[u.createElementVNode("div",le,[u.createElementVNode("span",ue,"📊 "+u.toDisplayString(J.value),1),u.createElementVNode("div",de,[u.createVNode(r,{size:"small",onClick:Q},{default:u.withCtx(()=>[u.createTextVNode("💾 "+u.toDisplayString(K.value),1)]),_:1})])]),u.createElementVNode("div",{id:u.unref(Z),class:"chart-container"},null,8,he),u.renderSlot(j.$slots,"default",{},void 0,!0)],4)}}})),Oe=N._export_sfc(je,[["__scopeId","data-v-da6b39e5"]]);exports.default=Oe;
@@ -27,8 +27,8 @@ var H = (c, d, a) => new Promise((U, _) => {
27
27
  p((a = a.apply(c, d)).next());
28
28
  });
29
29
  import { defineComponent as ve, ref as h, getCurrentInstance as fe, computed as W, onMounted as me, onBeforeUnmount as he, openBlock as i, createElementBlock as r, normalizeStyle as we, unref as ye, createElementVNode as o, normalizeClass as G, toDisplayString as y, createCommentVNode as x, createStaticVNode as xe, Fragment as O, renderList as P, createTextVNode as J, renderSlot as ge } from "vue";
30
- import { B as Ve } from "./BaseComponent-DgAX0AyD.js";
31
- import { u as _e, i as be, j as Ce, a as Le, F as Te, _ as ke } from "./index-CBUg675g.js";
30
+ import { B as Ve } from "./BaseComponent-Dn65PXTp.js";
31
+ import { u as _e, i as be, j as Ce, a as Le, F as Te, _ as ke } from "./index-CPTJIw32.js";
32
32
  import { ElMessage as A } from "element-plus";
33
33
  import { A as He, D as Se } from "./ele-vdo-icon-DcWebTR5.js";
34
34
  const Ae = { class: "mix-body" }, Ue = { class: "upload-content" }, Me = { class: "upload-title" }, Ee = {