mixdashboards 1.0.32 → 1.0.39

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 (413) hide show
  1. package/dist/CoordinateSystem-BMkAxlii.js +6 -0
  2. package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
  3. package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
  4. package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
  5. package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
  6. package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
  7. package/dist/MarkerView-BG_nYESR.cjs +1 -0
  8. package/dist/MarkerView-CtWJi5UZ.js +192 -0
  9. package/dist/RoamController--cgD3aNm.cjs +1 -0
  10. package/dist/RoamController-DmBIwcAZ.js +124 -0
  11. package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
  12. package/dist/UniverSheet-MSHzUXq0.js +180 -0
  13. package/dist/VisualMapping-D-MA7S0X.js +260 -0
  14. package/dist/VisualMapping-MilpZvD_.cjs +1 -0
  15. package/dist/accelerationChart-B1HPMmd2.js +577 -0
  16. package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
  17. package/dist/actionItem-BYCPoQK7.cjs +1 -0
  18. package/dist/actionItem-Bb2xiYlY.js +686 -0
  19. package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
  20. package/dist/alarmLevelChart-CCioESvL.js +182 -0
  21. package/dist/alertTable-CQwr8YYt.js +301 -0
  22. package/dist/alertTable-oaX5eJC0.cjs +1 -0
  23. package/dist/annualRainfallChart-C21jEMBe.js +185 -0
  24. package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
  25. package/dist/api-C0GhBpqd.js +125 -0
  26. package/dist/api-P_s372dW.cjs +1 -0
  27. package/dist/aqi-DlY2r7OA.cjs +3 -0
  28. package/dist/aqi-iLwQH4rc.js +145 -0
  29. package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
  30. package/dist/aqiIndass-DBeVSBdy.js +301 -0
  31. package/dist/arrayCard-DNNUEPvW.js +93 -0
  32. package/dist/arrayCard-OlVAAsZq.cjs +1 -0
  33. package/dist/audio-CAP4D-J2.js +301 -0
  34. package/dist/audio-CThzVIDU.cjs +1 -0
  35. package/dist/axisAlignTicks-BqVUa467.js +481 -0
  36. package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
  37. package/dist/bar-BjR566__.cjs +2 -0
  38. package/dist/bar-D8C06GO4.js +232 -0
  39. package/dist/bmp-Cjizh2x6.js +226 -0
  40. package/dist/bmp-DsmTzyce.cjs +1 -0
  41. package/dist/box-DqewT3MF.js +352 -0
  42. package/dist/box-qgu_67OD.cjs +1 -0
  43. package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
  44. package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
  45. package/dist/circleBar-CO89T7kj.cjs +4 -0
  46. package/dist/circleBar-DGHDWQih.js +196 -0
  47. package/dist/clock-32hGccm4.cjs +1 -0
  48. package/dist/clock-CT8YXEU3.js +274 -0
  49. package/dist/clt-5bP_g1O-.cjs +1 -0
  50. package/dist/clt-FfIEfGtn.js +293 -0
  51. package/dist/cmc-B2nQFZIS.js +269 -0
  52. package/dist/cmc-dbuLkE8o.cjs +1 -0
  53. package/dist/cmp-QQlYcnqo.js +378 -0
  54. package/dist/cmp-l3U9fIrz.cjs +6 -0
  55. package/dist/composite-CbsUYl-u.js +136 -0
  56. package/dist/composite-Cf24lSyN.cjs +1 -0
  57. package/dist/composite-DjhrBgG1.js +323 -0
  58. package/dist/composite-DlY2_x6P.cjs +3 -0
  59. package/dist/config-BLSroAzs.cjs +1 -0
  60. package/dist/config-Cc2W4vke.js +9 -0
  61. package/dist/controlList-BdF8xNAi.js +879 -0
  62. package/dist/controlList-De6PXdOc.cjs +1 -0
  63. package/dist/controlRecordList-CKpAr1ON.js +421 -0
  64. package/dist/controlRecordList-u5a7chIX.cjs +1 -0
  65. package/dist/crd-BVAf41oX.js +113 -0
  66. package/dist/crd-BoaXQhFQ.cjs +1 -0
  67. package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
  68. package/dist/createSeriesData-E53TTCAt.js +116 -0
  69. package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
  70. package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
  71. package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
  72. package/dist/ctrBtn-ZPRYWE66.js +215 -0
  73. package/dist/ctrSet-C87dxLfQ.js +247 -0
  74. package/dist/ctrSet-CNCrnLSs.cjs +1 -0
  75. package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
  76. package/dist/ctrSwitch-CkC_Axtp.js +207 -0
  77. package/dist/cursorHelper-DE0KU4_J.js +29 -0
  78. package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
  79. package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
  80. package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
  81. package/dist/dataManagement-CjlNfeYq.js +672 -0
  82. package/dist/dataManagement-n711sd1g.cjs +1 -0
  83. package/dist/dataReport-BsVjW3p7.cjs +4 -0
  84. package/dist/dataReport-ByjswEqq.js +787 -0
  85. package/dist/dataSample-BXwc06Sb.js +114 -0
  86. package/dist/dataSample-D4ycwmll.cjs +1 -0
  87. package/dist/dataTable-DX500R1i.js +217 -0
  88. package/dist/dataTable-K7j4fhnq.cjs +1 -0
  89. package/dist/datetime-DVbJtALf.js +113 -0
  90. package/dist/datetime-DYXWKrXI.cjs +1 -0
  91. package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
  92. package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
  93. package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
  94. package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
  95. package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
  96. package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
  97. package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
  98. package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
  99. package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
  100. package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
  101. package/dist/deepDisplacementView-BedWJsx7.js +231 -0
  102. package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
  103. package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
  104. package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
  105. package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
  106. package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
  107. package/dist/deepTemperatureField-B-y94GPV.js +398 -0
  108. package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
  109. package/dist/deepTrendChart-DCkV2HNv.js +345 -0
  110. package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
  111. package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
  112. package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
  113. package/dist/deviceStatus-B2ibBDSi.js +194 -0
  114. package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
  115. package/dist/displacementDataTable-BDqG1IvI.js +256 -0
  116. package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
  117. package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
  118. package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
  119. package/dist/displacementTrendChart-10n_lC9j.js +364 -0
  120. package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
  121. package/dist/dxf-D8zHpz5g.js +2768 -0
  122. package/dist/dxf-DDh_DcQy.cjs +1 -0
  123. package/dist/dzc-DLCdTCwW.js +144 -0
  124. package/dist/dzc-uNTDJqpi.cjs +2 -0
  125. package/dist/echarts-BB8O2KSA.cjs +21 -0
  126. package/dist/echarts-BVht3HHb.js +13787 -0
  127. package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
  128. package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
  129. package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
  130. package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
  131. package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
  132. package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
  133. package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
  134. package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
  135. package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
  136. package/dist/ele-clt-icon-DuU4Q401.js +5 -0
  137. package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
  138. package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
  139. package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
  140. package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
  141. package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
  142. package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
  143. package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
  144. package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
  145. package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
  146. package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
  147. package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
  148. package/dist/ele-evn-icon-MWzAujnD.js +5 -0
  149. package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
  150. package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
  151. package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
  152. package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
  153. package/dist/ele-grd-icon-DR52zwGR.js +5 -0
  154. package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
  155. package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
  156. package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
  157. package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
  158. package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
  159. package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
  160. package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
  161. package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
  162. package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
  163. package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
  164. package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
  165. package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
  166. package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
  167. package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
  168. package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
  169. package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
  170. package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
  171. package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
  172. package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
  173. package/dist/evn-DuL5oVRl.cjs +1 -0
  174. package/dist/evn-YwCALVXj.js +116 -0
  175. package/dist/evolutionChart-4noZSdLX.js +406 -0
  176. package/dist/evolutionChart-AeL67MAt.cjs +1 -0
  177. package/dist/fileViewer-DiH3PM0r.js +415 -0
  178. package/dist/fileViewer-bsrjlJkC.cjs +1 -0
  179. package/dist/filterBar-CWEguwYc.js +394 -0
  180. package/dist/filterBar-Ct1BFhrS.cjs +1 -0
  181. package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
  182. package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
  183. package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
  184. package/dist/fireFilterBar-DGHPNTwF.js +221 -0
  185. package/dist/gag-HiNaL81R.cjs +1 -0
  186. package/dist/gag-kvkKzJuO.js +125 -0
  187. package/dist/glbModel-CUz6CyVF.js +2724 -0
  188. package/dist/glbModel-DtBI72ap.cjs +5 -0
  189. package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
  190. package/dist/gnssFilterBar-TBtirXIB.js +310 -0
  191. package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
  192. package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
  193. package/dist/gnssMapView-42zmAd9q.cjs +7 -0
  194. package/dist/gnssMapView-CaBfWeT1.js +699 -0
  195. package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
  196. package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
  197. package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
  198. package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
  199. package/dist/grd-B0GUjLm9.js +339 -0
  200. package/dist/grd-DW8cSFVR.cjs +1 -0
  201. package/dist/grdIndass-BeBXVsos.cjs +1 -0
  202. package/dist/grdIndass-DduUKZJm.js +216 -0
  203. package/dist/grg-CeX0pirQ.js +194 -0
  204. package/dist/grg-fnpcXtju.cjs +1 -0
  205. package/dist/gridview-BPwWXza9.js +183 -0
  206. package/dist/gridview-DpABhCIw.cjs +1 -0
  207. package/dist/groupCard-De1E15mW.js +132 -0
  208. package/dist/groupCard-WNE6gAAl.cjs +1 -0
  209. package/dist/headerBar-CZ3qcLHo.js +210 -0
  210. package/dist/headerBar-Qi1EXrr6.cjs +1 -0
  211. package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
  212. package/dist/history-DAmBl4_5.cjs +1 -0
  213. package/dist/index-ButoLLAe.js +8655 -0
  214. package/dist/index-Mh5Dw2sd.cjs +585 -0
  215. package/dist/index-kShjySl9.js +5313 -0
  216. package/dist/index-mAPVa0s4.cjs +11 -0
  217. package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
  218. package/dist/insarDeformChart-CnuSL1d9.js +216 -0
  219. package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
  220. package/dist/insarImageViewer-EmVThmVQ.js +268 -0
  221. package/dist/install-8XfFtnlL.js +853 -0
  222. package/dist/install-9_V0b6vf.js +497 -0
  223. package/dist/install-B0x4IqQr.js +1258 -0
  224. package/dist/install-B1IEhhn3.cjs +1 -0
  225. package/dist/install-B2TChEcT.js +895 -0
  226. package/dist/install-B65ZIqAx.cjs +1 -0
  227. package/dist/install-BBrAry2m.js +8 -0
  228. package/dist/install-BRjgycz_.cjs +1 -0
  229. package/dist/install-BUu5ESB7.js +447 -0
  230. package/dist/install-BamnGDPb.cjs +1 -0
  231. package/dist/install-BifpoHNI.js +1817 -0
  232. package/dist/install-BvOpNm0Y.cjs +1 -0
  233. package/dist/install-ByPD0oOh.cjs +1 -0
  234. package/dist/install-BzdOSCzO.js +785 -0
  235. package/dist/install-C8buXQPI.cjs +1 -0
  236. package/dist/install-C9Cdzkc6.js +265 -0
  237. package/dist/install-CBde4hAM.js +112 -0
  238. package/dist/install-CIT6k8Ga.cjs +1 -0
  239. package/dist/install-CYwVETsi.cjs +1 -0
  240. package/dist/install-C_3uGWLu.js +2328 -0
  241. package/dist/install-Ch5d8i37.cjs +1 -0
  242. package/dist/install-CltTFs4e.cjs +3 -0
  243. package/dist/install-Csxa7Kv7.cjs +18 -0
  244. package/dist/install-Cx1i_m0k.js +1168 -0
  245. package/dist/install-D1QM80AD.js +227 -0
  246. package/dist/install-D7znHb-b.js +604 -0
  247. package/dist/install-DHY9y86B.cjs +3 -0
  248. package/dist/install-DIlB2q7w.cjs +1 -0
  249. package/dist/install-DV5cEgNV.cjs +1 -0
  250. package/dist/install-DWm3j_D3.js +38 -0
  251. package/dist/install-FDYiy_gL.js +250 -0
  252. package/dist/install-LtoYukZU.cjs +1 -0
  253. package/dist/install-MS3ZY7fF.js +685 -0
  254. package/dist/install-hfre7yvV.js +727 -0
  255. package/dist/install-kGXY_57n.cjs +1 -0
  256. package/dist/install-nDY6w-GK.cjs +1 -0
  257. package/dist/install-oGjJ0_bF.js +588 -0
  258. package/dist/install-z6wShIZI.cjs +1 -0
  259. package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
  260. package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
  261. package/dist/installMarkArea-Cdg4iciO.js +206 -0
  262. package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
  263. package/dist/installMarkLine-BgE0YACE.js +533 -0
  264. package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
  265. package/dist/installSimple-BWTCwMdY.js +586 -0
  266. package/dist/installSimple-c87Ufc4_.cjs +1 -0
  267. package/dist/kds-CpIQFgeY.js +1203 -0
  268. package/dist/kds-DTYWOq4K.cjs +3 -0
  269. package/dist/labelHelper-Cd8oB-sZ.js +26 -0
  270. package/dist/labelHelper-npJGYQ1j.cjs +1 -0
  271. package/dist/layerTabs-BATcBkTA.cjs +1 -0
  272. package/dist/layerTabs-uze6K91A.js +139 -0
  273. package/dist/lin-Ba6fHkYf.cjs +2 -0
  274. package/dist/lin-DU_EuPRg.js +239 -0
  275. package/dist/linIndass-XHKElG7L.js +273 -0
  276. package/dist/linIndass-urYe5inp.cjs +2 -0
  277. package/dist/lst-C7aee1cU.js +147 -0
  278. package/dist/lst-CpmoEQDY.cjs +1 -0
  279. package/dist/manualEntry-CJPiO5nh.cjs +1 -0
  280. package/dist/manualEntry-D9m_WPw3.js +662 -0
  281. package/dist/mapBackground-6g_71Fwa.js +6658 -0
  282. package/dist/mapBackground-CF_TqNBy.cjs +17 -0
  283. package/dist/mappingList-CR55Tq4t.cjs +1 -0
  284. package/dist/mappingList-luT5YE0d.js +917 -0
  285. package/dist/markdownViewer-CnguoUr8.js +261 -0
  286. package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
  287. package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
  288. package/dist/mix-control-modal-CHiX3hQs.js +147 -0
  289. package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
  290. package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
  291. package/dist/mixGrid-3BqQCvg8.cjs +1 -0
  292. package/dist/mixGrid-C0eEvwPy.js +180 -0
  293. package/dist/mixMap-7upgYwWk.js +258 -0
  294. package/dist/mixMap-Bw-We4Cm.cjs +1 -0
  295. package/dist/mixModel-BqE_Kd4c.js +245 -0
  296. package/dist/mixModel-CgV4XptM.cjs +3 -0
  297. package/dist/mixPie-9LfMCTQV.cjs +2 -0
  298. package/dist/mixPie-B-HeglUn.js +168 -0
  299. package/dist/mixdashboards.cjs +1 -1
  300. package/dist/mixdashboards.css +1 -1
  301. package/dist/mixdashboards.js +7 -7
  302. package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
  303. package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
  304. package/dist/monitorAlert-Bg5vzzyG.js +225 -0
  305. package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
  306. package/dist/monitorData-BvAMeOrp.js +319 -0
  307. package/dist/monitorData-CzPVIk_4.cjs +1 -0
  308. package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
  309. package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
  310. package/dist/mxa-BW80xKCc.js +143 -0
  311. package/dist/mxa-eLAgZPMC.cjs +2 -0
  312. package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
  313. package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
  314. package/dist/objectList-Cf9GMyXN.js +1809 -0
  315. package/dist/objectList-CpqQxG8L.cjs +1 -0
  316. package/dist/params-3W3p8QeC.cjs +1 -0
  317. package/dist/params-DfgBemk0.js +75 -0
  318. package/dist/photo-BODEtaYh.cjs +1 -0
  319. package/dist/photo-BfLkWAo8.js +256 -0
  320. package/dist/pie-BDLg-Rls.js +199 -0
  321. package/dist/pie-DxoBrm0D.cjs +2 -0
  322. package/dist/points-DcRmizmA.cjs +1 -0
  323. package/dist/points-DkG9FRF9.js +277 -0
  324. package/dist/pressBtn-CXG1eSWC.js +242 -0
  325. package/dist/pressBtn-t0g4vk7s.cjs +1 -0
  326. package/dist/progressBar-BXaFKSCq.js +130 -0
  327. package/dist/progressBar-CJEWkZ42.cjs +1 -0
  328. package/dist/progressCircle-DpOI5D5z.js +168 -0
  329. package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
  330. package/dist/qrcode-CX8aymYZ.js +814 -0
  331. package/dist/qrcode-DHCRfp0M.cjs +1 -0
  332. package/dist/raceBar-Cv0-0ogd.cjs +4 -0
  333. package/dist/raceBar-DFaH342G.js +197 -0
  334. package/dist/rad-CFswUTwi.cjs +1 -0
  335. package/dist/rad-NS2G_nMg.js +143 -0
  336. package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
  337. package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
  338. package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
  339. package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
  340. package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
  341. package/dist/rangeLin-GMYEgLeP.js +278 -0
  342. package/dist/request-BD0x5Hkt.js +75 -0
  343. package/dist/request-Bn100qAJ.cjs +1 -0
  344. package/dist/retainer1-D2XmjXYH.cjs +1 -0
  345. package/dist/retainer1-h-Whr2c9.js +290 -0
  346. package/dist/retainer2-ByQdiRjq.js +504 -0
  347. package/dist/retainer2-cF-trL2g.cjs +1 -0
  348. package/dist/riskRegionTable-CQxAkG7k.js +170 -0
  349. package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
  350. package/dist/sankey-Bk1IcVJQ.js +171 -0
  351. package/dist/sankey-MRirEgU0.cjs +1 -0
  352. package/dist/sausage-DRCw7Qmr.cjs +1 -0
  353. package/dist/sausage-xU3hOdxD.js +30 -0
  354. package/dist/scd-BDRpzmsa.js +2577 -0
  355. package/dist/scd-J-mN3eI5.cjs +1 -0
  356. package/dist/sectorHelper-BFEnYqut.cjs +1 -0
  357. package/dist/sectorHelper-DIlWFMnU.js +18 -0
  358. package/dist/sideMenu-BgTMtnMq.js +225 -0
  359. package/dist/sideMenu-l8X2E00H.cjs +1 -0
  360. package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
  361. package/dist/slopeStability-C5RqZ1im.js +331 -0
  362. package/dist/speedCurve-C3pK-zZy.js +394 -0
  363. package/dist/speedCurve-CluwNAZl.cjs +1 -0
  364. package/dist/staticLine-C6tGGXcN.cjs +1 -0
  365. package/dist/staticLine-DXWOLj15.js +362 -0
  366. package/dist/store-BJW2NQkK.cjs +5 -0
  367. package/dist/store-DzDtVfSX.js +1673 -0
  368. package/dist/swiper-DGqDoUkX.cjs +1 -0
  369. package/dist/swiper-IMlGje3t.js +128 -0
  370. package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
  371. package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
  372. package/dist/terminalList-CjSHshiR.js +1211 -0
  373. package/dist/terminalList-ml2C18MY.cjs +1 -0
  374. package/dist/textbox-AQtCe25j.cjs +1 -0
  375. package/dist/textbox-BLV-SY8e.js +172 -0
  376. package/dist/three.module-DNVo041Q.cjs +3824 -0
  377. package/dist/three.module-DcOQNgKS.js +16561 -0
  378. package/dist/timeQueryBar-BeMu_DYr.js +155 -0
  379. package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
  380. package/dist/timeSeries-DP5iZKVM.js +587 -0
  381. package/dist/timeSeries-DfGgFWiF.cjs +4 -0
  382. package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
  383. package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
  384. package/dist/titleStyle-BT5GlpAb.js +49 -0
  385. package/dist/titleStyle-NSnz6cUg.cjs +1 -0
  386. package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
  387. package/dist/toggleBtn-O2Y75Uen.js +249 -0
  388. package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
  389. package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
  390. package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
  391. package/dist/trajectoryScatter-VLrmImlq.js +525 -0
  392. package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
  393. package/dist/universalConfigPanel-DBg76b4F.js +477 -0
  394. package/dist/universalTable-Bzq9VqzA.cjs +2 -0
  395. package/dist/universalTable-DGK02ywi.js +410 -0
  396. package/dist/universalTransition-Bv7ibBUh.js +988 -0
  397. package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
  398. package/dist/video-CyRoSQf1.cjs +1 -0
  399. package/dist/video-DCzzaEmV.js +310 -0
  400. package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
  401. package/dist/videoMonitor-ByaQeIWR.js +241 -0
  402. package/dist/vlu-CYZjYHaV.cjs +1 -0
  403. package/dist/vlu-h-9twmCr.js +100 -0
  404. package/dist/vue-i18n-5Nahpzrm.js +2732 -0
  405. package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
  406. package/dist/weather-B7B5E1EJ.cjs +1 -0
  407. package/dist/weather-C_aC0XJ1.js +94 -0
  408. package/dist/windLin-B7V4NUV8.js +1226 -0
  409. package/dist/windLin-DPNzX7JN.cjs +1 -0
  410. package/package.json +17 -10
  411. package/dist/history-fvcbbxGa.cjs +0 -1
  412. package/dist/index-B-aA7889.js +0 -154003
  413. package/dist/index-CdJ-j9Gj.cjs +0 -8893
