@camera.ui/server 0.0.63-internal.1 → 0.0.63

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 (158) hide show
  1. package/dist/interface/index.html +44 -44
  2. package/dist/interface/js/{@primevue.CqtyCLKt.0.0.63-internal.1.js → @primevue.D_7clQ9D.0.0.63.js} +1 -1
  3. package/dist/interface/js/@tanstack.BSC4wwmS.0.0.63.js +1 -0
  4. package/dist/interface/js/{@vee-validate.DwnTmCFe.0.0.63-internal.1.js → @vee-validate.DLXLKcbH.0.0.63.js} +1 -1
  5. package/dist/interface/js/@vueuse.BKr_9ZHe.0.0.63.js +1 -0
  6. package/dist/interface/js/Adminpanel.CgnDDe0k.0.0.63.js +1 -0
  7. package/dist/interface/js/Camera.CyBZZ28c.0.0.63.js +1 -0
  8. package/dist/interface/js/{Cameras.C6k8Wc8c.0.0.63-internal.1.js → Cameras.xyNhttxc.0.0.63.js} +1 -1
  9. package/dist/interface/js/Cammesh.CrlhW6m8.0.0.63.js +1 -0
  10. package/dist/interface/js/Camview.C8yUnqeH.0.0.63.js +1 -0
  11. package/dist/interface/js/Config.BHb_92sr.0.0.63.js +2 -0
  12. package/dist/interface/js/Console.gVRCs4SQ.0.0.63.js +4 -0
  13. package/dist/interface/js/CuiConsole.tVTZVJ2r.0.0.63.js +1 -0
  14. package/dist/interface/js/CuiPluginCard.BxI4Y206.0.0.63.js +4 -0
  15. package/dist/interface/js/CuiTimeline.Ddo5H5eu.0.0.63.js +1 -0
  16. package/dist/interface/js/FirstSteps.BLNp-T2e.0.0.63.js +1 -0
  17. package/dist/interface/js/Plugin.BzcStDGT.0.0.63.js +1 -0
  18. package/dist/interface/js/Plugins.Bru4qZHM.0.0.63.js +1 -0
  19. package/dist/interface/js/Recordings.BfDGF8yy.0.0.63.js +1 -0
  20. package/dist/interface/js/Settings.A2rkEnZf.0.0.63.js +1 -0
  21. package/dist/interface/js/SettingsAccount.kSQHHipN.0.0.63.js +1 -0
  22. package/dist/interface/js/SettingsAppearance.DrK-Y9Dz.0.0.63.js +1 -0
  23. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.rhYz8TOv.0.0.63.js +1 -0
  24. package/dist/interface/js/SettingsBackup.BrO__F6s.0.0.63.js +1 -0
  25. package/dist/interface/js/SettingsRecordings.CKLA9Mcy.0.0.63.js +1 -0
  26. package/dist/interface/js/SettingsRemote.Cc_G0w05.0.0.63.js +1 -0
  27. package/dist/interface/js/SettingsSystem.Bc3mt8Pc.0.0.63.js +1 -0
  28. package/dist/interface/js/SettingsUsers.DUeBe8dg.0.0.63.js +1 -0
  29. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.CQoernTX.0.0.63.js +4 -0
  30. package/dist/interface/js/{ace-builds.DR0QhVMd.0.0.63-internal.1.js → ace-builds.Ci20Oe4V.0.0.63.js} +2 -2
  31. package/dist/interface/js/ace.config.D89CcLgS.0.0.63.js +1 -0
  32. package/dist/interface/js/backup.DXMIOgSB.0.0.63.js +1 -0
  33. package/dist/interface/js/{chart.js.D_yLwuUt.0.0.63-internal.1.js → chart.js.DZ1vEHB7.0.0.63.js} +1 -1
  34. package/dist/interface/js/close-circle.DfpkK7eV.0.0.63.js +1 -0
  35. package/dist/interface/js/dnd-core.DRZXbJM9.0.0.63.js +1 -0
  36. package/dist/interface/js/{draggabilly.z6N0YiJq.0.0.63-internal.1.js → draggabilly.o_TJc_mc.0.0.63.js} +1 -1
  37. package/dist/interface/js/engine.io-client.DKSc90ta.0.0.63.js +1 -0
  38. package/dist/interface/js/fast-deep-equal.BkqdlJZE.0.0.63.js +1 -0
  39. package/dist/interface/js/{highlight.js.DPZXtNMN.0.0.63-internal.1.js → highlight.js.DyOtvXLH.0.0.63.js} +1 -1
  40. package/dist/interface/js/linkify-it.DGDBcHC0.0.0.63.js +1 -0
  41. package/dist/interface/js/{main.D15XYqzn.0.0.63-internal.1.js → main.nKfYd2aY.0.0.63.js} +3 -3
  42. package/dist/interface/js/{markdown-it.DIP68NWE.0.0.63-internal.1.js → markdown-it.M3A8AdOh.0.0.63.js} +1 -1
  43. package/dist/interface/js/{nprogress.aQm5L1--.0.0.63-internal.1.js → nprogress.IzIs0JFK.0.0.63.js} +1 -1
  44. package/dist/interface/js/{pinia.C-E9NxBs.0.0.63-internal.1.js → pinia.DVtqAP8S.0.0.63.js} +1 -1
  45. package/dist/interface/js/{primevue.BrJeQg-D.0.0.63-internal.1.js → primevue.CoZ9R2Q2.0.0.63.js} +1 -1
  46. package/dist/interface/js/{qrcode.iDFhGM5u.0.0.63-internal.1.js → qrcode.J-jUQ3O7.0.0.63.js} +1 -1
  47. package/dist/interface/js/react-dnd-touch-backend.r6ZvPP1w.0.0.63.js +1 -0
  48. package/dist/interface/js/refresh-rounded.Cj4edEnQ.0.0.63.js +1 -0
  49. package/dist/interface/js/{rxjs.CA224vHi.0.0.63-internal.1.js → rxjs.B3taOakU.0.0.63.js} +1 -1
  50. package/dist/interface/js/socket.io-client.CoxRrB0i.0.0.63.js +1 -0
  51. package/dist/interface/js/socket.io-parser.CS2MblGy.0.0.63.js +1 -0
  52. package/dist/interface/js/system.DjVJ4skZ.0.0.63.js +1 -0
  53. package/dist/interface/js/trash-fill.DQ11gskZ.0.0.63.js +1 -0
  54. package/dist/interface/js/{unidragger.Ce9qFTax.0.0.63-internal.1.js → unidragger.DbVT_hUC.0.0.63.js} +1 -1
  55. package/dist/interface/js/{vee-validate.f3lxPCeQ.0.0.63-internal.1.js → vee-validate.DJQ5Z65z.0.0.63.js} +1 -1
  56. package/dist/interface/js/vue-chartjs.DZnMEgA0.0.0.63.js +1 -0
  57. package/dist/interface/js/{vue-i18n.jMmTVww-.0.0.63-internal.1.js → vue-i18n.0nnpASs4.0.0.63.js} +1 -1
  58. package/dist/interface/js/vue-inline-svg.DwQ6AJRv.0.0.63.js +1 -0
  59. package/dist/interface/js/{vue-router.w5QQqiZH.0.0.63-internal.1.js → vue-router.CtXJ7SHU.0.0.63.js} +1 -1
  60. package/dist/interface/js/vue-zoomable.CyClhEiW.0.0.63.js +1 -0
  61. package/dist/interface/js/vue3-dnd.CJgQfdRH.0.0.63.js +1 -0
  62. package/dist/interface/js/zoom-out.Uoc_DZyc.0.0.63.js +1 -0
  63. package/dist/interface/sw.js +1 -1
  64. package/dist/server/package.json +3 -3
  65. package/package.json +3 -3
  66. package/dist/interface/js/@tanstack.-CPyCYGF.0.0.63-internal.1.js +0 -1
  67. package/dist/interface/js/@vueuse.DCl2sYi2.0.0.63-internal.1.js +0 -1
  68. package/dist/interface/js/Adminpanel.dCaulgaY.0.0.63-internal.1.js +0 -1
  69. package/dist/interface/js/Camera.B4vetGvq.0.0.63-internal.1.js +0 -1
  70. package/dist/interface/js/Cammesh.DNE-fP9z.0.0.63-internal.1.js +0 -1
  71. package/dist/interface/js/Camview.Dzn4neuZ.0.0.63-internal.1.js +0 -1
  72. package/dist/interface/js/Config.B3nUxiLs.0.0.63-internal.1.js +0 -2
  73. package/dist/interface/js/Console.D1z8d2h4.0.0.63-internal.1.js +0 -4
  74. package/dist/interface/js/CuiConsole.Dn9rUoHf.0.0.63-internal.1.js +0 -1
  75. package/dist/interface/js/CuiPluginCard.Cw3oiVRg.0.0.63-internal.1.js +0 -4
  76. package/dist/interface/js/CuiTimeline.CzDqP6gl.0.0.63-internal.1.js +0 -1
  77. package/dist/interface/js/FirstSteps.CxXFvcQ8.0.0.63-internal.1.js +0 -1
  78. package/dist/interface/js/Plugin.D02guXa1.0.0.63-internal.1.js +0 -1
  79. package/dist/interface/js/Plugins.BnuS6Ctu.0.0.63-internal.1.js +0 -1
  80. package/dist/interface/js/Recordings.cX_pQS5L.0.0.63-internal.1.js +0 -1
  81. package/dist/interface/js/Settings.Ba3RiuvP.0.0.63-internal.1.js +0 -1
  82. package/dist/interface/js/SettingsAccount.BslKxD4b.0.0.63-internal.1.js +0 -1
  83. package/dist/interface/js/SettingsAppearance.BKZMO5li.0.0.63-internal.1.js +0 -1
  84. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.Ob4qnLNP.0.0.63-internal.1.js +0 -1
  85. package/dist/interface/js/SettingsBackup.C_iMHLx4.0.0.63-internal.1.js +0 -1
  86. package/dist/interface/js/SettingsRecordings.CCvVmc-U.0.0.63-internal.1.js +0 -1
  87. package/dist/interface/js/SettingsRemote.PQLlxhbn.0.0.63-internal.1.js +0 -1
  88. package/dist/interface/js/SettingsSystem.C2wWU7KL.0.0.63-internal.1.js +0 -1
  89. package/dist/interface/js/SettingsUsers.ByKS5fCb.0.0.63-internal.1.js +0 -1
  90. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.BwVudk7G.0.0.63-internal.1.js +0 -4
  91. package/dist/interface/js/ace.config.4JzNE3aE.0.0.63-internal.1.js +0 -1
  92. package/dist/interface/js/backup.Bbjjhjzg.0.0.63-internal.1.js +0 -1
  93. package/dist/interface/js/close-circle.B1uOF3rN.0.0.63-internal.1.js +0 -1
  94. package/dist/interface/js/dnd-core.6p9ee2MI.0.0.63-internal.1.js +0 -1
  95. package/dist/interface/js/engine.io-client.-shgo3yC.0.0.63-internal.1.js +0 -1
  96. package/dist/interface/js/fast-deep-equal.BcnK3M2c.0.0.63-internal.1.js +0 -1
  97. package/dist/interface/js/linkify-it.C-tqq8kS.0.0.63-internal.1.js +0 -1
  98. package/dist/interface/js/react-dnd-touch-backend.CQLQFoQ5.0.0.63-internal.1.js +0 -1
  99. package/dist/interface/js/refresh-rounded.DzyQW3l3.0.0.63-internal.1.js +0 -1
  100. package/dist/interface/js/socket.io-client.B2bMDSrp.0.0.63-internal.1.js +0 -1
  101. package/dist/interface/js/socket.io-parser.DcGq--hP.0.0.63-internal.1.js +0 -1
  102. package/dist/interface/js/system.CUrUlrbh.0.0.63-internal.1.js +0 -1
  103. package/dist/interface/js/trash-fill.Az0x18aS.0.0.63-internal.1.js +0 -1
  104. package/dist/interface/js/vue-chartjs.C0eRyq-H.0.0.63-internal.1.js +0 -1
  105. package/dist/interface/js/vue-inline-svg.CntWe0ll.0.0.63-internal.1.js +0 -1
  106. package/dist/interface/js/vue-zoomable.6LMR-QhL.0.0.63-internal.1.js +0 -1
  107. package/dist/interface/js/vue3-dnd.FglIoNpF.0.0.63-internal.1.js +0 -1
  108. package/dist/interface/js/zoom-out.lkdnezsO.0.0.63-internal.1.js +0 -1
  109. /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.63-internal.1.css → @xterm.DYP7pi_n.0.0.63.css} +0 -0
  110. /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.63-internal.1.css → Adminpanel.BKek2EMH.0.0.63.css} +0 -0
  111. /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.63-internal.1.css → Cameras.BDWZJqPN.0.0.63.css} +0 -0
  112. /package/dist/interface/assets/{Camview.Cvhuou6V.0.0.63-internal.1.css → Camview.Cvhuou6V.0.0.63.css} +0 -0
  113. /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.63-internal.1.css → CuiConsole.DCYyxdVg.0.0.63.css} +0 -0
  114. /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.63-internal.1.css → CuiPluginCard.yF8V0SZY.0.0.63.css} +0 -0
  115. /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.63-internal.1.css → CuiTimeline.BkIwlYtw.0.0.63.css} +0 -0
  116. /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.63-internal.1.css → Plugin.DJElsAn5.0.0.63.css} +0 -0
  117. /package/dist/interface/assets/{Plugins.BwPlcRrV.0.0.63-internal.1.css → Plugins.BwPlcRrV.0.0.63.css} +0 -0
  118. /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.63-internal.1.css → Settings.CkgfRkQr.0.0.63.css} +0 -0
  119. /package/dist/interface/assets/{SettingsAccount.CDZT7gN-.0.0.63-internal.1.css → SettingsAccount.CDZT7gN-.0.0.63.css} +0 -0
  120. /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.63-internal.1.css → SettingsBackup.CX0rT0QJ.0.0.63.css} +0 -0
  121. /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.63-internal.1.css → highlight.Ch2EwETz.0.0.63.css} +0 -0
  122. /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.63-internal.1.png → logo-256.BCQk9H1-.0.0.63.png} +0 -0
  123. /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.63-internal.1.png → logo-512.DLKVOU2S.0.0.63.png} +0 -0
  124. /package/dist/interface/assets/{logo.DmEiRk0z.0.0.63-internal.1.png → logo.DmEiRk0z.0.0.63.png} +0 -0
  125. /package/dist/interface/assets/{main.DYKKLRxP.0.0.63-internal.1.css → main.DYKKLRxP.0.0.63.css} +0 -0
  126. /package/dist/interface/assets/{mode-json.Br7xisR1.0.0.63-internal.1.js → mode-json.Br7xisR1.0.0.63.js} +0 -0
  127. /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.63-internal.1.js → mode-yaml.CIYL8U3d.0.0.63.js} +0 -0
  128. /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.63-internal.1.js → worker-base.jEXLGV2h.0.0.63.js} +0 -0
  129. /package/dist/interface/assets/{worker-json.DgwNIOck.0.0.63-internal.1.js → worker-json.DgwNIOck.0.0.63.js} +0 -0
  130. /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.63-internal.1.js → worker-yaml.B3uUYINB.0.0.63.js} +0 -0
  131. /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.63-internal.1.js → @babel.l0sNRNKZ.0.0.63.js} +0 -0
  132. /package/dist/interface/js/{@intlify.BkGPX90O.0.0.63-internal.1.js → @intlify.BkGPX90O.0.0.63.js} +0 -0
  133. /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.63-internal.1.js → @kurkle.D8fDXNIl.0.0.63.js} +0 -0
  134. /package/dist/interface/js/{@primeuix.BkBDkSvZ.0.0.63-internal.1.js → @primeuix.BkBDkSvZ.0.0.63.js} +0 -0
  135. /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.63-internal.1.js → @react-dnd.CcwRs9xb.0.0.63.js} +0 -0
  136. /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.63-internal.1.js → @socket.io.Dkula2eQ.0.0.63.js} +0 -0
  137. /package/dist/interface/js/{@vue.Dh6viqaK.0.0.63-internal.1.js → @vue.Dh6viqaK.0.0.63.js} +0 -0
  138. /package/dist/interface/js/{@xterm.CC2uq0fH.0.0.63-internal.1.js → @xterm.BXZNujCq.0.0.63.js} +0 -0
  139. /package/dist/interface/js/{axios.DHr9lByg.0.0.63-internal.1.js → axios.DHr9lByg.0.0.63.js} +0 -0
  140. /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.63-internal.1.js → birpc.l0sNRNKZ.0.0.63.js} +0 -0
  141. /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.63-internal.1.js → compare-versions.DqEOhma6.0.0.63.js} +0 -0
  142. /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.63-internal.1.js → dijkstrajs.C00ieaqj.0.0.63.js} +0 -0
  143. /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.63-internal.1.js → engine.io-parser.BiEtp6m2.0.0.63.js} +0 -0
  144. /package/dist/interface/js/{entities.C20TfXL6.0.0.63-internal.1.js → entities.C20TfXL6.0.0.63.js} +0 -0
  145. /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.63-internal.1.js → ev-emitter.X5f1qa-c.0.0.63.js} +0 -0
  146. /package/dist/interface/js/{get-size.D1dS-IaP.0.0.63-internal.1.js → get-size.D1dS-IaP.0.0.63.js} +0 -0
  147. /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.63-internal.1.js → hookable.l0sNRNKZ.0.0.63.js} +0 -0
  148. /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.63-internal.1.js → mdurl.k9Sl0PQj.0.0.63.js} +0 -0
  149. /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.63-internal.1.js → perfect-debounce.l0sNRNKZ.0.0.63.js} +0 -0
  150. /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.63-internal.1.js → primelocale.Bga3dOQu.0.0.63.js} +0 -0
  151. /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.63-internal.1.js → punycode.js.Dj65hjkv.0.0.63.js} +0 -0
  152. /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.63-internal.1.js → react-dnd-html5-backend.1HQjlkwI.0.0.63.js} +0 -0
  153. /package/dist/interface/js/{redux.BFxtlG_c.0.0.63-internal.1.js → redux.BFxtlG_c.0.0.63.js} +0 -0
  154. /package/dist/interface/js/{tslib.9k7AwCpt.0.0.63-internal.1.js → tslib.9k7AwCpt.0.0.63.js} +0 -0
  155. /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.63-internal.1.js → uc.micro.kMc2yuuw.0.0.63.js} +0 -0
  156. /package/dist/interface/js/{uuid.C6aID195.0.0.63-internal.1.js → uuid.C6aID195.0.0.63.js} +0 -0
  157. /package/dist/interface/js/{vue.l0sNRNKZ.0.0.63-internal.1.js → vue.l0sNRNKZ.0.0.63.js} +0 -0
  158. /package/dist/interface/js/{zod.sy4ilHCy.0.0.63-internal.1.js → zod.sy4ilHCy.0.0.63.js} +0 -0
