@openc3/vue-common 6.4.2 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/{ArrayWidget-D0fKsdTb.js → ArrayWidget-CC3iwyQc.js} +4 -4
  2. package/dist/{ArrayWidget-D0fKsdTb.js.map → ArrayWidget-CC3iwyQc.js.map} +1 -1
  3. package/dist/{ArrayWidget-F8xL9dRA.cjs → ArrayWidget-DaQV8y9D.cjs} +2 -2
  4. package/dist/{ArrayWidget-F8xL9dRA.cjs.map → ArrayWidget-DaQV8y9D.cjs.map} +1 -1
  5. package/dist/{ArrayplotWidget-BmRSuGhA.js → ArrayplotWidget-CiQdsmVy.js} +3 -3
  6. package/dist/{ArrayplotWidget-BmRSuGhA.js.map → ArrayplotWidget-CiQdsmVy.js.map} +1 -1
  7. package/dist/{ArrayplotWidget-D6_PhmMa.cjs → ArrayplotWidget-CkiRBYrb.cjs} +2 -2
  8. package/dist/{ArrayplotWidget-D6_PhmMa.cjs.map → ArrayplotWidget-CkiRBYrb.cjs.map} +1 -1
  9. package/dist/{BarColumn-DtYw6Gmq.js → BarColumn-BhjcS87D.js} +3 -3
  10. package/dist/{BarColumn-DtYw6Gmq.js.map → BarColumn-BhjcS87D.js.map} +1 -1
  11. package/dist/{BarColumn-DO5zpCu2.cjs → BarColumn-Ci9fqSL1.cjs} +2 -2
  12. package/dist/{BarColumn-DO5zpCu2.cjs.map → BarColumn-Ci9fqSL1.cjs.map} +1 -1
  13. package/dist/{BlockWidget-Dpxbw455.js → BlockWidget-LLPHBYVU.js} +4 -4
  14. package/dist/{BlockWidget-Dpxbw455.js.map → BlockWidget-LLPHBYVU.js.map} +1 -1
  15. package/dist/{BlockWidget-CbuJPszc.cjs → BlockWidget-yNjXB1gO.cjs} +2 -2
  16. package/dist/{BlockWidget-CbuJPszc.cjs.map → BlockWidget-yNjXB1gO.cjs.map} +1 -1
  17. package/dist/{ButtonWidget-DB464bRo.cjs → ButtonWidget-C_R8sVl5.cjs} +2 -2
  18. package/dist/{ButtonWidget-DB464bRo.cjs.map → ButtonWidget-C_R8sVl5.cjs.map} +1 -1
  19. package/dist/{ButtonWidget-8iOpXmpp.js → ButtonWidget-Co0KMkIG.js} +4 -4
  20. package/dist/{ButtonWidget-8iOpXmpp.js.map → ButtonWidget-Co0KMkIG.js.map} +1 -1
  21. package/dist/{CanvasWidget-D4iIs915.cjs → CanvasWidget-CMVhjpJc.cjs} +2 -2
  22. package/dist/{CanvasWidget-D4iIs915.cjs.map → CanvasWidget-CMVhjpJc.cjs.map} +1 -1
  23. package/dist/{CanvasWidget-B0iU38rA.js → CanvasWidget-DPrxnI7M.js} +2 -2
  24. package/dist/{CanvasWidget-B0iU38rA.js.map → CanvasWidget-DPrxnI7M.js.map} +1 -1
  25. package/dist/{CanvasdotWidget-DG6qDFlh.cjs → CanvasdotWidget-DskyFyIC.cjs} +2 -2
  26. package/dist/{CanvasdotWidget-DG6qDFlh.cjs.map → CanvasdotWidget-DskyFyIC.cjs.map} +1 -1
  27. package/dist/{CanvasdotWidget-C9viSVBs.js → CanvasdotWidget-s1ALDR4k.js} +2 -2
  28. package/dist/{CanvasdotWidget-C9viSVBs.js.map → CanvasdotWidget-s1ALDR4k.js.map} +1 -1
  29. package/dist/{CanvasimageWidget-BJhOpZ3q.cjs → CanvasimageWidget-BngTI0bl.cjs} +2 -2
  30. package/dist/{CanvasimageWidget-BJhOpZ3q.cjs.map → CanvasimageWidget-BngTI0bl.cjs.map} +1 -1
  31. package/dist/{CanvasimageWidget-CFiCpITu.js → CanvasimageWidget-Cs-KjdqK.js} +3 -3
  32. package/dist/{CanvasimageWidget-CFiCpITu.js.map → CanvasimageWidget-Cs-KjdqK.js.map} +1 -1
  33. package/dist/{CanvasimagevalueWidget-D-4P_8Gh.cjs → CanvasimagevalueWidget-0qTn6Gb5.cjs} +2 -2
  34. package/dist/{CanvasimagevalueWidget-D-4P_8Gh.cjs.map → CanvasimagevalueWidget-0qTn6Gb5.cjs.map} +1 -1
  35. package/dist/{CanvasimagevalueWidget-fu6vbAY0.js → CanvasimagevalueWidget-B-wBQisl.js} +3 -3
  36. package/dist/{CanvasimagevalueWidget-fu6vbAY0.js.map → CanvasimagevalueWidget-B-wBQisl.js.map} +1 -1
  37. package/dist/{CanvaslabelWidget-BVqHq3Vp.js → CanvaslabelWidget-CLBK52pP.js} +2 -2
  38. package/dist/{CanvaslabelWidget-BVqHq3Vp.js.map → CanvaslabelWidget-CLBK52pP.js.map} +1 -1
  39. package/dist/{CanvaslabelWidget-1OS-a3F4.cjs → CanvaslabelWidget-b2yvqZBZ.cjs} +2 -2
  40. package/dist/{CanvaslabelWidget-1OS-a3F4.cjs.map → CanvaslabelWidget-b2yvqZBZ.cjs.map} +1 -1
  41. package/dist/{CanvaslabelvalueWidget-C3vVvK2b.cjs → CanvaslabelvalueWidget-CA03ncx0.cjs} +2 -2
  42. package/dist/{CanvaslabelvalueWidget-C3vVvK2b.cjs.map → CanvaslabelvalueWidget-CA03ncx0.cjs.map} +1 -1
  43. package/dist/{CanvaslabelvalueWidget-BOFa8-NU.js → CanvaslabelvalueWidget-CAa70y_o.js} +2 -2
  44. package/dist/{CanvaslabelvalueWidget-BOFa8-NU.js.map → CanvaslabelvalueWidget-CAa70y_o.js.map} +1 -1
  45. package/dist/{CanvaslineWidget-Cr8MsDUl.cjs → CanvaslineWidget-B-yhgIlR.cjs} +2 -2
  46. package/dist/{CanvaslineWidget-Cr8MsDUl.cjs.map → CanvaslineWidget-B-yhgIlR.cjs.map} +1 -1
  47. package/dist/{CanvaslineWidget-l3ko0QXk.js → CanvaslineWidget-PdwVJOQ5.js} +2 -2
  48. package/dist/{CanvaslineWidget-l3ko0QXk.js.map → CanvaslineWidget-PdwVJOQ5.js.map} +1 -1
  49. package/dist/{CanvaslinevalueWidget-BCZoO-Z6.js → CanvaslinevalueWidget-CKrp1f3Z.js} +2 -2
  50. package/dist/{CanvaslinevalueWidget-BCZoO-Z6.js.map → CanvaslinevalueWidget-CKrp1f3Z.js.map} +1 -1
  51. package/dist/{CanvaslinevalueWidget-DRowns-E.cjs → CanvaslinevalueWidget-PVW-_nOk.cjs} +2 -2
  52. package/dist/{CanvaslinevalueWidget-DRowns-E.cjs.map → CanvaslinevalueWidget-PVW-_nOk.cjs.map} +1 -1
  53. package/dist/{CheckbuttonWidget-Cy9VUV7t.cjs → CheckbuttonWidget-BItae9qq.cjs} +2 -2
  54. package/dist/{CheckbuttonWidget-Cy9VUV7t.cjs.map → CheckbuttonWidget-BItae9qq.cjs.map} +1 -1
  55. package/dist/{CheckbuttonWidget-BN7e1d5b.js → CheckbuttonWidget-CTSfH4NN.js} +2 -2
  56. package/dist/{CheckbuttonWidget-BN7e1d5b.js.map → CheckbuttonWidget-CTSfH4NN.js.map} +1 -1
  57. package/dist/{ComboboxWidget-DbQwLEJY.cjs → ComboboxWidget-BFKz1kva.cjs} +2 -2
  58. package/dist/{ComboboxWidget-DbQwLEJY.cjs.map → ComboboxWidget-BFKz1kva.cjs.map} +1 -1
  59. package/dist/{ComboboxWidget-Bb5RGXDB.js → ComboboxWidget-BQzv9zk5.js} +2 -2
  60. package/dist/{ComboboxWidget-Bb5RGXDB.js.map → ComboboxWidget-BQzv9zk5.js.map} +1 -1
  61. package/dist/{CriticalCmdDialog-p0ZMNHpv.cjs → CriticalCmdDialog-CfUGhKPh.cjs} +2 -2
  62. package/dist/{CriticalCmdDialog-p0ZMNHpv.cjs.map → CriticalCmdDialog-CfUGhKPh.cjs.map} +1 -1
  63. package/dist/{CriticalCmdDialog-BUHsxfpO.js → CriticalCmdDialog-D5m3w1fr.js} +2 -2
  64. package/dist/{CriticalCmdDialog-BUHsxfpO.js.map → CriticalCmdDialog-D5m3w1fr.js.map} +1 -1
  65. package/dist/{DateWidget-Cv3Uzbyr.cjs → DateWidget-CuUySNFb.cjs} +2 -2
  66. package/dist/{DateWidget-Cv3Uzbyr.cjs.map → DateWidget-CuUySNFb.cjs.map} +1 -1
  67. package/dist/{DateWidget-Dggqab-F.js → DateWidget-DKXxXT1g.js} +2 -2
  68. package/dist/{DateWidget-Dggqab-F.js.map → DateWidget-DKXxXT1g.js.map} +1 -1
  69. package/dist/{DetailsDialog-BhSAQDSK.js → DetailsDialog-DEjAO6yp.js} +2 -2
  70. package/dist/{DetailsDialog-BhSAQDSK.js.map → DetailsDialog-DEjAO6yp.js.map} +1 -1
  71. package/dist/{DetailsDialog-CSUO0ibv.cjs → DetailsDialog-DlUuDdFa.cjs} +2 -2
  72. package/dist/{DetailsDialog-CSUO0ibv.cjs.map → DetailsDialog-DlUuDdFa.cjs.map} +1 -1
  73. package/dist/{EventListDialog-C7RuZnvD.cjs → EventListDialog-CPYg1a2g.cjs} +2 -2
  74. package/dist/{EventListDialog-C7RuZnvD.cjs.map → EventListDialog-CPYg1a2g.cjs.map} +1 -1
  75. package/dist/{EventListDialog-CSxz4nmr.js → EventListDialog-CabnKWVX.js} +3 -3
  76. package/dist/{EventListDialog-CSxz4nmr.js.map → EventListDialog-CabnKWVX.js.map} +1 -1
  77. package/dist/{FormatvalueWidget-B9_PbzY2.js → FormatvalueWidget-7Yp9jfgX.js} +3 -3
  78. package/dist/{FormatvalueWidget-B9_PbzY2.js.map → FormatvalueWidget-7Yp9jfgX.js.map} +1 -1
  79. package/dist/{FormatvalueWidget-VYVvrtya.cjs → FormatvalueWidget-LNNT9pLh.cjs} +2 -2
  80. package/dist/{FormatvalueWidget-VYVvrtya.cjs.map → FormatvalueWidget-LNNT9pLh.cjs.map} +1 -1
  81. package/dist/{Graph-B2Ir-2Ot.cjs → Graph-ZGEBRGOA.cjs} +2 -2
  82. package/dist/{Graph-B2Ir-2Ot.cjs.map → Graph-ZGEBRGOA.cjs.map} +1 -1
  83. package/dist/{Graph-B29y4d5A.js → Graph-hzxapkW-.js} +2 -2
  84. package/dist/{Graph-B29y4d5A.js.map → Graph-hzxapkW-.js.map} +1 -1
  85. package/dist/{GraphWidget-oBxPa3EB.js → GraphWidget-Dn0ZaxHo.js} +2 -2
  86. package/dist/{GraphWidget-oBxPa3EB.js.map → GraphWidget-Dn0ZaxHo.js.map} +1 -1
  87. package/dist/{GraphWidget-BsiCtRsJ.cjs → GraphWidget-caScsshg.cjs} +2 -2
  88. package/dist/{GraphWidget-BsiCtRsJ.cjs.map → GraphWidget-caScsshg.cjs.map} +1 -1
  89. package/dist/{HorizontalWidget-BWgZL_Oz.js → HorizontalWidget-BFzi3rMl.js} +2 -2
  90. package/dist/{HorizontalWidget-BWgZL_Oz.js.map → HorizontalWidget-BFzi3rMl.js.map} +1 -1
  91. package/dist/{HorizontalWidget-wn07kYWX.cjs → HorizontalWidget-Bt7N0bIN.cjs} +2 -2
  92. package/dist/{HorizontalWidget-wn07kYWX.cjs.map → HorizontalWidget-Bt7N0bIN.cjs.map} +1 -1
  93. package/dist/{HorizontalboxWidget-yMYUnNB8.js → HorizontalboxWidget-DIagyace.js} +5 -5
  94. package/dist/{HorizontalboxWidget-yMYUnNB8.js.map → HorizontalboxWidget-DIagyace.js.map} +1 -1
  95. package/dist/{HorizontalboxWidget-BQLGULQ-.cjs → HorizontalboxWidget-Dv6NWovB.cjs} +2 -2
  96. package/dist/{HorizontalboxWidget-BQLGULQ-.cjs.map → HorizontalboxWidget-Dv6NWovB.cjs.map} +1 -1
  97. package/dist/{HorizontallineWidget-C4zMx7z2.js → HorizontallineWidget-BOZNWM3a.js} +2 -2
  98. package/dist/{HorizontallineWidget-C4zMx7z2.js.map → HorizontallineWidget-BOZNWM3a.js.map} +1 -1
  99. package/dist/{HorizontallineWidget-CfrV_K28.cjs → HorizontallineWidget-CFsWevmI.cjs} +2 -2
  100. package/dist/{HorizontallineWidget-CfrV_K28.cjs.map → HorizontallineWidget-CFsWevmI.cjs.map} +1 -1
  101. package/dist/{IframeWidget-DA4P_mJT.js → IframeWidget-BU24bhc2.js} +2 -2
  102. package/dist/{IframeWidget-DA4P_mJT.js.map → IframeWidget-BU24bhc2.js.map} +1 -1
  103. package/dist/{IframeWidget-DeNDRzqB.cjs → IframeWidget-J6g6EhHh.cjs} +2 -2
  104. package/dist/{IframeWidget-DeNDRzqB.cjs.map → IframeWidget-J6g6EhHh.cjs.map} +1 -1
  105. package/dist/{ImageLoader-mxOVUyj1.cjs → ImageLoader-BVVI9FSl.cjs} +2 -2
  106. package/dist/{ImageLoader-mxOVUyj1.cjs.map → ImageLoader-BVVI9FSl.cjs.map} +1 -1
  107. package/dist/{ImageLoader-rvd9t-mk.js → ImageLoader-xxDrxPAX.js} +2 -2
  108. package/dist/{ImageLoader-rvd9t-mk.js.map → ImageLoader-xxDrxPAX.js.map} +1 -1
  109. package/dist/{ImageviewerWidget-CV76ouHz.cjs → ImageviewerWidget-BSTS4nPw.cjs} +2 -2
  110. package/dist/{ImageviewerWidget-CV76ouHz.cjs.map → ImageviewerWidget-BSTS4nPw.cjs.map} +1 -1
  111. package/dist/{ImageviewerWidget-B1wK0hK4.js → ImageviewerWidget-YMA4CVsl.js} +2 -2
  112. package/dist/{ImageviewerWidget-B1wK0hK4.js.map → ImageviewerWidget-YMA4CVsl.js.map} +1 -1
  113. package/dist/{InterfacesTab-CVvIDSTG.js → InterfacesTab-Cv50gOTl.js} +3 -3
  114. package/dist/{InterfacesTab-CVvIDSTG.js.map → InterfacesTab-Cv50gOTl.js.map} +1 -1
  115. package/dist/{InterfacesTab-DHoYHLxF.cjs → InterfacesTab-DOjyTYVC.cjs} +2 -2
  116. package/dist/{InterfacesTab-DHoYHLxF.cjs.map → InterfacesTab-DOjyTYVC.cjs.map} +1 -1
  117. package/dist/{LabelWidget-CY0saBoK.js → LabelWidget-2402SA18.js} +2 -2
  118. package/dist/{LabelWidget-CY0saBoK.js.map → LabelWidget-2402SA18.js.map} +1 -1
  119. package/dist/{LabelWidget-BobQDS5m.cjs → LabelWidget-t-nltZ16.cjs} +2 -2
  120. package/dist/{LabelWidget-BobQDS5m.cjs.map → LabelWidget-t-nltZ16.cjs.map} +1 -1
  121. package/dist/{LabelledWidget-B3ZOYaGy.js → LabelledWidget-Cbubzj_g.js} +4 -4
  122. package/dist/{LabelledWidget-B3ZOYaGy.js.map → LabelledWidget-Cbubzj_g.js.map} +1 -1
  123. package/dist/{LabelledWidget-Dp4fjHpu.cjs → LabelledWidget-tWrIx1sj.cjs} +2 -2
  124. package/dist/{LabelledWidget-Dp4fjHpu.cjs.map → LabelledWidget-tWrIx1sj.cjs.map} +1 -1
  125. package/dist/{LabelprogressbarWidget-1BF_rNsT.cjs → LabelprogressbarWidget-1k8njgQG.cjs} +2 -2
  126. package/dist/{LabelprogressbarWidget-1BF_rNsT.cjs.map → LabelprogressbarWidget-1k8njgQG.cjs.map} +1 -1
  127. package/dist/{LabelprogressbarWidget-CmXcESTg.js → LabelprogressbarWidget-s8V7w6LJ.js} +4 -4
  128. package/dist/{LabelprogressbarWidget-CmXcESTg.js.map → LabelprogressbarWidget-s8V7w6LJ.js.map} +1 -1
  129. package/dist/{LabelsparklineWidget-DgzZAWfI.cjs → LabelsparklineWidget-4yoeI7gJ.cjs} +2 -2
  130. package/dist/{LabelsparklineWidget-DgzZAWfI.cjs.map → LabelsparklineWidget-4yoeI7gJ.cjs.map} +1 -1
  131. package/dist/{LabelsparklineWidget-D_yrQrn6.js → LabelsparklineWidget-qbM_OXLh.js} +4 -4
  132. package/dist/{LabelsparklineWidget-D_yrQrn6.js.map → LabelsparklineWidget-qbM_OXLh.js.map} +1 -1
  133. package/dist/{LabelvalueWidget-dNaNfsBE.js → LabelvalueWidget-B5Ihc2yP.js} +4 -4
  134. package/dist/{LabelvalueWidget-dNaNfsBE.js.map → LabelvalueWidget-B5Ihc2yP.js.map} +1 -1
  135. package/dist/{LabelvalueWidget-T6FC3w0l.cjs → LabelvalueWidget-CEua41bt.cjs} +2 -2
  136. package/dist/{LabelvalueWidget-T6FC3w0l.cjs.map → LabelvalueWidget-CEua41bt.cjs.map} +1 -1
  137. package/dist/{LabelvaluedescWidget-Cb7UqEa-.cjs → LabelvaluedescWidget-7jth-OmG.cjs} +2 -2
  138. package/dist/{LabelvaluedescWidget-Cb7UqEa-.cjs.map → LabelvaluedescWidget-7jth-OmG.cjs.map} +1 -1
  139. package/dist/{LabelvaluedescWidget-3vNoH6Mc.js → LabelvaluedescWidget-Cl3JHPGR.js} +5 -5
  140. package/dist/{LabelvaluedescWidget-3vNoH6Mc.js.map → LabelvaluedescWidget-Cl3JHPGR.js.map} +1 -1
  141. package/dist/{LabelvaluelimitsbarWidget-Bi43GWx7.cjs → LabelvaluelimitsbarWidget-BDhDe4-V.cjs} +2 -2
  142. package/dist/{LabelvaluelimitsbarWidget-Bi43GWx7.cjs.map → LabelvaluelimitsbarWidget-BDhDe4-V.cjs.map} +1 -1
  143. package/dist/{LabelvaluelimitsbarWidget-7VppYVIN.js → LabelvaluelimitsbarWidget-DnpfRyHl.js} +4 -4
  144. package/dist/{LabelvaluelimitsbarWidget-7VppYVIN.js.map → LabelvaluelimitsbarWidget-DnpfRyHl.js.map} +1 -1
  145. package/dist/{LabelvaluelimitscolumnWidget-BZ6nwifg.js → LabelvaluelimitscolumnWidget-D4L9L5oa.js} +5 -5
  146. package/dist/{LabelvaluelimitscolumnWidget-BZ6nwifg.js.map → LabelvaluelimitscolumnWidget-D4L9L5oa.js.map} +1 -1
  147. package/dist/{LabelvaluelimitscolumnWidget-CtTEiWPR.cjs → LabelvaluelimitscolumnWidget-d1puBx2r.cjs} +2 -2
  148. package/dist/{LabelvaluelimitscolumnWidget-CtTEiWPR.cjs.map → LabelvaluelimitscolumnWidget-d1puBx2r.cjs.map} +1 -1
  149. package/dist/{LabelvaluerangebarWidget-C5w7sRFw.cjs → LabelvaluerangebarWidget-BczxhVFU.cjs} +2 -2
  150. package/dist/{LabelvaluerangebarWidget-C5w7sRFw.cjs.map → LabelvaluerangebarWidget-BczxhVFU.cjs.map} +1 -1
  151. package/dist/{LabelvaluerangebarWidget-IyuXLNsw.js → LabelvaluerangebarWidget-BivnHCbE.js} +4 -4
  152. package/dist/{LabelvaluerangebarWidget-IyuXLNsw.js.map → LabelvaluerangebarWidget-BivnHCbE.js.map} +1 -1
  153. package/dist/{Layout-BqMhhhws.js → Layout-B7KU2jmu.js} +2 -2
  154. package/dist/{Layout-BqMhhhws.js.map → Layout-B7KU2jmu.js.map} +1 -1
  155. package/dist/Layout-DoI_Bpyu.cjs +2 -0
  156. package/dist/{Layout-DUWX7PWw.cjs.map → Layout-DoI_Bpyu.cjs.map} +1 -1
  157. package/dist/{LedWidget-ByRkD33m.cjs → LedWidget-BSZWv-hh.cjs} +2 -2
  158. package/dist/{LedWidget-ByRkD33m.cjs.map → LedWidget-BSZWv-hh.cjs.map} +1 -1
  159. package/dist/{LedWidget-DSxpmIOK.js → LedWidget-DpdthKEd.js} +4 -4
  160. package/dist/{LedWidget-DSxpmIOK.js.map → LedWidget-DpdthKEd.js.map} +1 -1
  161. package/dist/{LimitsbarWidget-BoPTdVV5.js → LimitsbarWidget-CLyj3Kb-.js} +2 -2
  162. package/dist/{LimitsbarWidget-BoPTdVV5.js.map → LimitsbarWidget-CLyj3Kb-.js.map} +1 -1
  163. package/dist/{LimitsbarWidget-DAZA6YDH.cjs → LimitsbarWidget-CaBnnZR-.cjs} +2 -2
  164. package/dist/{LimitsbarWidget-DAZA6YDH.cjs.map → LimitsbarWidget-CaBnnZR-.cjs.map} +1 -1
  165. package/dist/{LimitscolorWidget-Bt3qOvrv.js → LimitscolorWidget-ChvzYoug.js} +2 -2
  166. package/dist/{LimitscolorWidget-Bt3qOvrv.js.map → LimitscolorWidget-ChvzYoug.js.map} +1 -1
  167. package/dist/{LimitscolorWidget-ECUDD3Yg.cjs → LimitscolorWidget-DilOPB_Q.cjs} +2 -2
  168. package/dist/{LimitscolorWidget-ECUDD3Yg.cjs.map → LimitscolorWidget-DilOPB_Q.cjs.map} +1 -1
  169. package/dist/{LimitscolumnWidget-DrsRK8l_.cjs → LimitscolumnWidget-C8m6Sqp8.cjs} +2 -2
  170. package/dist/{LimitscolumnWidget-DrsRK8l_.cjs.map → LimitscolumnWidget-C8m6Sqp8.cjs.map} +1 -1
  171. package/dist/{LimitscolumnWidget-Ce6YnUBz.js → LimitscolumnWidget-IOhsLFZ1.js} +2 -2
  172. package/dist/{LimitscolumnWidget-Ce6YnUBz.js.map → LimitscolumnWidget-IOhsLFZ1.js.map} +1 -1
  173. package/dist/{LinegraphWidget-BK03y7ev.cjs → LinegraphWidget-DOPBUi0Y.cjs} +2 -2
  174. package/dist/{LinegraphWidget-BK03y7ev.cjs.map → LinegraphWidget-DOPBUi0Y.cjs.map} +1 -1
  175. package/dist/{LinegraphWidget-XAbg0jj2.js → LinegraphWidget-DZdqMqjw.js} +4 -4
  176. package/dist/{LinegraphWidget-XAbg0jj2.js.map → LinegraphWidget-DZdqMqjw.js.map} +1 -1
  177. package/dist/{MatrixbycolumnsWidget-Cl1-0jWU.cjs → MatrixbycolumnsWidget-BrynJcbR.cjs} +2 -2
  178. package/dist/{MatrixbycolumnsWidget-Cl1-0jWU.cjs.map → MatrixbycolumnsWidget-BrynJcbR.cjs.map} +1 -1
  179. package/dist/{MatrixbycolumnsWidget-5MgJFZtz.js → MatrixbycolumnsWidget-BzGYMhJ2.js} +3 -3
  180. package/dist/{MatrixbycolumnsWidget-5MgJFZtz.js.map → MatrixbycolumnsWidget-BzGYMhJ2.js.map} +1 -1
  181. package/dist/{MicroservicesTab-DlnZ9h0y.js → MicroservicesTab-DrqUNTBZ.js} +3 -3
  182. package/dist/{MicroservicesTab-DlnZ9h0y.js.map → MicroservicesTab-DrqUNTBZ.js.map} +1 -1
  183. package/dist/{MicroservicesTab-DLAy8cBq.cjs → MicroservicesTab-pL6PYFy5.cjs} +2 -2
  184. package/dist/{MicroservicesTab-DLAy8cBq.cjs.map → MicroservicesTab-pL6PYFy5.cjs.map} +1 -1
  185. package/dist/{Openc3Screen-1vPogvfj.js → Openc3Screen-CPknMmN8.js} +3 -3
  186. package/dist/{Openc3Screen-1vPogvfj.js.map → Openc3Screen-CPknMmN8.js.map} +1 -1
  187. package/dist/{Openc3Screen-DERmiz3g.cjs → Openc3Screen-CQkUFNEH.cjs} +2 -2
  188. package/dist/{Openc3Screen-DERmiz3g.cjs.map → Openc3Screen-CQkUFNEH.cjs.map} +1 -1
  189. package/dist/{OutputDialog-aZe2HT6j.js → OutputDialog-B6i5yvkr.js} +2 -2
  190. package/dist/{OutputDialog-aZe2HT6j.js.map → OutputDialog-B6i5yvkr.js.map} +1 -1
  191. package/dist/{OutputDialog-BUc85qgI.cjs → OutputDialog-BwBPgVHK.cjs} +2 -2
  192. package/dist/{OutputDialog-BUc85qgI.cjs.map → OutputDialog-BwBPgVHK.cjs.map} +1 -1
  193. package/dist/{PackagesTab-D5hNxd_X.js → PackagesTab-CjcBp95A.js} +3 -3
  194. package/dist/{PackagesTab-D5hNxd_X.js.map → PackagesTab-CjcBp95A.js.map} +1 -1
  195. package/dist/{PackagesTab-D9h8f-Rc.cjs → PackagesTab-DYoGxaWx.cjs} +2 -2
  196. package/dist/{PackagesTab-D9h8f-Rc.cjs.map → PackagesTab-DYoGxaWx.cjs.map} +1 -1
  197. package/dist/{PluginsTab-BP8DYqd-.js → PluginsTab-Diu6vzUR.js} +3 -3
  198. package/dist/{PluginsTab-BP8DYqd-.js.map → PluginsTab-Diu6vzUR.js.map} +1 -1
  199. package/dist/{PluginsTab-swaGuthJ.cjs → PluginsTab-UcluFu7J.cjs} +2 -2
  200. package/dist/{PluginsTab-swaGuthJ.cjs.map → PluginsTab-UcluFu7J.cjs.map} +1 -1
  201. package/dist/{ProgressbarWidget-CDwDOFIy.js → ProgressbarWidget-Bre-0zcS.js} +2 -2
  202. package/dist/{ProgressbarWidget-CDwDOFIy.js.map → ProgressbarWidget-Bre-0zcS.js.map} +1 -1
  203. package/dist/{ProgressbarWidget-giMKlGsU.cjs → ProgressbarWidget-BwnZ2_h4.cjs} +2 -2
  204. package/dist/{ProgressbarWidget-giMKlGsU.cjs.map → ProgressbarWidget-BwnZ2_h4.cjs.map} +1 -1
  205. package/dist/{RadiobuttonWidget-CDPV19UM.cjs → RadiobuttonWidget-BzO43-f0.cjs} +2 -2
  206. package/dist/{RadiobuttonWidget-CDPV19UM.cjs.map → RadiobuttonWidget-BzO43-f0.cjs.map} +1 -1
  207. package/dist/{RadiobuttonWidget-cQ8V8LaD.js → RadiobuttonWidget-CLbfhrkc.js} +2 -2
  208. package/dist/{RadiobuttonWidget-cQ8V8LaD.js.map → RadiobuttonWidget-CLbfhrkc.js.map} +1 -1
  209. package/dist/{RadiogroupWidget-DPYowBpl.cjs → RadiogroupWidget-CCHJJuvX.cjs} +2 -2
  210. package/dist/{RadiogroupWidget-DPYowBpl.cjs.map → RadiogroupWidget-CCHJJuvX.cjs.map} +1 -1
  211. package/dist/{RadiogroupWidget-BvRnuGA2.js → RadiogroupWidget-DvRc70_Q.js} +2 -2
  212. package/dist/{RadiogroupWidget-BvRnuGA2.js.map → RadiogroupWidget-DvRc70_Q.js.map} +1 -1
  213. package/dist/{RangebarWidget-aHmgV0qs.js → RangebarWidget-BvzVWcfZ.js} +2 -2
  214. package/dist/{RangebarWidget-aHmgV0qs.js.map → RangebarWidget-BvzVWcfZ.js.map} +1 -1
  215. package/dist/{RangebarWidget-DtjrqC3F.cjs → RangebarWidget-DbmeAM6e.cjs} +2 -2
  216. package/dist/{RangebarWidget-DtjrqC3F.cjs.map → RangebarWidget-DbmeAM6e.cjs.map} +1 -1
  217. package/dist/{RedisTab-D1-HQK-m.js → RedisTab-BWYQfcqX.js} +2 -2
  218. package/dist/{RedisTab-D1-HQK-m.js.map → RedisTab-BWYQfcqX.js.map} +1 -1
  219. package/dist/{RedisTab-DcFz87gW.cjs → RedisTab-Dq_xGlhh.cjs} +2 -2
  220. package/dist/{RedisTab-DcFz87gW.cjs.map → RedisTab-Dq_xGlhh.cjs.map} +1 -1
  221. package/dist/{RollupWidget-Dw2GIsBR.cjs → RollupWidget-BnhD1fw1.cjs} +2 -2
  222. package/dist/{RollupWidget-Dw2GIsBR.cjs.map → RollupWidget-BnhD1fw1.cjs.map} +1 -1
  223. package/dist/{RollupWidget-D1jUPrUQ.js → RollupWidget-KT243Ed8.js} +2 -2
  224. package/dist/{RollupWidget-D1jUPrUQ.js.map → RollupWidget-KT243Ed8.js.map} +1 -1
  225. package/dist/{RoutersTab-CF0ADapt.js → RoutersTab-CLwJ6J7T.js} +3 -3
  226. package/dist/{RoutersTab-CF0ADapt.js.map → RoutersTab-CLwJ6J7T.js.map} +1 -1
  227. package/dist/{RoutersTab-DJDjAIQf.cjs → RoutersTab-DS95AQxI.cjs} +2 -2
  228. package/dist/{RoutersTab-DJDjAIQf.cjs.map → RoutersTab-DS95AQxI.cjs.map} +1 -1
  229. package/dist/{ScriptChooser-IegS44oT.js → ScriptChooser-CA2eMEE2.js} +2 -2
  230. package/dist/{ScriptChooser-IegS44oT.js.map → ScriptChooser-CA2eMEE2.js.map} +1 -1
  231. package/dist/{ScriptChooser-CPzgZtTN.cjs → ScriptChooser-D2-VTc4T.cjs} +2 -2
  232. package/dist/{ScriptChooser-CPzgZtTN.cjs.map → ScriptChooser-D2-VTc4T.cjs.map} +1 -1
  233. package/dist/{ScrollwindowWidget-Cn0o3b4E.js → ScrollwindowWidget-DcpdXyrP.js} +3 -3
  234. package/dist/{ScrollwindowWidget-Cn0o3b4E.js.map → ScrollwindowWidget-DcpdXyrP.js.map} +1 -1
  235. package/dist/{ScrollwindowWidget-C79nSa0g.cjs → ScrollwindowWidget-vnhzeIMy.cjs} +2 -2
  236. package/dist/{ScrollwindowWidget-C79nSa0g.cjs.map → ScrollwindowWidget-vnhzeIMy.cjs.map} +1 -1
  237. package/dist/{SecretsTab-BAIHxgdM.js → SecretsTab-CQNTFJAM.js} +2 -2
  238. package/dist/{SecretsTab-BAIHxgdM.js.map → SecretsTab-CQNTFJAM.js.map} +1 -1
  239. package/dist/{SecretsTab-BVpqbRn5.cjs → SecretsTab-HP8E21SW.cjs} +2 -2
  240. package/dist/{SecretsTab-BVpqbRn5.cjs.map → SecretsTab-HP8E21SW.cjs.map} +1 -1
  241. package/dist/{SettingsTab-C2k0BDcX.js → SettingsTab-BAOaLzuc.js} +3 -3
  242. package/dist/{SettingsTab-C2k0BDcX.js.map → SettingsTab-BAOaLzuc.js.map} +1 -1
  243. package/dist/{SettingsTab-J1frSo-9.cjs → SettingsTab-CMQxLfkn.cjs} +2 -2
  244. package/dist/{SettingsTab-J1frSo-9.cjs.map → SettingsTab-CMQxLfkn.cjs.map} +1 -1
  245. package/dist/{SignalWidget-BQBzqdU-.js → SignalWidget-CoTi0Uzy.js} +2 -2
  246. package/dist/{SignalWidget-BQBzqdU-.js.map → SignalWidget-CoTi0Uzy.js.map} +1 -1
  247. package/dist/{SignalWidget-sAMVlO9e.cjs → SignalWidget-DqxDT42W.cjs} +2 -2
  248. package/dist/{SignalWidget-sAMVlO9e.cjs.map → SignalWidget-DqxDT42W.cjs.map} +1 -1
  249. package/dist/{SimpleTextDialog-sOMrzIs7.cjs → SimpleTextDialog-BdV90ARp.cjs} +2 -2
  250. package/dist/{SimpleTextDialog-sOMrzIs7.cjs.map → SimpleTextDialog-BdV90ARp.cjs.map} +1 -1
  251. package/dist/{SimpleTextDialog-3EEsXpGl.js → SimpleTextDialog-BqVdFj1n.js} +2 -2
  252. package/dist/{SimpleTextDialog-3EEsXpGl.js.map → SimpleTextDialog-BqVdFj1n.js.map} +1 -1
  253. package/dist/SpacerWidget--x9MPrff.cjs +2 -0
  254. package/dist/{SpacerWidget-C5x4sFAQ.cjs.map → SpacerWidget--x9MPrff.cjs.map} +1 -1
  255. package/dist/SpacerWidget-CTekSgNO.js +19 -0
  256. package/dist/{SpacerWidget-C0RmQY3t.js.map → SpacerWidget-CTekSgNO.js.map} +1 -1
  257. package/dist/{SparklineWidget-CfA39olv.cjs → SparklineWidget-BHdwgOeC.cjs} +2 -2
  258. package/dist/{SparklineWidget-CfA39olv.cjs.map → SparklineWidget-BHdwgOeC.cjs.map} +1 -1
  259. package/dist/{SparklineWidget-BTH9rvcX.js → SparklineWidget-BxwPKrIr.js} +4 -4
  260. package/dist/{SparklineWidget-BTH9rvcX.js.map → SparklineWidget-BxwPKrIr.js.map} +1 -1
  261. package/dist/{TabbookWidget-C-aDdEoD.js → TabbookWidget-B6Nx3Kmt.js} +2 -2
  262. package/dist/{TabbookWidget-C-aDdEoD.js.map → TabbookWidget-B6Nx3Kmt.js.map} +1 -1
  263. package/dist/{TabbookWidget-BrPTbXrU.cjs → TabbookWidget-DuszE8ho.cjs} +2 -2
  264. package/dist/{TabbookWidget-BrPTbXrU.cjs.map → TabbookWidget-DuszE8ho.cjs.map} +1 -1
  265. package/dist/{TargetsTab-BV-eELWM.cjs → TargetsTab-B8appkxl.cjs} +2 -2
  266. package/dist/{TargetsTab-BV-eELWM.cjs.map → TargetsTab-B8appkxl.cjs.map} +1 -1
  267. package/dist/{TargetsTab-DAmlfJ9Z.js → TargetsTab-u-6nY7FX.js} +3 -3
  268. package/dist/{TargetsTab-DAmlfJ9Z.js.map → TargetsTab-u-6nY7FX.js.map} +1 -1
  269. package/dist/{TextboxWidget-Lw5glGxY.cjs → TextboxWidget-CBdukKN5.cjs} +2 -2
  270. package/dist/{TextboxWidget-Lw5glGxY.cjs.map → TextboxWidget-CBdukKN5.cjs.map} +1 -1
  271. package/dist/{TextboxWidget-Dd2ccpUQ.js → TextboxWidget-DJgAfLFU.js} +4 -4
  272. package/dist/{TextboxWidget-Dd2ccpUQ.js.map → TextboxWidget-DJgAfLFU.js.map} +1 -1
  273. package/dist/{TextfieldWidget-DY3aFTnP.js → TextfieldWidget-Bc2xGs8v.js} +2 -2
  274. package/dist/{TextfieldWidget-DY3aFTnP.js.map → TextfieldWidget-Bc2xGs8v.js.map} +1 -1
  275. package/dist/{TextfieldWidget-CTsiRDIJ.cjs → TextfieldWidget-u6w1_wqO.cjs} +2 -2
  276. package/dist/{TextfieldWidget-CTsiRDIJ.cjs.map → TextfieldWidget-u6w1_wqO.cjs.map} +1 -1
  277. package/dist/{TimeWidget-CB1jqQSZ.cjs → TimeWidget-Bmzei1k_.cjs} +2 -2
  278. package/dist/{TimeWidget-CB1jqQSZ.cjs.map → TimeWidget-Bmzei1k_.cjs.map} +1 -1
  279. package/dist/{TimeWidget-C_site21.js → TimeWidget-DO6ZuMLO.js} +2 -2
  280. package/dist/{TimeWidget-C_site21.js.map → TimeWidget-DO6ZuMLO.js.map} +1 -1
  281. package/dist/{TitleWidget-E91xUafI.cjs → TitleWidget-B8f0Sa7B.cjs} +2 -2
  282. package/dist/{TitleWidget-E91xUafI.cjs.map → TitleWidget-B8f0Sa7B.cjs.map} +1 -1
  283. package/dist/{TitleWidget-Bx81VfQD.js → TitleWidget-CkZhMme1.js} +2 -2
  284. package/dist/{TitleWidget-Bx81VfQD.js.map → TitleWidget-CkZhMme1.js.map} +1 -1
  285. package/dist/{ToolsTab-CW_TQ53O.js → ToolsTab-BI6lImcw.js} +3 -3
  286. package/dist/{ToolsTab-CW_TQ53O.js.map → ToolsTab-BI6lImcw.js.map} +1 -1
  287. package/dist/{ToolsTab-Bu3XUxr9.cjs → ToolsTab-WSIi50nR.cjs} +2 -2
  288. package/dist/{ToolsTab-Bu3XUxr9.cjs.map → ToolsTab-WSIi50nR.cjs.map} +1 -1
  289. package/dist/{TopBar-CkCLoFp7.cjs → TopBar-BwdXu4vD.cjs} +2 -2
  290. package/dist/{TopBar-CkCLoFp7.cjs.map → TopBar-BwdXu4vD.cjs.map} +1 -1
  291. package/dist/{TopBar-C9ro4_7Q.js → TopBar-h_jaZ23r.js} +2 -2
  292. package/dist/{TopBar-C9ro4_7Q.js.map → TopBar-h_jaZ23r.js.map} +1 -1
  293. package/dist/{UpgradeToEnterpriseDialog-EaQZfck4.cjs → UpgradeToEnterpriseDialog-B2LIPuO6.cjs} +2 -2
  294. package/dist/{UpgradeToEnterpriseDialog-EaQZfck4.cjs.map → UpgradeToEnterpriseDialog-B2LIPuO6.cjs.map} +1 -1
  295. package/dist/{UpgradeToEnterpriseDialog-BH0WHey-.js → UpgradeToEnterpriseDialog-DE2DoA0l.js} +2 -2
  296. package/dist/{UpgradeToEnterpriseDialog-BH0WHey-.js.map → UpgradeToEnterpriseDialog-DE2DoA0l.js.map} +1 -1
  297. package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs} +4 -4
  298. package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs.map} +1 -1
  299. package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js} +7 -7
  300. package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js.map} +1 -1
  301. package/dist/{VWidget-CRqTUgEv.cjs → VWidget-DKQBzANO.cjs} +2 -2
  302. package/dist/{VWidget-CRqTUgEv.cjs.map → VWidget-DKQBzANO.cjs.map} +1 -1
  303. package/dist/{VWidget-DuUens7G.js → VWidget-DzhcRBQe.js} +2 -2
  304. package/dist/{VWidget-DuUens7G.js.map → VWidget-DzhcRBQe.js.map} +1 -1
  305. package/dist/{ValueWidget-CN-B9LDi.cjs → ValueWidget-BpS7e3Ks.cjs} +2 -2
  306. package/dist/{ValueWidget-CN-B9LDi.cjs.map → ValueWidget-BpS7e3Ks.cjs.map} +1 -1
  307. package/dist/{ValueWidget-cbjxVV3B.js → ValueWidget-tieHz2H1.js} +4 -4
  308. package/dist/{ValueWidget-cbjxVV3B.js.map → ValueWidget-tieHz2H1.js.map} +1 -1
  309. package/dist/{ValuelimitsbarWidget-BLHVD0qM.cjs → ValuelimitsbarWidget-COsc2aMd.cjs} +2 -2
  310. package/dist/{ValuelimitsbarWidget-BLHVD0qM.cjs.map → ValuelimitsbarWidget-COsc2aMd.cjs.map} +1 -1
  311. package/dist/{ValuelimitsbarWidget-cQb2o_xH.js → ValuelimitsbarWidget-oFqxZu0t.js} +4 -4
  312. package/dist/{ValuelimitsbarWidget-cQb2o_xH.js.map → ValuelimitsbarWidget-oFqxZu0t.js.map} +1 -1
  313. package/dist/{ValuelimitscolumnWidget-DqGxHe2k.cjs → ValuelimitscolumnWidget-DPmkVEuC.cjs} +2 -2
  314. package/dist/{ValuelimitscolumnWidget-DqGxHe2k.cjs.map → ValuelimitscolumnWidget-DPmkVEuC.cjs.map} +1 -1
  315. package/dist/{ValuelimitscolumnWidget-BBTuSCK9.js → ValuelimitscolumnWidget-DYBv8POg.js} +4 -4
  316. package/dist/{ValuelimitscolumnWidget-BBTuSCK9.js.map → ValuelimitscolumnWidget-DYBv8POg.js.map} +1 -1
  317. package/dist/{ValuerangebarWidget-xMsUfp1H.cjs → ValuerangebarWidget-D5zHCKXQ.cjs} +2 -2
  318. package/dist/{ValuerangebarWidget-xMsUfp1H.cjs.map → ValuerangebarWidget-D5zHCKXQ.cjs.map} +1 -1
  319. package/dist/{ValuerangebarWidget-Ct7iGtu0.js → ValuerangebarWidget-m3gFyG4v.js} +4 -4
  320. package/dist/{ValuerangebarWidget-Ct7iGtu0.js.map → ValuerangebarWidget-m3gFyG4v.js.map} +1 -1
  321. package/dist/{VerticalWidget-DJn02myf.js → VerticalWidget-CcdRZmQK.js} +2 -2
  322. package/dist/{VerticalWidget-DJn02myf.js.map → VerticalWidget-CcdRZmQK.js.map} +1 -1
  323. package/dist/{VerticalWidget-DiW_FZuh.cjs → VerticalWidget-DHWIKJUB.cjs} +2 -2
  324. package/dist/{VerticalWidget-DiW_FZuh.cjs.map → VerticalWidget-DHWIKJUB.cjs.map} +1 -1
  325. package/dist/{VerticalboxWidget-miKFocA3.cjs → VerticalboxWidget-BHNt0RrX.cjs} +2 -2
  326. package/dist/{VerticalboxWidget-miKFocA3.cjs.map → VerticalboxWidget-BHNt0RrX.cjs.map} +1 -1
  327. package/dist/{VerticalboxWidget-DHQMxtF3.js → VerticalboxWidget-DfsCYhrX.js} +5 -5
  328. package/dist/{VerticalboxWidget-DHQMxtF3.js.map → VerticalboxWidget-DfsCYhrX.js.map} +1 -1
  329. package/dist/{Widget-CP2CtyUr.js → Widget-B5HKasz2.js} +2 -2
  330. package/dist/{Widget-CP2CtyUr.js.map → Widget-B5HKasz2.js.map} +1 -1
  331. package/dist/{Widget-BMqF6Utz.cjs → Widget-CMzBJCGp.cjs} +2 -2
  332. package/dist/{Widget-BMqF6Utz.cjs.map → Widget-CMzBJCGp.cjs.map} +1 -1
  333. package/dist/components.cjs +1 -1
  334. package/dist/components.js +11 -11
  335. package/dist/tools/admin.cjs +6 -11
  336. package/dist/tools/admin.cjs.map +1 -1
  337. package/dist/tools/admin.js +1041 -1178
  338. package/dist/tools/admin.js.map +1 -1
  339. package/dist/tools/base.cjs +1 -1
  340. package/dist/tools/base.js +2 -2
  341. package/dist/tools/calendar.cjs +1 -1
  342. package/dist/tools/calendar.js +1 -1
  343. package/dist/tools/scriptrunner.cjs +6 -6
  344. package/dist/tools/scriptrunner.cjs.map +1 -1
  345. package/dist/tools/scriptrunner.js +852 -831
  346. package/dist/tools/scriptrunner.js.map +1 -1
  347. package/dist/vue-common.css +1 -1
  348. package/dist/widgets.cjs +1 -1
  349. package/dist/widgets.js +63 -63
  350. package/package.json +2 -2
  351. package/dist/Layout-DUWX7PWw.cjs +0 -2
  352. package/dist/SpacerWidget-C0RmQY3t.js +0 -19
  353. package/dist/SpacerWidget-C5x4sFAQ.cjs +0 -2