@@ -0,0 +1,2577 @@
1
+ var Zr = Object.defineProperty, Kr = Object.defineProperties;
2
+ var Jr = Object.getOwnPropertyDescriptors;
3
+ var In = Object.getOwnPropertySymbols;
4
+ var Qr = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable;
5
+ var Mn = (R, M, j) => M in R ? Zr(R, M, { enumerable: !0, configurable: !0, writable: !0, value: j }) : R[M] = j, Dn = (R, M) => {
6
+ for (var j in M || (M = {}))
7
+ Qr.call(M, j) && Mn(R, j, M[j]);
8
+ if (In)
9
+ for (var j of In(M))
10
+ ei.call(M, j) && Mn(R, j, M[j]);
11
+ return R;
12
+ }, zn = (R, M) => Kr(R, Jr(M));
13
+ import { defineComponent as ti, ref as ni, computed as ri, openBlock as J, createElementBlock as Q, normalizeStyle as N, unref as ge, createElementVNode as U, toDisplayString as se, Fragment as zt, renderList as Cn, normalizeClass as Ve, createTextVNode as ii, renderSlot as oi, nextTick as ai } from "vue";
14
+ import { B as si } from "./element-resize-detector-DJcsrJ8s.js";
15
+ import { b as ci, _ as li } from "./index-kShjySl9.js";
16
+ import { g as ui } from "./titleStyle-BT5GlpAb.js";
17
+ var Ne = { exports: {} }, pi = Ne.exports, An;
18
+ function fi() {
19
+ return An || (An = 1, (function(R, M) {
20
+ (function(j, ce) {
21
+ R.exports = ce();
22
+ })(pi, (function() {
23
+ function j(t, e) {
24
+ var n = Object.keys(t);
25
+ if (Object.getOwnPropertySymbols) {
26
+ var r = Object.getOwnPropertySymbols(t);
27
+ e && (r = r.filter((function(i) {
28
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
29
+ }))), n.push.apply(n, r);
30
+ }
31
+ return n;
32
+ }
33
+ function ce(t) {
34
+ for (var e = 1; e < arguments.length; e++) {
35
+ var n = arguments[e] != null ? arguments[e] : {};
36
+ e % 2 ? j(Object(n), !0).forEach((function(r) {
37
+ it(t, r, n[r]);
38
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : j(Object(n)).forEach((function(r) {
39
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
40
+ }));
41
+ }
42
+ return t;
43
+ }
44
+ function le(t) {
45
+ return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
46
+ return typeof e;
47
+ } : function(e) {
48
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
49
+ }, le(t);
50
+ }
51
+ function B(t, e) {
52
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
53
+ }
54
+ function Z(t, e) {
55
+ for (var n = 0; n < e.length; n++) {
56
+ var r = e[n];
57
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, ye(r.key), r);
58
+ }
59
+ }
60
+ function F(t, e, n) {
61
+ return e && Z(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
62
+ }
63
+ function it(t, e, n) {
64
+ return (e = ye(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
65
+ }
66
+ function me(t, e) {
67
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
68
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && ke(t, e);
69
+ }
70
+ function ee(t) {
71
+ return ee = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
72
+ return e.__proto__ || Object.getPrototypeOf(e);
73
+ }, ee(t);
74
+ }
75
+ function ke(t, e) {
76
+ return ke = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
77
+ return n.__proto__ = r, n;
78
+ }, ke(t, e);
79
+ }
80
+ function Ee(t) {
81
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
82
+ return t;
83
+ }
84
+ function ue(t) {
85
+ var e = (function() {
86
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) return !1;
87
+ if (typeof Proxy == "function") return !0;
88
+ try {
89
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
90
+ }))), !0;
91
+ } catch (n) {
92
+ return !1;
93
+ }
94
+ })();
95
+ return function() {
96
+ var n, r = ee(t);
97
+ if (e) {
98
+ var i = ee(this).constructor;
99
+ n = Reflect.construct(r, arguments, i);
100
+ } else n = r.apply(this, arguments);
101
+ return (function(o, a) {
102
+ if (a && (typeof a == "object" || typeof a == "function")) return a;
103
+ if (a !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
104
+ return Ee(o);
105
+ })(this, n);
106
+ };
107
+ }
108
+ function _e() {
109
+ return _e = typeof Reflect != "undefined" && Reflect.get ? Reflect.get.bind() : function(t, e, n) {
110
+ var r = (function(o, a) {
111
+ for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = ee(o)) !== null; ) ;
112
+ return o;
113
+ })(t, e);
114
+ if (r) {
115
+ var i = Object.getOwnPropertyDescriptor(r, e);
116
+ return i.get ? i.get.call(arguments.length < 3 ? t : n) : i.value;
117
+ }
118
+ }, _e.apply(this, arguments);
119
+ }
120
+ function ye(t) {
121
+ var e = (function(n, r) {
122
+ if (typeof n != "object" || n === null) return n;
123
+ var i = n[Symbol.toPrimitive];
124
+ if (i !== void 0) {
125
+ var o = i.call(n, r);
126
+ if (typeof o != "object") return o;
127
+ throw new TypeError("@@toPrimitive must return a primitive value.");
128
+ }
129
+ return String(n);
130
+ })(t, "string");
131
+ return typeof e == "symbol" ? e : e + "";
132
+ }
133
+ var _ = function(t) {
134
+ return !(!t || !t.Window) && t instanceof t.Window;
135
+ }, T = void 0, O = void 0;
136
+ function z(t) {
137
+ T = t;
138
+ var e = t.document.createTextNode("");
139
+ e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), O = t;
140
+ }
141
+ function D(t) {
142
+ return _(t) ? t : (t.ownerDocument || t).defaultView || O.window;
143
+ }
144
+ typeof window != "undefined" && window && z(window);
145
+ var P = function(t) {
146
+ return !!t && le(t) === "object";
147
+ }, V = function(t) {
148
+ return typeof t == "function";
149
+ }, d = { window: function(t) {
150
+ return t === O || _(t);
151
+ }, docFrag: function(t) {
152
+ return P(t) && t.nodeType === 11;
153
+ }, object: P, func: V, number: function(t) {
154
+ return typeof t == "number";
155
+ }, bool: function(t) {
156
+ return typeof t == "boolean";
157
+ }, string: function(t) {
158
+ return typeof t == "string";
159
+ }, element: function(t) {
160
+ if (!t || le(t) !== "object") return !1;
161
+ var e = D(t) || O;
162
+ return /object|function/.test(typeof Element == "undefined" ? "undefined" : le(Element)) ? t instanceof Element || t instanceof e.Element : t.nodeType === 1 && typeof t.nodeName == "string";
163
+ }, plainObject: function(t) {
164
+ return P(t) && !!t.constructor && /function Object\b/.test(t.constructor.toString());
165
+ }, array: function(t) {
166
+ return P(t) && t.length !== void 0 && V(t.splice);
167
+ } };
168
+ function te(t) {
169
+ var e = t.interaction;
170
+ if (e.prepared.name === "drag") {
171
+ var n = e.prepared.axis;
172
+ n === "x" ? (e.coords.cur.page.y = e.coords.start.page.y, e.coords.cur.client.y = e.coords.start.client.y, e.coords.velocity.client.y = 0, e.coords.velocity.page.y = 0) : n === "y" && (e.coords.cur.page.x = e.coords.start.page.x, e.coords.cur.client.x = e.coords.start.client.x, e.coords.velocity.client.x = 0, e.coords.velocity.page.x = 0);
173
+ }
174
+ }
175
+ function be(t) {
176
+ var e = t.iEvent, n = t.interaction;
177
+ if (n.prepared.name === "drag") {
178
+ var r = n.prepared.axis;
179
+ if (r === "x" || r === "y") {
180
+ var i = r === "x" ? "y" : "x";
181
+ e.page[i] = n.coords.start.page[i], e.client[i] = n.coords.start.client[i], e.delta[i] = 0;
182
+ }
183
+ }
184
+ }
185
+ var ne = { id: "actions/drag", install: function(t) {
186
+ var e = t.actions, n = t.Interactable, r = t.defaults;
187
+ n.prototype.draggable = ne.draggable, e.map.drag = ne, e.methodDict.drag = "draggable", r.actions.drag = ne.defaults;
188
+ }, listeners: { "interactions:before-action-move": te, "interactions:action-resume": te, "interactions:action-move": be, "auto-start:check": function(t) {
189
+ var e = t.interaction, n = t.interactable, r = t.buttons, i = n.options.drag;
190
+ if (i && i.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (r & n.options.drag.mouseButtons) != 0)) return t.action = { name: "drag", axis: i.lockAxis === "start" ? i.startAxis : i.lockAxis }, !1;
191
+ } }, draggable: function(t) {
192
+ return d.object(t) ? (this.options.drag.enabled = t.enabled !== !1, this.setPerAction("drag", t), this.setOnEvents("drag", t), /^(xy|x|y|start)$/.test(t.lockAxis) && (this.options.drag.lockAxis = t.lockAxis), /^(xy|x|y)$/.test(t.startAxis) && (this.options.drag.startAxis = t.startAxis), this) : d.bool(t) ? (this.options.drag.enabled = t, this) : this.options.drag;
193
+ }, beforeMove: te, move: be, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
194
+ return "move";
195
+ }, filterEventType: function(t) {
196
+ return t.search("drag") === 0;
197
+ } }, Oe = ne, q = { init: function(t) {
198
+ var e = t;
199
+ q.document = e.document, q.DocumentFragment = e.DocumentFragment || re, q.SVGElement = e.SVGElement || re, q.SVGSVGElement = e.SVGSVGElement || re, q.SVGElementInstance = e.SVGElementInstance || re, q.Element = e.Element || re, q.HTMLElement = e.HTMLElement || q.Element, q.Event = e.Event, q.Touch = e.Touch || re, q.PointerEvent = e.PointerEvent || e.MSPointerEvent;
200
+ }, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
201
+ function re() {
202
+ }
203
+ var $ = q, m = { init: function(t) {
204
+ var e = $.Element, n = t.navigator || {};
205
+ m.supportsTouch = "ontouchstart" in t || d.func(t.DocumentTouch) && $.document instanceof t.DocumentTouch, m.supportsPointerEvent = n.pointerEnabled !== !1 && !!$.PointerEvent, m.isIOS = /iP(hone|od|ad)/.test(n.platform), m.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), m.isIe9 = /MSIE 9/.test(n.userAgent), m.isOperaMobile = n.appName === "Opera" && m.supportsTouch && /Presto/.test(n.userAgent), m.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", m.pEventTypes = m.supportsPointerEvent ? $.PointerEvent === t.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel" } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel" } : null, m.wheelEvent = $.document && "onmousewheel" in $.document ? "mousewheel" : "wheel";
206
+ }, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, A = m;
207
+ function K(t, e) {
208
+ if (t.contains) return t.contains(e);
209
+ for (; e; ) {
210
+ if (e === t) return !0;
211
+ e = e.parentNode;
212
+ }
213
+ return !1;
214
+ }
215
+ function ot(t, e) {
216
+ for (; d.element(t); ) {
217
+ if (pe(t, e)) return t;
218
+ t = H(t);
219
+ }
220
+ return null;
221
+ }
222
+ function H(t) {
223
+ var e = t.parentNode;
224
+ if (d.docFrag(e)) {
225
+ for (; (e = e.host) && d.docFrag(e); ) ;
226
+ return e;
227
+ }
228
+ return e;
229
+ }
230
+ function pe(t, e) {
231
+ return O !== T && (e = e.replace(/\/deep\//g, " ")), t[A.prefixedMatchesSelector](e);
232
+ }
233
+ var at = function(t) {
234
+ return t.parentNode || t.host;
235
+ };
236
+ function Ct(t, e) {
237
+ for (var n, r = [], i = t; (n = at(i)) && i !== e && n !== i.ownerDocument; ) r.unshift(i), i = n;
238
+ return r;
239
+ }
240
+ function st(t, e, n) {
241
+ for (; d.element(t); ) {
242
+ if (pe(t, e)) return !0;
243
+ if ((t = H(t)) === n) return pe(t, e);
244
+ }
245
+ return !1;
246
+ }
247
+ function At(t) {
248
+ return t.correspondingUseElement || t;
249
+ }
250
+ function ct(t) {
251
+ var e = t instanceof $.SVGElement ? t.getBoundingClientRect() : t.getClientRects()[0];
252
+ return e && { left: e.left, right: e.right, top: e.top, bottom: e.bottom, width: e.width || e.right - e.left, height: e.height || e.bottom - e.top };
253
+ }
254
+ function lt(t) {
255
+ var e, n = ct(t);
256
+ if (!A.isIOS7 && n) {
257
+ var r = { x: (e = (e = D(t)) || O).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
258
+ n.left += r.x, n.right += r.x, n.top += r.y, n.bottom += r.y;
259
+ }
260
+ return n;
261
+ }
262
+ function Rt(t) {
263
+ for (var e = []; t; ) e.push(t), t = H(t);
264
+ return e;
265
+ }
266
+ function jt(t) {
267
+ return !!d.string(t) && ($.document.querySelector(t), !0);
268
+ }
269
+ function w(t, e) {
270
+ for (var n in e) t[n] = e[n];
271
+ return t;
272
+ }
273
+ function Ft(t, e, n) {
274
+ return t === "parent" ? H(n) : t === "self" ? e.getRect(n) : ot(n, t);
275
+ }
276
+ function Pe(t, e, n, r) {
277
+ var i = t;
278
+ return d.string(i) ? i = Ft(i, e, n) : d.func(i) && (i = i.apply(void 0, r)), d.element(i) && (i = lt(i)), i;
279
+ }
280
+ function qe(t) {
281
+ return t && { x: "x" in t ? t.x : t.left, y: "y" in t ? t.y : t.top };
282
+ }
283
+ function ut(t) {
284
+ return !t || "x" in t && "y" in t || ((t = w({}, t)).x = t.left || 0, t.y = t.top || 0, t.width = t.width || (t.right || 0) - t.x, t.height = t.height || (t.bottom || 0) - t.y), t;
285
+ }
286
+ function Xe(t, e, n) {
287
+ t.left && (e.left += n.x), t.right && (e.right += n.x), t.top && (e.top += n.y), t.bottom && (e.bottom += n.y), e.width = e.right - e.left, e.height = e.bottom - e.top;
288
+ }
289
+ function Ie(t, e, n) {
290
+ var r = n && t.options[n];
291
+ return qe(Pe(r && r.origin || t.options.origin, t, e, [t && e])) || { x: 0, y: 0 };
292
+ }
293
+ function xe(t, e) {
294
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(c) {
295
+ return !0;
296
+ }, r = arguments.length > 3 ? arguments[3] : void 0;
297
+ if (r = r || {}, d.string(t) && t.search(" ") !== -1 && (t = $t(t)), d.array(t)) return t.forEach((function(c) {
298
+ return xe(c, e, n, r);
299
+ })), r;
300
+ if (d.object(t) && (e = t, t = ""), d.func(e) && n(t)) r[t] = r[t] || [], r[t].push(e);
301
+ else if (d.array(e)) for (var i = 0, o = e; i < o.length; i++) {
302
+ var a = o[i];
303
+ xe(t, a, n, r);
304
+ }
305
+ else if (d.object(e)) for (var s in e)
306
+ xe($t(s).map((function(c) {
307
+ return "".concat(t).concat(c);
308
+ })), e[s], n, r);
309
+ return r;
310
+ }
311
+ function $t(t) {
312
+ return t.trim().split(/ +/);
313
+ }
314
+ var Me = function(t, e) {
315
+ return Math.sqrt(t * t + e * e);
316
+ }, jn = ["webkit", "moz"];
317
+ function Ye(t, e) {
318
+ t.__set || (t.__set = {});
319
+ var n = function(i) {
320
+ if (jn.some((function(o) {
321
+ return i.indexOf(o) === 0;
322
+ }))) return 1;
323
+ typeof t[i] != "function" && i !== "__set" && Object.defineProperty(t, i, { get: function() {
324
+ return i in t.__set ? t.__set[i] : t.__set[i] = e[i];
325
+ }, set: function(o) {
326
+ t.__set[i] = o;
327
+ }, configurable: !0 });
328
+ };
329
+ for (var r in e) n(r);
330
+ return t;
331
+ }
332
+ function We(t, e) {
333
+ t.page = t.page || {}, t.page.x = e.page.x, t.page.y = e.page.y, t.client = t.client || {}, t.client.x = e.client.x, t.client.y = e.client.y, t.timeStamp = e.timeStamp;
334
+ }
335
+ function Bt(t) {
336
+ t.page.x = 0, t.page.y = 0, t.client.x = 0, t.client.y = 0;
337
+ }
338
+ function Vt(t) {
339
+ return t instanceof $.Event || t instanceof $.Touch;
340
+ }
341
+ function Ue(t, e, n) {
342
+ return t = t || "page", (n = n || {}).x = e[t + "X"], n.y = e[t + "Y"], n;
343
+ }
344
+ function Nt(t, e) {
345
+ return e = e || { x: 0, y: 0 }, A.isOperaMobile && Vt(t) ? (Ue("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : Ue("page", t, e), e;
346
+ }
347
+ function De(t) {
348
+ return d.number(t.pointerId) ? t.pointerId : t.identifier;
349
+ }
350
+ function Fn(t, e, n) {
351
+ var r = e.length > 1 ? qt(e) : e[0];
352
+ Nt(r, t.page), (function(i, o) {
353
+ o = o || {}, A.isOperaMobile && Vt(i) ? Ue("screen", i, o) : Ue("client", i, o);
354
+ })(r, t.client), t.timeStamp = n;
355
+ }
356
+ function pt(t) {
357
+ var e = [];
358
+ return d.array(t) ? (e[0] = t[0], e[1] = t[1]) : t.type === "touchend" ? t.touches.length === 1 ? (e[0] = t.touches[0], e[1] = t.changedTouches[0]) : t.touches.length === 0 && (e[0] = t.changedTouches[0], e[1] = t.changedTouches[1]) : (e[0] = t.touches[0], e[1] = t.touches[1]), e;
359
+ }
360
+ function qt(t) {
361
+ for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, n = 0; n < t.length; n++) {
362
+ var r = t[n];
363
+ for (var i in e) e[i] += r[i];
364
+ }
365
+ for (var o in e) e[o] /= t.length;
366
+ return e;
367
+ }
368
+ function ft(t) {
369
+ if (!t.length) return null;
370
+ var e = pt(t), n = Math.min(e[0].pageX, e[1].pageX), r = Math.min(e[0].pageY, e[1].pageY), i = Math.max(e[0].pageX, e[1].pageX), o = Math.max(e[0].pageY, e[1].pageY);
371
+ return { x: n, y: r, left: n, top: r, right: i, bottom: o, width: i - n, height: o - r };
372
+ }
373
+ function dt(t, e) {
374
+ var n = e + "X", r = e + "Y", i = pt(t), o = i[0][n] - i[1][n], a = i[0][r] - i[1][r];
375
+ return Me(o, a);
376
+ }
377
+ function ht(t, e) {
378
+ var n = e + "X", r = e + "Y", i = pt(t), o = i[1][n] - i[0][n], a = i[1][r] - i[0][r];
379
+ return 180 * Math.atan2(a, o) / Math.PI;
380
+ }
381
+ function Xt(t) {
382
+ return d.string(t.pointerType) ? t.pointerType : d.number(t.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][t.pointerType] : /touch/.test(t.type || "") || t instanceof $.Touch ? "touch" : "mouse";
383
+ }
384
+ function Yt(t) {
385
+ var e = d.func(t.composedPath) ? t.composedPath() : t.path;
386
+ return [At(e ? e[0] : t.target), At(t.currentTarget)];
387
+ }
388
+ var He = (function() {
389
+ function t(e) {
390
+ B(this, t), this.immediatePropagationStopped = !1, this.propagationStopped = !1, this._interaction = e;
391
+ }
392
+ return F(t, [{ key: "preventDefault", value: function() {
393
+ } }, { key: "stopPropagation", value: function() {
394
+ this.propagationStopped = !0;
395
+ } }, { key: "stopImmediatePropagation", value: function() {
396
+ this.immediatePropagationStopped = this.propagationStopped = !0;
397
+ } }]), t;
398
+ })();
399
+ Object.defineProperty(He.prototype, "interaction", { get: function() {
400
+ return this._interaction._proxy;
401
+ }, set: function() {
402
+ } });
403
+ var Wt = function(t, e) {
404
+ for (var n = 0; n < e.length; n++) {
405
+ var r = e[n];
406
+ t.push(r);
407
+ }
408
+ return t;
409
+ }, Ut = function(t) {
410
+ return Wt([], t);
411
+ }, ze = function(t, e) {
412
+ for (var n = 0; n < t.length; n++) if (e(t[n], n, t)) return n;
413
+ return -1;
414
+ }, Ce = function(t, e) {
415
+ return t[ze(t, e)];
416
+ }, Te = (function(t) {
417
+ me(n, t);
418
+ var e = ue(n);
419
+ function n(r, i, o) {
420
+ var a;
421
+ B(this, n), (a = e.call(this, i._interaction)).dropzone = void 0, a.dragEvent = void 0, a.relatedTarget = void 0, a.draggable = void 0, a.propagationStopped = !1, a.immediatePropagationStopped = !1;
422
+ var s = o === "dragleave" ? r.prev : r.cur, c = s.element, u = s.dropzone;
423
+ return a.type = o, a.target = c, a.currentTarget = c, a.dropzone = u, a.dragEvent = i, a.relatedTarget = i.target, a.draggable = i.interactable, a.timeStamp = i.timeStamp, a;
424
+ }
425
+ return F(n, [{ key: "reject", value: function() {
426
+ var r = this, i = this._interaction.dropState;
427
+ if (this.type === "dropactivate" || this.dropzone && i.cur.dropzone === this.dropzone && i.cur.element === this.target) if (i.prev.dropzone = this.dropzone, i.prev.element = this.target, i.rejected = !0, i.events.enter = null, this.stopImmediatePropagation(), this.type === "dropactivate") {
428
+ var o = i.activeDrops, a = ze(o, (function(c) {
429
+ var u = c.dropzone, l = c.element;
430
+ return u === r.dropzone && l === r.target;
431
+ }));
432
+ i.activeDrops.splice(a, 1);
433
+ var s = new n(i, this.dragEvent, "dropdeactivate");
434
+ s.dropzone = this.dropzone, s.target = this.target, this.dropzone.fire(s);
435
+ } else this.dropzone.fire(new n(i, this.dragEvent, "dragleave"));
436
+ } }, { key: "preventDefault", value: function() {
437
+ } }, { key: "stopPropagation", value: function() {
438
+ this.propagationStopped = !0;
439
+ } }, { key: "stopImmediatePropagation", value: function() {
440
+ this.immediatePropagationStopped = this.propagationStopped = !0;
441
+ } }]), n;
442
+ })(He);
443
+ function Ht(t, e) {
444
+ for (var n = 0, r = t.slice(); n < r.length; n++) {
445
+ var i = r[n], o = i.dropzone, a = i.element;
446
+ e.dropzone = o, e.target = a, o.fire(e), e.propagationStopped = e.immediatePropagationStopped = !1;
447
+ }
448
+ }
449
+ function vt(t, e) {
450
+ for (var n = (function(o, a) {
451
+ for (var s = [], c = 0, u = o.interactables.list; c < u.length; c++) {
452
+ var l = u[c];
453
+ if (l.options.drop.enabled) {
454
+ var p = l.options.drop.accept;
455
+ if (!(d.element(p) && p !== a || d.string(p) && !pe(a, p) || d.func(p) && !p({ dropzone: l, draggableElement: a }))) for (var f = 0, v = l.getAllElements(); f < v.length; f++) {
456
+ var h = v[f];
457
+ h !== a && s.push({ dropzone: l, element: h, rect: l.getRect(h) });
458
+ }
459
+ }
460
+ }
461
+ return s;
462
+ })(t, e), r = 0; r < n.length; r++) {
463
+ var i = n[r];
464
+ i.rect = i.dropzone.getRect(i.element);
465
+ }
466
+ return n;
467
+ }
468
+ function Gt(t, e, n) {
469
+ for (var r = t.dropState, i = t.interactable, o = t.element, a = [], s = 0, c = r.activeDrops; s < c.length; s++) {
470
+ var u = c[s], l = u.dropzone, p = u.element, f = u.rect, v = l.dropCheck(e, n, i, o, p, f);
471
+ a.push(v ? p : null);
472
+ }
473
+ var h = (function(g) {
474
+ for (var b, y, x, L = [], I = 0; I < g.length; I++) {
475
+ var S = g[I], k = g[b];
476
+ if (S && I !== b) if (k) {
477
+ var Y = at(S), C = at(k);
478
+ if (Y !== S.ownerDocument) if (C !== S.ownerDocument) if (Y !== C) {
479
+ L = L.length ? L : Ct(k);
480
+ var W = void 0;
481
+ if (k instanceof $.HTMLElement && S instanceof $.SVGElement && !(S instanceof $.SVGSVGElement)) {
482
+ if (S === C) continue;
483
+ W = S.ownerSVGElement;
484
+ } else W = S;
485
+ for (var G = Ct(W, k.ownerDocument), ae = 0; G[ae] && G[ae] === L[ae]; ) ae++;
486
+ var rt = [G[ae - 1], G[ae], L[ae]];
487
+ if (rt[0]) for (var Be = rt[0].lastChild; Be; ) {
488
+ if (Be === rt[1]) {
489
+ b = I, L = G;
490
+ break;
491
+ }
492
+ if (Be === rt[2]) break;
493
+ Be = Be.previousSibling;
494
+ }
495
+ } else x = k, (parseInt(D(y = S).getComputedStyle(y).zIndex, 10) || 0) >= (parseInt(D(x).getComputedStyle(x).zIndex, 10) || 0) && (b = I);
496
+ else b = I;
497
+ } else b = I;
498
+ }
499
+ return b;
500
+ })(a);
501
+ return r.activeDrops[h] || null;
502
+ }
503
+ function gt(t, e, n) {
504
+ var r = t.dropState, i = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null };
505
+ return n.type === "dragstart" && (i.activate = new Te(r, n, "dropactivate"), i.activate.target = null, i.activate.dropzone = null), n.type === "dragend" && (i.deactivate = new Te(r, n, "dropdeactivate"), i.deactivate.target = null, i.deactivate.dropzone = null), r.rejected || (r.cur.element !== r.prev.element && (r.prev.dropzone && (i.leave = new Te(r, n, "dragleave"), n.dragLeave = i.leave.target = r.prev.element, n.prevDropzone = i.leave.dropzone = r.prev.dropzone), r.cur.dropzone && (i.enter = new Te(r, n, "dragenter"), n.dragEnter = r.cur.element, n.dropzone = r.cur.dropzone)), n.type === "dragend" && r.cur.dropzone && (i.drop = new Te(r, n, "drop"), n.dropzone = r.cur.dropzone, n.relatedTarget = r.cur.element), n.type === "dragmove" && r.cur.dropzone && (i.move = new Te(r, n, "dropmove"), n.dropzone = r.cur.dropzone)), i;
506
+ }
507
+ function mt(t, e) {
508
+ var n = t.dropState, r = n.activeDrops, i = n.cur, o = n.prev;
509
+ e.leave && o.dropzone.fire(e.leave), e.enter && i.dropzone.fire(e.enter), e.move && i.dropzone.fire(e.move), e.drop && i.dropzone.fire(e.drop), e.deactivate && Ht(r, e.deactivate), n.prev.dropzone = i.dropzone, n.prev.element = i.element;
510
+ }
511
+ function Zt(t, e) {
512
+ var n = t.interaction, r = t.iEvent, i = t.event;
513
+ if (r.type === "dragmove" || r.type === "dragend") {
514
+ var o = n.dropState;
515
+ e.dynamicDrop && (o.activeDrops = vt(e, n.element));
516
+ var a = r, s = Gt(n, a, i);
517
+ o.rejected = o.rejected && !!s && s.dropzone === o.cur.dropzone && s.element === o.cur.element, o.cur.dropzone = s && s.dropzone, o.cur.element = s && s.element, o.events = gt(n, 0, a);
518
+ }
519
+ }
520
+ var Kt = { id: "actions/drop", install: function(t) {
521
+ var e = t.actions, n = t.interactStatic, r = t.Interactable, i = t.defaults;
522
+ t.usePlugin(Oe), r.prototype.dropzone = function(o) {
523
+ return (function(a, s) {
524
+ if (d.object(s)) {
525
+ if (a.options.drop.enabled = s.enabled !== !1, s.listeners) {
526
+ var c = xe(s.listeners), u = Object.keys(c).reduce((function(p, f) {
527
+ return p[/^(enter|leave)/.test(f) ? "drag".concat(f) : /^(activate|deactivate|move)/.test(f) ? "drop".concat(f) : f] = c[f], p;
528
+ }), {}), l = a.options.drop.listeners;
529
+ l && a.off(l), a.on(u), a.options.drop.listeners = u;
530
+ }
531
+ return d.func(s.ondrop) && a.on("drop", s.ondrop), d.func(s.ondropactivate) && a.on("dropactivate", s.ondropactivate), d.func(s.ondropdeactivate) && a.on("dropdeactivate", s.ondropdeactivate), d.func(s.ondragenter) && a.on("dragenter", s.ondragenter), d.func(s.ondragleave) && a.on("dragleave", s.ondragleave), d.func(s.ondropmove) && a.on("dropmove", s.ondropmove), /^(pointer|center)$/.test(s.overlap) ? a.options.drop.overlap = s.overlap : d.number(s.overlap) && (a.options.drop.overlap = Math.max(Math.min(1, s.overlap), 0)), "accept" in s && (a.options.drop.accept = s.accept), "checker" in s && (a.options.drop.checker = s.checker), a;
532
+ }
533
+ return d.bool(s) ? (a.options.drop.enabled = s, a) : a.options.drop;
534
+ })(this, o);
535
+ }, r.prototype.dropCheck = function(o, a, s, c, u, l) {
536
+ return (function(p, f, v, h, g, b, y) {
537
+ var x = !1;
538
+ if (!(y = y || p.getRect(b))) return !!p.options.drop.checker && p.options.drop.checker(f, v, x, p, b, h, g);
539
+ var L = p.options.drop.overlap;
540
+ if (L === "pointer") {
541
+ var I = Ie(h, g, "drag"), S = Nt(f);
542
+ S.x += I.x, S.y += I.y;
543
+ var k = S.x > y.left && S.x < y.right, Y = S.y > y.top && S.y < y.bottom;
544
+ x = k && Y;
545
+ }
546
+ var C = h.getRect(g);
547
+ if (C && L === "center") {
548
+ var W = C.left + C.width / 2, G = C.top + C.height / 2;
549
+ x = W >= y.left && W <= y.right && G >= y.top && G <= y.bottom;
550
+ }
551
+ return C && d.number(L) && (x = Math.max(0, Math.min(y.right, C.right) - Math.max(y.left, C.left)) * Math.max(0, Math.min(y.bottom, C.bottom) - Math.max(y.top, C.top)) / (C.width * C.height) >= L), p.options.drop.checker && (x = p.options.drop.checker(f, v, x, p, b, h, g)), x;
552
+ })(this, o, a, s, c, u, l);
553
+ }, n.dynamicDrop = function(o) {
554
+ return d.bool(o) ? (t.dynamicDrop = o, n) : t.dynamicDrop;
555
+ }, w(e.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), e.methodDict.drop = "dropzone", t.dynamicDrop = !1, i.actions.drop = Kt.defaults;
556
+ }, listeners: { "interactions:before-action-start": function(t) {
557
+ var e = t.interaction;
558
+ e.prepared.name === "drag" && (e.dropState = { cur: { dropzone: null, element: null }, prev: { dropzone: null, element: null }, rejected: null, events: null, activeDrops: [] });
559
+ }, "interactions:after-action-start": function(t, e) {
560
+ var n = t.interaction, r = (t.event, t.iEvent);
561
+ if (n.prepared.name === "drag") {
562
+ var i = n.dropState;
563
+ i.activeDrops = [], i.events = {}, i.activeDrops = vt(e, n.element), i.events = gt(n, 0, r), i.events.activate && (Ht(i.activeDrops, i.events.activate), e.fire("actions/drop:start", { interaction: n, dragEvent: r }));
564
+ }
565
+ }, "interactions:action-move": Zt, "interactions:after-action-move": function(t, e) {
566
+ var n = t.interaction, r = t.iEvent;
567
+ if (n.prepared.name === "drag") {
568
+ var i = n.dropState;
569
+ mt(n, i.events), e.fire("actions/drop:move", { interaction: n, dragEvent: r }), i.events = {};
570
+ }
571
+ }, "interactions:action-end": function(t, e) {
572
+ if (t.interaction.prepared.name === "drag") {
573
+ var n = t.interaction, r = t.iEvent;
574
+ Zt(t, e), mt(n, n.dropState.events), e.fire("actions/drop:end", { interaction: n, dragEvent: r });
575
+ }
576
+ }, "interactions:stop": function(t) {
577
+ var e = t.interaction;
578
+ if (e.prepared.name === "drag") {
579
+ var n = e.dropState;
580
+ n && (n.activeDrops = null, n.events = null, n.cur.dropzone = null, n.cur.element = null, n.prev.dropzone = null, n.prev.element = null, n.rejected = !1);
581
+ }
582
+ } }, getActiveDrops: vt, getDrop: Gt, getDropEvents: gt, fireDropEvents: mt, filterEventType: function(t) {
583
+ return t.search("drag") === 0 || t.search("drop") === 0;
584
+ }, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, $n = Kt;
585
+ function yt(t) {
586
+ var e = t.interaction, n = t.iEvent, r = t.phase;
587
+ if (e.prepared.name === "gesture") {
588
+ var i = e.pointers.map((function(u) {
589
+ return u.pointer;
590
+ })), o = r === "start", a = r === "end", s = e.interactable.options.deltaSource;
591
+ if (n.touches = [i[0], i[1]], o) n.distance = dt(i, s), n.box = ft(i), n.scale = 1, n.ds = 0, n.angle = ht(i, s), n.da = 0, e.gesture.startDistance = n.distance, e.gesture.startAngle = n.angle;
592
+ else if (a || e.pointers.length < 2) {
593
+ var c = e.prevEvent;
594
+ n.distance = c.distance, n.box = c.box, n.scale = c.scale, n.ds = 0, n.angle = c.angle, n.da = 0;
595
+ } else n.distance = dt(i, s), n.box = ft(i), n.scale = n.distance / e.gesture.startDistance, n.angle = ht(i, s), n.ds = n.scale - e.gesture.scale, n.da = n.angle - e.gesture.angle;
596
+ e.gesture.distance = n.distance, e.gesture.angle = n.angle, d.number(n.scale) && n.scale !== 1 / 0 && !isNaN(n.scale) && (e.gesture.scale = n.scale);
597
+ }
598
+ }
599
+ var bt = { id: "actions/gesture", before: ["actions/drag", "actions/resize"], install: function(t) {
600
+ var e = t.actions, n = t.Interactable, r = t.defaults;
601
+ n.prototype.gesturable = function(i) {
602
+ return d.object(i) ? (this.options.gesture.enabled = i.enabled !== !1, this.setPerAction("gesture", i), this.setOnEvents("gesture", i), this) : d.bool(i) ? (this.options.gesture.enabled = i, this) : this.options.gesture;
603
+ }, e.map.gesture = bt, e.methodDict.gesture = "gesturable", r.actions.gesture = bt.defaults;
604
+ }, listeners: { "interactions:action-start": yt, "interactions:action-move": yt, "interactions:action-end": yt, "interactions:new": function(t) {
605
+ t.interaction.gesture = { angle: 0, distance: 0, scale: 1, startAngle: 0, startDistance: 0 };
606
+ }, "auto-start:check": function(t) {
607
+ if (!(t.interaction.pointers.length < 2)) {
608
+ var e = t.interactable.options.gesture;
609
+ if (e && e.enabled) return t.action = { name: "gesture" }, !1;
610
+ }
611
+ } }, defaults: {}, getCursor: function() {
612
+ return "";
613
+ }, filterEventType: function(t) {
614
+ return t.search("gesture") === 0;
615
+ } }, Bn = bt;
616
+ function Vn(t, e, n, r, i, o, a) {
617
+ if (!e) return !1;
618
+ if (e === !0) {
619
+ var s = d.number(o.width) ? o.width : o.right - o.left, c = d.number(o.height) ? o.height : o.bottom - o.top;
620
+ if (a = Math.min(a, Math.abs((t === "left" || t === "right" ? s : c) / 2)), s < 0 && (t === "left" ? t = "right" : t === "right" && (t = "left")), c < 0 && (t === "top" ? t = "bottom" : t === "bottom" && (t = "top")), t === "left") {
621
+ var u = s >= 0 ? o.left : o.right;
622
+ return n.x < u + a;
623
+ }
624
+ if (t === "top") {
625
+ var l = c >= 0 ? o.top : o.bottom;
626
+ return n.y < l + a;
627
+ }
628
+ if (t === "right") return n.x > (s >= 0 ? o.right : o.left) - a;
629
+ if (t === "bottom") return n.y > (c >= 0 ? o.bottom : o.top) - a;
630
+ }
631
+ return !!d.element(r) && (d.element(e) ? e === r : st(r, e, i));
632
+ }
633
+ function Jt(t) {
634
+ var e = t.iEvent, n = t.interaction;
635
+ if (n.prepared.name === "resize" && n.resizeAxes) {
636
+ var r = e;
637
+ n.interactable.options.resize.square ? (n.resizeAxes === "y" ? r.delta.x = r.delta.y : r.delta.y = r.delta.x, r.axes = "xy") : (r.axes = n.resizeAxes, n.resizeAxes === "x" ? r.delta.y = 0 : n.resizeAxes === "y" && (r.delta.x = 0));
638
+ }
639
+ }
640
+ var ie, we, oe = { id: "actions/resize", before: ["actions/drag"], install: function(t) {
641
+ var e = t.actions, n = t.browser, r = t.Interactable, i = t.defaults;
642
+ oe.cursors = (function(o) {
643
+ return o.isIe9 ? { x: "e-resize", y: "s-resize", xy: "se-resize", top: "n-resize", left: "w-resize", bottom: "s-resize", right: "e-resize", topleft: "se-resize", bottomright: "se-resize", topright: "ne-resize", bottomleft: "ne-resize" } : { x: "ew-resize", y: "ns-resize", xy: "nwse-resize", top: "ns-resize", left: "ew-resize", bottom: "ns-resize", right: "ew-resize", topleft: "nwse-resize", bottomright: "nwse-resize", topright: "nesw-resize", bottomleft: "nesw-resize" };
644
+ })(n), oe.defaultMargin = n.supportsTouch || n.supportsPointerEvent ? 20 : 10, r.prototype.resizable = function(o) {
645
+ return (function(a, s, c) {
646
+ return d.object(s) ? (a.options.resize.enabled = s.enabled !== !1, a.setPerAction("resize", s), a.setOnEvents("resize", s), d.string(s.axis) && /^x$|^y$|^xy$/.test(s.axis) ? a.options.resize.axis = s.axis : s.axis === null && (a.options.resize.axis = c.defaults.actions.resize.axis), d.bool(s.preserveAspectRatio) ? a.options.resize.preserveAspectRatio = s.preserveAspectRatio : d.bool(s.square) && (a.options.resize.square = s.square), a) : d.bool(s) ? (a.options.resize.enabled = s, a) : a.options.resize;
647
+ })(this, o, t);
648
+ }, e.map.resize = oe, e.methodDict.resize = "resizable", i.actions.resize = oe.defaults;
649
+ }, listeners: { "interactions:new": function(t) {
650
+ t.interaction.resizeAxes = "xy";
651
+ }, "interactions:action-start": function(t) {
652
+ (function(e) {
653
+ var n = e.iEvent, r = e.interaction;
654
+ if (r.prepared.name === "resize" && r.prepared.edges) {
655
+ var i = n, o = r.rect;
656
+ r._rects = { start: w({}, o), corrected: w({}, o), previous: w({}, o), delta: { left: 0, right: 0, width: 0, top: 0, bottom: 0, height: 0 } }, i.edges = r.prepared.edges, i.rect = r._rects.corrected, i.deltaRect = r._rects.delta;
657
+ }
658
+ })(t), Jt(t);
659
+ }, "interactions:action-move": function(t) {
660
+ (function(e) {
661
+ var n = e.iEvent, r = e.interaction;
662
+ if (r.prepared.name === "resize" && r.prepared.edges) {
663
+ var i = n, o = r.interactable.options.resize.invert, a = o === "reposition" || o === "negate", s = r.rect, c = r._rects, u = c.start, l = c.corrected, p = c.delta, f = c.previous;
664
+ if (w(f, l), a) {
665
+ if (w(l, s), o === "reposition") {
666
+ if (l.top > l.bottom) {
667
+ var v = l.top;
668
+ l.top = l.bottom, l.bottom = v;
669
+ }
670
+ if (l.left > l.right) {
671
+ var h = l.left;
672
+ l.left = l.right, l.right = h;
673
+ }
674
+ }
675
+ } else l.top = Math.min(s.top, u.bottom), l.bottom = Math.max(s.bottom, u.top), l.left = Math.min(s.left, u.right), l.right = Math.max(s.right, u.left);
676
+ for (var g in l.width = l.right - l.left, l.height = l.bottom - l.top, l) p[g] = l[g] - f[g];
677
+ i.edges = r.prepared.edges, i.rect = l, i.deltaRect = p;
678
+ }
679
+ })(t), Jt(t);
680
+ }, "interactions:action-end": function(t) {
681
+ var e = t.iEvent, n = t.interaction;
682
+ if (n.prepared.name === "resize" && n.prepared.edges) {
683
+ var r = e;
684
+ r.edges = n.prepared.edges, r.rect = n._rects.corrected, r.deltaRect = n._rects.delta;
685
+ }
686
+ }, "auto-start:check": function(t) {
687
+ var e = t.interaction, n = t.interactable, r = t.element, i = t.rect, o = t.buttons;
688
+ if (i) {
689
+ var a = w({}, e.coords.cur.page), s = n.options.resize;
690
+ if (s && s.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (o & s.mouseButtons) != 0)) {
691
+ if (d.object(s.edges)) {
692
+ var c = { left: !1, right: !1, top: !1, bottom: !1 };
693
+ for (var u in c) c[u] = Vn(u, s.edges[u], a, e._latestPointer.eventTarget, r, i, s.margin || oe.defaultMargin);
694
+ c.left = c.left && !c.right, c.top = c.top && !c.bottom, (c.left || c.right || c.top || c.bottom) && (t.action = { name: "resize", edges: c });
695
+ } else {
696
+ var l = s.axis !== "y" && a.x > i.right - oe.defaultMargin, p = s.axis !== "x" && a.y > i.bottom - oe.defaultMargin;
697
+ (l || p) && (t.action = { name: "resize", axes: (l ? "x" : "") + (p ? "y" : "") });
698
+ }
699
+ return !t.action && void 0;
700
+ }
701
+ }
702
+ } }, defaults: { square: !1, preserveAspectRatio: !1, axis: "xy", margin: NaN, edges: null, invert: "none" }, cursors: null, getCursor: function(t) {
703
+ var e = t.edges, n = t.axis, r = t.name, i = oe.cursors, o = null;
704
+ if (n) o = i[r + n];
705
+ else if (e) {
706
+ for (var a = "", s = 0, c = ["top", "bottom", "left", "right"]; s < c.length; s++) {
707
+ var u = c[s];
708
+ e[u] && (a += u);
709
+ }
710
+ o = i[a];
711
+ }
712
+ return o;
713
+ }, filterEventType: function(t) {
714
+ return t.search("resize") === 0;
715
+ }, defaultMargin: null }, Nn = oe, qn = { id: "actions", install: function(t) {
716
+ t.usePlugin(Bn), t.usePlugin(Nn), t.usePlugin(Oe), t.usePlugin($n);
717
+ } }, Qt = 0, fe = { request: function(t) {
718
+ return ie(t);
719
+ }, cancel: function(t) {
720
+ return we(t);
721
+ }, init: function(t) {
722
+ if (ie = t.requestAnimationFrame, we = t.cancelAnimationFrame, !ie) for (var e = ["ms", "moz", "webkit", "o"], n = 0; n < e.length; n++) {
723
+ var r = e[n];
724
+ ie = t["".concat(r, "RequestAnimationFrame")], we = t["".concat(r, "CancelAnimationFrame")] || t["".concat(r, "CancelRequestAnimationFrame")];
725
+ }
726
+ ie = ie && ie.bind(t), we = we && we.bind(t), ie || (ie = function(i) {
727
+ var o = Date.now(), a = Math.max(0, 16 - (o - Qt)), s = t.setTimeout((function() {
728
+ i(o + a);
729
+ }), a);
730
+ return Qt = o + a, s;
731
+ }, we = function(i) {
732
+ return clearTimeout(i);
733
+ });
734
+ } }, E = { defaults: { enabled: !1, margin: 60, container: null, speed: 300 }, now: Date.now, interaction: null, i: 0, x: 0, y: 0, isScrolling: !1, prevTime: 0, margin: 0, speed: 0, start: function(t) {
735
+ E.isScrolling = !0, fe.cancel(E.i), t.autoScroll = E, E.interaction = t, E.prevTime = E.now(), E.i = fe.request(E.scroll);
736
+ }, stop: function() {
737
+ E.isScrolling = !1, E.interaction && (E.interaction.autoScroll = null), fe.cancel(E.i);
738
+ }, scroll: function() {
739
+ var t = E.interaction, e = t.interactable, n = t.element, r = t.prepared.name, i = e.options[r].autoScroll, o = en(i.container, e, n), a = E.now(), s = (a - E.prevTime) / 1e3, c = i.speed * s;
740
+ if (c >= 1) {
741
+ var u = { x: E.x * c, y: E.y * c };
742
+ if (u.x || u.y) {
743
+ var l = tn(o);
744
+ d.window(o) ? o.scrollBy(u.x, u.y) : o && (o.scrollLeft += u.x, o.scrollTop += u.y);
745
+ var p = tn(o), f = { x: p.x - l.x, y: p.y - l.y };
746
+ (f.x || f.y) && e.fire({ type: "autoscroll", target: n, interactable: e, delta: f, interaction: t, container: o });
747
+ }
748
+ E.prevTime = a;
749
+ }
750
+ E.isScrolling && (fe.cancel(E.i), E.i = fe.request(E.scroll));
751
+ }, check: function(t, e) {
752
+ var n;
753
+ return (n = t.options[e].autoScroll) == null ? void 0 : n.enabled;
754
+ }, onInteractionMove: function(t) {
755
+ var e = t.interaction, n = t.pointer;
756
+ if (e.interacting() && E.check(e.interactable, e.prepared.name)) if (e.simulation) E.x = E.y = 0;
757
+ else {
758
+ var r, i, o, a, s = e.interactable, c = e.element, u = e.prepared.name, l = s.options[u].autoScroll, p = en(l.container, s, c);
759
+ if (d.window(p)) a = n.clientX < E.margin, r = n.clientY < E.margin, i = n.clientX > p.innerWidth - E.margin, o = n.clientY > p.innerHeight - E.margin;
760
+ else {
761
+ var f = ct(p);
762
+ a = n.clientX < f.left + E.margin, r = n.clientY < f.top + E.margin, i = n.clientX > f.right - E.margin, o = n.clientY > f.bottom - E.margin;
763
+ }
764
+ E.x = i ? 1 : a ? -1 : 0, E.y = o ? 1 : r ? -1 : 0, E.isScrolling || (E.margin = l.margin, E.speed = l.speed, E.start(e));
765
+ }
766
+ } };
767
+ function en(t, e, n) {
768
+ return (d.string(t) ? Ft(t, e, n) : t) || D(n);
769
+ }
770
+ function tn(t) {
771
+ return d.window(t) && (t = window.document.body), { x: t.scrollLeft, y: t.scrollTop };
772
+ }
773
+ var Xn = { id: "auto-scroll", install: function(t) {
774
+ var e = t.defaults, n = t.actions;
775
+ t.autoScroll = E, E.now = function() {
776
+ return t.now();
777
+ }, n.phaselessTypes.autoscroll = !0, e.perAction.autoScroll = E.defaults;
778
+ }, listeners: { "interactions:new": function(t) {
779
+ t.interaction.autoScroll = null;
780
+ }, "interactions:destroy": function(t) {
781
+ t.interaction.autoScroll = null, E.stop(), E.interaction && (E.interaction = null);
782
+ }, "interactions:stop": E.stop, "interactions:action-move": function(t) {
783
+ return E.onInteractionMove(t);
784
+ } } }, Yn = Xn;
785
+ function Ae(t, e) {
786
+ var n = !1;
787
+ return function() {
788
+ return n || (O.console.warn(e), n = !0), t.apply(this, arguments);
789
+ };
790
+ }
791
+ function xt(t, e) {
792
+ return t.name = e.name, t.axis = e.axis, t.edges = e.edges, t;
793
+ }
794
+ function Wn(t) {
795
+ return d.bool(t) ? (this.options.styleCursor = t, this) : t === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
796
+ }
797
+ function Un(t) {
798
+ return d.func(t) ? (this.options.actionChecker = t, this) : t === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
799
+ }
800
+ var Hn = { id: "auto-start/interactableMethods", install: function(t) {
801
+ var e = t.Interactable;
802
+ e.prototype.getAction = function(n, r, i, o) {
803
+ var a = (function(s, c, u, l, p) {
804
+ var f = s.getRect(l), v = c.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[c.button], h = { action: null, interactable: s, interaction: u, element: l, rect: f, buttons: v };
805
+ return p.fire("auto-start:check", h), h.action;
806
+ })(this, r, i, o, t);
807
+ return this.options.actionChecker ? this.options.actionChecker(n, r, a, this, o, i) : a;
808
+ }, e.prototype.ignoreFrom = Ae((function(n) {
809
+ return this._backCompatOption("ignoreFrom", n);
810
+ }), "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), e.prototype.allowFrom = Ae((function(n) {
811
+ return this._backCompatOption("allowFrom", n);
812
+ }), "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = Un, e.prototype.styleCursor = Wn;
813
+ } };
814
+ function nn(t, e, n, r, i) {
815
+ return e.testIgnoreAllow(e.options[t.name], n, r) && e.options[t.name].enabled && Ge(e, n, t, i) ? t : null;
816
+ }
817
+ function Gn(t, e, n, r, i, o, a) {
818
+ for (var s = 0, c = r.length; s < c; s++) {
819
+ var u = r[s], l = i[s], p = u.getAction(e, n, t, l);
820
+ if (p) {
821
+ var f = nn(p, u, l, o, a);
822
+ if (f) return { action: f, interactable: u, element: l };
823
+ }
824
+ }
825
+ return { action: null, interactable: null, element: null };
826
+ }
827
+ function rn(t, e, n, r, i) {
828
+ var o = [], a = [], s = r;
829
+ function c(l) {
830
+ o.push(l), a.push(s);
831
+ }
832
+ for (; d.element(s); ) {
833
+ o = [], a = [], i.interactables.forEachMatch(s, c);
834
+ var u = Gn(t, e, n, o, a, r, i);
835
+ if (u.action && !u.interactable.options[u.action.name].manualStart) return u;
836
+ s = H(s);
837
+ }
838
+ return { action: null, interactable: null, element: null };
839
+ }
840
+ function on(t, e, n) {
841
+ var r = e.action, i = e.interactable, o = e.element;
842
+ r = r || { name: null }, t.interactable = i, t.element = o, xt(t.prepared, r), t.rect = i && r.name ? i.getRect(o) : null, sn(t, n), n.fire("autoStart:prepared", { interaction: t });
843
+ }
844
+ function Ge(t, e, n, r) {
845
+ var i = t.options, o = i[n.name].max, a = i[n.name].maxPerElement, s = r.autoStart.maxInteractions, c = 0, u = 0, l = 0;
846
+ if (!(o && a && s)) return !1;
847
+ for (var p = 0, f = r.interactions.list; p < f.length; p++) {
848
+ var v = f[p], h = v.prepared.name;
849
+ if (v.interacting() && (++c >= s || v.interactable === t && ((u += h === n.name ? 1 : 0) >= o || v.element === e && (l++, h === n.name && l >= a))))
850
+ return !1;
851
+ }
852
+ return s > 0;
853
+ }
854
+ function an(t, e) {
855
+ return d.number(t) ? (e.autoStart.maxInteractions = t, this) : e.autoStart.maxInteractions;
856
+ }
857
+ function wt(t, e, n) {
858
+ var r = n.autoStart.cursorElement;
859
+ r && r !== t && (r.style.cursor = ""), t.ownerDocument.documentElement.style.cursor = e, t.style.cursor = e, n.autoStart.cursorElement = e ? t : null;
860
+ }
861
+ function sn(t, e) {
862
+ var n = t.interactable, r = t.element, i = t.prepared;
863
+ if (t.pointerType === "mouse" && n && n.options.styleCursor) {
864
+ var o = "";
865
+ if (i.name) {
866
+ var a = n.options[i.name].cursorChecker;
867
+ o = d.func(a) ? a(i, n, r, t._interacting) : e.actions.map[i.name].getCursor(i);
868
+ }
869
+ wt(t.element, o || "", e);
870
+ } else e.autoStart.cursorElement && wt(e.autoStart.cursorElement, "", e);
871
+ }
872
+ var Zn = { id: "auto-start/base", before: ["actions"], install: function(t) {
873
+ var e = t.interactStatic, n = t.defaults;
874
+ t.usePlugin(Hn), n.base.actionChecker = null, n.base.styleCursor = !0, w(n.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), e.maxInteractions = function(r) {
875
+ return an(r, t);
876
+ }, t.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: Ge, cursorElement: null };
877
+ }, listeners: { "interactions:down": function(t, e) {
878
+ var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget;
879
+ n.interacting() || on(n, rn(n, r, i, o, e), e);
880
+ }, "interactions:move": function(t, e) {
881
+ (function(n, r) {
882
+ var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget;
883
+ i.pointerType !== "mouse" || i.pointerIsDown || i.interacting() || on(i, rn(i, o, a, s, r), r);
884
+ })(t, e), (function(n, r) {
885
+ var i = n.interaction;
886
+ if (i.pointerIsDown && !i.interacting() && i.pointerWasMoved && i.prepared.name) {
887
+ r.fire("autoStart:before-start", n);
888
+ var o = i.interactable, a = i.prepared.name;
889
+ a && o && (o.options[a].manualStart || !Ge(o, i.element, i.prepared, r) ? i.stop() : (i.start(i.prepared, o, i.element), sn(i, r)));
890
+ }
891
+ })(t, e);
892
+ }, "interactions:stop": function(t, e) {
893
+ var n = t.interaction, r = n.interactable;
894
+ r && r.options.styleCursor && wt(n.element, "", e);
895
+ } }, maxInteractions: an, withinInteractionLimit: Ge, validateAction: nn }, St = Zn, Kn = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(t, e) {
896
+ var n = t.interaction, r = t.eventTarget, i = t.dx, o = t.dy;
897
+ if (n.prepared.name === "drag") {
898
+ var a = Math.abs(i), s = Math.abs(o), c = n.interactable.options.drag, u = c.startAxis, l = a > s ? "x" : a < s ? "y" : "xy";
899
+ if (n.prepared.axis = c.lockAxis === "start" ? l[0] : c.lockAxis, l !== "xy" && u !== "xy" && u !== l) {
900
+ n.prepared.name = null;
901
+ for (var p = r, f = function(h) {
902
+ if (h !== n.interactable) {
903
+ var g = n.interactable.options.drag;
904
+ if (!g.manualStart && h.testIgnoreAllow(g, p, r)) {
905
+ var b = h.getAction(n.downPointer, n.downEvent, n, p);
906
+ if (b && b.name === "drag" && (function(y, x) {
907
+ if (!x) return !1;
908
+ var L = x.options.drag.startAxis;
909
+ return y === "xy" || L === "xy" || L === y;
910
+ })(l, h) && St.validateAction(b, h, p, r, e)) return h;
911
+ }
912
+ }
913
+ }; d.element(p); ) {
914
+ var v = e.interactables.forEachMatch(p, f);
915
+ if (v) {
916
+ n.prepared.name = "drag", n.interactable = v, n.element = p;
917
+ break;
918
+ }
919
+ p = H(p);
920
+ }
921
+ }
922
+ }
923
+ } } };
924
+ function Et(t) {
925
+ var e = t.prepared && t.prepared.name;
926
+ if (!e) return null;
927
+ var n = t.interactable.options;
928
+ return n[e].hold || n[e].delay;
929
+ }
930
+ var Jn = { id: "auto-start/hold", install: function(t) {
931
+ var e = t.defaults;
932
+ t.usePlugin(St), e.perAction.hold = 0, e.perAction.delay = 0;
933
+ }, listeners: { "interactions:new": function(t) {
934
+ t.interaction.autoStartHoldTimer = null;
935
+ }, "autoStart:prepared": function(t) {
936
+ var e = t.interaction, n = Et(e);
937
+ n > 0 && (e.autoStartHoldTimer = setTimeout((function() {
938
+ e.start(e.prepared, e.interactable, e.element);
939
+ }), n));
940
+ }, "interactions:move": function(t) {
941
+ var e = t.interaction, n = t.duplicate;
942
+ e.autoStartHoldTimer && e.pointerWasMoved && !n && (clearTimeout(e.autoStartHoldTimer), e.autoStartHoldTimer = null);
943
+ }, "autoStart:before-start": function(t) {
944
+ var e = t.interaction;
945
+ Et(e) > 0 && (e.prepared.name = null);
946
+ } }, getHoldDuration: Et }, Qn = Jn, er = { id: "auto-start", install: function(t) {
947
+ t.usePlugin(St), t.usePlugin(Qn), t.usePlugin(Kn);
948
+ } }, tr = function(t) {
949
+ return /^(always|never|auto)$/.test(t) ? (this.options.preventDefault = t, this) : d.bool(t) ? (this.options.preventDefault = t ? "always" : "never", this) : this.options.preventDefault;
950
+ };
951
+ function nr(t) {
952
+ var e = t.interaction, n = t.event;
953
+ e.interactable && e.interactable.checkAndPreventDefault(n);
954
+ }
955
+ var cn = { id: "core/interactablePreventDefault", install: function(t) {
956
+ var e = t.Interactable;
957
+ e.prototype.preventDefault = tr, e.prototype.checkAndPreventDefault = function(n) {
958
+ return (function(r, i, o) {
959
+ var a = r.options.preventDefault;
960
+ if (a !== "never") if (a !== "always") {
961
+ if (i.events.supportsPassive && /^touch(start|move)$/.test(o.type)) {
962
+ var s = D(o.target).document, c = i.getDocOptions(s);
963
+ if (!c || !c.events || c.events.passive !== !1) return;
964
+ }
965
+ /^(mouse|pointer|touch)*(down|start)/i.test(o.type) || d.element(o.target) && pe(o.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || o.preventDefault();
966
+ } else o.preventDefault();
967
+ })(this, t, n);
968
+ }, t.interactions.docEvents.push({ type: "dragstart", listener: function(n) {
969
+ for (var r = 0, i = t.interactions.list; r < i.length; r++) {
970
+ var o = i[r];
971
+ if (o.element && (o.element === n.target || K(o.element, n.target))) return void o.interactable.checkAndPreventDefault(n);
972
+ }
973
+ } });
974
+ }, listeners: ["down", "move", "up", "cancel"].reduce((function(t, e) {
975
+ return t["interactions:".concat(e)] = nr, t;
976
+ }), {}) };
977
+ function Ze(t, e) {
978
+ if (e.phaselessTypes[t]) return !0;
979
+ for (var n in e.map) if (t.indexOf(n) === 0 && t.substr(n.length) in e.phases) return !0;
980
+ return !1;
981
+ }
982
+ function Le(t) {
983
+ var e = {};
984
+ for (var n in t) {
985
+ var r = t[n];
986
+ d.plainObject(r) ? e[n] = Le(r) : d.array(r) ? e[n] = Ut(r) : e[n] = r;
987
+ }
988
+ return e;
989
+ }
990
+ var _t = (function() {
991
+ function t(e) {
992
+ B(this, t), this.states = [], this.startOffset = { left: 0, right: 0, top: 0, bottom: 0 }, this.startDelta = void 0, this.result = void 0, this.endResult = void 0, this.startEdges = void 0, this.edges = void 0, this.interaction = void 0, this.interaction = e, this.result = Ke(), this.edges = { left: !1, right: !1, top: !1, bottom: !1 };
993
+ }
994
+ return F(t, [{ key: "start", value: function(e, n) {
995
+ var r, i, o = e.phase, a = this.interaction, s = (function(u) {
996
+ var l = u.interactable.options[u.prepared.name], p = l.modifiers;
997
+ return p && p.length ? p : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map((function(f) {
998
+ var v = l[f];
999
+ return v && v.enabled && { options: v, methods: v._methods };
1000
+ })).filter((function(f) {
1001
+ return !!f;
1002
+ }));
1003
+ })(a);
1004
+ this.prepareStates(s), this.startEdges = w({}, a.edges), this.edges = w({}, this.startEdges), this.startOffset = (r = a.rect, i = n, r ? { left: i.x - r.left, top: i.y - r.top, right: r.right - i.x, bottom: r.bottom - i.y } : { left: 0, top: 0, right: 0, bottom: 0 }), this.startDelta = { x: 0, y: 0 };
1005
+ var c = this.fillArg({ phase: o, pageCoords: n, preEnd: !1 });
1006
+ return this.result = Ke(), this.startAll(c), this.result = this.setAll(c);
1007
+ } }, { key: "fillArg", value: function(e) {
1008
+ var n = this.interaction;
1009
+ return e.interaction = n, e.interactable = n.interactable, e.element = n.element, e.rect || (e.rect = n.rect), e.edges || (e.edges = this.startEdges), e.startOffset = this.startOffset, e;
1010
+ } }, { key: "startAll", value: function(e) {
1011
+ for (var n = 0, r = this.states; n < r.length; n++) {
1012
+ var i = r[n];
1013
+ i.methods.start && (e.state = i, i.methods.start(e));
1014
+ }
1015
+ } }, { key: "setAll", value: function(e) {
1016
+ var n = e.phase, r = e.preEnd, i = e.skipModifiers, o = e.rect, a = e.edges;
1017
+ e.coords = w({}, e.pageCoords), e.rect = w({}, o), e.edges = w({}, a);
1018
+ for (var s = i ? this.states.slice(i) : this.states, c = Ke(e.coords, e.rect), u = 0; u < s.length; u++) {
1019
+ var l, p = s[u], f = p.options, v = w({}, e.coords), h = null;
1020
+ (l = p.methods) != null && l.set && this.shouldDo(f, r, n) && (e.state = p, h = p.methods.set(e), Xe(e.edges, e.rect, { x: e.coords.x - v.x, y: e.coords.y - v.y })), c.eventProps.push(h);
1021
+ }
1022
+ w(this.edges, e.edges), c.delta.x = e.coords.x - e.pageCoords.x, c.delta.y = e.coords.y - e.pageCoords.y, c.rectDelta.left = e.rect.left - o.left, c.rectDelta.right = e.rect.right - o.right, c.rectDelta.top = e.rect.top - o.top, c.rectDelta.bottom = e.rect.bottom - o.bottom;
1023
+ var g = this.result.coords, b = this.result.rect;
1024
+ if (g && b) {
1025
+ var y = c.rect.left !== b.left || c.rect.right !== b.right || c.rect.top !== b.top || c.rect.bottom !== b.bottom;
1026
+ c.changed = y || g.x !== c.coords.x || g.y !== c.coords.y;
1027
+ }
1028
+ return c;
1029
+ } }, { key: "applyToInteraction", value: function(e) {
1030
+ var n = this.interaction, r = e.phase, i = n.coords.cur, o = n.coords.start, a = this.result, s = this.startDelta, c = a.delta;
1031
+ r === "start" && w(this.startDelta, a.delta);
1032
+ for (var u = 0, l = [[o, s], [i, c]]; u < l.length; u++) {
1033
+ var p = l[u], f = p[0], v = p[1];
1034
+ f.page.x += v.x, f.page.y += v.y, f.client.x += v.x, f.client.y += v.y;
1035
+ }
1036
+ var h = this.result.rectDelta, g = e.rect || n.rect;
1037
+ g.left += h.left, g.right += h.right, g.top += h.top, g.bottom += h.bottom, g.width = g.right - g.left, g.height = g.bottom - g.top;
1038
+ } }, { key: "setAndApply", value: function(e) {
1039
+ var n = this.interaction, r = e.phase, i = e.preEnd, o = e.skipModifiers, a = this.setAll(this.fillArg({ preEnd: i, phase: r, pageCoords: e.modifiedCoords || n.coords.cur.page }));
1040
+ if (this.result = a, !a.changed && (!o || o < this.states.length) && n.interacting()) return !1;
1041
+ if (e.modifiedCoords) {
1042
+ var s = n.coords.cur.page, c = { x: e.modifiedCoords.x - s.x, y: e.modifiedCoords.y - s.y };
1043
+ a.coords.x += c.x, a.coords.y += c.y, a.delta.x += c.x, a.delta.y += c.y;
1044
+ }
1045
+ this.applyToInteraction(e);
1046
+ } }, { key: "beforeEnd", value: function(e) {
1047
+ var n = e.interaction, r = e.event, i = this.states;
1048
+ if (i && i.length) {
1049
+ for (var o = !1, a = 0; a < i.length; a++) {
1050
+ var s = i[a];
1051
+ e.state = s;
1052
+ var c = s.options, u = s.methods, l = u.beforeEnd && u.beforeEnd(e);
1053
+ if (l) return this.endResult = l, !1;
1054
+ o = o || !o && this.shouldDo(c, !0, e.phase, !0);
1055
+ }
1056
+ o && n.move({ event: r, preEnd: !0 });
1057
+ }
1058
+ } }, { key: "stop", value: function(e) {
1059
+ var n = e.interaction;
1060
+ if (this.states && this.states.length) {
1061
+ var r = w({ states: this.states, interactable: n.interactable, element: n.element, rect: null }, e);
1062
+ this.fillArg(r);
1063
+ for (var i = 0, o = this.states; i < o.length; i++) {
1064
+ var a = o[i];
1065
+ r.state = a, a.methods.stop && a.methods.stop(r);
1066
+ }
1067
+ this.states = null, this.endResult = null;
1068
+ }
1069
+ } }, { key: "prepareStates", value: function(e) {
1070
+ this.states = [];
1071
+ for (var n = 0; n < e.length; n++) {
1072
+ var r = e[n], i = r.options, o = r.methods, a = r.name;
1073
+ this.states.push({ options: i, methods: o, index: n, name: a });
1074
+ }
1075
+ return this.states;
1076
+ } }, { key: "restoreInteractionCoords", value: function(e) {
1077
+ var n = e.interaction, r = n.coords, i = n.rect, o = n.modification;
1078
+ if (o.result) {
1079
+ for (var a = o.startDelta, s = o.result, c = s.delta, u = s.rectDelta, l = 0, p = [[r.start, a], [r.cur, c]]; l < p.length; l++) {
1080
+ var f = p[l], v = f[0], h = f[1];
1081
+ v.page.x -= h.x, v.page.y -= h.y, v.client.x -= h.x, v.client.y -= h.y;
1082
+ }
1083
+ i.left -= u.left, i.right -= u.right, i.top -= u.top, i.bottom -= u.bottom;
1084
+ }
1085
+ } }, { key: "shouldDo", value: function(e, n, r, i) {
1086
+ return !(!e || e.enabled === !1 || i && !e.endOnly || e.endOnly && !n || r === "start" && !e.setStart);
1087
+ } }, { key: "copyFrom", value: function(e) {
1088
+ this.startOffset = e.startOffset, this.startDelta = e.startDelta, this.startEdges = e.startEdges, this.edges = e.edges, this.states = e.states.map((function(n) {
1089
+ return Le(n);
1090
+ })), this.result = Ke(w({}, e.result.coords), w({}, e.result.rect));
1091
+ } }, { key: "destroy", value: function() {
1092
+ for (var e in this) this[e] = null;
1093
+ } }]), t;
1094
+ })();
1095
+ function Ke(t, e) {
1096
+ return { rect: e, coords: t, delta: { x: 0, y: 0 }, rectDelta: { left: 0, right: 0, top: 0, bottom: 0 }, eventProps: [], changed: !0 };
1097
+ }
1098
+ function de(t, e) {
1099
+ var n = t.defaults, r = { start: t.start, set: t.set, beforeEnd: t.beforeEnd, stop: t.stop }, i = function(o) {
1100
+ var a = o || {};
1101
+ for (var s in a.enabled = a.enabled !== !1, n) s in a || (a[s] = n[s]);
1102
+ var c = { options: a, methods: r, name: e, enable: function() {
1103
+ return a.enabled = !0, c;
1104
+ }, disable: function() {
1105
+ return a.enabled = !1, c;
1106
+ } };
1107
+ return c;
1108
+ };
1109
+ return e && typeof e == "string" && (i._defaults = n, i._methods = r), i;
1110
+ }
1111
+ function Re(t) {
1112
+ var e = t.iEvent, n = t.interaction.modification.result;
1113
+ n && (e.modifiers = n.eventProps);
1114
+ }
1115
+ var rr = { id: "modifiers/base", before: ["actions"], install: function(t) {
1116
+ t.defaults.perAction.modifiers = [];
1117
+ }, listeners: { "interactions:new": function(t) {
1118
+ var e = t.interaction;
1119
+ e.modification = new _t(e);
1120
+ }, "interactions:before-action-start": function(t) {
1121
+ var e = t.interaction, n = t.interaction.modification;
1122
+ n.start(t, e.coords.start.page), e.edges = n.edges, n.applyToInteraction(t);
1123
+ }, "interactions:before-action-move": function(t) {
1124
+ var e = t.interaction, n = e.modification, r = n.setAndApply(t);
1125
+ return e.edges = n.edges, r;
1126
+ }, "interactions:before-action-end": function(t) {
1127
+ var e = t.interaction, n = e.modification, r = n.beforeEnd(t);
1128
+ return e.edges = n.startEdges, r;
1129
+ }, "interactions:action-start": Re, "interactions:action-move": Re, "interactions:action-end": Re, "interactions:after-action-start": function(t) {
1130
+ return t.interaction.modification.restoreInteractionCoords(t);
1131
+ }, "interactions:after-action-move": function(t) {
1132
+ return t.interaction.modification.restoreInteractionCoords(t);
1133
+ }, "interactions:stop": function(t) {
1134
+ return t.interaction.modification.stop(t);
1135
+ } } }, ln = rr, un = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Tt = (function(t) {
1136
+ me(n, t);
1137
+ var e = ue(n);
1138
+ function n(r, i, o, a, s, c, u) {
1139
+ var l;
1140
+ B(this, n), (l = e.call(this, r)).relatedTarget = null, l.screenX = void 0, l.screenY = void 0, l.button = void 0, l.buttons = void 0, l.ctrlKey = void 0, l.shiftKey = void 0, l.altKey = void 0, l.metaKey = void 0, l.page = void 0, l.client = void 0, l.delta = void 0, l.rect = void 0, l.x0 = void 0, l.y0 = void 0, l.t0 = void 0, l.dt = void 0, l.duration = void 0, l.clientX0 = void 0, l.clientY0 = void 0, l.velocity = void 0, l.speed = void 0, l.swipe = void 0, l.axes = void 0, l.preEnd = void 0, s = s || r.element;
1141
+ var p = r.interactable, f = (p && p.options || un).deltaSource, v = Ie(p, s, o), h = a === "start", g = a === "end", b = h ? Ee(l) : r.prevEvent, y = h ? r.coords.start : g ? { page: b.page, client: b.client, timeStamp: r.coords.cur.timeStamp } : r.coords.cur;
1142
+ return l.page = w({}, y.page), l.client = w({}, y.client), l.rect = w({}, r.rect), l.timeStamp = y.timeStamp, g || (l.page.x -= v.x, l.page.y -= v.y, l.client.x -= v.x, l.client.y -= v.y), l.ctrlKey = i.ctrlKey, l.altKey = i.altKey, l.shiftKey = i.shiftKey, l.metaKey = i.metaKey, l.button = i.button, l.buttons = i.buttons, l.target = s, l.currentTarget = s, l.preEnd = c, l.type = u || o + (a || ""), l.interactable = p, l.t0 = h ? r.pointers[r.pointers.length - 1].downTime : b.t0, l.x0 = r.coords.start.page.x - v.x, l.y0 = r.coords.start.page.y - v.y, l.clientX0 = r.coords.start.client.x - v.x, l.clientY0 = r.coords.start.client.y - v.y, l.delta = h || g ? { x: 0, y: 0 } : { x: l[f].x - b[f].x, y: l[f].y - b[f].y }, l.dt = r.coords.delta.timeStamp, l.duration = l.timeStamp - l.t0, l.velocity = w({}, r.coords.velocity[f]), l.speed = Me(l.velocity.x, l.velocity.y), l.swipe = g || a === "inertiastart" ? l.getSwipe() : null, l;
1143
+ }
1144
+ return F(n, [{ key: "getSwipe", value: function() {
1145
+ var r = this._interaction;
1146
+ if (r.prevEvent.speed < 600 || this.timeStamp - r.prevEvent.timeStamp > 150) return null;
1147
+ var i = 180 * Math.atan2(r.prevEvent.velocityY, r.prevEvent.velocityX) / Math.PI;
1148
+ i < 0 && (i += 360);
1149
+ var o = 112.5 <= i && i < 247.5, a = 202.5 <= i && i < 337.5;
1150
+ return { up: a, down: !a && 22.5 <= i && i < 157.5, left: o, right: !o && (292.5 <= i || i < 67.5), angle: i, speed: r.prevEvent.speed, velocity: { x: r.prevEvent.velocityX, y: r.prevEvent.velocityY } };
1151
+ } }, { key: "preventDefault", value: function() {
1152
+ } }, { key: "stopImmediatePropagation", value: function() {
1153
+ this.immediatePropagationStopped = this.propagationStopped = !0;
1154
+ } }, { key: "stopPropagation", value: function() {
1155
+ this.propagationStopped = !0;
1156
+ } }]), n;
1157
+ })(He);
1158
+ Object.defineProperties(Tt.prototype, { pageX: { get: function() {
1159
+ return this.page.x;
1160
+ }, set: function(t) {
1161
+ this.page.x = t;
1162
+ } }, pageY: { get: function() {
1163
+ return this.page.y;
1164
+ }, set: function(t) {
1165
+ this.page.y = t;
1166
+ } }, clientX: { get: function() {
1167
+ return this.client.x;
1168
+ }, set: function(t) {
1169
+ this.client.x = t;
1170
+ } }, clientY: { get: function() {
1171
+ return this.client.y;
1172
+ }, set: function(t) {
1173
+ this.client.y = t;
1174
+ } }, dx: { get: function() {
1175
+ return this.delta.x;
1176
+ }, set: function(t) {
1177
+ this.delta.x = t;
1178
+ } }, dy: { get: function() {
1179
+ return this.delta.y;
1180
+ }, set: function(t) {
1181
+ this.delta.y = t;
1182
+ } }, velocityX: { get: function() {
1183
+ return this.velocity.x;
1184
+ }, set: function(t) {
1185
+ this.velocity.x = t;
1186
+ } }, velocityY: { get: function() {
1187
+ return this.velocity.y;
1188
+ }, set: function(t) {
1189
+ this.velocity.y = t;
1190
+ } } });
1191
+ var ir = F((function t(e, n, r, i, o) {
1192
+ B(this, t), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = e, this.pointer = n, this.event = r, this.downTime = i, this.downTarget = o;
1193
+ })), or = (function(t) {
1194
+ return t.interactable = "", t.element = "", t.prepared = "", t.pointerIsDown = "", t.pointerWasMoved = "", t._proxy = "", t;
1195
+ })({}), pn = (function(t) {
1196
+ return t.start = "", t.move = "", t.end = "", t.stop = "", t.interacting = "", t;
1197
+ })({}), ar = 0, sr = (function() {
1198
+ function t(e) {
1199
+ var n = this, r = e.pointerType, i = e.scopeFire;
1200
+ B(this, t), this.interactable = null, this.element = null, this.rect = null, this._rects = void 0, this.edges = null, this._scopeFire = void 0, this.prepared = { name: null, axis: null, edges: null }, this.pointerType = void 0, this.pointers = [], this.downEvent = null, this.downPointer = {}, this._latestPointer = { pointer: null, event: null, eventTarget: null }, this.prevEvent = null, this.pointerIsDown = !1, this.pointerWasMoved = !1, this._interacting = !1, this._ending = !1, this._stopped = !0, this._proxy = void 0, this.simulation = null, this.doMove = Ae((function(l) {
1201
+ this.move(l);
1202
+ }), "The interaction.doMove() method has been renamed to interaction.move()"), this.coords = { start: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, prev: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, cur: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, delta: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, velocity: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 } }, this._id = ar++, this._scopeFire = i, this.pointerType = r;
1203
+ var o = this;
1204
+ this._proxy = {};
1205
+ var a = function(l) {
1206
+ Object.defineProperty(n._proxy, l, { get: function() {
1207
+ return o[l];
1208
+ } });
1209
+ };
1210
+ for (var s in or) a(s);
1211
+ var c = function(l) {
1212
+ Object.defineProperty(n._proxy, l, { value: function() {
1213
+ return o[l].apply(o, arguments);
1214
+ } });
1215
+ };
1216
+ for (var u in pn) c(u);
1217
+ this._scopeFire("interactions:new", { interaction: this });
1218
+ }
1219
+ return F(t, [{ key: "pointerMoveTolerance", get: function() {
1220
+ return 1;
1221
+ } }, { key: "pointerDown", value: function(e, n, r) {
1222
+ var i = this.updatePointer(e, n, r, !0), o = this.pointers[i];
1223
+ this._scopeFire("interactions:down", { pointer: e, event: n, eventTarget: r, pointerIndex: i, pointerInfo: o, type: "down", interaction: this });
1224
+ } }, { key: "start", value: function(e, n, r) {
1225
+ return !(this.interacting() || !this.pointerIsDown || this.pointers.length < (e.name === "gesture" ? 2 : 1) || !n.options[e.name].enabled) && (xt(this.prepared, e), this.interactable = n, this.element = r, this.rect = n.getRect(r), this.edges = this.prepared.edges ? w({}, this.prepared.edges) : { left: !0, right: !0, top: !0, bottom: !0 }, this._stopped = !1, this._interacting = this._doPhase({ interaction: this, event: this.downEvent, phase: "start" }) && !this._stopped, this._interacting);
1226
+ } }, { key: "pointerMove", value: function(e, n, r) {
1227
+ this.simulation || this.modification && this.modification.endResult || this.updatePointer(e, n, r, !1);
1228
+ var i, o, a = this.coords.cur.page.x === this.coords.prev.page.x && this.coords.cur.page.y === this.coords.prev.page.y && this.coords.cur.client.x === this.coords.prev.client.x && this.coords.cur.client.y === this.coords.prev.client.y;
1229
+ this.pointerIsDown && !this.pointerWasMoved && (i = this.coords.cur.client.x - this.coords.start.client.x, o = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = Me(i, o) > this.pointerMoveTolerance);
1230
+ var s, c, u, l = this.getPointerIndex(e), p = { pointer: e, pointerIndex: l, pointerInfo: this.pointers[l], event: n, type: "move", eventTarget: r, dx: i, dy: o, duplicate: a, interaction: this };
1231
+ a || (s = this.coords.velocity, c = this.coords.delta, u = Math.max(c.timeStamp / 1e3, 1e-3), s.page.x = c.page.x / u, s.page.y = c.page.y / u, s.client.x = c.client.x / u, s.client.y = c.client.y / u, s.timeStamp = u), this._scopeFire("interactions:move", p), a || this.simulation || (this.interacting() && (p.type = null, this.move(p)), this.pointerWasMoved && We(this.coords.prev, this.coords.cur));
1232
+ } }, { key: "move", value: function(e) {
1233
+ e && e.event || Bt(this.coords.delta), (e = w({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, e || {})).phase = "move", this._doPhase(e);
1234
+ } }, { key: "pointerUp", value: function(e, n, r, i) {
1235
+ var o = this.getPointerIndex(e);
1236
+ o === -1 && (o = this.updatePointer(e, n, r, !1));
1237
+ var a = /cancel$/i.test(n.type) ? "cancel" : "up";
1238
+ this._scopeFire("interactions:".concat(a), { pointer: e, pointerIndex: o, pointerInfo: this.pointers[o], event: n, eventTarget: r, type: a, curEventTarget: i, interaction: this }), this.simulation || this.end(n), this.removePointer(e, n);
1239
+ } }, { key: "documentBlur", value: function(e) {
1240
+ this.end(e), this._scopeFire("interactions:blur", { event: e, type: "blur", interaction: this });
1241
+ } }, { key: "end", value: function(e) {
1242
+ var n;
1243
+ this._ending = !0, e = e || this._latestPointer.event, this.interacting() && (n = this._doPhase({ event: e, interaction: this, phase: "end" })), this._ending = !1, n === !0 && this.stop();
1244
+ } }, { key: "currentAction", value: function() {
1245
+ return this._interacting ? this.prepared.name : null;
1246
+ } }, { key: "interacting", value: function() {
1247
+ return this._interacting;
1248
+ } }, { key: "stop", value: function() {
1249
+ this._scopeFire("interactions:stop", { interaction: this }), this.interactable = this.element = null, this._interacting = !1, this._stopped = !0, this.prepared.name = this.prevEvent = null;
1250
+ } }, { key: "getPointerIndex", value: function(e) {
1251
+ var n = De(e);
1252
+ return this.pointerType === "mouse" || this.pointerType === "pen" ? this.pointers.length - 1 : ze(this.pointers, (function(r) {
1253
+ return r.id === n;
1254
+ }));
1255
+ } }, { key: "getPointerInfo", value: function(e) {
1256
+ return this.pointers[this.getPointerIndex(e)];
1257
+ } }, { key: "updatePointer", value: function(e, n, r, i) {
1258
+ var o, a, s, c = De(e), u = this.getPointerIndex(e), l = this.pointers[u];
1259
+ return i = i !== !1 && (i || /(down|start)$/i.test(n.type)), l ? l.pointer = e : (l = new ir(c, e, n, null, null), u = this.pointers.length, this.pointers.push(l)), Fn(this.coords.cur, this.pointers.map((function(p) {
1260
+ return p.pointer;
1261
+ })), this._now()), o = this.coords.delta, a = this.coords.prev, s = this.coords.cur, o.page.x = s.page.x - a.page.x, o.page.y = s.page.y - a.page.y, o.client.x = s.client.x - a.client.x, o.client.y = s.client.y - a.client.y, o.timeStamp = s.timeStamp - a.timeStamp, i && (this.pointerIsDown = !0, l.downTime = this.coords.cur.timeStamp, l.downTarget = r, Ye(this.downPointer, e), this.interacting() || (We(this.coords.start, this.coords.cur), We(this.coords.prev, this.coords.cur), this.downEvent = n, this.pointerWasMoved = !1)), this._updateLatestPointer(e, n, r), this._scopeFire("interactions:update-pointer", { pointer: e, event: n, eventTarget: r, down: i, pointerInfo: l, pointerIndex: u, interaction: this }), u;
1262
+ } }, { key: "removePointer", value: function(e, n) {
1263
+ var r = this.getPointerIndex(e);
1264
+ if (r !== -1) {
1265
+ var i = this.pointers[r];
1266
+ this._scopeFire("interactions:remove-pointer", { pointer: e, event: n, eventTarget: null, pointerIndex: r, pointerInfo: i, interaction: this }), this.pointers.splice(r, 1), this.pointerIsDown = !1;
1267
+ }
1268
+ } }, { key: "_updateLatestPointer", value: function(e, n, r) {
1269
+ this._latestPointer.pointer = e, this._latestPointer.event = n, this._latestPointer.eventTarget = r;
1270
+ } }, { key: "destroy", value: function() {
1271
+ this._latestPointer.pointer = null, this._latestPointer.event = null, this._latestPointer.eventTarget = null;
1272
+ } }, { key: "_createPreparedEvent", value: function(e, n, r, i) {
1273
+ return new Tt(this, e, this.prepared.name, n, this.element, r, i);
1274
+ } }, { key: "_fireEvent", value: function(e) {
1275
+ var n;
1276
+ (n = this.interactable) == null || n.fire(e), (!this.prevEvent || e.timeStamp >= this.prevEvent.timeStamp) && (this.prevEvent = e);
1277
+ } }, { key: "_doPhase", value: function(e) {
1278
+ var n = e.event, r = e.phase, i = e.preEnd, o = e.type, a = this.rect;
1279
+ if (a && r === "move" && (Xe(this.edges, a, this.coords.delta[this.interactable.options.deltaSource]), a.width = a.right - a.left, a.height = a.bottom - a.top), this._scopeFire("interactions:before-action-".concat(r), e) === !1) return !1;
1280
+ var s = e.iEvent = this._createPreparedEvent(n, r, i, o);
1281
+ return this._scopeFire("interactions:action-".concat(r), e), r === "start" && (this.prevEvent = s), this._fireEvent(s), this._scopeFire("interactions:after-action-".concat(r), e), !0;
1282
+ } }, { key: "_now", value: function() {
1283
+ return Date.now();
1284
+ } }]), t;
1285
+ })();
1286
+ function fn(t) {
1287
+ dn(t.interaction);
1288
+ }
1289
+ function dn(t) {
1290
+ if (!(function(n) {
1291
+ return !(!n.offset.pending.x && !n.offset.pending.y);
1292
+ })(t)) return !1;
1293
+ var e = t.offset.pending;
1294
+ return Lt(t.coords.cur, e), Lt(t.coords.delta, e), Xe(t.edges, t.rect, e), e.x = 0, e.y = 0, !0;
1295
+ }
1296
+ function cr(t) {
1297
+ var e = t.x, n = t.y;
1298
+ this.offset.pending.x += e, this.offset.pending.y += n, this.offset.total.x += e, this.offset.total.y += n;
1299
+ }
1300
+ function Lt(t, e) {
1301
+ var n = t.page, r = t.client, i = e.x, o = e.y;
1302
+ n.x += i, n.y += o, r.x += i, r.y += o;
1303
+ }
1304
+ pn.offsetBy = "";
1305
+ var lr = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(t) {
1306
+ t.Interaction.prototype.offsetBy = cr;
1307
+ }, listeners: { "interactions:new": function(t) {
1308
+ t.interaction.offset = { total: { x: 0, y: 0 }, pending: { x: 0, y: 0 } };
1309
+ }, "interactions:update-pointer": function(t) {
1310
+ return (function(e) {
1311
+ e.pointerIsDown && (Lt(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
1312
+ })(t.interaction);
1313
+ }, "interactions:before-action-start": fn, "interactions:before-action-move": fn, "interactions:before-action-end": function(t) {
1314
+ var e = t.interaction;
1315
+ if (dn(e)) return e.move({ offset: !0 }), e.end(), !1;
1316
+ }, "interactions:stop": function(t) {
1317
+ var e = t.interaction;
1318
+ e.offset.total.x = 0, e.offset.total.y = 0, e.offset.pending.x = 0, e.offset.pending.y = 0;
1319
+ } } }, hn = lr, ur = (function() {
1320
+ function t(e) {
1321
+ B(this, t), this.active = !1, this.isModified = !1, this.smoothEnd = !1, this.allowResume = !1, this.modification = void 0, this.modifierCount = 0, this.modifierArg = void 0, this.startCoords = void 0, this.t0 = 0, this.v0 = 0, this.te = 0, this.targetOffset = void 0, this.modifiedOffset = void 0, this.currentOffset = void 0, this.lambda_v0 = 0, this.one_ve_v0 = 0, this.timeout = void 0, this.interaction = void 0, this.interaction = e;
1322
+ }
1323
+ return F(t, [{ key: "start", value: function(e) {
1324
+ var n = this.interaction, r = Je(n);
1325
+ if (!r || !r.enabled) return !1;
1326
+ var i = n.coords.velocity.client, o = Me(i.x, i.y), a = this.modification || (this.modification = new _t(n));
1327
+ if (a.copyFrom(n.modification), this.t0 = n._now(), this.allowResume = r.allowResume, this.v0 = o, this.currentOffset = { x: 0, y: 0 }, this.startCoords = n.coords.cur.page, this.modifierArg = a.fillArg({ pageCoords: this.startCoords, preEnd: !0, phase: "inertiastart" }), this.t0 - n.coords.cur.timeStamp < 50 && o > r.minSpeed && o > r.endSpeed) this.startInertia();
1328
+ else {
1329
+ if (a.result = a.setAll(this.modifierArg), !a.result.changed) return !1;
1330
+ this.startSmoothEnd();
1331
+ }
1332
+ return n.modification.result.rect = null, n.offsetBy(this.targetOffset), n._doPhase({ interaction: n, event: e, phase: "inertiastart" }), n.offsetBy({ x: -this.targetOffset.x, y: -this.targetOffset.y }), n.modification.result.rect = null, this.active = !0, n.simulation = this, !0;
1333
+ } }, { key: "startInertia", value: function() {
1334
+ var e = this, n = this.interaction.coords.velocity.client, r = Je(this.interaction), i = r.resistance, o = -Math.log(r.endSpeed / this.v0) / i;
1335
+ this.targetOffset = { x: (n.x - o) / i, y: (n.y - o) / i }, this.te = o, this.lambda_v0 = i / this.v0, this.one_ve_v0 = 1 - r.endSpeed / this.v0;
1336
+ var a = this.modification, s = this.modifierArg;
1337
+ s.pageCoords = { x: this.startCoords.x + this.targetOffset.x, y: this.startCoords.y + this.targetOffset.y }, a.result = a.setAll(s), a.result.changed && (this.isModified = !0, this.modifiedOffset = { x: this.targetOffset.x + a.result.delta.x, y: this.targetOffset.y + a.result.delta.y }), this.onNextFrame((function() {
1338
+ return e.inertiaTick();
1339
+ }));
1340
+ } }, { key: "startSmoothEnd", value: function() {
1341
+ var e = this;
1342
+ this.smoothEnd = !0, this.isModified = !0, this.targetOffset = { x: this.modification.result.delta.x, y: this.modification.result.delta.y }, this.onNextFrame((function() {
1343
+ return e.smoothEndTick();
1344
+ }));
1345
+ } }, { key: "onNextFrame", value: function(e) {
1346
+ var n = this;
1347
+ this.timeout = fe.request((function() {
1348
+ n.active && e();
1349
+ }));
1350
+ } }, { key: "inertiaTick", value: function() {
1351
+ var e, n, r, i, o, a, s, c = this, u = this.interaction, l = Je(u).resistance, p = (u._now() - this.t0) / 1e3;
1352
+ if (p < this.te) {
1353
+ var f, v = 1 - (Math.exp(-l * p) - this.lambda_v0) / this.one_ve_v0;
1354
+ this.isModified ? (e = 0, n = 0, r = this.targetOffset.x, i = this.targetOffset.y, o = this.modifiedOffset.x, a = this.modifiedOffset.y, f = { x: vn(s = v, e, r, o), y: vn(s, n, i, a) }) : f = { x: this.targetOffset.x * v, y: this.targetOffset.y * v };
1355
+ var h = { x: f.x - this.currentOffset.x, y: f.y - this.currentOffset.y };
1356
+ this.currentOffset.x += h.x, this.currentOffset.y += h.y, u.offsetBy(h), u.move(), this.onNextFrame((function() {
1357
+ return c.inertiaTick();
1358
+ }));
1359
+ } else u.offsetBy({ x: this.modifiedOffset.x - this.currentOffset.x, y: this.modifiedOffset.y - this.currentOffset.y }), this.end();
1360
+ } }, { key: "smoothEndTick", value: function() {
1361
+ var e = this, n = this.interaction, r = n._now() - this.t0, i = Je(n).smoothEndDuration;
1362
+ if (r < i) {
1363
+ var o = { x: gn(r, 0, this.targetOffset.x, i), y: gn(r, 0, this.targetOffset.y, i) }, a = { x: o.x - this.currentOffset.x, y: o.y - this.currentOffset.y };
1364
+ this.currentOffset.x += a.x, this.currentOffset.y += a.y, n.offsetBy(a), n.move({ skipModifiers: this.modifierCount }), this.onNextFrame((function() {
1365
+ return e.smoothEndTick();
1366
+ }));
1367
+ } else n.offsetBy({ x: this.targetOffset.x - this.currentOffset.x, y: this.targetOffset.y - this.currentOffset.y }), this.end();
1368
+ } }, { key: "resume", value: function(e) {
1369
+ var n = e.pointer, r = e.event, i = e.eventTarget, o = this.interaction;
1370
+ o.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), o.updatePointer(n, r, i, !0), o._doPhase({ interaction: o, event: r, phase: "resume" }), We(o.coords.prev, o.coords.cur), this.stop();
1371
+ } }, { key: "end", value: function() {
1372
+ this.interaction.move(), this.interaction.end(), this.stop();
1373
+ } }, { key: "stop", value: function() {
1374
+ this.active = this.smoothEnd = !1, this.interaction.simulation = null, fe.cancel(this.timeout);
1375
+ } }]), t;
1376
+ })();
1377
+ function Je(t) {
1378
+ var e = t.interactable, n = t.prepared;
1379
+ return e && e.options && n.name && e.options[n.name].inertia;
1380
+ }
1381
+ var pr = { id: "inertia", before: ["modifiers", "actions"], install: function(t) {
1382
+ var e = t.defaults;
1383
+ t.usePlugin(hn), t.usePlugin(ln), t.actions.phases.inertiastart = !0, t.actions.phases.resume = !0, e.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
1384
+ }, listeners: { "interactions:new": function(t) {
1385
+ var e = t.interaction;
1386
+ e.inertia = new ur(e);
1387
+ }, "interactions:before-action-end": function(t) {
1388
+ var e = t.interaction, n = t.event;
1389
+ return (!e._interacting || e.simulation || !e.inertia.start(n)) && null;
1390
+ }, "interactions:down": function(t) {
1391
+ var e = t.interaction, n = t.eventTarget, r = e.inertia;
1392
+ if (r.active) for (var i = n; d.element(i); ) {
1393
+ if (i === e.element) {
1394
+ r.resume(t);
1395
+ break;
1396
+ }
1397
+ i = H(i);
1398
+ }
1399
+ }, "interactions:stop": function(t) {
1400
+ var e = t.interaction.inertia;
1401
+ e.active && e.stop();
1402
+ }, "interactions:before-action-resume": function(t) {
1403
+ var e = t.interaction.modification;
1404
+ e.stop(t), e.start(t, t.interaction.coords.cur.page), e.applyToInteraction(t);
1405
+ }, "interactions:before-action-inertiastart": function(t) {
1406
+ return t.interaction.modification.setAndApply(t);
1407
+ }, "interactions:action-resume": Re, "interactions:action-inertiastart": Re, "interactions:after-action-inertiastart": function(t) {
1408
+ return t.interaction.modification.restoreInteractionCoords(t);
1409
+ }, "interactions:after-action-resume": function(t) {
1410
+ return t.interaction.modification.restoreInteractionCoords(t);
1411
+ } } };
1412
+ function vn(t, e, n, r) {
1413
+ var i = 1 - t;
1414
+ return i * i * e + 2 * i * t * n + t * t * r;
1415
+ }
1416
+ function gn(t, e, n, r) {
1417
+ return -n * (t /= r) * (t - 2) + e;
1418
+ }
1419
+ var fr = pr;
1420
+ function mn(t, e) {
1421
+ for (var n = 0; n < e.length; n++) {
1422
+ var r = e[n];
1423
+ if (t.immediatePropagationStopped) break;
1424
+ r(t);
1425
+ }
1426
+ }
1427
+ var yn = (function() {
1428
+ function t(e) {
1429
+ B(this, t), this.options = void 0, this.types = {}, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.global = void 0, this.options = w({}, e || {});
1430
+ }
1431
+ return F(t, [{ key: "fire", value: function(e) {
1432
+ var n, r = this.global;
1433
+ (n = this.types[e.type]) && mn(e, n), !e.propagationStopped && r && (n = r[e.type]) && mn(e, n);
1434
+ } }, { key: "on", value: function(e, n) {
1435
+ var r = xe(e, n);
1436
+ for (e in r) this.types[e] = Wt(this.types[e] || [], r[e]);
1437
+ } }, { key: "off", value: function(e, n) {
1438
+ var r = xe(e, n);
1439
+ for (e in r) {
1440
+ var i = this.types[e];
1441
+ if (i && i.length) for (var o = 0, a = r[e]; o < a.length; o++) {
1442
+ var s = a[o], c = i.indexOf(s);
1443
+ c !== -1 && i.splice(c, 1);
1444
+ }
1445
+ }
1446
+ } }, { key: "getRect", value: function(e) {
1447
+ return null;
1448
+ } }]), t;
1449
+ })(), dr = (function() {
1450
+ function t(e) {
1451
+ B(this, t), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = e, Ye(this, e);
1452
+ }
1453
+ return F(t, [{ key: "preventOriginalDefault", value: function() {
1454
+ this.originalEvent.preventDefault();
1455
+ } }, { key: "stopPropagation", value: function() {
1456
+ this.originalEvent.stopPropagation();
1457
+ } }, { key: "stopImmediatePropagation", value: function() {
1458
+ this.originalEvent.stopImmediatePropagation();
1459
+ } }]), t;
1460
+ })();
1461
+ function je(t) {
1462
+ return d.object(t) ? { capture: !!t.capture, passive: !!t.passive } : { capture: !!t, passive: !1 };
1463
+ }
1464
+ function Qe(t, e) {
1465
+ return t === e || (typeof t == "boolean" ? !!e.capture === t && !e.passive : !!t.capture == !!e.capture && !!t.passive == !!e.passive);
1466
+ }
1467
+ var hr = { id: "events", install: function(t) {
1468
+ var e, n = [], r = {}, i = [], o = { add: a, remove: s, addDelegate: function(l, p, f, v, h) {
1469
+ var g = je(h);
1470
+ if (!r[f]) {
1471
+ r[f] = [];
1472
+ for (var b = 0; b < i.length; b++) {
1473
+ var y = i[b];
1474
+ a(y, f, c), a(y, f, u, !0);
1475
+ }
1476
+ }
1477
+ var x = r[f], L = Ce(x, (function(I) {
1478
+ return I.selector === l && I.context === p;
1479
+ }));
1480
+ L || (L = { selector: l, context: p, listeners: [] }, x.push(L)), L.listeners.push({ func: v, options: g });
1481
+ }, removeDelegate: function(l, p, f, v, h) {
1482
+ var g, b = je(h), y = r[f], x = !1;
1483
+ if (y)
1484
+ for (g = y.length - 1; g >= 0; g--) {
1485
+ var L = y[g];
1486
+ if (L.selector === l && L.context === p) {
1487
+ for (var I = L.listeners, S = I.length - 1; S >= 0; S--) {
1488
+ var k = I[S];
1489
+ if (k.func === v && Qe(k.options, b)) {
1490
+ I.splice(S, 1), I.length || (y.splice(g, 1), s(p, f, c), s(p, f, u, !0)), x = !0;
1491
+ break;
1492
+ }
1493
+ }
1494
+ if (x) break;
1495
+ }
1496
+ }
1497
+ }, delegateListener: c, delegateUseCapture: u, delegatedEvents: r, documents: i, targets: n, supportsOptions: !1, supportsPassive: !1 };
1498
+ function a(l, p, f, v) {
1499
+ if (l.addEventListener) {
1500
+ var h = je(v), g = Ce(n, (function(b) {
1501
+ return b.eventTarget === l;
1502
+ }));
1503
+ g || (g = { eventTarget: l, events: {} }, n.push(g)), g.events[p] || (g.events[p] = []), Ce(g.events[p], (function(b) {
1504
+ return b.func === f && Qe(b.options, h);
1505
+ })) || (l.addEventListener(p, f, o.supportsOptions ? h : h.capture), g.events[p].push({ func: f, options: h }));
1506
+ }
1507
+ }
1508
+ function s(l, p, f, v) {
1509
+ if (l.addEventListener && l.removeEventListener) {
1510
+ var h = ze(n, (function(Y) {
1511
+ return Y.eventTarget === l;
1512
+ })), g = n[h];
1513
+ if (g && g.events) if (p !== "all") {
1514
+ var b = !1, y = g.events[p];
1515
+ if (y) {
1516
+ if (f === "all") {
1517
+ for (var x = y.length - 1; x >= 0; x--) {
1518
+ var L = y[x];
1519
+ s(l, p, L.func, L.options);
1520
+ }
1521
+ return;
1522
+ }
1523
+ for (var I = je(v), S = 0; S < y.length; S++) {
1524
+ var k = y[S];
1525
+ if (k.func === f && Qe(k.options, I)) {
1526
+ l.removeEventListener(p, f, o.supportsOptions ? I : I.capture), y.splice(S, 1), y.length === 0 && (delete g.events[p], b = !0);
1527
+ break;
1528
+ }
1529
+ }
1530
+ }
1531
+ b && !Object.keys(g.events).length && n.splice(h, 1);
1532
+ } else for (p in g.events) g.events.hasOwnProperty(p) && s(l, p, "all");
1533
+ }
1534
+ }
1535
+ function c(l, p) {
1536
+ for (var f = je(p), v = new dr(l), h = r[l.type], g = Yt(l)[0], b = g; d.element(b); ) {
1537
+ for (var y = 0; y < h.length; y++) {
1538
+ var x = h[y], L = x.selector, I = x.context;
1539
+ if (pe(b, L) && K(I, g) && K(I, b)) {
1540
+ var S = x.listeners;
1541
+ v.currentTarget = b;
1542
+ for (var k = 0; k < S.length; k++) {
1543
+ var Y = S[k];
1544
+ Qe(Y.options, f) && Y.func(v);
1545
+ }
1546
+ }
1547
+ }
1548
+ b = H(b);
1549
+ }
1550
+ }
1551
+ function u(l) {
1552
+ return c(l, !0);
1553
+ }
1554
+ return (e = t.document) == null || e.createElement("div").addEventListener("test", null, { get capture() {
1555
+ return o.supportsOptions = !0;
1556
+ }, get passive() {
1557
+ return o.supportsPassive = !0;
1558
+ } }), t.events = o, o;
1559
+ } }, kt = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(t) {
1560
+ for (var e = 0, n = kt.methodOrder; e < n.length; e++) {
1561
+ var r = n[e], i = kt[r](t);
1562
+ if (i) return i;
1563
+ }
1564
+ return null;
1565
+ }, simulationResume: function(t) {
1566
+ var e = t.pointerType, n = t.eventType, r = t.eventTarget, i = t.scope;
1567
+ if (!/down|start/i.test(n)) return null;
1568
+ for (var o = 0, a = i.interactions.list; o < a.length; o++) {
1569
+ var s = a[o], c = r;
1570
+ if (s.simulation && s.simulation.allowResume && s.pointerType === e) for (; c; ) {
1571
+ if (c === s.element) return s;
1572
+ c = H(c);
1573
+ }
1574
+ }
1575
+ return null;
1576
+ }, mouseOrPen: function(t) {
1577
+ var e, n = t.pointerId, r = t.pointerType, i = t.eventType, o = t.scope;
1578
+ if (r !== "mouse" && r !== "pen") return null;
1579
+ for (var a = 0, s = o.interactions.list; a < s.length; a++) {
1580
+ var c = s[a];
1581
+ if (c.pointerType === r) {
1582
+ if (c.simulation && !bn(c, n)) continue;
1583
+ if (c.interacting()) return c;
1584
+ e || (e = c);
1585
+ }
1586
+ }
1587
+ if (e) return e;
1588
+ for (var u = 0, l = o.interactions.list; u < l.length; u++) {
1589
+ var p = l[u];
1590
+ if (!(p.pointerType !== r || /down/i.test(i) && p.simulation)) return p;
1591
+ }
1592
+ return null;
1593
+ }, hasPointer: function(t) {
1594
+ for (var e = t.pointerId, n = 0, r = t.scope.interactions.list; n < r.length; n++) {
1595
+ var i = r[n];
1596
+ if (bn(i, e)) return i;
1597
+ }
1598
+ return null;
1599
+ }, idle: function(t) {
1600
+ for (var e = t.pointerType, n = 0, r = t.scope.interactions.list; n < r.length; n++) {
1601
+ var i = r[n];
1602
+ if (i.pointers.length === 1) {
1603
+ var o = i.interactable;
1604
+ if (o && (!o.options.gesture || !o.options.gesture.enabled)) continue;
1605
+ } else if (i.pointers.length >= 2) continue;
1606
+ if (!i.interacting() && e === i.pointerType) return i;
1607
+ }
1608
+ return null;
1609
+ } };
1610
+ function bn(t, e) {
1611
+ return t.pointers.some((function(n) {
1612
+ return n.id === e;
1613
+ }));
1614
+ }
1615
+ var vr = kt, Ot = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
1616
+ function xn(t, e) {
1617
+ return function(n) {
1618
+ var r = e.interactions.list, i = Xt(n), o = Yt(n), a = o[0], s = o[1], c = [];
1619
+ if (/^touch/.test(n.type)) {
1620
+ e.prevTouchTime = e.now();
1621
+ for (var u = 0, l = n.changedTouches; u < l.length; u++) {
1622
+ var p = l[u], f = { pointer: p, pointerId: De(p), pointerType: i, eventType: n.type, eventTarget: a, curEventTarget: s, scope: e }, v = wn(f);
1623
+ c.push([f.pointer, f.eventTarget, f.curEventTarget, v]);
1624
+ }
1625
+ } else {
1626
+ var h = !1;
1627
+ if (!A.supportsPointerEvent && /mouse/.test(n.type)) {
1628
+ for (var g = 0; g < r.length && !h; g++) h = r[g].pointerType !== "mouse" && r[g].pointerIsDown;
1629
+ h = h || e.now() - e.prevTouchTime < 500 || n.timeStamp === 0;
1630
+ }
1631
+ if (!h) {
1632
+ var b = { pointer: n, pointerId: De(n), pointerType: i, eventType: n.type, curEventTarget: s, eventTarget: a, scope: e }, y = wn(b);
1633
+ c.push([b.pointer, b.eventTarget, b.curEventTarget, y]);
1634
+ }
1635
+ }
1636
+ for (var x = 0; x < c.length; x++) {
1637
+ var L = c[x], I = L[0], S = L[1], k = L[2];
1638
+ L[3][t](I, n, S, k);
1639
+ }
1640
+ };
1641
+ }
1642
+ function wn(t) {
1643
+ var e = t.pointerType, n = t.scope, r = { interaction: vr.search(t), searchDetails: t };
1644
+ return n.fire("interactions:find", r), r.interaction || n.interactions.new({ pointerType: e });
1645
+ }
1646
+ function Pt(t, e) {
1647
+ var n = t.doc, r = t.scope, i = t.options, o = r.interactions.docEvents, a = r.events, s = a[e];
1648
+ for (var c in r.browser.isIOS && !i.events && (i.events = { passive: !1 }), a.delegatedEvents) s(n, c, a.delegateListener), s(n, c, a.delegateUseCapture, !0);
1649
+ for (var u = i && i.events, l = 0; l < o.length; l++) {
1650
+ var p = o[l];
1651
+ s(n, p.type, p.listener, u);
1652
+ }
1653
+ }
1654
+ var gr = { id: "core/interactions", install: function(t) {
1655
+ for (var e = {}, n = 0; n < Ot.length; n++) {
1656
+ var r = Ot[n];
1657
+ e[r] = xn(r, t);
1658
+ }
1659
+ var i, o = A.pEventTypes;
1660
+ function a() {
1661
+ for (var s = 0, c = t.interactions.list; s < c.length; s++) {
1662
+ var u = c[s];
1663
+ if (u.pointerIsDown && u.pointerType === "touch" && !u._interacting) for (var l = function() {
1664
+ var v = f[p];
1665
+ t.documents.some((function(h) {
1666
+ return K(h.doc, v.downTarget);
1667
+ })) || u.removePointer(v.pointer, v.event);
1668
+ }, p = 0, f = u.pointers; p < f.length; p++) l();
1669
+ }
1670
+ }
1671
+ (i = $.PointerEvent ? [{ type: o.down, listener: a }, { type: o.down, listener: e.pointerDown }, { type: o.move, listener: e.pointerMove }, { type: o.up, listener: e.pointerUp }, { type: o.cancel, listener: e.pointerUp }] : [{ type: "mousedown", listener: e.pointerDown }, { type: "mousemove", listener: e.pointerMove }, { type: "mouseup", listener: e.pointerUp }, { type: "touchstart", listener: a }, { type: "touchstart", listener: e.pointerDown }, { type: "touchmove", listener: e.pointerMove }, { type: "touchend", listener: e.pointerUp }, { type: "touchcancel", listener: e.pointerUp }]).push({ type: "blur", listener: function(s) {
1672
+ for (var c = 0, u = t.interactions.list; c < u.length; c++)
1673
+ u[c].documentBlur(s);
1674
+ } }), t.prevTouchTime = 0, t.Interaction = (function(s) {
1675
+ me(u, s);
1676
+ var c = ue(u);
1677
+ function u() {
1678
+ return B(this, u), c.apply(this, arguments);
1679
+ }
1680
+ return F(u, [{ key: "pointerMoveTolerance", get: function() {
1681
+ return t.interactions.pointerMoveTolerance;
1682
+ }, set: function(l) {
1683
+ t.interactions.pointerMoveTolerance = l;
1684
+ } }, { key: "_now", value: function() {
1685
+ return t.now();
1686
+ } }]), u;
1687
+ })(sr), t.interactions = { list: [], new: function(s) {
1688
+ s.scopeFire = function(u, l) {
1689
+ return t.fire(u, l);
1690
+ };
1691
+ var c = new t.Interaction(s);
1692
+ return t.interactions.list.push(c), c;
1693
+ }, listeners: e, docEvents: i, pointerMoveTolerance: 1 }, t.usePlugin(cn);
1694
+ }, listeners: { "scope:add-document": function(t) {
1695
+ return Pt(t, "add");
1696
+ }, "scope:remove-document": function(t) {
1697
+ return Pt(t, "remove");
1698
+ }, "interactable:unset": function(t, e) {
1699
+ for (var n = t.interactable, r = e.interactions.list.length - 1; r >= 0; r--) {
1700
+ var i = e.interactions.list[r];
1701
+ i.interactable === n && (i.stop(), e.fire("interactions:destroy", { interaction: i }), i.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(r, 1));
1702
+ }
1703
+ } }, onDocSignal: Pt, doOnInteractions: xn, methodNames: Ot }, mr = gr, he = (function(t) {
1704
+ return t[t.On = 0] = "On", t[t.Off = 1] = "Off", t;
1705
+ })(he || {}), yr = (function() {
1706
+ function t(e, n, r, i) {
1707
+ B(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new yn(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = n.actions, this.target = e, this._context = n.context || r, this._win = D(jt(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = i, this.set(n);
1708
+ }
1709
+ return F(t, [{ key: "_defaults", get: function() {
1710
+ return { base: {}, perAction: {}, actions: {} };
1711
+ } }, { key: "setOnEvents", value: function(e, n) {
1712
+ return d.func(n.onstart) && this.on("".concat(e, "start"), n.onstart), d.func(n.onmove) && this.on("".concat(e, "move"), n.onmove), d.func(n.onend) && this.on("".concat(e, "end"), n.onend), d.func(n.oninertiastart) && this.on("".concat(e, "inertiastart"), n.oninertiastart), this;
1713
+ } }, { key: "updatePerActionListeners", value: function(e, n, r) {
1714
+ var i, o = this, a = (i = this._actions.map[e]) == null ? void 0 : i.filterEventType, s = function(c) {
1715
+ return (a == null || a(c)) && Ze(c, o._actions);
1716
+ };
1717
+ (d.array(n) || d.object(n)) && this._onOff(he.Off, e, n, void 0, s), (d.array(r) || d.object(r)) && this._onOff(he.On, e, r, void 0, s);
1718
+ } }, { key: "setPerAction", value: function(e, n) {
1719
+ var r = this._defaults;
1720
+ for (var i in n) {
1721
+ var o = i, a = this.options[e], s = n[o];
1722
+ o === "listeners" && this.updatePerActionListeners(e, a.listeners, s), d.array(s) ? a[o] = Ut(s) : d.plainObject(s) ? (a[o] = w(a[o] || {}, Le(s)), d.object(r.perAction[o]) && "enabled" in r.perAction[o] && (a[o].enabled = s.enabled !== !1)) : d.bool(s) && d.object(r.perAction[o]) ? a[o].enabled = s : a[o] = s;
1723
+ }
1724
+ } }, { key: "getRect", value: function(e) {
1725
+ return e = e || (d.element(this.target) ? this.target : null), d.string(this.target) && (e = e || this._context.querySelector(this.target)), lt(e);
1726
+ } }, { key: "rectChecker", value: function(e) {
1727
+ var n = this;
1728
+ return d.func(e) ? (this.getRect = function(r) {
1729
+ var i = w({}, e.apply(n, r));
1730
+ return "width" in i || (i.width = i.right - i.left, i.height = i.bottom - i.top), i;
1731
+ }, this) : e === null ? (delete this.getRect, this) : this.getRect;
1732
+ } }, { key: "_backCompatOption", value: function(e, n) {
1733
+ if (jt(n) || d.object(n)) {
1734
+ for (var r in this.options[e] = n, this._actions.map) this.options[r][e] = n;
1735
+ return this;
1736
+ }
1737
+ return this.options[e];
1738
+ } }, { key: "origin", value: function(e) {
1739
+ return this._backCompatOption("origin", e);
1740
+ } }, { key: "deltaSource", value: function(e) {
1741
+ return e === "page" || e === "client" ? (this.options.deltaSource = e, this) : this.options.deltaSource;
1742
+ } }, { key: "getAllElements", value: function() {
1743
+ var e = this.target;
1744
+ return d.string(e) ? Array.from(this._context.querySelectorAll(e)) : d.func(e) && e.getAllElements ? e.getAllElements() : d.element(e) ? [e] : [];
1745
+ } }, { key: "context", value: function() {
1746
+ return this._context;
1747
+ } }, { key: "inContext", value: function(e) {
1748
+ return this._context === e.ownerDocument || K(this._context, e);
1749
+ } }, { key: "testIgnoreAllow", value: function(e, n, r) {
1750
+ return !this.testIgnore(e.ignoreFrom, n, r) && this.testAllow(e.allowFrom, n, r);
1751
+ } }, { key: "testAllow", value: function(e, n, r) {
1752
+ return !e || !!d.element(r) && (d.string(e) ? st(r, e, n) : !!d.element(e) && K(e, r));
1753
+ } }, { key: "testIgnore", value: function(e, n, r) {
1754
+ return !(!e || !d.element(r)) && (d.string(e) ? st(r, e, n) : !!d.element(e) && K(e, r));
1755
+ } }, { key: "fire", value: function(e) {
1756
+ return this.events.fire(e), this;
1757
+ } }, { key: "_onOff", value: function(e, n, r, i, o) {
1758
+ d.object(n) && !d.array(n) && (i = r, r = null);
1759
+ var a = xe(n, r, o);
1760
+ for (var s in a) {
1761
+ s === "wheel" && (s = A.wheelEvent);
1762
+ for (var c = 0, u = a[s]; c < u.length; c++) {
1763
+ var l = u[c];
1764
+ Ze(s, this._actions) ? this.events[e === he.On ? "on" : "off"](s, l) : d.string(this.target) ? this._scopeEvents[e === he.On ? "addDelegate" : "removeDelegate"](this.target, this._context, s, l, i) : this._scopeEvents[e === he.On ? "add" : "remove"](this.target, s, l, i);
1765
+ }
1766
+ }
1767
+ return this;
1768
+ } }, { key: "on", value: function(e, n, r) {
1769
+ return this._onOff(he.On, e, n, r);
1770
+ } }, { key: "off", value: function(e, n, r) {
1771
+ return this._onOff(he.Off, e, n, r);
1772
+ } }, { key: "set", value: function(e) {
1773
+ var n = this._defaults;
1774
+ for (var r in d.object(e) || (e = {}), this.options = Le(n.base), this._actions.methodDict) {
1775
+ var i = r, o = this._actions.methodDict[i];
1776
+ this.options[i] = {}, this.setPerAction(i, w(w({}, n.perAction), n.actions[i])), this[o](e[i]);
1777
+ }
1778
+ for (var a in e) a !== "getRect" ? d.func(this[a]) && this[a](e[a]) : this.rectChecker(e.getRect);
1779
+ return this;
1780
+ } }, { key: "unset", value: function() {
1781
+ if (d.string(this.target)) for (var e in this._scopeEvents.delegatedEvents) for (var n = this._scopeEvents.delegatedEvents[e], r = n.length - 1; r >= 0; r--) {
1782
+ var i = n[r], o = i.selector, a = i.context, s = i.listeners;
1783
+ o === this.target && a === this._context && n.splice(r, 1);
1784
+ for (var c = s.length - 1; c >= 0; c--) this._scopeEvents.removeDelegate(this.target, this._context, e, s[c][0], s[c][1]);
1785
+ }
1786
+ else this._scopeEvents.remove(this.target, "all");
1787
+ } }]), t;
1788
+ })(), br = (function() {
1789
+ function t(e) {
1790
+ var n = this;
1791
+ B(this, t), this.list = [], this.selectorMap = {}, this.scope = void 0, this.scope = e, e.addListeners({ "interactable:unset": function(r) {
1792
+ var i = r.interactable, o = i.target, a = d.string(o) ? n.selectorMap[o] : o[n.scope.id], s = ze(a, (function(c) {
1793
+ return c === i;
1794
+ }));
1795
+ a.splice(s, 1);
1796
+ } });
1797
+ }
1798
+ return F(t, [{ key: "new", value: function(e, n) {
1799
+ n = w(n || {}, { actions: this.scope.actions });
1800
+ var r = new this.scope.Interactable(e, n, this.scope.document, this.scope.events);
1801
+ return this.scope.addDocument(r._doc), this.list.push(r), d.string(e) ? (this.selectorMap[e] || (this.selectorMap[e] = []), this.selectorMap[e].push(r)) : (r.target[this.scope.id] || Object.defineProperty(e, this.scope.id, { value: [], configurable: !0 }), e[this.scope.id].push(r)), this.scope.fire("interactable:new", { target: e, options: n, interactable: r, win: this.scope._win }), r;
1802
+ } }, { key: "getExisting", value: function(e, n) {
1803
+ var r = n && n.context || this.scope.document, i = d.string(e), o = i ? this.selectorMap[e] : e[this.scope.id];
1804
+ if (o) return Ce(o, (function(a) {
1805
+ return a._context === r && (i || a.inContext(e));
1806
+ }));
1807
+ } }, { key: "forEachMatch", value: function(e, n) {
1808
+ for (var r = 0, i = this.list; r < i.length; r++) {
1809
+ var o = i[r], a = void 0;
1810
+ if ((d.string(o.target) ? d.element(e) && pe(e, o.target) : e === o.target) && o.inContext(e) && (a = n(o)), a !== void 0) return a;
1811
+ }
1812
+ } }]), t;
1813
+ })(), xr = (function() {
1814
+ function t() {
1815
+ var e = this;
1816
+ B(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = A, this.defaults = Le(un), this.Eventable = yn, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = (function(r) {
1817
+ var i = function o(a, s) {
1818
+ var c = r.interactables.getExisting(a, s);
1819
+ return c || ((c = r.interactables.new(a, s)).events.global = o.globalEvents), c;
1820
+ };
1821
+ return i.getPointerAverage = qt, i.getTouchBBox = ft, i.getTouchDistance = dt, i.getTouchAngle = ht, i.getElementRect = lt, i.getElementClientRect = ct, i.matchesSelector = pe, i.closest = ot, i.globalEvents = {}, i.version = "1.10.27", i.scope = r, i.use = function(o, a) {
1822
+ return this.scope.usePlugin(o, a), this;
1823
+ }, i.isSet = function(o, a) {
1824
+ return !!this.scope.interactables.get(o, a && a.context);
1825
+ }, i.on = Ae((function(o, a, s) {
1826
+ if (d.string(o) && o.search(" ") !== -1 && (o = o.trim().split(/ +/)), d.array(o)) {
1827
+ for (var c = 0, u = o; c < u.length; c++) {
1828
+ var l = u[c];
1829
+ this.on(l, a, s);
1830
+ }
1831
+ return this;
1832
+ }
1833
+ if (d.object(o)) {
1834
+ for (var p in o) this.on(p, o[p], a);
1835
+ return this;
1836
+ }
1837
+ return Ze(o, this.scope.actions) ? this.globalEvents[o] ? this.globalEvents[o].push(a) : this.globalEvents[o] = [a] : this.scope.events.add(this.scope.document, o, a, { options: s }), this;
1838
+ }), "The interact.on() method is being deprecated"), i.off = Ae((function(o, a, s) {
1839
+ if (d.string(o) && o.search(" ") !== -1 && (o = o.trim().split(/ +/)), d.array(o)) {
1840
+ for (var c = 0, u = o; c < u.length; c++) {
1841
+ var l = u[c];
1842
+ this.off(l, a, s);
1843
+ }
1844
+ return this;
1845
+ }
1846
+ if (d.object(o)) {
1847
+ for (var p in o) this.off(p, o[p], a);
1848
+ return this;
1849
+ }
1850
+ var f;
1851
+ return Ze(o, this.scope.actions) ? o in this.globalEvents && (f = this.globalEvents[o].indexOf(a)) !== -1 && this.globalEvents[o].splice(f, 1) : this.scope.events.remove(this.scope.document, o, a, s), this;
1852
+ }), "The interact.off() method is being deprecated"), i.debug = function() {
1853
+ return this.scope;
1854
+ }, i.supportsTouch = function() {
1855
+ return A.supportsTouch;
1856
+ }, i.supportsPointerEvent = function() {
1857
+ return A.supportsPointerEvent;
1858
+ }, i.stop = function() {
1859
+ for (var o = 0, a = this.scope.interactions.list; o < a.length; o++) a[o].stop();
1860
+ return this;
1861
+ }, i.pointerMoveTolerance = function(o) {
1862
+ return d.number(o) ? (this.scope.interactions.pointerMoveTolerance = o, this) : this.scope.interactions.pointerMoveTolerance;
1863
+ }, i.addDocument = function(o, a) {
1864
+ this.scope.addDocument(o, a);
1865
+ }, i.removeDocument = function(o) {
1866
+ this.scope.removeDocument(o);
1867
+ }, i;
1868
+ })(this), this.InteractEvent = Tt, this.Interactable = void 0, this.interactables = new br(this), this._win = void 0, this.document = void 0, this.window = void 0, this.documents = [], this._plugins = { list: [], map: {} }, this.onWindowUnload = function(r) {
1869
+ return e.removeDocument(r.target);
1870
+ };
1871
+ var n = this;
1872
+ this.Interactable = (function(r) {
1873
+ me(o, r);
1874
+ var i = ue(o);
1875
+ function o() {
1876
+ return B(this, o), i.apply(this, arguments);
1877
+ }
1878
+ return F(o, [{ key: "_defaults", get: function() {
1879
+ return n.defaults;
1880
+ } }, { key: "set", value: function(a) {
1881
+ return _e(ee(o.prototype), "set", this).call(this, a), n.fire("interactable:set", { options: a, interactable: this }), this;
1882
+ } }, { key: "unset", value: function() {
1883
+ _e(ee(o.prototype), "unset", this).call(this);
1884
+ var a = n.interactables.list.indexOf(this);
1885
+ a < 0 || (n.interactables.list.splice(a, 1), n.fire("interactable:unset", { interactable: this }));
1886
+ } }]), o;
1887
+ })(yr);
1888
+ }
1889
+ return F(t, [{ key: "addListeners", value: function(e, n) {
1890
+ this.listenerMaps.push({ id: n, map: e });
1891
+ } }, { key: "fire", value: function(e, n) {
1892
+ for (var r = 0, i = this.listenerMaps; r < i.length; r++) {
1893
+ var o = i[r].map[e];
1894
+ if (o && o(n, this, e) === !1) return !1;
1895
+ }
1896
+ } }, { key: "init", value: function(e) {
1897
+ return this.isInitialized ? this : (function(n, r) {
1898
+ return n.isInitialized = !0, d.window(r) && z(r), $.init(r), A.init(r), fe.init(r), n.window = r, n.document = r.document, n.usePlugin(mr), n.usePlugin(hr), n;
1899
+ })(this, e);
1900
+ } }, { key: "pluginIsInstalled", value: function(e) {
1901
+ var n = e.id;
1902
+ return n ? !!this._plugins.map[n] : this._plugins.list.indexOf(e) !== -1;
1903
+ } }, { key: "usePlugin", value: function(e, n) {
1904
+ if (!this.isInitialized) return this;
1905
+ if (this.pluginIsInstalled(e)) return this;
1906
+ if (e.id && (this._plugins.map[e.id] = e), this._plugins.list.push(e), e.install && e.install(this, n), e.listeners && e.before) {
1907
+ for (var r = 0, i = this.listenerMaps.length, o = e.before.reduce((function(s, c) {
1908
+ return s[c] = !0, s[Sn(c)] = !0, s;
1909
+ }), {}); r < i; r++) {
1910
+ var a = this.listenerMaps[r].id;
1911
+ if (a && (o[a] || o[Sn(a)])) break;
1912
+ }
1913
+ this.listenerMaps.splice(r, 0, { id: e.id, map: e.listeners });
1914
+ } else e.listeners && this.listenerMaps.push({ id: e.id, map: e.listeners });
1915
+ return this;
1916
+ } }, { key: "addDocument", value: function(e, n) {
1917
+ if (this.getDocIndex(e) !== -1) return !1;
1918
+ var r = D(e);
1919
+ n = n ? w({}, n) : {}, this.documents.push({ doc: e, options: n }), this.events.documents.push(e), e !== this.document && this.events.add(r, "unload", this.onWindowUnload), this.fire("scope:add-document", { doc: e, window: r, scope: this, options: n });
1920
+ } }, { key: "removeDocument", value: function(e) {
1921
+ var n = this.getDocIndex(e), r = D(e), i = this.documents[n].options;
1922
+ this.events.remove(r, "unload", this.onWindowUnload), this.documents.splice(n, 1), this.events.documents.splice(n, 1), this.fire("scope:remove-document", { doc: e, window: r, scope: this, options: i });
1923
+ } }, { key: "getDocIndex", value: function(e) {
1924
+ for (var n = 0; n < this.documents.length; n++) if (this.documents[n].doc === e) return n;
1925
+ return -1;
1926
+ } }, { key: "getDocOptions", value: function(e) {
1927
+ var n = this.getDocIndex(e);
1928
+ return n === -1 ? null : this.documents[n].options;
1929
+ } }, { key: "now", value: function() {
1930
+ return (this.window.Date || Date).now();
1931
+ } }]), t;
1932
+ })();
1933
+ function Sn(t) {
1934
+ return t && t.replace(/\/.*$/, "");
1935
+ }
1936
+ var En = new xr(), X = En.interactStatic, wr = typeof globalThis != "undefined" ? globalThis : window;
1937
+ En.init(wr);
1938
+ var Sr = Object.freeze({ __proto__: null, edgeTarget: function() {
1939
+ }, elements: function() {
1940
+ }, grid: function(t) {
1941
+ var e = [["x", "y"], ["left", "top"], ["right", "bottom"], ["width", "height"]].filter((function(r) {
1942
+ var i = r[0], o = r[1];
1943
+ return i in t || o in t;
1944
+ })), n = function(r, i) {
1945
+ for (var o = t.range, a = t.limits, s = a === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : a, c = t.offset, u = c === void 0 ? { x: 0, y: 0 } : c, l = { range: o, grid: t, x: null, y: null }, p = 0; p < e.length; p++) {
1946
+ var f = e[p], v = f[0], h = f[1], g = Math.round((r - u.x) / t[v]), b = Math.round((i - u.y) / t[h]);
1947
+ l[v] = Math.max(s.left, Math.min(s.right, g * t[v] + u.x)), l[h] = Math.max(s.top, Math.min(s.bottom, b * t[h] + u.y));
1948
+ }
1949
+ return l;
1950
+ };
1951
+ return n.grid = t, n.coordFields = e, n;
1952
+ } }), Er = { id: "snappers", install: function(t) {
1953
+ var e = t.interactStatic;
1954
+ e.snappers = w(e.snappers || {}, Sr), e.createSnapGrid = e.snappers.grid;
1955
+ } }, _r = Er, Tr = { start: function(t) {
1956
+ var e = t.state, n = t.rect, r = t.edges, i = t.pageCoords, o = e.options, a = o.ratio, s = o.enabled, c = e.options, u = c.equalDelta, l = c.modifiers;
1957
+ a === "preserve" && (a = n.width / n.height), e.startCoords = w({}, i), e.startRect = w({}, n), e.ratio = a, e.equalDelta = u;
1958
+ var p = e.linkedEdges = { top: r.top || r.left && !r.bottom, left: r.left || r.top && !r.right, bottom: r.bottom || r.right && !r.top, right: r.right || r.bottom && !r.left };
1959
+ if (e.xIsPrimaryAxis = !(!r.left && !r.right), e.equalDelta) {
1960
+ var f = (p.left ? 1 : -1) * (p.top ? 1 : -1);
1961
+ e.edgeSign = { x: f, y: f };
1962
+ } else e.edgeSign = { x: p.left ? -1 : 1, y: p.top ? -1 : 1 };
1963
+ if (s !== !1 && w(r, p), l != null && l.length) {
1964
+ var v = new _t(t.interaction);
1965
+ v.copyFrom(t.interaction.modification), v.prepareStates(l), e.subModification = v, v.startAll(ce({}, t));
1966
+ }
1967
+ }, set: function(t) {
1968
+ var e = t.state, n = t.rect, r = t.coords, i = e.linkedEdges, o = w({}, r), a = e.equalDelta ? Lr : kr;
1969
+ if (w(t.edges, i), a(e, e.xIsPrimaryAxis, r, n), !e.subModification) return null;
1970
+ var s = w({}, n);
1971
+ Xe(i, s, { x: r.x - o.x, y: r.y - o.y });
1972
+ var c = e.subModification.setAll(ce(ce({}, t), {}, { rect: s, edges: i, pageCoords: r, prevCoords: r, prevRect: s })), u = c.delta;
1973
+ return c.changed && (a(e, Math.abs(u.x) > Math.abs(u.y), c.coords, c.rect), w(r, c.coords)), c.eventProps;
1974
+ }, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
1975
+ function Lr(t, e, n) {
1976
+ var r = t.startCoords, i = t.edgeSign;
1977
+ e ? n.y = r.y + (n.x - r.x) * i.y : n.x = r.x + (n.y - r.y) * i.x;
1978
+ }
1979
+ function kr(t, e, n, r) {
1980
+ var i = t.startRect, o = t.startCoords, a = t.ratio, s = t.edgeSign;
1981
+ if (e) {
1982
+ var c = r.width / a;
1983
+ n.y = o.y + (c - i.height) * s.y;
1984
+ } else {
1985
+ var u = r.height * a;
1986
+ n.x = o.x + (u - i.width) * s.x;
1987
+ }
1988
+ }
1989
+ var Or = de(Tr, "aspectRatio"), _n = function() {
1990
+ };
1991
+ _n._defaults = {};
1992
+ var et = _n;
1993
+ function Se(t, e, n) {
1994
+ return d.func(t) ? Pe(t, e.interactable, e.element, [n.x, n.y, e]) : Pe(t, e.interactable, e.element);
1995
+ }
1996
+ var tt = { start: function(t) {
1997
+ var e = t.rect, n = t.startOffset, r = t.state, i = t.interaction, o = t.pageCoords, a = r.options, s = a.elementRect, c = w({ left: 0, top: 0, right: 0, bottom: 0 }, a.offset || {});
1998
+ if (e && s) {
1999
+ var u = Se(a.restriction, i, o);
2000
+ if (u) {
2001
+ var l = u.right - u.left - e.width, p = u.bottom - u.top - e.height;
2002
+ l < 0 && (c.left += l, c.right += l), p < 0 && (c.top += p, c.bottom += p);
2003
+ }
2004
+ c.left += n.left - e.width * s.left, c.top += n.top - e.height * s.top, c.right += n.right - e.width * (1 - s.right), c.bottom += n.bottom - e.height * (1 - s.bottom);
2005
+ }
2006
+ r.offset = c;
2007
+ }, set: function(t) {
2008
+ var e = t.coords, n = t.interaction, r = t.state, i = r.options, o = r.offset, a = Se(i.restriction, n, e);
2009
+ if (a) {
2010
+ var s = (function(c) {
2011
+ return !c || "left" in c && "top" in c || ((c = w({}, c)).left = c.x || 0, c.top = c.y || 0, c.right = c.right || c.left + c.width, c.bottom = c.bottom || c.top + c.height), c;
2012
+ })(a);
2013
+ e.x = Math.max(Math.min(s.right - o.right, e.x), s.left + o.left), e.y = Math.max(Math.min(s.bottom - o.bottom, e.y), s.top + o.top);
2014
+ }
2015
+ }, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, Pr = de(tt, "restrict"), Tn = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, Ln = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
2016
+ function kn(t, e) {
2017
+ for (var n = 0, r = ["top", "left", "bottom", "right"]; n < r.length; n++) {
2018
+ var i = r[n];
2019
+ i in t || (t[i] = e[i]);
2020
+ }
2021
+ return t;
2022
+ }
2023
+ var Fe = { noInner: Tn, noOuter: Ln, start: function(t) {
2024
+ var e, n = t.interaction, r = t.startOffset, i = t.state, o = i.options;
2025
+ o && (e = qe(Se(o.offset, n, n.coords.start.page))), e = e || { x: 0, y: 0 }, i.offset = { top: e.y + r.top, left: e.x + r.left, bottom: e.y - r.bottom, right: e.x - r.right };
2026
+ }, set: function(t) {
2027
+ var e = t.coords, n = t.edges, r = t.interaction, i = t.state, o = i.offset, a = i.options;
2028
+ if (n) {
2029
+ var s = w({}, e), c = Se(a.inner, r, s) || {}, u = Se(a.outer, r, s) || {};
2030
+ kn(c, Tn), kn(u, Ln), n.top ? e.y = Math.min(Math.max(u.top + o.top, s.y), c.top + o.top) : n.bottom && (e.y = Math.max(Math.min(u.bottom + o.bottom, s.y), c.bottom + o.bottom)), n.left ? e.x = Math.min(Math.max(u.left + o.left, s.x), c.left + o.left) : n.right && (e.x = Math.max(Math.min(u.right + o.right, s.x), c.right + o.right));
2031
+ }
2032
+ }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, Ir = de(Fe, "restrictEdges"), Mr = w({ get elementRect() {
2033
+ return { top: 0, left: 0, bottom: 1, right: 1 };
2034
+ }, set elementRect(t) {
2035
+ } }, tt.defaults), Dr = de({ start: tt.start, set: tt.set, defaults: Mr }, "restrictRect"), zr = { width: -1 / 0, height: -1 / 0 }, Cr = { width: 1 / 0, height: 1 / 0 }, Ar = de({ start: function(t) {
2036
+ return Fe.start(t);
2037
+ }, set: function(t) {
2038
+ var e = t.interaction, n = t.state, r = t.rect, i = t.edges, o = n.options;
2039
+ if (i) {
2040
+ var a = ut(Se(o.min, e, t.coords)) || zr, s = ut(Se(o.max, e, t.coords)) || Cr;
2041
+ n.options = { endOnly: o.endOnly, inner: w({}, Fe.noInner), outer: w({}, Fe.noOuter) }, i.top ? (n.options.inner.top = r.bottom - a.height, n.options.outer.top = r.bottom - s.height) : i.bottom && (n.options.inner.bottom = r.top + a.height, n.options.outer.bottom = r.top + s.height), i.left ? (n.options.inner.left = r.right - a.width, n.options.outer.left = r.right - s.width) : i.right && (n.options.inner.right = r.left + a.width, n.options.outer.right = r.left + s.width), Fe.set(t), n.options = o;
2042
+ }
2043
+ }, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), It = { start: function(t) {
2044
+ var e, n = t.interaction, r = t.interactable, i = t.element, o = t.rect, a = t.state, s = t.startOffset, c = a.options, u = c.offsetWithOrigin ? (function(f) {
2045
+ var v = f.interaction.element, h = qe(Pe(f.state.options.origin, null, null, [v])), g = h || Ie(f.interactable, v, f.interaction.prepared.name);
2046
+ return g;
2047
+ })(t) : { x: 0, y: 0 };
2048
+ if (c.offset === "startCoords") e = { x: n.coords.start.page.x, y: n.coords.start.page.y };
2049
+ else {
2050
+ var l = Pe(c.offset, r, i, [n]);
2051
+ (e = qe(l) || { x: 0, y: 0 }).x += u.x, e.y += u.y;
2052
+ }
2053
+ var p = c.relativePoints;
2054
+ a.offsets = o && p && p.length ? p.map((function(f, v) {
2055
+ return { index: v, relativePoint: f, x: s.left - o.width * f.x + e.x, y: s.top - o.height * f.y + e.y };
2056
+ })) : [{ index: 0, relativePoint: null, x: e.x, y: e.y }];
2057
+ }, set: function(t) {
2058
+ var e = t.interaction, n = t.coords, r = t.state, i = r.options, o = r.offsets, a = Ie(e.interactable, e.element, e.prepared.name), s = w({}, n), c = [];
2059
+ i.offsetWithOrigin || (s.x -= a.x, s.y -= a.y);
2060
+ for (var u = 0, l = o; u < l.length; u++) for (var p = l[u], f = s.x - p.x, v = s.y - p.y, h = 0, g = i.targets.length; h < g; h++) {
2061
+ var b = i.targets[h], y = void 0;
2062
+ (y = d.func(b) ? b(f, v, e._proxy, p, h) : b) && c.push({ x: (d.number(y.x) ? y.x : f) + p.x, y: (d.number(y.y) ? y.y : v) + p.y, range: d.number(y.range) ? y.range : i.range, source: b, index: h, offset: p });
2063
+ }
2064
+ for (var x = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, L = 0; L < c.length; L++) {
2065
+ var I = c[L], S = I.range, k = I.x - s.x, Y = I.y - s.y, C = Me(k, Y), W = C <= S;
2066
+ S === 1 / 0 && x.inRange && x.range !== 1 / 0 && (W = !1), x.target && !(W ? x.inRange && S !== 1 / 0 ? C / S < x.distance / x.range : S === 1 / 0 && x.range !== 1 / 0 || C < x.distance : !x.inRange && C < x.distance) || (x.target = I, x.distance = C, x.range = S, x.inRange = W, x.delta.x = k, x.delta.y = Y);
2067
+ }
2068
+ return x.inRange && (n.x = x.target.x, n.y = x.target.y), r.closest = x, x;
2069
+ }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, Rr = de(It, "snap"), nt = { start: function(t) {
2070
+ var e = t.state, n = t.edges, r = e.options;
2071
+ if (!n) return null;
2072
+ t.state = { options: { targets: null, relativePoints: [{ x: n.left ? 0 : 1, y: n.top ? 0 : 1 }], offset: r.offset || "self", origin: { x: 0, y: 0 }, range: r.range } }, e.targetFields = e.targetFields || [["width", "height"], ["x", "y"]], It.start(t), e.offsets = t.state.offsets, t.state = e;
2073
+ }, set: function(t) {
2074
+ var e = t.interaction, n = t.state, r = t.coords, i = n.options, o = n.offsets, a = { x: r.x - o[0].x, y: r.y - o[0].y };
2075
+ n.options = w({}, i), n.options.targets = [];
2076
+ for (var s = 0, c = i.targets || []; s < c.length; s++) {
2077
+ var u = c[s], l = void 0;
2078
+ if (l = d.func(u) ? u(a.x, a.y, e) : u) {
2079
+ for (var p = 0, f = n.targetFields; p < f.length; p++) {
2080
+ var v = f[p], h = v[0], g = v[1];
2081
+ if (h in l || g in l) {
2082
+ l.x = l[h], l.y = l[g];
2083
+ break;
2084
+ }
2085
+ }
2086
+ n.options.targets.push(l);
2087
+ }
2088
+ }
2089
+ var b = It.set(t);
2090
+ return n.options = i, b;
2091
+ }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, jr = de(nt, "snapSize"), Mt = { aspectRatio: Or, restrictEdges: Ir, restrict: Pr, restrictRect: Dr, restrictSize: Ar, snapEdges: de({ start: function(t) {
2092
+ var e = t.edges;
2093
+ return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], nt.start(t)) : null;
2094
+ }, set: nt.set, defaults: w(Le(nt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: Rr, snapSize: jr, spring: et, avoid: et, transform: et, rubberband: et }, Fr = { id: "modifiers", install: function(t) {
2095
+ var e = t.interactStatic;
2096
+ for (var n in t.usePlugin(ln), t.usePlugin(_r), e.modifiers = Mt, Mt) {
2097
+ var r = Mt[n], i = r._defaults, o = r._methods;
2098
+ i._methods = o, t.defaults.perAction[n] = i;
2099
+ }
2100
+ } }, $r = Fr, On = (function(t) {
2101
+ me(n, t);
2102
+ var e = ue(n);
2103
+ function n(r, i, o, a, s, c) {
2104
+ var u;
2105
+ if (B(this, n), Ye(Ee(u = e.call(this, s)), o), o !== i && Ye(Ee(u), i), u.timeStamp = c, u.originalEvent = o, u.type = r, u.pointerId = De(i), u.pointerType = Xt(i), u.target = a, u.currentTarget = null, r === "tap") {
2106
+ var l = s.getPointerIndex(i);
2107
+ u.dt = u.timeStamp - s.pointers[l].downTime;
2108
+ var p = u.timeStamp - s.tapTime;
2109
+ u.double = !!s.prevTap && s.prevTap.type !== "doubletap" && s.prevTap.target === u.target && p < 500;
2110
+ } else r === "doubletap" && (u.dt = i.timeStamp - s.tapTime, u.double = !0);
2111
+ return u;
2112
+ }
2113
+ return F(n, [{ key: "_subtractOrigin", value: function(r) {
2114
+ var i = r.x, o = r.y;
2115
+ return this.pageX -= i, this.pageY -= o, this.clientX -= i, this.clientY -= o, this;
2116
+ } }, { key: "_addOrigin", value: function(r) {
2117
+ var i = r.x, o = r.y;
2118
+ return this.pageX += i, this.pageY += o, this.clientX += i, this.clientY += o, this;
2119
+ } }, { key: "preventDefault", value: function() {
2120
+ this.originalEvent.preventDefault();
2121
+ } }]), n;
2122
+ })(He), $e = { id: "pointer-events/base", before: ["inertia", "modifiers", "auto-start", "actions"], install: function(t) {
2123
+ t.pointerEvents = $e, t.defaults.actions.pointerEvents = $e.defaults, w(t.actions.phaselessTypes, $e.types);
2124
+ }, listeners: { "interactions:new": function(t) {
2125
+ var e = t.interaction;
2126
+ e.prevTap = null, e.tapTime = 0;
2127
+ }, "interactions:update-pointer": function(t) {
2128
+ var e = t.down, n = t.pointerInfo;
2129
+ !e && n.hold || (n.hold = { duration: 1 / 0, timeout: null });
2130
+ }, "interactions:move": function(t, e) {
2131
+ var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget;
2132
+ t.duplicate || n.pointerIsDown && !n.pointerWasMoved || (n.pointerIsDown && Dt(t), ve({ interaction: n, pointer: r, event: i, eventTarget: o, type: "move" }, e));
2133
+ }, "interactions:down": function(t, e) {
2134
+ (function(n, r) {
2135
+ for (var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget, c = n.pointerIndex, u = i.pointers[c].hold, l = Rt(s), p = { interaction: i, pointer: o, event: a, eventTarget: s, type: "hold", targets: [], path: l, node: null }, f = 0; f < l.length; f++) {
2136
+ var v = l[f];
2137
+ p.node = v, r.fire("pointerEvents:collect-targets", p);
2138
+ }
2139
+ if (p.targets.length) {
2140
+ for (var h = 1 / 0, g = 0, b = p.targets; g < b.length; g++) {
2141
+ var y = b[g].eventable.options.holdDuration;
2142
+ y < h && (h = y);
2143
+ }
2144
+ u.duration = h, u.timeout = setTimeout((function() {
2145
+ ve({ interaction: i, eventTarget: s, pointer: o, event: a, type: "hold" }, r);
2146
+ }), h);
2147
+ }
2148
+ })(t, e), ve(t, e);
2149
+ }, "interactions:up": function(t, e) {
2150
+ Dt(t), ve(t, e), (function(n, r) {
2151
+ var i = n.interaction, o = n.pointer, a = n.event, s = n.eventTarget;
2152
+ i.pointerWasMoved || ve({ interaction: i, eventTarget: s, pointer: o, event: a, type: "tap" }, r);
2153
+ })(t, e);
2154
+ }, "interactions:cancel": function(t, e) {
2155
+ Dt(t), ve(t, e);
2156
+ } }, PointerEvent: On, fire: ve, collectEventTargets: Pn, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
2157
+ function ve(t, e) {
2158
+ var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = t.targets, c = s === void 0 ? Pn(t, e) : s, u = new On(a, r, i, o, n, e.now());
2159
+ e.fire("pointerEvents:new", { pointerEvent: u });
2160
+ for (var l = { interaction: n, pointer: r, event: i, eventTarget: o, targets: c, type: a, pointerEvent: u }, p = 0; p < c.length; p++) {
2161
+ var f = c[p];
2162
+ for (var v in f.props || {}) u[v] = f.props[v];
2163
+ var h = Ie(f.eventable, f.node);
2164
+ if (u._subtractOrigin(h), u.eventable = f.eventable, u.currentTarget = f.node, f.eventable.fire(u), u._addOrigin(h), u.immediatePropagationStopped || u.propagationStopped && p + 1 < c.length && c[p + 1].node !== u.currentTarget) break;
2165
+ }
2166
+ if (e.fire("pointerEvents:fired", l), a === "tap") {
2167
+ var g = u.double ? ve({ interaction: n, pointer: r, event: i, eventTarget: o, type: "doubletap" }, e) : u;
2168
+ n.prevTap = g, n.tapTime = g.timeStamp;
2169
+ }
2170
+ return u;
2171
+ }
2172
+ function Pn(t, e) {
2173
+ var n = t.interaction, r = t.pointer, i = t.event, o = t.eventTarget, a = t.type, s = n.getPointerIndex(r), c = n.pointers[s];
2174
+ if (a === "tap" && (n.pointerWasMoved || !c || c.downTarget !== o)) return [];
2175
+ for (var u = Rt(o), l = { interaction: n, pointer: r, event: i, eventTarget: o, type: a, path: u, targets: [], node: null }, p = 0; p < u.length; p++) {
2176
+ var f = u[p];
2177
+ l.node = f, e.fire("pointerEvents:collect-targets", l);
2178
+ }
2179
+ return a === "hold" && (l.targets = l.targets.filter((function(v) {
2180
+ var h, g;
2181
+ return v.eventable.options.holdDuration === ((h = n.pointers[s]) == null || (g = h.hold) == null ? void 0 : g.duration);
2182
+ }))), l.targets;
2183
+ }
2184
+ function Dt(t) {
2185
+ var e = t.interaction, n = t.pointerIndex, r = e.pointers[n].hold;
2186
+ r && r.timeout && (clearTimeout(r.timeout), r.timeout = null);
2187
+ }
2188
+ var Br = Object.freeze({ __proto__: null, default: $e });
2189
+ function Vr(t) {
2190
+ var e = t.interaction;
2191
+ e.holdIntervalHandle && (clearInterval(e.holdIntervalHandle), e.holdIntervalHandle = null);
2192
+ }
2193
+ var Nr = { id: "pointer-events/holdRepeat", install: function(t) {
2194
+ t.usePlugin($e);
2195
+ var e = t.pointerEvents;
2196
+ e.defaults.holdRepeatInterval = 0, e.types.holdrepeat = t.actions.phaselessTypes.holdrepeat = !0;
2197
+ }, listeners: ["move", "up", "cancel", "endall"].reduce((function(t, e) {
2198
+ return t["pointerEvents:".concat(e)] = Vr, t;
2199
+ }), { "pointerEvents:new": function(t) {
2200
+ var e = t.pointerEvent;
2201
+ e.type === "hold" && (e.count = (e.count || 0) + 1);
2202
+ }, "pointerEvents:fired": function(t, e) {
2203
+ var n = t.interaction, r = t.pointerEvent, i = t.eventTarget, o = t.targets;
2204
+ if (r.type === "hold" && o.length) {
2205
+ var a = o[0].eventable.options.holdRepeatInterval;
2206
+ a <= 0 || (n.holdIntervalHandle = setTimeout((function() {
2207
+ e.pointerEvents.fire({ interaction: n, eventTarget: i, type: "hold", pointer: r, event: r }, e);
2208
+ }), a));
2209
+ }
2210
+ } }) }, qr = Nr, Xr = { id: "pointer-events/interactableTargets", install: function(t) {
2211
+ var e = t.Interactable;
2212
+ e.prototype.pointerEvents = function(r) {
2213
+ return w(this.events.options, r), this;
2214
+ };
2215
+ var n = e.prototype._backCompatOption;
2216
+ e.prototype._backCompatOption = function(r, i) {
2217
+ var o = n.call(this, r, i);
2218
+ return o === this && (this.events.options[r] = i), o;
2219
+ };
2220
+ }, listeners: { "pointerEvents:collect-targets": function(t, e) {
2221
+ var n = t.targets, r = t.node, i = t.type, o = t.eventTarget;
2222
+ e.interactables.forEachMatch(r, (function(a) {
2223
+ var s = a.events, c = s.options;
2224
+ s.types[i] && s.types[i].length && a.testIgnoreAllow(c, r, o) && n.push({ node: r, eventable: s, props: { interactable: a } });
2225
+ }));
2226
+ }, "interactable:new": function(t) {
2227
+ var e = t.interactable;
2228
+ e.events.getRect = function(n) {
2229
+ return e.getRect(n);
2230
+ };
2231
+ }, "interactable:set": function(t, e) {
2232
+ var n = t.interactable, r = t.options;
2233
+ w(n.events.options, e.pointerEvents.defaults), w(n.events.options, r.pointerEvents || {});
2234
+ } } }, Yr = Xr, Wr = { id: "pointer-events", install: function(t) {
2235
+ t.usePlugin(Br), t.usePlugin(qr), t.usePlugin(Yr);
2236
+ } }, Ur = Wr, Hr = { id: "reflow", install: function(t) {
2237
+ var e = t.Interactable;
2238
+ t.actions.phases.reflow = !0, e.prototype.reflow = function(n) {
2239
+ return (function(r, i, o) {
2240
+ for (var a = r.getAllElements(), s = o.window.Promise, c = s ? [] : null, u = function() {
2241
+ var p = a[l], f = r.getRect(p);
2242
+ if (!f) return 1;
2243
+ var v, h = Ce(o.interactions.list, (function(y) {
2244
+ return y.interacting() && y.interactable === r && y.element === p && y.prepared.name === i.name;
2245
+ }));
2246
+ if (h) h.move(), c && (v = h._reflowPromise || new s((function(y) {
2247
+ h._reflowResolve = y;
2248
+ })));
2249
+ else {
2250
+ var g = ut(f), b = /* @__PURE__ */ (function(y) {
2251
+ return { coords: y, get page() {
2252
+ return this.coords.page;
2253
+ }, get client() {
2254
+ return this.coords.client;
2255
+ }, get timeStamp() {
2256
+ return this.coords.timeStamp;
2257
+ }, get pageX() {
2258
+ return this.coords.page.x;
2259
+ }, get pageY() {
2260
+ return this.coords.page.y;
2261
+ }, get clientX() {
2262
+ return this.coords.client.x;
2263
+ }, get clientY() {
2264
+ return this.coords.client.y;
2265
+ }, get pointerId() {
2266
+ return this.coords.pointerId;
2267
+ }, get target() {
2268
+ return this.coords.target;
2269
+ }, get type() {
2270
+ return this.coords.type;
2271
+ }, get pointerType() {
2272
+ return this.coords.pointerType;
2273
+ }, get buttons() {
2274
+ return this.coords.buttons;
2275
+ }, preventDefault: function() {
2276
+ } };
2277
+ })({ page: { x: g.x, y: g.y }, client: { x: g.x, y: g.y }, timeStamp: o.now() });
2278
+ v = (function(y, x, L, I, S) {
2279
+ var k = y.interactions.new({ pointerType: "reflow" }), Y = { interaction: k, event: S, pointer: S, eventTarget: L, phase: "reflow" };
2280
+ k.interactable = x, k.element = L, k.prevEvent = S, k.updatePointer(S, S, L, !0), Bt(k.coords.delta), xt(k.prepared, I), k._doPhase(Y);
2281
+ var C = y.window, W = C.Promise, G = W ? new W((function(ae) {
2282
+ k._reflowResolve = ae;
2283
+ })) : void 0;
2284
+ return k._reflowPromise = G, k.start(I, x, L), k._interacting ? (k.move(Y), k.end(S)) : (k.stop(), k._reflowResolve()), k.removePointer(S, S), G;
2285
+ })(o, r, p, i, b);
2286
+ }
2287
+ c && c.push(v);
2288
+ }, l = 0; l < a.length && !u(); l++) ;
2289
+ return c && s.all(c).then((function() {
2290
+ return r;
2291
+ }));
2292
+ })(this, n, t);
2293
+ };
2294
+ }, listeners: { "interactions:stop": function(t, e) {
2295
+ var n = t.interaction;
2296
+ n.pointerType === "reflow" && (n._reflowResolve && n._reflowResolve(), (function(r, i) {
2297
+ r.splice(r.indexOf(i), 1);
2298
+ })(e.interactions.list, n));
2299
+ } } }, Gr = Hr;
2300
+ if (X.use(cn), X.use(hn), X.use(Ur), X.use(fr), X.use($r), X.use(er), X.use(qn), X.use(Yn), X.use(Gr), X.default = X, le(R) === "object" && R) try {
2301
+ R.exports = X;
2302
+ } catch (t) {
2303
+ }
2304
+ return X.default = X, X;
2305
+ }));
2306
+ })(Ne, Ne.exports)), Ne.exports;
2307
+ }
2308
+ var di = /* @__PURE__ */ fi();
2309
+ const Rn = /* @__PURE__ */ ci(di), hi = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组态图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-102.000000,%20-636.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M105.586207,636.65%20C105.941701,636.65%20106.229885,636.938185%20106.229885,637.293678%20L106.229885,637.293678%20L106.229,638.121%20L113.77,638.121%20L113.770115,637.293678%20C113.770115,636.970502%20114.008284,636.702953%20114.318675,636.656979%20L114.413793,636.65%20L117.356322,636.65%20C117.711815,636.65%20118,636.938185%20118,637.293678%20L118,637.293678%20L118,640.236207%20C118,640.591701%20117.711815,640.879885%20117.356322,640.879885%20L117.356322,640.879885%20L116.528,640.879%20L116.528,648.42%20L117.356322,648.420115%20C117.679498,648.420115%20117.947047,648.658284%20117.993021,648.968675%20L118,649.063793%20L118,652.006322%20C118,652.361815%20117.711815,652.65%20117.356322,652.65%20L117.356322,652.65%20L114.413793,652.65%20C114.058299,652.65%20113.770115,652.361815%20113.770115,652.006322%20L113.770115,652.006322%20L113.77,651.178%20L106.229,651.178%20L106.229885,652.006322%20C106.229885,652.329498%20105.991716,652.597047%20105.681325,652.643021%20L105.586207,652.65%20L102.643678,652.65%20C102.288185,652.65%20102,652.361815%20102,652.006322%20L102,652.006322%20L102,649.063793%20C102,648.708299%20102.288185,648.420115%20102.643678,648.420115%20L102.643678,648.420115%20L103.471,648.42%20L103.471,640.879%20L102.643678,640.879885%20C102.320502,640.879885%20102.052953,640.641716%20102.006979,640.331325%20L102,640.236207%20L102,637.293678%20C102,636.938185%20102.288185,636.65%20102.643678,636.65%20L102.643678,636.65%20Z%20M116.712644,649.707471%20L115.057471,649.707471%20L115.057471,651.362644%20L116.712644,651.362644%20L116.712644,649.707471%20Z%20M104.942529,649.707471%20L103.287356,649.707471%20L103.287356,651.362644%20L104.942529,651.362644%20L104.942529,649.707471%20Z%20M113.77,639.408%20L106.229,639.408%20L106.229885,640.236207%20C106.229885,640.559383%20105.991716,640.826932%20105.681325,640.872906%20L105.586207,640.879885%20L104.758,640.879%20L104.758,648.42%20L105.586207,648.420115%20C105.909383,648.420115%20106.176932,648.658284%20106.222906,648.968675%20L106.229885,649.063793%20L106.229,649.891%20L113.77,649.891%20L113.770115,649.063793%20C113.770115,648.740617%20114.008284,648.473068%20114.318675,648.427094%20L114.413793,648.420115%20L115.241,648.42%20L115.241,640.879%20L114.413793,640.879885%20C114.090617,640.879885%20113.823068,640.641716%20113.777094,640.331325%20L113.770115,640.236207%20L113.77,639.408%20Z%20M110.588506,641.063793%20C110.943999,641.063793%20111.232184,641.351978%20111.232184,641.707471%20L111.232184,641.707471%20L111.232184,643.416897%20L112.942529,643.417816%20C113.268398,643.417816%20113.537709,643.659971%20113.580331,643.974151%20L113.580331,643.974151%20L113.586207,644.061494%20L113.586207,647.592529%20C113.586207,647.948022%20113.298022,648.236207%20112.942529,648.236207%20L112.942529,648.236207%20L109.411494,648.236207%20C109.056001,648.236207%20108.767816,647.948022%20108.767816,647.592529%20L108.767816,647.592529%20L108.767816,645.882184%20L107.057471,645.882184%20C106.731602,645.882184%20106.462291,645.640029%20106.419669,645.325849%20L106.419669,645.325849%20L106.413793,645.238506%20L106.413793,641.707471%20C106.413793,641.351978%20106.701978,641.063793%20107.057471,641.063793%20L107.057471,641.063793%20Z%20M109.944828,642.351149%20L107.701149,642.351149%20L107.701149,644.593908%20L109.411494,644.594828%20C109.737363,644.594828%20110.006674,644.836983%20110.049296,645.151162%20L110.049296,645.151162%20L110.055172,645.238506%20L110.055172,646.947931%20L112.298851,646.947931%20L112.298851,644.705172%20L110.588506,644.705172%20C110.262637,644.705172%20109.993326,644.463017%20109.950704,644.148838%20L109.950704,644.148838%20L109.944828,644.061494%20L109.944828,642.351149%20Z%20M104.942529,637.937356%20L103.287356,637.937356%20L103.287356,639.592529%20L104.942529,639.592529%20L104.942529,637.937356%20Z%20M116.712644,637.937356%20L115.057471,637.937356%20L115.057471,639.592529%20L116.712644,639.592529%20L116.712644,637.937356%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", vi = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组态图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-102.000000,%20-636.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M105.586207,636.65%20C105.941701,636.65%20106.229885,636.938185%20106.229885,637.293678%20L106.229885,637.293678%20L106.229,638.121%20L113.77,638.121%20L113.770115,637.293678%20C113.770115,636.970502%20114.008284,636.702953%20114.318675,636.656979%20L114.413793,636.65%20L117.356322,636.65%20C117.711815,636.65%20118,636.938185%20118,637.293678%20L118,637.293678%20L118,640.236207%20C118,640.591701%20117.711815,640.879885%20117.356322,640.879885%20L117.356322,640.879885%20L116.528,640.879%20L116.528,648.42%20L117.356322,648.420115%20C117.679498,648.420115%20117.947047,648.658284%20117.993021,648.968675%20L118,649.063793%20L118,652.006322%20C118,652.361815%20117.711815,652.65%20117.356322,652.65%20L117.356322,652.65%20L114.413793,652.65%20C114.058299,652.65%20113.770115,652.361815%20113.770115,652.006322%20L113.770115,652.006322%20L113.77,651.178%20L106.229,651.178%20L106.229885,652.006322%20C106.229885,652.329498%20105.991716,652.597047%20105.681325,652.643021%20L105.586207,652.65%20L102.643678,652.65%20C102.288185,652.65%20102,652.361815%20102,652.006322%20L102,652.006322%20L102,649.063793%20C102,648.708299%20102.288185,648.420115%20102.643678,648.420115%20L102.643678,648.420115%20L103.471,648.42%20L103.471,640.879%20L102.643678,640.879885%20C102.320502,640.879885%20102.052953,640.641716%20102.006979,640.331325%20L102,640.236207%20L102,637.293678%20C102,636.938185%20102.288185,636.65%20102.643678,636.65%20L102.643678,636.65%20Z%20M116.712644,649.707471%20L115.057471,649.707471%20L115.057471,651.362644%20L116.712644,651.362644%20L116.712644,649.707471%20Z%20M104.942529,649.707471%20L103.287356,649.707471%20L103.287356,651.362644%20L104.942529,651.362644%20L104.942529,649.707471%20Z%20M113.77,639.408%20L106.229,639.408%20L106.229885,640.236207%20C106.229885,640.559383%20105.991716,640.826932%20105.681325,640.872906%20L105.586207,640.879885%20L104.758,640.879%20L104.758,648.42%20L105.586207,648.420115%20C105.909383,648.420115%20106.176932,648.658284%20106.222906,648.968675%20L106.229885,649.063793%20L106.229,649.891%20L113.77,649.891%20L113.770115,649.063793%20C113.770115,648.740617%20114.008284,648.473068%20114.318675,648.427094%20L114.413793,648.420115%20L115.241,648.42%20L115.241,640.879%20L114.413793,640.879885%20C114.090617,640.879885%20113.823068,640.641716%20113.777094,640.331325%20L113.770115,640.236207%20L113.77,639.408%20Z%20M110.588506,641.063793%20C110.943999,641.063793%20111.232184,641.351978%20111.232184,641.707471%20L111.232184,641.707471%20L111.232184,643.416897%20L112.942529,643.417816%20C113.268398,643.417816%20113.537709,643.659971%20113.580331,643.974151%20L113.580331,643.974151%20L113.586207,644.061494%20L113.586207,647.592529%20C113.586207,647.948022%20113.298022,648.236207%20112.942529,648.236207%20L112.942529,648.236207%20L109.411494,648.236207%20C109.056001,648.236207%20108.767816,647.948022%20108.767816,647.592529%20L108.767816,647.592529%20L108.767816,645.882184%20L107.057471,645.882184%20C106.731602,645.882184%20106.462291,645.640029%20106.419669,645.325849%20L106.419669,645.325849%20L106.413793,645.238506%20L106.413793,641.707471%20C106.413793,641.351978%20106.701978,641.063793%20107.057471,641.063793%20L107.057471,641.063793%20Z%20M109.944828,642.351149%20L107.701149,642.351149%20L107.701149,644.593908%20L109.411494,644.594828%20C109.737363,644.594828%20110.006674,644.836983%20110.049296,645.151162%20L110.049296,645.151162%20L110.055172,645.238506%20L110.055172,646.947931%20L112.298851,646.947931%20L112.298851,644.705172%20L110.588506,644.705172%20C110.262637,644.705172%20109.993326,644.463017%20109.950704,644.148838%20L109.950704,644.148838%20L109.944828,644.061494%20L109.944828,642.351149%20Z%20M104.942529,637.937356%20L103.287356,637.937356%20L103.287356,639.592529%20L104.942529,639.592529%20L104.942529,637.937356%20Z%20M116.712644,637.937356%20L115.057471,637.937356%20L115.057471,639.592529%20L116.712644,639.592529%20L116.712644,637.937356%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", gi = ["id"], mi = ["id", "title"], yi = { class: "num" }, bi = ["id"], xi = ["id"], wi = ["id"], Si = ["id"], Ei = ["id"], _i = ["id"], Ti = {
2310
+ DEFAULT_ICON: hi,
2311
+ ACTIVE_ICON: vi,
2312
+ NAME_CN: "组态图",
2313
+ NAME_EN: "Scd",
2314
+ ORDER: 1
2315
+ }, Li = {
2316
+ bgColor: "#fff",
2317
+ titleColor: "#111",
2318
+ titleSize: 14,
2319
+ bgImg: { value: "", type: "image", label: "component.monitor.bgImg" },
2320
+ outer: { value: { width: "100%", height: "100%", top: "0%", left: "0%" }, type: "object", label: "component.monitor.outerSize" },
2321
+ inner: { value: { width: "100%", height: "100%" }, type: "object", label: "component.monitor.innerSize" },
2322
+ multipleImg: !1,
2323
+ statusFv: { value: "", type: "string", label: "component.monitor.statusFv", required: !0, dependent: "multipleImg" },
2324
+ object: { value: "", type: "string", label: "component.monitor.object", dependent: "multipleImg" },
2325
+ images: { value: [{ code: "0", value: "" }], type: "status", label: "", dependent: "multipleImg" },
2326
+ radiusSize: 8,
2327
+ isHideTitle: !0
2328
+ }, ki = [
2329
+ {
2330
+ name: "参数一",
2331
+ fv: "",
2332
+ width: 100,
2333
+ object_id: "",
2334
+ source: "mosaic",
2335
+ type: "Plate",
2336
+ titleBg: "#006eaf",
2337
+ titleColor: "#fff",
2338
+ valueBg: "#fff",
2339
+ valueColor: "#006eaf",
2340
+ fontSize: 12,
2341
+ isBold: !1
2342
+ }
2343
+ ], Oi = ["name", "fv", "object_id", "source", "type", "width", "fontSize", "titleColor", "titleBg", "valueColor", "valueBg", "isBold"], Pi = ["mosaic"], Ii = {
2344
+ useAlias: !1,
2345
+ multiObject: !1,
2346
+ showBothModes: !0,
2347
+ // 显示单对象和多对象两个版本
2348
+ source: "mosaic"
2349
+ }, Mi = { DEFAULT: Ti, OPTIONS: Li, DATA: ki, PARAMS: Oi, SOURCE: Pi, COMMON: Ii }, Di = /* @__PURE__ */ ti(zn(Dn({}, Mi), {
2350
+ __name: "scd",
2351
+ props: {
2352
+ conf: { type: Object, default: () => ({ data: [] }) },
2353
+ mode: { type: String, default: "edit" },
2354
+ uid: { type: String, default: "" },
2355
+ theme: { type: String, default: "light" }
2356
+ },
2357
+ setup(R) {
2358
+ const M = "monitor_" + Math.random().toString(16).substring(4, 12), j = R, ce = "--";
2359
+ class le extends si {
2360
+ extractStyles() {
2361
+ var z, D, P, V;
2362
+ const T = this.props.conf.options, O = {
2363
+ bgColor: this.getOptionValue("bgColor", "#fff"),
2364
+ titleColor: this.getOptionValue("titleColor", "#111"),
2365
+ titleSize: this.getOptionValue("titleSize", 14),
2366
+ bgImg: this.getOptionValue("bgImg", ""),
2367
+ radiusSize: this.getOptionValue("radiusSize", 4),
2368
+ isHideTitle: this.getOptionValue("isHideTitle", !1),
2369
+ outer: this.getOptionValue("outer", { width: "95%", height: "95%", top: "5%", left: "5%" }),
2370
+ inner: this.getOptionValue("inner", { width: "100%", height: "100%" })
2371
+ };
2372
+ return (z = T == null ? void 0 : T.multipleImg) != null && z.value && (O.multipleImg = T.multipleImg.value, O.statusFv = (D = T.statusFv) == null ? void 0 : D.value, O.images = (P = T.images) == null ? void 0 : P.value, O.object = (V = T.object) == null ? void 0 : V.value), O;
2373
+ }
2374
+ init() {
2375
+ this.Style.value = this.extractStyles(), this.applyTheme(), F.value = this.Style.value.bgImg, ai(() => {
2376
+ var z, D;
2377
+ const T = ((z = document.getElementById(M)) == null ? void 0 : z.clientWidth) || 0, O = ((D = document.getElementById(M)) == null ? void 0 : D.clientHeight) || 0;
2378
+ this.props.conf.data.forEach((P) => {
2379
+ const V = this.props.conf.height || O;
2380
+ typeof P.x == "number" && (P.x = `${P.x / T * 100}%`, P.y = `${P.y / O * 100}%`), P.height = Math.floor(O / V * P.height);
2381
+ }), this.props.conf.height = O;
2382
+ });
2383
+ }
2384
+ // ✅ 删除 setHistoryData(),不再需要历史数据
2385
+ // ✅ 重写 setSocketData(),处理多种显示类型
2386
+ // 注意:Session 已经根据 object_id 精确匹配并分发数据
2387
+ setSocketData(T) {
2388
+ var z;
2389
+ if (!T) return;
2390
+ const { data: O } = this.props.conf;
2391
+ if (O.forEach((D) => {
2392
+ var P, V;
2393
+ try {
2394
+ const d = this.extractDataValue(T, D.fv);
2395
+ D.value = (P = d != null ? d : D.default) != null ? P : ce;
2396
+ } catch (d) {
2397
+ D.value = (V = D.default) != null ? V : ce;
2398
+ }
2399
+ }), this.Style.value.multipleImg && this.Style.value.statusFv) {
2400
+ const D = this.extractDataValue(T, this.Style.value.statusFv), P = (z = this.Style.value.images) == null ? void 0 : z.find((V) => String(V.code) === String(D));
2401
+ F.value = (P == null ? void 0 : P.value) || this.Style.value.bgImg;
2402
+ }
2403
+ }
2404
+ }
2405
+ const B = new le(j, "scd");
2406
+ B.setupLifecycle();
2407
+ const Z = B.getStyle(), F = ni(""), it = ri(() => ui(j.conf.options)), me = (_) => {
2408
+ let T = 5;
2409
+ return /^\d+$/.test(_) && (T = Number(_)), T + 1;
2410
+ }, ee = (_, T) => {
2411
+ const O = T.pieces ? Number(T.pieces) : 5, z = T.max ? Number(T.max) : 100, D = T.min ? Number(T.min) : 0;
2412
+ return z - Math.floor((z - D) / O) * _;
2413
+ }, ke = () => {
2414
+ Rn("." + M).draggable({
2415
+ modifiers: [Rn.modifiers.restrictRect({ restriction: "parent", endOnly: !0 })],
2416
+ onmove(_) {
2417
+ Ee(_);
2418
+ }
2419
+ });
2420
+ }, Ee = (_) => {
2421
+ const { data: T } = j.conf, O = document.getElementById(M);
2422
+ if (!O) return;
2423
+ const z = O.clientWidth, D = O.clientHeight;
2424
+ T.forEach((P, V) => {
2425
+ var d, te;
2426
+ if (`${P.type}_${M}_${P.fv}_${V}` === _.target.id) {
2427
+ let be = typeof P.x == "number" ? P.x + _.dx : Number(((d = P.x) == null ? void 0 : d.replace("%", "")) || 0) / 100 * z + _.dx, ne = typeof P.y == "number" ? P.y + _.dy : Number(((te = P.y) == null ? void 0 : te.replace("%", "")) || 0) / 100 * D + _.dy;
2428
+ P.x = `${be / z * 100}%`, P.y = `${ne / D * 100}%`;
2429
+ }
2430
+ });
2431
+ }, ue = (_) => {
2432
+ const T = _.max - _.min;
2433
+ let O, z;
2434
+ return _.value < _.startValue ? (O = Math.abs((_.value - _.startValue) / T * _.height), z = _.value / T * _.height) : (O = Math.abs((_.value - _.startValue) / T * _.height), z = _.startValue / T * _.height), { height: `${O}px`, bottom: `${z}px` };
2435
+ }, _e = (_) => {
2436
+ let T = "standby";
2437
+ return String(_.value) === _.online && (T = "online"), String(_.value) === _.offline && (T = "offline"), T;
2438
+ }, ye = (_) => {
2439
+ var O;
2440
+ let T = { text: "--", color: _.color };
2441
+ return (O = _.status) == null || O.forEach((z) => {
2442
+ String(_.value) === String(z.code) && (T.text = z.text, T.color = z.color);
2443
+ }), T;
2444
+ };
2445
+ return j.mode === "edit" && ke(), (_, T) => {
2446
+ var O, z, D, P, V, d, te, be, ne, Oe, q, re, $;
2447
+ return J(), Q("div", {
2448
+ class: "mix-component",
2449
+ style: N({ backgroundColor: ge(Z).bgColor, borderRadius: `${ge(Z).radiusSize}px` })
2450
+ }, [
2451
+ U("div", {
2452
+ class: "mix-title",
2453
+ style: N(it.value)
2454
+ }, se(R.conf.caption || R.conf.name), 5),
2455
+ U("div", {
2456
+ class: "mix-body",
2457
+ id: M
2458
+ }, [
2459
+ U("div", {
2460
+ style: N({
2461
+ height: (z = (O = ge(Z)) == null ? void 0 : O.outer) == null ? void 0 : z.height,
2462
+ width: (P = (D = ge(Z)) == null ? void 0 : D.outer) == null ? void 0 : P.width,
2463
+ top: (d = (V = ge(Z)) == null ? void 0 : V.outer) == null ? void 0 : d.top,
2464
+ left: (be = (te = ge(Z)) == null ? void 0 : te.outer) == null ? void 0 : be.left
2465
+ }),
2466
+ class: "absolute"
2467
+ }, [
2468
+ U("div", {
2469
+ class: "w-[100%] h-[100%] relative",
2470
+ style: N({
2471
+ backgroundImage: `url(${F.value})`,
2472
+ backgroundSize: `${(Oe = (ne = ge(Z)) == null ? void 0 : ne.inner) == null ? void 0 : Oe.width} ${(re = (q = ge(Z)) == null ? void 0 : q.inner) == null ? void 0 : re.height}`
2473
+ })
2474
+ }, [
2475
+ (J(!0), Q(zt, null, Cn(($ = R.conf) == null ? void 0 : $.data, (m, A) => {
2476
+ var K;
2477
+ return J(), Q(zt, {
2478
+ key: m.fv + "_" + A
2479
+ }, [
2480
+ m.type == "ULG" ? (J(), Q("div", {
2481
+ key: 0,
2482
+ class: Ve(`${M} liquid absolute`),
2483
+ id: `ULG_${M}_${m.fv}_${A}`,
2484
+ style: N({ height: `${m.height}px`, left: m.x, top: m.y, zIndex: A })
2485
+ }, [
2486
+ U("div", {
2487
+ class: "liquid-bar",
2488
+ style: N({ width: `${m.width}px` })
2489
+ }, [
2490
+ U("div", {
2491
+ class: "liquid-value",
2492
+ id: M + "_Liquid_" + m.fv,
2493
+ title: m.value,
2494
+ style: N({ height: ue(m).height, bottom: ue(m).bottom })
2495
+ }, null, 12, mi)
2496
+ ], 4),
2497
+ U("div", {
2498
+ class: "liquid-scale",
2499
+ style: N({ display: m.showScale === !1 ? "none" : "flex" })
2500
+ }, [
2501
+ (J(!0), Q(zt, null, Cn(me(m.pieces), (ot, H) => (J(), Q("div", {
2502
+ class: "split",
2503
+ key: H,
2504
+ style: N({ fontSize: `${m.fontSize}px`, fontWeight: m.isBold ? "bold" : "normal" })
2505
+ }, [
2506
+ U("span", yi, se(ee(H, m)), 1)
2507
+ ], 4))), 128))
2508
+ ], 4)
2509
+ ], 14, gi)) : m.type == "Signal" ? (J(), Q("div", {
2510
+ key: 1,
2511
+ class: Ve(`${M} signal absolute ${_e(m)}`),
2512
+ style: N({ width: `${m.fontSize}px`, height: `${m.fontSize}px`, left: m.x, top: m.y, zIndex: A }),
2513
+ id: `Signal_${M}_${m.fv}_${A}`
2514
+ }, null, 14, bi)) : m.type == "Digit" ? (J(), Q("div", {
2515
+ key: 2,
2516
+ class: Ve(`${M} absolute`),
2517
+ style: N({
2518
+ left: m.x,
2519
+ top: m.y,
2520
+ color: m.color,
2521
+ fontSize: `${m.fontSize}px`,
2522
+ fontWeight: m.isBold ? "bold" : "normal",
2523
+ zIndex: A
2524
+ }),
2525
+ id: `Digit_${M}_${m.fv}_${A}`
2526
+ }, se((K = m.value) != null ? K : m.default) + se(m.unit ? " " + m.unit : ""), 15, xi)) : m.type == "Status" ? (J(), Q("div", {
2527
+ key: 3,
2528
+ class: Ve(`${M} absolute status`),
2529
+ id: `Status_${M}_${m.fv}_${A}`,
2530
+ style: N({ color: ye(m).color, left: m.x, top: m.y, zIndex: A })
2531
+ }, [
2532
+ ii(se(m.name) + ": ", 1),
2533
+ U("span", null, [
2534
+ U("div", {
2535
+ style: N({ "background-color": ye(m).color }),
2536
+ id: "monitorStatus-" + m.fv
2537
+ }, null, 12, Si),
2538
+ U("span", {
2539
+ id: "monitorStatusSpan-" + m.fv,
2540
+ style: N({ color: ye(m).color })
2541
+ }, se(ye(m).text), 13, Ei)
2542
+ ])
2543
+ ], 14, wi)) : (J(), Q("div", {
2544
+ key: 4,
2545
+ class: Ve(`${M} absolute plate`),
2546
+ id: `Plate_${M}_${m.fv}_${A}`,
2547
+ style: N({
2548
+ width: `${m.width}px`,
2549
+ fontSize: `${m.fontSize}px`,
2550
+ fontWeight: m.isBold ? "bold" : "normal",
2551
+ left: m.x,
2552
+ top: m.y,
2553
+ zIndex: A
2554
+ })
2555
+ }, [
2556
+ U("div", {
2557
+ class: "name",
2558
+ style: N({ color: m.titleColor, backgroundColor: m.titleBg })
2559
+ }, se(m.name || "--") + se(m.unit ? "/" + m.unit : ""), 5),
2560
+ U("div", {
2561
+ class: "value",
2562
+ style: N({ color: m.valueColor, backgroundColor: m.valueBg, borderColor: m.titleBg })
2563
+ }, se(m.value || "--"), 5)
2564
+ ], 14, _i))
2565
+ ], 64);
2566
+ }), 128))
2567
+ ], 4)
2568
+ ], 4)
2569
+ ]),
2570
+ oi(_.$slots, "default", {}, void 0, !0)
2571
+ ], 4);
2572
+ };
2573
+ }
2574
+ })), Fi = /* @__PURE__ */ li(Di, [["__scopeId", "data-v-9fe283ea"]]);
2575
+ export {
2576
+ Fi as default
2577
+ };