@camera.ui/server 0.0.1

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 (652) hide show
  1. package/dist/interface/assets/@babel-l0sNRNKZ.js +1 -0
  2. package/dist/interface/assets/@camera.ui-2NVnv26v.js +8 -0
  3. package/dist/interface/assets/@intlify-Ck2ZoCVz.js +15 -0
  4. package/dist/interface/assets/@mdi-C-QA1nE3.js +1 -0
  5. package/dist/interface/assets/@popperjs-BQBsAJpH.js +1 -0
  6. package/dist/interface/assets/@react-dnd-CcwRs9xb.js +1 -0
  7. package/dist/interface/assets/@socket.io-Dkula2eQ.js +1 -0
  8. package/dist/interface/assets/@tanstack-BqH4GyO-.js +1 -0
  9. package/dist/interface/assets/@vee-validate-DCBdnGo-.js +5 -0
  10. package/dist/interface/assets/@vue-C7-KaDG4.js +17 -0
  11. package/dist/interface/assets/@vueform-arggO0eF.js +1 -0
  12. package/dist/interface/assets/@vueform-h7tNX9p6.css +1 -0
  13. package/dist/interface/assets/@vueuse-C3WMTDqL.js +1 -0
  14. package/dist/interface/assets/@xterm-B4Ga69iL.js +9 -0
  15. package/dist/interface/assets/@xterm-CGrrDQr5.css +32 -0
  16. package/dist/interface/assets/Account-B_tHnXoX.css +1 -0
  17. package/dist/interface/assets/Account-gJpkf0nE.js +1 -0
  18. package/dist/interface/assets/Adminpanel-B_SY1GJM.css +0 -0
  19. package/dist/interface/assets/Adminpanel-Bge9nu5N.js +1 -0
  20. package/dist/interface/assets/Appearance-D22q-X_I.js +1 -0
  21. package/dist/interface/assets/Backup-DBv9xFPh.css +1 -0
  22. package/dist/interface/assets/Backup-pJm6s10G.js +1 -0
  23. package/dist/interface/assets/Camera-BgO2yRjb.js +1 -0
  24. package/dist/interface/assets/Camera-CWiLco3W.css +1 -0
  25. package/dist/interface/assets/Cameras-BM3vSM_R.css +1 -0
  26. package/dist/interface/assets/Cameras-DjeKruR_.js +1 -0
  27. package/dist/interface/assets/Camview-DfzlprzN.js +1 -0
  28. package/dist/interface/assets/Camview-vUAs5YHU.css +1 -0
  29. package/dist/interface/assets/Config-BKIOIkjC.js +1 -0
  30. package/dist/interface/assets/Config-DAiKsG7W.css +1 -0
  31. package/dist/interface/assets/Console-BsyX2S3R.css +1 -0
  32. package/dist/interface/assets/Console-Caz7y-T0.js +4 -0
  33. package/dist/interface/assets/FirstSteps-DNHhyDSw.css +1 -0
  34. package/dist/interface/assets/FirstSteps-mQK4XFTs.js +1 -0
  35. package/dist/interface/assets/NewCamera-B9t-0NCc.js +448 -0
  36. package/dist/interface/assets/NewCamera-CHMgUDbC.css +1 -0
  37. package/dist/interface/assets/Plugin-BSHKKjrl.css +1 -0
  38. package/dist/interface/assets/Plugin-Di_bBsg-.js +1 -0
  39. package/dist/interface/assets/Plugins-BsMITags.css +1 -0
  40. package/dist/interface/assets/Plugins-DhmzMNuO.js +1 -0
  41. package/dist/interface/assets/Recordings-Bu53bSBp.js +1 -0
  42. package/dist/interface/assets/Recordings-XY20w8yp.js +1 -0
  43. package/dist/interface/assets/Settings-JES2wb8p.css +1 -0
  44. package/dist/interface/assets/Settings-gGRBRVST.js +1 -0
  45. package/dist/interface/assets/System-ZDrcLNk0.js +1 -0
  46. package/dist/interface/assets/User-BXColIbU.css +1 -0
  47. package/dist/interface/assets/User-D4vEhhzi.js +1 -0
  48. package/dist/interface/assets/VConfigEditor.vue_vue_type_script_setup_true_lang-CXFI-IeE.js +2 -0
  49. package/dist/interface/assets/VConsole-BHo3xprq.js +1 -0
  50. package/dist/interface/assets/VConsole-f-nUkOuD.css +1 -0
  51. package/dist/interface/assets/VPlayer-D3KhRfx-.css +1 -0
  52. package/dist/interface/assets/VPlayer-YdRn97Bs.js +1 -0
  53. package/dist/interface/assets/VPluginCard--3bx6UJb.js +4 -0
  54. package/dist/interface/assets/VPluginCard-BJYMuCLk.css +1 -0
  55. package/dist/interface/assets/ace-builds-CigWTak4.js +956 -0
  56. package/dist/interface/assets/axios--Jv2L996.js +6 -0
  57. package/dist/interface/assets/dijkstrajs-D_NXgYpA.js +1 -0
  58. package/dist/interface/assets/dnd-core-SnWOpY0X.js +1 -0
  59. package/dist/interface/assets/draggabilly-Arakw9Dk.js +6 -0
  60. package/dist/interface/assets/encode-utf8-Cn5aGd7v.js +1 -0
  61. package/dist/interface/assets/engine.io-client-DBBxzneW.js +1 -0
  62. package/dist/interface/assets/engine.io-parser-BiEtp6m2.js +1 -0
  63. package/dist/interface/assets/entities-C20TfXL6.js +1 -0
  64. package/dist/interface/assets/ev-emitter-CXYwG0eJ.js +1 -0
  65. package/dist/interface/assets/fast-deep-equal-5pvsDbwX.js +1 -0
  66. package/dist/interface/assets/get-size-D1dS-IaP.js +5 -0
  67. package/dist/interface/assets/highlight-DgoK_Xib.css +1 -0
  68. package/dist/interface/assets/highlight.js-TxRCSjhv.js +2 -0
  69. package/dist/interface/assets/linkify-it-DmNjr4Kv.js +1 -0
  70. package/dist/interface/assets/logo-256-BCQk9H1-.png +0 -0
  71. package/dist/interface/assets/logo-512-DLKVOU2S.png +0 -0
  72. package/dist/interface/assets/logo-DmEiRk0z.png +0 -0
  73. package/dist/interface/assets/main-B3IVLctZ.css +1 -0
  74. package/dist/interface/assets/main-C4rYiRNz.js +2 -0
  75. package/dist/interface/assets/markdown-it-DI8MEbma.js +15 -0
  76. package/dist/interface/assets/mdurl-k9Sl0PQj.js +2 -0
  77. package/dist/interface/assets/mode-json-Br7xisR1.js +275 -0
  78. package/dist/interface/assets/mode-yaml-CIYL8U3d.js +395 -0
  79. package/dist/interface/assets/nprogress-DSyAi0LF.js +2 -0
  80. package/dist/interface/assets/pinia-D8MtiGcH.js +5 -0
  81. package/dist/interface/assets/plugins-Bf03y242.js +1 -0
  82. package/dist/interface/assets/punycode.js-Dj65hjkv.js +1 -0
  83. package/dist/interface/assets/qrcode-CGiDONbL.js +8 -0
  84. package/dist/interface/assets/react-dnd-html5-backend-1HQjlkwI.js +2 -0
  85. package/dist/interface/assets/react-dnd-touch-backend-NgACaG8W.js +1 -0
  86. package/dist/interface/assets/redux-CuxFRhX_.js +1 -0
  87. package/dist/interface/assets/rxjs-B53o3e_J.js +3 -0
  88. package/dist/interface/assets/socket.io-client-Bq_SHkin.js +1 -0
  89. package/dist/interface/assets/socket.io-parser-BBkuslX-.js +1 -0
  90. package/dist/interface/assets/system-BONnDA4y.js +1 -0
  91. package/dist/interface/assets/tslib-9k7AwCpt.js +1 -0
  92. package/dist/interface/assets/uc.micro-kMc2yuuw.js +1 -0
  93. package/dist/interface/assets/ui-CNpIJotI.js +1 -0
  94. package/dist/interface/assets/unidragger-BYtqgAQ0.js +5 -0
  95. package/dist/interface/assets/utils-BvINh1mj.js +1 -0
  96. package/dist/interface/assets/uuid-DvF23Exx.js +1 -0
  97. package/dist/interface/assets/v-calendar-CtSuDYZU.css +1 -0
  98. package/dist/interface/assets/v-calendar-uh0aTGqP.js +1 -0
  99. package/dist/interface/assets/vee-validate-D3FqbChK.js +5 -0
  100. package/dist/interface/assets/vue-i18n-1AU8MPys.js +5 -0
  101. package/dist/interface/assets/vue-inline-svg-2DDwYW6V.js +1 -0
  102. package/dist/interface/assets/vue-l0sNRNKZ.js +1 -0
  103. package/dist/interface/assets/vue-router-DfeQ8s4I.js +5 -0
  104. package/dist/interface/assets/vue3-dnd-BwxcSU9Z.js +1 -0
  105. package/dist/interface/assets/vue3-toastify-DTY1DMRs.css +1 -0
  106. package/dist/interface/assets/vue3-toastify-Ul-rf53I.js +1 -0
  107. package/dist/interface/assets/vuetify-B__3Y-at.css +5 -0
  108. package/dist/interface/assets/vuetify-_-Oqac3B.js +5 -0
  109. package/dist/interface/assets/zod-BaF2dDCd.js +1 -0
  110. package/dist/interface/browserconfig.xml +11 -0
  111. package/dist/interface/fonts/Inter/Inter-Regular.ttf +0 -0
  112. package/dist/interface/index.html +377 -0
  113. package/dist/interface/manifest.webmanifest +1 -0
  114. package/dist/interface/pwa/apple-splash-landscape-dark-1136x640.png +0 -0
  115. package/dist/interface/pwa/apple-splash-landscape-dark-1334x750.png +0 -0
  116. package/dist/interface/pwa/apple-splash-landscape-dark-1792x828.png +0 -0
  117. package/dist/interface/pwa/apple-splash-landscape-dark-2048x1536.png +0 -0
  118. package/dist/interface/pwa/apple-splash-landscape-dark-2160x1620.png +0 -0
  119. package/dist/interface/pwa/apple-splash-landscape-dark-2208x1242.png +0 -0
  120. package/dist/interface/pwa/apple-splash-landscape-dark-2224x1668.png +0 -0
  121. package/dist/interface/pwa/apple-splash-landscape-dark-2388x1668.png +0 -0
  122. package/dist/interface/pwa/apple-splash-landscape-dark-2436x1125.png +0 -0
  123. package/dist/interface/pwa/apple-splash-landscape-dark-2532x1170.png +0 -0
  124. package/dist/interface/pwa/apple-splash-landscape-dark-2556x1179.png +0 -0
  125. package/dist/interface/pwa/apple-splash-landscape-dark-2688x1242.png +0 -0
  126. package/dist/interface/pwa/apple-splash-landscape-dark-2732x2048.png +0 -0
  127. package/dist/interface/pwa/apple-splash-landscape-dark-2778x1284.png +0 -0
  128. package/dist/interface/pwa/apple-splash-landscape-dark-2796x1290.png +0 -0
  129. package/dist/interface/pwa/apple-splash-landscape-light-1136x640.png +0 -0
  130. package/dist/interface/pwa/apple-splash-landscape-light-1334x750.png +0 -0
  131. package/dist/interface/pwa/apple-splash-landscape-light-1792x828.png +0 -0
  132. package/dist/interface/pwa/apple-splash-landscape-light-2048x1536.png +0 -0
  133. package/dist/interface/pwa/apple-splash-landscape-light-2160x1620.png +0 -0
  134. package/dist/interface/pwa/apple-splash-landscape-light-2208x1242.png +0 -0
  135. package/dist/interface/pwa/apple-splash-landscape-light-2224x1668.png +0 -0
  136. package/dist/interface/pwa/apple-splash-landscape-light-2388x1668.png +0 -0
  137. package/dist/interface/pwa/apple-splash-landscape-light-2436x1125.png +0 -0
  138. package/dist/interface/pwa/apple-splash-landscape-light-2532x1170.png +0 -0
  139. package/dist/interface/pwa/apple-splash-landscape-light-2556x1179.png +0 -0
  140. package/dist/interface/pwa/apple-splash-landscape-light-2688x1242.png +0 -0
  141. package/dist/interface/pwa/apple-splash-landscape-light-2732x2048.png +0 -0
  142. package/dist/interface/pwa/apple-splash-landscape-light-2778x1284.png +0 -0
  143. package/dist/interface/pwa/apple-splash-landscape-light-2796x1290.png +0 -0
  144. package/dist/interface/pwa/apple-splash-portrait-dark-1125x2436.png +0 -0
  145. package/dist/interface/pwa/apple-splash-portrait-dark-1170x2532.png +0 -0
  146. package/dist/interface/pwa/apple-splash-portrait-dark-1179x2556.png +0 -0
  147. package/dist/interface/pwa/apple-splash-portrait-dark-1242x2208.png +0 -0
  148. package/dist/interface/pwa/apple-splash-portrait-dark-1242x2688.png +0 -0
  149. package/dist/interface/pwa/apple-splash-portrait-dark-1284x2778.png +0 -0
  150. package/dist/interface/pwa/apple-splash-portrait-dark-1290x2796.png +0 -0
  151. package/dist/interface/pwa/apple-splash-portrait-dark-1536x2048.png +0 -0
  152. package/dist/interface/pwa/apple-splash-portrait-dark-1620x2160.png +0 -0
  153. package/dist/interface/pwa/apple-splash-portrait-dark-1668x2224.png +0 -0
  154. package/dist/interface/pwa/apple-splash-portrait-dark-1668x2388.png +0 -0
  155. package/dist/interface/pwa/apple-splash-portrait-dark-2048x2732.png +0 -0
  156. package/dist/interface/pwa/apple-splash-portrait-dark-640x1136.png +0 -0
  157. package/dist/interface/pwa/apple-splash-portrait-dark-750x1334.png +0 -0
  158. package/dist/interface/pwa/apple-splash-portrait-dark-828x1792.png +0 -0
  159. package/dist/interface/pwa/apple-splash-portrait-light-1125x2436.png +0 -0
  160. package/dist/interface/pwa/apple-splash-portrait-light-1170x2532.png +0 -0
  161. package/dist/interface/pwa/apple-splash-portrait-light-1179x2556.png +0 -0
  162. package/dist/interface/pwa/apple-splash-portrait-light-1242x2208.png +0 -0
  163. package/dist/interface/pwa/apple-splash-portrait-light-1242x2688.png +0 -0
  164. package/dist/interface/pwa/apple-splash-portrait-light-1284x2778.png +0 -0
  165. package/dist/interface/pwa/apple-splash-portrait-light-1290x2796.png +0 -0
  166. package/dist/interface/pwa/apple-splash-portrait-light-1536x2048.png +0 -0
  167. package/dist/interface/pwa/apple-splash-portrait-light-1620x2160.png +0 -0
  168. package/dist/interface/pwa/apple-splash-portrait-light-1668x2224.png +0 -0
  169. package/dist/interface/pwa/apple-splash-portrait-light-1668x2388.png +0 -0
  170. package/dist/interface/pwa/apple-splash-portrait-light-2048x2732.png +0 -0
  171. package/dist/interface/pwa/apple-splash-portrait-light-640x1136.png +0 -0
  172. package/dist/interface/pwa/apple-splash-portrait-light-750x1334.png +0 -0
  173. package/dist/interface/pwa/apple-splash-portrait-light-828x1792.png +0 -0
  174. package/dist/interface/pwa/apple-touch-icon-180x180.png +0 -0
  175. package/dist/interface/pwa/favicon-16.ico +0 -0
  176. package/dist/interface/pwa/favicon-32.ico +0 -0
  177. package/dist/interface/pwa/favicon-48.ico +0 -0
  178. package/dist/interface/pwa/favicon-64.ico +0 -0
  179. package/dist/interface/pwa/logo.svg +1 -0
  180. package/dist/interface/pwa/maskable-icon-1240x600.png +0 -0
  181. package/dist/interface/pwa/maskable-icon-512x512.png +0 -0
  182. package/dist/interface/pwa/maskable-icon-620x300.png +0 -0
  183. package/dist/interface/pwa/pwa-1024x1024.png +0 -0
  184. package/dist/interface/pwa/pwa-120x120.png +0 -0
  185. package/dist/interface/pwa/pwa-144x144.png +0 -0
  186. package/dist/interface/pwa/pwa-152x152.png +0 -0
  187. package/dist/interface/pwa/pwa-167x167.png +0 -0
  188. package/dist/interface/pwa/pwa-180x180.png +0 -0
  189. package/dist/interface/pwa/pwa-192x192.png +0 -0
  190. package/dist/interface/pwa/pwa-24x24.png +0 -0
  191. package/dist/interface/pwa/pwa-300x300.png +0 -0
  192. package/dist/interface/pwa/pwa-36x36.png +0 -0
  193. package/dist/interface/pwa/pwa-48x48.png +0 -0
  194. package/dist/interface/pwa/pwa-50x50.png +0 -0
  195. package/dist/interface/pwa/pwa-64x64.png +0 -0
  196. package/dist/interface/pwa/pwa-72x72.png +0 -0
  197. package/dist/interface/pwa/pwa-88x88.png +0 -0
  198. package/dist/interface/pwa/pwa-96x96.png +0 -0
  199. package/dist/interface/registerSW.js +1 -0
  200. package/dist/interface/robots.txt +2 -0
  201. package/dist/interface/sw.js +1 -0
  202. package/dist/interface/workbox-3e911b1d.js +1 -0
  203. package/dist/server/bin/cui-service.d.ts +43 -0
  204. package/dist/server/bin/cui-service.js +472 -0
  205. package/dist/server/bin/cui-service.js.map +1 -0
  206. package/dist/server/bin/cui.d.ts +2 -0
  207. package/dist/server/bin/cui.js +8 -0
  208. package/dist/server/bin/cui.js.map +1 -0
  209. package/dist/server/bin/installer/base.d.ts +16 -0
  210. package/dist/server/bin/installer/base.js +41 -0
  211. package/dist/server/bin/installer/base.js.map +1 -0
  212. package/dist/server/bin/installer/darwin.d.ts +49 -0
  213. package/dist/server/bin/installer/darwin.js +200 -0
  214. package/dist/server/bin/installer/darwin.js.map +1 -0
  215. package/dist/server/bin/installer/freebsd.d.ts +61 -0
  216. package/dist/server/bin/installer/freebsd.js +252 -0
  217. package/dist/server/bin/installer/freebsd.js.map +1 -0
  218. package/dist/server/bin/installer/linux.d.ts +92 -0
  219. package/dist/server/bin/installer/linux.js +386 -0
  220. package/dist/server/bin/installer/linux.js.map +1 -0
  221. package/dist/server/bin/installer/win32.d.ts +37 -0
  222. package/dist/server/bin/installer/win32.js +158 -0
  223. package/dist/server/bin/installer/win32.js.map +1 -0
  224. package/dist/server/package.json +142 -0
  225. package/dist/server/requirements.txt +13 -0
  226. package/dist/server/src/api/controllers/api.controller.d.ts +6 -0
  227. package/dist/server/src/api/controllers/api.controller.js +11 -0
  228. package/dist/server/src/api/controllers/api.controller.js.map +1 -0
  229. package/dist/server/src/api/controllers/auth.controller.d.ts +20 -0
  230. package/dist/server/src/api/controllers/auth.controller.js +263 -0
  231. package/dist/server/src/api/controllers/auth.controller.js.map +1 -0
  232. package/dist/server/src/api/controllers/backup.controller.d.ts +10 -0
  233. package/dist/server/src/api/controllers/backup.controller.js +52 -0
  234. package/dist/server/src/api/controllers/backup.controller.js.map +1 -0
  235. package/dist/server/src/api/controllers/cameras.controller.d.ts +34 -0
  236. package/dist/server/src/api/controllers/cameras.controller.js +522 -0
  237. package/dist/server/src/api/controllers/cameras.controller.js.map +1 -0
  238. package/dist/server/src/api/controllers/config.controller.d.ts +14 -0
  239. package/dist/server/src/api/controllers/config.controller.js +89 -0
  240. package/dist/server/src/api/controllers/config.controller.js.map +1 -0
  241. package/dist/server/src/api/controllers/files.controller.d.ts +8 -0
  242. package/dist/server/src/api/controllers/files.controller.js +28 -0
  243. package/dist/server/src/api/controllers/files.controller.js.map +1 -0
  244. package/dist/server/src/api/controllers/frameWorkers.controller.d.ts +16 -0
  245. package/dist/server/src/api/controllers/frameWorkers.controller.js +85 -0
  246. package/dist/server/src/api/controllers/frameWorkers.controller.js.map +1 -0
  247. package/dist/server/src/api/controllers/plugins.controller.d.ts +59 -0
  248. package/dist/server/src/api/controllers/plugins.controller.js +1178 -0
  249. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -0
  250. package/dist/server/src/api/controllers/system.controller.d.ts +14 -0
  251. package/dist/server/src/api/controllers/system.controller.js +149 -0
  252. package/dist/server/src/api/controllers/system.controller.js.map +1 -0
  253. package/dist/server/src/api/controllers/users.controller.d.ts +28 -0
  254. package/dist/server/src/api/controllers/users.controller.js +463 -0
  255. package/dist/server/src/api/controllers/users.controller.js.map +1 -0
  256. package/dist/server/src/api/database/index.d.ts +34 -0
  257. package/dist/server/src/api/database/index.js +185 -0
  258. package/dist/server/src/api/database/index.js.map +1 -0
  259. package/dist/server/src/api/database/migration.d.ts +12 -0
  260. package/dist/server/src/api/database/migration.js +47 -0
  261. package/dist/server/src/api/database/migration.js.map +1 -0
  262. package/dist/server/src/api/database/types.d.ts +209 -0
  263. package/dist/server/src/api/database/types.js +2 -0
  264. package/dist/server/src/api/database/types.js.map +1 -0
  265. package/dist/server/src/api/go2rtc/api/application.d.ts +9 -0
  266. package/dist/server/src/api/go2rtc/api/application.js +38 -0
  267. package/dist/server/src/api/go2rtc/api/application.js.map +1 -0
  268. package/dist/server/src/api/go2rtc/api/config.d.ts +8 -0
  269. package/dist/server/src/api/go2rtc/api/config.js +44 -0
  270. package/dist/server/src/api/go2rtc/api/config.js.map +1 -0
  271. package/dist/server/src/api/go2rtc/api/index.d.ts +1 -0
  272. package/dist/server/src/api/go2rtc/api/index.js +28 -0
  273. package/dist/server/src/api/go2rtc/api/index.js.map +1 -0
  274. package/dist/server/src/api/go2rtc/api/snapshot.d.ts +8 -0
  275. package/dist/server/src/api/go2rtc/api/snapshot.js +34 -0
  276. package/dist/server/src/api/go2rtc/api/snapshot.js.map +1 -0
  277. package/dist/server/src/api/go2rtc/api/streams.d.ts +10 -0
  278. package/dist/server/src/api/go2rtc/api/streams.js +67 -0
  279. package/dist/server/src/api/go2rtc/api/streams.js.map +1 -0
  280. package/dist/server/src/api/go2rtc/index.d.ts +13 -0
  281. package/dist/server/src/api/go2rtc/index.js +25 -0
  282. package/dist/server/src/api/go2rtc/index.js.map +1 -0
  283. package/dist/server/src/api/go2rtc/queue.d.ts +10 -0
  284. package/dist/server/src/api/go2rtc/queue.js +38 -0
  285. package/dist/server/src/api/go2rtc/queue.js.map +1 -0
  286. package/dist/server/src/api/go2rtc/types.d.ts +60 -0
  287. package/dist/server/src/api/go2rtc/types.js +2 -0
  288. package/dist/server/src/api/go2rtc/types.js.map +1 -0
  289. package/dist/server/src/api/index.d.ts +20 -0
  290. package/dist/server/src/api/index.js +233 -0
  291. package/dist/server/src/api/index.js.map +1 -0
  292. package/dist/server/src/api/middlewares/authPermission.middleware.d.ts +5 -0
  293. package/dist/server/src/api/middlewares/authPermission.middleware.js +28 -0
  294. package/dist/server/src/api/middlewares/authPermission.middleware.js.map +1 -0
  295. package/dist/server/src/api/middlewares/authValidation.middleware.d.ts +4 -0
  296. package/dist/server/src/api/middlewares/authValidation.middleware.js +129 -0
  297. package/dist/server/src/api/middlewares/authValidation.middleware.js.map +1 -0
  298. package/dist/server/src/api/middlewares/pagination.middleware.d.ts +3 -0
  299. package/dist/server/src/api/middlewares/pagination.middleware.js +65 -0
  300. package/dist/server/src/api/middlewares/pagination.middleware.js.map +1 -0
  301. package/dist/server/src/api/middlewares/socketAuth.middleware.d.ts +41 -0
  302. package/dist/server/src/api/middlewares/socketAuth.middleware.js +81 -0
  303. package/dist/server/src/api/middlewares/socketAuth.middleware.js.map +1 -0
  304. package/dist/server/src/api/plugins/cameraui.plugin.d.ts +11 -0
  305. package/dist/server/src/api/plugins/cameraui.plugin.js +6 -0
  306. package/dist/server/src/api/plugins/cameraui.plugin.js.map +1 -0
  307. package/dist/server/src/api/plugins/database.plugin.d.ts +11 -0
  308. package/dist/server/src/api/plugins/database.plugin.js +12 -0
  309. package/dist/server/src/api/plugins/database.plugin.js.map +1 -0
  310. package/dist/server/src/api/plugins/go2rtc.plugin.d.ts +11 -0
  311. package/dist/server/src/api/plugins/go2rtc.plugin.js +11 -0
  312. package/dist/server/src/api/plugins/go2rtc.plugin.js.map +1 -0
  313. package/dist/server/src/api/plugins/logger.plugin.d.ts +7 -0
  314. package/dist/server/src/api/plugins/logger.plugin.js +29 -0
  315. package/dist/server/src/api/plugins/logger.plugin.js.map +1 -0
  316. package/dist/server/src/api/plugins/socket.plugin.d.ts +11 -0
  317. package/dist/server/src/api/plugins/socket.plugin.js +12 -0
  318. package/dist/server/src/api/plugins/socket.plugin.js.map +1 -0
  319. package/dist/server/src/api/plugins/system.plugin.d.ts +21 -0
  320. package/dist/server/src/api/plugins/system.plugin.js +33 -0
  321. package/dist/server/src/api/plugins/system.plugin.js.map +1 -0
  322. package/dist/server/src/api/plugins/useragent.plugin.d.ts +8 -0
  323. package/dist/server/src/api/plugins/useragent.plugin.js +10 -0
  324. package/dist/server/src/api/plugins/useragent.plugin.js.map +1 -0
  325. package/dist/server/src/api/routes/api.routes.d.ts +2 -0
  326. package/dist/server/src/api/routes/api.routes.js +6 -0
  327. package/dist/server/src/api/routes/api.routes.js.map +1 -0
  328. package/dist/server/src/api/routes/auth.routes.d.ts +2 -0
  329. package/dist/server/src/api/routes/auth.routes.js +47 -0
  330. package/dist/server/src/api/routes/auth.routes.js.map +1 -0
  331. package/dist/server/src/api/routes/backup.routes.d.ts +2 -0
  332. package/dist/server/src/api/routes/backup.routes.js +23 -0
  333. package/dist/server/src/api/routes/backup.routes.js.map +1 -0
  334. package/dist/server/src/api/routes/cameras.routes.d.ts +2 -0
  335. package/dist/server/src/api/routes/cameras.routes.js +181 -0
  336. package/dist/server/src/api/routes/cameras.routes.js.map +1 -0
  337. package/dist/server/src/api/routes/config.routes.d.ts +2 -0
  338. package/dist/server/src/api/routes/config.routes.js +55 -0
  339. package/dist/server/src/api/routes/config.routes.js.map +1 -0
  340. package/dist/server/src/api/routes/files.routes.d.ts +2 -0
  341. package/dist/server/src/api/routes/files.routes.js +12 -0
  342. package/dist/server/src/api/routes/files.routes.js.map +1 -0
  343. package/dist/server/src/api/routes/frameWorkers.routes.d.ts +2 -0
  344. package/dist/server/src/api/routes/frameWorkers.routes.js +33 -0
  345. package/dist/server/src/api/routes/frameWorkers.routes.js.map +1 -0
  346. package/dist/server/src/api/routes/index.d.ts +6 -0
  347. package/dist/server/src/api/routes/index.js +32 -0
  348. package/dist/server/src/api/routes/index.js.map +1 -0
  349. package/dist/server/src/api/routes/plugins.routes.d.ts +2 -0
  350. package/dist/server/src/api/routes/plugins.routes.js +339 -0
  351. package/dist/server/src/api/routes/plugins.routes.js.map +1 -0
  352. package/dist/server/src/api/routes/system.routes.d.ts +2 -0
  353. package/dist/server/src/api/routes/system.routes.js +43 -0
  354. package/dist/server/src/api/routes/system.routes.js.map +1 -0
  355. package/dist/server/src/api/routes/users.routes.d.ts +2 -0
  356. package/dist/server/src/api/routes/users.routes.js +139 -0
  357. package/dist/server/src/api/routes/users.routes.js.map +1 -0
  358. package/dist/server/src/api/schemas/backup.schema.d.ts +118 -0
  359. package/dist/server/src/api/schemas/backup.schema.js +75 -0
  360. package/dist/server/src/api/schemas/backup.schema.js.map +1 -0
  361. package/dist/server/src/api/schemas/cameras.schema.d.ts +932 -0
  362. package/dist/server/src/api/schemas/cameras.schema.js +271 -0
  363. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -0
  364. package/dist/server/src/api/schemas/config.schema.d.ts +202 -0
  365. package/dist/server/src/api/schemas/config.schema.js +68 -0
  366. package/dist/server/src/api/schemas/config.schema.js.map +1 -0
  367. package/dist/server/src/api/schemas/go2rtc.schema.d.ts +703 -0
  368. package/dist/server/src/api/schemas/go2rtc.schema.js +188 -0
  369. package/dist/server/src/api/schemas/go2rtc.schema.js.map +1 -0
  370. package/dist/server/src/api/schemas/plugins.schema.d.ts +72 -0
  371. package/dist/server/src/api/schemas/plugins.schema.js +103 -0
  372. package/dist/server/src/api/schemas/plugins.schema.js.map +1 -0
  373. package/dist/server/src/api/schemas/users.schema.d.ts +1008 -0
  374. package/dist/server/src/api/schemas/users.schema.js +151 -0
  375. package/dist/server/src/api/schemas/users.schema.js.map +1 -0
  376. package/dist/server/src/api/services/auth.service.d.ts +19 -0
  377. package/dist/server/src/api/services/auth.service.js +115 -0
  378. package/dist/server/src/api/services/auth.service.js.map +1 -0
  379. package/dist/server/src/api/services/backup.service.d.ts +11 -0
  380. package/dist/server/src/api/services/backup.service.js +108 -0
  381. package/dist/server/src/api/services/backup.service.js.map +1 -0
  382. package/dist/server/src/api/services/cameras.service.d.ts +55 -0
  383. package/dist/server/src/api/services/cameras.service.js +700 -0
  384. package/dist/server/src/api/services/cameras.service.js.map +1 -0
  385. package/dist/server/src/api/services/plugins.service.d.ts +25 -0
  386. package/dist/server/src/api/services/plugins.service.js +145 -0
  387. package/dist/server/src/api/services/plugins.service.js.map +1 -0
  388. package/dist/server/src/api/services/users.service.d.ts +25 -0
  389. package/dist/server/src/api/services/users.service.js +197 -0
  390. package/dist/server/src/api/services/users.service.js.map +1 -0
  391. package/dist/server/src/api/types/index.d.ts +580 -0
  392. package/dist/server/src/api/types/index.js +9 -0
  393. package/dist/server/src/api/types/index.js.map +1 -0
  394. package/dist/server/src/api/utils/cert.d.ts +11 -0
  395. package/dist/server/src/api/utils/cert.js +411 -0
  396. package/dist/server/src/api/utils/cert.js.map +1 -0
  397. package/dist/server/src/api/utils/constants.d.ts +15 -0
  398. package/dist/server/src/api/utils/constants.js +17 -0
  399. package/dist/server/src/api/utils/constants.js.map +1 -0
  400. package/dist/server/src/api/utils/fetch.d.ts +2 -0
  401. package/dist/server/src/api/utils/fetch.js +24 -0
  402. package/dist/server/src/api/utils/fetch.js.map +1 -0
  403. package/dist/server/src/api/utils/moveFiles.d.ts +1 -0
  404. package/dist/server/src/api/utils/moveFiles.js +38 -0
  405. package/dist/server/src/api/utils/moveFiles.js.map +1 -0
  406. package/dist/server/src/api/utils/parse.d.ts +2 -0
  407. package/dist/server/src/api/utils/parse.js +12 -0
  408. package/dist/server/src/api/utils/parse.js.map +1 -0
  409. package/dist/server/src/api/websocket/index.d.ts +15 -0
  410. package/dist/server/src/api/websocket/index.js +69 -0
  411. package/dist/server/src/api/websocket/index.js.map +1 -0
  412. package/dist/server/src/api/websocket/nsp/frameWorker.d.ts +13 -0
  413. package/dist/server/src/api/websocket/nsp/frameWorker.js +29 -0
  414. package/dist/server/src/api/websocket/nsp/frameWorker.js.map +1 -0
  415. package/dist/server/src/api/websocket/nsp/logs.d.ts +11 -0
  416. package/dist/server/src/api/websocket/nsp/logs.js +113 -0
  417. package/dist/server/src/api/websocket/nsp/logs.js.map +1 -0
  418. package/dist/server/src/api/websocket/nsp/metrics.d.ts +38 -0
  419. package/dist/server/src/api/websocket/nsp/metrics.js +266 -0
  420. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -0
  421. package/dist/server/src/api/websocket/nsp/notifications.d.ts +11 -0
  422. package/dist/server/src/api/websocket/nsp/notifications.js +35 -0
  423. package/dist/server/src/api/websocket/nsp/notifications.js.map +1 -0
  424. package/dist/server/src/api/websocket/nsp/plugins.d.ts +13 -0
  425. package/dist/server/src/api/websocket/nsp/plugins.js +29 -0
  426. package/dist/server/src/api/websocket/nsp/plugins.js.map +1 -0
  427. package/dist/server/src/api/websocket/nsp/server.d.ts +9 -0
  428. package/dist/server/src/api/websocket/nsp/server.js +48 -0
  429. package/dist/server/src/api/websocket/nsp/server.js.map +1 -0
  430. package/dist/server/src/api/websocket/nsp/status.d.ts +26 -0
  431. package/dist/server/src/api/websocket/nsp/status.js +59 -0
  432. package/dist/server/src/api/websocket/nsp/status.js.map +1 -0
  433. package/dist/server/src/api/websocket/types.d.ts +86 -0
  434. package/dist/server/src/api/websocket/types.js +2 -0
  435. package/dist/server/src/api/websocket/types.js.map +1 -0
  436. package/dist/server/src/api.d.ts +43 -0
  437. package/dist/server/src/api.js +90 -0
  438. package/dist/server/src/api.js.map +1 -0
  439. package/dist/server/src/camera/controller.d.ts +41 -0
  440. package/dist/server/src/camera/controller.js +220 -0
  441. package/dist/server/src/camera/controller.js.map +1 -0
  442. package/dist/server/src/camera/device.d.ts +18 -0
  443. package/dist/server/src/camera/device.js +21 -0
  444. package/dist/server/src/camera/device.js.map +1 -0
  445. package/dist/server/src/camera/index.d.ts +121 -0
  446. package/dist/server/src/camera/index.js +643 -0
  447. package/dist/server/src/camera/index.js.map +1 -0
  448. package/dist/server/src/camera/interfaces/camera.d.ts +11 -0
  449. package/dist/server/src/camera/interfaces/camera.js +31 -0
  450. package/dist/server/src/camera/interfaces/camera.js.map +1 -0
  451. package/dist/server/src/camera/interfaces/prebuffer.d.ts +11 -0
  452. package/dist/server/src/camera/interfaces/prebuffer.js +26 -0
  453. package/dist/server/src/camera/interfaces/prebuffer.js.map +1 -0
  454. package/dist/server/src/camera/interfaces/ptz.d.ts +13 -0
  455. package/dist/server/src/camera/interfaces/ptz.js +47 -0
  456. package/dist/server/src/camera/interfaces/ptz.js.map +1 -0
  457. package/dist/server/src/camera/polygon.d.ts +6 -0
  458. package/dist/server/src/camera/polygon.js +151 -0
  459. package/dist/server/src/camera/polygon.js.map +1 -0
  460. package/dist/server/src/camera/streaming/peer-connection.d.ts +46 -0
  461. package/dist/server/src/camera/streaming/peer-connection.js +150 -0
  462. package/dist/server/src/camera/streaming/peer-connection.js.map +1 -0
  463. package/dist/server/src/camera/streaming/webrtc-connection.d.ts +34 -0
  464. package/dist/server/src/camera/streaming/webrtc-connection.js +152 -0
  465. package/dist/server/src/camera/streaming/webrtc-connection.js.map +1 -0
  466. package/dist/server/src/camera/streaming/werift-session.d.ts +31 -0
  467. package/dist/server/src/camera/streaming/werift-session.js +168 -0
  468. package/dist/server/src/camera/streaming/werift-session.js.map +1 -0
  469. package/dist/server/src/camera/types.d.ts +202 -0
  470. package/dist/server/src/camera/types.js +7 -0
  471. package/dist/server/src/camera/types.js.map +1 -0
  472. package/dist/server/src/camera/videoFrame.d.ts +24 -0
  473. package/dist/server/src/camera/videoFrame.js +105 -0
  474. package/dist/server/src/camera/videoFrame.js.map +1 -0
  475. package/dist/server/src/decoder/ffmpeg.d.ts +2 -0
  476. package/dist/server/src/decoder/ffmpeg.js +61 -0
  477. package/dist/server/src/decoder/ffmpeg.js.map +1 -0
  478. package/dist/server/src/decoder/index.d.ts +11 -0
  479. package/dist/server/src/decoder/index.js +32 -0
  480. package/dist/server/src/decoder/index.js.map +1 -0
  481. package/dist/server/src/decoder/types.d.ts +156 -0
  482. package/dist/server/src/decoder/types.js +2 -0
  483. package/dist/server/src/decoder/types.js.map +1 -0
  484. package/dist/server/src/decoder/worker.d.ts +42 -0
  485. package/dist/server/src/decoder/worker.js +273 -0
  486. package/dist/server/src/decoder/worker.js.map +1 -0
  487. package/dist/server/src/go2rtc/index.d.ts +25 -0
  488. package/dist/server/src/go2rtc/index.js +211 -0
  489. package/dist/server/src/go2rtc/index.js.map +1 -0
  490. package/dist/server/src/go2rtc/types.d.ts +14 -0
  491. package/dist/server/src/go2rtc/types.js +73 -0
  492. package/dist/server/src/go2rtc/types.js.map +1 -0
  493. package/dist/server/src/index.d.ts +16 -0
  494. package/dist/server/src/index.js +5 -0
  495. package/dist/server/src/index.js.map +1 -0
  496. package/dist/server/src/main.d.ts +18 -0
  497. package/dist/server/src/main.js +118 -0
  498. package/dist/server/src/main.js.map +1 -0
  499. package/dist/server/src/nats/constants.d.ts +1 -0
  500. package/dist/server/src/nats/constants.js +2 -0
  501. package/dist/server/src/nats/constants.js.map +1 -0
  502. package/dist/server/src/nats/index.d.ts +35 -0
  503. package/dist/server/src/nats/index.js +150 -0
  504. package/dist/server/src/nats/index.js.map +1 -0
  505. package/dist/server/src/nats/messageQueue.d.ts +17 -0
  506. package/dist/server/src/nats/messageQueue.js +148 -0
  507. package/dist/server/src/nats/messageQueue.js.map +1 -0
  508. package/dist/server/src/nats/proxy/cameraDevice.d.ts +30 -0
  509. package/dist/server/src/nats/proxy/cameraDevice.js +252 -0
  510. package/dist/server/src/nats/proxy/cameraDevice.js.map +1 -0
  511. package/dist/server/src/nats/proxy/deviceManager.d.ts +16 -0
  512. package/dist/server/src/nats/proxy/deviceManager.js +110 -0
  513. package/dist/server/src/nats/proxy/deviceManager.js.map +1 -0
  514. package/dist/server/src/nats/proxy/index.d.ts +2 -0
  515. package/dist/server/src/nats/proxy/index.js +3 -0
  516. package/dist/server/src/nats/proxy/index.js.map +1 -0
  517. package/dist/server/src/nats/server.d.ts +38 -0
  518. package/dist/server/src/nats/server.js +325 -0
  519. package/dist/server/src/nats/server.js.map +1 -0
  520. package/dist/server/src/nats/types.d.ts +125 -0
  521. package/dist/server/src/nats/types.js +11 -0
  522. package/dist/server/src/nats/types.js.map +1 -0
  523. package/dist/server/src/nats/utils.d.ts +4 -0
  524. package/dist/server/src/nats/utils.js +12 -0
  525. package/dist/server/src/nats/utils.js.map +1 -0
  526. package/dist/server/src/nats/websocket.d.ts +27 -0
  527. package/dist/server/src/nats/websocket.js +214 -0
  528. package/dist/server/src/nats/websocket.js.map +1 -0
  529. package/dist/server/src/plugins/index.d.ts +32 -0
  530. package/dist/server/src/plugins/index.js +326 -0
  531. package/dist/server/src/plugins/index.js.map +1 -0
  532. package/dist/server/src/plugins/interfaces/audioDetection.d.ts +7 -0
  533. package/dist/server/src/plugins/interfaces/audioDetection.js +4 -0
  534. package/dist/server/src/plugins/interfaces/audioDetection.js.map +1 -0
  535. package/dist/server/src/plugins/interfaces/base.d.ts +6 -0
  536. package/dist/server/src/plugins/interfaces/base.js +3 -0
  537. package/dist/server/src/plugins/interfaces/base.js.map +1 -0
  538. package/dist/server/src/plugins/interfaces/motionDetection.d.ts +6 -0
  539. package/dist/server/src/plugins/interfaces/motionDetection.js +4 -0
  540. package/dist/server/src/plugins/interfaces/motionDetection.js.map +1 -0
  541. package/dist/server/src/plugins/interfaces/objectDetection.d.ts +7 -0
  542. package/dist/server/src/plugins/interfaces/objectDetection.js +4 -0
  543. package/dist/server/src/plugins/interfaces/objectDetection.js.map +1 -0
  544. package/dist/server/src/plugins/plugin.d.ts +42 -0
  545. package/dist/server/src/plugins/plugin.js +207 -0
  546. package/dist/server/src/plugins/plugin.js.map +1 -0
  547. package/dist/server/src/plugins/types.d.ts +181 -0
  548. package/dist/server/src/plugins/types.js +18 -0
  549. package/dist/server/src/plugins/types.js.map +1 -0
  550. package/dist/server/src/plugins/worker.d.ts +35 -0
  551. package/dist/server/src/plugins/worker.js +309 -0
  552. package/dist/server/src/plugins/worker.js.map +1 -0
  553. package/dist/server/src/polyglot/node/decoder/child.d.ts +1 -0
  554. package/dist/server/src/polyglot/node/decoder/child.js +703 -0
  555. package/dist/server/src/polyglot/node/decoder/child.js.map +1 -0
  556. package/dist/server/src/polyglot/node/decoder/imageUtils.d.ts +24 -0
  557. package/dist/server/src/polyglot/node/decoder/imageUtils.js +203 -0
  558. package/dist/server/src/polyglot/node/decoder/imageUtils.js.map +1 -0
  559. package/dist/server/src/polyglot/node/decoder/reader.d.ts +5 -0
  560. package/dist/server/src/polyglot/node/decoder/reader.js +41 -0
  561. package/dist/server/src/polyglot/node/decoder/reader.js.map +1 -0
  562. package/dist/server/src/polyglot/node/decoder/wasm/build/decoder.d.ts +144 -0
  563. package/dist/server/src/polyglot/node/decoder/wasm/build/decoder.js +65 -0
  564. package/dist/server/src/polyglot/node/decoder/wasm/build/decoder.wasm +0 -0
  565. package/dist/server/src/polyglot/node/decoder/wasm/test/imageUtils.py +106 -0
  566. package/dist/server/src/polyglot/node/plugins/api.d.ts +37 -0
  567. package/dist/server/src/polyglot/node/plugins/api.js +34 -0
  568. package/dist/server/src/polyglot/node/plugins/api.js.map +1 -0
  569. package/dist/server/src/polyglot/node/plugins/cameraStorage.d.ts +108 -0
  570. package/dist/server/src/polyglot/node/plugins/cameraStorage.js +310 -0
  571. package/dist/server/src/polyglot/node/plugins/cameraStorage.js.map +1 -0
  572. package/dist/server/src/polyglot/node/plugins/child.d.ts +25 -0
  573. package/dist/server/src/polyglot/node/plugins/child.js +206 -0
  574. package/dist/server/src/polyglot/node/plugins/child.js.map +1 -0
  575. package/dist/server/src/polyglot/node/plugins/config.d.ts +104 -0
  576. package/dist/server/src/polyglot/node/plugins/config.js +213 -0
  577. package/dist/server/src/polyglot/node/plugins/config.js.map +1 -0
  578. package/dist/server/src/polyglot/node/plugins/logger.d.ts +16 -0
  579. package/dist/server/src/polyglot/node/plugins/logger.js +128 -0
  580. package/dist/server/src/polyglot/node/plugins/logger.js.map +1 -0
  581. package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +75 -0
  582. package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.js +474 -0
  583. package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.js.map +1 -0
  584. package/dist/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +49 -0
  585. package/dist/server/src/polyglot/node/plugins/proxy/deviceManager.js +194 -0
  586. package/dist/server/src/polyglot/node/plugins/proxy/deviceManager.js.map +1 -0
  587. package/dist/server/src/polyglot/node/plugins/proxy/index.d.ts +2 -0
  588. package/dist/server/src/polyglot/node/plugins/proxy/index.js +3 -0
  589. package/dist/server/src/polyglot/node/plugins/proxy/index.js.map +1 -0
  590. package/dist/server/src/polyglot/node/plugins/proxy/messageQueue.d.ts +20 -0
  591. package/dist/server/src/polyglot/node/plugins/proxy/messageQueue.js +152 -0
  592. package/dist/server/src/polyglot/node/plugins/proxy/messageQueue.js.map +1 -0
  593. package/dist/server/src/polyglot/node/plugins/schema.d.ts +280 -0
  594. package/dist/server/src/polyglot/node/plugins/schema.js +719 -0
  595. package/dist/server/src/polyglot/node/plugins/schema.js.map +1 -0
  596. package/dist/server/src/polyglot/node/plugins/storageController.d.ts +28 -0
  597. package/dist/server/src/polyglot/node/plugins/storageController.js +38 -0
  598. package/dist/server/src/polyglot/node/plugins/storageController.js.map +1 -0
  599. package/dist/server/src/polyglot/python/camera/interfaces/camera.py +26 -0
  600. package/dist/server/src/polyglot/python/camera/interfaces/prebuffer.py +25 -0
  601. package/dist/server/src/polyglot/python/camera/interfaces/ptz.py +38 -0
  602. package/dist/server/src/polyglot/python/camera/polygon.py +173 -0
  603. package/dist/server/src/polyglot/python/camera/video_frame.py +196 -0
  604. package/dist/server/src/polyglot/python/camera_ui_types/__init__.py +1221 -0
  605. package/dist/server/src/polyglot/python/decoder/child.py +922 -0
  606. package/dist/server/src/polyglot/python/decoder/image_utils.py +149 -0
  607. package/dist/server/src/polyglot/python/decoder/typings.py +99 -0
  608. package/dist/server/src/polyglot/python/plugins/camera_storage.py +459 -0
  609. package/dist/server/src/polyglot/python/plugins/child.py +267 -0
  610. package/dist/server/src/polyglot/python/plugins/config_service.py +180 -0
  611. package/dist/server/src/polyglot/python/plugins/constants.py +2 -0
  612. package/dist/server/src/polyglot/python/plugins/logger.py +111 -0
  613. package/dist/server/src/polyglot/python/plugins/plugin_api.py +114 -0
  614. package/dist/server/src/polyglot/python/plugins/proxy/camera_device.py +1722 -0
  615. package/dist/server/src/polyglot/python/plugins/proxy/device_manager.py +265 -0
  616. package/dist/server/src/polyglot/python/plugins/proxy/message_queue.py +213 -0
  617. package/dist/server/src/polyglot/python/plugins/schema.py +392 -0
  618. package/dist/server/src/polyglot/python/plugins/storage_controller.py +57 -0
  619. package/dist/server/src/polyglot/python/plugins/typings.py +248 -0
  620. package/dist/server/src/polyglot/python/utilities/object_path.py +187 -0
  621. package/dist/server/src/polyglot/python/utilities/packer.py +11 -0
  622. package/dist/server/src/polyglot/python/utilities/task.py +25 -0
  623. package/dist/server/src/polyglot/python/utilities/thread.py +10 -0
  624. package/dist/server/src/polyglot/python/utilities/utils.py +48 -0
  625. package/dist/server/src/services/config/constants.d.ts +4 -0
  626. package/dist/server/src/services/config/constants.js +58 -0
  627. package/dist/server/src/services/config/constants.js.map +1 -0
  628. package/dist/server/src/services/config/index.d.ts +54 -0
  629. package/dist/server/src/services/config/index.js +288 -0
  630. package/dist/server/src/services/config/index.js.map +1 -0
  631. package/dist/server/src/services/config/types.d.ts +162 -0
  632. package/dist/server/src/services/config/types.js +11 -0
  633. package/dist/server/src/services/config/types.js.map +1 -0
  634. package/dist/server/src/services/logger/index.d.ts +30 -0
  635. package/dist/server/src/services/logger/index.js +179 -0
  636. package/dist/server/src/services/logger/index.js.map +1 -0
  637. package/dist/server/src/types.d.ts +4 -0
  638. package/dist/server/src/types.js +2 -0
  639. package/dist/server/src/types.js.map +1 -0
  640. package/dist/server/src/utils/packer.d.ts +2 -0
  641. package/dist/server/src/utils/packer.js +17 -0
  642. package/dist/server/src/utils/packer.js.map +1 -0
  643. package/dist/server/src/utils/pythonInstaller.d.ts +48 -0
  644. package/dist/server/src/utils/pythonInstaller.js +465 -0
  645. package/dist/server/src/utils/pythonInstaller.js.map +1 -0
  646. package/dist/server/src/utils/subscribed.d.ts +9 -0
  647. package/dist/server/src/utils/subscribed.js +17 -0
  648. package/dist/server/src/utils/subscribed.js.map +1 -0
  649. package/dist/server/src/utils/utils.d.ts +10 -0
  650. package/dist/server/src/utils/utils.js +165 -0
  651. package/dist/server/src/utils/utils.js.map +1 -0
  652. package/package.json +142 -0