@@ -1,21 +1,21 @@
1
- import { A as Ie, O as xe } from "./OutputDialog-aZe2HT6j.js";
2
- import { A as De, T as Ae } from "./TopBar-C9ro4_7Q.js";
3
- import { E as Re, a as Le, F as Se, O as Ee, S as Ue } from "./Openc3Screen-1vPogvfj.js";
4
- import { p as k, d as O } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js";
5
- import { D as Oe, e as Be } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js";
1
+ import { A as Ie, O as xe } from "./OutputDialog-B6i5yvkr.js";
2
+ import { A as De, T as Ae } from "./TopBar-h_jaZ23r.js";
3
+ import { E as Re, a as Le, F as Se, O as Ee, S as Ue } from "./Openc3Screen-CPknMmN8.js";
4
+ import { p as k, d as O } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js";
5
+ import { D as Oe, e as Be } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Vn0OLZcG.js";
6
6
  import { resolveComponent as o, createBlock as b, openBlock as _, withKeys as E, withCtx as n, createVNode as l, createElementVNode as f, withModifiers as D, withDirectives as U, toDisplayString as w, vShow as P, createTextVNode as g, normalizeStyle as B, createCommentVNode as I, createElementBlock as V, createSlots as K, normalizeClass as W, Fragment as M } from "vue";
