@camera.ui/server 0.0.63-internal.2 → 0.0.64

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 (164) hide show
  1. package/dist/interface/assets/main.B-DXUtPa.0.0.64.css +1 -0
  2. package/dist/interface/index.html +44 -44
  3. package/dist/interface/js/{@intlify.BkGPX90O.0.0.63-internal.2.js → @intlify.BIbPqCER.0.0.64.js} +4 -4
  4. package/dist/interface/js/{@primevue.OFvC9Jyz.0.0.63-internal.2.js → @primevue.CmI9gDHB.0.0.64.js} +1 -1
  5. package/dist/interface/js/@tanstack.a3M2yFKp.0.0.64.js +1 -0
  6. package/dist/interface/js/{@vee-validate.C2scZ1Xe.0.0.63-internal.2.js → @vee-validate.C7vvUs8h.0.0.64.js} +2 -2
  7. package/dist/interface/js/@vue.BxBKarQv.0.0.64.js +17 -0
  8. package/dist/interface/js/@vueuse.CrzNw-Ap.0.0.64.js +1 -0
  9. package/dist/interface/js/Adminpanel.Cr9cLAVO.0.0.64.js +1 -0
  10. package/dist/interface/js/Camera.PUrVh71A.0.0.64.js +1 -0
  11. package/dist/interface/js/{Cameras.nuYqgHms.0.0.63-internal.2.js → Cameras.BOIq1uuW.0.0.64.js} +2 -2
  12. package/dist/interface/js/Cammesh.DzbbmpBq.0.0.64.js +1 -0
  13. package/dist/interface/js/Camview.DBZOlAZ1.0.0.64.js +1 -0
  14. package/dist/interface/js/Config.CN7_wXsV.0.0.64.js +2 -0
  15. package/dist/interface/js/Console.BmVLvya9.0.0.64.js +4 -0
  16. package/dist/interface/js/CuiConsole.IQ_54YIe.0.0.64.js +1 -0
  17. package/dist/interface/js/CuiPluginCard.Dxq5PA3u.0.0.64.js +4 -0
  18. package/dist/interface/js/CuiTimeline.Dvg-A_D3.0.0.64.js +1 -0
  19. package/dist/interface/js/FirstSteps.D21zB4I8.0.0.64.js +1 -0
  20. package/dist/interface/js/Plugin.CfcJolDg.0.0.64.js +1 -0
  21. package/dist/interface/js/Plugins.BDGFT4rc.0.0.64.js +1 -0
  22. package/dist/interface/js/Recordings.i1TKNg0g.0.0.64.js +1 -0
  23. package/dist/interface/js/Settings.n1QgVCKo.0.0.64.js +1 -0
  24. package/dist/interface/js/SettingsAccount.DKOD5pn9.0.0.64.js +1 -0
  25. package/dist/interface/js/SettingsAppearance.DC-07_Te.0.0.64.js +1 -0
  26. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.CdbksPIo.0.0.64.js +1 -0
  27. package/dist/interface/js/SettingsBackup.B6E4lHe4.0.0.64.js +1 -0
  28. package/dist/interface/js/SettingsRecordings.DpSe0tNQ.0.0.64.js +1 -0
  29. package/dist/interface/js/SettingsRemote.f8St_CxB.0.0.64.js +1 -0
  30. package/dist/interface/js/SettingsSystem.DT9sW8Bn.0.0.64.js +1 -0
  31. package/dist/interface/js/SettingsUsers.B4zh8W2n.0.0.64.js +1 -0
  32. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.B3uSmbkC.0.0.64.js +4 -0
  33. package/dist/interface/js/{ace-builds.BS05_5NF.0.0.63-internal.2.js → ace-builds.o3mMMRPR.0.0.64.js} +2 -2
  34. package/dist/interface/js/ace.config.DPCh40Y7.0.0.64.js +1 -0
  35. package/dist/interface/js/backup.DO1-cZ9-.0.0.64.js +1 -0
  36. package/dist/interface/js/{chart.js.B3HKJR-2.0.0.63-internal.2.js → chart.js.C8Mk0WY-.0.0.64.js} +1 -1
  37. package/dist/interface/js/close-circle.JtgTH15k.0.0.64.js +1 -0
  38. package/dist/interface/js/dnd-core.Bx9xaNPa.0.0.64.js +1 -0
  39. package/dist/interface/js/{draggabilly.CCdX2bwY.0.0.63-internal.2.js → draggabilly.D5Tqj-Pe.0.0.64.js} +1 -1
  40. package/dist/interface/js/engine.io-client.QoXAw3T2.0.0.64.js +1 -0
  41. package/dist/interface/js/fast-deep-equal.BCDE3b5h.0.0.64.js +1 -0
  42. package/dist/interface/js/{highlight.js.DXH817i9.0.0.63-internal.2.js → highlight.js.Cl8NtSQj.0.0.64.js} +1 -1
  43. package/dist/interface/js/linkify-it.C7Vybjuw.0.0.64.js +1 -0
  44. package/dist/interface/js/main.Bbw0FMaK.0.0.64.js +31 -0
  45. package/dist/interface/js/{markdown-it.-C4hVAY0.0.0.63-internal.2.js → markdown-it.DORLzL2K.0.0.64.js} +1 -1
  46. package/dist/interface/js/{nprogress.BrmTaVqI.0.0.63-internal.2.js → nprogress.CnzttbPh.0.0.64.js} +1 -1
  47. package/dist/interface/js/{pinia.BNxvm1I1.0.0.63-internal.2.js → pinia.9X0kaQsa.0.0.64.js} +2 -2
  48. package/dist/interface/js/{primevue.DsyHFHyM.0.0.63-internal.2.js → primevue.biDzr1tV.0.0.64.js} +1 -1
  49. package/dist/interface/js/{qrcode.BYm6YEi7.0.0.63-internal.2.js → qrcode.JP5fcfb-.0.0.64.js} +1 -1
  50. package/dist/interface/js/react-dnd-touch-backend.creckxB4.0.0.64.js +1 -0
  51. package/dist/interface/js/refresh-rounded.BkvK54dd.0.0.64.js +1 -0
  52. package/dist/interface/js/{rxjs.Of95_yzd.0.0.63-internal.2.js → rxjs.Bn5s3PW8.0.0.64.js} +1 -1
  53. package/dist/interface/js/socket.io-client.DfD_gFzU.0.0.64.js +1 -0
  54. package/dist/interface/js/socket.io-parser.bDxrXN8d.0.0.64.js +1 -0
  55. package/dist/interface/js/system.CyLB9Qia.0.0.64.js +1 -0
  56. package/dist/interface/js/trash-fill.DVgSz9-h.0.0.64.js +1 -0
  57. package/dist/interface/js/{unidragger.DvCUBzU4.0.0.63-internal.2.js → unidragger.sbyCyCtI.0.0.64.js} +1 -1
  58. package/dist/interface/js/{vee-validate.BD_HTi0Z.0.0.63-internal.2.js → vee-validate.Y46tSO5P.0.0.64.js} +2 -2
  59. package/dist/interface/js/vue-chartjs.CNgApzKN.0.0.64.js +1 -0
  60. package/dist/interface/js/vue-i18n.DT9DWshi.0.0.64.js +5 -0
  61. package/dist/interface/js/vue-inline-svg.DNIHHt2R.0.0.64.js +1 -0
  62. package/dist/interface/js/{vue-router.BHq9S-xX.0.0.63-internal.2.js → vue-router.Ct6ui15G.0.0.64.js} +1 -1
  63. package/dist/interface/js/vue-zoomable.D6Sv0QVL.0.0.64.js +1 -0
  64. package/dist/interface/js/vue3-dnd.DRABWH33.0.0.64.js +1 -0
  65. package/dist/interface/js/zod.2bfLsWMZ.0.0.64.js +1 -0
  66. package/dist/interface/js/zoom-out.CTXHwELe.0.0.64.js +1 -0
  67. package/dist/interface/sw.js +1 -1
  68. package/dist/server/package.json +22 -22
  69. package/dist/server/requirements.txt +2 -2
  70. package/package.json +22 -22
  71. package/dist/interface/assets/main.DYKKLRxP.0.0.63-internal.2.css +0 -1
  72. package/dist/interface/js/@tanstack.bguq3B-c.0.0.63-internal.2.js +0 -1
  73. package/dist/interface/js/@vue.Dh6viqaK.0.0.63-internal.2.js +0 -17
  74. package/dist/interface/js/@vueuse.BNorETmX.0.0.63-internal.2.js +0 -1
  75. package/dist/interface/js/Adminpanel.DB8dKGLC.0.0.63-internal.2.js +0 -1
  76. package/dist/interface/js/Camera.BO6mV2JP.0.0.63-internal.2.js +0 -1
  77. package/dist/interface/js/Cammesh.CD00TqO3.0.0.63-internal.2.js +0 -1
  78. package/dist/interface/js/Camview.CY7aU3lr.0.0.63-internal.2.js +0 -1
  79. package/dist/interface/js/Config.C1e8RQyR.0.0.63-internal.2.js +0 -2
  80. package/dist/interface/js/Console.D0GHrVmt.0.0.63-internal.2.js +0 -4
  81. package/dist/interface/js/CuiConsole.D0EI-K-x.0.0.63-internal.2.js +0 -1
  82. package/dist/interface/js/CuiPluginCard.B6eI45HP.0.0.63-internal.2.js +0 -4
  83. package/dist/interface/js/CuiTimeline.BT8I9bzO.0.0.63-internal.2.js +0 -1
  84. package/dist/interface/js/FirstSteps.C_ShUtFR.0.0.63-internal.2.js +0 -1
  85. package/dist/interface/js/Plugin.DMKAF5Bb.0.0.63-internal.2.js +0 -1
  86. package/dist/interface/js/Plugins.C4vg4pCw.0.0.63-internal.2.js +0 -1
  87. package/dist/interface/js/Recordings.utY-uEem.0.0.63-internal.2.js +0 -1
  88. package/dist/interface/js/Settings.CRwjH98h.0.0.63-internal.2.js +0 -1
  89. package/dist/interface/js/SettingsAccount.DkYI91YE.0.0.63-internal.2.js +0 -1
  90. package/dist/interface/js/SettingsAppearance.aJorYft0.0.0.63-internal.2.js +0 -1
  91. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.CMplaYPe.0.0.63-internal.2.js +0 -1
  92. package/dist/interface/js/SettingsBackup.Chvgm94y.0.0.63-internal.2.js +0 -1
  93. package/dist/interface/js/SettingsRecordings.Cz7Hm3Zq.0.0.63-internal.2.js +0 -1
  94. package/dist/interface/js/SettingsRemote.C8J05Sqq.0.0.63-internal.2.js +0 -1
  95. package/dist/interface/js/SettingsSystem.CbK0Ly6N.0.0.63-internal.2.js +0 -1
  96. package/dist/interface/js/SettingsUsers.C56QPZDG.0.0.63-internal.2.js +0 -1
  97. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.CjTaNbob.0.0.63-internal.2.js +0 -4
  98. package/dist/interface/js/ace.config.Dq0m32uv.0.0.63-internal.2.js +0 -1
  99. package/dist/interface/js/backup.D31lBYjG.0.0.63-internal.2.js +0 -1
  100. package/dist/interface/js/close-circle.D4m48WBa.0.0.63-internal.2.js +0 -1
  101. package/dist/interface/js/dnd-core.DXEmaUKV.0.0.63-internal.2.js +0 -1
  102. package/dist/interface/js/engine.io-client.B1g5HxlF.0.0.63-internal.2.js +0 -1
  103. package/dist/interface/js/fast-deep-equal.Ds0OQoKg.0.0.63-internal.2.js +0 -1
  104. package/dist/interface/js/linkify-it.Ber55OMX.0.0.63-internal.2.js +0 -1
  105. package/dist/interface/js/main.DPYGZ-bm.0.0.63-internal.2.js +0 -31
  106. package/dist/interface/js/react-dnd-touch-backend.CZPV1Oay.0.0.63-internal.2.js +0 -1
  107. package/dist/interface/js/refresh-rounded.B1yhAK1l.0.0.63-internal.2.js +0 -1
  108. package/dist/interface/js/socket.io-client.CGvOp9Cx.0.0.63-internal.2.js +0 -1
  109. package/dist/interface/js/socket.io-parser.BPgP9-bg.0.0.63-internal.2.js +0 -1
  110. package/dist/interface/js/system.BUGe7Zjz.0.0.63-internal.2.js +0 -1
  111. package/dist/interface/js/trash-fill.C7xIhfGl.0.0.63-internal.2.js +0 -1
  112. package/dist/interface/js/vue-chartjs.ArBE3ZAw.0.0.63-internal.2.js +0 -1
  113. package/dist/interface/js/vue-i18n.B_tRezRH.0.0.63-internal.2.js +0 -5
  114. package/dist/interface/js/vue-inline-svg.ClEWDGtH.0.0.63-internal.2.js +0 -1
  115. package/dist/interface/js/vue-zoomable.7cLa2zon.0.0.63-internal.2.js +0 -1
  116. package/dist/interface/js/vue3-dnd.DS0_w8hd.0.0.63-internal.2.js +0 -1
  117. package/dist/interface/js/zod.sy4ilHCy.0.0.63-internal.2.js +0 -1
  118. package/dist/interface/js/zoom-out.DRKLqW-U.0.0.63-internal.2.js +0 -1
  119. /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.63-internal.2.css → @xterm.DYP7pi_n.0.0.64.css} +0 -0
  120. /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.63-internal.2.css → Adminpanel.BKek2EMH.0.0.64.css} +0 -0
  121. /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.63-internal.2.css → Cameras.BDWZJqPN.0.0.64.css} +0 -0
  122. /package/dist/interface/assets/{Camview.Cvhuou6V.0.0.63-internal.2.css → Camview.Cvhuou6V.0.0.64.css} +0 -0
  123. /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.63-internal.2.css → CuiConsole.DCYyxdVg.0.0.64.css} +0 -0
  124. /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.63-internal.2.css → CuiPluginCard.yF8V0SZY.0.0.64.css} +0 -0
  125. /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.63-internal.2.css → CuiTimeline.BkIwlYtw.0.0.64.css} +0 -0
  126. /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.63-internal.2.css → Plugin.DJElsAn5.0.0.64.css} +0 -0
  127. /package/dist/interface/assets/{Plugins.BwPlcRrV.0.0.63-internal.2.css → Plugins.BwPlcRrV.0.0.64.css} +0 -0
  128. /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.63-internal.2.css → Settings.CkgfRkQr.0.0.64.css} +0 -0
  129. /package/dist/interface/assets/{SettingsAccount.CDZT7gN-.0.0.63-internal.2.css → SettingsAccount.CDZT7gN-.0.0.64.css} +0 -0
  130. /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.63-internal.2.css → SettingsBackup.CX0rT0QJ.0.0.64.css} +0 -0
  131. /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.63-internal.2.css → highlight.Ch2EwETz.0.0.64.css} +0 -0
  132. /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.63-internal.2.png → logo-256.BCQk9H1-.0.0.64.png} +0 -0
  133. /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.63-internal.2.png → logo-512.DLKVOU2S.0.0.64.png} +0 -0
  134. /package/dist/interface/assets/{logo.DmEiRk0z.0.0.63-internal.2.png → logo.DmEiRk0z.0.0.64.png} +0 -0
  135. /package/dist/interface/assets/{mode-json.Br7xisR1.0.0.63-internal.2.js → mode-json.Br7xisR1.0.0.64.js} +0 -0
  136. /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.63-internal.2.js → mode-yaml.CIYL8U3d.0.0.64.js} +0 -0
  137. /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.63-internal.2.js → worker-base.jEXLGV2h.0.0.64.js} +0 -0
  138. /package/dist/interface/assets/{worker-json.DgwNIOck.0.0.63-internal.2.js → worker-json.DgwNIOck.0.0.64.js} +0 -0
  139. /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.63-internal.2.js → worker-yaml.B3uUYINB.0.0.64.js} +0 -0
  140. /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.63-internal.2.js → @babel.l0sNRNKZ.0.0.64.js} +0 -0
  141. /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.63-internal.2.js → @kurkle.D8fDXNIl.0.0.64.js} +0 -0
  142. /package/dist/interface/js/{@primeuix.BkBDkSvZ.0.0.63-internal.2.js → @primeuix.BkBDkSvZ.0.0.64.js} +0 -0
  143. /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.63-internal.2.js → @react-dnd.CcwRs9xb.0.0.64.js} +0 -0
  144. /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.63-internal.2.js → @socket.io.Dkula2eQ.0.0.64.js} +0 -0
  145. /package/dist/interface/js/{@xterm.QOJE5e8q.0.0.63-internal.2.js → @xterm.qQMvi5Sq.0.0.64.js} +0 -0
  146. /package/dist/interface/js/{axios.DHr9lByg.0.0.63-internal.2.js → axios.DHr9lByg.0.0.64.js} +0 -0
  147. /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.63-internal.2.js → birpc.l0sNRNKZ.0.0.64.js} +0 -0
  148. /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.63-internal.2.js → compare-versions.DqEOhma6.0.0.64.js} +0 -0
  149. /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.63-internal.2.js → dijkstrajs.C00ieaqj.0.0.64.js} +0 -0
  150. /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.63-internal.2.js → engine.io-parser.BiEtp6m2.0.0.64.js} +0 -0
  151. /package/dist/interface/js/{entities.C20TfXL6.0.0.63-internal.2.js → entities.C20TfXL6.0.0.64.js} +0 -0
  152. /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.63-internal.2.js → ev-emitter.X5f1qa-c.0.0.64.js} +0 -0
  153. /package/dist/interface/js/{get-size.D1dS-IaP.0.0.63-internal.2.js → get-size.D1dS-IaP.0.0.64.js} +0 -0
  154. /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.63-internal.2.js → hookable.l0sNRNKZ.0.0.64.js} +0 -0
  155. /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.63-internal.2.js → mdurl.k9Sl0PQj.0.0.64.js} +0 -0
  156. /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.63-internal.2.js → perfect-debounce.l0sNRNKZ.0.0.64.js} +0 -0
  157. /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.63-internal.2.js → primelocale.Bga3dOQu.0.0.64.js} +0 -0
  158. /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.63-internal.2.js → punycode.js.Dj65hjkv.0.0.64.js} +0 -0
  159. /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.63-internal.2.js → react-dnd-html5-backend.1HQjlkwI.0.0.64.js} +0 -0
  160. /package/dist/interface/js/{redux.BFxtlG_c.0.0.63-internal.2.js → redux.BFxtlG_c.0.0.64.js} +0 -0
  161. /package/dist/interface/js/{tslib.9k7AwCpt.0.0.63-internal.2.js → tslib.9k7AwCpt.0.0.64.js} +0 -0
  162. /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.63-internal.2.js → uc.micro.kMc2yuuw.0.0.64.js} +0 -0
  163. /package/dist/interface/js/{uuid.C6aID195.0.0.63-internal.2.js → uuid.C6aID195.0.0.64.js} +0 -0
  164. /package/dist/interface/js/{vue.l0sNRNKZ.0.0.63-internal.2.js → vue.l0sNRNKZ.0.0.64.js} +0 -0