@@ -0,0 +1,8 @@
1
+ var mr=Object.defineProperty;var xs=n=>{throw TypeError(n)};var yr=(n,t,e)=>t in n?mr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var m=(n,t,e)=>yr(n,typeof t!="symbol"?t+"":t,e),Dt=(n,t,e)=>t.has(n)||xs("Cannot "+e);var u=(n,t,e)=>(Dt(n,t,"read from private field"),e?e.call(n):t.get(n)),x=(n,t,e)=>t.has(n)?xs("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),O=(n,t,e,s)=>(Dt(n,t,"write to private field"),s?s.call(n,e):t.set(n,e),e),S=(n,t,e)=>(Dt(n,t,"access private method"),e);var tt=(n,t,e,s)=>({set _(r){O(n,t,r,e)},get _(){return u(n,t,s)}});var Te={d:(n,t)=>{for(var e in t)Te.o(t,e)&&!Te.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},o:(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r:n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}},Tn={};Te.d(Tn,{j:()=>Wi});var Xt={};Te.r(Xt),Te.d(Xt,{hasBrowserEnv:()=>ws,hasStandardBrowserEnv:()=>Nr,hasStandardBrowserWebWorkerEnv:()=>Fr,origin:()=>Ur});var Qt={};function xn(n,t){return function(){return n.apply(t,arguments)}}Te.r(Qt),Te.d(Qt,{Decoder:()=>As,Encoder:()=>Ii,PacketType:()=>T,protocol:()=>qi});const{toString:br}=Object.prototype,{getPrototypeOf:vs}=Object,St=(n=>t=>{const e=br.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),de=n=>(n=n.toLowerCase(),t=>St(t)===n),Ct=n=>t=>typeof t===n,{isArray:Pe}=Array,$e=Ct("undefined"),Cs=de("ArrayBuffer"),vr=Ct("string"),Z=Ct("function"),js=Ct("number"),st=n=>n!==null&&typeof n=="object",nt=n=>{if(St(n)!=="object")return!1;const t=vs(n);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in n||Symbol.iterator in n)},wr=de("Date"),Sr=de("File"),Er=de("Blob"),_r=de("FileList"),Or=de("URLSearchParams"),[kr,Rr,Ar,Tr]=["ReadableStream","Request","Response","Headers"].map(de);function Je(n,t,{allOwnKeys:e=!1}={}){if(n==null)return;let s,r;if(typeof n!="object"&&(n=[n]),Pe(n))for(s=0,r=n.length;s<r;s++)t.call(null,n[s],s,n);else{const i=e?Object.getOwnPropertyNames(n):Object.keys(n),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,n[a],a,n)}}function Ps(n,t){t=t.toLowerCase();const e=Object.keys(n);let s,r=e.length;for(;r-- >0;)if(s=e[r],t===s.toLowerCase())return s;return null}const Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ls=n=>!$e(n)&&n!==Cn,xr=(Nt=typeof Uint8Array<"u"&&vs(Uint8Array),n=>Nt&&n instanceof Nt);var Nt;const Cr=de("HTMLFormElement"),Bs=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),jr=de("RegExp"),Ds=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),s={};Je(e,(r,i)=>{let o;(o=t(r,i,n))!==!1&&(s[i]=o||r)}),Object.defineProperties(n,s)},Ft="abcdefghijklmnopqrstuvwxyz",Ns="0123456789",Fs={DIGIT:Ns,ALPHA:Ft,ALPHA_DIGIT:Ft+Ft.toUpperCase()+Ns},Pr=de("AsyncFunction"),f={isArray:Pe,isArrayBuffer:Cs,isBuffer:function(n){return n!==null&&!$e(n)&&n.constructor!==null&&!$e(n.constructor)&&Z(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},isFormData:n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Z(n.append)&&((t=St(n))==="formdata"||t==="object"&&Z(n.toString)&&n.toString()==="[object FormData]"))},isArrayBufferView:function(n){let t;return t=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&Cs(n.buffer),t},isString:vr,isNumber:js,isBoolean:n=>n===!0||n===!1,isObject:st,isPlainObject:nt,isReadableStream:kr,isRequest:Rr,isResponse:Ar,isHeaders:Tr,isUndefined:$e,isDate:wr,isFile:Sr,isBlob:Er,isRegExp:jr,isFunction:Z,isStream:n=>st(n)&&Z(n.pipe),isURLSearchParams:Or,isTypedArray:xr,isFileList:_r,forEach:Je,merge:function n(){const{caseless:t}=Ls(this)&&this||{},e={},s=(r,i)=>{const o=t&&Ps(e,i)||i;nt(e[o])&&nt(r)?e[o]=n(e[o],r):nt(r)?e[o]=n({},r):Pe(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Je(arguments[r],s);return e},extend:(n,t,e,{allOwnKeys:s}={})=>(Je(t,(r,i)=>{e&&Z(r)?n[i]=xn(r,e):n[i]=r},{allOwnKeys:s}),n),trim:n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),inherits:(n,t,e,s)=>{n.prototype=Object.create(t.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},toFlatObject:(n,t,e,s)=>{let r,i,o;const a={};if(t=t||{},n==null)return t;do{for(r=Object.getOwnPropertyNames(n),i=r.length;i-- >0;)o=r[i],s&&!s(o,n,t)||a[o]||(t[o]=n[o],a[o]=!0);n=e!==!1&&vs(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},kindOf:St,kindOfTest:de,endsWith:(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const s=n.indexOf(t,e);return s!==-1&&s===e},toArray:n=>{if(!n)return null;if(Pe(n))return n;let t=n.length;if(!js(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},forEachEntry:(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let s;for(;(s=e.next())&&!s.done;){const r=s.value;t.call(n,r[0],r[1])}},matchAll:(n,t)=>{let e;const s=[];for(;(e=n.exec(t))!==null;)s.push(e);return s},isHTMLForm:Cr,hasOwnProperty:Bs,hasOwnProp:Bs,reduceDescriptors:Ds,freezeMethods:n=>{Ds(n,(t,e)=>{if(Z(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const s=n[e];Z(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))})},toObjectSet:(n,t)=>{const e={},s=r=>{r.forEach(i=>{e[i]=!0})};return Pe(n)?s(n):s(String(n).split(t)),e},toCamelCase:n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,s){return e.toUpperCase()+s}),noop:()=>{},toFiniteNumber:(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,findKey:Ps,global:Cn,isContextDefined:Ls,ALPHABET:Fs,generateString:(n=16,t=Fs.ALPHA_DIGIT)=>{let e="";const{length:s}=t;for(;n--;)e+=t[Math.random()*s|0];return e},isSpecCompliantForm:function(n){return!!(n&&Z(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])},toJSONObject:n=>{const t=new Array(10),e=(s,r)=>{if(st(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Pe(s)?[]:{};return Je(s,(o,a)=>{const c=e(o,r+1);!$e(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return e(n,0)},isAsyncFn:Pr,isThenable:n=>n&&(st(n)||Z(n))&&Z(n.then)&&Z(n.catch)};function De(n,t,e,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),s&&(this.request=s),r&&(this.response=r)}f.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Us=De.prototype,qs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{qs[n]={value:n}}),Object.defineProperties(De,qs),Object.defineProperty(Us,"isAxiosError",{value:!0}),De.from=(n,t,e,s,r,i)=>{const o=Object.create(Us);return f.toFlatObject(n,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),De.call(o,n.message,t,e,s,r),o.cause=n,o.name=n.name,i&&Object.assign(o,i),o};const A=De;function Ut(n){return f.isPlainObject(n)||f.isArray(n)}function jn(n){return f.endsWith(n,"[]")?n.slice(0,-2):n}function Is(n,t,e){return n?n.concat(t).map(function(s,r){return s=jn(s),!e&&r?"["+s+"]":s}).join(e?".":""):t}const Lr=f.toFlatObject(f,{},null,function(n){return/^is[A-Z]/.test(n)}),Et=function(n,t,e){if(!f.isObject(n))throw new TypeError("target must be an object");t=t||new FormData;const s=(e=f.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!f.isUndefined(y[p])})).metaTokens,r=e.visitor||h,i=e.dots,o=e.indexes,a=(e.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(t);if(!f.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(!a&&f.isBlob(p))throw new A("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,y,g){let E=p;if(p&&!g&&typeof p=="object"){if(f.endsWith(y,"{}"))y=s?y:y.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&function(w){return f.isArray(w)&&!w.some(Ut)}(p)||(f.isFileList(p)||f.endsWith(y,"[]"))&&(E=f.toArray(p)))return y=jn(y),E.forEach(function(w,b){!f.isUndefined(w)&&w!==null&&t.append(o===!0?Is([y],b,i):o===null?y:y+"[]",c(w))}),!1}return!!Ut(p)||(t.append(Is(g,y,i),c(p)),!1)}const l=[],d=Object.assign(Lr,{defaultVisitor:h,convertValue:c,isVisitable:Ut});if(!f.isObject(n))throw new TypeError("data must be an object");return function p(y,g){if(!f.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(y),f.forEach(y,function(E,w){(!(f.isUndefined(E)||E===null)&&r.call(t,E,f.isString(w)?w.trim():w,g,d))===!0&&p(E,g?g.concat(w):[w])}),l.pop()}}(n),t};function Ms(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Pn(n,t){this._pairs=[],n&&Et(n,this,t)}const zs=Pn.prototype;zs.append=function(n,t){this._pairs.push([n,t])},zs.toString=function(n){const t=n?function(e){return n.call(this,e,Ms)}:Ms;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ln=Pn;function Br(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bn(n,t,e){if(!t)return n;const s=e&&e.encode||Br,r=e&&e.serialize;let i;if(i=r?r(t,e):f.isURLSearchParams(t)?t.toString():new Ln(t,e).toString(s),i){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}const Vs=class{constructor(){this.handlers=[]}use(n,t,e){return this.handlers.push({fulfilled:n,rejected:t,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){f.forEach(this.handlers,function(t){t!==null&&n(t)})}},Dn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ln,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ws=typeof window<"u"&&typeof document<"u",Nr=(Ws=typeof navigator<"u"&&navigator.product,ws&&["ReactNative","NativeScript","NS"].indexOf(Ws)<0);var Ws;const Fr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ur=ws&&window.location.href||"http://localhost",ue={...Xt,...Dr},Nn=function(n){function t(e,s,r,i){let o=e[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=e.length;return o=!o&&f.isArray(r)?r.length:o,c?(f.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):(r[o]&&f.isObject(r[o])||(r[o]=[]),t(e,s,r[o],i)&&f.isArray(r[o])&&(r[o]=function(h){const l={},d=Object.keys(h);let p;const y=d.length;let g;for(p=0;p<y;p++)g=d[p],l[g]=h[g];return l}(r[o])),!a)}if(f.isFormData(n)&&f.isFunction(n.entries)){const e={};return f.forEachEntry(n,(s,r)=>{t(function(i){return f.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}(s),r,e,0)}),e}return null},Ss={transitional:Dn,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",s=e.indexOf("application/json")>-1,r=f.isObject(n);if(r&&f.isHTMLForm(n)&&(n=new FormData(n)),f.isFormData(n))return s?JSON.stringify(Nn(n)):n;if(f.isArrayBuffer(n)||f.isBuffer(n)||f.isStream(n)||f.isFile(n)||f.isBlob(n)||f.isReadableStream(n))return n;if(f.isArrayBufferView(n))return n.buffer;if(f.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let i;if(r){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(o,a){return Et(o,new ue.classes.URLSearchParams,Object.assign({visitor:function(c,h,l,d){return ue.isNode&&f.isBuffer(c)?(this.append(h,c.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}(n,this.formSerializer).toString();if((i=f.isFileList(n))||e.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Et(i?{"files[]":n}:n,o&&new o,this.formSerializer)}}return r||s?(t.setContentType("application/json",!1),function(o,a,c){if(f.isString(o))try{return(0,JSON.parse)(o),f.trim(o)}catch(h){if(h.name!=="SyntaxError")throw h}return(0,JSON.stringify)(o)}(n)):n}],transformResponse:[function(n){const t=this.transitional||Ss.transitional,e=t&&t.forcedJSONParsing,s=this.responseType==="json";if(f.isResponse(n)||f.isReadableStream(n))return n;if(n&&f.isString(n)&&(e&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(n)}catch(i){if(r)throw i.name==="SyntaxError"?A.from(i,A.ERR_BAD_RESPONSE,this,null,this.response):i}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],n=>{Ss.headers[n]={}});const Es=Ss,qr=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hs=Symbol("internals");function Ve(n){return n&&String(n).trim().toLowerCase()}function lt(n){return n===!1||n==null?n:f.isArray(n)?n.map(lt):String(n)}function qt(n,t,e,s,r){return f.isFunction(s)?s.call(this,t,e):(r&&(t=e),f.isString(t)?f.isString(s)?t.indexOf(s)!==-1:f.isRegExp(s)?s.test(t):void 0:void 0)}class dt{constructor(t){t&&this.set(t)}set(t,e,s){const r=this;function i(a,c,h){const l=Ve(c);if(!l)throw new Error("header name must be a non-empty string");const d=f.findKey(r,l);(!d||r[d]===void 0||h===!0||h===void 0&&r[d]!==!1)&&(r[d||c]=lt(a))}const o=(a,c)=>f.forEach(a,(h,l)=>i(h,l,c));if(f.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(f.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((a=>{const c={};let h,l,d;return a&&a.split(`
2
+ `).forEach(function(p){d=p.indexOf(":"),h=p.substring(0,d).trim().toLowerCase(),l=p.substring(d+1).trim(),!h||c[h]&&qr[h]||(h==="set-cookie"?c[h]?c[h].push(l):c[h]=[l]:c[h]=c[h]?c[h]+", "+l:l)}),c})(t),e);else if(f.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(e,t,s);return this}get(t,e){if(t=Ve(t)){const s=f.findKey(this,t);if(s){const r=this[s];if(!e)return r;if(e===!0)return function(i){const o=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=a.exec(i);)o[c[1]]=c[2];return o}(r);if(f.isFunction(e))return e.call(this,r,s);if(f.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ve(t)){const s=f.findKey(this,t);return!(!s||this[s]===void 0||e&&!qt(0,this[s],s,e))}return!1}delete(t,e){const s=this;let r=!1;function i(o){if(o=Ve(o)){const a=f.findKey(s,o);!a||e&&!qt(0,s[a],a,e)||(delete s[a],r=!0)}}return f.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let s=e.length,r=!1;for(;s--;){const i=e[s];t&&!qt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,s={};return f.forEach(this,(r,i)=>{const o=f.findKey(s,i);if(o)return e[o]=lt(r),void delete e[i];const a=t?function(c){return c.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(h,l,d)=>l.toUpperCase()+d)}(i):String(i).trim();a!==i&&delete e[i],e[a]=lt(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return f.forEach(this,(s,r)=>{s!=null&&s!==!1&&(e[r]=t&&f.isArray(s)?s.join(", "):s)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const s=new this(t);return e.forEach(r=>s.set(r)),s}static accessor(t){const e=(this[Hs]=this[Hs]={accessors:{}}).accessors,s=this.prototype;function r(i){const o=Ve(i);e[o]||(function(a,c){const h=f.toCamelCase(" "+c);["get","set","has"].forEach(l=>{Object.defineProperty(a,l+h,{value:function(d,p,y){return this[l].call(this,c,d,p,y)},configurable:!0})})}(s,i),e[o]=!0)}return f.isArray(t)?t.forEach(r):r(t),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),f.reduceDescriptors(dt.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(s){this[e]=s}}}),f.freezeMethods(dt);const le=dt;function It(n,t){const e=this||Es,s=t||e,r=le.from(s.headers);let i=s.data;return f.forEach(n,function(o){i=o.call(e,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Fn(n){return!(!n||!n.__CANCEL__)}function Un(n,t,e){A.call(this,n??"canceled",A.ERR_CANCELED,t,e),this.name="CanceledError"}f.inherits(Un,A,{__CANCEL__:!0});const et=Un;function qn(n,t,e){const s=e.config.validateStatus;e.status&&s&&!s(e.status)?t(new A("Request failed with status code "+e.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):n(e)}const _t=(n,t,e=3)=>{let s=0;const r=function(i,o){i=i||10;const a=new Array(i),c=new Array(i);let h,l=0,d=0;return o=o!==void 0?o:1e3,function(p){const y=Date.now(),g=c[d];h||(h=y),a[l]=p,c[l]=y;let E=d,w=0;for(;E!==l;)w+=a[E++],E%=i;if(l=(l+1)%i,l===d&&(d=(d+1)%i),y-h<o)return;const b=g&&y-g;return b?Math.round(1e3*w/b):void 0}}(50,250);return function(i,o){let a=0;const c=1e3/o;let h=null;return function(){const l=this===!0,d=Date.now();if(l||d-a>c)return h&&(clearTimeout(h),h=null),a=d,i.apply(null,arguments);h||(h=setTimeout(()=>(h=null,a=Date.now(),i.apply(null,arguments)),c-(d-a)))}}(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,h=r(c);s=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:h||void 0,estimated:h&&a&&o<=a?(a-o)/h:void 0,event:i,lengthComputable:a!=null};l[t?"download":"upload"]=!0,n(l)},e)},Ir=ue.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let e;function s(r){let i=r;return n&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return e=s(window.location.href),function(r){const i=f.isString(r)?s(r):r;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0},Mr=ue.hasStandardBrowserEnv?{write(n,t,e,s,r,i){const o=[n+"="+encodeURIComponent(t)];f.isNumber(e)&&o.push("expires="+new Date(e).toGMTString()),f.isString(s)&&o.push("path="+s),f.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function In(n,t){return n&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}(n,t):t}const $s=n=>n instanceof le?{...n}:n;function xe(n,t){t=t||{};const e={};function s(h,l,d){return f.isPlainObject(h)&&f.isPlainObject(l)?f.merge.call({caseless:d},h,l):f.isPlainObject(l)?f.merge({},l):f.isArray(l)?l.slice():l}function r(h,l,d){return f.isUndefined(l)?f.isUndefined(h)?void 0:s(void 0,h,d):s(h,l,d)}function i(h,l){if(!f.isUndefined(l))return s(void 0,l)}function o(h,l){return f.isUndefined(l)?f.isUndefined(h)?void 0:s(void 0,h):s(void 0,l)}function a(h,l,d){return d in t?s(h,l):d in n?s(void 0,h):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(h,l)=>r($s(h),$s(l),!0)};return f.forEach(Object.keys(Object.assign({},n,t)),function(h){const l=c[h]||r,d=l(n[h],t[h],h);f.isUndefined(d)&&l!==a||(e[h]=d)}),e}const Mn=n=>{const t=xe({},n);let e,{data:s,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=le.from(a),t.url=Bn(In(t.baseURL,t.url),n.params,n.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),f.isFormData(s)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((e=a.getContentType())!==!1){const[h,...l]=e?e.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([h||"multipart/form-data",...l].join("; "))}}if(ue.hasStandardBrowserEnv&&(r&&f.isFunction(r)&&(r=r(t)),r||r!==!1&&Ir(t.url))){const h=i&&o&&Mr.read(o);h&&a.set(i,h)}return t},zr=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,e){const s=Mn(n);let r=s.data;const i=le.from(s.headers).normalize();let o,{responseType:a}=s;function c(){s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let h=new XMLHttpRequest;function l(){if(!h)return;const p=le.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());qn(function(y){t(y),c()},function(y){e(y),c()},{data:a&&a!=="text"&&a!=="json"?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:p,config:n,request:h}),h=null}h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout,"onloadend"in h?h.onloadend=l:h.onreadystatechange=function(){h&&h.readyState===4&&(h.status!==0||h.responseURL&&h.responseURL.indexOf("file:")===0)&&setTimeout(l)},h.onabort=function(){h&&(e(new A("Request aborted",A.ECONNABORTED,s,h)),h=null)},h.onerror=function(){e(new A("Network Error",A.ERR_NETWORK,s,h)),h=null},h.ontimeout=function(){let p=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const y=s.transitional||Dn;s.timeoutErrorMessage&&(p=s.timeoutErrorMessage),e(new A(p,y.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,s,h)),h=null},r===void 0&&i.setContentType(null),"setRequestHeader"in h&&f.forEach(i.toJSON(),function(p,y){h.setRequestHeader(y,p)}),f.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),a&&a!=="json"&&(h.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&h.addEventListener("progress",_t(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",_t(s.onUploadProgress)),(s.cancelToken||s.signal)&&(o=p=>{h&&(e(!p||p.type?new et(null,n,h):p),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o)));const d=function(p){const y=/^([-+\w]{1,25})(:?\/\/|:)/.exec(p);return y&&y[1]||""}(s.url);d&&ue.protocols.indexOf(d)===-1?e(new A("Unsupported protocol "+d+":",A.ERR_BAD_REQUEST,n)):h.send(r||null)})},Vr=(n,t)=>{let e,s=new AbortController;const r=function(c){if(!e){e=!0,o();const h=c instanceof Error?c:this.reason;s.abort(h instanceof A?h:new et(h instanceof Error?h.message:h))}};let i=t&&setTimeout(()=>{r(new A(`timeout ${t} of ms exceeded`,A.ETIMEDOUT))},t);const o=()=>{n&&(i&&clearTimeout(i),i=null,n.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),n=null)};n.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:a}=s;return a.unsubscribe=o,[a,()=>{i&&clearTimeout(i),i=null}]},Wr=function*(n,t){let e=n.byteLength;if(e<t)return void(yield n);let s,r=0;for(;r<e;)s=r+t,yield n.slice(r,s),r=s},Js=(n,t,e,s,r)=>{const i=async function*(a,c,h){for await(const l of a)yield*Wr(ArrayBuffer.isView(l)?l:await h(String(l)),c)}(n,t,r);let o=0;return new ReadableStream({type:"bytes",async pull(a){const{done:c,value:h}=await i.next();if(c)return a.close(),void s();let l=h.byteLength;e&&e(o+=l),a.enqueue(new Uint8Array(h))},cancel:a=>(s(a),i.return())},{highWaterMark:2})},Gs=(n,t)=>{const e=n!=null;return s=>setTimeout(()=>t({lengthComputable:e,total:n,loaded:s}))},jt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zn=jt&&typeof ReadableStream=="function",Mt=jt&&(typeof TextEncoder=="function"?(Ks=new TextEncoder,n=>Ks.encode(n)):async n=>new Uint8Array(await new Response(n).arrayBuffer()));var Ks;const Hr=zn&&(()=>{let n=!1;const t=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t})(),Zt=zn&&!!(()=>{try{return f.isReadableStream(new Response("").body)}catch{}})(),Ot={stream:Zt&&(n=>n.body)};var Ys;jt&&(Ys=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Ot[n]&&(Ot[n]=f.isFunction(Ys[n])?t=>t[n]():(t,e)=>{throw new A(`Response type '${n}' is not supported`,A.ERR_NOT_SUPPORT,e)})}));const $r=jt&&(async n=>{let{url:t,method:e,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:h,headers:l,withCredentials:d="same-origin",fetchOptions:p}=Mn(n);h=h?(h+"").toLowerCase():"text";let y,g,[E,w]=r||i||o?Vr([r,i],o):[];const b=()=>{!y&&setTimeout(()=>{E&&E.unsubscribe()}),y=!0};let _;try{if(c&&Hr&&e!=="get"&&e!=="head"&&(_=await(async(j,D)=>{const J=f.toFiniteNumber(j.getContentLength());return J??(async I=>I==null?0:f.isBlob(I)?I.size:f.isSpecCompliantForm(I)?(await new Request(I).arrayBuffer()).byteLength:f.isArrayBufferView(I)?I.byteLength:(f.isURLSearchParams(I)&&(I+=""),f.isString(I)?(await Mt(I)).byteLength:void 0))(D)})(l,s))!==0){let j,D=new Request(t,{method:"POST",body:s,duplex:"half"});f.isFormData(s)&&(j=D.headers.get("content-type"))&&l.setContentType(j),D.body&&(s=Js(D.body,65536,Gs(_,_t(c)),null,Mt))}f.isString(d)||(d=d?"cors":"omit"),g=new Request(t,{...p,signal:E,method:e.toUpperCase(),headers:l.normalize().toJSON(),body:s,duplex:"half",withCredentials:d});let R=await fetch(g);const C=Zt&&(h==="stream"||h==="response");if(Zt&&(a||C)){const j={};["status","statusText","headers"].forEach(J=>{j[J]=R[J]});const D=f.toFiniteNumber(R.headers.get("content-length"));R=new Response(Js(R.body,65536,a&&Gs(D,_t(a,!0)),C&&b,Mt),j)}h=h||"text";let P=await Ot[f.findKey(Ot,h)||"text"](R,n);return!C&&b(),w&&w(),await new Promise((j,D)=>{qn(j,D,{data:P,headers:le.from(R.headers),status:R.status,statusText:R.statusText,config:n,request:g})})}catch(R){throw b(),R&&R.name==="TypeError"&&/fetch/i.test(R.message)?Object.assign(new A("Network Error",A.ERR_NETWORK,n,g),{cause:R.cause||R}):A.from(R,R&&R.code,n,g)}}),Vn={http:null,xhr:zr,fetch:$r};f.forEach(Vn,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Xs=n=>`- ${n}`,Jr=n=>f.isFunction(n)||n===null||n===!1,Wn=n=>{n=f.isArray(n)?n:[n];const{length:t}=n;let e,s;const r={};for(let i=0;i<t;i++){let o;if(e=n[i],s=e,!Jr(e)&&(s=Vn[(o=String(e)).toLowerCase()],s===void 0))throw new A(`Unknown adapter '${o}'`);if(s)break;r[o||"#"+i]=s}if(!s){const i=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
4
+ `+i.map(Xs).join(`
5
+ `):" "+Xs(i[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s};function zt(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new et(null,n)}function Qs(n){return zt(n),n.headers=le.from(n.headers),n.data=It.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Wn(n.adapter||Es.adapter)(n).then(function(t){return zt(n),t.data=It.call(n,n.transformResponse,t),t.headers=le.from(t.headers),t},function(t){return Fn(t)||(zt(n),t&&t.response&&(t.response.data=It.call(n,n.transformResponse,t.response),t.response.headers=le.from(t.response.headers))),Promise.reject(t)})}const _s={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{_s[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const Zs={};_s.transitional=function(n,t,e){function s(r,i){return"[Axios v1.7.2] Transitional option '"+r+"'"+i+(e?". "+e:"")}return(r,i,o)=>{if(n===!1)throw new A(s(i," has been removed"+(t?" in "+t:"")),A.ERR_DEPRECATED);return t&&!Zs[i]&&(Zs[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!n||n(r,i,o)}};const es={assertOptions:function(n,t,e){if(typeof n!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=n[i],c=a===void 0||o(a,i,n);if(c!==!0)throw new A("option "+i+" must be "+c,A.ERR_BAD_OPTION_VALUE)}else if(e!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}},validators:_s},ye=es.validators;class ft{constructor(t){this.defaults=t,this.interceptors={request:new Vs,response:new Vs}}async request(t,e){try{return await this._request(t,e)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
6
+ `+i):s.stack=i}catch{}}throw s}}_request(t,e){typeof t=="string"?(e=e||{}).url=t:e=t||{},e=xe(this.defaults,e);const{transitional:s,paramsSerializer:r,headers:i}=e;s!==void 0&&es.assertOptions(s,{silentJSONParsing:ye.transitional(ye.boolean),forcedJSONParsing:ye.transitional(ye.boolean),clarifyTimeoutError:ye.transitional(ye.boolean)},!1),r!=null&&(f.isFunction(r)?e.paramsSerializer={serialize:r}:es.assertOptions(r,{encode:ye.function,serialize:ye.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&f.merge(i.common,i[e.method]);i&&f.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),e.headers=le.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const h=[];let l;this.interceptors.response.forEach(function(g){h.push(g.fulfilled,g.rejected)});let d,p=0;if(!c){const g=[Qs.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,h),d=g.length,l=Promise.resolve(e);p<d;)l=l.then(g[p++],g[p++]);return l}d=a.length;let y=e;for(p=0;p<d;){const g=a[p++],E=a[p++];try{y=g(y)}catch(w){E.call(this,w);break}}try{l=Qs.call(this,y)}catch(g){return Promise.reject(g)}for(p=0,d=h.length;p<d;)l=l.then(h[p++],h[p++]);return l}getUri(t){return Bn(In((t=xe(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}f.forEach(["delete","get","head","options"],function(n){ft.prototype[n]=function(t,e){return this.request(xe(e||{},{method:n,url:t,data:(e||{}).data}))}}),f.forEach(["post","put","patch"],function(n){function t(e){return function(s,r,i){return this.request(xe(i||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:s,data:r}))}}ft.prototype[n]=t(),ft.prototype[n+"Form"]=t(!0)});const pt=ft;class Os{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(r){e=r});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(r,i,o){s.reason||(s.reason=new et(r,i,o),e(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}static source(){let t;return{token:new Os(function(e){t=e}),cancel:t}}}const Gr=Os,ts={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ts).forEach(([n,t])=>{ts[t]=n});const Kr=ts,N=function n(t){const e=new pt(t),s=xn(pt.prototype.request,e);return f.extend(s,pt.prototype,e,{allOwnKeys:!0}),f.extend(s,e,null,{allOwnKeys:!0}),s.create=function(r){return n(xe(t,r))},s}(Es);N.Axios=pt,N.CanceledError=et,N.CancelToken=Gr,N.isCancel=Fn,N.VERSION="1.7.2",N.toFormData=Et,N.AxiosError=A,N.Cancel=N.CanceledError,N.all=function(n){return Promise.all(n)},N.spread=function(n){return function(t){return n.apply(null,t)}},N.isAxiosError=function(n){return f.isObject(n)&&n.isAxiosError===!0},N.mergeConfig=xe,N.AxiosHeaders=le,N.formToJSON=n=>Nn(f.isHTMLForm(n)?new FormData(n):n),N.getAdapter=Wn,N.HttpStatusCode=Kr,N.default=N;const en=N;class Yr{constructor(t){m(this,"interceptor");this.interceptor=en.create({baseURL:`${t}/api`}),this.interceptor.interceptors.request.use(e=>{const s=en.CancelToken.source();return e.cancelToken=s.token,setTimeout(()=>{s.cancel("Timeout: request took more than 15 seconds")},15e3),e},e=>Promise.reject(e))}}const je=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tn=new Set,ss=typeof process=="object"&&process?process:{},Hn=(n,t,e,s)=>{typeof ss.emitWarning=="function"?ss.emitWarning(n,t,e,s):console.error(`[${e}] ${t}: ${n}`)};let kt=globalThis.AbortController,sn=globalThis.AbortSignal;var kn;if(kt===void 0){sn=class{constructor(){m(this,"onabort");m(this,"_onabort",[]);m(this,"reason");m(this,"aborted",!1)}addEventListener(e,s){this._onabort.push(s)}},kt=class{constructor(){m(this,"signal",new sn);t()}abort(e){var s,r;if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const i of this.signal._onabort)i(e);(r=(s=this.signal).onabort)==null||r.call(s,e)}}};let n=((kn=ss.env)==null?void 0:kn.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{n&&(n=!1,Hn("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}const be=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),$n=n=>be(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?gt:null:null;class gt extends Array{constructor(t){super(t),this.fill(0)}}var Fe;const ke=class ke{constructor(t,e){m(this,"heap");m(this,"length");if(!u(ke,Fe))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}static create(t){const e=$n(t);if(!e)return[];O(ke,Fe,!0);const s=new ke(t,e);return O(ke,Fe,!1),s}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}};Fe=new WeakMap,x(ke,Fe,!1);let ns=ke;var Rn,An,te,K,se,ne,Ue,qe,q,re,F,B,k,H,Y,W,M,ie,z,oe,ae,X,ce,Oe,$,v,is,Re,me,Qe,Q,Jn,Ae,Ie,Ze,ve,we,os,mt,yt,L,as,Ge,Se,cs;const Ts=class Ts{constructor(t){x(this,v);x(this,te);x(this,K);x(this,se);x(this,ne);x(this,Ue);x(this,qe);m(this,"ttl");m(this,"ttlResolution");m(this,"ttlAutopurge");m(this,"updateAgeOnGet");m(this,"updateAgeOnHas");m(this,"allowStale");m(this,"noDisposeOnSet");m(this,"noUpdateTTL");m(this,"maxEntrySize");m(this,"sizeCalculation");m(this,"noDeleteOnFetchRejection");m(this,"noDeleteOnStaleGet");m(this,"allowStaleOnFetchAbort");m(this,"allowStaleOnFetchRejection");m(this,"ignoreFetchAbort");x(this,q);x(this,re);x(this,F);x(this,B);x(this,k);x(this,H);x(this,Y);x(this,W);x(this,M);x(this,ie);x(this,z);x(this,oe);x(this,ae);x(this,X);x(this,ce);x(this,Oe);x(this,$);x(this,Re,()=>{});x(this,me,()=>{});x(this,Qe,()=>{});x(this,Q,()=>!1);x(this,Ae,t=>{});x(this,Ie,(t,e,s)=>{});x(this,Ze,(t,e,s,r)=>{if(s||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});m(this,Rn,"LRUCache");const{max:e=0,ttl:s,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:h,disposeAfter:l,noDisposeOnSet:d,noUpdateTTL:p,maxSize:y=0,maxEntrySize:g=0,sizeCalculation:E,fetchMethod:w,memoMethod:b,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:P,ignoreFetchAbort:j}=t;if(e!==0&&!be(e))throw new TypeError("max option must be a nonnegative integer");const D=e?$n(e):Array;if(!D)throw new Error("invalid max value: "+e);if(O(this,te,e),O(this,K,y),this.maxEntrySize=g||u(this,K),this.sizeCalculation=E,this.sizeCalculation){if(!u(this,K)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(O(this,qe,b),w!==void 0&&typeof w!="function")throw new TypeError("fetchMethod must be a function if specified");if(O(this,Ue,w),O(this,Oe,!!w),O(this,F,new Map),O(this,B,new Array(e).fill(void 0)),O(this,k,new Array(e).fill(void 0)),O(this,H,new D(e)),O(this,Y,new D(e)),O(this,W,0),O(this,M,0),O(this,ie,ns.create(e)),O(this,q,0),O(this,re,0),typeof h=="function"&&O(this,se,h),typeof l=="function"?(O(this,ne,l),O(this,z,[])):(O(this,ne,void 0),O(this,z,void 0)),O(this,ce,!!u(this,se)),O(this,$,!!u(this,ne)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!_,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!P,this.ignoreFetchAbort=!!j,this.maxEntrySize!==0){if(u(this,K)!==0&&!be(u(this,K)))throw new TypeError("maxSize must be a positive integer if specified");if(!be(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");S(this,v,Jn).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!R,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=be(r)||r===0?r:1,this.ttlAutopurge=!!i,this.ttl=s||0,this.ttl){if(!be(this.ttl))throw new TypeError("ttl must be a positive integer if specified");S(this,v,is).call(this)}if(u(this,te)===0&&this.ttl===0&&u(this,K)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!u(this,te)&&!u(this,K)){const J="LRU_CACHE_UNBOUNDED";(I=>!tn.has(I))(J)&&(tn.add(J),Hn("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",J,Ts))}}static unsafeExposeInternals(t){return{starts:u(t,ae),ttls:u(t,X),sizes:u(t,oe),keyMap:u(t,F),keyList:u(t,B),valList:u(t,k),next:u(t,H),prev:u(t,Y),get head(){return u(t,W)},get tail(){return u(t,M)},free:u(t,ie),isBackgroundFetch:e=>{var s;return S(s=t,v,L).call(s,e)},backgroundFetch:(e,s,r,i)=>{var o;return S(o=t,v,yt).call(o,e,s,r,i)},moveToTail:e=>{var s;return S(s=t,v,Ge).call(s,e)},indexes:e=>{var s;return S(s=t,v,ve).call(s,e)},rindexes:e=>{var s;return S(s=t,v,we).call(s,e)},isStale:e=>{var s;return u(s=t,Q).call(s,e)}}}get max(){return u(this,te)}get maxSize(){return u(this,K)}get calculatedSize(){return u(this,re)}get size(){return u(this,q)}get fetchMethod(){return u(this,Ue)}get memoMethod(){return u(this,qe)}get dispose(){return u(this,se)}get disposeAfter(){return u(this,ne)}getRemainingTTL(t){return u(this,F).has(t)?1/0:0}*entries(){for(const t of S(this,v,ve).call(this))u(this,k)[t]===void 0||u(this,B)[t]===void 0||S(this,v,L).call(this,u(this,k)[t])||(yield[u(this,B)[t],u(this,k)[t]])}*rentries(){for(const t of S(this,v,we).call(this))u(this,k)[t]===void 0||u(this,B)[t]===void 0||S(this,v,L).call(this,u(this,k)[t])||(yield[u(this,B)[t],u(this,k)[t]])}*keys(){for(const t of S(this,v,ve).call(this)){const e=u(this,B)[t];e===void 0||S(this,v,L).call(this,u(this,k)[t])||(yield e)}}*rkeys(){for(const t of S(this,v,we).call(this)){const e=u(this,B)[t];e===void 0||S(this,v,L).call(this,u(this,k)[t])||(yield e)}}*values(){for(const t of S(this,v,ve).call(this))u(this,k)[t]===void 0||S(this,v,L).call(this,u(this,k)[t])||(yield u(this,k)[t])}*rvalues(){for(const t of S(this,v,we).call(this))u(this,k)[t]===void 0||S(this,v,L).call(this,u(this,k)[t])||(yield u(this,k)[t])}[(An=Symbol.iterator,Rn=Symbol.toStringTag,An)](){return this.entries()}find(t,e={}){for(const s of S(this,v,ve).call(this)){const r=u(this,k)[s],i=S(this,v,L).call(this,r)?r.__staleWhileFetching:r;if(i!==void 0&&t(i,u(this,B)[s],this))return this.get(u(this,B)[s],e)}}forEach(t,e=this){for(const s of S(this,v,ve).call(this)){const r=u(this,k)[s],i=S(this,v,L).call(this,r)?r.__staleWhileFetching:r;i!==void 0&&t.call(e,i,u(this,B)[s],this)}}rforEach(t,e=this){for(const s of S(this,v,we).call(this)){const r=u(this,k)[s],i=S(this,v,L).call(this,r)?r.__staleWhileFetching:r;i!==void 0&&t.call(e,i,u(this,B)[s],this)}}purgeStale(){let t=!1;for(const e of S(this,v,we).call(this,{allowStale:!0}))u(this,Q).call(this,e)&&(S(this,v,Se).call(this,u(this,B)[e],"expire"),t=!0);return t}info(t){const e=u(this,F).get(t);if(e===void 0)return;const s=u(this,k)[e],r=S(this,v,L).call(this,s)?s.__staleWhileFetching:s;if(r===void 0)return;const i={value:r};if(u(this,X)&&u(this,ae)){const o=u(this,X)[e],a=u(this,ae)[e];if(o&&a){const c=o-(je.now()-a);i.ttl=c,i.start=Date.now()}}return u(this,oe)&&(i.size=u(this,oe)[e]),i}dump(){const t=[];for(const e of S(this,v,ve).call(this,{allowStale:!0})){const s=u(this,B)[e],r=u(this,k)[e],i=S(this,v,L).call(this,r)?r.__staleWhileFetching:r;if(i===void 0||s===void 0)continue;const o={value:i};if(u(this,X)&&u(this,ae)){o.ttl=u(this,X)[e];const a=je.now()-u(this,ae)[e];o.start=Math.floor(Date.now()-a)}u(this,oe)&&(o.size=u(this,oe)[e]),t.unshift([s,o])}return t}load(t){this.clear();for(const[e,s]of t){if(s.start){const r=Date.now()-s.start;s.start=je.now()-r}this.set(e,s.value,s)}}set(t,e,s={}){var p,y,g,E,w;if(e===void 0)return this.delete(t),this;const{ttl:r=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=s;let{noUpdateTTL:h=this.noUpdateTTL}=s;const l=u(this,Ze).call(this,t,e,s.size||0,a);if(this.maxEntrySize&&l>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),S(this,v,Se).call(this,t,"set"),this;let d=u(this,q)===0?void 0:u(this,F).get(t);if(d===void 0)d=u(this,q)===0?u(this,M):u(this,ie).length!==0?u(this,ie).pop():u(this,q)===u(this,te)?S(this,v,mt).call(this,!1):u(this,q),u(this,B)[d]=t,u(this,k)[d]=e,u(this,F).set(t,d),u(this,H)[u(this,M)]=d,u(this,Y)[d]=u(this,M),O(this,M,d),tt(this,q)._++,u(this,Ie).call(this,d,l,c),c&&(c.set="add"),h=!1;else{S(this,v,Ge).call(this,d);const b=u(this,k)[d];if(e!==b){if(u(this,Oe)&&S(this,v,L).call(this,b)){b.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:_}=b;_===void 0||o||(u(this,ce)&&((p=u(this,se))==null||p.call(this,_,t,"set")),u(this,$)&&((y=u(this,z))==null||y.push([_,t,"set"])))}else o||(u(this,ce)&&((g=u(this,se))==null||g.call(this,b,t,"set")),u(this,$)&&((E=u(this,z))==null||E.push([b,t,"set"])));if(u(this,Ae).call(this,d),u(this,Ie).call(this,d,l,c),u(this,k)[d]=e,c){c.set="replace";const _=b&&S(this,v,L).call(this,b)?b.__staleWhileFetching:b;_!==void 0&&(c.oldValue=_)}}else c&&(c.set="update")}if(r===0||u(this,X)||S(this,v,is).call(this),u(this,X)&&(h||u(this,Qe).call(this,d,r,i),c&&u(this,me).call(this,c,d)),!o&&u(this,$)&&u(this,z)){const b=u(this,z);let _;for(;_=b==null?void 0:b.shift();)(w=u(this,ne))==null||w.call(this,..._)}return this}pop(){var t;try{for(;u(this,q);){const e=u(this,k)[u(this,W)];if(S(this,v,mt).call(this,!0),S(this,v,L).call(this,e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(u(this,$)&&u(this,z)){const e=u(this,z);let s;for(;s=e==null?void 0:e.shift();)(t=u(this,ne))==null||t.call(this,...s)}}}has(t,e={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:r}=e,i=u(this,F).get(t);if(i!==void 0){const o=u(this,k)[i];if(S(this,v,L).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(!u(this,Q).call(this,i))return s&&u(this,Re).call(this,i),r&&(r.has="hit",u(this,me).call(this,r,i)),!0;r&&(r.has="stale",u(this,me).call(this,r,i))}else r&&(r.has="miss");return!1}peek(t,e={}){const{allowStale:s=this.allowStale}=e,r=u(this,F).get(t);if(r===void 0||!s&&u(this,Q).call(this,r))return;const i=u(this,k)[r];return S(this,v,L).call(this,i)?i.__staleWhileFetching:i}async fetch(t,e={}){const{allowStale:s=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:E,forceRefresh:w=!1,status:b,signal:_}=e;if(!u(this,Oe))return b&&(b.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:b});const R={allowStale:s,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:c,sizeCalculation:h,noUpdateTTL:l,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:g,ignoreFetchAbort:y,status:b,signal:_};let C=u(this,F).get(t);if(C===void 0){b&&(b.fetch="miss");const P=S(this,v,yt).call(this,t,C,R,E);return P.__returned=P}{const P=u(this,k)[C];if(S(this,v,L).call(this,P)){const I=s&&P.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",I&&(b.returnedStale=!0)),I?P.__staleWhileFetching:P.__returned=P}const j=u(this,Q).call(this,C);if(!w&&!j)return b&&(b.fetch="hit"),S(this,v,Ge).call(this,C),r&&u(this,Re).call(this,C),b&&u(this,me).call(this,b,C),P;const D=S(this,v,yt).call(this,t,C,R,E),J=D.__staleWhileFetching!==void 0&&s;return b&&(b.fetch=j?"stale":"refresh",J&&j&&(b.returnedStale=!0)),J?D.__staleWhileFetching:D.__returned=D}}async forceFetch(t,e={}){const s=await this.fetch(t,e);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,e={}){const s=u(this,qe);if(!s)throw new Error("no memoMethod provided to constructor");const{context:r,forceRefresh:i,...o}=e,a=this.get(t,o);if(!i&&a!==void 0)return a;const c=s(t,a,{options:o,context:r});return this.set(t,c,o),c}get(t,e={}){const{allowStale:s=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=e,a=u(this,F).get(t);if(a!==void 0){const c=u(this,k)[a],h=S(this,v,L).call(this,c);return o&&u(this,me).call(this,o,a),u(this,Q).call(this,a)?(o&&(o.get="stale"),h?(o&&s&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?c.__staleWhileFetching:void 0):(i||S(this,v,Se).call(this,t,"expire"),o&&s&&(o.returnedStale=!0),s?c:void 0)):(o&&(o.get="hit"),h?c.__staleWhileFetching:(S(this,v,Ge).call(this,a),r&&u(this,Re).call(this,a),c))}o&&(o.get="miss")}delete(t){return S(this,v,Se).call(this,t,"delete")}clear(){return S(this,v,cs).call(this,"delete")}};te=new WeakMap,K=new WeakMap,se=new WeakMap,ne=new WeakMap,Ue=new WeakMap,qe=new WeakMap,q=new WeakMap,re=new WeakMap,F=new WeakMap,B=new WeakMap,k=new WeakMap,H=new WeakMap,Y=new WeakMap,W=new WeakMap,M=new WeakMap,ie=new WeakMap,z=new WeakMap,oe=new WeakMap,ae=new WeakMap,X=new WeakMap,ce=new WeakMap,Oe=new WeakMap,$=new WeakMap,v=new WeakSet,is=function(){const t=new gt(u(this,te)),e=new gt(u(this,te));O(this,X,t),O(this,ae,e),O(this,Qe,(i,o,a=je.now())=>{if(e[i]=o!==0?a:0,t[i]=o,o!==0&&this.ttlAutopurge){const c=setTimeout(()=>{u(this,Q).call(this,i)&&S(this,v,Se).call(this,u(this,B)[i],"expire")},o+1);c.unref&&c.unref()}}),O(this,Re,i=>{e[i]=t[i]!==0?je.now():0}),O(this,me,(i,o)=>{if(t[o]){const a=t[o],c=e[o];if(!a||!c)return;i.ttl=a,i.start=c,i.now=s||r();const h=i.now-c;i.remainingTTL=a-h}});let s=0;const r=()=>{const i=je.now();if(this.ttlResolution>0){s=i;const o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return i};this.getRemainingTTL=i=>{const o=u(this,F).get(i);if(o===void 0)return 0;const a=t[o],c=e[o];return a&&c?a-((s||r())-c):1/0},O(this,Q,i=>{const o=e[i],a=t[i];return!!a&&!!o&&(s||r())-o>a})},Re=new WeakMap,me=new WeakMap,Qe=new WeakMap,Q=new WeakMap,Jn=function(){const t=new gt(u(this,te));O(this,re,0),O(this,oe,t),O(this,Ae,e=>{O(this,re,u(this,re)-t[e]),t[e]=0}),O(this,Ze,(e,s,r,i)=>{if(S(this,v,L).call(this,s))return 0;if(!be(r)){if(!i)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(r=i(s,e),!be(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r}),O(this,Ie,(e,s,r)=>{if(t[e]=s,u(this,K)){const i=u(this,K)-t[e];for(;u(this,re)>i;)S(this,v,mt).call(this,!0)}O(this,re,u(this,re)+t[e]),r&&(r.entrySize=s,r.totalCalculatedSize=u(this,re))})},Ae=new WeakMap,Ie=new WeakMap,Ze=new WeakMap,ve=function*({allowStale:t=this.allowStale}={}){if(u(this,q))for(let e=u(this,M);S(this,v,os).call(this,e)&&(!t&&u(this,Q).call(this,e)||(yield e),e!==u(this,W));)e=u(this,Y)[e]},we=function*({allowStale:t=this.allowStale}={}){if(u(this,q))for(let e=u(this,W);S(this,v,os).call(this,e)&&(!t&&u(this,Q).call(this,e)||(yield e),e!==u(this,M));)e=u(this,H)[e]},os=function(t){return t!==void 0&&u(this,F).get(u(this,B)[t])===t},mt=function(t){var i,o;const e=u(this,W),s=u(this,B)[e],r=u(this,k)[e];return u(this,Oe)&&S(this,v,L).call(this,r)?r.__abortController.abort(new Error("evicted")):(u(this,ce)||u(this,$))&&(u(this,ce)&&((i=u(this,se))==null||i.call(this,r,s,"evict")),u(this,$)&&((o=u(this,z))==null||o.push([r,s,"evict"]))),u(this,Ae).call(this,e),t&&(u(this,B)[e]=void 0,u(this,k)[e]=void 0,u(this,ie).push(e)),u(this,q)===1?(O(this,W,O(this,M,0)),u(this,ie).length=0):O(this,W,u(this,H)[e]),u(this,F).delete(s),tt(this,q)._--,e},yt=function(t,e,s,r){const i=e===void 0?void 0:u(this,k)[e];if(S(this,v,L).call(this,i))return i;const o=new kt,{signal:a}=s;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});const c={signal:o.signal,options:s,context:r},h=(y,g=!1)=>{const{aborted:E}=o.signal,w=s.ignoreFetchAbort&&y!==void 0;if(s.status&&(E&&!g?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,w&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),E&&!w&&!g)return l(o.signal.reason);const b=d;return u(this,k)[e]===d&&(y===void 0?b.__staleWhileFetching?u(this,k)[e]=b.__staleWhileFetching:S(this,v,Se).call(this,t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,y,c.options))),y},l=y=>{const{aborted:g}=o.signal,E=g&&s.allowStaleOnFetchAbort,w=E||s.allowStaleOnFetchRejection,b=w||s.noDeleteOnFetchRejection,_=d;if(u(this,k)[e]===d&&(b&&_.__staleWhileFetching!==void 0?E||(u(this,k)[e]=_.__staleWhileFetching):S(this,v,Se).call(this,t,"fetch")),w)return s.status&&_.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw y};s.status&&(s.status.fetchDispatched=!0);const d=new Promise((y,g)=>{var w;const E=(w=u(this,Ue))==null?void 0:w.call(this,t,i,c);E&&E instanceof Promise&&E.then(b=>y(b===void 0?void 0:b),g),o.signal.addEventListener("abort",()=>{s.ignoreFetchAbort&&!s.allowStaleOnFetchAbort||(y(void 0),s.allowStaleOnFetchAbort&&(y=b=>h(b,!0)))})}).then(h,y=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=y),l(y))),p=Object.assign(d,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return e===void 0?(this.set(t,p,{...c.options,status:void 0}),e=u(this,F).get(t)):u(this,k)[e]=p,p},L=function(t){if(!u(this,Oe))return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof kt},as=function(t,e){u(this,Y)[e]=t,u(this,H)[t]=e},Ge=function(t){t!==u(this,M)&&(t===u(this,W)?O(this,W,u(this,H)[t]):S(this,v,as).call(this,u(this,Y)[t],u(this,H)[t]),S(this,v,as).call(this,u(this,M),t),O(this,M,t))},Se=function(t,e){var r,i,o,a;let s=!1;if(u(this,q)!==0){const c=u(this,F).get(t);if(c!==void 0)if(s=!0,u(this,q)===1)S(this,v,cs).call(this,e);else{u(this,Ae).call(this,c);const h=u(this,k)[c];if(S(this,v,L).call(this,h)?h.__abortController.abort(new Error("deleted")):(u(this,ce)||u(this,$))&&(u(this,ce)&&((r=u(this,se))==null||r.call(this,h,t,e)),u(this,$)&&((i=u(this,z))==null||i.push([h,t,e]))),u(this,F).delete(t),u(this,B)[c]=void 0,u(this,k)[c]=void 0,c===u(this,M))O(this,M,u(this,Y)[c]);else if(c===u(this,W))O(this,W,u(this,H)[c]);else{const l=u(this,Y)[c];u(this,H)[l]=u(this,H)[c];const d=u(this,H)[c];u(this,Y)[d]=u(this,Y)[c]}tt(this,q)._--,u(this,ie).push(c)}}if(u(this,$)&&((o=u(this,z))!=null&&o.length)){const c=u(this,z);let h;for(;h=c==null?void 0:c.shift();)(a=u(this,ne))==null||a.call(this,...h)}return s},cs=function(t){var e,s,r;for(const i of S(this,v,we).call(this,{allowStale:!0})){const o=u(this,k)[i];if(S(this,v,L).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=u(this,B)[i];u(this,ce)&&((e=u(this,se))==null||e.call(this,o,a,t)),u(this,$)&&((s=u(this,z))==null||s.push([o,a,t]))}}if(u(this,F).clear(),u(this,k).fill(void 0),u(this,B).fill(void 0),u(this,X)&&u(this,ae)&&(u(this,X).fill(0),u(this,ae).fill(0)),u(this,oe)&&u(this,oe).fill(0),O(this,W,0),O(this,M,0),u(this,ie).length=0,O(this,re,0),O(this,q,0),u(this,$)&&u(this,z)){const i=u(this,z);let o;for(;o=i==null?void 0:i.shift();)(r=u(this,ne))==null||r.call(this,...o)}};let rs=Ts;var hs=function(n,t){return hs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])},hs(n,t)};function Ce(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}hs(n,t),n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Gn(n,t){var e,s,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(c){return function(h){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(o=0)),o;)try{if(e=1,s&&(r=2&l[0]?s.return:l[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,l[1])).done)return r;switch(s=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,s=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||l[0]!==6&&l[0]!==2)){o=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(l[0]===6&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(n,o)}catch(d){l=[6,d],s=0}finally{e=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([c,h])}}}function Ye(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],s=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rt(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var s,r,i=e.call(n),o=[];try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(a){r={error:a}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(r)throw r.error}}return o}function At(n,t,e){if(arguments.length===2)for(var s,r=0,i=t.length;r<i;r++)!s&&r in t||(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return n.concat(s||Array.prototype.slice.call(t))}function Be(n){return this instanceof Be?(this.v=n,this):new Be(n)}function V(n){return typeof n=="function"}function Kn(n){var t=n(function(e){Error.call(e),e.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Vt=Kn(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
7
+ `+t.map(function(e,s){return s+1+") "+e.toString()}).join(`
8
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function us(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var Pt=function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,s,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Ye(o),c=a.next();!c.done;c=a.next())c.value.remove(this)}catch(g){t={error:g}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if(V(h))try{h()}catch(g){i=g instanceof Vt?g.errors:[g]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var d=Ye(l),p=d.next();!p.done;p=d.next()){var y=p.value;try{nn(y)}catch(g){i=i??[],g instanceof Vt?i=At(At([],Rt(i)),Rt(g.errors)):i.push(g)}}}catch(g){s={error:g}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}}if(i)throw new Vt(i)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)nn(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&us(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&us(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),Yn=Pt.EMPTY;function Xn(n){return n instanceof Pt||n&&"closed"in n&&V(n.remove)&&V(n.add)&&V(n.unsubscribe)}function nn(n){V(n)?n():n.unsubscribe()}var Qn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xr={setTimeout:function(n,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,At([n,t],Rt(e)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Zn(n){Xr.setTimeout(function(){throw n})}function rn(){}function bt(n){n()}var ks=function(n){function t(e){var s=n.call(this)||this;return s.isStopped=!1,e?(s.destination=e,Xn(e)&&e.add(s)):s.destination=ei,s}return Ce(t,n),t.create=function(e,s,r){return new Xe(e,s,r)},t.prototype.next=function(e){this.isStopped?void 0:this._next(e)},t.prototype.error=function(e){this.isStopped?void 0:(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?void 0:(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Pt),Qr=Function.prototype.bind;function Wt(n,t){return Qr.call(n,t)}var Zr=function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){rt(s)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){rt(s)}else rt(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){rt(e)}},n}(),Xe=function(n){function t(e,s,r){var i,o,a=n.call(this)||this;return V(e)||!e?i={next:e??void 0,error:s??void 0,complete:r??void 0}:a&&Qn.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},i={next:e.next&&Wt(e.next,o),error:e.error&&Wt(e.error,o),complete:e.complete&&Wt(e.complete,o)}):i=e,a.destination=new Zr(i),a}return Ce(t,n),t}(ks);function rt(n){Zn(n)}var ei={closed:!0,next:rn,error:function(n){throw n},complete:rn},ls=typeof Symbol=="function"&&Symbol.observable||"@@observable";function er(n){return n}var Ee=function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,s){var r=this,i=function(o){return o&&o instanceof ks||function(a){return a&&V(a.next)&&V(a.error)&&V(a.complete)}(o)&&Xn(o)}(t)?t:new Xe(t,e,s);return bt(function(){var o=r,a=o.operator,c=o.source;i.add(a?a.call(i,c):c?r._subscribe(i):r._trySubscribe(i))}),i},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var s=this;return new(e=on(e))(function(r,i){var o=new Xe({next:function(a){try{t(a)}catch(c){i(c),o.unsubscribe()}},error:i,complete:r});s.subscribe(o)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[ls]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return((s=t).length===0?er:s.length===1?s[0]:function(r){return s.reduce(function(i,o){return o(i)},r)})(this);var s},n.prototype.toPromise=function(t){var e=this;return new(t=on(t))(function(s,r){var i;e.subscribe(function(o){return i=o},function(o){return r(o)},function(){return s(i)})})},n.create=function(t){return new n(t)},n}();function on(n){var t;return(t=n??Qn.Promise)!==null&&t!==void 0?t:Promise}var ti=Kn(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lt=function(n){function t(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Ce(t,n),t.prototype.lift=function(e){var s=new an(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new ti},t.prototype.next=function(e){var s=this;bt(function(){var r,i;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Ye(s.currentObservers),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(c){r={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var s=this;bt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var r=s.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;bt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,r=this,i=r.hasError,o=r.isStopped,a=r.observers;return i||o?Yn:(this.currentObservers=null,a.push(e),new Pt(function(){s.currentObservers=null,us(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,r=s.hasError,i=s.thrownError,o=s.isStopped;r?e.error(i):o&&e.complete()},t.prototype.asObservable=function(){var e=new Ee;return e.source=this,e},t.create=function(e,s){return new an(e,s)},t}(Ee),an=function(n){function t(e,s){var r=n.call(this)||this;return r.destination=e,r.source=s,r}return Ce(t,n),t.prototype.next=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.next)===null||r===void 0||r.call(s,e)},t.prototype.error=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.error)===null||r===void 0||r.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,r;return(r=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&r!==void 0?r:Yn},t}(Lt),fe=function(n){function t(e){var s=n.call(this)||this;return s._value=e,s}return Ce(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=n.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,r=e.thrownError,i=e._value;if(s)throw r;return this._throwIfClosed(),i},t.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},t}(Lt),tr={now:function(){return(tr.delegate||Date).now()},delegate:void 0},it=function(n){function t(e,s,r){e===void 0&&(e=1/0),s===void 0&&(s=1/0),r===void 0&&(r=tr);var i=n.call(this)||this;return i._bufferSize=e,i._windowTime=s,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=s===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,s),i}return Ce(t,n),t.prototype.next=function(e){var s=this,r=s.isStopped,i=s._buffer,o=s._infiniteTimeWindow,a=s._timestampProvider,c=s._windowTime;r||(i.push(e),!o&&i.push(a.now()+c)),this._trimBuffer(),n.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var s=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),o=0;o<i.length&&!e.closed;o+=r?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),s},t.prototype._trimBuffer=function(){var e=this,s=e._bufferSize,r=e._timestampProvider,i=e._buffer,o=e._infiniteTimeWindow,a=(o?1:2)*s;if(s<1/0&&a<i.length&&i.splice(0,i.length-a),!o){for(var c=r.now(),h=0,l=1;l<i.length&&i[l]<=c;l+=2)h=l;h&&i.splice(0,h+1)}},t}(Lt);function ze(n){return function(t){if(function(e){return V(e==null?void 0:e.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function Me(n,t,e,s,r){return new si(n,t,e,s,r)}var si=function(n){function t(e,s,r,i,o,a){var c=n.call(this,e)||this;return c.onFinalize=o,c.shouldUnsubscribe=a,c._next=s?function(h){try{s(h)}catch(l){e.error(l)}}:n.prototype._next,c._error=i?function(h){try{i(h)}catch(l){e.error(l)}finally{this.unsubscribe()}}:n.prototype._error,c._complete=r?function(){try{r()}catch(h){e.error(h)}finally{this.unsubscribe()}}:n.prototype._complete,c}return Ce(t,n),t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;n.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(ks);function cn(){return ze(function(n,t){var e,s=!1;n.subscribe(Me(t,function(r){var i=e;e=r,s&&t.next([i,r]),s=!0}))})}function hn(n,t){return ze(function(e,s){var r=0;e.subscribe(Me(s,function(i){return n.call(t,i,r++)&&s.next(i)}))})}function sr(n,t){return ze(function(e,s){var r=0;e.subscribe(Me(s,function(i){s.next(n.call(t,i,r++))}))})}var ni=function(n){return n&&typeof n.length=="number"&&typeof n!="function"},ri=typeof Symbol=="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";function Tt(n){if(n instanceof Ee)return n;if(n!=null){if(function(i){return V(i[ls])}(n))return r=n,new Ee(function(i){var o=r[ls]();if(V(o.subscribe))return o.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(ni(n))return s=n,new Ee(function(i){for(var o=0;o<s.length&&!i.closed;o++)i.next(s[o]);i.complete()});if(function(i){return V(i==null?void 0:i.then)}(n))return e=n,new Ee(function(i){e.then(function(o){i.closed||(i.next(o),i.complete())},function(o){return i.error(o)}).then(null,Zn)});if(function(i){return Symbol.asyncIterator&&V(i==null?void 0:i[Symbol.asyncIterator])}(n))return un(n);if(function(i){return V(i==null?void 0:i[ri])}(n))return t=n,new Ee(function(i){var o,a;try{for(var c=Ye(t),h=c.next();!h.done;h=c.next()){var l=h.value;if(i.next(l),i.closed)return}}catch(d){o={error:d}}finally{try{h&&!h.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}i.complete()});if(function(i){return V(i==null?void 0:i.getReader)}(n))return un(function(i){return function(o,a,c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var h,l=c.apply(o,a||[]),d=[];return h={},p("next"),p("throw"),p("return",function(b){return function(_){return Promise.resolve(_).then(b,E)}}),h[Symbol.asyncIterator]=function(){return this},h;function p(b,_){l[b]&&(h[b]=function(R){return new Promise(function(C,P){d.push([b,R,C,P])>1||y(b,R)})},_&&(h[b]=_(h[b])))}function y(b,_){try{(R=l[b](_)).value instanceof Be?Promise.resolve(R.value.v).then(g,E):w(d[0][2],R)}catch(C){w(d[0][3],C)}var R}function g(b){y("next",b)}function E(b){y("throw",b)}function w(b,_){b(_),d.shift(),d.length&&y(d[0][0],d[0][1])}}(this,arguments,function(){var o,a,c;return Gn(this,function(h){switch(h.label){case 0:o=i.getReader(),h.label=1;case 1:h.trys.push([1,,9,10]),h.label=2;case 2:return[4,Be(o.read())];case 3:return a=h.sent(),c=a.value,a.done?[4,Be(void 0)]:[3,5];case 4:return[2,h.sent()];case 5:return[4,Be(c)];case 6:return[4,h.sent()];case 7:return h.sent(),[3,2];case 8:return[3,10];case 9:return o.releaseLock(),[7];case 10:return[2]}})})}(n))}var t,e,s,r;throw function(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}(n)}function un(n){return new Ee(function(t){(function(e,s){var r,i,o,a,c,h,l,d;return c=this,h=void 0,d=function(){var p,y;return Gn(this,function(g){switch(g.label){case 0:g.trys.push([0,5,6,11]),r=function(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var w,b=E[Symbol.asyncIterator];return b?b.call(E):(E=Ye(E),w={},_("next"),_("throw"),_("return"),w[Symbol.asyncIterator]=function(){return this},w);function _(R){w[R]=E[R]&&function(C){return new Promise(function(P,j){(function(D,J,I,pr){Promise.resolve(pr).then(function(gr){D({value:gr,done:I})},J)})(P,j,(C=E[R](C)).done,C.value)})}}}(e),g.label=1;case 1:return[4,r.next()];case 2:if((i=g.sent()).done)return[3,4];if(p=i.value,s.next(p),s.closed)return[2];g.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return y=g.sent(),o={error:y},[3,11];case 6:return g.trys.push([6,,9,10]),i&&!i.done&&(a=r.return)?[4,a.call(r)]:[3,8];case 7:g.sent(),g.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return s.complete(),[2]}})},new((l=void 0)||(l=Promise))(function(p,y){function g(b){try{w(d.next(b))}catch(_){y(_)}}function E(b){try{w(d.throw(b))}catch(_){y(_)}}function w(b){b.done?p(b.value):function(_){return _ instanceof l?_:new l(function(R){R(_)})}(b.value).then(g,E)}w((d=d.apply(c,h||[])).next())})})(n,t).catch(function(e){return t.error(e)})})}function ot(n){n===void 0&&(n={});var t=n.connector,e=t===void 0?function(){return new Lt}:t,s=n.resetOnError,r=s===void 0||s,i=n.resetOnComplete,o=i===void 0||i,a=n.resetOnRefCountZero,c=a===void 0||a;return function(h){var l,d,p,y=0,g=!1,E=!1,w=function(){d==null||d.unsubscribe(),d=void 0},b=function(){w(),l=p=void 0,g=E=!1},_=function(){var R=l;b(),R==null||R.unsubscribe()};return ze(function(R,C){y++,E||g||w();var P=p=p??e();C.add(function(){--y!=0||E||g||(d=Ht(_,c))}),P.subscribe(C),!l&&y>0&&(l=new Xe({next:function(j){return P.next(j)},error:function(j){E=!0,w(),d=Ht(b,r,j),P.error(j)},complete:function(){g=!0,w(),d=Ht(b,o),P.complete()}}),Tt(R).subscribe(l))})(h)}}function Ht(n,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];if(t!==!0){if(t!==!1){var r=new Xe({next:function(){r.unsubscribe(),n()}});return Tt(t.apply(void 0,At([],Rt(e)))).subscribe(r)}}else n()}function nr(n,t,e){return e===void 0&&(e=1/0),V(t)?nr(function(s,r){return sr(function(i,o){return t(s,i,r,o)})(Tt(n(s,r)))},e):(typeof t=="number"&&(e=t),ze(function(s,r){return function(i,o,a,c,h,l,d,p){var y=[],g=0,E=0,w=!1,b=function(){!w||y.length||g||o.complete()},_=function(C){return g<c?R(C):y.push(C)},R=function(C){g++;var P=!1;Tt(a(C,E++)).subscribe(Me(o,function(j){o.next(j)},function(){P=!0},void 0,function(){if(P)try{g--;for(var j=function(){var D=y.shift();R(D)};y.length&&g<c;)j();b()}catch(D){o.error(D)}}))};return i.subscribe(Me(o,_,function(){w=!0,b()})),function(){}}(s,r,n,e)}))}function ii(n,t){return n===t}const Ne=(n,t,e=!1)=>{if(n===t)return!0;if((n===void 0||t===void 0||n===null||t===null)&&(n||t))return!1;const s=n==null?void 0:n.constructor.name,r=t==null?void 0:t.constructor.name;if(s!==r)return!1;if(s==="Array"&&r==="Array"){if(n.length!==t.length)return!1;if(e){const i=[...t];return n.every(o=>{const a=i.findIndex(c=>Ne(o,c,e));return a!==-1&&(i.splice(a,1),!0)})}{let i=!0;for(let o=0;o<n.length;o++)if(!Ne(n[o],t[o],e)){i=!1;break}return i}}if(s==="Object"&&r==="Object"){let i=!0;const o=Object.keys(n),a=Object.keys(t);if(o.length!==a.length)return!1;for(let c=0;c<o.length;c++)if(n[o[c]]&&t[o[c]]){if(n[o[c]]===t[o[c]])continue;if(!n[o[c]]||n[o[c]].constructor.name!=="Array"&&n[o[c]].constructor.name!=="Object"){if(n[o[c]]!==t[o[c]]){i=!1;break}}else if(i=Ne(n[o[c]],t[o[c]],e),!i)break}else if(n[o[c]]&&!t[o[c]]||!n[o[c]]&&t[o[c]]){i=!1;break}return i}return n===t},G=n=>JSON.parse(JSON.stringify(n)),oi=(n,t)=>{const{origWidth:e,origHeight:s}=t,r=n.points.map(([i,o])=>[i*e/100,o*s/100]);return{...n,points:r}},ln=n=>{const{origWidth:t,origHeight:e,inputWidth:s,inputHeight:r}=n,[i,o,a,c]=n.boundingBox,h=i*t/s,l=o*e/r,d=a*t/s,p=c*e/r;return{...n,boundingBox:[h,l,d,p]}},dn=(n,t,e)=>{if(n.confidence<e.object.confidence)return!1;if(t.length===0)return!0;const[s,r,i,o]=n.boundingBox,a={xmin:s,ymin:r,xmax:i,ymax:o};let c=!1;for(const h of t){const l=oi(h,n);if(l.isPrivacyMask){if(We(a,l.points)){c=!1;break}}else l.filter==="include"?l.type==="contain"?We(a,l.points)&&(c=!0):l.type==="intersect"&&(fn(a,l.points)||We(a,l.points))&&(c=!0):l.filter==="exclude"&&(l.type==="contain"?We(a,l.points)||(c=!0):l.type==="intersect"&&(fn(a,l.points)||We(a,l.points)||(c=!0)))}return c},fn=(n,t)=>{const e=ai(n);for(const s of e)for(let r=0;r<t.length;r++){const i=[t[r],t[(r+1)%t.length]];if(ci(s,i))return!0}return!1},We=(n,t)=>[[n.xmin,n.ymin],[n.xmax,n.ymin],[n.xmax,n.ymax],[n.xmin,n.ymax]].every(e=>hi(e,t)),ai=n=>{const{xmin:t,ymin:e,xmax:s,ymax:r}=n;return[[[t,e],[s,e]],[[s,e],[s,r]],[[s,r],[t,r]],[[t,r],[t,e]]]},ci=(n,t)=>{const e=(a,c,h)=>(h[1]-a[1])*(c[0]-a[0])>(c[1]-a[1])*(h[0]-a[0]);return s=n[0],r=n[1],e(s,i=t[0],o=t[1])!==e(r,i,o)&&e(s,r,i)!==e(s,r,o);var s,r,i,o},hi=(n,t)=>{const[e,s]=n;let r=!1,[i,o]=t[t.length-1];for(const[a,c]of t)c>s!=o>s&&e<(i-a)*(s-c)/(o-c)+a&&(r=!r),[i,o]=[a,c];return r};class ui{constructor(){m(this,"subscriptions",[]);m(this,"additionalSubscriptions",[])}addSubscriptions(...t){this.subscriptions.push(...t)}addAdditionalSubscriptions(...t){this.additionalSubscriptions.push(...t)}unsubscribe(){this.subscriptions.forEach(t=>t.unsubscribe())}unsubscribeAdditional(){this.additionalSubscriptions.forEach(t=>t.unsubscribe())}}class li extends ui{constructor(e,s){super();m(this,"logger");m(this,"snapshotCache",new rs({max:100,ttl:3e5}));m(this,"cameraSubject");m(this,"cameraState",new fe(!1));m(this,"lightState",new fe(this.getLightState({state:!1},!0)));m(this,"motionState",new fe(this.getMotionState({detections:[],state:!1},!0)));m(this,"audioState",new fe(this.getAudioState({state:!1,db:0},!0)));m(this,"objectState",new fe(this.getObjectState({detections:[]},!0)));m(this,"doorbellState",new fe(this.getDoorbellState({state:!1},!0)));m(this,"sirenState",new fe(this.getSirenState({state:!1,level:0},!0)));m(this,"batteryState",new fe(this.getBatteryState({level:100,charging:!1,lowBattery:!1},!0)));m(this,"prebufferStateSubjects",{});m(this,"onConnected",this.createStateObservable(this.cameraState));m(this,"onLightSwitched",this.createStateObservable(this.lightState));m(this,"onMotionDetected",this.createStateObservable(this.motionState));m(this,"onAudioDetected",this.createStateObservable(this.audioState));m(this,"onObjectDetected",this.createStateObservable(this.objectState));m(this,"onDoorbellPressed",this.createStateObservable(this.doorbellState));m(this,"onSirenDetected",this.createStateObservable(this.sirenState));m(this,"onBatteryChanged",this.createStateObservable(this.batteryState));this.logger=s,this.cameraSubject=new fe(e),e.pluginId==="native"&&this.cameraState.next(!0)}get cameraObject(){return G(this.cameraSubject.getValue())}get id(){return this.cameraSubject.getValue()._id}get nativeId(){return this.cameraSubject.getValue().nativeId}get pluginId(){return this.cameraSubject.getValue().pluginId}get connected(){return this.cameraState.getValue()}get disabled(){return this.cameraSubject.getValue().disabled}get name(){return this.cameraSubject.getValue().name}get type(){return this.cameraSubject.getValue().type}get info(){return G(this.cameraSubject.getValue().info)}get isCloud(){return this.cameraSubject.getValue().isCloud}get hasLight(){return this.cameraSubject.getValue().hasLight}get hasSiren(){return this.cameraSubject.getValue().hasSiren}get hasBinarySensor(){return this.cameraSubject.getValue().hasBinarySensor}get hasBattery(){return this.cameraSubject.getValue().hasBattery}get hasMotionDetector(){return this.cameraSubject.getValue().hasMotionDetector}get hasAudioDetector(){return this.cameraSubject.getValue().hasAudioDetector}get hasObjectDetector(){return this.cameraSubject.getValue().hasObjectDetector}get hasPtz(){return this.cameraSubject.getValue().hasPtz}get hasPrebuffer(){return this.cameraSubject.getValue().hasPrebuffer}get activityZones(){return G(this.cameraSubject.getValue().activityZones)}get activitySettings(){return G(this.cameraSubject.getValue().activitySettings)}get frameWorkerSettings(){return G(this.cameraSubject.getValue().frameWorkerSettings)}get sources(){return G(this.cameraSubject.getValue().sources).map(e=>({...e,updatePrebufferingState:async(s,r)=>this.updatePrebuffer(e._id,s,r),getPrebufferingState:s=>this.cameraSourcePrebufferState(e._id,s),onPrebuffering:s=>this.createPrebufferStateObservable(e._id,s),getStreamInfo:async()=>this.prebufferDelegate.getStreamInfo(e.name)}))}get streamSource(){return this.highResolutionSource||this.midResolutionSource||this.lowResolutionSource}get snapshotSource(){return this.sources.find(e=>e.roles.includes("snapshot"))}get highResolutionSource(){return this.sources.find(e=>e.roles.includes("high-resolution"))}get midResolutionSource(){return this.sources.find(e=>e.roles.includes("mid-resolution"))}get lowResolutionSource(){return this.sources.find(e=>e.roles.includes("low-resolution"))}getValue(e){switch(e){case"light":return G(this.lightState.getValue());case"motion":return G(this.motionState.getValue());case"audio":return G(this.audioState.getValue());case"object":return G(this.objectState.getValue());case"doorbell":return G(this.doorbellState.getValue());case"siren":return G(this.sirenState.getValue());case"battery":return G(this.batteryState.getValue());default:throw new Error(`Unknown state: ${e}`)}}async snapshot(e){const s=this.snapshotSource||this.streamSource,r=s.urls.www.jpegSnapshot,i=this.snapshotCache.get(s._id);if(!e&&i)return i;if(!s.roles.includes("snapshot")&&this.cameraObject.pluginId!=="native"){const c=await this.cameraDelegate.snapshot();return c.byteLength>0&&this.snapshotCache.set(s._id,c),c}const o=await fetch(r);if(!o.ok)throw new Error("Status Code: "+o.status);const a=await o.arrayBuffer();return a.byteLength>0&&this.snapshotCache.set(s._id,a),a}onStateChange(e){return this[`${e}State`].pipe(cn(),hn(([s,r])=>typeof s=="boolean"||typeof r=="boolean"?s!==r:this.stateChanged(s,r,e)),sr(([s,r])=>({oldState:s,newState:r})),ot({connector:()=>new it(1)}))}updateStateInternal(e,s,r){let i,o=!1;if(r)o=!0,i=s;else{const a=this.checkStateInternal(e,s);o=a.changed,i=a.event}if(o)switch(e){case"light":this.lightState.next(this.getLightState(i));break;case"motion":this.motionState.next(this.getMotionState(i));break;case"audio":this.audioState.next(this.getAudioState(i));break;case"object":this.objectState.next(this.getObjectState(i));break;case"doorbell":this.doorbellState.next(this.getDoorbellState(i));break;case"siren":this.sirenState.next(this.getSirenState(i));break;case"battery":this.batteryState.next(this.getBatteryState(i));break;default:throw new Error(`Unknown state: ${e}`)}}onPropertyChange(e){return this.cameraSubject.pipe(cn(),nr(([s,r])=>(Array.isArray(e)?e:[e]).map(i=>({property:i,oldData:s[i],newData:r[i]}))),hn(({oldData:s,newData:r})=>!Ne(s,r,!0)),ot({connector:()=>new it(1)}))}removeAllListeners(){this.lightState.complete(),this.motionState.complete(),this.audioState.complete(),this.objectState.complete(),this.doorbellState.complete(),this.sirenState.complete(),this.batteryState.complete(),this.cameraSubject.complete(),this.cameraState.complete()}checkStateInternal(e,s){let r,i=!1;switch(e){case"audio":const o=s;r=this.getAudioState(o),i=this.stateChanged(this.getValue("audio"),r,"audio");break;case"light":const a=s;r=this.getLightState(a),i=this.stateChanged(this.getValue("light"),r,"light");break;case"motion":const c=s;c.state!==void 0&&(c.detections=[]),c.detections=((y,g,E)=>{const w=[];for(const b of y)dn(ln(b),g,E)&&g.some(_=>!_.classes.length||_.classes.includes(b.label))&&w.push(b);return w})(c.detections,this.activityZones,this.activitySettings),r=this.getMotionState(c),i=this.stateChanged(this.getValue("motion"),r,"motion");break;case"object":const h=s;h.detections=((y,g,E)=>{const w=[];for(const b of y)dn(ln(b),g,E)&&g.some(_=>!_.classes.length||_.classes.includes(b.label))&&w.push(b);return w})(h.detections,this.activityZones,this.activitySettings),r=this.getObjectState(h),i=this.stateChanged(this.getValue("object"),r,"object");break;case"doorbell":const l=s;r=this.getDoorbellState(l),i=this.stateChanged(this.getValue("doorbell"),r,"doorbell");break;case"siren":const d=s;r=this.getSirenState(d),i=this.stateChanged(this.getValue("siren"),r,"siren");break;case"battery":const p=s;r=this.getBatteryState(p),i=this.stateChanged(this.getValue("battery"),r,"battery");break;default:throw new Error(`Unknown state: ${e}`)}return{changed:i,event:r}}getAudioState(e,s=!1){var o;let r,i;if(!s){const a=this.getValue("audio");a.state?r=a:(o=a.lastEvent)!=null&&o.state&&(r=a.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const a={...e,timestamp:Date.now()};i={...a,db:a.db||(r==null?void 0:r.db)||0,lastEvent:r||(a.state?a:void 0)}}return i}getMotionState(e,s=!1){var o;let r,i;if(!s){const a=this.getValue("motion");a.detections.length?r=a:(o=a.lastEvent)!=null&&o.detections.length&&(r=a.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const a={...e,timestamp:Date.now()};i={...a,lastEvent:r||(a.detections.length?a:void 0)}}return i}getObjectState(e,s=!1){var o;let r,i;if(!s){const a=this.getValue("object");a.detections.length?r=a:(o=a.lastEvent)!=null&&o.detections.length&&(r=a.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const a={...e,timestamp:Date.now()};i={...a,lastEvent:r||(a.detections.length?a:void 0)}}return i}getDoorbellState(e,s=!1){var o;let r,i;if(!s){const a=this.getValue("doorbell");a.state?r=a:(o=a.lastEvent)!=null&&o.state&&(r=a.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const a={...e,timestamp:Date.now()};i={...a,lastEvent:r||(a.state?a:void 0)}}return i}getLightState(e,s=!1){var o;let r,i;if(!s){const a=this.getValue("light");a.state?r=a:(o=a.lastEvent)!=null&&o.state&&(r=a.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const a={...e,timestamp:Date.now()};i={...a,lastEvent:r||(a.state?a:void 0)}}return i}getSirenState(e,s=!1){var o;let r,i;if(!s){const a=this.getValue("siren");a.state?r=a:(o=a.lastEvent)!=null&&o.state&&(r=a.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const a={...e,timestamp:Date.now()};i={...a,level:a.level||(r==null?void 0:r.level)||0,lastEvent:r||(a.state?a:void 0)}}return i}getBatteryState(e,s=!1){let r,i;if(!s){const o=this.getValue("battery");this.stateChanged(o,e,"battery")?r=o:o.lastEvent&&this.stateChanged(o.lastEvent,e,"battery")&&(r=o.lastEvent),r&&delete r.lastEvent}if(this.isStateEvent(e))i=e;else{const o={...e,timestamp:Date.now()};i={...o,charging:e.charging||(r==null?void 0:r.charging)||!1,lowBattery:e.lowBattery||(r==null?void 0:r.lowBattery)||!1,lastEvent:r||o}}return i}updateCamera(e){this.cameraSubject.next(e),this.updateCameraSourcesState()}async updatePrebuffer(e,s,r){this.prebufferStateSubjects[e]&&this.prebufferStateSubjects[e][s]&&this.prebufferStateSubjects[e][s].next({state:r.state,url:r.url||void 0,maxDuration:r.maxDuration,availableDuration:r.availableDuration})}updateCameraSourcesState(){const e=this.cameraSubject.getValue().sources;for(const s in this.prebufferStateSubjects)if(!e.some(r=>r._id===s)){for(const r in this.prebufferStateSubjects[s])this.prebufferStateSubjects[s][r].complete();delete this.prebufferStateSubjects[s]}}updateCameraState(e){this.cameraState.next(e)}cameraSourcePrebufferState(e,s){let r={state:!1,maxDuration:0,availableDuration:0};return this.prebufferStateSubjects[e]&&this.prebufferStateSubjects[e][s]&&(r=this.prebufferStateSubjects[e][s].getValue()),r}createStateObservable(e){return e.pipe(ot({connector:()=>new it(1)}))}createPrebufferStateObservable(e,s){return this.prebufferStateSubjects[e]||(this.prebufferStateSubjects[e]={}),this.prebufferStateSubjects[e][s]||(this.prebufferStateSubjects[e][s]=new fe({state:!1,maxDuration:0,availableDuration:0})),this.prebufferStateSubjects[e][s].pipe((i===void 0&&(i=er),r=(r=(o,a)=>o.state===a.state&&o.url===a.url)!=null?r:ii,ze(function(o,a){var c,h=!0;o.subscribe(Me(a,function(l){var d=i(l);!h&&r(c,d)||(h=!1,c=d,a.next(l))}))})),ot({connector:()=>new it(1)}));var r,i}stateChanged(e,s,r){if(!e||!s||!r)return!1;if(r=="audio"){if(!this.hasAudioDetector)return!1;const i=e,o=s;return i.state!==o.state||i.db!==o.db}if(r=="motion"){if(!this.hasMotionDetector)return!1;const i=e,o=s;return o.state!==void 0?i.state!==o.state:!Ne(i.detections,o.detections,!0)}if(r=="object"){if(!this.hasObjectDetector)return!1;const i=s;return!Ne(e.detections,i.detections,!0)}if(r=="siren"){if(!this.hasSiren)return!1;const i=e,o=s;return i.state!==o.state||i.level!==o.level}if(r=="battery"){if(!this.hasBattery)return!1;const i=e,o=s;return i.level!==o.level||i.lowBattery!==o.lowBattery||i.charging!==o.charging}if(r=="doorbell"){if(!this.hasBinarySensor)return!1;const i=s;return e.state!==i.state}if(r=="light"){if(!this.hasLight)return!1;const i=s;return e.state!==i.state}return!1}isStateEvent(e){return"timestamp"in e}}class di{}class fi{}class pi{}class gi extends di{constructor(e,s){super();m(this,"delegate");m(this,"onRequest");m(this,"logger");this.onRequest=e,this.logger=s}async snapshot(){return this.delegate?this.delegate.snapshot():this._onRequest("snapshot")}async reboot(){return this.delegate?this.delegate.reboot():this._onRequest("reboot")}_onRequest(e,s,r){return this.onRequest("cameraDelegate",e,s,r)}}class mi extends fi{constructor(e,s){super();m(this,"delegate");m(this,"onRequest");m(this,"logger");this.onRequest=e,this.logger=s}async getStreamInfo(e){return this.delegate?this.delegate.getStreamInfo(e):this._onRequest("prebuffer","getStreamInfo",[e])}async updatePrebufferState(e,s,r){return this._onRequest("cameraFn","updatePrebufferState",[e,s,r],0)}_onRequest(e,s,r,i){return this.onRequest("ptzDelegate",s,r,i)}}class yi extends pi{constructor(e,s){super();m(this,"delegate");m(this,"onRequest");m(this,"logger");this.onRequest=e,this.logger=s}async moveAbsolute(e,s,r){return this.delegate?this.delegate.moveAbsolute(e,s,r):this._onRequest("moveAbsolute",[e,s,r])}async moveRelative(e,s,r){return this.delegate?this.delegate.moveRelative(e,s,r):this._onRequest("moveRelative",[e,s,r])}async moveContinuous(e,s,r){return this.delegate?this.delegate.moveContinuous(e,s,r):this._onRequest("moveContinuous",[e,s,r])}async stop(){return this.delegate?this.delegate.stop():this._onRequest("stop",[])}_onRequest(e,s,r){return this.onRequest("ptzDelegate",e,s,r)}}class bi extends EventTarget{constructor(e,s,r,i){super();m(this,"cameraDevice");m(this,"socketService");m(this,"logger");m(this,"options");m(this,"videoPlayer");m(this,"socket");m(this,"streamId");m(this,"hasBackchannel",!1);m(this,"closed",!1);m(this,"micTransceiver",null);m(this,"pc",null);m(this,"buf",new Uint8Array(2097152));m(this,"mediaSource",null);m(this,"sourceBuffer",null);m(this,"bufLen",0);m(this,"mseCodecs","");m(this,"videoPlayerMp4");m(this,"media",["video","audio","microphone"]);m(this,"codecList",[]);m(this,"reconnectTimeout");m(this,"_finishLoading",!1);m(this,"webrtcReconnectTimeout");this.options=i,this.videoPlayer=i.videoElement,this.cameraDevice=e,this.socketService=s,this.logger=r;const{socket:o}=this.socketService.getSocket(`${e.id}-go2rtcSession`,!0);this.socket=o,this.socket.connect(),this.streamId=this.uuidv4(),this.createCodecsList()}get mode(){return this.options.mode}connect(e){e&&(this.options.mode=e),this.socket.on("ws-open",this.onWsOpen.bind(this)),this.socket.on("ws-close",this.onWsClose.bind(this)),this.socket.on("ws-message",this.onWsMessage.bind(this)),this.socket.emit("ws-open",{id:this.streamId,cameraSource:this.options.sourceName,mode:this.options.mode})}disconnect(){this.socket.removeListener("ws-open",this.onWsOpen.bind(this)),this.socket.removeListener("ws-close",this.onWsClose.bind(this)),this.socket.removeListener("ws-message",this.onWsMessage.bind(this)),this.socket.emit("ws-close",{id:this.streamId})}async reconnect(e){this.dispatchEvent(new Event("reconnect")),this.close(),await new Promise(s=>setTimeout(s,100)),this.connect(e)}reset(){var e,s,r;this._finishLoading=!1,(e=this.pc)==null||e.getTransceivers().forEach(i=>{var o,a;return(a=(o=i.sender)==null?void 0:o.track)==null?void 0:a.stop()}),(s=this.pc)==null||s.close(),this.pc=null,(r=this.videoPlayerMp4)==null||r.remove(),this.videoPlayerMp4=void 0,this.videoPlayer.srcObject=null,this.videoPlayer.src="",this.videoPlayer.poster=""}close(){this.closed=!0,this.reset(),this.disconnect(),this.socket.emit("end"),this.socket.removeAllListeners()}onWsOpen({id:e}){if(e===this.streamId)switch(this.options.mode){case"webrtc":case"webrtc/tcp":this.requestWebrtc();break;case"mse":this.requestMse();break;case"hls":this.requestHls();break;case"mp4":this.requestMp4();break;case"mjpeg":this.requestMjpeg();break;default:this.dispatchEvent(new ErrorEvent("error",{message:"Unknown mode: "+this.options.mode}))}}onWsClose({id:e}){e===this.streamId&&(this.closed||this.options.reconnectInterval===void 0||(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout(()=>{this.reconnect()},this.options.reconnectInterval)))}onWsMessage({id:e,data:s}){if(e===this.streamId&&s.type)switch(s.type){case"mse":this.onMseData(s);break;case"hls":this.onHlsData(s);break;case"webrtc/candidate":case"webrtc/answer":this.onWebrtcData(s);break;case"mse-binary":this.onMseBuffer(s);break;case"mjpeg-binary":this.onMjpegBuffer(s);break;case"mp4-binary":this.onMp4Buffer(s);break;case"stream-info":this.onStreamInfo(s);break;case"error":this.dispatchEvent(new ErrorEvent("error",{error:s,message:s.value}))}}async requestWebrtc(){this.reset(),this.pc=new RTCPeerConnection({bundlePolicy:"max-bundle",iceServers:[{urls:"stun:stun.l.google.com:19302"}],sdpSemantics:"unified-plan"}),this.pc.addEventListener("icecandidate",s=>{var i,o;if(this.options.mode==="webrtc/tcp"&&((i=s.candidate)==null?void 0:i.protocol)==="udp")return;const r=((o=s.candidate)==null?void 0:o.toJSON().candidate)||"";this.socket.emit("stream-payload",{id:this.streamId,data:{type:"webrtc/candidate",value:r}})}),this.pc.addEventListener("connectionstatechange",()=>{var s,r,i,o;if(((s=this.pc)==null?void 0:s.connectionState)==="connected"){const a=(r=this.pc)==null?void 0:r.getTransceivers().filter(c=>c.currentDirection==="recvonly").map(c=>c.receiver.track);this.videoPlayer.srcObject=new MediaStream(a),this.finishLoading(),this.play(),this.disconnect()}else((i=this.pc)==null?void 0:i.connectionState)!=="failed"&&((o=this.pc)==null?void 0:o.connectionState)!=="disconnected"||(clearTimeout(this.webrtcReconnectTimeout),this.webrtcReconnectTimeout=setTimeout(()=>{var a,c;((a=this.pc)==null?void 0:a.connectionState)!=="failed"&&((c=this.pc)==null?void 0:c.connectionState)!=="disconnected"||this.reconnect()},1e3))});const e=await this.createOffer();e&&this.socket.emit("stream-payload",{id:this.streamId,data:{type:"webrtc/offer",value:e.sdp}})}async onWebrtcData(e){var s,r,i;try{switch(e.type){case"webrtc/candidate":if(this.options.mode==="webrtc/tcp"&&e.value.indexOf(" udp ")>0)return;await((s=this.pc)==null?void 0:s.addIceCandidate({candidate:e.value,sdpMid:"0"}));break;case"webrtc/answer":await((r=this.pc)==null?void 0:r.setRemoteDescription({type:"answer",sdp:e.value}));break;case"error":if(e.value.indexOf("webrtc/offer")<0)return;(i=this.pc)==null||i.close()}}catch(o){this.dispatchEvent(new ErrorEvent("error",{error:o,message:o.message}))}}async createOffer(){if(this.pc){this.pc.addTransceiver("video",{direction:"recvonly"}),this.pc.addTransceiver("audio",{direction:"recvonly"}),this.micTransceiver=this.pc.addTransceiver("audio",{direction:"sendonly"});const e=await this.pc.createOffer();return await this.pc.setLocalDescription(e),e}}requestMse(){if(this.reset(),"ManagedMediaSource"in window){const e=window.ManagedMediaSource;this.mediaSource=new e,this.mediaSource.addEventListener("sourceopen",()=>{this.socket.emit("stream-payload",{id:this.streamId,data:{type:"mse",value:this.parseCodecs(e.isTypeSupported)}})},{once:!0}),this.videoPlayer.disableRemotePlayback=!0,this.videoPlayer.srcObject=this.mediaSource}else this.mediaSource=new MediaSource,this.mediaSource.addEventListener("sourceopen",()=>{URL.revokeObjectURL(this.videoPlayer.src),this.socket.emit("stream-payload",{id:this.streamId,data:{type:"mse",value:this.parseCodecs(MediaSource.isTypeSupported)}})},{once:!0}),this.videoPlayer.src=URL.createObjectURL(this.mediaSource),this.videoPlayer.srcObject=null;this.play(),this.mseCodecs=""}onMseData(e){this.mediaSource&&(this.mseCodecs=e.value,this.bufLen=0,this.buf=new Uint8Array(2097152),this.sourceBuffer=this.mediaSource.addSourceBuffer(e.value),this.sourceBuffer.mode="segments",this.sourceBuffer.addEventListener("updateend",()=>{var s,r,i,o,a;if(!((s=this.sourceBuffer)!=null&&s.updating))try{if(this.bufLen>0){const c=this.buf.slice(0,this.bufLen);this.bufLen=0,(r=this.sourceBuffer)==null||r.appendBuffer(c)}else if((o=(i=this.sourceBuffer)==null?void 0:i.buffered)!=null&&o.length){const c=this.sourceBuffer.buffered.end(this.sourceBuffer.buffered.length-1)-15,h=this.sourceBuffer.buffered.start(0);c>h&&(this.sourceBuffer.remove(h,c),(a=this.mediaSource)==null||a.setLiveSeekableRange(c,c+15))}}catch{}}))}async onMseBuffer(e){var s,r,i;if(((s=this.mediaSource)==null?void 0:s.readyState)!=="closed")if(this.finishLoading(),((r=this.sourceBuffer)==null?void 0:r.updating)||this.bufLen>0){const o=new Uint8Array(e.value);this.buf.set(o,this.bufLen),this.bufLen+=o.byteLength}else try{(i=this.sourceBuffer)==null||i.appendBuffer(e.value)}catch{}else this.closed||(this.closed=!0,this.dispatchEvent(new ErrorEvent("error",{message:"MediaSource closed"})),this.options.mode="webrtc",this.requestWebrtc())}requestMjpeg(){this.reset(),this.socket.emit("stream-payload",{id:this.streamId,data:{type:"mjpeg"}})}onMjpegBuffer(e){this.videoPlayer.controls=!1,this.videoPlayer.poster="data:image/jpeg;base64,"+this.btoaBinary(e.value),this.finishLoading()}requestMp4(){this.reset();const e=document.createElement("canvas");let s=null;this.videoPlayerMp4=document.createElement("video"),this.videoPlayerMp4.autoplay=!0,this.videoPlayerMp4.playsInline=!0,this.videoPlayerMp4.muted=!0,this.videoPlayerMp4.addEventListener("loadeddata",()=>{this.videoPlayerMp4&&(s||(e.width=this.videoPlayerMp4.videoWidth,e.height=this.videoPlayerMp4.videoHeight,s=e.getContext("2d")),s==null||s.drawImage(this.videoPlayerMp4,0,0,e.width,e.height),this.videoPlayer.controls=!1,this.videoPlayer.poster=e.toDataURL("image/jpeg"))});const r=this.codecList.filter(i=>this.media.includes(i.indexOf("vc1")>0?"video":"audio")).filter(i=>this.videoPlayer.canPlayType(`video/mp4; codecs="${i}"`)).join();this.socket.emit("stream-payload",{id:this.streamId,data:{type:"mp4",value:r}})}onMp4Buffer(e){this.finishLoading(),this.videoPlayerMp4&&(this.videoPlayerMp4.src="data:video/mp4;base64,"+this.btoaBinary(e.value))}requestHls(){this.reset(),this.socket.emit("stream-payload",{id:this.streamId,data:{type:"hls",value:this.parseCodecs(e=>this.videoPlayer.canPlayType(e))}})}onHlsData(e){const s="http"+e.wsURL.substring(2,e.wsURL.indexOf("/ws"))+"/hls/",r=e.value.replace("hls/",s),i="data:application/vnd.apple.mpegurl;base64,"+btoa(r.toString());this.videoPlayer.src=i,this.finishLoading(),this.play()}onStreamInfo(e){var r;const s=e.value;(r=s==null?void 0:s.producers)!=null&&r.length&&(this.hasBackchannel=s.producers.some(i=>{var o;return(o=i.senders)==null?void 0:o.length}))}async play(){try{await this.videoPlayer.play()}catch(e){if(!this.videoPlayer.muted)return this.videoPlayer.muted=!0,this.play();this.logger.warn(this.cameraDevice.name,e)}}finishLoading(){this._finishLoading||(this._finishLoading=!0,this.dispatchEvent(new Event("finishLoading")))}createCodecsList(){const e=["avc1.640029","avc1.64002A","avc1.640033","hvc1.1.6.L153.B0","mp4a.40.2","mp4a.40.5","flac","opus"],s=typeof window>"u"?null:navigator.userAgent.match(/Version\/(\d+).+Safari/);if(s!=null&&s[1]){const r=s[1]<"13"?"mp4a.40.2":s[1]<"14"?"flac":"opus";e.splice(e.indexOf(r))}this.codecList=e}parseCodecs(e){return this.codecList.filter(s=>this.media.includes(s.indexOf("vc1")>0?"video":"audio")).filter(s=>e(`video/mp4; codecs="${s}"`)).join()}btoaBinary(e){const s=new Uint8Array(e),r=s.byteLength;let i="";for(let o=0;o<r;o++)i+=String.fromCharCode(s[o]);return window.btoa(i)}uuidv4(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}}class pn extends li{constructor(e,s,r){super(e,r);m(this,"socketService");m(this,"socket");m(this,"pluginName","@camera.ui/client");m(this,"subject");m(this,"_started",!1);m(this,"cameraDelegate",new gi(this.onRequest.bind(this),this.logger));m(this,"prebufferDelegate",new mi(this.onRequest.bind(this),this.logger));m(this,"ptzDelegate",new yi(this.onRequest.bind(this),this.logger));this.socketService=s;const{socket:i}=this.socketService.getSocket(this.id,!0);this.socket=i,this.socket.connect(),this.subject=`${this.pluginName}.camera.${this.id}`,this.listenToMessages()}get started(){return this._started}get sources(){return super.sources.map(e=>({...e,updatePrebufferingState:(s,r)=>this.prebufferDelegate.updatePrebufferState(e._id,s,r),getPrebufferingState:s=>super.cameraSourcePrebufferState(e._id,s),onPrebuffering:s=>super.createPrebufferStateObservable(e._id,s),getStreamInfo:async()=>this.prebufferDelegate.getStreamInfo(e.name)}))}async start(){this._started||(this._started=!0,await this.refreshStates(),this.socket.emit("joinRoomStates",this.id))}stop(){this._started=!1,this.socket.emit("leaveRoomStates",this.id)}close(){this.cleanup()}connect(){return this.onRequest("cameraFn","connect")}disconnect(){return this.onRequest("cameraFn","disconnect")}getIceServers(){return this.onRequest("cameraFn","getIceServers")}createSession(e){return new bi(this,this.socketService,this.logger,e)}async updateState(e,s){const{changed:r,event:i}=super.checkStateInternal(e,s);if(r)return super.updateStateInternal(e,i,!0),this.onRequest("cameraFn","updateState",[e,i])}addCameraSource(e){return this.onRequest("cameraFn","addCameraSource",[e])}updateCameraSource(e,s){return this.onRequest("cameraFn","updateCameraSource",[e,s])}removeCameraSource(e){return this.onRequest("cameraFn","removeCameraSource",[e])}async refreshStates(){const e=await this.onRequest("cameraFn","refreshStates");super.updateCamera(e.camera),super.updateCameraState(e.cameraState);for(const[s,r]of Object.entries(e.states))super.updateStateInternal(s,r,!0)}async cleanup(){this.stop(),this.removeAllListeners(),this.unsubscribe(),this.socket.removeAllListeners()}listenToMessages(){this.socket.emit("joinRoomDevice",this.id),this.socket.on("updateState",e=>{e.cameraId===this.id&&super.updateStateInternal(e.stateName,e.data.newEvent,!0)}),this.socket.on("updateDevice",e=>{if(e.cameraId===this.id)switch(e.type){case"removed":this.cleanup();break;case"updated":super.updateCamera(e.data);break;case"cameraState":super.updateCameraState(e.data);break;case"prebufferState":super.updatePrebuffer(e.data.sourceId,e.data.container,e.data.state)}})}onRequest(e,s,r=[]){const i={requestId:crypto.randomUUID(),targetId:this.subject,targetName:this.name,pluginId:this.pluginName,cameraId:this.id,type:"request",proxy:"camera",client:e,fn:s,args:r,timestamp:Date.now(),timeout:5e3};return new Promise((o,a)=>{this.socket.emit("request",i,c=>{c.error?a(c.error):o(c.response)})})}}class vi{constructor(t,e){m(this,"socketService");m(this,"socket");m(this,"logger");m(this,"pluginName","@camera.ui/client");m(this,"subject");this.socketService=t,this.socket=t.socket,this.logger=e,this.subject=`${this.pluginName}.deviceManager`}async getCameraById(t){const e=await this.onRequest("getCameraById",[t]);if(e){const s=new pn(e,this.socketService,this.logger);return await s.refreshStates(),s}}async getCameraByName(t){const e=await this.onRequest("getCameraByName",[t]);if(e){const s=new pn(e,this.socketService,this.logger);return await s.refreshStates(),s}}onRequest(t,e){const s={requestId:crypto.randomUUID(),targetId:this.subject,targetName:this.pluginName,pluginId:this.pluginName,type:"request",proxy:"device",client:"deviceFn",fn:t,args:e||[],timestamp:Date.now(),timeout:5e3};return new Promise((r,i)=>{this.socket.emit("request",s,o=>{o.error?i(o.error):r(o.response)})})}}const pe=Object.create(null);pe.open="0",pe.close="1",pe.ping="2",pe.pong="3",pe.message="4",pe.upgrade="5",pe.noop="6";const vt=Object.create(null);Object.keys(pe).forEach(n=>{vt[pe[n]]=n});const ds={type:"error",data:"parser error"},rr=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ir=typeof ArrayBuffer=="function",or=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,$t=({type:n,data:t},e,s)=>rr&&t instanceof Blob?e?s(t):gn(t,s):ir&&(t instanceof ArrayBuffer||or(t))?e?s(t):gn(new Blob([t]),s):s(pe[n]+(t||"")),gn=(n,t)=>{const e=new FileReader;return e.onload=function(){const s=e.result.split(",")[1];t("b"+(s||""))},e.readAsDataURL(n)};function mn(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Jt;const Ke=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<64;n++)Ke["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(n)]=n;const wi=typeof ArrayBuffer=="function",fs=(n,t)=>{if(typeof n!="string")return{type:"message",data:ar(n,t)};const e=n.charAt(0);return e==="b"?{type:"message",data:Si(n.substring(1),t)}:vt[e]?n.length>1?{type:vt[e],data:n.substring(1)}:{type:vt[e]}:ds},Si=(n,t)=>{if(wi){const e=(s=>{let r,i,o,a,c,h=.75*s.length,l=s.length,d=0;s[s.length-1]==="="&&(h--,s[s.length-2]==="="&&h--);const p=new ArrayBuffer(h),y=new Uint8Array(p);for(r=0;r<l;r+=4)i=Ke[s.charCodeAt(r)],o=Ke[s.charCodeAt(r+1)],a=Ke[s.charCodeAt(r+2)],c=Ke[s.charCodeAt(r+3)],y[d++]=i<<2|o>>4,y[d++]=(15&o)<<4|a>>2,y[d++]=(3&a)<<6|63&c;return p})(n);return ar(e,t)}return{base64:!0,data:n}},ar=(n,t)=>t==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,yn="";let Gt;function at(n){return n.reduce((t,e)=>t+e.length,0)}function ct(n,t){if(n[0].length===t)return n.shift();const e=new Uint8Array(t);let s=0;for(let r=0;r<t;r++)e[r]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),e}function U(n){if(n)return function(t){for(var e in U.prototype)t[e]=U.prototype[e];return t}(n)}U.prototype.on=U.prototype.addEventListener=function(n,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(t),this},U.prototype.once=function(n,t){function e(){this.off(n,e),t.apply(this,arguments)}return e.fn=t,this.on(n,e),this},U.prototype.off=U.prototype.removeListener=U.prototype.removeAllListeners=U.prototype.removeEventListener=function(n,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e,s=this._callbacks["$"+n];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var r=0;r<s.length;r++)if((e=s[r])===t||e.fn===t){s.splice(r,1);break}return s.length===0&&delete this._callbacks["$"+n],this},U.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),e=this._callbacks["$"+n],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(e){s=0;for(var r=(e=e.slice(0)).length;s<r;++s)e[s].apply(this,t)}return this},U.prototype.emitReserved=U.prototype.emit,U.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},U.prototype.hasListeners=function(n){return!!this.listeners(n).length};const ee=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function cr(n,...t){return t.reduce((e,s)=>(n.hasOwnProperty(s)&&(e[s]=n[s]),e),{})}const Ei=ee.setTimeout,_i=ee.clearTimeout;function Bt(n,t){t.useNativeTimers?(n.setTimeoutFn=Ei.bind(ee),n.clearTimeoutFn=_i.bind(ee)):(n.setTimeoutFn=ee.setTimeout.bind(ee),n.clearTimeoutFn=ee.clearTimeout.bind(ee))}class Oi extends Error{constructor(t,e,s){super(t),this.description=e,this.context=s,this.type="TransportError"}}class Kt extends U{constructor(t){super(),this.writable=!1,Bt(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,e,s){return super.emitReserved("error",new Oi(t,e,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return this.readyState!=="opening"&&this.readyState!=="open"||(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=fs(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const e=function(s){let r="";for(let i in s)s.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(s[i]));return r}(t);return e.length?"?"+e:""}}const hr="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ps=64,ki={};let bn,vn=0,ht=0;function wn(n){let t="";do t=hr[n%ps]+t,n=Math.floor(n/ps);while(n>0);return t}function Sn(){const n=wn(+new Date);return n!==bn?(vn=0,bn=n):n+"."+wn(vn++)}for(;ht<ps;ht++)ki[hr[ht]]=ht;let ur=!1;try{ur=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ri=ur;function lr(n){const t=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Ri))return new XMLHttpRequest}catch{}if(!t)try{return new ee[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Ai(){}const Ti=new lr({xdomain:!1}).responseType!=null;class ge extends U{constructor(t,e){super(),Bt(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=e.data!==void 0?e.data:null,this.create()}create(){var t;const e=cr(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new lr(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this.opts.cookieJar)===null||r===void 0||r.parseCookies(s)),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(r){return void this.setTimeoutFn(()=>{this.onError(r)},0)}typeof document<"u"&&(this.index=ge.requestsCount++,ge.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(this.xhr!==void 0&&this.xhr!==null){if(this.xhr.onreadystatechange=Ai,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ge.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function En(){for(let n in ge.requests)ge.requests.hasOwnProperty(n)&&ge.requests[n].abort()}ge.requestsCount=0,ge.requests={},typeof document<"u"&&(typeof attachEvent=="function"?attachEvent("onunload",En):typeof addEventListener=="function"&&addEventListener("onpagehide"in ee?"pagehide":"unload",En,!1));const gs=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,t)=>t(n,0),ut=ee.WebSocket||ee.MozWebSocket,_n=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",xi={websocket:class extends Kt{constructor(n){super(n),this.supportsBinary=!n.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const n=this.uri(),t=this.opts.protocols,e=_n?{}:cr(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(e.headers=this.opts.extraHeaders);try{this.ws=_n?new ut(n,t,e):t?new ut(n,t):new ut(n)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let t=0;t<n.length;t++){const e=n[t],s=t===n.length-1;$t(e,this.supportsBinary,r=>{try{this.ws.send(r)}catch{}s&&gs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Sn()),this.supportsBinary||(t.b64=1),this.createUri(n,t)}check(){return!!ut}},webtransport:class extends Kt{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(n=>{const t=function(o,a){Gt||(Gt=new TextDecoder);const c=[];let h=0,l=-1,d=!1;return new TransformStream({transform(p,y){for(c.push(p);;){if(h===0){if(at(c)<1)break;const g=ct(c,1);d=!(128&~g[0]),l=127&g[0],h=l<126?3:l===126?1:2}else if(h===1){if(at(c)<2)break;const g=ct(c,2);l=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),h=3}else if(h===2){if(at(c)<8)break;const g=ct(c,8),E=new DataView(g.buffer,g.byteOffset,g.length),w=E.getUint32(0);if(w>Math.pow(2,21)-1){y.enqueue(ds);break}l=w*Math.pow(2,32)+E.getUint32(4),h=3}else{if(at(c)<l)break;const g=ct(c,l);y.enqueue(fs(d?g:Gt.decode(g),a)),h=0}if(l===0||l>o){y.enqueue(ds);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),e=n.readable.pipeThrough(t).getReader(),s=new TransformStream({transform(o,a){(function(c,h){rr&&c.data instanceof Blob?c.data.arrayBuffer().then(mn).then(h):ir&&(c.data instanceof ArrayBuffer||or(c.data))?h(mn(c.data)):$t(c,!1,l=>{Jt||(Jt=new TextEncoder),h(Jt.encode(l))})})(o,c=>{const h=c.length;let l;if(h<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,h);else if(h<65536){l=new Uint8Array(3);const d=new DataView(l.buffer);d.setUint8(0,126),d.setUint16(1,h)}else{l=new Uint8Array(9);const d=new DataView(l.buffer);d.setUint8(0,127),d.setBigUint64(1,BigInt(h))}o.data&&typeof o.data!="string"&&(l[0]|=128),a.enqueue(l),a.enqueue(c)})}});s.readable.pipeTo(n.writable),this.writer=s.writable.getWriter();const r=()=>{e.read().then(({done:o,value:a})=>{o||(this.onPacket(a),r())}).catch(o=>{})};r();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(n){this.writable=!1;for(let t=0;t<n.length;t++){const e=n[t],s=t===n.length-1;this.writer.write(e).then(()=>{s&&gs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this.transport)===null||n===void 0||n.close()}},polling:class extends Kt{constructor(n){if(super(n),this.polling=!1,typeof location<"u"){const e=location.protocol==="https:";let s=location.port;s||(s=e?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}const t=n&&n.forceBase64;this.supportsBinary=Ti&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(n){this.readyState="pausing";const t=()=>{this.readyState="paused",n()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){((t,e)=>{const s=t.split(yn),r=[];for(let i=0;i<s.length;i++){const o=fs(s[i],e);if(r.push(o),o.type==="error")break}return r})(n,this.socket.binaryType).forEach(t=>{if(this.readyState==="opening"&&t.type==="open"&&this.onOpen(),t.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,((t,e)=>{const s=t.length,r=new Array(s);let i=0;t.forEach((o,a)=>{$t(o,!1,c=>{r[a]=c,++i===s&&e(r.join(yn))})})})(n,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Sn()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(n,t)}request(n={}){return Object.assign(n,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new ge(this.uri(),n)}doWrite(n,t){const e=this.request({method:"POST",data:n});e.on("success",t),e.on("error",(s,r)=>{this.onError("xhr post error",s,r)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=n}}},Ci=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ji=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ms(n){if(n.length>2e3)throw"URI too long";const t=n,e=n.indexOf("["),s=n.indexOf("]");e!=-1&&s!=-1&&(n=n.substring(0,e)+n.substring(e,s).replace(/:/g,";")+n.substring(s,n.length));let r=Ci.exec(n||""),i={},o=14;for(;o--;)i[ji[o]]=r[o]||"";return e!=-1&&s!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(a,c){const h=c.replace(/\/{2,9}/g,"/").split("/");return c.slice(0,1)!="/"&&c.length!==0||h.splice(0,1),c.slice(-1)=="/"&&h.splice(h.length-1,1),h}(0,i.path),i.queryKey=function(a,c){const h={};return c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,d,p){d&&(h[d]=p)}),h}(0,i.query),i}class _e extends U{constructor(t,e={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],t&&typeof t=="object"&&(e=t,t=null),t?(t=ms(t),e.hostname=t.host,e.secure=t.protocol==="https"||t.protocol==="wss",e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=ms(e.host).host),Bt(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=function(s){let r={},i=s.split("&");for(let o=0,a=i.length;o<a;o++){let c=i[o].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);const s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new xi[t](s)}open(){let t;if(this.opts.rememberUpgrade&&_e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{if(this.transports.length===0)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch{return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(t){let e=this.createTransport(t),s=!1;_e.priorWebsocketSuccess=!1;const r=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",d=>{if(!s)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;_e.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(l(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=e.name,this.emitReserved("upgradeError",p)}}))};function i(){s||(s=!0,l(),e.close(),e=null)}const o=d=>{const p=new Error("probe error: "+d);p.transport=e.name,i(),this.emitReserved("upgradeError",p)};function a(){o("transport closed")}function c(){o("socket closed")}function h(d){e&&d.name!==e.name&&i()}const l=()=>{e.removeListener("open",r),e.removeListener("error",o),e.removeListener("close",a),this.off("close",c),this.off("upgrading",h)};e.once("open",r),e.once("error",o),e.once("close",a),this.once("close",c),this.once("upgrading",h),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{s||e.open()},200):e.open()}onOpen(){if(this.readyState="open",_e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t<e;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.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 r=this.writeBuffer[s].data;if(r&&(t+=typeof(e=r)=="string"?function(i){let o=0,a=0;for(let c=0,h=i.length;c<h;c++)o=i.charCodeAt(c),o<128?a+=1:o<2048?a+=2:o<55296||o>=57344?a+=3:(c++,a+=4);return a}(e):Math.ceil(1.33*(e.byteLength||e.size))),s>0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}var e;return this.writeBuffer}write(t,e,s){return this.sendPacket("message",t,e,s),this}send(t,e,s){return this.sendPacket("message",t,e,s),this}sendPacket(t,e,s,r){if(typeof e=="function"&&(r=e,e=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;(s=s||{}).compress=s.compress!==!1;const i={type:t,data:e,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return this.readyState!=="opening"&&this.readyState!=="open"||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}onError(t){_e.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){this.readyState!=="opening"&&this.readyState!=="open"&&this.readyState!=="closing"||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let s=0;const r=t.length;for(;s<r;s++)~this.transports.indexOf(t[s])&&e.push(t[s]);return e}}_e.protocol=4;const Pi=typeof ArrayBuffer=="function",Li=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,dr=Object.prototype.toString,Bi=typeof Blob=="function"||typeof Blob<"u"&&dr.call(Blob)==="[object BlobConstructor]",Di=typeof File=="function"||typeof File<"u"&&dr.call(File)==="[object FileConstructor]";function Rs(n){return Pi&&(n instanceof ArrayBuffer||Li(n))||Bi&&n instanceof Blob||Di&&n instanceof File}function wt(n,t){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let e=0,s=n.length;e<s;e++)if(wt(n[e]))return!0;return!1}if(Rs(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return wt(n.toJSON(),!0);for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&wt(n[e]))return!0;return!1}function Ni(n){const t=[],e=n.data,s=n;return s.data=ys(e,t),s.attachments=t.length,{packet:s,buffers:t}}function ys(n,t){if(!n)return n;if(Rs(n)){const e={_placeholder:!0,num:t.length};return t.push(n),e}if(Array.isArray(n)){const e=new Array(n.length);for(let s=0;s<n.length;s++)e[s]=ys(n[s],t);return e}if(typeof n=="object"&&!(n instanceof Date)){const e={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=ys(n[s],t));return e}return n}function Fi(n,t){return n.data=bs(n.data,t),delete n.attachments,n}function bs(n,t){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<t.length)return t[n.num];throw new Error("illegal attachments")}if(Array.isArray(n))for(let e=0;e<n.length;e++)n[e]=bs(n[e],t);else if(typeof n=="object")for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=bs(n[e],t));return n}const Ui=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qi=5;var T;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(T||(T={}));class Ii{constructor(t){this.replacer=t}encode(t){return t.type!==T.EVENT&&t.type!==T.ACK||!wt(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===T.EVENT?T.BINARY_EVENT:T.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let e=""+t.type;return t.type!==T.BINARY_EVENT&&t.type!==T.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(e+=t.nsp+","),t.id!=null&&(e+=t.id),t.data!=null&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){const e=Ni(t),s=this.encodeAsString(e.packet),r=e.buffers;return r.unshift(s),r}}function On(n){return Object.prototype.toString.call(n)==="[object Object]"}class As extends U{constructor(t){super(),this.reviver=t}add(t){let e;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const s=e.type===T.BINARY_EVENT;s||e.type===T.BINARY_ACK?(e.type=s?T.EVENT:T.ACK,this.reconstructor=new Mi(e),e.attachments===0&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else{if(!Rs(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e))}}decodeString(t){let e=0;const s={type:Number(t.charAt(0))};if(T[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===T.BINARY_EVENT||s.type===T.BINARY_ACK){const i=e+1;for(;t.charAt(++e)!=="-"&&e!=t.length;);const o=t.substring(i,e);if(o!=Number(o)||t.charAt(e)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(t.charAt(e+1)==="/"){const i=e+1;for(;++e&&t.charAt(e)!==","&&e!==t.length;);s.nsp=t.substring(i,e)}else s.nsp="/";const r=t.charAt(e+1);if(r!==""&&Number(r)==r){const i=e+1;for(;++e;){const o=t.charAt(e);if(o==null||Number(o)!=o){--e;break}if(e===t.length)break}s.id=Number(t.substring(i,e+1))}if(t.charAt(++e)){const i=this.tryParse(t.substr(e));if(!As.isPayloadValid(s.type,i))throw new Error("invalid payload");s.data=i}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,e){switch(t){case T.CONNECT:return On(e);case T.DISCONNECT:return e===void 0;case T.CONNECT_ERROR:return typeof e=="string"||On(e);case T.EVENT:case T.BINARY_EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Ui.indexOf(e[0])===-1);case T.ACK:case T.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Mi{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const e=Fi(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function he(n,t,e){return n.on(t,e),function(){n.off(t,e)}}const zi=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class fr extends U{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=[he(t,"open",this.onopen.bind(this)),he(t,"packet",this.onpacket.bind(this)),he(t,"error",this.onerror.bind(this)),he(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(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){if(zi.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 s={type:T.EVENT,data:e,options:{}};if(s.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const i=this.ids++,o=e.pop();this._registerAckCallback(i,o),s.id=i}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,e){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0)return void(this.acks[t]=e);const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);e.call(this,new Error("operation has timed out"))},r),o=(...a)=>{this.io.clearTimeoutFn(i),e.apply(this,a)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...e){return new Promise((s,r)=>{const i=(o,a)=>o?r(o):s(a);i.withError=!0,e.push(i),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((r,...i)=>{if(s===this._queue[0])return r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(r)):(this._queue.shift(),e&&e(null,...i)),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:T.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(e=>String(e.id)===t)){const e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case T.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 T.EVENT:case T.BINARY_EVENT:this.onevent(t);break;case T.ACK:case T.BINARY_ACK:this.onack(t);break;case T.DISCONNECT:this.ondisconnect();break;case T.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}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(...r){s||(s=!0,e.packet({type:T.ACK,id:t,data:r}))}}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:T.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 Le(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Le.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*n);n=1&Math.floor(10*t)?n+e:n-e}return 0|Math.min(n,this.max)},Le.prototype.reset=function(){this.attempts=0},Le.prototype.setMin=function(n){this.ms=n},Le.prototype.setMax=function(n){this.max=n},Le.prototype.setJitter=function(n){this.jitter=n};class xt extends U{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,Bt(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 Le({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const r=e.parser||Qt;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,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 _e(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=he(e,"open",function(){s.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=he(e,"error",i);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),e.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(he(t,"ping",this.onping.bind(this)),he(t,"data",this.ondata.bind(this)),he(t,"error",this.onerror.bind(this)),he(t,"close",this.onclose.bind(this)),he(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){gs(()=>{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 fr(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"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),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(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):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 He={};function Yt(n,t){typeof n=="object"&&(t=n,n=void 0);const e=function(c,h="",l){let d=c;l=l||typeof location<"u"&&location,c==null&&(c=l.protocol+"//"+l.host),typeof c=="string"&&(c.charAt(0)==="/"&&(c=c.charAt(1)==="/"?l.protocol+c:l.host+c),/^(https?|wss?):\/\//.test(c)||(c=l!==void 0?l.protocol+"//"+c:"https://"+c),d=ms(c)),d.port||(/^(http|ws)$/.test(d.protocol)?d.port="80":/^(http|ws)s$/.test(d.protocol)&&(d.port="443")),d.path=d.path||"/";const p=d.host.indexOf(":")!==-1?"["+d.host+"]":d.host;return d.id=d.protocol+"://"+p+":"+d.port+h,d.href=d.protocol+"://"+p+(l&&l.port===d.port?"":":"+d.port),d}(n,(t=t||{}).path||"/socket.io"),s=e.source,r=e.id,i=e.path,o=He[r]&&i in He[r].nsps;let a;return t.forceNew||t["force new connection"]||t.multiplex===!1||o?a=new xt(s,t):(He[r]||(He[r]=new xt(s,t)),a=He[r]),e.query&&!t.query&&(t.query=e.queryKey),a.socket(e.path,t)}Object.assign(Yt,{Manager:xt,Socket:fr,io:Yt,connect:Yt});class Vi{constructor(t,e){m(this,"socket");m(this,"token");m(this,"endpoint");m(this,"socketList",new Map);this.endpoint=t.replace("https://","wss://").replace("http://","ws://"),this.token=e,this.socket=this.getSocket("default").socket,this.socket.connect()}close(){this.socket.emit("end"),this.socket.removeAllListeners(),this.socket.disconnect()}getSocket(t,e){return this.socketList.has(t)||this.socketList.set(t,this.createManager(e)),this.socketList.get(t)}createManager(t){const e=new xt(this.endpoint,{reconnection:!0,reconnectionDelay:500,rejectUnauthorized:!1,transports:["websocket"],forceNew:t}),s=e.socket("/proxy",{auth:{token:`Bearer ${this.token}`}});return{manager:e,socket:s}}}class Wi{constructor(t){m(this,"api");m(this,"socketService");m(this,"config");m(this,"logger");m(this,"token");m(this,"deviceManager");this.config=t,this.logger=t.logger||{...console,attention:console.warn},this.api=new Yr(t.endpoint)}async connect(){return this.deviceManager||(this.cleanUpClient(),await this.login(),this.token=this.token||this.config.token,this.socketService=new Vi(this.config.endpoint,this.token),this.deviceManager=new vi(this.socketService,this.logger),this.checkSession()),{deviceManager:this.deviceManager}}async disconnect(){var t;(t=this.socketService)==null||t.close(),this.cleanUpClient(),this.config.username&&this.config.password&&await this.api.interceptor.post("/auth/logout",void 0,{headers:{Authorization:`Bearer ${this.token}`}})}async updateCredentials(t){this.config={...this.config,...t},this.socketService&&await this.disconnect(),await this.connect()}async login(){var t;if(this.config.username&&this.config.password)try{const e=await this.api.interceptor.post("/auth/login",{username:this.config.username,password:this.config.password});this.token=e.data.access_token}catch(e){throw((t=e.response)==null?void 0:t.status)===401?new Error("Invalid credentials"):new Error(`Failed to get token: ${e.message}`)}else if(this.config.token&&!this.config.skipCheck)try{await this.api.interceptor.get("/auth/check",{headers:{Authorization:`Bearer ${this.config.token}`}})}catch(e){throw new Error(`Invalid token: ${e.message}`)}this.token=this.token||this.config.token}getDeviceManager(){return this.deviceManager}checkSession(){var t,e;(t=this.socketService)==null||t.socket.removeListener("invalidToken"),(e=this.socketService)==null||e.socket.on("invalidToken",async s=>{s===this.token&&await this.disconnect()})}cleanUpClient(){this.deviceManager=void 0}}var $i=Tn.j;export{$i as g};
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * shared v9.13.1
3
+ * (c) 2024 kazuya kawaguchi
4
+ * Released under the MIT License.
5
+ */const Bn=typeof window<"u",Jn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ot=(e,t,r)=>gt({l:e,k:t,s:r}),gt=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),X=e=>typeof e=="number"&&isFinite(e),It=e=>Ve(e)==="[object Date]",be=e=>Ve(e)==="[object RegExp]",Te=e=>U(e)&&Object.keys(e).length===0,se=Object.assign;let De;const St=()=>De||(De=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pe(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const yt=Object.prototype.hasOwnProperty;function Qn(e,t){return yt.call(e,t)}const H=Array.isArray,v=e=>typeof e=="function",S=e=>typeof e=="string",K=e=>typeof e=="boolean",F=e=>e!==null&&typeof e=="object",bt=e=>F(e)&&v(e.then)&&v(e.catch),Ge=Object.prototype.toString,Ve=e=>Ge.call(e),U=e=>{if(!F(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Dt=e=>e==null?"":H(e)||U(e)&&e.toString===Ge?JSON.stringify(e,null,2):String(e);function Pt(e,t=""){return e.reduce((r,a,l)=>l===0?r+a:r+t+a,"")}function He(e){let t=e;return()=>++t}function kt(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const oe=e=>!F(e)||H(e);function qn(e,t){if(oe(e)||oe(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:a,des:l}=r.pop();Object.keys(a).forEach(c=>{oe(a[c])||oe(l[c])?l[c]=a[c]:r.push({src:a[c],des:l[c]})})}}/*!
6
+ * message-compiler v9.13.1
7
+ * (c) 2024 kazuya kawaguchi
8
+ * Released under the MIT License.
9
+ */function Rt(e,t,r){return{line:e,column:t,offset:r}}function fe(e,t,r){return{start:e,end:t}}const Mt=/\{([0-9a-zA-Z]+)\}/g;function je(e,...t){return t.length===1&&Ut(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Mt,(r,a)=>t.hasOwnProperty(a)?t[a]:"")}const xe=Object.assign,ke=e=>typeof e=="string",Ut=e=>e!==null&&typeof e=="object";function Be(e,t=""){return e.reduce((r,a,l)=>l===0?r+a:r+t+a,"")}const he={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},wt={[he.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Ft(e,t,...r){const a=je(wt[e],...r||[]),l={message:String(a),code:e};return t&&(l.location=t),l}const g={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},vt={[g.EXPECTED_TOKEN]:"Expected token: '{0}'",[g.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[g.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[g.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[g.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[g.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[g.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[g.EMPTY_PLACEHOLDER]:"Empty placeholder",[g.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[g.INVALID_LINKED_FORMAT]:"Invalid linked format",[g.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[g.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[g.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[g.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[g.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[g.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ce(e,t,r={}){const{domain:a,messages:l,args:c}=r,_=je((l||vt)[e]||"",...c||[]),m=new SyntaxError(String(_));return m.code=e,t&&(m.location=t),m.domain=a,m}function Wt(e){throw e}const x=" ",$t="\r",$=`
10
+ `,Kt="\u2028",Xt="\u2029";function Yt(e){const t=e;let r=0,a=1,l=1,c=0;const _=N=>t[N]===$t&&t[N+1]===$,m=N=>t[N]===$,f=N=>t[N]===Xt,L=N=>t[N]===Kt,I=N=>_(N)||m(N)||f(N)||L(N),h=()=>r,p=()=>a,y=()=>l,b=()=>c,D=N=>_(N)||f(N)||L(N)?$:t[N],A=()=>D(r),O=()=>D(r+c);function P(){return c=0,I(r)&&(a++,l=0),_(r)&&r++,r++,l++,t[r]}function i(){return _(r+c)&&c++,c++,t[r+c]}function o(){r=0,a=1,l=1,c=0}function E(N=0){c=N}function d(){const N=r+c;for(;N!==r;)P();c=0}return{index:h,line:p,column:y,peekOffset:b,charAt:D,currentChar:A,currentPeek:O,next:P,peek:i,reset:o,resetPeek:E,skipToPeek:d}}const q=void 0,Gt=".",Re="'",Vt="tokenizer";function Ht(e,t={}){const r=t.location!==!1,a=Yt(e),l=()=>a.index(),c=()=>Rt(a.line(),a.column(),a.index()),_=c(),m=l(),f={currentType:14,offset:m,startLoc:_,endLoc:_,lastType:14,lastOffset:m,lastStartLoc:_,lastEndLoc:_,braceNest:0,inLinked:!1,text:""},L=()=>f,{onError:I}=t;function h(n,s,u,...T){const w=L();if(s.column+=u,s.offset+=u,I){const M=r?fe(w.startLoc,s):null,Q=ce(n,M,{domain:Vt,args:T});I(Q)}}function p(n,s,u){n.endLoc=c(),n.currentType=s;const T={type:s};return r&&(T.loc=fe(n.startLoc,n.endLoc)),u!=null&&(T.value=u),T}const y=n=>p(n,14);function b(n,s){return n.currentChar()===s?(n.next(),s):(h(g.EXPECTED_TOKEN,c(),0,s),"")}function D(n){let s="";for(;n.currentPeek()===x||n.currentPeek()===$;)s+=n.currentPeek(),n.peek();return s}function A(n){const s=D(n);return n.skipToPeek(),s}function O(n){if(n===q)return!1;const s=n.charCodeAt(0);return s>=97&&s<=122||s>=65&&s<=90||s===95}function P(n){if(n===q)return!1;const s=n.charCodeAt(0);return s>=48&&s<=57}function i(n,s){const{currentType:u}=s;if(u!==2)return!1;D(n);const T=O(n.currentPeek());return n.resetPeek(),T}function o(n,s){const{currentType:u}=s;if(u!==2)return!1;D(n);const T=n.currentPeek()==="-"?n.peek():n.currentPeek(),w=P(T);return n.resetPeek(),w}function E(n,s){const{currentType:u}=s;if(u!==2)return!1;D(n);const T=n.currentPeek()===Re;return n.resetPeek(),T}function d(n,s){const{currentType:u}=s;if(u!==8)return!1;D(n);const T=n.currentPeek()===".";return n.resetPeek(),T}function N(n,s){const{currentType:u}=s;if(u!==9)return!1;D(n);const T=O(n.currentPeek());return n.resetPeek(),T}function C(n,s){const{currentType:u}=s;if(!(u===8||u===12))return!1;D(n);const T=n.currentPeek()===":";return n.resetPeek(),T}function R(n,s){const{currentType:u}=s;if(u!==10)return!1;const T=()=>{const M=n.currentPeek();return M==="{"?O(n.peek()):M==="@"||M==="%"||M==="|"||M===":"||M==="."||M===x||!M?!1:M===$?(n.peek(),T()):k(n,!1)},w=T();return n.resetPeek(),w}function W(n){D(n);const s=n.currentPeek()==="|";return n.resetPeek(),s}function j(n){const s=D(n),u=n.currentPeek()==="%"&&n.peek()==="{";return n.resetPeek(),{isModulo:u,hasSpace:s.length>0}}function k(n,s=!0){const u=(w=!1,M="",Q=!1)=>{const z=n.currentPeek();return z==="{"?M==="%"?!1:w:z==="@"||!z?M==="%"?!0:w:z==="%"?(n.peek(),u(w,"%",!0)):z==="|"?M==="%"||Q?!0:!(M===x||M===$):z===x?(n.peek(),u(!0,x,Q)):z===$?(n.peek(),u(!0,$,Q)):!0},T=u();return s&&n.resetPeek(),T}function Y(n,s){const u=n.currentChar();return u===q?q:s(u)?(n.next(),u):null}function st(n){const s=n.charCodeAt(0);return s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===95||s===36}function at(n){return Y(n,st)}function lt(n){const s=n.charCodeAt(0);return s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===95||s===36||s===45}function ct(n){return Y(n,lt)}function it(n){const s=n.charCodeAt(0);return s>=48&&s<=57}function ot(n){return Y(n,it)}function ut(n){const s=n.charCodeAt(0);return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}function ft(n){return Y(n,ut)}function Ie(n){let s="",u="";for(;s=ot(n);)u+=s;return u}function dt(n){A(n);const s=n.currentChar();return s!=="%"&&h(g.EXPECTED_TOKEN,c(),0,s),n.next(),"%"}function Se(n){let s="";for(;;){const u=n.currentChar();if(u==="{"||u==="}"||u==="@"||u==="|"||!u)break;if(u==="%")if(k(n))s+=u,n.next();else break;else if(u===x||u===$)if(k(n))s+=u,n.next();else{if(W(n))break;s+=u,n.next()}else s+=u,n.next()}return s}function _t(n){A(n);let s="",u="";for(;s=ct(n);)u+=s;return n.currentChar()===q&&h(g.UNTERMINATED_CLOSING_BRACE,c(),0),u}function mt(n){A(n);let s="";return n.currentChar()==="-"?(n.next(),s+=`-${Ie(n)}`):s+=Ie(n),n.currentChar()===q&&h(g.UNTERMINATED_CLOSING_BRACE,c(),0),s}function Et(n){return n!==Re&&n!==$}function Nt(n){A(n),b(n,"'");let s="",u="";for(;s=Y(n,Et);)s==="\\"?u+=Lt(n):u+=s;const T=n.currentChar();return T===$||T===q?(h(g.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,c(),0),T===$&&(n.next(),b(n,"'")),u):(b(n,"'"),u)}function Lt(n){const s=n.currentChar();switch(s){case"\\":case"'":return n.next(),`\\${s}`;case"u":return ye(n,s,4);case"U":return ye(n,s,6);default:return h(g.UNKNOWN_ESCAPE_SEQUENCE,c(),0,s),""}}function ye(n,s,u){b(n,s);let T="";for(let w=0;w<u;w++){const M=ft(n);if(!M){h(g.INVALID_UNICODE_ESCAPE_SEQUENCE,c(),0,`\\${s}${T}${n.currentChar()}`);break}T+=M}return`\\${s}${T}`}function pt(n){return n!=="{"&&n!=="}"&&n!==x&&n!==$}function Tt(n){A(n);let s="",u="";for(;s=Y(n,pt);)u+=s;return u}function ht(n){let s="",u="";for(;s=at(n);)u+=s;return u}function At(n){const s=u=>{const T=n.currentChar();return T==="{"||T==="%"||T==="@"||T==="|"||T==="("||T===")"||!T||T===x?u:(u+=T,n.next(),s(u))};return s("")}function de(n){A(n);const s=b(n,"|");return A(n),s}function _e(n,s){let u=null;switch(n.currentChar()){case"{":return s.braceNest>=1&&h(g.NOT_ALLOW_NEST_PLACEHOLDER,c(),0),n.next(),u=p(s,2,"{"),A(n),s.braceNest++,u;case"}":return s.braceNest>0&&s.currentType===2&&h(g.EMPTY_PLACEHOLDER,c(),0),n.next(),u=p(s,3,"}"),s.braceNest--,s.braceNest>0&&A(n),s.inLinked&&s.braceNest===0&&(s.inLinked=!1),u;case"@":return s.braceNest>0&&h(g.UNTERMINATED_CLOSING_BRACE,c(),0),u=ie(n,s)||y(s),s.braceNest=0,u;default:{let w=!0,M=!0,Q=!0;if(W(n))return s.braceNest>0&&h(g.UNTERMINATED_CLOSING_BRACE,c(),0),u=p(s,1,de(n)),s.braceNest=0,s.inLinked=!1,u;if(s.braceNest>0&&(s.currentType===5||s.currentType===6||s.currentType===7))return h(g.UNTERMINATED_CLOSING_BRACE,c(),0),s.braceNest=0,me(n,s);if(w=i(n,s))return u=p(s,5,_t(n)),A(n),u;if(M=o(n,s))return u=p(s,6,mt(n)),A(n),u;if(Q=E(n,s))return u=p(s,7,Nt(n)),A(n),u;if(!w&&!M&&!Q)return u=p(s,13,Tt(n)),h(g.INVALID_TOKEN_IN_PLACEHOLDER,c(),0,u.value),A(n),u;break}}return u}function ie(n,s){const{currentType:u}=s;let T=null;const w=n.currentChar();switch((u===8||u===9||u===12||u===10)&&(w===$||w===x)&&h(g.INVALID_LINKED_FORMAT,c(),0),w){case"@":return n.next(),T=p(s,8,"@"),s.inLinked=!0,T;case".":return A(n),n.next(),p(s,9,".");case":":return A(n),n.next(),p(s,10,":");default:return W(n)?(T=p(s,1,de(n)),s.braceNest=0,s.inLinked=!1,T):d(n,s)||C(n,s)?(A(n),ie(n,s)):N(n,s)?(A(n),p(s,12,ht(n))):R(n,s)?(A(n),w==="{"?_e(n,s)||T:p(s,11,At(n))):(u===8&&h(g.INVALID_LINKED_FORMAT,c(),0),s.braceNest=0,s.inLinked=!1,me(n,s))}}function me(n,s){let u={type:14};if(s.braceNest>0)return _e(n,s)||y(s);if(s.inLinked)return ie(n,s)||y(s);switch(n.currentChar()){case"{":return _e(n,s)||y(s);case"}":return h(g.UNBALANCED_CLOSING_BRACE,c(),0),n.next(),p(s,3,"}");case"@":return ie(n,s)||y(s);default:{if(W(n))return u=p(s,1,de(n)),s.braceNest=0,s.inLinked=!1,u;const{isModulo:w,hasSpace:M}=j(n);if(w)return M?p(s,0,Se(n)):p(s,4,dt(n));if(k(n))return p(s,0,Se(n));break}}return u}function Ct(){const{currentType:n,offset:s,startLoc:u,endLoc:T}=f;return f.lastType=n,f.lastOffset=s,f.lastStartLoc=u,f.lastEndLoc=T,f.offset=l(),f.startLoc=c(),a.currentChar()===q?p(f,14):me(a,f)}return{nextToken:Ct,currentOffset:l,currentPosition:c,context:L}}const jt="parser",xt=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Bt(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||r,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Jt(e={}){const t=e.location!==!1,{onError:r,onWarn:a}=e;function l(i,o,E,d,...N){const C=i.currentPosition();if(C.offset+=d,C.column+=d,r){const R=t?fe(E,C):null,W=ce(o,R,{domain:jt,args:N});r(W)}}function c(i,o,E,d,...N){const C=i.currentPosition();if(C.offset+=d,C.column+=d,a){const R=t?fe(E,C):null;a(Ft(o,R,N))}}function _(i,o,E){const d={type:i};return t&&(d.start=o,d.end=o,d.loc={start:E,end:E}),d}function m(i,o,E,d){t&&(i.end=o,i.loc&&(i.loc.end=E))}function f(i,o){const E=i.context(),d=_(3,E.offset,E.startLoc);return d.value=o,m(d,i.currentOffset(),i.currentPosition()),d}function L(i,o){const E=i.context(),{lastOffset:d,lastStartLoc:N}=E,C=_(5,d,N);return C.index=parseInt(o,10),i.nextToken(),m(C,i.currentOffset(),i.currentPosition()),C}function I(i,o,E){const d=i.context(),{lastOffset:N,lastStartLoc:C}=d,R=_(4,N,C);return R.key=o,E===!0&&(R.modulo=!0),i.nextToken(),m(R,i.currentOffset(),i.currentPosition()),R}function h(i,o){const E=i.context(),{lastOffset:d,lastStartLoc:N}=E,C=_(9,d,N);return C.value=o.replace(xt,Bt),i.nextToken(),m(C,i.currentOffset(),i.currentPosition()),C}function p(i){const o=i.nextToken(),E=i.context(),{lastOffset:d,lastStartLoc:N}=E,C=_(8,d,N);return o.type!==12?(l(i,g.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),C.value="",m(C,d,N),{nextConsumeToken:o,node:C}):(o.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,G(o)),C.value=o.value||"",m(C,i.currentOffset(),i.currentPosition()),{node:C})}function y(i,o){const E=i.context(),d=_(7,E.offset,E.startLoc);return d.value=o,m(d,i.currentOffset(),i.currentPosition()),d}function b(i){const o=i.context(),E=_(6,o.offset,o.startLoc);let d=i.nextToken();if(d.type===9){const N=p(i);E.modifier=N.node,d=N.nextConsumeToken||i.nextToken()}switch(d.type!==10&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(d)),d=i.nextToken(),d.type===2&&(d=i.nextToken()),d.type){case 11:d.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(d)),E.key=y(i,d.value||"");break;case 5:d.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(d)),E.key=I(i,d.value||"");break;case 6:d.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(d)),E.key=L(i,d.value||"");break;case 7:d.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(d)),E.key=h(i,d.value||"");break;default:{l(i,g.UNEXPECTED_EMPTY_LINKED_KEY,o.lastStartLoc,0);const N=i.context(),C=_(7,N.offset,N.startLoc);return C.value="",m(C,N.offset,N.startLoc),E.key=C,m(E,N.offset,N.startLoc),{nextConsumeToken:d,node:E}}}return m(E,i.currentOffset(),i.currentPosition()),{node:E}}function D(i){const o=i.context(),E=o.currentType===1?i.currentOffset():o.offset,d=o.currentType===1?o.endLoc:o.startLoc,N=_(2,E,d);N.items=[];let C=null,R=null;do{const k=C||i.nextToken();switch(C=null,k.type){case 0:k.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(k)),N.items.push(f(i,k.value||""));break;case 6:k.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(k)),N.items.push(L(i,k.value||""));break;case 4:R=!0;break;case 5:k.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(k)),N.items.push(I(i,k.value||"",!!R)),R&&(c(i,he.USE_MODULO_SYNTAX,o.lastStartLoc,0,G(k)),R=null);break;case 7:k.value==null&&l(i,g.UNEXPECTED_LEXICAL_ANALYSIS,o.lastStartLoc,0,G(k)),N.items.push(h(i,k.value||""));break;case 8:{const Y=b(i);N.items.push(Y.node),C=Y.nextConsumeToken||null;break}}}while(o.currentType!==14&&o.currentType!==1);const W=o.currentType===1?o.lastOffset:i.currentOffset(),j=o.currentType===1?o.lastEndLoc:i.currentPosition();return m(N,W,j),N}function A(i,o,E,d){const N=i.context();let C=d.items.length===0;const R=_(1,o,E);R.cases=[],R.cases.push(d);do{const W=D(i);C||(C=W.items.length===0),R.cases.push(W)}while(N.currentType!==14);return C&&l(i,g.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),m(R,i.currentOffset(),i.currentPosition()),R}function O(i){const o=i.context(),{offset:E,startLoc:d}=o,N=D(i);return o.currentType===14?N:A(i,E,d,N)}function P(i){const o=Ht(i,xe({},e)),E=o.context(),d=_(0,E.offset,E.startLoc);return t&&d.loc&&(d.loc.source=i),d.body=O(o),e.onCacheKey&&(d.cacheKey=e.onCacheKey(i)),E.currentType!==14&&l(o,g.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,i[E.offset]||""),m(d,o.currentOffset(),o.currentPosition()),d}return{parse:P}}function G(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Qt(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:c=>(r.helpers.add(c),c)}}function Me(e,t){for(let r=0;r<e.length;r++)Ae(e[r],t)}function Ae(e,t){switch(e.type){case 1:Me(e.cases,t),t.helper("plural");break;case 2:Me(e.items,t);break;case 6:{Ae(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function qt(e,t={}){const r=Qt(e);r.helper("normalize"),e.body&&Ae(e.body,r);const a=r.context();e.helpers=Array.from(a.helpers)}function Zt(e){const t=e.body;return t.type===2?Ue(t):t.cases.forEach(r=>Ue(r)),e}function Ue(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const a=e.items[r];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=Be(t);for(let r=0;r<e.items.length;r++){const a=e.items[r];(a.type===3||a.type===9)&&delete a.value}}}}const zt="minifier";function ne(e){switch(e.t=e.type,e.type){case 0:{const t=e;ne(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let a=0;a<r.length;a++)ne(r[a]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let a=0;a<r.length;a++)ne(r[a]);t.i=r,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;ne(t.key),t.k=t.key,delete t.key,t.modifier&&(ne(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw ce(g.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:zt,args:[e.type]})}delete e.type}const en="parser";function tn(e,t){const{sourceMap:r,filename:a,breakLineCode:l,needIndent:c}=t,_=t.location!==!1,m={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:c,indentLevel:0};_&&e.loc&&(m.source=e.loc.source);const f=()=>m;function L(A,O){m.code+=A}function I(A,O=!0){const P=O?l:"";L(c?P+" ".repeat(A):P)}function h(A=!0){const O=++m.indentLevel;A&&I(O)}function p(A=!0){const O=--m.indentLevel;A&&I(O)}function y(){I(m.indentLevel)}return{context:f,push:L,indent:h,deindent:p,newline:y,helper:A=>`_${A}`,needIndent:()=>m.needIndent}}function nn(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),re(e,t.key),t.modifier?(e.push(", "),re(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function rn(e,t){const{helper:r,needIndent:a}=e;e.push(`${r("normalize")}([`),e.indent(a());const l=t.items.length;for(let c=0;c<l&&(re(e,t.items[c]),c!==l-1);c++)e.push(", ");e.deindent(a()),e.push("])")}function sn(e,t){const{helper:r,needIndent:a}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(a());const l=t.cases.length;for(let c=0;c<l&&(re(e,t.cases[c]),c!==l-1);c++)e.push(", ");e.deindent(a()),e.push("])")}}function an(e,t){t.body?re(e,t.body):e.push("null")}function re(e,t){const{helper:r}=e;switch(t.type){case 0:an(e,t);break;case 1:sn(e,t);break;case 2:rn(e,t);break;case 6:nn(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw ce(g.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:en,args:[t.type]})}}const ln=(e,t={})=>{const r=ke(t.mode)?t.mode:"normal",a=ke(t.filename)?t.filename:"message.intl",l=!!t.sourceMap,c=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
11
+ `,_=t.needIndent?t.needIndent:r!=="arrow",m=e.helpers||[],f=tn(e,{mode:r,filename:a,sourceMap:l,breakLineCode:c,needIndent:_});f.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),f.indent(_),m.length>0&&(f.push(`const { ${Be(m.map(h=>`${h}: _${h}`),", ")} } = ctx`),f.newline()),f.push("return "),re(f,e),f.deindent(_),f.push("}"),delete e.helpers;const{code:L,map:I}=f.context();return{ast:e,code:L,map:I?I.toJSON():void 0}};function cn(e,t={}){const r=xe({},t),a=!!r.jit,l=!!r.minify,c=r.optimize==null?!0:r.optimize,m=Jt(r).parse(e);return a?(c&&Zt(m),l&&ne(m),{ast:m,code:""}):(qt(m,r),ln(m,r))}/*!
12
+ * core-base v9.13.1
13
+ * (c) 2024 kazuya kawaguchi
14
+ * Released under the MIT License.
15
+ */function on(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(St().__INTLIFY_PROD_DEVTOOLS__=!1)}const Z=[];Z[0]={w:[0],i:[3,0],"[":[4],o:[7]};Z[1]={w:[1],".":[2],"[":[4],o:[7]};Z[2]={w:[2],i:[3,0],0:[3,0]};Z[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Z[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Z[5]={"'":[4,0],o:8,l:[5,0]};Z[6]={'"':[4,0],o:8,l:[6,0]};const un=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function fn(e){return un.test(e)}function dn(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function _n(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function mn(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:fn(t)?dn(t):"*"+t}function En(e){const t=[];let r=-1,a=0,l=0,c,_,m,f,L,I,h;const p=[];p[0]=()=>{_===void 0?_=m:_+=m},p[1]=()=>{_!==void 0&&(t.push(_),_=void 0)},p[2]=()=>{p[0](),l++},p[3]=()=>{if(l>0)l--,a=4,p[0]();else{if(l=0,_===void 0||(_=mn(_),_===!1))return!1;p[1]()}};function y(){const b=e[r+1];if(a===5&&b==="'"||a===6&&b==='"')return r++,m="\\"+b,p[0](),!0}for(;a!==null;)if(r++,c=e[r],!(c==="\\"&&y())){if(f=_n(c),h=Z[a],L=h[f]||h.l||8,L===8||(a=L[0],L[1]!==void 0&&(I=p[L[1]],I&&(m=c,I()===!1))))return;if(a===7)return t}}const we=new Map;function Nn(e,t){return F(e)?e[t]:null}function Zn(e,t){if(!F(e))return null;let r=we.get(t);if(r||(r=En(t),r&&we.set(t,r)),!r)return null;const a=r.length;let l=e,c=0;for(;c<a;){const _=l[r[c]];if(_===void 0||v(l))return null;l=_,c++}return l}const Ln=e=>e,pn=e=>"",Tn="text",hn=e=>e.length===0?"":Pt(e),An=Dt;function Fe(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Cn(e){const t=X(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(X(e.named.count)||X(e.named.n))?X(e.named.count)?e.named.count:X(e.named.n)?e.named.n:t:t}function On(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gn(e={}){const t=e.locale,r=Cn(e),a=F(e.pluralRules)&&S(t)&&v(e.pluralRules[t])?e.pluralRules[t]:Fe,l=F(e.pluralRules)&&S(t)&&v(e.pluralRules[t])?Fe:void 0,c=O=>O[a(r,O.length,l)],_=e.list||[],m=O=>_[O],f=e.named||{};X(e.pluralIndex)&&On(r,f);const L=O=>f[O];function I(O){const P=v(e.messages)?e.messages(O):F(e.messages)?e.messages[O]:!1;return P||(e.parent?e.parent.message(O):pn)}const h=O=>e.modifiers?e.modifiers[O]:Ln,p=U(e.processor)&&v(e.processor.normalize)?e.processor.normalize:hn,y=U(e.processor)&&v(e.processor.interpolate)?e.processor.interpolate:An,b=U(e.processor)&&S(e.processor.type)?e.processor.type:Tn,A={list:m,named:L,plural:c,linked:(O,...P)=>{const[i,o]=P;let E="text",d="";P.length===1?F(i)?(d=i.modifier||d,E=i.type||E):S(i)&&(d=i||d):P.length===2&&(S(i)&&(d=i||d),S(o)&&(E=o||E));const N=I(O)(A),C=E==="vnode"&&H(N)&&d?N[0]:N;return d?h(d)(C,E):C},message:I,type:b,interpolate:y,normalize:p,values:se({},_,f)};return A}let ae=null;function zn(e){ae=e}function In(e,t,r){ae&&ae.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const Sn=yn("function:translate");function yn(e){return t=>ae&&ae.emit(e,t)}const Je=he.__EXTEND_POINT__,ee=He(Je),er={NOT_FOUND_KEY:Je,FALLBACK_TO_TRANSLATE:ee(),CANNOT_FORMAT_NUMBER:ee(),FALLBACK_TO_NUMBER_FORMAT:ee(),CANNOT_FORMAT_DATE:ee(),FALLBACK_TO_DATE_FORMAT:ee(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ee(),__EXTEND_POINT__:ee()},Qe=g.__EXTEND_POINT__,te=He(Qe),B={INVALID_ARGUMENT:Qe,INVALID_DATE_ARGUMENT:te(),INVALID_ISO_DATE_ARGUMENT:te(),NOT_SUPPORT_NON_STRING_MESSAGE:te(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:te(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:te(),NOT_SUPPORT_LOCALE_TYPE:te(),__EXTEND_POINT__:te()};function J(e){return ce(e,null,void 0)}function Ce(e,t){return t.locale!=null?ve(t.locale):ve(e.locale)}let Ee;function ve(e){if(S(e))return e;if(v(e)){if(e.resolvedOnce&&Ee!=null)return Ee;if(e.constructor.name==="Function"){const t=e();if(bt(t))throw J(B.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ee=t}else throw J(B.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw J(B.NOT_SUPPORT_LOCALE_TYPE)}function bn(e,t,r){return[...new Set([r,...H(t)?t:F(t)?Object.keys(t):S(t)?[t]:[r]])]}function tr(e,t,r){const a=S(r)?r:Le,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let c=l.__localeChainCache.get(a);if(!c){c=[];let _=[r];for(;H(_);)_=We(c,_,t);const m=H(t)||!U(t)?t:t.default?t.default:null;_=S(m)?[m]:m,H(_)&&We(c,_,!1),l.__localeChainCache.set(a,c)}return c}function We(e,t,r){let a=!0;for(let l=0;l<t.length&&K(a);l++){const c=t[l];S(c)&&(a=Dn(e,t[l],r))}return a}function Dn(e,t,r){let a;const l=t.split("-");do{const c=l.join("-");a=Pn(e,c,r),l.splice(-1,1)}while(l.length&&a===!0);return a}function Pn(e,t,r){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const l=t.replace(/!/g,"");e.push(l),(H(r)||U(r))&&r[l]&&(a=r[l])}return a}const kn="9.13.1",Oe=-1,Le="en-US",nr="",$e=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Rn(){return{upper:(e,t)=>t==="text"&&S(e)?e.toUpperCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&S(e)?e.toLowerCase():t==="vnode"&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&S(e)?$e(e):t==="vnode"&&F(e)&&"__v_isVNode"in e?$e(e.children):e}}let qe;function rr(e){qe=e}let Ze;function sr(e){Ze=e}let ze;function ar(e){ze=e}let et=null;const lr=e=>{et=e},Mn=()=>et;let tt=null;const cr=e=>{tt=e},ir=()=>tt;let Ke=0;function or(e={}){const t=v(e.onWarn)?e.onWarn:kt,r=S(e.version)?e.version:kn,a=S(e.locale)||v(e.locale)?e.locale:Le,l=v(a)?Le:a,c=H(e.fallbackLocale)||U(e.fallbackLocale)||S(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l,_=U(e.messages)?e.messages:{[l]:{}},m=U(e.datetimeFormats)?e.datetimeFormats:{[l]:{}},f=U(e.numberFormats)?e.numberFormats:{[l]:{}},L=se({},e.modifiers||{},Rn()),I=e.pluralRules||{},h=v(e.missing)?e.missing:null,p=K(e.missingWarn)||be(e.missingWarn)?e.missingWarn:!0,y=K(e.fallbackWarn)||be(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,D=!!e.unresolving,A=v(e.postTranslation)?e.postTranslation:null,O=U(e.processor)?e.processor:null,P=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,i=!!e.escapeParameter,o=v(e.messageCompiler)?e.messageCompiler:qe,E=v(e.messageResolver)?e.messageResolver:Ze||Nn,d=v(e.localeFallbacker)?e.localeFallbacker:ze||bn,N=F(e.fallbackContext)?e.fallbackContext:void 0,C=e,R=F(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,W=F(C.__numberFormatters)?C.__numberFormatters:new Map,j=F(C.__meta)?C.__meta:{};Ke++;const k={version:r,cid:Ke,locale:a,fallbackLocale:c,messages:_,modifiers:L,pluralRules:I,missing:h,missingWarn:p,fallbackWarn:y,fallbackFormat:b,unresolving:D,postTranslation:A,processor:O,warnHtmlMessage:P,escapeParameter:i,messageCompiler:o,messageResolver:E,localeFallbacker:d,fallbackContext:N,onWarn:t,__meta:j};return k.datetimeFormats=m,k.numberFormats=f,k.__datetimeFormatters=R,k.__numberFormatters=W,__INTLIFY_PROD_DEVTOOLS__&&In(k,r,j),k}function ge(e,t,r,a,l){const{missing:c,onWarn:_}=e;if(c!==null){const m=c(e,r,t,l);return S(m)?m:t}else return t}function ur(e,t,r){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function Un(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function wn(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let a=r+1;a<t.length;a++)if(Un(e,t[a]))return!0;return!1}function Ne(e){return r=>Fn(r,e)}function Fn(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const a=r,l=a.c||a.cases;return e.plural(l.reduce((c,_)=>[...c,Xe(e,_)],[]))}else return Xe(e,r)}function Xe(e,t){const r=t.s||t.static;if(r)return e.type==="text"?r:e.normalize([r]);{const a=(t.i||t.items).reduce((l,c)=>[...l,pe(e,c)],[]);return e.normalize(a)}}function pe(e,t){const r=t.t||t.type;switch(r){case 3:{const a=t;return a.v||a.value}case 9:{const a=t;return a.v||a.value}case 4:{const a=t;return e.interpolate(e.named(a.k||a.key))}case 5:{const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index))}case 6:{const a=t,l=a.m||a.modifier;return e.linked(pe(e,a.k||a.key),l?pe(e,l):void 0,e.type)}case 7:{const a=t;return a.v||a.value}case 8:{const a=t;return a.v||a.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const vn=e=>e;let ue=Object.create(null);const le=e=>F(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Wn(e,t={}){let r=!1;const a=t.onError||Wt;return t.onError=l=>{r=!0,a(l)},{...cn(e,t),detectError:r}}function fr(e,t){if(S(e)){K(t.warnHtmlMessage)&&t.warnHtmlMessage;const a=(t.onCacheKey||vn)(e),l=ue[a];if(l)return l;const{ast:c,detectError:_}=Wn(e,{...t,location:!1,jit:!0}),m=Ne(c);return _?m:ue[a]=m}else{const r=e.cacheKey;if(r){const a=ue[r];return a||(ue[r]=Ne(e))}else return Ne(e)}}const Ye=()=>"",V=e=>v(e);function dr(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:l,messageCompiler:c,fallbackLocale:_,messages:m}=e,[f,L]=Xn(...t),I=K(L.missingWarn)?L.missingWarn:e.missingWarn,h=K(L.fallbackWarn)?L.fallbackWarn:e.fallbackWarn,p=K(L.escapeParameter)?L.escapeParameter:e.escapeParameter,y=!!L.resolvedMessage,b=S(L.default)||K(L.default)?K(L.default)?c?f:()=>f:L.default:r?c?f:()=>f:"",D=r||b!=="",A=Ce(e,L);p&&$n(L);let[O,P,i]=y?[f,A,m[A]||{}]:nt(e,f,A,_,h,I),o=O,E=f;if(!y&&!(S(o)||le(o)||V(o))&&D&&(o=b,E=o),!y&&(!(S(o)||le(o)||V(o))||!S(P)))return l?Oe:f;let d=!1;const N=()=>{d=!0},C=V(o)?o:rt(e,f,P,o,E,N);if(d)return o;const R=Gn(e,P,i,L),W=gn(R),j=Kn(e,C,W),k=a?a(j,f):j;if(__INTLIFY_PROD_DEVTOOLS__){const Y={timestamp:Date.now(),key:S(f)?f:V(o)?o.key:"",locale:P||(V(o)?o.locale:""),format:S(o)?o:V(o)?o.source:"",message:k};Y.meta=se({},e.__meta,Mn()||{}),Sn(Y)}return k}function $n(e){H(e.list)?e.list=e.list.map(t=>S(t)?Pe(t):t):F(e.named)&&Object.keys(e.named).forEach(t=>{S(e.named[t])&&(e.named[t]=Pe(e.named[t]))})}function nt(e,t,r,a,l,c){const{messages:_,onWarn:m,messageResolver:f,localeFallbacker:L}=e,I=L(e,a,r);let h={},p,y=null;const b="translate";for(let D=0;D<I.length&&(p=I[D],h=_[p]||{},(y=f(h,t))===null&&(y=h[t]),!(S(y)||le(y)||V(y)));D++)if(!wn(p,I)){const A=ge(e,t,p,c,b);A!==t&&(y=A)}return[y,p,h]}function rt(e,t,r,a,l,c){const{messageCompiler:_,warnHtmlMessage:m}=e;if(V(a)){const L=a;return L.locale=L.locale||r,L.key=L.key||t,L}if(_==null){const L=()=>a;return L.locale=r,L.key=t,L}const f=_(a,Yn(e,r,l,a,m,c));return f.locale=r,f.key=t,f.source=a,f}function Kn(e,t,r){return t(r)}function Xn(...e){const[t,r,a]=e,l={};if(!S(t)&&!X(t)&&!V(t)&&!le(t))throw J(B.INVALID_ARGUMENT);const c=X(t)?String(t):(V(t),t);return X(r)?l.plural=r:S(r)?l.default=r:U(r)&&!Te(r)?l.named=r:H(r)&&(l.list=r),X(a)?l.plural=a:S(a)?l.default=a:U(a)&&se(l,a),[c,l]}function Yn(e,t,r,a,l,c){return{locale:t,key:r,warnHtmlMessage:l,onError:_=>{throw c&&c(_),_},onCacheKey:_=>Ot(t,r,_)}}function Gn(e,t,r,a){const{modifiers:l,pluralRules:c,messageResolver:_,fallbackLocale:m,fallbackWarn:f,missingWarn:L,fallbackContext:I}=e,p={locale:t,modifiers:l,pluralRules:c,messages:y=>{let b=_(r,y);if(b==null&&I){const[,,D]=nt(I,y,t,m,f,L);b=_(D,y)}if(S(b)||le(b)){let D=!1;const O=rt(e,y,t,b,y,()=>{D=!0});return D?Ye:O}else return V(b)?b:Ye}};return e.processor&&(p.processor=e.processor),a.list&&(p.list=a.list),a.named&&(p.named=a.named),X(a.plural)&&(p.pluralIndex=a.plural),p}function _r(e,...t){const{datetimeFormats:r,unresolving:a,fallbackLocale:l,onWarn:c,localeFallbacker:_}=e,{__datetimeFormatters:m}=e,[f,L,I,h]=Hn(...t),p=K(I.missingWarn)?I.missingWarn:e.missingWarn;K(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn;const y=!!I.part,b=Ce(e,I),D=_(e,l,b);if(!S(f)||f==="")return new Intl.DateTimeFormat(b,h).format(L);let A={},O,P=null;const i="datetime format";for(let d=0;d<D.length&&(O=D[d],A=r[O]||{},P=A[f],!U(P));d++)ge(e,f,O,p,i);if(!U(P)||!S(O))return a?Oe:f;let o=`${O}__${f}`;Te(h)||(o=`${o}__${JSON.stringify(h)}`);let E=m.get(o);return E||(E=new Intl.DateTimeFormat(O,se({},P,h)),m.set(o,E)),y?E.formatToParts(L):E.format(L)}const Vn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Hn(...e){const[t,r,a,l]=e,c={};let _={},m;if(S(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw J(B.INVALID_ISO_DATE_ARGUMENT);const L=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();m=new Date(L);try{m.toISOString()}catch{throw J(B.INVALID_ISO_DATE_ARGUMENT)}}else if(It(t)){if(isNaN(t.getTime()))throw J(B.INVALID_DATE_ARGUMENT);m=t}else if(X(t))m=t;else throw J(B.INVALID_ARGUMENT);return S(r)?c.key=r:U(r)&&Object.keys(r).forEach(f=>{Vn.includes(f)?_[f]=r[f]:c[f]=r[f]}),S(a)?c.locale=a:U(a)&&(_=a),U(l)&&(_=l),[c.key||"",m,c,_]}function mr(e,t,r){const a=e;for(const l in r){const c=`${t}__${l}`;a.__datetimeFormatters.has(c)&&a.__datetimeFormatters.delete(c)}}function Er(e,...t){const{numberFormats:r,unresolving:a,fallbackLocale:l,onWarn:c,localeFallbacker:_}=e,{__numberFormatters:m}=e,[f,L,I,h]=xn(...t),p=K(I.missingWarn)?I.missingWarn:e.missingWarn;K(I.fallbackWarn)?I.fallbackWarn:e.fallbackWarn;const y=!!I.part,b=Ce(e,I),D=_(e,l,b);if(!S(f)||f==="")return new Intl.NumberFormat(b,h).format(L);let A={},O,P=null;const i="number format";for(let d=0;d<D.length&&(O=D[d],A=r[O]||{},P=A[f],!U(P));d++)ge(e,f,O,p,i);if(!U(P)||!S(O))return a?Oe:f;let o=`${O}__${f}`;Te(h)||(o=`${o}__${JSON.stringify(h)}`);let E=m.get(o);return E||(E=new Intl.NumberFormat(O,se({},P,h)),m.set(o,E)),y?E.formatToParts(L):E.format(L)}const jn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function xn(...e){const[t,r,a,l]=e,c={};let _={};if(!X(t))throw J(B.INVALID_ARGUMENT);const m=t;return S(r)?c.key=r:U(r)&&Object.keys(r).forEach(f=>{jn.includes(f)?_[f]=r[f]:c[f]=r[f]}),S(a)?c.locale=a:U(a)&&(_=a),U(l)&&(_=l),[c.key||"",m,c,_]}function Nr(e,t,r){const a=e;for(const l in r){const c=`${t}__${l}`;a.__numberFormatters.has(c)&&a.__numberFormatters.delete(c)}}on();export{Xn as A,dr as B,B as C,Le as D,Hn as E,_r as F,xn as G,Er as H,le as I,V as J,tr as K,rr as L,nr as M,jn as N,sr as O,ar as P,er as Q,cr as R,fr as S,Zn as T,se as a,S as b,F as c,K as d,ce as e,H as f,St as g,U as h,X as i,be as j,v as k,Bn as l,Jn as m,Vn as n,Te as o,qn as p,Qn as q,or as r,zn as s,mr as t,ur as u,Nr as v,He as w,lr as x,ir as y,Oe as z};
@@ -0,0 +1 @@
1
+ var H="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M16.5,16.25C16.5,14.75 13.5,14 12,14C10.5,14 7.5,14.75 7.5,16.25V17H16.5M12,12.25A2.25,2.25 0 0,0 14.25,10A2.25,2.25 0 0,0 12,7.75A2.25,2.25 0 0,0 9.75,10A2.25,2.25 0 0,0 12,12.25Z",V="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",L="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z",C="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",M="M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z",a="M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",A="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z",i="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21",r="M3 16C3 18.8 5.2 21 8 21H10V19H8C6.3 19 5 17.7 5 16V14H3V16M21 8C21 5.2 18.8 3 16 3H14V5H16C17.7 5 19 6.3 19 8V10H21V8M16 21C18.8 21 21 18.8 21 16V14H19V16C19 17.7 17.7 19 16 19H14V21H16M8 3C5.2 3 3 5.2 3 8V10H5V8C5 6.3 6.3 5 8 5H10V3H8Z",s="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",d="M20,4H16.83L15,2H9L7.17,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6A2,2 0 0,0 20,4M20,18H4V6H8.05L9.88,4H14.12L15.95,6H20V18M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15Z",e="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",m="M21 15V18H24V20H21V23H19V20H16V18H19V15H21M14 18H3V6H19V13H21V6C21 4.89 20.11 4 19 4H3C1.9 4 1 4.89 1 6V18C1 19.11 1.9 20 3 20H14V18Z",v="M14.5 12C14.5 10.62 13.38 9.5 12 9.5C10.62 9.5 9.5 10.62 9.5 12C9.5 13 10.09 13.84 10.93 14.25L9.82 15.35C8.73 14.64 8 13.41 8 12C8 9.79 9.79 8 12 8C14.21 8 16 9.79 16 12C16 13.41 15.27 14.64 14.18 15.35L13.08 14.25C13.92 13.84 14.5 13 14.5 12M12 2C6.5 2 2 6.5 2 12C2 15.06 3.38 17.8 5.54 19.63L6.61 18.57C4.71 17 3.5 14.64 3.5 12C3.5 7.31 7.31 3.5 12 3.5C16.69 3.5 20.5 7.31 20.5 12C20.5 14.64 19.29 17 17.39 18.57L18.46 19.63C20.62 17.79 22 15.06 22 12C22 6.5 17.5 2 12 2M19 12C19 8.13 15.87 5 12 5C8.13 5 5 8.13 5 12C5 14.23 6.05 16.22 7.68 17.5L8.75 16.43C7.39 15.42 6.5 13.82 6.5 12C6.5 8.97 8.97 6.5 12 6.5C15.03 6.5 17.5 8.97 17.5 12C17.5 13.82 16.61 15.42 15.25 16.43L16.33 17.5C17.95 16.22 19 14.23 19 12M6 22H18L12 16L6 22Z",Z="M6.03 12.03L8.03 15.5L5.5 18.68L2 12.62L6.03 12.03M17 18V15.29C17.88 14.9 18.5 14.03 18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L8.31 9C7.36 9.53 7.03 10.75 7.58 11.71L9.08 14.31C9.63 15.26 10.86 15.59 11.81 15.04L13.69 13.96C13.94 14.55 14.41 15.03 15 15.29V18C15 19.1 15.9 20 17 20H22V18H17Z",n="M20.84 22.73L18.11 20H17C15.9 20 15 19.1 15 18V16.89L12.66 14.55L11.81 15.04C10.86 15.59 9.63 15.26 9.08 14.31L7.58 11.71C7.18 11 7.25 10.18 7.68 9.57L1.11 3L2.39 1.73L22.11 21.46L20.84 22.73M18.5 13C18.5 12.43 18.3 11.9 17.97 11.5L19.94 10.35C20.95 9.76 21.3 8.47 20.71 7.46L19.33 5.06C18.74 4.05 17.45 3.7 16.44 4.28L10.77 7.57L17.86 14.66C18.26 14.22 18.5 13.64 18.5 13M2 12.62L5.5 18.68L8.03 15.5L6.03 12.03L2 12.62Z",l="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",o="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",t="M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V5H19V19M17,17H7V7H17V17Z",c="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",u="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",S="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",f="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",h="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z",g="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",O="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",p="M11 20H6.5Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13V12.85L14.6 14.4L16 13L12 9L8 13L9.4 14.4L11 12.85Z",P="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",R="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z",y="M20,19V7H4V19H20M20,3A2,2 0 0,1 22,5V19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19V5C2,3.89 2.9,3 4,3H20M13,17V15H18V17H13M9.58,13L5.57,9H8.4L11.7,12.3C12.09,12.69 12.09,13.33 11.7,13.72L8.42,17H5.59L9.58,13Z",k="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",w="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",B="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",U="M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z",D="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",I="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",T="M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14M11.5,3C14.15,3 16.55,4 18.4,5.6L21,3V10H14L16.62,7.38C15.23,6.22 13.46,5.5 11.5,5.5C7.96,5.5 4.95,7.81 3.9,11L1.53,10.22C2.92,6.03 6.85,3 11.5,3Z",x="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",E="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",b="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",F="M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2M4,4V11H11V4H4M4,20H11V13H4V20M20,20V13H13V20H20M20,4H13V11H20V4Z",z="M22,16V4A2,2 0 0,0 20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16M11,12L13.03,14.71L16,11L20,16H8M2,6V20A2,2 0 0,0 4,22H18V20H4V6",G="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",W="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",N="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",j="M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z",q="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",Q="M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z",J="M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z",K="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",X="M19,11C19,12.19 18.66,13.3 18.1,14.28L16.87,13.05C17.14,12.43 17.3,11.74 17.3,11H19M15,11.16L9,5.18V5A3,3 0 0,1 12,2A3,3 0 0,1 15,5V11L15,11.16M4.27,3L21,19.73L19.73,21L15.54,16.81C14.77,17.27 13.91,17.58 13,17.72V21H11V17.72C7.72,17.23 5,14.41 5,11H6.7C6.7,14 9.24,16.1 12,16.1C12.81,16.1 13.6,15.91 14.31,15.58L12.65,13.92L12,14A3,3 0 0,1 9,11V10.28L3,4.27L4.27,3Z",Y="M19,13H5V11H19V13Z",_="M21,16V4H3V16H21M21,2A2,2 0 0,1 23,4V16A2,2 0 0,1 21,18H14V20H16V22H8V20H10V18H3C1.89,18 1,17.1 1,16V4C1,2.89 1.89,2 3,2H21M5,6H14V11H5V6M15,6H19V8H15V6M19,9V14H15V9H19M5,12H9V14H5V12M10,12H14V14H10V12Z",$="M2 12A10 10 0 0 0 15 21.54A10 10 0 0 1 15 2.46A10 10 0 0 0 2 12Z",H1="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",V1="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",L1="M14,19H18V5H14M6,19H10V5H6V19Z",C1="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",M1="M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z",a1="M19,11H11V17H19V11M23,19V5C23,3.88 22.1,3 21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19M21,19H3V4.97H21V19Z",A1="M8,5.14V19.14L19,12.14L8,5.14Z",i1="M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",r1="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",s1="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",d1="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",e1="M20.5,11H19V7C19,5.89 18.1,5 17,5H13V3.5A2.5,2.5 0 0,0 10.5,1A2.5,2.5 0 0,0 8,3.5V5H4A2,2 0 0,0 2,7V10.8H3.5C5,10.8 6.2,12 6.2,13.5C6.2,15 5,16.2 3.5,16.2H2V20A2,2 0 0,0 4,22H7.8V20.5C7.8,19 9,17.8 10.5,17.8C12,17.8 13.2,19 13.2,20.5V22H17A2,2 0 0,0 19,20V16H20.5A2.5,2.5 0 0,0 23,13.5A2.5,2.5 0 0,0 20.5,11Z",m1="M4,6V19H20V6H4Z",v1="M4,6V19H20V6H4M18,17H6V8H18V17Z",Z1="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",n1="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",l1="M12.5,3C17.15,3 21.08,6.03 22.47,10.22L20.1,11C19.05,7.81 16.04,5.5 12.5,5.5C10.54,5.5 8.77,6.22 7.38,7.38L10,10H3V3L5.6,5.6C7.45,4 9.85,3 12.5,3M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14Z",o1="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z",t1="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M9,9H15V15H9",c1="M20 2H4C2.9 2 2 2.9 2 4V16C2 17.11 2.9 18 4 18H8L12 22L16 18H20C21.11 18 22 17.11 22 16V4C22 2.9 21.11 2 20 2M10.46 14L6.96 10.5L8.37 9.08L10.46 11.17L15.64 6L17.05 7.41L10.46 14Z",u1="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M11,6V9H8V11H11V14H13V11H16V9H13V6H11Z",S1="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",f1="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",h1="M8 13C6.14 13 4.59 14.28 4.14 16H2V18H4.14C4.59 19.72 6.14 21 8 21S11.41 19.72 11.86 18H22V16H11.86C11.41 14.28 9.86 13 8 13M8 19C6.9 19 6 18.1 6 17C6 15.9 6.9 15 8 15S10 15.9 10 17C10 18.1 9.1 19 8 19M19.86 6C19.41 4.28 17.86 3 16 3S12.59 4.28 12.14 6H2V8H12.14C12.59 9.72 14.14 11 16 11S19.41 9.72 19.86 8H22V6H19.86M16 9C14.9 9 14 8.1 14 7C14 5.9 14.9 5 16 5S18 5.9 18 7C18 8.1 17.1 9 16 9Z",g1="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",O1="M5.41,7.41L10,12L5.41,16.59L4,15.17L7.17,12L4,8.83L5.41,7.41M18.59,16.59L14,12L18.59,7.42L20,8.83L16.83,12L20,15.17L18.59,16.59Z",p1="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",P1="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",R1="M3.14,1A2.14,2.14 0 0,0 1,3.14V5H3V3H5V1H3.14M7,1V3H10V1H7M12,1V3H14V5H16V3.14C16,1.96 15.04,1 13.86,1H12M1,7V10H3V7H1M9,7C7.89,7 7,7.89 7,9C7,11.33 7,16 7,16C7,16 11.57,16 13.86,16A2.14,2.14 0 0,0 16,13.86C16,11.57 16,7 16,7C16,7 11.33,7 9,7M18,7V9H20V11H22V9C22,7.89 21.11,7 20,7H18M9,9H14V14H9V9M1,12V13.86C1,15.04 1.96,16 3.14,16H5V14H3V12H1M20,13V16H22V13H20M7,18V20C7,21.11 7.89,22 9,22H11V20H9V18H7M20,18V20H18V22H20C21.11,22 22,21.11 22,20V18H20M13,20V22H16V20H13Z",y1="M2,4H8V6H16V4H22V10H20V14H22V20H16V18H8V20H2V14H4V10H2V4M16,10V8H8V10H6V14H8V16H16V14H18V10H16M4,6V8H6V6H4M18,6V8H20V6H18M4,16V18H6V16H4M18,16V18H20V16H18Z",k1="M13 3V11H21V3H13M3 21H11V13H3V21M3 3V11H11V3H3M13 16H16V13H18V16H21V18H18V21H16V18H13V16Z",w1="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",B1="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",U1="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",D1="M2.28,3L1,4.27L2.47,5.74C2.04,6 1.61,6.29 1.2,6.6L3,9C3.53,8.6 4.08,8.25 4.66,7.93L6.89,10.16C6.15,10.5 5.44,10.91 4.8,11.4L6.6,13.8C7.38,13.22 8.26,12.77 9.2,12.47L11.75,15C10.5,15.07 9.34,15.5 8.4,16.2L12,21L14.46,17.73L17.74,21L19,19.72M12,3C9.85,3 7.8,3.38 5.9,4.07L8.29,6.47C9.5,6.16 10.72,6 12,6C15.38,6 18.5,7.11 21,9L22.8,6.6C19.79,4.34 16.06,3 12,3M12,9C11.62,9 11.25,9 10.88,9.05L14.07,12.25C15.29,12.53 16.43,13.07 17.4,13.8L19.2,11.4C17.2,9.89 14.7,9 12,9Z";export{l as $,O1 as A,p1 as B,u as C,D1 as D,o1 as E,f as F,c as G,S as H,Q as I,J,K,U as L,o as M,r1 as N,W as O,N as P,B1 as Q,w1 as R,E as S,x as T,k as U,C1 as V,m as W,k1 as X,O as Y,s as Z,G as _,D as a,B as a0,w as a1,q as a2,S1 as a3,g1 as a4,e as a5,n as a6,m1 as a7,v1 as a8,R1 as a9,t as aa,R as ab,h1 as ac,V1 as ad,l1 as ae,L1 as af,A1 as ag,T as ah,X as ai,v as aj,M as ak,a1 as al,h as am,d as an,r as ao,H as ap,y1 as aq,c1 as ar,u1 as as,a as at,n1 as au,P1 as av,i1 as aw,t1 as ax,p as ay,b,Z as c,F as d,s1 as e,z as f,H1 as g,y as h,e1 as i,_ as j,P as k,L as l,I as m,M1 as n,C as o,A as p,f1 as q,d1 as r,g as s,i as t,$ as u,U1 as v,V as w,Z1 as x,j as y,Y as z};