7
7
  import { _ as C } from "./CustomIcon-h5X7369N.js";
8
- import { C as We } from "./CriticalCmdDialog-BUHsxfpO.js";
9
- import { D as ze } from "./DetailsDialog-BhSAQDSK.js";
10
- import { E as Ge, S as He } from "./ScriptChooser-IegS44oT.js";
11
- import { G as qe, a as Je, b as Ze } from "./Graph-B29y4d5A.js";
8
+ import { C as We } from "./CriticalCmdDialog-D5m3w1fr.js";
9
+ import { D as ze } from "./DetailsDialog-DEjAO6yp.js";
10
+ import { E as Ge, S as He } from "./ScriptChooser-CA2eMEE2.js";
11
+ import { G as qe, a as Je, b as Ze } from "./Graph-hzxapkW-.js";
12
12
  import { UnknownToAstroStatus as R, AstroStatusColors as L } from "./icons.js";
13
13
  import { T as z } from "./timeFilters-BKnCM4rv.js";
14
14
  import { f as F } from "./format-CVeawcIv.js";
15
15
  import { getMountedApps as G } from "single-spa";
16
- import { S as Xe } from "./SimpleTextDialog-3EEsXpGl.js";
16
+ import { S as Xe } from "./SimpleTextDialog-BqVdFj1n.js";
17
17
  import { T as $e } from "./TextBoxDialog-C60jmnyN.js";