@@ -1 +0,0 @@
1
- import{r as y,p as S,n as B,j as U}from"./primevue.BrJeQg-D.0.0.63-internal.1.js";import{ar as k,a1 as z,q as C,as as M}from"./main.D15XYqzn.0.0.63-internal.1.js";import{s as v}from"./pinia.C-E9NxBs.0.0.63-internal.1.js";import{B as N,c as T,d as E,e,R as l,I as t,N as c,h as o,f as b,H as r}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const R={class:"flex flex-col w-full gap-6"},O={class:"card-title"},j={class:"flex flex-col gap-6"},q={class:"flex flex-col field-gap"},A={class:"cui-label"},D={class:"flex flex-col field-gap"},H={class:"flex items-center"},I={class:"flex flex-col field-switch-gap"},L={class:"cui-label-switch"},F={class:"card-title"},G={class:"flex flex-col gap-6"},J={class:"flex flex-col field-gap"},K={class:"cui-label"},P={class:"card-title"},Q={class:"flex flex-col gap-6"},W={class:"flex flex-col field-gap"},X={class:"cui-label"},Y={class:"flex flex-col field-gap"},Z={class:"flex items-center"},ee={class:"flex flex-col field-switch-gap"},se={class:"cui-label-switch"},le={class:"flex flex-col field-gap"},te={class:"flex items-center"},oe={class:"flex flex-col field-switch-gap"},ae={class:"cui-label-switch"},ie={class:"flex flex-col field-gap"},ne={class:"flex items-center"},ce={class:"flex flex-col field-switch-gap"},de={class:"cui-label-switch"},_e=N({__name:"SettingsAppearance",setup(re){const g=k(),w=z(),V=C(),{locale:p,languages:x}=v(g),{colors:$,theme:u,autoMode:m}=v(w),{uiSettings:n}=v(V);return(s,a)=>{const _=S,d=B,f=U,h=y;return E(),T("div",null,[e("div",R,[e("div",null,[e("span",O,t(s.$t("views.settings.theme")),1),l(h,{class:"cui-card"},{content:c(()=>[e("div",j,[e("div",q,[e("label",A,t(s.$t("components.form.label.theme")),1),l(_,{modelValue:o(u),"onUpdate:modelValue":a[0]||(a[0]=i=>b(u)?u.value=i:null),options:o($),disabled:o(m)},null,8,["modelValue","options","disabled"])]),e("div",D,[e("div",H,[e("div",I,[e("label",L,t(s.$t("components.form.label.system_preference")),1),l(d,{severity:"secondary",variant:"simple",size:"small",class:"cui-input-switch-hint"},{default:c(()=>[r(t(s.$t("components.form.hint.system_preference")),1)]),_:1})]),l(f,{modelValue:o(m),"onUpdate:modelValue":a[1]||(a[1]=i=>b(m)?m.value=i:null),class:"ml-auto shrink-0"},null,8,["modelValue"])])])])]),_:1})]),e("div",null,[e("span",F,t(s.$t("views.settings.locale")),1),l(h,{class:"cui-card"},{content:c(()=>[e("div",G,[e("div",J,[e("label",K,t(s.$t("components.form.label.language")),1),l(_,{modelValue:o(p),"onUpdate:modelValue":a[2]||(a[2]=i=>b(p)?p.value=i:null),options:o(x)},null,8,["modelValue","options"])])])]),_:1})]),e("div",null,[e("span",P,t(s.$t("views.settings.interface")),1),l(h,{class:"cui-card"},{content:c(()=>[e("div",Q,[e("div",W,[e("label",X,t(s.$t("components.form.label.default_settings_page")),1),l(_,{modelValue:o(n).interface.selectedSettingsView,"onUpdate:modelValue":a[3]||(a[3]=i=>o(n).interface.selectedSettingsView=i),options:o(M)},null,8,["modelValue","options"]),l(d,{severity:"secondary",variant:"simple",size:"small",class:"cui-input-hint"},{default:c(()=>[r(t(s.$t("components.form.hint.default_settings_page")),1)]),_:1})]),e("div",Y,[e("div",Z,[e("div",ee,[e("label",se,t(s.$t("components.form.label.show_camera_events")),1),l(d,{severity:"secondary",variant:"simple",size:"small",class:"cui-input-switch-hint"},{default:c(()=>[r(t(s.$t("components.form.hint.show_camera_events")),1)]),_:1})]),l(f,{modelValue:o(n).cameras.showEvents,"onUpdate:modelValue":a[4]||(a[4]=i=>o(n).cameras.showEvents=i),class:"ml-auto shrink-0"},null,8,["modelValue"])])]),e("div",le,[e("div",te,[e("div",oe,[e("label",ae,t(s.$t("components.form.label.show_bottombar_on_mobile")),1),l(d,{severity:"secondary",variant:"simple",size:"small",class:"cui-input-switch-hint"},{default:c(()=>[r(t(s.$t("components.form.hint.show_bottombar_on_mobile")),1)]),_:1})]),l(f,{modelValue:o(n).interface.showBottomBarOnMobile,"onUpdate:modelValue":a[5]||(a[5]=i=>o(n).interface.showBottomBarOnMobile=i),class:"ml-auto shrink-0"},null,8,["modelValue"])])]),e("div",ie,[e("div",ne,[e("div",ce,[e("label",de,t(s.$t("components.form.label.navbar_stay_collapsed")),1),l(d,{severity:"secondary",variant:"simple",size:"small",class:"cui-input-switch-hint"},{default:c(()=>[r(t(s.$t("components.form.hint.navbar_stay_collapsed")),1)]),_:1})]),l(f,{modelValue:o(n).interface.navbarStayCollapsed,"onUpdate:modelValue":a[6]||(a[6]=i=>o(n).interface.navbarStayCollapsed=i),class:"ml-auto shrink-0"},null,8,["modelValue"])])])])]),_:1})])])])}}});export{_e as _};
@@ -1 +0,0 @@
1
- import{b as N,d as j,W as U,r as J}from"./primevue.BrJeQg-D.0.0.63-internal.1.js";import{_ as E}from"./close-circle.B1uOF3rN.0.0.63-internal.1.js";import{F as M,c as S,d as _,e as s,B as O,t as H,ac as T,y as L,r as z,$ as B,M as F,O as R,Q as A,I as m,h as v,N as I,R as g}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";import{d as Q,r as W}from"./backup.Bbjjhjzg.0.0.63-internal.1.js";import{r as q}from"./system.CUrUlrbh.0.0.63-internal.1.js";import{a as G,c as K}from"./main.D15XYqzn.0.0.63-internal.1.js";import{u as P}from"./vue-i18n.jMmTVww-.0.0.63-internal.1.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.1.js";import"./@primevue.CqtyCLKt.0.0.63-internal.1.js";import"./@tanstack.-CPyCYGF.0.0.63-internal.1.js";import"./@vueuse.DCl2sYi2.0.0.63-internal.1.js";import"./nprogress.aQm5L1--.0.0.63-internal.1.js";import"./@xterm.CC2uq0fH.0.0.63-internal.1.js";import"./axios.DHr9lByg.0.0.63-internal.1.js";import"./pinia.C-E9NxBs.0.0.63-internal.1.js";import"./vue-router.w5QQqiZH.0.0.63-internal.1.js";import"./vue-inline-svg.CntWe0ll.0.0.63-internal.1.js";import"./vee-validate.f3lxPCeQ.0.0.63-internal.1.js";import"./@vee-validate.DwnTmCFe.0.0.63-internal.1.js";import"./zod.sy4ilHCy.0.0.63-internal.1.js";import"./uuid.C6aID195.0.0.63-internal.1.js";import"./socket.io-client.B2bMDSrp.0.0.63-internal.1.js";import"./engine.io-client.-shgo3yC.0.0.63-internal.1.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.1.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";import"./socket.io-parser.DcGq--hP.0.0.63-internal.1.js";import"./rxjs.CA224vHi.0.0.63-internal.1.js";import"./tslib.9k7AwCpt.0.0.63-internal.1.js";import"./highlight.js.DPZXtNMN.0.0.63-internal.1.js";import"./markdown-it.DIP68NWE.0.0.63-internal.1.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.1.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.1.js";import"./entities.C20TfXL6.0.0.63-internal.1.js";import"./linkify-it.C-tqq8kS.0.0.63-internal.1.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.1.js";import"./qrcode.iDFhGM5u.0.0.63-internal.1.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.1.js";import"./draggabilly.z6N0YiJq.0.0.63-internal.1.js";import"./get-size.D1dS-IaP.0.0.63-internal.1.js";import"./unidragger.Ce9qFTax.0.0.63-internal.1.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.1.js";import"./vue-zoomable.6LMR-QhL.0.0.63-internal.1.js";import"./primelocale.Bga3dOQu.0.0.63-internal.1.js";import"./@intlify.BkGPX90O.0.0.63-internal.1.js";const X={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Y(D,k){return _(),S("svg",X,k[0]||(k[0]=[s("path",{fill:"currentColor",d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95l-1.41 1.41L19 19.41v2.24h-2z"},null,-1)]))}const Z=M({name:"ic-baseline-file-open",render:Y}),ee={class:"flex flex-col gap-6 p-4 items-center justify-center w-full"},te={class:"flex flex-col justify-center items-center"},oe={for:"restoreInput",class:"cursor-pointer text-center"},se=["accept"],ae={key:0,class:"text-red"},le={class:"mx-2"},ne={class:"text-muted"},ie=O({__name:"CuiUploadFiles",props:{multiple:{type:Boolean,default:!1},accept:{},icon:{default:Z}},emits:["files-uploaded"],setup(D,{expose:k,emit:y}){const i=y,C=D,{accept:$,multiple:r}=H(C),x=T("fileInputRef"),l=L([]),w=z(!1),h=z(!1),t=e=>{const o=l.value.findIndex(f=>f.name===e);o>-1&&(l.value.splice(o,1),n())},c=e=>{if(w.value=!1,h.value=!1,l.value=[],console.log(e),e.dataTransfer)if(!r.value&&e.dataTransfer.files.length>1)h.value=!0;else{for(const[,o]of Object.entries(e.dataTransfer.files))l.value.push(o);i("files-uploaded",l.value)}},p=e=>{var f;h.value=!1,l.value=[];const o=e.target;if(o&&o.files)if(!r.value&&((f=o.files)==null?void 0:f.length)>1)h.value=!0;else{for(const[,u]of Object.entries(o.files))l.value.push(u);i("files-uploaded",l.value)}},n=()=>{x.value&&(x.value.value="")};return k({reset:()=>{l.value=[],n()}}),(e,o)=>{const f=E,u=N,b=j,V=U;return _(),S("div",{class:"file-upload-box",onDrop:o[0]||(o[0]=B(d=>c(d),["prevent"])),onDragover:o[1]||(o[1]=B(d=>w.value=!0,["prevent"])),onDragenter:o[2]||(o[2]=B(d=>w.value=!0,["prevent"])),onDragleave:o[3]||(o[3]=B(d=>w.value=!1,["prevent"]))},[s("div",ee,[s("div",te,[(_(),F(A(e.icon),{class:"w-15 h-15"})),s("label",oe,m(e.$t("components.upload_files.drop_or_select_file")),1),s("input",{id:"restoreInput",ref_key:"fileInputRef",ref:x,type:"file",class:"hidden",accept:v($),onChange:p},null,40,se),v(h)?(_(),S("p",ae,m(e.$t("components.upload_files.only_one_file_allowed")),1)):R("",!0)]),v(l).length>0?(_(),F(V,{key:0,items:v(l),"item-size":50,"scroll-height":"50px","scroll-width":"100%",class:"w-full"},{item:I(({item:d})=>[(_(),S("div",{key:d.name,class:"w-full flex flex-row items-center justify-start p-2"},[g(u,{text:"",rounded:"",severity:"danger",class:"cui-icon-md shrink-0",onClick:he=>t(d.name)},{icon:I(()=>[g(f,{width:"100%",height:"100%"})]),_:2},1032,["onClick"]),s("b",le,m(d.name),1),s("span",ne,"("+m(d.size)+" bytes)",1)])),v(l).length>1?(_(),F(b,{key:0,class:"m-0 py-4"})):R("",!0)]),_:1},8,["items"])):R("",!0)])],32)}}}),re={class:"flex flex-col w-full gap-6"},ce={class:"card-title"},pe={class:"flex flex-col gap-6"},me={class:"text-sm"},ue={class:"card-title"},de={class:"flex flex-col gap-6"},fe={class:"text-sm"},_e={class:"card-title"},ge={class:"flex flex-col gap-6"},ve={class:"text-sm"},ct=O({__name:"SettingsBackup",setup(D){const k=G(),y=K(),{t:i}=P(),C=T("filesRef"),$=L([]),r=z(!1),x=async()=>{var t,c,p,n;r.value=!0;try{const a={};if(localStorage.getItem("ui")){const b=localStorage.getItem("ui");a.ui=JSON.parse(b)}if(localStorage.getItem("locale")){const b=localStorage.getItem("locale");a.locale=b}if(localStorage.getItem("theme")){const b=localStorage.getItem("theme");a.theme=JSON.parse(b)}const e=Date.now(),o=await Q(a),f=window.URL.createObjectURL(new Blob([o])),u=document.createElement("a");u.href=f,u.setAttribute("download",`cameraui-backup-${e}.tar.gz`),document.body.appendChild(u),u.click(),u.remove()}catch(a){y.add({severity:"error",summary:i("components.toast.title_error"),detail:((c=(t=a.response)==null?void 0:t.data)==null?void 0:c.message)??a.message??a,life:3e3}),console.error(((n=(p=a.response)==null?void 0:p.data)==null?void 0:n.message)??a.message??a)}r.value=!1},l=()=>{k.openTextDialog({data:{title:i("components.dialog.title.confirm"),contentText:i("components.dialog.message.confirm_restore"),confirmText:i("components.form.button.restore_and_restart"),loading:r},onConfirm:w})},w=async()=>{var t,c,p,n,a;r.value=!0;try{const e=new FormData;e.append("upload",$.value[0]);const o=await W(e);h(o),(t=C.value)==null||t.reset(),y.add({severity:"success",summary:i("components.toast.title_success"),detail:i("components.toast.backup_restored"),life:3e3}),q()}catch(e){y.add({severity:"error",summary:i("components.toast.title_error"),detail:((p=(c=e.response)==null?void 0:c.data)==null?void 0:p.message)??e.message??e,life:3e3}),console.error(((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.message)??e.message??e),r.value=!1}},h=t=>{t.theme&&localStorage.setItem("theme",JSON.stringify(t.theme)),t.locale&&localStorage.setItem("locale",t.locale),t.ui&&localStorage.setItem("ui",JSON.stringify(t.ui))};return(t,c)=>{const p=N,n=J,a=ie;return _(),S("div",null,[s("div",re,[s("div",null,[s("span",ce,m(t.$t("views.settings.create_backup")),1),g(n,{class:"cui-card"},{content:I(()=>[s("div",pe,[s("span",me,m(t.$t("views.settings.create_backup_info")),1),g(p,{loading:v(r),class:"ml-auto cui-button-medium",label:t.$t("components.form.button.download_backup_archive"),onClick:x},null,8,["loading","label"])])]),_:1})]),s("div",null,[s("span",ue,m(t.$t("views.settings.restore_backup")),1),g(n,{class:"cui-card"},{content:I(()=>[s("div",de,[s("span",fe,m(t.$t("views.settings.restore_backup_info")),1),g(a,{ref_key:"filesRef",ref:C,accept:"application/gzip, .tar, .tar.gz",onFilesUploaded:c[0]||(c[0]=e=>$.value=e)},null,512),g(p,{loading:v(r),disabled:!v($).length,class:"ml-auto cui-button-medium",label:t.$t("components.form.button.restore_backup_archive"),onClick:l},null,8,["loading","disabled","label"])])]),_:1})]),s("div",null,[s("span",_e,m(t.$t("views.settings.sheduled_backup")),1),g(n,{class:"cui-card"},{content:I(()=>[s("div",ge,[s("span",ve,m(t.$t("views.settings.sheduled_backup_info")),1)])]),_:1})])])])}}});export{ct as default};
@@ -1 +0,0 @@
1
- import{z as r}from"./main.D15XYqzn.0.0.63-internal.1.js";import{c as o,d as i,e as m}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";import"./@tanstack.-CPyCYGF.0.0.63-internal.1.js";import"./primevue.BrJeQg-D.0.0.63-internal.1.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.1.js";import"./@primevue.CqtyCLKt.0.0.63-internal.1.js";import"./@vueuse.DCl2sYi2.0.0.63-internal.1.js";import"./nprogress.aQm5L1--.0.0.63-internal.1.js";import"./@xterm.CC2uq0fH.0.0.63-internal.1.js";import"./axios.DHr9lByg.0.0.63-internal.1.js";import"./vue-i18n.jMmTVww-.0.0.63-internal.1.js";import"./@intlify.BkGPX90O.0.0.63-internal.1.js";import"./pinia.C-E9NxBs.0.0.63-internal.1.js";import"./vue-router.w5QQqiZH.0.0.63-internal.1.js";import"./vue-inline-svg.CntWe0ll.0.0.63-internal.1.js";import"./vee-validate.f3lxPCeQ.0.0.63-internal.1.js";import"./@vee-validate.DwnTmCFe.0.0.63-internal.1.js";import"./zod.sy4ilHCy.0.0.63-internal.1.js";import"./uuid.C6aID195.0.0.63-internal.1.js";import"./socket.io-client.B2bMDSrp.0.0.63-internal.1.js";import"./engine.io-client.-shgo3yC.0.0.63-internal.1.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.1.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";import"./socket.io-parser.DcGq--hP.0.0.63-internal.1.js";import"./rxjs.CA224vHi.0.0.63-internal.1.js";import"./tslib.9k7AwCpt.0.0.63-internal.1.js";import"./highlight.js.DPZXtNMN.0.0.63-internal.1.js";import"./markdown-it.DIP68NWE.0.0.63-internal.1.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.1.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.1.js";import"./entities.C20TfXL6.0.0.63-internal.1.js";import"./linkify-it.C-tqq8kS.0.0.63-internal.1.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.1.js";import"./qrcode.iDFhGM5u.0.0.63-internal.1.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.1.js";import"./draggabilly.z6N0YiJq.0.0.63-internal.1.js";import"./get-size.D1dS-IaP.0.0.63-internal.1.js";import"./unidragger.Ce9qFTax.0.0.63-internal.1.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.1.js";import"./vue-zoomable.6LMR-QhL.0.0.63-internal.1.js";import"./primelocale.Bga3dOQu.0.0.63-internal.1.js";const p={};function e(s,t){return i(),o("div",null,t[0]||(t[0]=[m("span",{class:"text-muted"},"WIP",-1)]))}const X=r(p,[["render",e]]);export{X as default};
@@ -1 +0,0 @@
1
- import{a as T,r as E,b as j,l as O,p as U,e as q,q as G}from"./primevue.BrJeQg-D.0.0.63-internal.1.js";import{B as Y,r as $,k as I,w as z,c as p,d,R as s,N as o,h as e,O as g,e as l,I as m,M as H,L as B,m as h,V as b,Y as M}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";import{F as J,a as w,E as y}from"./vee-validate.f3lxPCeQ.0.0.63-internal.1.js";import{S as K}from"./system.CUrUlrbh.0.0.63-internal.1.js";import{au as W,d as X}from"./main.D15XYqzn.0.0.63-internal.1.js";import{t as Z}from"./@vee-validate.DwnTmCFe.0.0.63-internal.1.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.1.js";import"./@primevue.CqtyCLKt.0.0.63-internal.1.js";import"./@tanstack.-CPyCYGF.0.0.63-internal.1.js";import"./vue-i18n.jMmTVww-.0.0.63-internal.1.js";import"./@intlify.BkGPX90O.0.0.63-internal.1.js";import"./@vueuse.DCl2sYi2.0.0.63-internal.1.js";import"./nprogress.aQm5L1--.0.0.63-internal.1.js";import"./@xterm.CC2uq0fH.0.0.63-internal.1.js";import"./axios.DHr9lByg.0.0.63-internal.1.js";import"./pinia.C-E9NxBs.0.0.63-internal.1.js";import"./vue-router.w5QQqiZH.0.0.63-internal.1.js";import"./vue-inline-svg.CntWe0ll.0.0.63-internal.1.js";import"./zod.sy4ilHCy.0.0.63-internal.1.js";import"./uuid.C6aID195.0.0.63-internal.1.js";import"./socket.io-client.B2bMDSrp.0.0.63-internal.1.js";import"./engine.io-client.-shgo3yC.0.0.63-internal.1.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.1.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";import"./socket.io-parser.DcGq--hP.0.0.63-internal.1.js";import"./rxjs.CA224vHi.0.0.63-internal.1.js";import"./tslib.9k7AwCpt.0.0.63-internal.1.js";import"./highlight.js.DPZXtNMN.0.0.63-internal.1.js";import"./markdown-it.DIP68NWE.0.0.63-internal.1.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.1.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.1.js";import"./entities.C20TfXL6.0.0.63-internal.1.js";import"./linkify-it.C-tqq8kS.0.0.63-internal.1.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.1.js";import"./qrcode.iDFhGM5u.0.0.63-internal.1.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.1.js";import"./draggabilly.z6N0YiJq.0.0.63-internal.1.js";import"./get-size.D1dS-IaP.0.0.63-internal.1.js";import"./unidragger.Ce9qFTax.0.0.63-internal.1.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.1.js";import"./vue-zoomable.6LMR-QhL.0.0.63-internal.1.js";import"./primelocale.Bga3dOQu.0.0.63-internal.1.js";const ee=Z(W),se={key:0,class:"w-full h-full flex items-center justify-center"},te={class:"flex flex-col w-full gap-6"},oe={key:0},le={class:"card-title"},ae={class:"flex flex-col gap-6"},ne={class:"flex flex-row items-center justify-between"},ie={class:"text-sm"},re={key:1,class:"text-sm font-bold"},me={key:1},ce={class:"card-title"},de={class:"flex flex-col gap-6"},ue={class:"text-sm"},pe={for:"remoteAccess.mode",class:"cui-label"},fe={for:"remoteAccess.cloudflare.customDomain",class:"cui-label"},_e={for:"remoteAccess.customDomain.url",class:"cui-label"},ve={key:2},ge={class:"card-title"},he={class:"flex flex-col gap-6"},be={class:"text-sm"},we={for:"serverAddresses",class:"cui-label"},cs=Y({__name:"SettingsRemote",setup(ye){const k=new K,A=$([]),C=$(["disabled","cloudflare","custom-domain","port-forward","router-forward"]),a=$(),{data:S,isFetching:F}=k.getSystemInfoQuery(),{mutate:R,isPending:L}=k.patchSystemInfoQuery(),r=I(()=>L.value||F.value),D=I(()=>{var t;return((t=a.value)==null?void 0:t.remoteAccess.mode)||"disabled"});return z(S,t=>{if(t){const{networkAddresses:i,...f}=t,u=X(f);a.value={...u,serverAddresses:(u.serverAddresses||[]).filter(Boolean)}}},{deep:!0,immediate:!0}),(t,i)=>{const f=T,u=j,x=E,N=U,_=O,V=q,P=G;return d(),p("div",null,[s(e(J),{ref:"formRef",class:"w-full h-full","validation-schema":e(ee),onSubmit:i[4]||(i[4]=n=>e(R)(n))},{default:o(()=>[e(a)?g("",!0):(d(),p("div",se,[s(f,{class:"w-[50px] h-[50px] m-0","stroke-width":"7"})])),l("div",te,[e(a)?(d(),p("div",oe,[l("span",le,m(t.$t("views.settings.connection")),1),s(x,{class:"cui-card"},{content:o(()=>[l("div",ae,[l("div",ne,[l("span",ie,m(t.$t("views.settings.status")),1),e(r)?(d(),H(f,{key:0,class:"w-[15px] h-[15px] m-0","stroke-width":"5"})):(d(),p("span",re,"Offline"))]),s(u,{disabled:"",loading:e(r),class:"cui-button-medium ml-auto",label:t.$t("components.form.button.test_connection")},null,8,["loading","label"])])]),_:1})])):g("",!0),e(a)?(d(),p("div",me,[l("span",ce,m(t.$t("views.settings.remote_access_settings")),1),s(x,{class:"cui-card"},{content:o(()=>[l("div",de,[l("span",ue,m(t.$t("views.settings.remote_access_info")),1),s(e(w),{"model-value":e(a).remoteAccess.mode,name:"remoteAccess.mode",as:"div",class:"flex flex-col field-gap"},{default:o(({field:n,errors:c})=>[l("label",pe,m(t.$t("components.form.label.remote_access_mode")),1),s(_,null,{default:o(()=>[s(N,h(n,{"model-value":e(a).remoteAccess.mode,options:e(C),invalid:c.length>0,loading:e(r),type:"text",onValueChange:i[0]||(i[0]=v=>e(a).remoteAccess.mode=v)}),null,16,["model-value","options","invalid","loading"])]),_:2},1024),s(b,{name:"fade"},{default:o(()=>[s(e(y),{name:"remoteAccess.mode",class:"cui-input-error"})]),_:1})]),_:1},8,["model-value"]),B(s(e(w),{modelValue:e(a).remoteAccess.cloudflare.customDomain,"onUpdate:modelValue":i[1]||(i[1]=n=>e(a).remoteAccess.cloudflare.customDomain=n),modelModifiers:{trim:!0},loading:e(r),name:"remoteAccess.cloudflare.customDomain",as:"div",class:"flex flex-col field-gap"},{default:o(({field:n,errors:c})=>[l("label",fe,m(t.$t("components.form.label.custom_domain")),1),s(_,null,{default:o(()=>[s(V,h(n,{invalid:c.length>0,loading:e(r),type:"text"}),null,16,["invalid","loading"])]),_:2},1024),s(b,{name:"fade"},{default:o(()=>[s(e(y),{name:"remoteAccess.cloudflare.customDomain",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue","loading"]),[[M,e(D)==="cloudflare"]]),B(s(e(w),{modelValue:e(a).remoteAccess.customDomain.url,"onUpdate:modelValue":i[2]||(i[2]=n=>e(a).remoteAccess.customDomain.url=n),modelModifiers:{trim:!0},loading:e(r),name:"remoteAccess.customDomain.url",as:"div",class:"flex flex-col field-gap"},{default:o(({field:n,errors:c})=>[l("label",_e,m(t.$t("components.form.label.url")),1),s(_,null,{default:o(()=>[s(V,h(n,{invalid:c.length>0,loading:e(r),type:"text"}),null,16,["invalid","loading"])]),_:2},1024),s(b,{name:"fade"},{default:o(()=>[s(e(y),{name:"remoteAccess.customDomain.url",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue","loading"]),[[M,e(D)==="custom-domain"]]),s(u,{disabled:"",loading:e(r),class:"cui-button-medium ml-auto",label:t.$t("components.form.button.save")},null,8,["loading","label"])])]),_:1})])):g("",!0),e(a)?(d(),p("div",ve,[l("span",ge,m(t.$t("views.settings.network")),1),s(x,{class:"cui-card"},{content:o(()=>[l("div",he,[l("span",be,m(t.$t("views.settings.network_info")),1),s(e(w),{"model-value":e(A),name:"serverAddresses",as:"div",class:"flex flex-col field-gap"},{default:o(({field:n,errors:c})=>[l("label",we,m(t.$t("components.form.label.server_addresses")),1),s(_,null,{default:o(()=>{var v;return[s(P,h(n,{"model-value":e(A),options:((v=e(S))==null?void 0:v.networkAddresses)||[],invalid:c.length>0,loading:e(r),"max-selected-labels":2,"show-toggle-all":!1,"show-clear":"","option-label":"address","option-value":"address",type:"text",onValueChange:i[3]||(i[3]=Q=>A.value=Q)}),null,16,["model-value","options","invalid","loading"])]}),_:2},1024),s(b,{name:"fade"},{default:o(()=>[s(e(y),{name:"serverAddresses",class:"cui-input-error"})]),_:1})]),_:1},8,["model-value"]),s(u,{type:"submit",loading:e(r),class:"cui-button-medium ml-auto",label:t.$t("components.form.button.save")},null,8,["loading","label"])])]),_:1})])):g("",!0)])]),_:1},8,["validation-schema"])])}}});export{cs as default};
@@ -1 +0,0 @@
1
- var oe=Object.defineProperty;var se=(d,n,a)=>n in d?oe(d,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[n]=a;var L=(d,n,a)=>se(d,typeof n!="symbol"?n+"":n,a);import{r as ne,a as re,b as ae}from"./primevue.BrJeQg-D.0.0.63-internal.1.js";import{a3 as ie,a as le,u as ce,b as ue}from"./main.D15XYqzn.0.0.63-internal.1.js";import{u as me,a as de}from"./@tanstack.-CPyCYGF.0.0.63-internal.1.js";import{r as l,B as pe,y as ve,k as E,w as P,o as fe,a7 as ge,c as v,d as i,e as s,O as f,R as g,N as S,h as t,I as m,M as h}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";import{S as ye,d as we}from"./system.CUrUlrbh.0.0.63-internal.1.js";import{_ as be}from"./VersionsHandler.vue_vue_type_script_setup_true_lang.BwVudk7G.0.0.63-internal.1.js";import{u as _e}from"./vue-i18n.jMmTVww-.0.0.63-internal.1.js";import{c as R}from"./compare-versions.DqEOhma6.0.0.63-internal.1.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.1.js";import"./@primevue.CqtyCLKt.0.0.63-internal.1.js";import"./@vueuse.DCl2sYi2.0.0.63-internal.1.js";import"./nprogress.aQm5L1--.0.0.63-internal.1.js";import"./@xterm.CC2uq0fH.0.0.63-internal.1.js";import"./axios.DHr9lByg.0.0.63-internal.1.js";import"./pinia.C-E9NxBs.0.0.63-internal.1.js";import"./vue-router.w5QQqiZH.0.0.63-internal.1.js";import"./vue-inline-svg.CntWe0ll.0.0.63-internal.1.js";import"./vee-validate.f3lxPCeQ.0.0.63-internal.1.js";import"./@vee-validate.DwnTmCFe.0.0.63-internal.1.js";import"./zod.sy4ilHCy.0.0.63-internal.1.js";import"./uuid.C6aID195.0.0.63-internal.1.js";import"./socket.io-client.B2bMDSrp.0.0.63-internal.1.js";import"./engine.io-client.-shgo3yC.0.0.63-internal.1.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.1.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";import"./socket.io-parser.DcGq--hP.0.0.63-internal.1.js";import"./rxjs.CA224vHi.0.0.63-internal.1.js";import"./tslib.9k7AwCpt.0.0.63-internal.1.js";import"./highlight.js.DPZXtNMN.0.0.63-internal.1.js";import"./markdown-it.DIP68NWE.0.0.63-internal.1.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.1.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.1.js";import"./entities.C20TfXL6.0.0.63-internal.1.js";import"./linkify-it.C-tqq8kS.0.0.63-internal.1.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.1.js";import"./qrcode.iDFhGM5u.0.0.63-internal.1.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.1.js";import"./draggabilly.z6N0YiJq.0.0.63-internal.1.js";import"./get-size.D1dS-IaP.0.0.63-internal.1.js";import"./unidragger.Ce9qFTax.0.0.63-internal.1.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.1.js";import"./vue-zoomable.6LMR-QhL.0.0.63-internal.1.js";import"./primelocale.Bga3dOQu.0.0.63-internal.1.js";import"./@intlify.BkGPX90O.0.0.63-internal.1.js";import"./CuiConsole.Dn9rUoHf.0.0.63-internal.1.js";const he=async({signal:d})=>(await ie.get("/",{signal:d})).data;class ke{constructor(){L(this,"_queryClient",me());L(this,"queryActivator",l([{name:"apiInfoQuery",enabled:!0}]))}get queryClient(){return this._queryClient}apiInfoQuery(){return de({queryKey:["api"],queryFn:({signal:n})=>he({signal:n}),enabled:()=>this.queryActivator.value.some(n=>n.name==="apiInfoQuery"&&n.enabled)})}toggleQueryActivator(n,a){const y=this.queryActivator.value.find(V=>V.name===n);y&&(y.enabled=a)}}const Ce={class:"flex flex-col w-full gap-6"},$e={class:"flex flex-col gap-6"},xe={key:0,class:"flex flex-row items-center justify-between"},Qe={class:"text-sm"},Ae={key:1,class:"text-sm font-bold"},Ee={class:"flex flex-row items-center justify-between"},Se={class:"text-sm"},Ve={key:1,class:"text-sm font-bold"},Ie={key:1,class:"flex w-full items-center gap-2"},qe={key:0},Te={class:"card-title"},Be={class:"flex flex-col gap-6"},Ue={class:"text-sm"},Le={class:"card-title"},Pe={class:"flex flex-col gap-6"},De={class:"text-sm"},Fe={key:1},Ne={class:"card-title"},Re={class:"flex flex-col gap-6"},je={class:"text-sm"},Ut=pe({__name:"SettingsSystem",setup(d){const n=new ke,a=new ye,y=le(),V=ce(),{t:r}=_e(),D=l(r("views.settings.unknown")),F=l(r("views.settings.unknown")),j=ve(),k=l(),C=l(),$=l(),x=l(!1),I=l(!1),N=l(!1),q=l(!1),c=l(!1),_=l(!1);a.toggleQueryActivator("checkVersionQuery",!1);const{data:w,isFetching:M}=n.apiInfoQuery(),{data:T,isFetching:O}=a.checkVersionQuery(),{mutate:K,isPending:z}=a.restartServerQuery(),{mutateAsync:G,isPending:H}=a.resetServerQuery(),u=E(()=>z.value||H.value||M.value||O.value||q.value||I.value),J=E(()=>w.value&&C.value?R(C.value,w.value.version)===1:!1),W=E(()=>w.value&&k.value?R(k.value,w.value.version)===1:!1),B=E(()=>J.value?C.value:W.value?k.value:void 0);P(w,()=>{var e;D.value=((e=w.value)==null?void 0:e.version)||r("views.settings.unknown")},{deep:!0,immediate:!0}),P(T,()=>{var e,o;C.value=(e=T.value)==null?void 0:e["dist-tags"].latest,k.value=(o=T.value)==null?void 0:o["dist-tags"].alpha},{deep:!0,immediate:!0}),P(c,e=>{a.toggleQueryActivator("checkVersionQuery",!e),e&&(Y(),Z())},{deep:!0,immediate:!0});const X=async()=>{if(!x.value){x.value=!0;try{const e=await we(),o=window.URL.createObjectURL(new Blob([e],{type:"application/x-x509-ca-cert"})),p=document.createElement("a");p.href=o,p.setAttribute("download","cert.pem"),document.body.appendChild(p),p.click(),p.remove()}catch(e){console.log(e)}x.value=!1}},Q=e=>{switch(e){case"restart":y.openTextDialog({data:{title:r("components.dialog.title.restart"),confirmText:r("components.form.button.restart"),contentText:r("components.dialog.message.confirm_restart_server"),loading:u},onConfirm:K});break;case"reset":y.openTextDialog({data:{title:r("components.dialog.title.reset_server"),confirmText:r("components.form.button.reset"),contentText:r("components.dialog.message.confirm_reset_server"),loading:u},onConfirm:async()=>{try{await G()}catch{}finally{V.logout()}}});break;case"versions":case"install":y.openComponentDialog(be,{data:{title:r("components.dialog.title.install_version"),confirmText:r(e==="install"?"components.form.button.restart":"components.form.button.install"),loading:u,contentProps:{target:{type:"server"},installVersion:e==="install"?B.value:void 0}}});break}},Y=async()=>{if(c.value)try{N.value=!0,F.value=await window.electron.invoke("get-app-version")??r("views.settings.unknown")}catch(e){console.error("Error getting electron app version:",e)}finally{N.value=!1}},Z=async()=>{if(c.value)try{q.value=!0;const e=await window.electron.invoke("get-update-available");$.value=e.isUpdateAvailable?e.version:void 0}catch(e){console.error("Error checking for electron updates:",e)}finally{q.value=!1}},ee=async()=>{if(c.value)try{I.value=!0,await window.electron.invoke("quit-and-install")}catch(e){console.error("Error installing electron update:",e)}finally{I.value=!1}},te=()=>{const e=document.querySelector('meta[name="electron-server"]'),o=e!==null&&e.getAttribute("content")==="true";c.value=window.electron!==void 0,_.value=o,setTimeout(()=>{c.value=window.electron!==void 0,_.value=o},100)};return fe(()=>{te()}),ge(()=>{var e,o;(o=(e=j.value)==null?void 0:e.end)==null||o.call(e)}),(e,o)=>{const p=re,b=ae,A=ne;return i(),v("div",null,[s("div",Ce,[s("div",null,[o[5]||(o[5]=s("span",{class:"card-title"},"camera.ui",-1)),g(A,{class:"cui-card"},{content:S(()=>[s("div",$e,[t(c)?(i(),v("div",xe,[s("span",Qe,m(e.$t("views.settings.app")),1),t(u)?(i(),h(p,{key:0,class:"w-[15px] h-[15px] m-0","stroke-width":"5"})):(i(),v("span",Ae,"v"+m(t(F)),1))])):f("",!0),s("div",Ee,[s("span",Se,m(e.$t("views.settings.server")),1),t(u)?(i(),h(p,{key:0,class:"w-[15px] h-[15px] m-0","stroke-width":"5"})):(i(),v("span",Ve,"v"+m(t(D)),1))]),t(c)&&t($)||!t(_)?(i(),v("div",Ie,[o[4]||(o[4]=s("div",{class:"ml-auto"},null,-1)),t(c)&&t($)?(i(),h(b,{key:0,disabled:!t(c),loading:t(u),class:"cui-button-medium",label:`${e.$t("components.form.button.update")} (v${t($)})`,onClick:ee},null,8,["disabled","loading","label"])):f("",!0),!t(_)&&t(B)?(i(),h(b,{key:1,loading:t(u),class:"cui-button-medium",label:`${e.$t("components.form.button.update")} (v${t(B)})`,onClick:o[0]||(o[0]=U=>Q("install"))},null,8,["loading","label"])):f("",!0),t(_)?f("",!0):(i(),h(b,{key:2,loading:t(u),class:"cui-button-medium",label:e.$t("components.form.button.manage"),onClick:o[1]||(o[1]=U=>Q("versions"))},null,8,["loading","label"]))])):f("",!0)])]),_:1})]),t(c)?f("",!0):(i(),v("div",qe,[s("span",Te,m(e.$t("views.settings.certificate")),1),g(A,{class:"cui-card"},{content:S(()=>[s("div",Be,[s("span",Ue,m(e.$t("views.settings.certificate_info")),1),g(b,{loading:t(x)||t(u),class:"cui-button-medium ml-auto",label:e.$t("components.form.button.download"),onClick:X},null,8,["loading","label"])])]),_:1})])),s("div",null,[s("span",Le,m(e.$t("views.settings.restart_server")),1),g(A,{class:"cui-card"},{content:S(()=>[s("div",Pe,[s("span",De,m(e.$t("views.settings.restart_server_info")),1),g(b,{loading:t(u),class:"cui-button-medium ml-auto",label:e.$t("components.form.button.restart"),onClick:o[2]||(o[2]=U=>Q("restart"))},null,8,["loading","label"])])]),_:1})]),("useCuiPermission"in e?e.useCuiPermission:t(ue))(void 0,"master")?(i(),v("div",Fe,[s("span",Ne,m(e.$t("views.settings.reset_server")),1),g(A,{class:"cui-card !border-red-900"},{content:S(()=>[s("div",Re,[s("span",je,m(e.$t("views.settings.reset_server_info")),1),g(b,{loading:t(u),class:"cui-button-medium ml-auto",label:e.$t("components.form.button.reset"),onClick:o[3]||(o[3]=U=>Q("reset"))},null,8,["loading","label"])])]),_:1})])):f("",!0)])])}}});export{Ut as default};
@@ -1 +0,0 @@
1
- import{l as te,e as oe,f as se,p as ae,r as ne,b as le,M as re,N as ie,a as de}from"./primevue.BrJeQg-D.0.0.63-internal.1.js";import{U as W,ao as me,at as ue,c as ce,a as pe,h as fe,D as ge,ap as _e}from"./main.D15XYqzn.0.0.63-internal.1.js";import{U as ve}from"./@primevue.CqtyCLKt.0.0.63-internal.1.js";import{T as he}from"./trash-fill.Az0x18aS.0.0.63-internal.1.js";import{F as we,c as X,d as L,e as a,B as Y,t as xe,ac as Z,r as B,k as O,i as be,M as K,N as o,h as e,R as t,O as ye,I as h,m as P,V as U,D as Ce,f as ke,P as Q}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";import{F as $e,E as R,a as V}from"./vee-validate.f3lxPCeQ.0.0.63-internal.1.js";import{u as ee}from"./vue-i18n.jMmTVww-.0.0.63-internal.1.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.1.js";import"./@tanstack.-CPyCYGF.0.0.63-internal.1.js";import"./@vueuse.DCl2sYi2.0.0.63-internal.1.js";import"./nprogress.aQm5L1--.0.0.63-internal.1.js";import"./@xterm.CC2uq0fH.0.0.63-internal.1.js";import"./axios.DHr9lByg.0.0.63-internal.1.js";import"./pinia.C-E9NxBs.0.0.63-internal.1.js";import"./vue-router.w5QQqiZH.0.0.63-internal.1.js";import"./vue-inline-svg.CntWe0ll.0.0.63-internal.1.js";import"./@vee-validate.DwnTmCFe.0.0.63-internal.1.js";import"./zod.sy4ilHCy.0.0.63-internal.1.js";import"./uuid.C6aID195.0.0.63-internal.1.js";import"./socket.io-client.B2bMDSrp.0.0.63-internal.1.js";import"./engine.io-client.-shgo3yC.0.0.63-internal.1.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.1.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";import"./socket.io-parser.DcGq--hP.0.0.63-internal.1.js";import"./rxjs.CA224vHi.0.0.63-internal.1.js";import"./tslib.9k7AwCpt.0.0.63-internal.1.js";import"./highlight.js.DPZXtNMN.0.0.63-internal.1.js";import"./markdown-it.DIP68NWE.0.0.63-internal.1.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.1.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.1.js";import"./entities.C20TfXL6.0.0.63-internal.1.js";import"./linkify-it.C-tqq8kS.0.0.63-internal.1.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.1.js";import"./qrcode.iDFhGM5u.0.0.63-internal.1.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.1.js";import"./draggabilly.z6N0YiJq.0.0.63-internal.1.js";import"./get-size.D1dS-IaP.0.0.63-internal.1.js";import"./unidragger.Ce9qFTax.0.0.63-internal.1.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.1.js";import"./vue-zoomable.6LMR-QhL.0.0.63-internal.1.js";import"./primelocale.Bga3dOQu.0.0.63-internal.1.js";import"./@intlify.BkGPX90O.0.0.63-internal.1.js";const Pe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ue(D,f){return L(),X("svg",Pe,f[0]||(f[0]=[a("path",{fill:"currentColor",d:"m21.7 13.35l-1 1l-2.05-2.05l1-1a.55.55 0 0 1 .77 0l1.28 1.28c.21.21.21.56 0 .77M12 18.94l6.06-6.06l2.05 2.05L14.06 21H12zM12 14c-4.42 0-8 1.79-8 4v2h6v-1.89l4-4c-.66-.08-1.33-.11-2-.11m0-10a4 4 0 0 0-4 4a4 4 0 0 0 4 4a4 4 0 0 0 4-4a4 4 0 0 0-4-4"},null,-1)]))}const Re=we({name:"mdi-account-edit",render:Ue}),Ve={for:"username",class:"cui-label"},Le={for:"password",class:"cui-label"},Be={for:"passwordConfirm",class:"cui-label"},De={for:"role",class:"cui-label"},Me=Y({__name:"UserForm",props:{user:{}},setup(D,{expose:f}){const y=new W,M=ce(),{t:u}=ee(),x=be("dialogRefProps"),C=D,{user:i}=xe(C),k=Z("formRef"),l=B({}),T=B(["user","admin"]),{mutateAsync:F,isPending:N}=y.createUserQuery(),{mutateAsync:c,isPending:S}=y.patchUserQuery(),p=O(()=>{var n;return!!((n=x.loading)!=null&&n.value||N.value||S.value)});return f({isLoading:p,onConfirm:async()=>{var d;const n=await((d=k.value)==null?void 0:d.validate());if(!(n!=null&&n.valid))return M.add({severity:"error",summary:u("components.toast.title_error"),detail:u("components.toast.validation_failed"),life:3e3}),console.log("Validation failed",n),null;i.value?await c({username:i.value.username,userData:l.value}):await F({userData:l.value})}}),(n,d)=>{const z=oe,g=te,b=se,I=ae;return L(),K(e($e),{ref_key:"formRef",ref:k,class:"flex flex-col gap-6","validation-schema":e(i)?e(me):e(ue)},{default:o(()=>{var $,w;return[t(e(V),{modelValue:e(l).username,"onUpdate:modelValue":d[0]||(d[0]=r=>e(l).username=r),modelModifiers:{trim:!0},value:(($=e(i))==null?void 0:$.username)??e(l).username,name:"username",as:"div",class:"flex flex-col field-gap"},{default:o(({field:r,errors:s})=>[a("label",Ve,h(n.$t("components.form.label.username")),1),t(g,null,{default:o(()=>[t(z,P(r,{invalid:s.length>0,loading:e(p),type:"text"}),null,16,["invalid","loading"])]),_:2},1024),t(U,{name:"fade"},{default:o(()=>[t(e(R),{name:"username",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue","value"]),t(e(V),{modelValue:e(l).password,"onUpdate:modelValue":d[1]||(d[1]=r=>e(l).password=r),name:"password",as:"div",class:"flex flex-col field-gap"},{default:o(({field:r,errors:s})=>[a("label",Le,h(n.$t("components.form.label.new_password")),1),t(g,null,{default:o(()=>[t(b,P({invalid:s.length>0},r,{loading:e(p),feedback:!1,"toggle-mask":""}),null,16,["invalid","loading"])]),_:2},1024),t(U,{name:"fade"},{default:o(()=>[t(e(R),{name:"password",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue"]),t(e(V),{modelValue:e(l).passwordConfirm,"onUpdate:modelValue":d[2]||(d[2]=r=>e(l).passwordConfirm=r),name:"passwordConfirm",as:"div",class:"flex flex-col field-gap"},{default:o(({field:r,errors:s})=>[a("label",Be,h(n.$t("components.form.label.new_password_confirm")),1),t(g,null,{default:o(()=>[t(b,P({invalid:s.length>0},r,{loading:e(p),feedback:!1,"toggle-mask":""}),null,16,["invalid","loading"])]),_:2},1024),t(U,{name:"fade"},{default:o(()=>[t(e(R),{name:"passwordConfirm",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue"]),((w=e(i))==null?void 0:w.role)!=="master"?(L(),K(e(V),{key:0,"model-value":e(l).role,name:"role",as:"div",class:"flex flex-col field-gap"},{default:o(({field:r,errors:s})=>[a("label",De,h(n.$t("components.form.label.role")),1),t(g,null,{default:o(()=>{var _;return[t(I,P(r,{"model-value":((_=e(i))==null?void 0:_.role)??e(l).role,options:e(T),invalid:s.length>0,loading:e(p),type:"text",onValueChange:d[3]||(d[3]=v=>e(l).role=v)}),null,16,["model-value","options","invalid","loading"])]}),_:2},1024),t(U,{name:"fade"},{default:o(()=>[t(e(R),{name:"role",class:"cui-input-error"})]),_:1})]),_:1},8,["model-value"])):ye("",!0)]}),_:1},8,["validation-schema"])}}}),Te={class:"flex flex-col w-full gap-6"},Fe={class:"card-title"},Ne={class:"flex items-center gap-2"},Se={class:"flex flex-col"},ze={class:"text-sm font-semibold text-color"},Ie={class:"text-xs text-muted"},Qe={class:"relative w-6 h-6"},Oe={class:"flex flex-row items-end justify-end gap-2"},Lt=Y({__name:"SettingsUsers",setup(D){const f=new W,y=pe(),{mdBreakpoint:M}=fe(),{t:u}=ee(),x=B({global:{value:null,matchMode:ve.CONTAINS}}),C=B({pageSize:15,page:1}),i=Z("menuRef"),k={bodyRow:{class:"text-sm text-secondary"},column:{columnTitle:{class:"text-sm"}}},{data:l,isFetching:T}=f.getUsersQuery(C),{mutate:F,isPending:N}=f.removeUserQuery(),c=O(()=>T.value||N.value),S=O(()=>[{label:u("views.settings.edit"),icon:Re,buttonProps:{disabled:c.value},onClick:m=>{p(m)}},{label:u("views.settings.remove"),icon:he,iconProps:{class:"text-red-500"},labelProps:{class:"text-red-500"},buttonProps:{disabled:c.value,severity:"danger"},onClick:m=>{F({username:m.username})}}]),p=m=>{y.openComponentDialog(Me,{data:{title:u(m?"components.dialog.title.edit_user":"components.dialog.title.create_new_user"),confirmText:u(m?"components.form.button.save":"components.form.button.add"),loading:c,contentProps:{user:Ce(m)}}})};return(m,n)=>{const d=de,z=_e,g=ie,b=le,I=re,$=ne;return L(),X("div",null,[a("div",Te,[a("div",null,[a("span",Fe,h(m.$t("views.settings.registered_users")),1),t($,{class:"cui-card"},{content:o(()=>{var w,r;return[t(I,{filters:e(x),"onUpdate:filters":n[0]||(n[0]=s=>ke(x)?x.value=s:null),value:(w=e(l))==null?void 0:w.result,paginator:e(C).page>1||((r=e(l))==null?void 0:r.result)&&e(l).result.length>15,rows:15,"data-key":"id","filter-display":"menu",loading:e(c),"global-filter-fields":["username"],pt:k,"striped-row":"",scrollable:"","paginator-template":"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink"},{loading:o(()=>[t(d,{class:"w-[30px] h-[30px]","stroke-width":"5"})]),default:o(()=>[t(g,{field:"username","align-frozen":"left",frozen:!e(M),header:m.$t("views.settings.title_user"),"header-class":"p-2 h-7 min-h-7 max-h-7 w-40 min-w-40 max-w-40",class:"p-2 h-7 min-h-7 max-h-7 w-40 min-w-40 max-w-40"},{body:o(({data:s})=>[a("div",Ne,[t(z,{src:s.avatar,size:54},null,8,["src"]),a("div",Se,[a("span",ze,h(s.username),1),a("span",Ie,h(s.role),1)])])]),_:1},8,["frozen","header"]),t(g,{field:"action","header-class":"p-2 h-7 min-h-7 max-h-7",class:"p-2 h-7 min-h-7 max-h-7 text-right"},{body:o(({data:s})=>[a("div",null,[t(b,{rounded:"",severity:"secondary",loading:e(c),class:"text-white cui-icon-md",onClick:_=>{var v;return(v=e(i))==null?void 0:v.toggleMenu(_,void 0,s)}},{icon:o(()=>{var _,v,A,E,j,G,H,q,J;return[a("div",Qe,[a("div",{class:Q(["absolute top-1 left-1/2 -translate-x-1/2 w-1 h-1 rounded-full transform transition-all duration-100 origin-center bg-current",{"w-4 h-[2px] rotate-45 top-1/2 -translate-y-1/2 rounded-none":((_=e(i))==null?void 0:_.isOpen)&&((A=(v=e(i))==null?void 0:v.data)==null?void 0:A._id)===s._id}])},null,2),a("div",{class:Q(["absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-1 h-1 rounded-full transition-all duration-100 bg-current",{"opacity-0 scale-0":((E=e(i))==null?void 0:E.isOpen)&&((G=(j=e(i))==null?void 0:j.data)==null?void 0:G._id)===s._id}])},null,2),a("div",{class:Q(["absolute bottom-1 left-1/2 -translate-x-1/2 w-1 h-1 rounded-full transform transition-all duration-100 origin-center bg-current",{"w-4 h-[2px] -rotate-45 bottom-1/2 translate-y-1/2 rounded-none":((H=e(i))==null?void 0:H.isOpen)&&((J=(q=e(i))==null?void 0:q.data)==null?void 0:J._id)===s._id}])},null,2)])]}),_:2},1032,["loading","onClick"])])]),_:1})]),_:1},8,["filters","value","paginator","loading"])]}),_:1})]),a("div",Oe,[t(b,{severity:"success",loading:e(c),class:"cui-button-medium mr-4 md:mr-0",label:m.$t("components.form.button.create_new_user"),onClick:n[1]||(n[1]=w=>p())},null,8,["loading","label"])])]),t(ge,{ref_key:"menuRef",ref:i,items:e(S)},null,8,["items"])])}}});export{Lt as default};
@@ -1,4 +0,0 @@
1
- import{p as de,a as fe}from"./primevue.BrJeQg-D.0.0.63-internal.1.js";import{_ as me}from"./CuiConsole.Dn9rUoHf.0.0.63-internal.1.js";import{H as f,t as he,y as ye,j as we,p as _e}from"./highlight.js.DPZXtNMN.0.0.63-internal.1.js";import{M as ke}from"./markdown-it.DIP68NWE.0.0.63-internal.1.js";import{f as Qe,h as Pe,a4 as Ve,c as Ce}from"./main.D15XYqzn.0.0.63-internal.1.js";import{S as be}from"./system.CUrUlrbh.0.0.63-internal.1.js";import{u as Se}from"./vue-i18n.jMmTVww-.0.0.63-internal.1.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.1.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.DR0QhVMd.0.0.63-internal.1.js";import"./@xterm.CC2uq0fH.0.0.63-internal.1.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.D15XYqzn.0.0.63-internal.1.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.1.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.1.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.63-internal.1.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.1.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.63-internal.1.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.CC2uq0fH.0.0.63-internal.1.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.1.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};
@@ -1 +0,0 @@
1
- import{i as M}from"./@react-dnd.CcwRs9xb.0.0.63-internal.1.js";var l;(function(s){s.mouse="mouse",s.touch="touch",s.keyboard="keyboard"})(l||(l={}));class N{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,o){this.args=e,this.context=o}}function w(s,e,o,n){return Math.sqrt(Math.pow(Math.abs(o-s),2)+Math.pow(Math.abs(n-e),2))}function C(s,e,o,n,t){if(!t)return!1;const i=Math.atan2(n-e,o-s)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const x={Left:1},D={Left:0};function b(s){return s.button===void 0||s.button===D.Left}function L(s){return s.buttons===void 0||(s.buttons&x.Left)===0}function y(s){return!!s.targetTouches}const P=1;function _(s){const e=s.nodeType===P?s:s.parentElement;if(!e)return;const{top:o,left:n}=e.getBoundingClientRect();return{x:n,y:o}}function k(s,e){if(s.targetTouches.length===1)return S(s.targetTouches[0]);if(e&&s.touches.length===1&&s.touches[0].target===e.target)return S(s.touches[0])}function S(s,e){return y(s)?k(s,e):{x:s.clientX,y:s.clientY}}const T=(()=>{let s=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return s=!0,!0}}))}catch{}return s})(),v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(M(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.addEventListener(r,n,i)})}removeEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,o){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,o),this.addEventListener(o,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(o,"start",n)}}connectDragPreview(e,o,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,o),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,o){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,d;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,g=c&&o.contains(c);if(c===o||g)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,o),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,o,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&_(i)},this.handleTopMoveStartCapture=t=>{b(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!b(t))return;const i=S(t);i&&(y(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!b(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,d=S(t,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&C(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const g=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,g):this.document.elementsFromPoint(d.x,d.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let h=E[u];for(h!=null&&p.push(h);h;)h=h.parentElement,h&&p.indexOf(h)===-1&&p.push(h)}const m=p.filter(u=>g.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,h,O)=>O.indexOf(u)===h);if(r)for(const u in this.targetNodes){const h=this.targetNodes.get(u);if(c&&h&&h.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:d})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!L(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new N(n,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const A=function(e,o={},n={}){return new f(e,o,n)};export{A as T};
@@ -1 +0,0 @@
1
- import{F as t,c as n,d as o,e as r}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const a={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function l(s,e){return o(),n("svg",a,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M18 10h-4V6a2 2 0 0 0-4 0l.071 4H6a2 2 0 0 0 0 4l4.071-.071L10 18a2 2 0 0 0 4 0v-4.071L18 14a2 2 0 0 0 0-4"},null,-1)]))}const u=t({name:"typcn-plus",render:l}),i={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function c(s,e){return o(),n("svg",i,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"},null,-1)]))}const d=t({name:"material-symbols-refresh-rounded",render:c});export{d as _,u as a};
@@ -1 +0,0 @@
1
- import{p as k,i as b,S as v,n as E}from"./engine.io-client.-shgo3yC.0.0.63-internal.1.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.1.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";import{P as c,p as O}from"./socket.io-parser.DcGq--hP.0.0.63-internal.1.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
@@ -1 +0,0 @@
1
- import{E as N}from"./@socket.io.Dkula2eQ.0.0.63-internal.1.js";const A=typeof ArrayBuffer=="function",E=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,y=Object.prototype.toString,d=typeof Blob=="function"||typeof Blob<"u"&&y.call(Blob)==="[object BlobConstructor]",g=typeof File=="function"||typeof File<"u"&&y.call(File)==="[object FileConstructor]";function a(e){return A&&(e instanceof ArrayBuffer||E(e))||d&&e instanceof Blob||g&&e instanceof File}function u(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}function w(e){const r=[],t=e.data,n=e;return n.data=f(t,r),n.attachments=r.length,{packet:n,buffers:r}}function f(e,r){if(!e)return e;if(a(e)){const t={_placeholder:!0,num:r.length};return r.push(e),t}else if(Array.isArray(e)){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=f(e[n],r);return t}else if(typeof e=="object"&&!(e instanceof Date)){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=f(e[n],r));return t}return e}function B(e,r){return e.data=l(e.data,r),delete e.attachments,e}function l(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=l(e[t],r);else if(typeof e=="object")for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=l(e[t],r));return e}const C=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],R=5;var i;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(i||(i={}));class O{constructor(r){this.replacer=r}encode(r){return(r.type===i.EVENT||r.type===i.ACK)&&u(r)?this.encodeAsBinary({type:r.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let t=""+r.type;return(r.type===i.BINARY_EVENT||r.type===i.BINARY_ACK)&&(t+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(t+=r.nsp+","),r.id!=null&&(t+=r.id),r.data!=null&&(t+=JSON.stringify(r.data,this.replacer)),t}encodeAsBinary(r){const t=w(r),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function p(e){return Object.prototype.toString.call(e)==="[object Object]"}class h extends N{constructor(r){super(),this.reviver=r}add(r){let t;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(r);const n=t.type===i.BINARY_EVENT;n||t.type===i.BINARY_ACK?(t.type=n?i.EVENT:i.ACK,this.reconstructor=new m(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(a(r)||r.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(r),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let t=0;const n={type:Number(r.charAt(0))};if(i[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===i.BINARY_EVENT||n.type===i.BINARY_ACK){const s=t+1;for(;r.charAt(++t)!=="-"&&t!=r.length;);const c=r.substring(s,t);if(c!=Number(c)||r.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(c)}if(r.charAt(t+1)==="/"){const s=t+1;for(;++t&&!(r.charAt(t)===","||t===r.length););n.nsp=r.substring(s,t)}else n.nsp="/";const o=r.charAt(t+1);if(o!==""&&Number(o)==o){const s=t+1;for(;++t;){const c=r.charAt(t);if(c==null||Number(c)!=c){--t;break}if(t===r.length)break}n.id=Number(r.substring(s,t+1))}if(r.charAt(++t)){const s=this.tryParse(r.substr(t));if(h.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,t){switch(r){case i.CONNECT:return p(t);case i.DISCONNECT:return t===void 0;case i.CONNECT_ERROR:return typeof t=="string"||p(t);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&C.indexOf(t[0])===-1);case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class m{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const t=B(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const V=Object.freeze(Object.defineProperty({__proto__:null,Decoder:h,Encoder:O,get PacketType(){return i},protocol:R},Symbol.toStringTag,{value:"Module"}));export{i as P,V as p};
@@ -1 +0,0 @@
1
- var y=Object.defineProperty;var i=(t,e,n)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>i(t,typeof e!="symbol"?e+"":e,n);import{c as m,a3 as s}from"./main.D15XYqzn.0.0.63-internal.1.js";import{u as d,a as o,b as r}from"./@tanstack.-CPyCYGF.0.0.63-internal.1.js";import{u as l}from"./vue-i18n.jMmTVww-.0.0.63-internal.1.js";import{r as p}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const h=async()=>(await s.get("/system")).data,g=async t=>(await s.patch("/system",t)).data,f=async({serverData:t})=>(await s.post("/system/update",t)).data,v=async({signal:t})=>(await s.get("/system/version",{signal:t})).data,Q=async()=>(await s.delete("/system/log")).data,w=async({signal:t})=>(await s.get("/system/log/download",{signal:t})).data,S=async()=>(await s.post("/system/cert",{responseType:"arraybuffer"})).data,q=async({signal:t})=>(await s.get("/system/go2rtc",{signal:t})).data,F=async()=>(await s.put("/system/restart")).data,_=async()=>(await s.put("/system/restart/go2rtc")).data,b=async()=>(await s.put("/system/reset")).data;class G{constructor(){a(this,"_queryClient",d());a(this,"t",l().t);a(this,"toast",m());a(this,"queryActivator",p([{name:"downloadLogQuery",enabled:!0},{name:"getGo2RtcInfoQuery",enabled:!0},{name:"checkVersionQuery",enabled:!0},{name:"getSystemInfoQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getSystemInfoQuery(){return o({queryKey:["system"],queryFn:h})}patchSystemInfoQuery(){return r({mutationFn:g,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}updateServerQuery(){return r({mutationFn:f,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}downloadLogQuery(){return o({queryKey:["logs","system"],queryFn:({signal:e})=>w({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="downloadLogQuery"&&e.enabled)})}downloadCertQuery(){return r({mutationFn:S})}clearLogQuery(){return r({mutationFn:Q,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["logs","system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.log_cleared"),life:3e3})}})}checkVersionQuery(){return o({queryKey:["version"],queryFn:({signal:e})=>v({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="checkVersionQuery"&&e.enabled)})}getGo2RtcInfoQuery(){return o({queryKey:["go2rtc"],queryFn:({signal:e})=>q({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getGo2RtcInfoQuery"&&e.enabled)})}restartGo2RtcQuery(){return r({mutationFn:_,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.go2rtc_restarted"),life:3e3})}})}restartServerQuery(){return r({mutationFn:F,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_restarted"),life:3e3})}})}resetServerQuery(){return r({mutationFn:b,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_resetted"),life:3e3})}})}toggleQueryActivator(e,n){const c=this.queryActivator.value.find(u=>u.name===e);c&&(c.enabled=n)}}export{G as S,S as d,F as r};
@@ -1 +0,0 @@
1
- import{F as a,c as o,d as l,e as r}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function t(s,e){return l(),o("svg",n,e[0]||(e[0]=[r("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8.106 2.553A1 1 0 0 1 9 2h6a1 1 0 0 1 .894.553L17.618 6H20a1 1 0 1 1 0 2h-1v11a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V8H4a1 1 0 0 1 0-2h2.382zM14.382 4l1 2H8.618l1-2zM11 11a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0zm4 0a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0z","clip-rule":"evenodd"},null,-1)]))}const i=a({name:"iconamoon-trash-fill",render:t});export{i as T};
@@ -1 +0,0 @@
1
- import{C as P,B as T}from"./chart.js.D_yLwuUt.0.0.63-internal.1.js";import{B as O,y as C,a3 as D,a6 as j,r as q,o as A,a7 as K,w as R,D as h,a8 as w,n as U}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const L={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},k={ariaLabel:{type:String},ariaDescribedby:{type:String}},N={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...L,...k},$=j[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function u(t){return w(t)?h(t):t}function z(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return w(e)?new Proxy(t,{}):t}function E(t,e){const s=t.options;s&&e&&Object.assign(s,e)}function B(t,e){t.labels=e}function S(t,e,s){const o=[];t.datasets=e.map(n=>{const a=t.datasets.find(c=>c[s]===n[s]);return!a||!n.data||o.includes(a)?{...n}:(o.push(a),Object.assign(a,n),a)})}function F(t,e){const s={labels:[],datasets:[]};return B(s,t.labels),S(s,t.datasets,e),s}const G=O({props:N,setup(t,e){let{expose:s,slots:o}=e;const n=q(null),a=C(null);s({chart:a});const c=()=>{if(!n.value)return;const{type:r,data:p,options:y,plugins:f,datasetIdKey:v}=t,b=F(p,v),i=z(b,p);a.value=new P(n.value,{type:r,data:i,options:{...y},plugins:f})},d=()=>{const r=h(a.value);r&&(t.destroyDelay>0?setTimeout(()=>{r.destroy(),a.value=null},t.destroyDelay):(r.destroy(),a.value=null))},I=r=>{r.update(t.updateMode)};return A(c),K(d),R([()=>t.options,()=>t.data],(r,p)=>{let[y,f]=r,[v,b]=p;const i=h(a.value);if(!i)return;let g=!1;if(y){const l=u(y),m=u(v);l&&l!==m&&(E(i,l),g=!0)}if(f){const l=u(f.labels),m=u(b.labels),x=u(f.datasets),M=u(b.datasets);l!==m&&(B(i.config.data,l),g=!0),x&&x!==M&&(S(i.config.data,x,t.datasetIdKey),g=!0)}g&&U(()=>{I(i)})},{deep:!0}),()=>D("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[D("p",{},[o.default?o.default():""])])}});function H(t,e){return P.register(e),O({props:L,setup(s,o){let{expose:n}=o;const a=C(null),c=d=>{a.value=d==null?void 0:d.chart};return n({chart:a}),()=>D(G,$({ref:c},{type:t,...s}))}})}const V=H("bar",T);export{V as B};
@@ -1 +0,0 @@
1
- import{B as M,aa as P,r as x,w as $,n as N,M as C,d as G,a3 as H}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const h={};function O(n){return n.getIsPending!==void 0}function _(n){if(O(n))return n;let l=!0,r=n.then(t=>(l=!1,t),t=>{throw l=!1,t});return r.getIsPending=function(){return l},r}function A(n){let l={};const r=n.attributes;if(!r)return l;for(let t=r.length-1;t>=0;t--)l[r[t].name]=r[t].value;return l}function D(n){return Object.keys(n).reduce((l,r)=>(n[r]!==!1&&n[r]!==null&&n[r]!==void 0&&(l[r]=n[r]),l),{})}function V(n,l){const{class:r,style:t,...d}=A(n),{class:p,style:o,...m}=D(l);return{class:[r,p],style:[t,o],...d,...m}}const F=M({inheritAttrs:!1,__name:"InlineSvg",props:{src:{},title:{default:void 0},transformSource:{type:Function,default:n=>n},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:""}},emits:["loaded","unloaded","error"],setup(n,{expose:l,emit:r}){const t=n,d=r,p=P(),o=x(),m=x(),w=x(),I=Math.random().toString(36).substring(2);l({svgElSource:o,request:w}),$(()=>t.src,e=>{y(e)}),y(t.src);function k(e){if(e=e.cloneNode(!0),t.uniqueIds){const u=typeof t.uniqueIds=="string"?t.uniqueIds:I;e=B(e,u,t.uniqueIdsBase)}return e=t.transformSource(e),t.title&&q(e,t.title),e.innerHTML}function y(e){h[e]||(h[e]=E(e)),o.value&&h[e].getIsPending()&&!t.keepDuringLoading&&(o.value=null,d("unloaded")),h[e].then(u=>{o.value=u,N(()=>{d("loaded",m.value)})}).catch(u=>{o.value&&(o.value=void 0,d("unloaded")),delete h[e],d("error",u)})}function E(e){return _(new Promise((u,a)=>{const s=new XMLHttpRequest;s.open("GET",e,!0),w.value=s,s.onload=()=>{if(s.status>=200&&s.status<400)try{let v=new DOMParser().parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];v?u(v):a(new Error('Loaded file is not valid SVG"'))}catch(v){a(v)}else a(new Error("Error loading SVG"))},s.onerror=a,s.send()}))}const S=()=>o.value?H("svg",{...V(o.value,p),innerHTML:k(o.value),ref:m}):null;function q(e,u){const a=e.getElementsByTagName("title");if(a.length)a[0].textContent=u;else{const s=document.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=u,e.insertBefore(s,e.firstChild)}}function B(e,u,a=""){const s=["id","href","xlink:href","xlink:role","xlink:arcrole"],v=["href","xlink:href"],T=(c,g)=>v.includes(c)&&(g?!g.includes("#"):!1);return[...e.children].forEach(c=>{var g;if((g=c.attributes)!=null&&g.length){const b=Object.values(c.attributes).map(f=>{const i=/url\((.*?)\)/.exec(f.value);return i!=null&&i[1]&&(f.value=f.value.replace(i[0],`url(${a}${i[1]}_${u})`)),f});s.forEach(f=>{const i=b.find(L=>L.name===f);i&&!T(f,i.value)&&(i.value=`${i.value}_${u}`)})}return c.children.length?B(c,u,a):c}),e}return(e,u)=>(G(),C(S))}});export{F as R};
@@ -1 +0,0 @@
1
- import{B as Z,r as w,k as b,c as E,w as _,o as S,d as g,G as B,M as D,O as Y,h,P as X,e as p,$ as y,ab as C}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const j={class:"controll"},L={class:"controll__item controll__item--circle"},M={class:"controll__pan controll__item--circle__inner"},T={class:"controll__pan__up controll__item--circle__inner__up"},O={class:"controll__pan__right controll__item--circle__inner__right"},$={class:"controll__pan__down controll__item--circle__inner__down"},H={class:"controll__pan__left controll__item--circle__inner__left"},W={class:"controll__home controll__item controll__item--list-item"},I={class:"controll__zoom-in controll__item controll__item--list-item"},U={class:"controll__zoom-in controll__item controll__item--list-item"},V=Z({__name:"ControlButtons",emits:["buttondown","buttonup"],setup(e,{emit:l}){const u=l;function r(a,o){u("buttondown",{key:o})}function t(a,o){u("buttonup",{key:o})}return(a,o)=>(g(),E("div",{id:"v-zoomable-control-btns",class:"controll__buttons",onDblclick:o[31]||(o[31]=y(()=>{},["stop"])),onMousedown:o[32]||(o[32]=y(()=>{},["stop"]))},[p("ul",j,[p("li",L,[p("ul",M,[p("li",T,[p("a",{onPointerdown:o[0]||(o[0]=n=>r(n,"pan-up")),onPointerup:o[1]||(o[1]=n=>t(n,"pan-up")),onPointercancel:o[2]||(o[2]=n=>t(n,"pan-up")),onPointerleave:o[3]||(o[3]=n=>t(n,"pan-up")),onContextmenu:o[4]||(o[4]=y(()=>{},["prevent"]))},o[33]||(o[33]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-up"},[p("polyline",{points:"18 15 12 9 6 15"})],-1)]),32)]),p("li",O,[p("a",{onPointerdown:o[5]||(o[5]=n=>r(n,"pan-right")),onPointerup:o[6]||(o[6]=n=>t(n,"pan-right")),onPointercancel:o[7]||(o[7]=n=>t(n,"pan-right")),onPointerleave:o[8]||(o[8]=n=>t(n,"pan-right")),onContextmenu:o[9]||(o[9]=y(()=>{},["prevent"]))},o[34]||(o[34]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-right"},[p("polyline",{points:"9 18 15 12 9 6"})],-1)]),32)]),p("li",$,[p("a",{onPointerdown:o[10]||(o[10]=n=>r(n,"pan-down")),onPointerup:o[11]||(o[11]=n=>t(n,"pan-down")),onPointercancel:o[12]||(o[12]=n=>t(n,"pan-down")),onPointerleave:o[13]||(o[13]=n=>t(n,"pan-down")),onContextmenu:o[14]||(o[14]=y(()=>{},["prevent"]))},o[35]||(o[35]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-down"},[p("polyline",{points:"6 9 12 15 18 9"})],-1)]),32)]),p("li",H,[p("a",{onPointerdown:o[15]||(o[15]=n=>r(n,"pan-left")),onPointercancel:o[16]||(o[16]=n=>t(n,"pan-left")),onPointerup:o[17]||(o[17]=n=>t(n,"pan-left")),onPointerleave:o[18]||(o[18]=n=>t(n,"pan-left")),onContextmenu:o[19]||(o[19]=y(()=>{},["prevent"]))},o[36]||(o[36]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-left"},[p("polyline",{points:"15 18 9 12 15 6"})],-1)]),32)])])]),p("li",W,[p("a",{onPointerdown:o[20]||(o[20]=n=>r(n,"home"))},o[37]||(o[37]=[C('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minimize-2" data-v-3ba139de><polyline points="4 14 10 14 10 20" data-v-3ba139de></polyline><polyline points="20 10 14 10 14 4" data-v-3ba139de></polyline><line x1="14" y1="10" x2="21" y2="3" data-v-3ba139de></line><line x1="3" y1="21" x2="10" y2="14" data-v-3ba139de></line></svg>',1)]),32)]),p("li",I,[p("a",{onPointerdown:o[21]||(o[21]=n=>r(n,"zoom-in")),onPointerup:o[22]||(o[22]=n=>t(n,"zoom-in")),onPointercancel:o[23]||(o[23]=n=>t(n,"zoom-in")),onPointerleave:o[24]||(o[24]=n=>t(n,"zoom-in")),onContextmenu:o[25]||(o[25]=y(()=>{},["prevent"]))},o[38]||(o[38]=[C('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zoom-in" data-v-3ba139de><circle cx="11" cy="11" r="8" data-v-3ba139de></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-3ba139de></line><line x1="11" y1="8" x2="11" y2="14" data-v-3ba139de></line><line x1="8" y1="11" x2="14" y2="11" data-v-3ba139de></line></svg>',1)]),32)]),p("li",U,[p("a",{onPointerdown:o[26]||(o[26]=n=>r(n,"zoom-out")),onPointerup:o[27]||(o[27]=n=>t(n,"zoom-out")),onPointercancel:o[28]||(o[28]=n=>t(n,"zoom-out")),onPointerleave:o[29]||(o[29]=n=>t(n,"zoom-out")),onContextmenu:o[30]||(o[30]=y(()=>{},["prevent"]))},o[39]||(o[39]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-zoom-out"},[p("circle",{cx:"11",cy:"11",r:"8"}),p("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),p("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)]),32)])])],32))}}),N=(e,l)=>{const u=e.__vccOpts||e;for(const[r,t]of l)u[r]=t;return u},q=N(V,[["__scopeId","data-v-3ba139de"]]);function G(){let e=0;function l(r,t,a,o){r(),e=window.setTimeout(()=>{e=window.setInterval(()=>{t()},o)},a)}function u(){e&&(window.clearInterval(e),e=0)}return{startHold:l,clearHold:u}}const x="control-btn";function R({props:e,transform:l}){let u=G();function r(c){u.startHold(()=>{l.changeZoom(c*e.buttonZoomStep*.5,x)},()=>{l.changeZoom(c*e.buttonZoomStep*.5,x)},300,50)}function t(c){if(!e.disabled)switch(c.key){case"home":n();break;case"zoom-in":r(1);break;case"zoom-out":r(-1);break;case"pan-left":o({x:1,y:0});break;case"pan-right":o({x:-1,y:0});break;case"pan-up":o({x:0,y:1});break;case"pan-down":o({x:0,y:-1});break}}function a(c){u.clearHold()}function o(c){u.startHold(()=>{l.changePan(c.x*e.buttonPanStep,c.y*e.buttonPanStep,x)},()=>{l.changePan(c.x*e.buttonPanStep,c.y*e.buttonPanStep,x)},300,50)}function n(){l.goHome(x)}return{onButtonDown:t,onButtonUp:a}}function A({props:e,transform:l}){let u={x:0,y:0};function r(o){e.disabled||o.pointerType!=="mouse"||!e.mouseEnabled||(u={x:o.clientX,y:o.clientY},document.addEventListener("pointermove",a,{passive:!1}),document.addEventListener("pointerup",function(n){document.removeEventListener("pointermove",a)}),document.addEventListener("pointerleave",function(n){document.removeEventListener("pointermove",a)}),document.addEventListener("pointercancel",function(n){document.removeEventListener("pointermove",a)}))}function t(o){if(e.disabled||!e.dblClickEnabled||!e.zoomEnabled)return;const n={x:o.clientX,y:o.clientY};l.changeZoom(e.dblClickZoomStep,"dblClick",n)}function a(o){if(e.disabled||!e.panEnabled||o.pointerType!=="mouse"||!e.mouseEnabled)return;let n={x:o.clientX-u.x,y:o.clientY-u.y};l.changePan(n.x,n.y,o.pointerType),u={x:o.clientX,y:o.clientY},o.preventDefault()}return{onPointerDown:r,onDblClick:t}}function F({props:e,transform:l}){let u=w({}),r=w(0),t=null;function a(c){if(e.disabled||!e.touchEnabled||!e.panEnabled&&!e.zoomEnabled||(c.preventDefault(),c.touches.length<1))return;const i=c.touches.item(0);if(!i)return;let d=0,s={x:i.clientX,y:i.clientY};if(c.touches.length===2){const v=c.touches.item(1);let f=o({x:i?i.clientX:0,y:i?i.clientY:0},{x:v?v.clientX:0,y:v?v.clientY:0});r.value<=0?(r.value=f.distance,d=0):(d=f.distance/r.value*l.zoom.value-l.zoom.value,r.value=f.distance),s=f.center}if(e.zoomEnabled&&l.changeZoom(d,"touch",s),t===null){t={x:s.x,y:s.y};return}const m={x:s.x-t.x,y:s.y-t.y};e.panEnabled&&l.changePan(m.x,m.y,"touch"),t={x:s.x,y:s.y}}function o(c,i){let d=Math.sqrt(Math.pow(c.x-i.x,2)+Math.pow(c.y-i.y,2)),s={x:(c.x+i.x)/2,y:(c.y+i.y)/2};return{distance:d,center:s}}function n(c){e.disabled||!e.touchEnabled||(t=null,document.addEventListener("touchmove",a,{passive:!1}),document.addEventListener("touchend",function(i){c.touches.length<2&&(r.value=-1),document.removeEventListener("touchmove",a)}))}return{onTouchStart:n,touchCount:b(()=>Object.keys(u.value).length)}}function J({props:e,onChange:l,container:u,target:r}){const t=w({x:0,y:0}),a=w(0);S(()=>{a.value=e.minZoom,t.value={x:e.pan!=null?e.pan.x:e.initialPanX,y:e.pan!=null?e.pan.y:e.initialPanY},e.zoom?a.value=e.zoom:e.initialZoom>=e.minZoom&&e.initialZoom<=e.maxZoom&&(a.value=e.initialZoom)}),_(()=>e.zoom,()=>{isNaN(e.zoom)||(a.value=e.zoom)}),_(()=>e.pan,()=>{e.pan&&(t.value.x=e.pan.x,t.value.y=e.pan.y)},{deep:!0});function o(i,d,s){if(isNaN(i)||i===0)return;const m=a.value;let v=a.value+i;if(v>e.maxZoom?v=e.maxZoom:v<e.minZoom&&(v=e.minZoom),Math.abs(m-v)<1e-4)return;if(a.value=v,e.zoomOrigin==="center"&&(s=k(u.value)),e.zoomOrigin!=="content-center"){s||(s=k(u.value));const P=K(u.value,t.value),z={x:(v-m)*((P.x-s.x)/m),y:(v-m)*((P.y-s.y)/m)};n(z.x,z.y,"zoom")}let f={zoom:v,delta:{zoom:i,pan:{x:0,y:0}},pan:{x:t.value.x,y:t.value.y,deltaX:0,deltaY:0},type:d};l("zoom",f)}function n(i,d,s){isNaN(i)&&(i=0),isNaN(d)&&(d=0),t.value={x:t.value.x+i,y:t.value.y+d};let m={zoom:a.value,delta:{zoom:0,pan:{x:i,y:d}},pan:{x:t.value.x,y:t.value.y,deltaX:i,deltaY:d},type:s};l("panned",m)}function c(i){a.value=e.initialZoom,l("zoom",{zoom:a.value,pan:{x:t.value.x,y:t.value.y,deltaX:0,deltaY:0},type:i});let d={x:e.initialPanX-t.value.x,y:e.initialPanY-t.value.y};t.value={x:e.initialPanX,y:e.initialPanY},l("panned",{zoom:a.value,pan:{x:t.value.x,y:t.value.y,deltaX:d.x,deltaY:d.y},type:i})}return{zoom:b(()=>a.value),pan:b(()=>t.value),setZoom:i=>{a.value=i},setPan:i=>{t.value=i},changeZoom:o,changePan:n,goHome:c}}function k(e){const l=e.getBoundingClientRect();return{x:l.left+l.width/2,y:l.top+l.height/2}}function K(e,l){const u=k(e);return{x:u.x+l.x,y:u.y+l.y}}function Q({props:e,transform:l}){function u(r){if(e.disabled||!e.wheelEnabled||!e.zoomEnabled)return;const t=e.wheelZoomStep*-1*r.deltaY/Math.abs(r.deltaY),a={x:r.clientX,y:r.clientY};l.changeZoom(t,"wheel",a),r.preventDefault()}return{onWheel:u}}function oo({props:e,onChange:l,container:u,target:r}){const t=J({props:e,onChange:l,container:u,target:r}),a=F({props:e,transform:t}),o=Q({props:e,transform:t}),n=A({props:e,transform:t}),c=R({props:e,transform:t});return{zoom:t.zoom,pan:t.pan,setZoom:t.setZoom,setPan:t.setPan,onWheel:o.onWheel,onTouchStart:a.onTouchStart,onButtonUp:c.onButtonUp,onButtonDown:c.onButtonDown,onPointerDown:n.onPointerDown,onDblClick:n.onDblClick}}const eo=Z({__name:"VueZoomable",props:{zoom:{type:Number,default:null},pan:{type:Object,default:null},selector:{type:String,default:"* > *"},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.5},initialPanX:{type:Number,default:0},initialPanY:{type:Number,default:0},initialZoom:{type:Number,default:.5},dblClickZoomStep:{type:Number,default:.4},wheelZoomStep:{type:Number,default:.4},panEnabled:{type:Boolean,default:!0},zoomEnabled:{type:Boolean,default:!0},mouseEnabled:{type:Boolean,default:!0},touchEnabled:{type:Boolean,default:!0},dblClickEnabled:{type:Boolean,default:!0},wheelEnabled:{type:Boolean,default:!0},enableControlButton:{type:Boolean,default:!0},buttonPanStep:{type:Number,default:15},buttonZoomStep:{type:Number,default:.1},disabled:{type:Boolean,default:!1},zoomOrigin:{type:String,default:"pointer"}},emits:["panned","zoom","update:zoom","update:pan"],setup(e,{emit:l}){let u=l,r=e,t=w(),a=b(()=>{var d;return(d=t.value)==null?void 0:d.querySelector(r.selector)}),o=oo({props:r,onChange:n,container:t,target:a});function n(d,s){d==="zoom"?u("update:zoom",s.zoom):d==="panned"&&u("update:pan",s.pan),u(d,s)}let c=b(()=>`translate(${o.pan.value.x}px, ${o.pan.value.y}px) scale(${o.zoom.value})`);function i(){a.value&&(a.value.style.transform=c.value,a.value.style.transformOrigin="center center",a.value.style.transition="transform 0.07s ease-out",a.value.style.transformBox="fill-box")}return _(c,()=>{i()},{flush:"post"}),S(()=>{i()}),(d,s)=>(g(),E("div",{ref_key:"container",ref:t,class:X(d.$style.container),onDblclick:s[0]||(s[0]=(...m)=>h(o).onDblClick&&h(o).onDblClick(...m)),onPointerdown:s[1]||(s[1]=(...m)=>h(o).onPointerDown&&h(o).onPointerDown(...m)),onWheel:s[2]||(s[2]=(...m)=>h(o).onWheel&&h(o).onWheel(...m)),onTouchstart:s[3]||(s[3]=(...m)=>h(o).onTouchStart&&h(o).onTouchStart(...m))},[B(d.$slots,"default",{},void 0,!0),B(d.$slots,"buttons",{},()=>[h(r).enableControlButton?(g(),D(q,{key:0,onButtondown:h(o).onButtonDown,onButtonup:h(o).onButtonUp},null,8,["onButtondown","onButtonup"])):Y("",!0)],!0)],34))}}),to="_container_irdvc_2",no="_buttons_irdvc_11",ao={container:to,buttons:no},lo={$style:ao},io=N(eo,[["__cssModules",lo],["__scopeId","data-v-fce7d501"]]);export{io as m};
@@ -1 +0,0 @@
1
- import{c as R}from"./dnd-core.6p9ee2MI.0.0.63-internal.1.js";import{i as E,a5 as x,B as j,a7 as N,f as U,h as o,k as l,C as f,r as F,b as V}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.63-internal.1.js";import{e as P}from"./fast-deep-equal.BcnK3M2c.0.0.63-internal.1.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){x(M,t)}function Y(){return E(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function B(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return B(t)||L(t,r)||z(t,r)||G()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function X(t){return"manager"in t&&t.manager}function J(t){if(X(t)){var r=t.manager;return[r,!1]}var e=K(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function K(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=j({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(J(r),2),a=i[0],u=i[1];u&&++S,N(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function Q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){Q(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function je(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function Ne(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),je(n,r),Ne(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Be(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(t,r){return Ye(t)||Be(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Ge(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Xe(){var t=d();return l(function(){return new te(o(t))})}function Je(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Ke(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Xe(),n=Je(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ke(n,r)]}export{rt as D,it as a,nt as u};
@@ -1 +0,0 @@
1
- import{F as e,c as n,d as t,e as r}from"./@vue.Dh6viqaK.0.0.63-internal.1.js";const a={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function i(s,o){return t(),n("svg",a,o[0]||(o[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0-14 0m4 0h6m-3-3v6m11 8l-6-6"},null,-1)]))}const c=e({name:"tabler-zoom-in",render:i}),l={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function m(s,o){return t(),n("svg",l,o[0]||(o[0]=[r("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0-14 0m4 0h6m8 11l-6-6"},null,-1)]))}const u=e({name:"tabler-zoom-out",render:m});export{u as Z,c as a};