@@ -1,4 +0,0 @@
1
- import{p as de,a as fe}from"./primevue.DsyHFHyM.0.0.63-internal.2.js";import{_ as me}from"./CuiConsole.D0EI-K-x.0.0.63-internal.2.js";import{H as f,t as he,y as ye,j as we,p as _e}from"./highlight.js.DXH817i9.0.0.63-internal.2.js";import{M as ke}from"./markdown-it.-C4hVAY0.0.0.63-internal.2.js";import{f as Qe,h as Pe,a4 as Ve,c as Ce}from"./main.DPYGZ-bm.0.0.63-internal.2.js";import{S as be}from"./system.BUGe7Zjz.0.0.63-internal.2.js";import{u as Se}from"./vue-i18n.B_tRezRH.0.0.63-internal.2.js";import{B as Te,t as Le,ac as Re,y as xe,r as P,k as m,i as D,w as x,o as Ne,a7 as Ae,c as V,d as C,h as o,e as N,I as U,R as A,f as Be}from"./@vue.Dh6viqaK.0.0.63-internal.2.js";const l=u=>"id"in u&&!("type"in u),b=u=>"type"in u,Ie={key:0},je={class:"text-base font-semibold border-b-[1px] border-color mb-3 pb-3"},He=["innerHTML"],Me={key:1},Ee={class:"cui-label"},Fe={key:2,class:"w-full h-full relative"},$e={key:3,class:"w-full h-full p-4 flex items-center justify-center"},Oe=Te({__name:"VersionsHandler",props:{target:{},installVersion:{},isNewPlugin:{type:Boolean}},setup(u,{expose:W}){f.registerLanguage("typescript",he),f.registerLanguage("yaml",ye),f.registerLanguage("json",we),f.registerLanguage("python",_e);const r=new Ve,h=new be,B=Ce(),z=Qe(),{t:c}=Se(),{mdBreakpoint:I}=Pe(),g=D("dialogRef"),y=D("dialogRefProps"),J=u,{target:t,installVersion:i,isNewPlugin:j}=Le(J),w=Re("consoleRef"),v=xe(),a=P(),p=P(!1),d=P(!1),L=P(!1),R=P(!1);r.toggleQueryActivator("getPluginVersionsQuery",!1),r.toggleQueryActivator("getPluginChangelogQuery",!1),h.toggleQueryActivator("checkVersionQuery",!1);const q=m(()=>({pluginversion:a.value||i.value})),{data:G,isFetching:H}=h.checkVersionQuery(),{data:K,isFetching:M}=r.getPluginVersionsQuery(l(t.value)?t.value.pluginName:""),{data:O,isFetching:X,suspense:Y}=r.getPluginChangelogQuery(l(t.value)?t.value.pluginName:"",q),{mutate:Z,isPending:ee}=h.restartServerQuery(),{mutate:te,isPending:ne}=r.restartPluginQuery(),{mutateAsync:oe,isPending:se}=r.installPluginQuery(),{mutateAsync:ae,isPending:le}=h.updateServerQuery(),re=m(()=>M.value||H.value),ie=m(()=>{var e;return!!((e=y.loading)!=null&&e.value||M.value||H.value||X.value||se.value||le.value||ne.value||ee.value)}),E=m(()=>{var e,n;return l(t.value)?((e=K.value)==null?void 0:e.versions)||[]:b(t.value)?((n=G.value)==null?void 0:n.versions.toReversed())||[]:[]}),F=m(()=>{if(l(t.value))return O.value}),ue=m(()=>({fontSize:I.value?12:14}));x(E,e=>{e.length&&(a.value=e[0])},{immediate:!0,deep:!0}),x(p,e=>{e?g.value.data.dialogContentClass="not-md:px-0 h-full md:h-[50vh]":delete g.value.data.dialogContentClass}),x(I,e=>{!e&&(p.value||d.value)&&g.value.options.props&&(g.value.options.props.style.height="60vh",g.value.options.props.style.width="70vh",g.value.options.props.style.maxWidth="100%")});const $=ke("commonmark",{highlight(e,n){if(n&&f.getLanguage(n))try{return'<pre><code class="hljs">'+f.highlight(e,{language:n,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+$.utils.escapeHtml(e)+"</code></pre>"}}),ce=()=>{var n,k,S,T;p.value=!0,v.value=z.connectToNamespace("/logs");const e=l(t.value)?`stdout/${t.value.pluginName}`:"stdout/server";(n=v.value)==null||n.socket.on(e,s=>{var Q;(Q=w.value)==null||Q.writeTerminal(s)}),(k=v.value)==null||k.socket.on("stdout",s=>{var Q;(Q=w.value)==null||Q.writeTerminal(s)}),(S=v.value)==null||S.socket.on("disconnect",()=>{var s;(s=w.value)==null||s.writeTerminal(`
2
- \rWebsocket failed to connect! Is the server running?\r
3
- \r
4
- `)}),(T=v.value)==null||T.socket.on("clear-log",()=>{var s;(s=w.value)==null||s.clearTerminal()})},ge=async()=>{if(l(t.value))try{r.toggleQueryActivator("getPluginChangelogQuery",!0);const{isError:e}=await Y();if(e)throw new Error("Failed to fetch changelog");d.value=!0}catch{}else b(t.value)},_=async e=>{if(!d.value&&(await ge(),d.value)){y.confirmText&&(y.confirmText.value=c("components.form.button.continue")),R.value=!0;return}ce();try{l(t.value)?await oe({pluginData:{pluginname:t.value.pluginName,pluginversion:e}}):b(t.value)&&await ae({serverData:{version:e}}),L.value=!0,y.confirmText&&(y.confirmText.value=j.value?c("components.form.button.finish"):c("components.form.button.restart"))}catch(n){B.add({severity:"error",summary:c("components.toast.title_error"),detail:n.message,life:3e3}),console.error(n)}},ve=()=>{l(t.value)?te({pluginName:t.value.pluginName}):b(t.value)&&Z()},pe=async()=>{if(!(L.value&&j.value)){if(L.value){ve();return}return R.value?(R.value=!1,i.value?await _(i.value):a.value&&await _(a.value),null):i.value?(await _(i.value),null):a.value?(await _(a.value),null):(B.add({severity:"error",summary:c("components.toast.title_error"),detail:c("components.toast.no_version_selected"),life:3e3}),null)}};return Ne(()=>{i.value?_(i.value):l(t.value)?r.toggleQueryActivator("getPluginVersionsQuery",!0):b(t.value)&&h.toggleQueryActivator("checkVersionQuery",!0)}),Ae(()=>{var e,n;(n=(e=v.value)==null?void 0:e.end)==null||n.call(e)}),W({isLoading:ie,onConfirm:pe}),(e,n)=>{const k=de,S=me,T=fe;return C(),V("div",null,[o(d)&&o(F)&&!o(p)?(C(),V("div",Ie,[N("h3",je,U(e.$t("components.form.label.changelog")),1),N("div",{class:"markdown-body",innerHTML:o($).render(o(F))},null,8,He)])):!o(i)&&!o(p)&&!o(d)?(C(),V("div",Me,[N("label",Ee,U(e.$t("components.form.label.version")),1),A(k,{modelValue:o(a),"onUpdate:modelValue":n[0]||(n[0]=s=>Be(a)?a.value=s:null),options:o(E),loading:o(re),class:"w-full mt-2"},null,8,["modelValue","options","loading"])])):o(p)?(C(),V("div",Fe,[A(S,{ref_key:"consoleRef",ref:w,options:o(ue),class:"bg-black !w-full"},null,8,["options"])])):(C(),V("div",$e,[A(T,{"stroke-width":"5",class:"w-[30px] h-[30px]"})]))])}}});export{Oe as _};
@@ -1 +0,0 @@
1
- import{b as e,m as o,c as r,t as l,d as a,w as s,e as m,f as t}from"./ace-builds.BS05_5NF.0.0.63-internal.2.js";import"./@xterm.QOJE5e8q.0.0.63-internal.2.js";e.config.setModuleUrl("ace/mode/json",o);e.config.setModuleUrl("ace/mode/yaml",r);e.config.setModuleUrl("ace/theme/tomorrow",l);e.config.setModuleUrl("ace/theme/twilight",a);e.config.setModuleUrl("ace/mode/base",s);e.config.setModuleUrl("ace/mode/json_worker",m);e.config.setModuleUrl("ace/mode/yaml_worker",t);e.require("ace/ext/language_tools");
@@ -1 +0,0 @@
1
- import{a3 as a}from"./main.DPYGZ-bm.0.0.63-internal.2.js";const r=async s=>(await a.post("/backup/download",{localStorage:s},{responseType:"arraybuffer"})).data,n=async s=>(await a.post("/backup/restore",s)).data;export{r as d,n as r};
@@ -1 +0,0 @@
1
- import{F as o,c as t,d as n,e as r}from"./@vue.Dh6viqaK.0.0.63-internal.2.js";const c={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function s(a,e){return n(),t("svg",c,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41z"},null,-1)]))}const L=o({name:"mdi-close-circle",render:s});export{L as _};
@@ -1 +0,0 @@
1
- import{c as j}from"./redux.BFxtlG_c.0.0.63-internal.2.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.63-internal.2.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
@@ -1 +0,0 @@
1
- import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.63-internal.2.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.63-internal.2.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
@@ -1 +0,0 @@
1
- import{g as l}from"./@xterm.QOJE5e8q.0.0.63-internal.2.js";var o,c;function a(){return c||(c=1,o=function n(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var u,e,f;if(Array.isArray(r)){if(u=r.length,u!=t.length)return!1;for(e=u;e--!==0;)if(!n(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(f=Object.keys(r),u=f.length,u!==Object.keys(t).length)return!1;for(e=u;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[e]))return!1;for(e=u;e--!==0;){var s=f[e];if(!n(r[s],t[s]))return!1}return!0}return r!==r&&t!==t}),o}var p=a();const O=l(p);export{O as e};
@@ -1 +0,0 @@
1
- import{A as x,C as g,Z as C,P as Z}from"./uc.micro.kMc2yuuw.0.0.63-internal.2.js";function w(_){const t={};_=_||{},t.src_Any=x.source,t.src_Cc=g.source,t.src_Z=C.source,t.src_P=Z.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const e="[><|]";return t.src_pseudo_letter="(?:(?!"+e+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+e+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function p(_){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(r){_[r]=e[r]})}),_}function l(_){return Object.prototype.toString.call(_)}function k(_){return l(_)==="[object String]"}function v(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function b(_){return Object.keys(_||{}).reduce(function(t,e){return t||y.hasOwnProperty(e)},!1)}const $={"http:":{validate:function(_,t,e){const r=_.slice(t);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(r)?r.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,e){const r=_.slice(t);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(r)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:r.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,e){const r=_.slice(t);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(r)?r.match(e.re.mailto)[0].length:0}}},A="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",P="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function S(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,e){const r=t.slice(e);return _.test(r)?r.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){const t=_.re=w(_.__opts__),e=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||e.push(A),e.push(t.src_xn),t.src_tlds=e.join("|");function r(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const c=[];_.__compiled__={};function h(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){const s=_.__schemas__[i];if(s===null)return;const a={validate:null,link:null};if(_.__compiled__[i]=a,v(s)){E(s.validate)?a.validate=R(s.validate):f(s.validate)?a.validate=s.validate:h(i,s),f(s.normalize)?a.normalize=s.normalize:s.normalize?h(i,s):a.normalize=z();return}if(k(s)){c.push(i);return}h(i,s)}),c.forEach(function(i){_.__compiled__[_.__schemas__[i]]&&(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};const o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),S(_)}function L(_,t){const e=_.__index__,r=_.__last_index__,c=_.__text_cache__.slice(e,r);this.schema=_.__schema__.toLowerCase(),this.index=e+t,this.lastIndex=r+t,this.raw=c,this.text=c,this.url=c}function d(_,t){const e=new L(_,t);return _.__compiled__[e.schema].normalize(e,_),e}function n(_,t){if(!(this instanceof n))return new n(_,t);t||b(_)&&(t=_,_={}),this.__opts__=p({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},$,_),this.__compiled__={},this.__tlds__=P,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,e){return this.__schemas__[t]=e,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,r,c,h,o,i,s,a,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(e=s.exec(t))!==null;)if(h=this.testSchemaAt(t,e[2],s.lastIndex),h){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+h;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,e,r){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,r,this):0};n.prototype.match=function(t){const e=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);let c=r?t.slice(r):t;for(;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const r=this.testSchemaAt(t,e[2],e[0].length);return r?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r,d(this,0)):null};n.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,c,h){return r!==h[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};export{n as L};