18
- import { U as tt } from "./UpgradeToEnterpriseDialog-BH0WHey-.js";
18
+ import { U as tt } from "./UpgradeToEnterpriseDialog-DE2DoA0l.js";
19
19
  const Ne = {
20
20
  data: {
21
21
  configKey: "",
@@ -1,13 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../index-DcL65Mqb.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs"),S=require("../TopBar-CkCLoFp7.cjs");require("single-spa");const ce={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const e=/\w+.gem/;return this.response.tree.filter(t=>e.exec(t.path)).map(t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`}))},getResponse:function(){this.disableSearch=!0,ae.axios.get(this.url).then(e=>{this.response=e.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(e){const t=document.createElement("a");t.href=e.url,t.setAttribute("download",e.name),t.click(),t.remove()}}},de={class:"pa-3"},fe={class:"px-2"},he={key:0,class:"mt-4"},ue={key:1,class:"mt-4"};function ge(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),h=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-list-item"),x=n.resolveComponent("v-divider"),b=n.resolveComponent("v-card-text"),m=n.resolveComponent("v-card"),w=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(w,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=C=>o.show=C),width:"600"},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[1]||(t[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("div",de,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",fe,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch,onClick:o.searchGithub},{default:n.withCtx(()=>[t[4]||(t[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Community Gems ")])),_:1}),o.listData.length<1?(n.openBlock(),n.createElementBlock("div",he,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",ue,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.listData,(C,v)=>(n.openBlock(),n.createElementBlock("div",{key:v},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[l.activeDownload?(n.openBlock(),n.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(n.openBlock(),n.createBlock(u,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:l.activeDownload,onClick:V=>o.downloadGem(C)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),v<o.listData.length-1?(n.openBlock(),n.createBlock(x,{key:v})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const pe=I._export_sfc(ce,[["render",ge]]),me={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},mounted(){const e=this.buildPluginMode();this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),t.click()},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,i=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,r=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,l=E.aceExports.require("ace/mode/folding/ruby").FoldMode,o=function(){this.HighlightRules=t,this.$outdent=new i,this.$behaviour=new r,this.foldingRules=new l,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(o,s),(function(){this.$id="ace/mode/openc3"}).call(o.prototype),o},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){S.AceEditorUtils.toggleVimMode(this.editor)}}},_e=["textContent"],be={class:"pa-3"},we={key:0},Ce=["textContent"];function xe(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-btn"),c=n.resolveComponent("v-toolbar"),d=n.resolveComponent("v-row"),u=n.resolveComponent("v-col"),h=n.resolveComponent("v-file-input"),g=n.resolveComponent("v-list-item"),p=n.resolveComponent("v-list"),_=n.resolveComponent("v-menu"),x=n.resolveComponent("v-card-text"),b=n.resolveComponent("v-card"),m=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(m,{modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=w=>o.show=w),persistent:!i.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[3]||(t[3]=n.withModifiers((...w)=>o.submit&&o.submit(...w),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,_e),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:o.download},null,8,["onClick"])]),_:1}),n.createVNode(x,null,{default:n.withCtx(()=>[n.createElementVNode("div",be,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",we,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Upload a file. ")])),_:1}),n.createVNode(d,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(u,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(a,{block:"",color:"success",disabled:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn",onClick:e.loadFile},{loader:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[t[7]||(t[7]=n.createTextVNode(" Load "))]),_:1},8,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.file,"onUpdate:modelValue":t[0]||(t[0]=w=>e.file=w),accept:".json",label:"Click to select .json file.",disabled:i.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...w)=>o.showContextMenu&&o.showContextMenu(...w),["prevent"]))},null,544),n.createVNode(_,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=w=>l.contextMenu=w),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(d,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(o.error)},null,8,Ce),[[n.vShow,o.error]])]),_:1}),n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(a,{variant:"outlined",class:"mx-2","data-test":"editCancelBtn",onClick:n.withModifiers(o.close,["prevent"])},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!o.error||i.readonly},{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","persistent"])}const ve=I._export_sfc(me,[["render",xe],["__scopeId","data-v-e84cb3ed"]]),ye={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){for(const e of this.targets)E.li.get(`/openc3-api/targets/${e.name}/modified_files`).then(t=>{t.data.length!==0&&this.modifiedTargets.push({name:e.name,files:t.data})})}};function Ve(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),h=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),x=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=m=>o.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[4]||(t[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(i.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.modifiedTargets,(m,w)=>(n.openBlock(),n.createBlock(u,{key:w,lines:"two"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.files,(C,v)=>(n.openBlock(),n.createBlock(d,{key:v},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(h,{modelValue:l.deleteModified,"onUpdate:modelValue":t[0]||(t[0]=m=>l.deleteModified=m),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:t[1]||(t[1]=()=>{o.show=!1,e.$emit("cancel")})},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:t[2]||(t[2]=()=>{o.show=!1,e.$emit("submit",l.deleteModified)})},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ee=I._export_sfc(ye,[["render",Ve]]),te=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-swaGuthJ.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-BV-eELWM.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-DHoYHLxF.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-DJDjAIQf.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-DLAy8cBq.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-D9h8f-Rc.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-Bu3XUxr9.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-DcFz87gW.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-BVpqbRn5.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-J1frSo-9.cjs"))}],ke={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return te.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Ne(e,t,i,r,l,o){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:l.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:l.curTab,"onUpdate:modelValue":t[0]||(t[0]=h=>l.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,(h,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:h.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const Se=I._export_sfc(ke,[["render",Ne]]),f=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};f.Diff=function(e,t){this[0]=e,this[1]=t};f.Diff.prototype.length=2;f.Diff.prototype.toString=function(){return this[0]+","+this[1]};f.prototype.diff_main=function(e,t,i,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let l=r;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new f.Diff(0,e)]:[];typeof i>"u"&&(i=!0);let o=i,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);let c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);let d=this.diff_compute_(e,t,o,l);return a&&d.unshift(new f.Diff(0,a)),c&&d.push(new f.Diff(0,c)),this.diff_cleanupMerge(d),d};f.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new f.Diff(1,t)];if(!t)return[new f.Diff(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);return a!=-1?(l=[new f.Diff(1,o.substring(0,a)),new f.Diff(0,s),new f.Diff(1,o.substring(a+s.length))],e.length>t.length&&(l[0][0]=l[2][0]=-1),l):s.length==1?[new f.Diff(-1,e),new f.Diff(1,t)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};f.prototype.diff_lineMode_=function(e,t,i){let r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;let l=r.lineArray,o=this.diff_main(e,t,!1,i);this.diff_charsToLines_(o,l),this.diff_cleanupSemantic(o),o.push(new f.Diff(0,""));let s=0,a=0,c=0,d="",u="";for(;s<o.length;){switch(o[s][0]){case 1:c++,u+=o[s][1];break;case-1:a++,d+=o[s][1];break;case 0:if(a>=1&&c>=1){o.splice(s-a-c,a+c),s=s-a-c;let h=this.diff_main(d,u,!1,i);for(let g=h.length-1;g>=0;g--)o.splice(s,0,h[g]);s=s+h.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};f.prototype.diff_bisect_=function(e,t,i){let r=e.length,l=t.length,o=Math.ceil((r+l)/2),s=o,a=2*o,c=new Array(a),d=new Array(a);for(let b=0;b<a;b++)c[b]=-1,d[b]=-1;c[s+1]=0,d[s+1]=0;let u=r-l,h=u%2!=0,g=0,p=0,_=0,x=0;for(let b=0;b<o&&!(new Date().getTime()>i);b++){for(let m=-b+g;m<=b-p;m+=2){let w=s+m,C;m==-b||m!=b&&c[w-1]<c[w+1]?C=c[w+1]:C=c[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(C)==t.charAt(v);)C++,v++;if(c[w]=C,C>r)p+=2;else if(v>l)g+=2;else if(h){let V=s+u-m;if(V>=0&&V<a&&d[V]!=-1){let N=r-d[V];if(C>=N)return this.diff_bisectSplit_(e,t,C,v,i)}}}for(let m=-b+_;m<=b-x;m+=2){let w=s+m,C;m==-b||m!=b&&d[w-1]<d[w+1]?C=d[w+1]:C=d[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(r-C-1)==t.charAt(l-v-1);)C++,v++;if(d[w]=C,C>r)x+=2;else if(v>l)_+=2;else if(!h){let V=s+u-m;if(V>=0&&V<a&&c[V]!=-1){let N=c[V],T=s+N-V;if(C=r-C,N>=C)return this.diff_bisectSplit_(e,t,N,T,i)}}}}return[new f.Diff(-1,e),new f.Diff(1,t)]};f.prototype.diff_bisectSplit_=function(e,t,i,r,l){let o=e.substring(0,i),s=t.substring(0,r),a=e.substring(i),c=t.substring(r),d=this.diff_main(o,s,!1,l),u=this.diff_main(a,c,!1,l);return d.concat(u)};f.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,h=-1,g=i.length;for(;h<c.length-1;){h=c.indexOf(`
2
- `,u),h==-1&&(h=c.length-1);let p=c.substring(u,h+1);(r.hasOwnProperty?r.hasOwnProperty(p):r[p]!==void 0)?d+=String.fromCharCode(r[p]):(g==o&&(p=c.substring(u),h=c.length),d+=String.fromCharCode(g),r[p]=g,i[g++]=p),u=h+1}return d}let o=4e4,s=l(e);o=65535;let a=l(t);return{chars1:s,chars2:a,lineArray:i}};f.prototype.diff_charsToLines_=function(e,t){for(let i=0;i<e.length;i++){let r=e[i][1],l=[];for(let o=0;o<r.length;o++)l[o]=t[r.charCodeAt(o)];e[i][1]=l.join("")}};f.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(o,l)==t.substring(o,l)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};f.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(e.length-l,e.length-o)==t.substring(t.length-l,t.length-o)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};f.prototype.diff_commonOverlap_=function(e,t){let i=e.length,r=t.length;if(i==0||r==0)return 0;i>r?e=e.substring(i-r):i<r&&(t=t.substring(0,i));let l=Math.min(i,r);if(e==t)return l;let o=0,s=1;for(;;){let a=e.substring(l-s),c=t.indexOf(a);if(c==-1)return o;s+=c,(c==0||e.substring(l-s)==t.substring(0,s))&&(o=s,s++)}};f.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;let i=e.length>t.length?e:t,r=e.length>t.length?t:e;if(i.length<4||r.length*2<i.length)return null;let l=this;function o(_,x,b){let m=_.substring(b,b+Math.floor(_.length/4)),w=-1,C="",v,V,N,T;for(;(w=x.indexOf(m,w+1))!=-1;){let L=l.diff_commonPrefix(_.substring(b),x.substring(w)),D=l.diff_commonSuffix(_.substring(0,b),x.substring(0,w));C.length<D+L&&(C=x.substring(w-D,w)+x.substring(w,w+L),v=_.substring(0,b-D),V=_.substring(b+L),N=x.substring(0,w-D),T=x.substring(w+L))}return C.length*2>=_.length?[v,V,N,T,C]:null}let s=o(i,r,Math.ceil(i.length/4)),a=o(i,r,Math.ceil(i.length/2)),c;if(!s&&!a)return null;a?s?c=s[4].length>a[4].length?s:a:c=a:c=s;let d,u,h,g;e.length>t.length?(d=c[0],u=c[1],h=c[2],g=c[3]):(h=c[0],g=c[1],d=c[2],u=c[3]);let p=c[4];return[d,u,h,g,p]};f.prototype.diff_cleanupSemantic=function(e){let t=!1,i=[],r=0,l=null,o=0,s=0,a=0,c=0,d=0;for(;o<e.length;)e[o][0]==0?(i[r++]=o,s=c,a=d,c=0,d=0,l=e[o][1]):(e[o][0]==1?c+=e[o][1].length:d+=e[o][1].length,l&&l.length<=Math.max(s,a)&&l.length<=Math.max(c,d)&&(e.splice(i[r-1],0,new f.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,r--,o=r>0?i[r-1]:-1,s=0,a=0,c=0,d=0,l=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;){if(e[o-1][0]==-1&&e[o][0]==1){let u=e[o-1][1],h=e[o][1],g=this.diff_commonOverlap_(u,h),p=this.diff_commonOverlap_(h,u);g>=p?(g>=u.length/2||g>=h.length/2)&&(e.splice(o,0,new f.Diff(0,h.substring(0,g))),e[o-1][1]=u.substring(0,u.length-g),e[o+1][1]=h.substring(g),o++):(p>=u.length/2||p>=h.length/2)&&(e.splice(o,0,new f.Diff(0,u.substring(0,p))),e[o-1][0]=1,e[o-1][1]=h.substring(0,h.length-p),e[o+1][0]=-1,e[o+1][1]=u.substring(p),o++),o++}o++}};f.prototype.diff_cleanupSemanticLossless=function(e){function t(r,l){if(!r||!l)return 6;let o=r.charAt(r.length-1),s=l.charAt(0),a=o.match(f.nonAlphaNumericRegex_),c=s.match(f.nonAlphaNumericRegex_),d=a&&o.match(f.whitespaceRegex_),u=c&&s.match(f.whitespaceRegex_),h=d&&o.match(f.linebreakRegex_),g=u&&s.match(f.linebreakRegex_),p=h&&r.match(f.blanklineEndRegex_),_=g&&l.match(f.blanklineStartRegex_);return p||_?5:h||g?4:a&&!d&&u?3:d||u?2:a||c?1:0}let i=1;for(;i<e.length-1;){if(e[i-1][0]==0&&e[i+1][0]==0){let r=e[i-1][1],l=e[i][1],o=e[i+1][1],s=this.diff_commonSuffix(r,l);if(s){r[r.length-s]===`
3
- `&&(s-=1);let h=l.substring(l.length-s);r=r.substring(0,r.length-s),l=h+l.substring(0,l.length-s),o=h+o}let a=r,c=l,d=o,u=t(r,l)+t(l,o);for(;l.charAt(0)===o.charAt(0);){r+=l.charAt(0),l=l.substring(1)+o.charAt(0),o=o.substring(1);let h=t(r,l)+t(l,o);h>=u&&(u=h,a=r,c=l,d=o)}e[i-1][1]!=a&&(a?e[i-1][1]=a:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}};f.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;f.whitespaceRegex_=/\s/;f.linebreakRegex_=/[\r\n]/;f.blanklineEndRegex_=/\n\r?\n$/;f.blanklineStartRegex_=/^\r?\n\r?\n/;f.prototype.diff_cleanupEfficiency=function(e){let t=!1,i=[],r=0,l=null,o=0,s=!1,a=!1,c=!1,d=!1;for(;o<e.length;)e[o][0]==0?(e[o][1].length<this.Diff_EditCost&&(c||d)?(i[r++]=o,s=c,a=d,l=e[o][1]):(r=0,l=null),c=d=!1):(e[o][0]==-1?d=!0:c=!0,l&&(s&&a&&c&&d||l.length<this.Diff_EditCost/2&&s+a+c+d==3)&&(e.splice(i[r-1],0,new f.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,l=null,s&&a?(c=d=!0,r=0):(r--,o=r>0?i[r-1]:-1,c=d=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)};f.prototype.diff_cleanupMerge=function(e){e.push(new f.Diff(0,""));let t=0,i=0,r=0,l="",o="",s;for(;t<e.length;)switch(e[t][0]){case 1:r++,o+=e[t][1],t++;break;case-1:i++,l+=e[t][1],t++;break;case 0:i+r>1?(i!==0&&r!==0&&(s=this.diff_commonPrefix(o,l),s!==0&&(t-i-r>0&&e[t-i-r-1][0]==0?e[t-i-r-1][1]+=o.substring(0,s):(e.splice(0,0,new f.Diff(0,o.substring(0,s))),t++),o=o.substring(s),l=l.substring(s)),s=this.diff_commonSuffix(o,l),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),l=l.substring(0,l.length-s))),t-=i+r,e.splice(t,i+r),l.length&&(e.splice(t,0,new f.Diff(-1,l)),t++),o.length&&(e.splice(t,0,new f.Diff(1,o)),t++),t++):t!==0&&e[t-1][0]==0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,i=0,l="",o="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]==0&&e[t+1][0]==0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&this.diff_cleanupMerge(e)};f.prototype.diff_cleanupSplitSurrogates=function(e){let t;for(let i=0;i<e.length;i++){let r=e[i],l=r[1][0],o=r[1][r[1].length-1];if(r[1].length===0){e.splice(i--,1);continue}if(o&&this.isHighSurrogate(o)&&(t=o,r[1]=r[1].slice(0,-1)),t&&l&&this.isHighSurrogate(t)&&this.isLowSurrogate(l)&&(r[1]=t+r[1]),r[1].length===0){e.splice(i--,1);continue}}return e};f.prototype.isHighSurrogate=function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319};f.prototype.isLowSurrogate=function(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343};f.prototype.digit16=function(e){switch(e){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}};f.prototype.decodeURI=function(e){try{return decodeURI(e)}catch{let t=0,i="";for(;t<e.length;){if(e[t]!=="%"){i+=e[t++];continue}let r=(this.digit16(e[t+1])<<4)+this.digit16(e[t+2]);if((r&128)===0){i+=String.fromCharCode(r),t+=3;continue}if(e[t+3]!=="%")throw new URIError("URI malformed");let l=(this.digit16(e[t+4])<<4)+this.digit16(e[t+5]);if((l&192)!==128)throw new URIError("URI malformed");if(l=l&63,(r&224)===192){i+=String.fromCharCode((r&31)<<6|l),t+=6;continue}if(e[t+6]!=="%")throw new URIError("URI malformed");let o=(this.digit16(e[t+7])<<4)+this.digit16(e[t+8]);if((o&192)!==128)throw new URIError("URI malformed");if(o=o&63,(r&240)===224){i+=String.fromCharCode((r&15)<<12|l<<6|o),t+=9;continue}if(e[t+9]!=="%")throw new URIError("URI malformed");let s=(this.digit16(e[t+10])<<4)+this.digit16(e[t+11]);if((s&192)!==128)throw new URIError("URI malformed");if(s=s&63,(r&248)===240){let a=(r&7)<<18|l<<12|o<<6|s;if(a>=65536&&a<=1114111){i+=String.fromCharCode((a&65535)>>>10&1023|55296),i+=String.fromCharCode(56320|a&65535&1023),t+=12;continue}}throw new URIError("URI malformed")}return i}};f.prototype.diff_xIndex=function(e,t){let i=0,r=0,l=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==1&&(i+=e[s][1].length),e[s][0]!==-1&&(r+=e[s][1].length),!(i>t));s++)l=i,o=r;return e.length!=s&&e[s][0]===-1?o:o+(t-l)};f.prototype.diff_prettyHtml=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[],i=/&/g,r=/</g,l=/>/g,o=/\n/g;for(let s=0;s<e.length;s++){let a=e[s][0],c=e[s][1].replace(i,"&amp;").replace(r,"&lt;").replace(l,"&gt;").replace(o,"&para;<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>";break}}return t.join("")};f.prototype.diff_text1=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==1&&(t[i]=e[i][1]);return t.join("")};f.prototype.diff_text2=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==-1&&(t[i]=e[i][1]);return t.join("")};f.prototype.diff_levenshtein=function(e){let t=0,i=0,r=0;for(let l=0;l<e.length;l++){let o=e[l][0],s=e[l][1];switch(o){case 1:i+=s.length;break;case-1:r+=s.length;break;case 0:t+=Math.max(i,r),i=0,r=0;break}}return t+=Math.max(i,r),t};f.prototype.diff_toDelta=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[];for(let i=0;i<e.length;i++)switch(e[i][0]){case 1:t[i]="+"+encodeURI(e[i][1]);break;case-1:t[i]="-"+e[i][1].length;break;case 0:t[i]="="+e[i][1].length;break}return t.join(" ").replace(/%20/g," ")};f.prototype.diff_fromDelta=function(e,t){let i=0,r="",l=[],o=0,s=0,a=t.split(/\t/g);for(let c=0;c<a.length;c++){let d=a[c].substring(1);switch(a[c].charAt(0)){case"+":try{l[o++]=new f.Diff(1,this.decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":if(i=parseInt(d,10),isNaN(i)||i<0)throw new Error("Invalid number in diff_fromDelta: "+d);r=e.substring(s,s+=i),a[c].charAt(0)=="="?l[o++]=new f.Diff(0,r):l[o++]=new f.Diff(-1,r);break;default:if(a[c])throw new Error("Invalid diff operation in diff_fromDelta: "+a[c])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return l};f.prototype.match_main=function(e,t,i){if(e==null||t==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1};f.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");let r=this.match_alphabet_(t),l=this;function o(p,_){let x=p/t.length,b=Math.abs(i-_);return l.Match_Distance?x+b/l.Match_Distance:b?1:x}let s=this.Match_Threshold,a=e.indexOf(t,i);a!=-1&&(s=Math.min(o(0,a),s),a=e.lastIndexOf(t,i+t.length),a!=-1&&(s=Math.min(o(0,a),s)));let c=1<<t.length-1;a=-1;let d,u,h=t.length+e.length,g;for(let p=0;p<t.length;p++){for(d=0,u=h;d<u;)o(p,i+u)<=s?d=u:h=u,u=Math.floor((h-d)/2+d);h=u;let _=Math.max(1,i-u+1),x=Math.min(i+u,e.length)+t.length,b=Array(x+2);b[x+1]=(1<<p)-1;for(let m=x;m>=_;m--){let w=r[e.charAt(m-1)];if(p===0?b[m]=(b[m+1]<<1|1)&w:b[m]=(b[m+1]<<1|1)&w|((g[m+1]|g[m])<<1|1)|g[m+1],b[m]&c){let C=o(p,m-1);if(C<=s)if(s=C,a=m-1,a>i)_=Math.max(1,2*i-a);else break}}if(o(p+1,i)>s)break;g=b}return a};f.prototype.match_alphabet_=function(e){let t={};for(let i=0;i<e.length;i++)t[e.charAt(i)]=0;for(let i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t};f.prototype.patch_addContext_=function(e,t){if(t.length==0)return;if(e.start2===null)throw Error("patch not initialized");let i=t.substring(e.start2,e.start2+e.length1),r=0;for(;t.indexOf(i)!=t.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,i=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,e.start2-r>0&&f.prototype.isLowSurrogate(t[e.start2-r])&&r++;let l=t.substring(e.start2-r,e.start2);l&&e.diffs.unshift(new f.Diff(0,l)),e.start2+e.length1+r<t.length&&f.prototype.isHighSurrogate(t[e.start2+e.length1+r])&&r++;let o=t.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new f.Diff(0,o)),e.start1-=l.length,e.start2-=l.length,e.length1+=l.length+o.length,e.length2+=l.length+o.length};f.prototype.patch_make=function(e,t,i){let r,l;if(typeof e=="string"&&typeof t=="string"&&typeof i>"u")r=e,l=this.diff_main(r,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof i>"u")l=e,r=this.diff_text1(l);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof i>"u")r=e,l=t;else if(typeof e=="string"&&typeof t=="string"&&i&&typeof i=="object")r=e,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];l=this.diff_cleanupSplitSurrogates(l);let o=[],s=new f.patch_obj,a=0,c=0,d=0,u=r,h=r;for(let g=0;g<l.length;g++){let p=l[g][0],_=l[g][1];switch(!a&&p!==0&&(s.start1=c,s.start2=d),p){case 1:s.diffs[a++]=l[g],s.length2+=_.length,h=h.substring(0,d)+_+h.substring(d);break;case-1:s.length1+=_.length,s.diffs[a++]=l[g],h=h.substring(0,d)+h.substring(d+_.length);break;case 0:_.length<=2*this.Patch_Margin&&a&&l.length!=g+1?(s.diffs[a++]=l[g],s.length1+=_.length,s.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(s,u),o.push(s),s=new f.patch_obj,a=0,u=h,c=d);break}p!==1&&(c+=_.length),p!==-1&&(d+=_.length)}return a&&(this.patch_addContext_(s,u),o.push(s)),o};f.prototype.patch_deepCopy=function(e){let t=[];for(let i=0;i<e.length;i++){let r=e[i],l=new f.patch_obj;l.diffs=[];for(let o=0;o<r.diffs.length;o++)l.diffs[o]=new f.Diff(r.diffs[o][0],r.diffs[o][1]);l.start1=r.start1,l.start2=r.start2,l.length1=r.length1,l.length2=r.length2,t[i]=l}return t};f.prototype.patch_apply=function(e,t){if(e.length==0)return[t,[]];e=this.patch_deepCopy(e);let i=this.patch_addPadding(e);t=i+t+i,this.patch_splitMax(e);let r=0,l=[];for(let o=0;o<e.length;o++){let s=e[o].start2+r,a=this.diff_text1(e[o].diffs),c,d=-1;if(a.length>this.Match_MaxBits?(c=this.match_main(t,a.substring(0,this.Match_MaxBits),s),c!=-1&&(d=this.match_main(t,a.substring(a.length-this.Match_MaxBits),s+a.length-this.Match_MaxBits),(d==-1||c>=d)&&(c=-1))):c=this.match_main(t,a,s),c==-1)l[o]=!1,r-=e[o].length2-e[o].length1;else{l[o]=!0,r=c-s;let u;if(d==-1?u=t.substring(c,c+a.length):u=t.substring(c,d+this.Match_MaxBits),a==u)t=t.substring(0,c)+this.diff_text2(e[o].diffs)+t.substring(c+a.length);else{let h=this.diff_main(a,u,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(h)/a.length>this.Patch_DeleteThreshold)l[o]=!1;else{this.diff_cleanupSemanticLossless(h);let g=0,p;for(let _=0;_<e[o].diffs.length;_++){let x=e[o].diffs[_];x[0]!==0&&(p=this.diff_xIndex(h,g)),x[0]===1?t=t.substring(0,c+p)+x[1]+t.substring(c+p):x[0]===-1&&(t=t.substring(0,c+p)+t.substring(c+this.diff_xIndex(h,g+x[1].length))),x[0]!==-1&&(g+=x[1].length)}}}}}return t=t.substring(i.length,t.length-i.length),[t,l]};f.prototype.patch_addPadding=function(e){let t=this.Patch_Margin,i="";for(let o=1;o<=t;o++)i+=String.fromCharCode(o);for(let o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;let r=e[0],l=r.diffs;if(l.length==0||l[0][0]!=0)l.unshift(new f.Diff(0,i)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>l[0][1].length){let o=t-l[0][1].length;l[0][1]=i.substring(l[0][1].length)+l[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}if(r=e[e.length-1],l=r.diffs,l.length==0||l[l.length-1][0]!=0)l.push(new f.Diff(0,i)),r.length1+=t,r.length2+=t;else if(t>l[l.length-1][1].length){let o=t-l[l.length-1][1].length;l[l.length-1][1]+=i.substring(0,o),r.length1+=o,r.length2+=o}return i};f.prototype.patch_splitMax=function(e){let t=this.Match_MaxBits;for(let i=0;i<e.length;i++){if(e[i].length1<=t)continue;let r=e[i];e.splice(i--,1);let l=r.start1,o=r.start2,s="";for(;r.diffs.length!==0;){let a=new f.patch_obj,c=!0;for(a.start1=l-s.length,a.start2=o-s.length,s!==""&&(a.length1=a.length2=s.length,a.diffs.push(new f.Diff(0,s)));r.diffs.length!==0&&a.length1<t-this.Patch_Margin;){let u=r.diffs[0][0],h=r.diffs[0][1];u===1?(a.length2+=h.length,o+=h.length,a.diffs.push(r.diffs.shift()),c=!1):u===-1&&a.diffs.length==1&&a.diffs[0][0]==0&&h.length>2*t?(a.length1+=h.length,l+=h.length,c=!1,a.diffs.push(new f.Diff(u,h)),r.diffs.shift()):(h=h.substring(0,t-a.length1-this.Patch_Margin),a.length1+=h.length,l+=h.length,u===0?(a.length2+=h.length,o+=h.length):c=!1,a.diffs.push(new f.Diff(u,h)),h==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(h.length))}s=this.diff_text2(a.diffs),s=s.substring(s.length-this.Patch_Margin);let d=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);d!==""&&(a.length1+=d.length,a.length2+=d.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===0?a.diffs[a.diffs.length-1][1]+=d:a.diffs.push(new f.Diff(0,d))),c||e.splice(++i,0,a)}}};f.prototype.patch_toText=function(e){let t=[];for(let i=0;i<e.length;i++)t[i]=e[i];return t.join("")};f.prototype.patch_fromText=function(e){let t=[];if(!e)return t;let i=e.split(`
4
- `),r=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;for(;r<i.length;){let o=i[r].match(l);if(!o)throw new Error("Invalid patch string: "+i[r]);let s=new f.patch_obj;for(t.push(s),s.start1=parseInt(o[1],10),o[2]===""?(s.start1--,s.length1=1):o[2]=="0"?s.length1=0:(s.start1--,s.length1=parseInt(o[2],10)),s.start2=parseInt(o[3],10),o[4]===""?(s.start2--,s.length2=1):o[4]=="0"?s.length2=0:(s.start2--,s.length2=parseInt(o[4],10)),r++;r<i.length;){let a=i[r].charAt(0),c="";try{c=decodeURI(i[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+c)}if(a=="-")s.diffs.push(new f.Diff(-1,c));else if(a=="+")s.diffs.push(new f.Diff(1,c));else if(a==" ")s.diffs.push(new f.Diff(0,c));else{if(a=="@")break;if(a!=="")throw new Error('Invalid patch mode "'+a+'" in: '+c)}r++}}return t};f.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};f.patch_obj.prototype.toString=function(){let e,t;this.length1===0?e=this.start1+",0":this.length1==1?e=this.start1+1:e=this.start1+1+","+this.length1,this.length2===0?t=this.start2+",0":this.length2==1?t=this.start2+1:t=this.start2+1+","+this.length2;let i=["@@ -"+e+" +"+t+` @@
5
- `],r;f.prototype.diff_cleanupSplitSurrogates(this.diffs);for(let l=0;l<this.diffs.length;l++){switch(this.diffs[l][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" ";break}i[l+1]=r+encodeURI(this.diffs[l][1])+`
6
- `}return i.join("").replace(/%20/g," ")};function B(e){return e&&typeof e=="object"&&!Array.isArray(e)&&e!==null}function U(e,t){return B(e)&&B(t)&&Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(B(t[i])?((!e[i]||!B(e[i]))&&(e[i]=t[i]),U(e[i],t[i])):Object.assign(e,{[i]:t[i]}))}),e}function F(e,t,i=!1){let r=null,l=!0;return(...o)=>{const s=i&&l,a=()=>{e.apply(this,o),r=null};s&&(l=!1,a()),r||(r=setTimeout(a,t))}}function Te(e,t){let i;return(...r)=>{const l=this;clearTimeout(i),i=setTimeout(()=>e.apply(l,r),t)}}function H(e=""){return e.replace(/\r\n/g,`
7
- `)}function q(e,t,i,r){const l=i-e,o=e+l/2;return`M ${e} ${t} C ${o},${t} ${o},${r} ${i},${r}`}const y={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function G(e,t){let{mode:i}=e.options;return t===y.EDITOR_LEFT&&e.options.left.mode!==null&&(i=e.options.left.mode),t===y.EDITOR_RIGHT&&e.options.right.mode!==null&&(i=e.options.right.mode),i}function $(e,t){let{theme:i}=e.options;return t===y.EDITOR_LEFT&&e.options.left.theme!==null&&(i=e.options.left.theme),t===y.EDITOR_RIGHT&&e.options.right.theme!==null&&(i=e.options.right.theme),i}function ne(e,t){return e.ace.getSession().doc.getLine(t)}function Le(e){return document.getElementById(e.options.left.id).offsetHeight}function j(e){const t=document.createElement("div"),i={class:e.className,style:`top:${e.topOffset}px`,title:e.tooltip,"data-diff-index":e.diffIndex};for(const r in i)t.setAttribute(r,i[r]);return t.innerHTML=e.arrowContent,t}function O(e,t){const i=Math.random().toString(36).substr(2,5),r=`js-${t}-${i}`,l=e.querySelector(`.${t}`);if(l)return l.id=l.id||r,l.id;const o=document.createElement("div");return e.appendChild(o),o.className=t,o.id=r,o.id}function Y(e,t,i,r){const l=e==="document"?document:document.querySelector(e);l.addEventListener(t,o=>{const s=l.querySelectorAll(i),{target:a}=o;for(let c=0,d=s.length;c<d;c+=1){let u=a;const h=s[c];for(;u&&u!==l;)u===h&&r.call(h,o),u=u.parentNode}})}let A;function De(e){if(e.Range)return e.Range;const t=e.acequire||e.require;return t?t("ace/range"):!1}function P(e={}){if(!(this instanceof P))return new P(e);const t=this,i=()=>window?window.ace:void 0;t.options=U({ace:i(),mode:null,theme:null,element:null,diffGranularity:y.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"&#8594;",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"&#8592;",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},e);const{ace:r}=t.options;if(!r){const l="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(l),new Error(l)}if(A=De(r),!A){const l="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(l),new Error(l)}if(t.options.element===null){const l="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(l),new Error(l)}if(t.options.element instanceof HTMLElement?t.el=t.options.element:t.el=document.body.querySelector(t.options.element),!t.el){const l=`Can't find the specified element ${t.options.element}`;return console.error(l),new Error(l)}t.options.left.id=O(t.el,"acediff__left"),t.options.classes.gutterID=O(t.el,"acediff__gutter"),t.options.right.id=O(t.el,"acediff__right"),t.el.innerHTML=`<div class="acediff__wrap">${t.el.innerHTML}</div>`,t.editors={left:{ace:r.edit(t.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(t.options.right.id),markers:[],lineLengths:[]},editorHeight:null},t.editors.left.ace.getSession().setMode(G(t,y.EDITOR_LEFT)),t.editors.right.ace.getSession().setMode(G(t,y.EDITOR_RIGHT)),t.editors.left.ace.setReadOnly(!t.options.left.editable),t.editors.right.ace.setReadOnly(!t.options.right.editable),t.editors.left.ace.setTheme($(t,y.EDITOR_LEFT)),t.editors.right.ace.setTheme($(t,y.EDITOR_RIGHT)),t.editors.left.ace.setValue(H(t.options.left.content),-1),t.editors.right.ace.setValue(H(t.options.right.content),-1),t.editors.editorHeight=Le(t),setTimeout(()=>{t.lineHeight=t.editors.left.ace.renderer.lineHeight,Me(t),Ae(t),re(t),t.diff()},1)}P.prototype={setOptions(e){U(this.options,e),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const e=new f,t=this.editors.left.ace.getSession().getValue(),i=this.editors.right.ace.getSession().getValue(),r=e.diff_main(i,t);e.diff_cleanupSemantic(r),this.editors.left.lineLengths=K(this.editors.left),this.editors.right.lineLengths=K(this.editors.right);const l=[],o={left:0,right:0};r.forEach(s=>{const a=s[0];let c=s[1];c.length!==0&&(a===y.DIFF_EQUAL?(o.left+=c.length,o.right+=c.length):a===y.DIFF_DELETE?(l.push(J(this,y.DIFF_DELETE,o.left,o.right,c)),o.right+=c.length):a===y.DIFF_INSERT&&(l.push(J(this,y.DIFF_INSERT,o.left,o.right,c)),o.left+=c.length))},this),this.diffs=Ue(this,l),!(this.diffs.length>this.options.maxDiffs)&&(oe(this),le(this))},destroy(){const e=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let t=this.editors.left.ace.container,i=t.cloneNode(!1);i.textContent=e,t.parentNode.replaceChild(i,t);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),t=this.editors.right.ace.container,i=t.cloneNode(!1),i.textContent=r,t.parentNode.replaceChild(i,t),document.getElementById(this.options.classes.gutterID).innerHTML="",ie()}};let ie=()=>{};function Me(e){e.editors.left.ace.getSession().on("changeScrollTop",F(()=>{W(e)},16)),e.editors.right.ace.getSession().on("changeScrollTop",F(()=>{W(e)},16));const t=e.diff.bind(e);e.editors.left.ace.on("change",t),e.editors.right.ace.on("change",t),e.options.left.copyLinkEnabled&&Y(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.newCodeConnectorLink}`,r=>{z(e,r,y.LTR)}),e.options.right.copyLinkEnabled&&Y(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.deletedCodeConnectorLink}`,r=>{z(e,r,y.RTL)});const i=Te(()=>{e.editors.availableHeight=document.getElementById(e.options.left.id).offsetHeight,e.diff()},250);window.addEventListener("resize",i),ie=()=>{window.removeEventListener("resize",i)}}function z(e,t,i){const r=parseInt(t.target.getAttribute("data-diff-index"),10),l=e.diffs[r];let o,s,a,c,d,u;i===y.LTR?(o=e.editors.left,s=e.editors.right,a=l.leftStartLine,c=l.leftEndLine,d=l.rightStartLine,u=l.rightEndLine):(o=e.editors.right,s=e.editors.left,a=l.rightStartLine,c=l.rightEndLine,d=l.leftStartLine,u=l.leftEndLine);let h="";for(let p=a;p<c;p+=1)h+=ne(o,p),p===a&&h===""&&d!=0&&(h+=`
8
- `),p<o.ace.getSession().getLength()-1&&(h+=`
9
- `);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new A(d,0,u,0),h),s.ace.getSession().setScrollTop(parseInt(g,10)),e.diff()}function K(e){const t=e.ace.getSession().doc.getAllLines(),i=[];return t.forEach(r=>{i.push(r.length+1)}),i}function X(e,t,i,r,l){const o=e.editors[t];r<i&&(r=i);const s=`${l} ${r>i?"lines":"targetOnly"}`;r>i&&(r-=1),o.markers.push(o.ace.session.addMarker(new A(i,0,r,1),s,"fullLine"))}function W(e){oe(e),le(e),Be(e)}function oe(e){e.editors.left.markers.forEach(t=>{e.editors.left.ace.getSession().removeMarker(t)},e),e.editors.right.markers.forEach(t=>{e.editors.right.ace.getSession().removeMarker(t)},e)}function Ie(e,t,i,r,l){const o=e.editors.left.ace.getSession().getScrollTop(),s=e.editors.right.ace.getSession().getScrollTop();e.connectorYOffset=1;const a=-1,c=t*e.lineHeight-o+.5,d=e.gutterWidth+1,u=r*e.lineHeight-s+.5,h=-1,g=i*e.lineHeight-o+e.connectorYOffset+.5,p=e.gutterWidth+1,_=l*e.lineHeight-s+e.connectorYOffset+.5,x=q(a,c,d,u),b=q(p,_,h,g),m=`L${d},${u} ${p},${_}`,w=`L${h},${g} ${a},${c}`,C=`${x} ${m} ${b} ${w}`,v=document.createElementNS(y.SVG_NS,"path");v.setAttribute("d",C),v.setAttribute("class",e.options.classes.connector),e.gutterSVG.appendChild(v)}function Re(e,t,i){if(t.leftEndLine>t.leftStartLine&&e.options.left.copyLinkEnabled){const r=j({className:e.options.classes.newCodeConnectorLink,topOffset:t.leftStartLine*e.lineHeight,tooltip:"Copy to right",diffIndex:i,arrowContent:e.options.classes.newCodeConnectorLinkContent});e.copyRightContainer.appendChild(r)}if(t.rightEndLine>t.rightStartLine&&e.options.right.copyLinkEnabled){const r=j({className:e.options.classes.deletedCodeConnectorLink,topOffset:t.rightStartLine*e.lineHeight,tooltip:"Copy to left",diffIndex:i,arrowContent:e.options.classes.deletedCodeConnectorLinkContent});e.copyLeftContainer.appendChild(r)}}function Be(e){const t=e.editors.left.ace.getSession().getScrollTop(),i=e.editors.right.ace.getSession().getScrollTop();e.copyRightContainer.style.cssText=`top: ${-t}px`,e.copyLeftContainer.style.cssText=`top: ${-i}px`}function J(e,t,i,r,l){let o={};if(t===y.DIFF_INSERT){let s=Q(e.editors.left,i,l),a=Z(e.editors.right,r),c=M(e.editors.right,a);const d=M(e.editors.left,s.startLine);let u=a,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:s.startLine,leftEndLine:s.endLine+1,rightStartLine:u,rightEndLine:u+g}}else{let s=Q(e.editors.right,r,l),a=Z(e.editors.left,i),c=M(e.editors.left,a);const d=M(e.editors.right,s.startLine);let u=a,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:u,leftEndLine:u+g,rightStartLine:s.startLine,rightEndLine:s.endLine+1}}return o}function Q(e,t,i){const r={startLine:0,startChar:0,endLine:0,endChar:0},l=t+i.length;let o=0,s=!1,a=!1;e.lineLengths.forEach((d,u)=>{o+=d,!s&&t<o&&(r.startLine=u,r.startChar=t-o+d,s=!0),!a&&l<=o&&(r.endLine=u,r.endChar=l-o+d,a=!0)}),r.startChar>0&&M(e,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const c=/\n$/.test(i);return r.startChar>0&&c&&r.endLine++,r}function M(e,t){return ne(e,t).length}function Z(e,t){const i=e.ace.getSession().doc.getAllLines();let r=0,l=0;for(let o=0;o<i.length;o+=1)if(l+=i[o].length+1,t<l){r=o;break}return l>e.ace.getSession().getValue().length&&(r+=1),r}function re(e){e.gutterHeight=document.getElementById(e.options.classes.gutterID).clientHeight,e.gutterWidth=document.getElementById(e.options.classes.gutterID).clientWidth;const t=ee(e,y.EDITOR_LEFT),i=ee(e,y.EDITOR_RIGHT),r=Math.max(t,i,e.gutterHeight);e.gutterSVG=document.createElementNS(y.SVG_NS,"svg"),e.gutterSVG.setAttribute("width",e.gutterWidth),e.gutterSVG.setAttribute("height",r),document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG)}function ee(e,t){return(t===y.EDITOR_LEFT?e.editors.left:e.editors.right).ace.getSession().getLength()*e.lineHeight}function Ae(e){e.copyRightContainer=document.createElement("div"),e.copyRightContainer.setAttribute("class",e.options.classes.copyRightContainer),e.copyLeftContainer=document.createElement("div"),e.copyLeftContainer.setAttribute("class",e.options.classes.copyLeftContainer),document.getElementById(e.options.classes.gutterID).appendChild(e.copyRightContainer),document.getElementById(e.options.classes.gutterID).appendChild(e.copyLeftContainer)}function Pe(e){document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),re(e)}function Oe(e){e.copyLeftContainer.innerHTML="",e.copyRightContainer.innerHTML=""}function Ue(e,t){const i=[];function r(o){return e.options.diffGranularity===y.DIFF_GRANULARITY_SPECIFIC?o<1:o<=1}t.forEach((o,s)=>{if(s===0){i.push(o);return}let a=!1;for(let c=0;c<i.length;c+=1)if(r(Math.abs(o.leftStartLine-i[c].leftEndLine))&&r(Math.abs(o.rightStartLine-i[c].rightEndLine))){i[c].leftStartLine=Math.min(o.leftStartLine,i[c].leftStartLine),i[c].rightStartLine=Math.min(o.rightStartLine,i[c].rightStartLine),i[c].leftEndLine=Math.max(o.leftEndLine,i[c].leftEndLine),i[c].rightEndLine=Math.max(o.rightEndLine,i[c].rightEndLine),a=!0;break}a||i.push(o)});const l=[];return i.forEach(o=>{o.leftStartLine===o.leftEndLine&&o.rightStartLine===o.rightEndLine||l.push(o)}),l}function le(e){Pe(e),Oe(e),e.diffs.forEach((t,i)=>{e.options.showDiffs&&(X(e,y.EDITOR_LEFT,t.leftStartLine,t.leftEndLine,e.options.classes.diff),X(e,y.EDITOR_RIGHT,t.rightStartLine,t.rightEndLine,e.options.classes.diff),e.options.showConnectors&&Ie(e,t.leftStartLine,t.leftEndLine,t.rightStartLine,t.rightEndLine),Re(e,t,i))},e)}const Fe={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},mounted(){const e=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new P({element:this.$refs.editor,mode:new e,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let e=this.differ.diffs[this.curDiff].leftStartLine,t=this.differ.diffs[this.curDiff].rightStartLine;e>5&&(e-=5),t>5&&(t-=5),this.differ.getEditors().left.scrollToLine(e),this.differ.getEditors().right.scrollToLine(t)},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,i=["VARIABLE"],r=new RegExp(`(\\b${i.join("\\b|\\b")}\\b)`),l=function(){t.call(this);for(let u in this.$rules)this.$rules[u].unshift({regex:r,token:"support.function"})};e.inherits(l,t);let o=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=E.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=l,this.$outdent=new o,this.$behaviour=new s,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},d=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(c,d),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Le=require("../index-DcL65Mqb.cjs"),n=require("vue"),M=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CKn4Dnn-.cjs"),S=require("../TopBar-BwdXu4vD.cjs");require("single-spa");const Ne={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const t=/\w+.gem/;return this.response.tree.filter(e=>t.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,Le.axios.get(this.url).then(t=>{this.response=t.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(t){const e=document.createElement("a");e.href=t.url,e.setAttribute("download",t.name),e.click(),e.remove()}}},ke={class:"pa-3"},Te={class:"px-2"},Se={key:0,class:"mt-4"},$e={key:1,class:"mt-4"};function De(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),h=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-list-item"),V=n.resolveComponent("v-divider"),C=n.resolveComponent("v-card-text"),f=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:r.show,"onUpdate:modelValue":e[0]||(e[0]=m=>r.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),e[1]||(e[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",ke,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>e[2]||(e[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",Te,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:i.disableSearch,onClick:r.searchGithub},{default:n.withCtx(()=>[e[4]||(e[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>e[3]||(e[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>e[5]||(e[5]=[n.createTextVNode(" Community Gems ")])),_:1}),r.listData.length<1?(n.openBlock(),n.createElementBlock("div",Se,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>e[6]||(e[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",$e,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,(m,w)=>(n.openBlock(),n.createElementBlock("div",{key:w},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[i.activeDownload?(n.openBlock(),n.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(n.openBlock(),n.createBlock(u,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:i.activeDownload,onClick:L=>r.downloadGem(m)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),w<r.listData.length-1?(n.openBlock(),n.createBlock(V,{key:w})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Me=M._export_sfc(Ne,[["render",De]]),Ie={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},mounted(){const t=this.buildPluginMode();this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new t),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const t=new Blob([this.editor.getValue()],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),e.click()},buildPluginMode(){let t=E.aceExports.require("ace/lib/oop"),e=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,o=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,l=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,i=E.aceExports.require("ace/mode/folding/ruby").FoldMode,r=function(){this.HighlightRules=e,this.$outdent=new o,this.$behaviour=new l,this.foldingRules=new i,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return t.inherits(r,s),(function(){this.$id="ace/mode/openc3"}).call(r.prototype),r},showContextMenu:function(t){this.menuX=t.pageX,this.menuY=t.pageY;let e=this.editor.getCursorPosition(),o=this.editor.session.getTokenAt(e.row,e.column);if(o){let l=o.value.trim();l.includes(" ")?this.docsKeyword=l.split(" ")[0]:this.docsKeyword=l,this.contextMenu=!0}},toggleVimMode:function(){S.AceEditorUtils.toggleVimMode(this.editor)}}},Be=["textContent"],Re={class:"pa-3"},Ae={key:0},Oe=["textContent"];function Fe(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-btn"),c=n.resolveComponent("v-toolbar"),d=n.resolveComponent("v-row"),u=n.resolveComponent("v-col"),h=n.resolveComponent("v-file-input"),g=n.resolveComponent("v-list-item"),p=n.resolveComponent("v-list"),_=n.resolveComponent("v-menu"),V=n.resolveComponent("v-card-text"),C=n.resolveComponent("v-card"),f=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(f,{modelValue:r.show,"onUpdate:modelValue":e[4]||(e[4]=b=>r.show=b),persistent:!o.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:e[3]||(e[3]=n.withModifiers((...b)=>r.submit&&r.submit(...b),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(r.title)},null,8,Be),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:r.download},null,8,["onClick"])]),_:1}),n.createVNode(V,null,{default:n.withCtx(()=>[n.createElementVNode("div",Re,[o.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Ae,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>e[5]||(e[5]=[n.createTextVNode(" Upload a file. ")])),_:1}),n.createVNode(d,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(u,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(a,{block:"",color:"success",disabled:!t.file||t.loadingFile||o.readonly,loading:t.loadingFile,"data-test":"editScreenLoadBtn",onClick:t.loadFile},{loader:n.withCtx(()=>e[6]||(e[6]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[e[7]||(e[7]=n.createTextVNode(" Load "))]),_:1},8,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:t.file,"onUpdate:modelValue":e[0]||(e[0]=b=>t.file=b),accept:".json",label:"Click to select .json file.",disabled:o.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=n.withModifiers((...b)=>r.showContextMenu&&r.showContextMenu(...b),["prevent"]))},null,544),n.createVNode(_,{modelValue:i.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=b=>i.contextMenu=b),target:[i.menuX,i.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:r.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(d,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(r.error)},null,8,Oe),[[n.vShow,r.error]])]),_:1}),n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(a,{variant:"outlined",class:"mx-2","data-test":"editCancelBtn",onClick:n.withModifiers(r.close,["prevent"])},{default:n.withCtx(()=>e[8]||(e[8]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),o.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!r.error||o.readonly},{default:n.withCtx(()=>e[9]||(e[9]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","persistent"])}const Pe=M._export_sfc(Ie,[["render",Fe],["__scopeId","data-v-e84cb3ed"]]),He={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},created(){for(const t of this.targets)E.li.get(`/openc3-api/targets/${t.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:t.name,files:e.data})})}};function qe(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),h=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),V=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{modelValue:r.show,"onUpdate:modelValue":e[3]||(e[3]=f=>r.show=f),width:"600"},{default:n.withCtx(()=>[n.createVNode(V,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),e[4]||(e[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(o.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.modifiedTargets,(f,b)=>(n.openBlock(),n.createBlock(u,{key:b,lines:"two"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.files,(m,w)=>(n.openBlock(),n.createBlock(d,{key:w},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(h,{modelValue:i.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=f=>i.deleteModified=f),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:e[1]||(e[1]=()=>{r.show=!1,t.$emit("cancel")})},{default:n.withCtx(()=>e[5]||(e[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{r.show=!1,t.$emit("submit",i.deleteModified)})},{default:n.withCtx(()=>e[6]||(e[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ue=M._export_sfc(He,[["render",qe]]),_e=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-UcluFu7J.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-B8appkxl.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-DOjyTYVC.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-DS95AQxI.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-pL6PYFy5.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-DYoGxaWx.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-WSIi50nR.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-Dq_xGlhh.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-HP8E21SW.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-CMQxLfkn.cjs"))}],Ge={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return _e.map(t=>({displayName:t.displayName,path:{name:t.name}}))}}};function je(t,e,o,l,i,r){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:i.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:i.curTab,"onUpdate:modelValue":e[0]||(e[0]=h=>i.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.tabs,(h,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:h.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const Ye=M._export_sfc(Ge,[["render",je]]);function U(t){const[e,o]=t;return[e,o]}function z(t,e){let o=t,l=e;const i=o.length,r=l.length;if(i===0||r===0)return 0;i>r?o=o.substring(i-r):i<r&&(l=l.substring(0,i));const s=Math.min(i,r);if(o===l)return s;let a=0,c=1;for(let d=0;d!==-1;){const u=o.substring(s-c);if(d=l.indexOf(u),d===-1)return a;c+=d,(d===0||o.substring(s-c)===l.substring(0,c))&&(a=c,c++)}return a}function G(t,e){if(!t||!e||t[0]!==e[0])return 0;let o=0,l=Math.min(t.length,e.length),i=l,r=0;for(;o<i;)t.substring(r,i)===e.substring(r,i)?(o=i,r=o):l=i,i=Math.floor((l-o)/2+o);return i}function P(t,e){if(!t||!e||t[t.length-1]!==e[e.length-1])return 0;let o=0,l=Math.min(t.length,e.length),i=l,r=0;for(;o<i;)t.substring(t.length-i,t.length-r)===e.substring(e.length-i,e.length-r)?(o=i,r=o):l=i,i=Math.floor((l-o)/2+o);return i}function ze(t){const e=t.charCodeAt(0);return e>=55296&&e<=56319}function We(t){const e=t.charCodeAt(0);return e>=56320&&e<=57343}function Ke(t,e,o){const l=t.length,i=e.length,r=Math.ceil((l+i)/2),s=r,a=2*r,c=new Array(a),d=new Array(a);for(let C=0;C<a;C++)c[C]=-1,d[C]=-1;c[s+1]=0,d[s+1]=0;const u=l-i,h=u%2!==0;let g=0,p=0,_=0,V=0;for(let C=0;C<r&&!(Date.now()>o);C++){for(let f=-C+g;f<=C-p;f+=2){const b=s+f;let m;f===-C||f!==C&&c[b-1]<c[b+1]?m=c[b+1]:m=c[b-1]+1;let w=m-f;for(;m<l&&w<i&&t.charAt(m)===e.charAt(w);)m++,w++;if(c[b]=m,m>l)p+=2;else if(w>i)g+=2;else if(h){const L=s+u-f;if(L>=0&&L<a&&d[L]!==-1){const T=l-d[L];if(m>=T)return W(t,e,m,w,o)}}}for(let f=-C+_;f<=C-V;f+=2){const b=s+f;let m;f===-C||f!==C&&d[b-1]<d[b+1]?m=d[b+1]:m=d[b-1]+1;let w=m-f;for(;m<l&&w<i&&t.charAt(l-m-1)===e.charAt(i-w-1);)m++,w++;if(d[b]=m,m>l)V+=2;else if(w>i)_+=2;else if(!h){const L=s+u-f;if(L>=0&&L<a&&c[L]!==-1){const T=c[L],H=s+T-L;if(m=l-m,T>=m)return W(t,e,T,H,o)}}}}return[[N,t],[y,e]]}function W(t,e,o,l,i){const r=t.substring(0,o),s=e.substring(0,l),a=t.substring(o),c=e.substring(l),d=$(r,s,{checkLines:!1,deadline:i}),u=$(a,c,{checkLines:!1,deadline:i});return d.concat(u)}function Xe(t,e,o=1){if(o<=0)return null;const l=t.length>e.length?t:e,i=t.length>e.length?e:t;if(l.length<4||i.length*2<l.length)return null;const r=K(l,i,Math.ceil(l.length/4)),s=K(l,i,Math.ceil(l.length/2));let a;if(r&&s)a=r[4].length>s[4].length?r:s;else{if(!r&&!s)return null;s?r||(a=s):a=r}if(!a)throw new Error("Unable to find a half match.");let c,d,u,h;t.length>e.length?(c=a[0],d=a[1],u=a[2],h=a[3]):(u=a[0],h=a[1],c=a[2],d=a[3]);const g=a[4];return[c,d,u,h,g]}function K(t,e,o){const l=t.slice(o,o+Math.floor(t.length/4));let i=-1,r="",s,a,c,d;for(;(i=e.indexOf(l,i+1))!==-1;){const u=G(t.slice(o),e.slice(i)),h=P(t.slice(0,o),e.slice(0,i));r.length<h+u&&(r=e.slice(i-h,i)+e.slice(i,i+u),s=t.slice(0,o-h),a=t.slice(o+u),c=e.slice(0,i-h),d=e.slice(i+u))}return r.length*2>=t.length?[s||"",a||"",c||"",d||"",r||""]:null}function Je(t,e){for(let o=0;o<t.length;o++){const l=t[o][1],i=[];for(let r=0;r<l.length;r++)i[r]=e[l.charCodeAt(r)];t[o][1]=i.join("")}}function Qe(t,e){const o=[],l={};o[0]="";function i(c){let d="",u=0,h=-1,g=o.length;for(;h<c.length-1;){h=c.indexOf(`
2
+ `,u),h===-1&&(h=c.length-1);let p=c.slice(u,h+1);(l.hasOwnProperty?l.hasOwnProperty(p):l[p]!==void 0)?d+=String.fromCharCode(l[p]):(g===r&&(p=c.slice(u),h=c.length),d+=String.fromCharCode(g),l[p]=g,o[g++]=p),u=h+1}return d}let r=4e4;const s=i(t);r=65535;const a=i(e);return{chars1:s,chars2:a,lineArray:o}}function Ze(t,e,o){let l=t,i=e;const r=Qe(l,i);l=r.chars1,i=r.chars2;const s=r.lineArray;let a=$(l,i,{checkLines:!1,deadline:o.deadline});Je(a,s),a=be(a),a.push([x,""]);let c=0,d=0,u=0,h="",g="";for(;c<a.length;){switch(a[c][0]){case y:u++,g+=a[c][1];break;case N:d++,h+=a[c][1];break;case x:if(d>=1&&u>=1){a.splice(c-d-u,d+u),c=c-d-u;const p=$(h,g,{checkLines:!1,deadline:o.deadline});for(let _=p.length-1;_>=0;_--)a.splice(c,0,p[_]);c+=p.length}u=0,d=0,h="",g="";break;default:throw new Error("Unknown diff operation.")}c++}return a.pop(),a}function et(t,e,o){let l;if(!t)return[[y,e]];if(!e)return[[N,t]];const i=t.length>e.length?t:e,r=t.length>e.length?e:t,s=i.indexOf(r);if(s!==-1)return l=[[y,i.substring(0,s)],[x,r],[y,i.substring(s+r.length)]],t.length>e.length&&(l[0][0]=N,l[2][0]=N),l;if(r.length===1)return[[N,t],[y,e]];const a=Xe(t,e);if(a){const c=a[0],d=a[1],u=a[2],h=a[3],g=a[4],p=$(c,u,o),_=$(d,h,o);return p.concat([[x,g]],_)}return o.checkLines&&t.length>100&&e.length>100?Ze(t,e,o):Ke(t,e,o.deadline)}var tt=Object.defineProperty,X=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,J=(t,e,o)=>e in t?tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,it=(t,e)=>{for(var o in e||(e={}))nt.call(e,o)&&J(t,o,e[o]);if(X)for(var o of X(e))ot.call(e,o)&&J(t,o,e[o]);return t};const N=-1,y=1,x=0;function rt(t,e,o){if(t===null||e===null)throw new Error("Null input. (diff)");const l=$(t,e,st(o||{}));return ct(l),l}function $(t,e,o){let l=t,i=e;if(l===i)return l?[[x,l]]:[];let r=G(l,i);const s=l.substring(0,r);l=l.substring(r),i=i.substring(r),r=P(l,i);const a=l.substring(l.length-r);l=l.substring(0,l.length-r),i=i.substring(0,i.length-r);let c=et(l,i,o);return s&&c.unshift([x,s]),a&&c.push([x,a]),c=j(c),c}function lt(t){let e=1;return typeof t<"u"&&(e=t<=0?Number.MAX_VALUE:t),Date.now()+e*1e3}function st(t){return it({checkLines:!0,deadline:lt(t.timeout||1)},t)}function B(t,e,o){return o===1?t+e:e+t}function R(t,e){return e===1?[t.substring(0,t.length-1),t[t.length-1]]:[t.substring(1),t[0]]}function at(t,e,o,l){return l===1?t[e][1][t[e][1].length-1]===t[o][1][t[o][1].length-1]:t[e][1][0]===t[o][1][0]}function Q(t,e,o){const l=o===1?-1:1;let i=null,r=null,s=e+o;for(;s>=0&&s<t.length&&(i===null||r===null);s+=o){const[d,u]=t[s];if(u.length!==0){if(d===y){i===null&&(i=s);continue}else if(d===N){r===null&&(r=s);continue}else if(d===x){if(i===null&&r===null){const[h,g]=R(t[e][1],o);t[e][1]=h,t[s][1]=B(t[s][1],g,l);return}break}}}if(i!==null&&r!==null&&at(t,i,r,o)){const[d,u]=R(t[i][1],l),[h]=R(t[r][1],l);t[i][1]=d,t[r][1]=h,t[e][1]=B(t[e][1],u,o);return}const[a,c]=R(t[e][1],o);t[e][1]=a,i===null?(t.splice(s,0,[y,c]),r!==null&&r>=s&&r++):t[i][1]=B(t[i][1],c,l),r===null?t.splice(s,0,[N,c]):t[r][1]=B(t[r][1],c,l)}function ct(t){for(let e=0;e<t.length;e++){const[o,l]=t[e];if(l.length===0)continue;const i=l[0],r=l[l.length-1];ze(r)&&o===x&&Q(t,e,1),We(i)&&o===x&&Q(t,e,-1)}for(let e=0;e<t.length;e++)t[e][1].length===0&&t.splice(e,1)}function be(t){let e=t.map(h=>U(h)),o=!1;const l=[];let i=0,r=null,s=0,a=0,c=0,d=0,u=0;for(;s<e.length;)e[s][0]===x?(l[i++]=s,a=d,c=u,d=0,u=0,r=e[s][1]):(e[s][0]===y?d+=e[s][1].length:u+=e[s][1].length,r&&r.length<=Math.max(a,c)&&r.length<=Math.max(d,u)&&(e.splice(l[i-1],0,[N,r]),e[l[i-1]+1][0]=y,i--,i--,s=i>0?l[i-1]:-1,a=0,c=0,d=0,u=0,r=null,o=!0)),s++;for(o&&(e=j(e)),e=ht(e),s=1;s<e.length;){if(e[s-1][0]===N&&e[s][0]===y){const h=e[s-1][1],g=e[s][1],p=z(h,g),_=z(g,h);p>=_?(p>=h.length/2||p>=g.length/2)&&(e.splice(s,0,[x,g.substring(0,p)]),e[s-1][1]=h.substring(0,h.length-p),e[s+1][1]=g.substring(p),s++):(_>=h.length/2||_>=g.length/2)&&(e.splice(s,0,[x,h.substring(0,_)]),e[s-1][0]=y,e[s-1][1]=g.substring(0,g.length-_),e[s+1][0]=N,e[s+1][1]=h.substring(_),s++),s++}s++}return e}const Z=/[^a-zA-Z0-9]/,ee=/\s/,te=/[\r\n]/,dt=/\n\r?\n$/,ut=/^\r?\n\r?\n/;function ht(t){const e=t.map(i=>U(i));function o(i,r){if(!i||!r)return 6;const s=i.charAt(i.length-1),a=r.charAt(0),c=s.match(Z),d=a.match(Z),u=c&&s.match(ee),h=d&&a.match(ee),g=u&&s.match(te),p=h&&a.match(te),_=g&&i.match(dt),V=p&&r.match(ut);return _||V?5:g||p?4:c&&!u&&h?3:u||h?2:c||d?1:0}let l=1;for(;l<e.length-1;){if(e[l-1][0]===x&&e[l+1][0]===x){let i=e[l-1][1],r=e[l][1],s=e[l+1][1];const a=P(i,r);if(a){const g=r.substring(r.length-a);i=i.substring(0,i.length-a),r=g+r.substring(0,r.length-a),s=g+s}let c=i,d=r,u=s,h=o(i,r)+o(r,s);for(;r.charAt(0)===s.charAt(0);){i+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);const g=o(i,r)+o(r,s);g>=h&&(h=g,c=i,d=r,u=s)}e[l-1][1]!==c&&(c?e[l-1][1]=c:(e.splice(l-1,1),l--),e[l][1]=d,u?e[l+1][1]=u:(e.splice(l+1,1),l--))}l++}return e}function j(t){let e=t.map(d=>U(d));e.push([x,""]);let o=0,l=0,i=0,r="",s="",a;for(;o<e.length;)switch(e[o][0]){case y:i++,s+=e[o][1],o++;break;case N:l++,r+=e[o][1],o++;break;case x:l+i>1?(l!==0&&i!==0&&(a=G(s,r),a!==0&&(o-l-i>0&&e[o-l-i-1][0]===x?e[o-l-i-1][1]+=s.substring(0,a):(e.splice(0,0,[x,s.substring(0,a)]),o++),s=s.substring(a),r=r.substring(a)),a=P(s,r),a!==0&&(e[o][1]=s.substring(s.length-a)+e[o][1],s=s.substring(0,s.length-a),r=r.substring(0,r.length-a))),o-=l+i,e.splice(o,l+i),r.length&&(e.splice(o,0,[N,r]),o++),s.length&&(e.splice(o,0,[y,s]),o++),o++):o!==0&&e[o-1][0]===x?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,i=0,l=0,r="",s="";break;default:throw new Error("Unknown diff operation")}e[e.length-1][1]===""&&e.pop();let c=!1;for(o=1;o<e.length-1;)e[o-1][0]===x&&e[o+1][0]===x&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)===e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),c=!0):e[o][1].substring(0,e[o+1][1].length)===e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),c=!0)),o++;return c&&(e=j(e)),e}function A(t){return t&&typeof t=="object"&&!Array.isArray(t)&&t!==null}function Y(t,e){return A(t)&&A(e)&&Object.keys(e).forEach(o=>{o==="__proto__"||o==="constructor"||(A(e[o])?((!t[o]||!A(t[o]))&&(t[o]=e[o]),Y(t[o],e[o])):Object.assign(t,{[o]:e[o]}))}),t}function ne(t,e,o=!1){let l=null,i=!0;return(...r)=>{const s=o&&i,a=()=>{t.apply(this,r),l=null};s&&(i=!1,a()),l||(l=setTimeout(a,e))}}function gt(t,e){let o;return(...l)=>{const i=this;clearTimeout(o),o=setTimeout(()=>t.apply(i,l),e)}}function oe(t=""){return t.replace(/\r\n/g,`
3
+ `)}function ie(t,e,o,l){const i=o-t,r=t+i/2;return`M ${t} ${e} C ${r},${e} ${r},${l} ${o},${l}`}var v={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function re(t,e){let{mode:o}=t.options;return e===v.EDITOR_LEFT&&t.options.left.mode!==null&&(o=t.options.left.mode),e===v.EDITOR_RIGHT&&t.options.right.mode!==null&&(o=t.options.right.mode),o}function le(t,e){let{theme:o}=t.options;return e===v.EDITOR_LEFT&&t.options.left.theme!==null&&(o=t.options.left.theme),e===v.EDITOR_RIGHT&&t.options.right.theme!==null&&(o=t.options.right.theme),o}function ve(t,e){return t.ace.getSession().doc.getLine(e)}function pt(t){return document.getElementById(t.options.left.id).offsetHeight}function se(t){const e=document.createElement("div"),o={class:t.className,style:`top:${t.topOffset}px`,title:t.tooltip,"data-diff-index":t.diffIndex};for(const l in o)e.setAttribute(l,o[l]);return e.innerHTML=t.arrowContent,e}function q(t,e){const o=Math.random().toString(36).substr(2,5),l=`js-${e}-${o}`,i=t.querySelector(`.${e}`);if(i)return i.id=i.id||l,i.id;const r=document.createElement("div");return t.appendChild(r),r.className=e,r.id=l,r.id}function ae(t,e,o,l){const i=t==="document"?document:document.querySelector(t);i.addEventListener(e,r=>{const s=i.querySelectorAll(o),{target:a}=r;for(let c=0,d=s.length;c<d;c+=1){let u=a;const h=s[c];for(;u&&u!==i;)u===h&&l.call(h,r),u=u.parentNode}})}let O;function mt(t){if(t.Range)return t.Range;const e=t.acequire||t.require;return e?e("ace/range"):!1}function F(t={}){if(!(this instanceof F))return new F(t);const e=this,o=()=>window?window.ace:void 0;e.options=Y({ace:o(),mode:null,theme:null,element:null,diffGranularity:v.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"&#8594;",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"&#8592;",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},t);const{ace:l}=e.options;if(!l){const i="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(i),new Error(i)}if(O=mt(l),!O){const i="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(i),new Error(i)}if(e.options.element===null){const i="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(i),new Error(i)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const i=`Can't find the specified element ${e.options.element}`;return console.error(i),new Error(i)}e.options.left.id=q(e.el,"acediff__left"),e.options.classes.gutterID=q(e.el,"acediff__gutter"),e.options.right.id=q(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:l.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:l.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(re(e,v.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(re(e,v.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setTheme(le(e,v.EDITOR_LEFT)),e.editors.right.ace.setTheme(le(e,v.EDITOR_RIGHT)),e.editors.left.ace.setValue(oe(e.options.left.content),-1),e.editors.right.ace.setValue(oe(e.options.right.content),-1),e.editors.editorHeight=pt(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,ft(e),Ct(e),we(e),e.diff()},1)}F.prototype={setOptions(t){Y(this.options,t),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const t=this.editors.left.ace.getSession().getValue(),e=this.editors.right.ace.getSession().getValue(),o=be(rt(e,t));this.editors.left.lineLengths=de(this.editors.left),this.editors.right.lineLengths=de(this.editors.right);const l=[],i={left:0,right:0};o.forEach(r=>{const s=r[0];let a=r[1];a.length!==0&&(s===v.DIFF_EQUAL?(i.left+=a.length,i.right+=a.length):s===v.DIFF_DELETE?(l.push(ge(this,v.DIFF_DELETE,i.left,i.right,a)),i.right+=a.length):s===v.DIFF_INSERT&&(l.push(ge(this,v.DIFF_INSERT,i.left,i.right,a)),i.left+=a.length))},this),this.diffs=Vt(this,l),!(this.diffs.length>this.options.maxDiffs)&&(Ce(this),xe(this))},destroy(){const t=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,o=e.cloneNode(!1);o.textContent=t,e.parentNode.replaceChild(o,e);const l=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,o=e.cloneNode(!1),o.textContent=l,e.parentNode.replaceChild(o,e);const i=document.getElementById(this.options.classes.gutterID);i&&(i.innerHTML=""),this.removeEventHandlers()}};function ft(t){t.editors.left.ace.getSession().on("changeScrollTop",ne(()=>{he(t)},16)),t.editors.right.ace.getSession().on("changeScrollTop",ne(()=>{he(t)},16));const e=t.diff.bind(t);t.editors.left.ace.on("change",e),t.editors.right.ace.on("change",e),t.options.left.copyLinkEnabled&&ae(`#${t.options.classes.gutterID}`,"click",`.${t.options.classes.newCodeConnectorLink}`,l=>{ce(t,l,v.LTR)}),t.options.right.copyLinkEnabled&&ae(`#${t.options.classes.gutterID}`,"click",`.${t.options.classes.deletedCodeConnectorLink}`,l=>{ce(t,l,v.RTL)});const o=gt(()=>{t.editors.availableHeight=document.getElementById(t.options.left.id).offsetHeight,t.diff()},250);window.addEventListener("resize",o),t.removeEventHandlers=()=>{window.removeEventListener("resize",o)}}function ce(t,e,o){const l=parseInt(e.target.getAttribute("data-diff-index"),10),i=t.diffs[l];let r,s,a,c,d,u;o===v.LTR?(r=t.editors.left,s=t.editors.right,a=i.leftStartLine,c=i.leftEndLine,d=i.rightStartLine,u=i.rightEndLine):(r=t.editors.right,s=t.editors.left,a=i.rightStartLine,c=i.rightEndLine,d=i.leftStartLine,u=i.leftEndLine);let h="";for(let p=a;p<c;p+=1)h+=ve(r,p),p<r.ace.getSession().getLength()-1&&(h+=`
4
+ `);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new O(d,0,u,0),h),s.ace.getSession().setScrollTop(parseInt(g,10)),t.diff()}function de(t){const e=t.ace.getSession().doc.getAllLines(),o=[];return e.forEach(l=>{o.push(l.length+1)}),o}function ue(t,e,o,l,i){const r=t.editors[e];l<o&&(l=o);const s=`${i} ${l>o?"lines":"targetOnly"}`;l>o&&(l-=1),r.markers.push(r.ace.session.addMarker(new O(o,0,l,1),s,"fullLine"))}function he(t){Ce(t),xe(t),vt(t)}function Ce(t){t.editors.left.markers.forEach(e=>{t.editors.left.ace.getSession().removeMarker(e)},t),t.editors.right.markers.forEach(e=>{t.editors.right.ace.getSession().removeMarker(e)},t)}function _t(t,e,o,l,i){const r=t.editors.left.ace.getSession().getScrollTop(),s=t.editors.right.ace.getSession().getScrollTop();t.connectorYOffset=1;const a=-1,c=e*t.lineHeight-r+.5,d=t.gutterWidth+1,u=l*t.lineHeight-s+.5,h=-1,g=o*t.lineHeight-r+t.connectorYOffset+.5,p=t.gutterWidth+1,_=i*t.lineHeight-s+t.connectorYOffset+.5,V=ie(a,c,d,u),C=ie(p,_,h,g),f=`L${d},${u} ${p},${_}`,b=`L${h},${g} ${a},${c}`,m=`${V} ${f} ${C} ${b}`,w=document.createElementNS(v.SVG_NS,"path");w.setAttribute("d",m),w.setAttribute("class",t.options.classes.connector),t.gutterSVG.appendChild(w)}function bt(t,e,o){if(e.leftEndLine>e.leftStartLine&&t.options.left.copyLinkEnabled){const l=se({className:t.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*t.lineHeight,tooltip:"Copy to right",diffIndex:o,arrowContent:t.options.classes.newCodeConnectorLinkContent});t.copyRightContainer.appendChild(l)}if(e.rightEndLine>e.rightStartLine&&t.options.right.copyLinkEnabled){const l=se({className:t.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*t.lineHeight,tooltip:"Copy to left",diffIndex:o,arrowContent:t.options.classes.deletedCodeConnectorLinkContent});t.copyLeftContainer.appendChild(l)}}function vt(t){const e=t.editors.left.ace.getSession().getScrollTop(),o=t.editors.right.ace.getSession().getScrollTop();t.copyRightContainer.style.cssText=`top: ${-e}px`,t.copyLeftContainer.style.cssText=`top: ${-o}px`}function ge(t,e,o,l,i){let r={};if(e===v.DIFF_INSERT){let s=pe(t.editors.left,o,i),a=me(t.editors.right,l),c=D(t.editors.right,a);const d=D(t.editors.left,s.startLine);let u=a,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&i.length<d)&&c>0&&s.startChar<d&&g++,r={leftStartLine:s.startLine,leftEndLine:s.endLine+1,rightStartLine:u,rightEndLine:u+g}}else{let s=pe(t.editors.right,l,i),a=me(t.editors.left,o),c=D(t.editors.left,a);const d=D(t.editors.right,s.startLine);let u=a,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&i.length<d)&&c>0&&s.startChar<d&&g++,r={leftStartLine:u,leftEndLine:u+g,rightStartLine:s.startLine,rightEndLine:s.endLine+1}}return r}function pe(t,e,o){const l={startLine:0,startChar:0,endLine:0,endChar:0},i=e+o.length;let r=0,s=!1,a=!1;t.lineLengths.forEach((d,u)=>{r+=d,!s&&e<r&&(l.startLine=u,l.startChar=e-r+d,s=!0),!a&&i<=r&&(l.endLine=u,l.endChar=i-r+d,a=!0)}),l.startChar>0&&D(t,l.startLine)===l.startChar&&(l.startLine++,l.startChar=0),l.endChar===0&&l.endLine--;const c=/\n$/.test(o);return l.startChar>0&&c&&l.endLine++,l}function D(t,e){return ve(t,e).length}function me(t,e){const o=t.ace.getSession().doc.getAllLines();let l=0,i=0;for(let r=0;r<o.length;r+=1)if(i+=o[r].length+1,e<=i){l=r,e===i&&r<o.length-1&&(l+=1);break}return i>=t.ace.getSession().getValue().length&&(l+=1),l}function we(t){t.gutterHeight=document.getElementById(t.options.classes.gutterID).clientHeight,t.gutterWidth=document.getElementById(t.options.classes.gutterID).clientWidth;const e=fe(t,v.EDITOR_LEFT),o=fe(t,v.EDITOR_RIGHT),l=Math.max(e,o,t.gutterHeight);t.gutterSVG=document.createElementNS(v.SVG_NS,"svg"),t.gutterSVG.setAttribute("width",t.gutterWidth),t.gutterSVG.setAttribute("height",l),document.getElementById(t.options.classes.gutterID).appendChild(t.gutterSVG)}function fe(t,e){return(e===v.EDITOR_LEFT?t.editors.left:t.editors.right).ace.getSession().getLength()*t.lineHeight}function Ct(t){t.copyRightContainer=document.createElement("div"),t.copyRightContainer.setAttribute("class",t.options.classes.copyRightContainer),t.copyLeftContainer=document.createElement("div"),t.copyLeftContainer.setAttribute("class",t.options.classes.copyLeftContainer),document.getElementById(t.options.classes.gutterID).appendChild(t.copyRightContainer),document.getElementById(t.options.classes.gutterID).appendChild(t.copyLeftContainer)}function wt(t){document.getElementById(t.options.classes.gutterID).removeChild(t.gutterSVG),we(t)}function xt(t){t.copyLeftContainer.innerHTML="",t.copyRightContainer.innerHTML=""}function Vt(t,e){const o=[];function l(r){return t.options.diffGranularity===v.DIFF_GRANULARITY_SPECIFIC?r<1:r<=1}e.forEach((r,s)=>{if(s===0){o.push(r);return}let a=!1;for(let c=0;c<o.length;c+=1)if(l(Math.abs(r.leftStartLine-o[c].leftEndLine))&&l(Math.abs(r.rightStartLine-o[c].rightEndLine))){o[c].leftStartLine=Math.min(r.leftStartLine,o[c].leftStartLine),o[c].rightStartLine=Math.min(r.rightStartLine,o[c].rightStartLine),o[c].leftEndLine=Math.max(r.leftEndLine,o[c].leftEndLine),o[c].rightEndLine=Math.max(r.rightEndLine,o[c].rightEndLine),a=!0;break}a||o.push(r)});const i=[];return o.forEach(r=>{r.leftStartLine===r.leftEndLine&&r.rightStartLine===r.rightEndLine||i.push(r)}),i}function xe(t){wt(t),xt(t),t.diffs.forEach((e,o)=>{t.options.showDiffs&&(ue(t,v.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,t.options.classes.diff),ue(t,v.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,t.options.classes.diff),t.options.showConnectors&&_t(t,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),bt(t,e,o))},t)}const Et={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},mounted(){const t=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new t),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new F({element:this.$refs.editor,mode:new t,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let t=this.differ.diffs[this.curDiff].leftStartLine,e=this.differ.diffs[this.curDiff].rightStartLine;t>5&&(t-=5),e>5&&(e-=5),this.differ.getEditors().left.scrollToLine(t),this.differ.getEditors().right.scrollToLine(e)},buildPluginMode(){let t=E.aceExports.require("ace/lib/oop"),e=E.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,o=["VARIABLE"],l=new RegExp(`(\\b${o.join("\\b|\\b")}\\b)`),i=function(){e.call(this);for(let u in this.$rules)this.$rules[u].unshift({regex:l,token:"support.function"})};t.inherits(i,e);let r=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=E.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=i,this.$outdent=new r,this.$behaviour=new s,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},d=E.aceExports.require("ace/mode/ruby").Mode;return t.inherits(c,d),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
10
5
  `)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
11
- `)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(e=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
12
- `))}).catch(e=>{})},emitSubmit(e){let t={name:this.pluginName,variables:n.toRaw(this.localVariables),plugin_txt_lines:e};this.$emit("callback",t)},close:function(){this.show=!this.show},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){this.editor&&S.AceEditorUtils.toggleVimMode(this.editor)}}},He={style:{flex:"1"}},qe={class:"pa-3"},Ge={ref:"editor",class:"editor"},$e={key:0};function je(e,t,i,r,l,o){const s=n.resolveComponent("v-card-title"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-tab"),u=n.resolveComponent("v-tabs"),h=n.resolveComponent("v-text-field"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-window-item"),_=n.resolveComponent("v-list-item-title"),x=n.resolveComponent("v-list-item"),b=n.resolveComponent("v-divider"),m=n.resolveComponent("v-list"),w=n.resolveComponent("v-menu"),C=n.resolveComponent("v-window"),v=n.resolveComponent("v-btn"),V=n.resolveComponent("v-spacer"),N=n.resolveComponent("v-card-actions"),T=n.resolveComponent("v-card-text"),L=n.resolveComponent("v-card"),D=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(D,{modelValue:o.show,"onUpdate:modelValue":t[5]||(t[5]=k=>o.show=k),persistent:"",width:"80vw"},{default:n.withCtx(()=>[n.createVNode(L,null,{default:n.withCtx(()=>[n.createVNode(T,null,{default:n.withCtx(()=>[n.createVNode(s,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.pluginName),1)]),_:1}),i.existingPluginTxt!==null?(n.openBlock(),n.createBlock(c,{key:0,class:"notice d-flex flex-row"},{default:n.withCtx(()=>[n.createVNode(a,{size:"x-large",start:"",color:"yellow"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" mdi-alert-box ")])),_:1}),n.createElementVNode("div",He," The existing plugin.txt is different from the "+n.toDisplayString(i.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+n.toDisplayString(i.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(c,{class:"pb-3 pr-3"},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:l.tab,"onUpdate:modelValue":t[0]||(t[0]=k=>l.tab=k),class:"ml-3"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" Variables ")])),_:1})),(n.openBlock(),n.createBlock(d,{key:1},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),n.createElementVNode("form",{onSubmit:t[4]||(t[4]=n.withModifiers((...k)=>e.onSubmit&&e.onSubmit(...k),["prevent"]))},[n.createVNode(C,{modelValue:l.tab,"onUpdate:modelValue":t[3]||(t[3]=k=>l.tab=k)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(p,{key:0,eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createElementVNode("div",qe,[n.createVNode(c,{class:"mt-3"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.localVariables,(k,R)=>(n.openBlock(),n.createElementBlock("div",{key:R},[n.createVNode(g,{style:{width:"220px"}},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:l.localVariables[R],"onUpdate:modelValue":se=>l.localVariables[R]=se,clearable:"",type:"text",label:R},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),i.existingPluginTxt===null?(n.openBlock(),n.createBlock(p,{key:"1-new",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" This can be edited before installation. ")])),_:1})]),_:1}),n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...k)=>o.showContextMenu&&o.showContextMenu(...k),["prevent"]))},null,544),n.createVNode(w,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=k=>l.contextMenu=k),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(x,{link:""},{default:n.withCtx(()=>[n.createVNode(_,{onClick:e.openDocumentation},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(b),n.createVNode(x,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1})):(n.openBlock(),n.createBlock(p,{key:"1-existing",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[10]||(t[10]=[n.createTextVNode(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),n.createVNode(g,{class:"ml-6"},{default:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),n.createElementVNode("pre",Ge,null,512)]),_:1}))]),_:1},8,["modelValue"]),n.createVNode(N,{class:"px-2 mt-2"},{default:n.withCtx(()=>[i.existingPluginTxt!==null?(n.openBlock(),n.createElementBlock("div",$e,[n.createVNode(v,{variant:"text",onClick:o.nextDiff},{default:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" Next Diff ")])),_:1},8,["onClick"]),n.createVNode(v,{variant:"text",onClick:o.previousDiff},{default:n.withCtx(()=>t[13]||(t[13]=[n.createTextVNode(" Previous Diff ")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(V),n.createVNode(v,{variant:"outlined","data-test":"edit-cancel",onClick:n.withModifiers(o.close,["prevent"])},{default:n.withCtx(()=>t[14]||(t[14]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),n.createVNode(v,{variant:"flat","data-test":"edit-submit",onClick:o.submit},{default:n.withCtx(()=>t[15]||(t[15]=[n.createTextVNode(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ye=I._export_sfc(Fe,[["render",je],["__scopeId","data-v-5b18ccf5"]]);exports.DownloadDialog=pe;exports.EditDialog=ve;exports.ModifiedPluginDialog=Ee;exports.OpenC3Admin=Se;exports.PluginDialog=Ye;exports.TabsList=te;
6
+ `)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(t=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
7
+ `))}).catch(t=>{})},emitSubmit(t){let e={name:this.pluginName,variables:n.toRaw(this.localVariables),plugin_txt_lines:t};this.$emit("callback",e)},close:function(){this.show=!this.show},showContextMenu:function(t){this.menuX=t.pageX,this.menuY=t.pageY;let e=this.editor.getCursorPosition(),o=this.editor.session.getTokenAt(e.row,e.column);if(o){let l=o.value.trim();l.includes(" ")?this.docsKeyword=l.split(" ")[0]:this.docsKeyword=l,this.contextMenu=!0}},toggleVimMode:function(){this.editor&&S.AceEditorUtils.toggleVimMode(this.editor)}}},yt={style:{flex:"1"}},Lt={class:"pa-3"},Nt={ref:"editor",class:"editor"},kt={key:0};function Tt(t,e,o,l,i,r){const s=n.resolveComponent("v-card-title"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-tab"),u=n.resolveComponent("v-tabs"),h=n.resolveComponent("v-text-field"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-window-item"),_=n.resolveComponent("v-list-item-title"),V=n.resolveComponent("v-list-item"),C=n.resolveComponent("v-divider"),f=n.resolveComponent("v-list"),b=n.resolveComponent("v-menu"),m=n.resolveComponent("v-window"),w=n.resolveComponent("v-btn"),L=n.resolveComponent("v-spacer"),T=n.resolveComponent("v-card-actions"),H=n.resolveComponent("v-card-text"),Ve=n.resolveComponent("v-card"),Ee=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(Ee,{modelValue:r.show,"onUpdate:modelValue":e[5]||(e[5]=k=>r.show=k),persistent:"",width:"80vw"},{default:n.withCtx(()=>[n.createVNode(Ve,null,{default:n.withCtx(()=>[n.createVNode(H,null,{default:n.withCtx(()=>[n.createVNode(s,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(o.pluginName),1)]),_:1}),o.existingPluginTxt!==null?(n.openBlock(),n.createBlock(c,{key:0,class:"notice d-flex flex-row"},{default:n.withCtx(()=>[n.createVNode(a,{size:"x-large",start:"",color:"yellow"},{default:n.withCtx(()=>e[6]||(e[6]=[n.createTextVNode(" mdi-alert-box ")])),_:1}),n.createElementVNode("div",yt," The existing plugin.txt is different from the "+n.toDisplayString(o.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+n.toDisplayString(o.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(c,{class:"pb-3 pr-3"},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:i.tab,"onUpdate:modelValue":e[0]||(e[0]=k=>i.tab=k),class:"ml-3"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>e[7]||(e[7]=[n.createTextVNode(" Variables ")])),_:1})),(n.openBlock(),n.createBlock(d,{key:1},{default:n.withCtx(()=>e[8]||(e[8]=[n.createTextVNode(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),n.createElementVNode("form",{onSubmit:e[4]||(e[4]=n.withModifiers((...k)=>t.onSubmit&&t.onSubmit(...k),["prevent"]))},[n.createVNode(m,{modelValue:i.tab,"onUpdate:modelValue":e[3]||(e[3]=k=>i.tab=k)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(p,{key:0,eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createElementVNode("div",Lt,[n.createVNode(c,{class:"mt-3"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.localVariables,(k,I)=>(n.openBlock(),n.createElementBlock("div",{key:I},[n.createVNode(g,{style:{width:"220px"}},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:i.localVariables[I],"onUpdate:modelValue":ye=>i.localVariables[I]=ye,clearable:"",type:"text",label:I},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),o.existingPluginTxt===null?(n.openBlock(),n.createBlock(p,{key:"1-new",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>e[9]||(e[9]=[n.createTextVNode(" This can be edited before installation. ")])),_:1})]),_:1}),n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=n.withModifiers((...k)=>r.showContextMenu&&r.showContextMenu(...k),["prevent"]))},null,544),n.createVNode(b,{modelValue:i.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=k=>i.contextMenu=k),target:[i.menuX,i.menuY]},{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createVNode(V,{link:""},{default:n.withCtx(()=>[n.createVNode(_,{onClick:t.openDocumentation},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C),n.createVNode(V,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:r.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1})):(n.openBlock(),n.createBlock(p,{key:"1-existing",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>e[10]||(e[10]=[n.createTextVNode(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),n.createVNode(g,{class:"ml-6"},{default:n.withCtx(()=>e[11]||(e[11]=[n.createTextVNode(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),n.createElementVNode("pre",Nt,null,512)]),_:1}))]),_:1},8,["modelValue"]),n.createVNode(T,{class:"px-2 mt-2"},{default:n.withCtx(()=>[o.existingPluginTxt!==null?(n.openBlock(),n.createElementBlock("div",kt,[n.createVNode(w,{variant:"text",onClick:r.nextDiff},{default:n.withCtx(()=>e[12]||(e[12]=[n.createTextVNode(" Next Diff ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"text",onClick:r.previousDiff},{default:n.withCtx(()=>e[13]||(e[13]=[n.createTextVNode(" Previous Diff ")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(L),n.createVNode(w,{variant:"outlined","data-test":"edit-cancel",onClick:n.withModifiers(r.close,["prevent"])},{default:n.withCtx(()=>e[14]||(e[14]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"flat","data-test":"edit-submit",onClick:r.submit},{default:n.withCtx(()=>e[15]||(e[15]=[n.createTextVNode(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const St=M._export_sfc(Et,[["render",Tt],["__scopeId","data-v-5b18ccf5"]]);exports.DownloadDialog=Me;exports.EditDialog=Pe;exports.ModifiedPluginDialog=Ue;exports.OpenC3Admin=Ye;exports.PluginDialog=St;exports.TabsList=_e;
13
8
  //# sourceMappingURL=admin.cjs.map