c0ckp1t 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (676) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/c0ckp1t-demo/Constants.mjs +125 -0
  4. package/c0ckp1t-demo/components/sidebar.vue +82 -0
  5. package/c0ckp1t-demo/main.vue +39 -0
  6. package/c0ckp1t-demo/pages/devices.vue +63 -0
  7. package/c0ckp1t-demo/pages/homepage.vue +63 -0
  8. package/c0ckp1t-demo/pages/report.vue +63 -0
  9. package/c0ckp1t-demo/store.mjs +133 -0
  10. package/components/ExecButton.vue +62 -0
  11. package/components/FsTree.vue +550 -0
  12. package/components/Markdown.mjs +274 -0
  13. package/components/MarkdownUtils.mjs +180 -0
  14. package/components/Tree.mjs +175 -0
  15. package/components/code-mirror.vue +445 -0
  16. package/components/vue3-ace-editor.vue +331 -0
  17. package/components/xbutton.vue +45 -0
  18. package/components/xcard-h.vue +175 -0
  19. package/components/xcard.vue +76 -0
  20. package/components/xcheck.vue +35 -0
  21. package/components/xcheckbox.vue +52 -0
  22. package/components/xcode.vue +139 -0
  23. package/components/xcollapse.vue +52 -0
  24. package/components/xcolor.vue +84 -0
  25. package/components/xdropdown.vue +104 -0
  26. package/components/xdropdown2.vue +140 -0
  27. package/components/xhidden.vue +30 -0
  28. package/components/xinput.vue +101 -0
  29. package/components/xinput2.vue +101 -0
  30. package/components/xjson.vue +95 -0
  31. package/components/xkv.vue +41 -0
  32. package/components/xlabel.vue +56 -0
  33. package/components/xlist.vue +83 -0
  34. package/components/xmap.vue +106 -0
  35. package/components/xmarkdown.vue +269 -0
  36. package/components/xnav.vue +98 -0
  37. package/components/xsection.vue +164 -0
  38. package/components/xsound.vue +251 -0
  39. package/components/xtable-open.vue +179 -0
  40. package/components/xtabs.vue +72 -0
  41. package/components/xterminal.vue +456 -0
  42. package/components/xtextarea.vue +83 -0
  43. package/components/xtoggle.vue +68 -0
  44. package/components/xtoggle3.vue +67 -0
  45. package/components/xtree.vue +140 -0
  46. package/components/xupload.vue +129 -0
  47. package/core/Content.mjs +92 -0
  48. package/core/DocUtils.mjs +189 -0
  49. package/core/GlobalStore.mjs +329 -0
  50. package/core/Island.mjs +429 -0
  51. package/core/IslandDefault.mjs +229 -0
  52. package/core/JsUtils.mjs +483 -0
  53. package/core/Logging.mjs +59 -0
  54. package/core/Page404.vue +152 -0
  55. package/core/PageFallback.vue +168 -0
  56. package/core/PageMain.vue +181 -0
  57. package/core/Theme.mjs +1759 -0
  58. package/core/VueUtils.mjs +200 -0
  59. package/core/WsUtils.mjs +274 -0
  60. package/core/img/Flag_of_the_United_States.svg +25 -0
  61. package/core/img/logo_v1.svg +98 -0
  62. package/core/img/logo_v2.svg +98 -0
  63. package/core/img/state-uniqueId-8k.wav +0 -0
  64. package/core/main-offcanvas.vue +99 -0
  65. package/core/nodes/_api.vue +82 -0
  66. package/core/nodes/node-container.vue +103 -0
  67. package/core/nodes/node.vue +246 -0
  68. package/core/nodes/place-holder.vue +47 -0
  69. package/core/nodes/root.vue +52 -0
  70. package/core/notify/NotifyUtils.mjs +150 -0
  71. package/core/notify/toast.vue +150 -0
  72. package/core/pages/About.vue +57 -0
  73. package/core/pages/Cache.vue +155 -0
  74. package/core/pages/Connection.vue +192 -0
  75. package/core/pages/Connections.vue +102 -0
  76. package/core/pages/Documentation.vue +263 -0
  77. package/core/pages/Notifies.vue +156 -0
  78. package/core/pages/Traffic.vue +152 -0
  79. package/core/pages/connections/connection-header-details.vue +80 -0
  80. package/core/pages/connections/page-connection-default.vue +92 -0
  81. package/core/pages/connections/page-connection.vue +176 -0
  82. package/core/pages/connections/ws-connection.vue +146 -0
  83. package/core/pages/frontend/Bootstrap.vue +1140 -0
  84. package/core/pages/frontend/Components.vue +56 -0
  85. package/core/pages/frontend/ComponentsAdv.vue +203 -0
  86. package/core/pages/frontend/ComponentsBasic.vue +336 -0
  87. package/core/pages/frontend/Theme.vue +473 -0
  88. package/core/pages/frontend/component-view.vue +65 -0
  89. package/core/pages/traffic/WsLogUtils.mjs +91 -0
  90. package/core/pages/traffic/log-ws-exec.vue +124 -0
  91. package/core/pages/traffic/log-ws-exec2.vue +129 -0
  92. package/core/sfc/code-item.vue +169 -0
  93. package/core/sfc/connection-header.vue +62 -0
  94. package/core/sfc/info-api.vue +158 -0
  95. package/core/sfc/md-toc.vue +346 -0
  96. package/core/sfc/scroll-to-top.vue +69 -0
  97. package/core/sfc/task.vue +98 -0
  98. package/core/sfc/text-to-md.vue +25 -0
  99. package/core/sfc/toc-list.vue +175 -0
  100. package/core/ws-client/AuthNState.mjs +84 -0
  101. package/core/ws-client/Connection.mjs +580 -0
  102. package/core/ws-client/Session.mjs +72 -0
  103. package/core/ws-client/WsClient.mjs +230 -0
  104. package/core/ws-client/WsLogUtils.mjs +91 -0
  105. package/core/ws-client/ws-connection.vue +144 -0
  106. package/css/Changa-Medium.ttf +0 -0
  107. package/css/Makefile +10 -0
  108. package/css/README.md +25 -0
  109. package/css/bootstrap-c0ckp1t.css +11861 -0
  110. package/css/bootstrap.min.css +6 -0
  111. package/css/fontawesome/brands.min.css +6 -0
  112. package/css/fontawesome/fontawesome.min.css +8 -0
  113. package/css/fontawesome/regular.min.css +6 -0
  114. package/css/fontawesome/solid.min.css +6 -0
  115. package/css/webfonts/fa-brands-400.woff2 +0 -0
  116. package/css/webfonts/fa-regular-400.woff2 +0 -0
  117. package/css/webfonts/fa-solid-900.woff2 +0 -0
  118. package/docs/Introduction.md +3 -0
  119. package/favicon-192x192.png +0 -0
  120. package/favicon-32x32.png +0 -0
  121. package/favicon-64x64.png +0 -0
  122. package/favicon.ico +0 -0
  123. package/index-cdn.html +66 -0
  124. package/js_ext/Makefile +26 -0
  125. package/js_ext/ace-editor/ace.js +22037 -0
  126. package/js_ext/ace-editor/ext-beautify.js +343 -0
  127. package/js_ext/ace-editor/ext-code_lens.js +204 -0
  128. package/js_ext/ace-editor/ext-command_bar.js +469 -0
  129. package/js_ext/ace-editor/ext-diff.js +4265 -0
  130. package/js_ext/ace-editor/ext-elastic_tabstops_lite.js +238 -0
  131. package/js_ext/ace-editor/ext-emmet.js +1303 -0
  132. package/js_ext/ace-editor/ext-error_marker.js +9 -0
  133. package/js_ext/ace-editor/ext-hardwrap.js +127 -0
  134. package/js_ext/ace-editor/ext-inline_autocomplete.js +3547 -0
  135. package/js_ext/ace-editor/ext-keybinding_menu.js +185 -0
  136. package/js_ext/ace-editor/ext-language_tools.js +2724 -0
  137. package/js_ext/ace-editor/ext-linking.js +66 -0
  138. package/js_ext/ace-editor/ext-modelist.js +276 -0
  139. package/js_ext/ace-editor/ext-options.js +859 -0
  140. package/js_ext/ace-editor/ext-prompt.js +3161 -0
  141. package/js_ext/ace-editor/ext-rtl.js +146 -0
  142. package/js_ext/ace-editor/ext-searchbox.js +385 -0
  143. package/js_ext/ace-editor/ext-settings_menu.js +859 -0
  144. package/js_ext/ace-editor/ext-simple_tokenizer.js +137 -0
  145. package/js_ext/ace-editor/ext-spellcheck.js +79 -0
  146. package/js_ext/ace-editor/ext-split.js +203 -0
  147. package/js_ext/ace-editor/ext-static_highlight.js +194 -0
  148. package/js_ext/ace-editor/ext-statusbar.js +63 -0
  149. package/js_ext/ace-editor/ext-textarea.js +400 -0
  150. package/js_ext/ace-editor/ext-themelist.js +80 -0
  151. package/js_ext/ace-editor/ext-whitespace.js +201 -0
  152. package/js_ext/ace-editor/keybinding-emacs.js +1067 -0
  153. package/js_ext/ace-editor/keybinding-sublime.js +409 -0
  154. package/js_ext/ace-editor/keybinding-vim.js +7101 -0
  155. package/js_ext/ace-editor/keybinding-vscode.js +255 -0
  156. package/js_ext/ace-editor/mode-abap.js +200 -0
  157. package/js_ext/ace-editor/mode-abc.js +243 -0
  158. package/js_ext/ace-editor/mode-actionscript.js +234 -0
  159. package/js_ext/ace-editor/mode-ada.js +108 -0
  160. package/js_ext/ace-editor/mode-alda.js +279 -0
  161. package/js_ext/ace-editor/mode-apache_conf.js +318 -0
  162. package/js_ext/ace-editor/mode-apex.js +402 -0
  163. package/js_ext/ace-editor/mode-applescript.js +232 -0
  164. package/js_ext/ace-editor/mode-aql.js +92 -0
  165. package/js_ext/ace-editor/mode-asciidoc.js +311 -0
  166. package/js_ext/ace-editor/mode-asl.js +357 -0
  167. package/js_ext/ace-editor/mode-assembly_arm32.js +185 -0
  168. package/js_ext/ace-editor/mode-assembly_x86.js +170 -0
  169. package/js_ext/ace-editor/mode-astro.js +2474 -0
  170. package/js_ext/ace-editor/mode-autohotkey.js +208 -0
  171. package/js_ext/ace-editor/mode-basic.js +201 -0
  172. package/js_ext/ace-editor/mode-batchfile.js +199 -0
  173. package/js_ext/ace-editor/mode-bibtex.js +318 -0
  174. package/js_ext/ace-editor/mode-c9search.js +250 -0
  175. package/js_ext/ace-editor/mode-c_cpp.js +417 -0
  176. package/js_ext/ace-editor/mode-cirru.js +192 -0
  177. package/js_ext/ace-editor/mode-clojure.js +322 -0
  178. package/js_ext/ace-editor/mode-clue.js +361 -0
  179. package/js_ext/ace-editor/mode-cobol.js +82 -0
  180. package/js_ext/ace-editor/mode-coffee.js +335 -0
  181. package/js_ext/ace-editor/mode-coldfusion.js +2409 -0
  182. package/js_ext/ace-editor/mode-crystal.js +586 -0
  183. package/js_ext/ace-editor/mode-csharp.js +413 -0
  184. package/js_ext/ace-editor/mode-csound_document.js +4072 -0
  185. package/js_ext/ace-editor/mode-csound_orchestra.js +2923 -0
  186. package/js_ext/ace-editor/mode-csound_score.js +409 -0
  187. package/js_ext/ace-editor/mode-csp.js +59 -0
  188. package/js_ext/ace-editor/mode-css.js +632 -0
  189. package/js_ext/ace-editor/mode-csv.js +97 -0
  190. package/js_ext/ace-editor/mode-curly.js +2381 -0
  191. package/js_ext/ace-editor/mode-cuttlefish.js +56 -0
  192. package/js_ext/ace-editor/mode-d.js +450 -0
  193. package/js_ext/ace-editor/mode-dart.js +618 -0
  194. package/js_ext/ace-editor/mode-diff.js +129 -0
  195. package/js_ext/ace-editor/mode-django.js +2422 -0
  196. package/js_ext/ace-editor/mode-dockerfile.js +427 -0
  197. package/js_ext/ace-editor/mode-dot.js +348 -0
  198. package/js_ext/ace-editor/mode-drools.js +607 -0
  199. package/js_ext/ace-editor/mode-edifact.js +130 -0
  200. package/js_ext/ace-editor/mode-eiffel.js +120 -0
  201. package/js_ext/ace-editor/mode-ejs.js +3277 -0
  202. package/js_ext/ace-editor/mode-elixir.js +443 -0
  203. package/js_ext/ace-editor/mode-elm.js +274 -0
  204. package/js_ext/ace-editor/mode-erlang.js +836 -0
  205. package/js_ext/ace-editor/mode-flix.js +164 -0
  206. package/js_ext/ace-editor/mode-forth.js +253 -0
  207. package/js_ext/ace-editor/mode-fortran.js +361 -0
  208. package/js_ext/ace-editor/mode-fsharp.js +277 -0
  209. package/js_ext/ace-editor/mode-fsl.js +226 -0
  210. package/js_ext/ace-editor/mode-ftl.js +1255 -0
  211. package/js_ext/ace-editor/mode-gcode.js +74 -0
  212. package/js_ext/ace-editor/mode-gherkin.js +154 -0
  213. package/js_ext/ace-editor/mode-gitignore.js +49 -0
  214. package/js_ext/ace-editor/mode-glsl.js +475 -0
  215. package/js_ext/ace-editor/mode-gobstones.js +1459 -0
  216. package/js_ext/ace-editor/mode-golang.js +341 -0
  217. package/js_ext/ace-editor/mode-graphqlschema.js +174 -0
  218. package/js_ext/ace-editor/mode-groovy.js +1401 -0
  219. package/js_ext/ace-editor/mode-haml.js +1906 -0
  220. package/js_ext/ace-editor/mode-handlebars.js +2438 -0
  221. package/js_ext/ace-editor/mode-haskell.js +324 -0
  222. package/js_ext/ace-editor/mode-haskell_cabal.js +135 -0
  223. package/js_ext/ace-editor/mode-haxe.js +313 -0
  224. package/js_ext/ace-editor/mode-hjson.js +318 -0
  225. package/js_ext/ace-editor/mode-html.js +2339 -0
  226. package/js_ext/ace-editor/mode-html_elixir.js +2845 -0
  227. package/js_ext/ace-editor/mode-html_ruby.js +3294 -0
  228. package/js_ext/ace-editor/mode-ini.js +138 -0
  229. package/js_ext/ace-editor/mode-io.js +210 -0
  230. package/js_ext/ace-editor/mode-ion.js +477 -0
  231. package/js_ext/ace-editor/mode-jack.js +293 -0
  232. package/js_ext/ace-editor/mode-jade.js +2017 -0
  233. package/js_ext/ace-editor/mode-java.js +1565 -0
  234. package/js_ext/ace-editor/mode-javascript.js +1191 -0
  235. package/js_ext/ace-editor/mode-jexl.js +270 -0
  236. package/js_ext/ace-editor/mode-json.js +275 -0
  237. package/js_ext/ace-editor/mode-json5.js +308 -0
  238. package/js_ext/ace-editor/mode-jsoniq.js +2577 -0
  239. package/js_ext/ace-editor/mode-jsp.js +1618 -0
  240. package/js_ext/ace-editor/mode-jssm.js +293 -0
  241. package/js_ext/ace-editor/mode-jsx.js +1209 -0
  242. package/js_ext/ace-editor/mode-julia.js +254 -0
  243. package/js_ext/ace-editor/mode-kotlin.js +445 -0
  244. package/js_ext/ace-editor/mode-latex.js +252 -0
  245. package/js_ext/ace-editor/mode-latte.js +2522 -0
  246. package/js_ext/ace-editor/mode-less.js +742 -0
  247. package/js_ext/ace-editor/mode-liquid.js +2741 -0
  248. package/js_ext/ace-editor/mode-lisp.js +104 -0
  249. package/js_ext/ace-editor/mode-livescript.js +272 -0
  250. package/js_ext/ace-editor/mode-logiql.js +272 -0
  251. package/js_ext/ace-editor/mode-logtalk.js +309 -0
  252. package/js_ext/ace-editor/mode-lsl.js +287 -0
  253. package/js_ext/ace-editor/mode-lua.js +393 -0
  254. package/js_ext/ace-editor/mode-luapage.js +2785 -0
  255. package/js_ext/ace-editor/mode-lucene.js +145 -0
  256. package/js_ext/ace-editor/mode-makefile.js +374 -0
  257. package/js_ext/ace-editor/mode-markdown.js +2935 -0
  258. package/js_ext/ace-editor/mode-mask.js +1757 -0
  259. package/js_ext/ace-editor/mode-matlab.js +239 -0
  260. package/js_ext/ace-editor/mode-maze.js +256 -0
  261. package/js_ext/ace-editor/mode-mediawiki.js +580 -0
  262. package/js_ext/ace-editor/mode-mel.js +213 -0
  263. package/js_ext/ace-editor/mode-mips.js +231 -0
  264. package/js_ext/ace-editor/mode-mixal.js +110 -0
  265. package/js_ext/ace-editor/mode-mushcode.js +642 -0
  266. package/js_ext/ace-editor/mode-mysql.js +150 -0
  267. package/js_ext/ace-editor/mode-nasal.js +513 -0
  268. package/js_ext/ace-editor/mode-nginx.js +262 -0
  269. package/js_ext/ace-editor/mode-nim.js +325 -0
  270. package/js_ext/ace-editor/mode-nix.js +555 -0
  271. package/js_ext/ace-editor/mode-nsis.js +279 -0
  272. package/js_ext/ace-editor/mode-nunjucks.js +2677 -0
  273. package/js_ext/ace-editor/mode-objectivec.js +626 -0
  274. package/js_ext/ace-editor/mode-ocaml.js +378 -0
  275. package/js_ext/ace-editor/mode-odin.js +449 -0
  276. package/js_ext/ace-editor/mode-partiql.js +750 -0
  277. package/js_ext/ace-editor/mode-pascal.js +204 -0
  278. package/js_ext/ace-editor/mode-perl.js +318 -0
  279. package/js_ext/ace-editor/mode-pgsql.js +1860 -0
  280. package/js_ext/ace-editor/mode-php.js +14072 -0
  281. package/js_ext/ace-editor/mode-php_laravel_blade.js +14260 -0
  282. package/js_ext/ace-editor/mode-pig.js +278 -0
  283. package/js_ext/ace-editor/mode-plain_text.js +27 -0
  284. package/js_ext/ace-editor/mode-plsql.js +268 -0
  285. package/js_ext/ace-editor/mode-powershell.js +567 -0
  286. package/js_ext/ace-editor/mode-praat.js +412 -0
  287. package/js_ext/ace-editor/mode-prisma.js +457 -0
  288. package/js_ext/ace-editor/mode-prolog.js +305 -0
  289. package/js_ext/ace-editor/mode-properties.js +69 -0
  290. package/js_ext/ace-editor/mode-protobuf.js +498 -0
  291. package/js_ext/ace-editor/mode-prql.js +323 -0
  292. package/js_ext/ace-editor/mode-puppet.js +316 -0
  293. package/js_ext/ace-editor/mode-python.js +476 -0
  294. package/js_ext/ace-editor/mode-qml.js +346 -0
  295. package/js_ext/ace-editor/mode-r.js +387 -0
  296. package/js_ext/ace-editor/mode-raku.js +516 -0
  297. package/js_ext/ace-editor/mode-razor.js +2697 -0
  298. package/js_ext/ace-editor/mode-rdoc.js +286 -0
  299. package/js_ext/ace-editor/mode-red.js +388 -0
  300. package/js_ext/ace-editor/mode-redshift.js +321 -0
  301. package/js_ext/ace-editor/mode-rhtml.js +2750 -0
  302. package/js_ext/ace-editor/mode-robot.js +168 -0
  303. package/js_ext/ace-editor/mode-rst.js +245 -0
  304. package/js_ext/ace-editor/mode-ruby.js +921 -0
  305. package/js_ext/ace-editor/mode-rust.js +393 -0
  306. package/js_ext/ace-editor/mode-sac.js +349 -0
  307. package/js_ext/ace-editor/mode-sass.js +480 -0
  308. package/js_ext/ace-editor/mode-scad.js +350 -0
  309. package/js_ext/ace-editor/mode-scala.js +1395 -0
  310. package/js_ext/ace-editor/mode-scheme.js +210 -0
  311. package/js_ext/ace-editor/mode-scrypt.js +317 -0
  312. package/js_ext/ace-editor/mode-scss.js +768 -0
  313. package/js_ext/ace-editor/mode-sh.js +387 -0
  314. package/js_ext/ace-editor/mode-sjs.js +1393 -0
  315. package/js_ext/ace-editor/mode-slim.js +4770 -0
  316. package/js_ext/ace-editor/mode-smarty.js +2436 -0
  317. package/js_ext/ace-editor/mode-smithy.js +456 -0
  318. package/js_ext/ace-editor/mode-snippets.js +183 -0
  319. package/js_ext/ace-editor/mode-soy_template.js +2611 -0
  320. package/js_ext/ace-editor/mode-space.js +151 -0
  321. package/js_ext/ace-editor/mode-sparql.js +288 -0
  322. package/js_ext/ace-editor/mode-sql.js +221 -0
  323. package/js_ext/ace-editor/mode-sqlserver.js +391 -0
  324. package/js_ext/ace-editor/mode-stylus.js +443 -0
  325. package/js_ext/ace-editor/mode-svg.js +1487 -0
  326. package/js_ext/ace-editor/mode-swift.js +342 -0
  327. package/js_ext/ace-editor/mode-tcl.js +338 -0
  328. package/js_ext/ace-editor/mode-terraform.js +346 -0
  329. package/js_ext/ace-editor/mode-tex.js +212 -0
  330. package/js_ext/ace-editor/mode-text.js +9 -0
  331. package/js_ext/ace-editor/mode-textile.js +125 -0
  332. package/js_ext/ace-editor/mode-toml.js +129 -0
  333. package/js_ext/ace-editor/mode-tsv.js +124 -0
  334. package/js_ext/ace-editor/mode-tsx.js +1276 -0
  335. package/js_ext/ace-editor/mode-turtle.js +264 -0
  336. package/js_ext/ace-editor/mode-twig.js +2502 -0
  337. package/js_ext/ace-editor/mode-typescript.js +1254 -0
  338. package/js_ext/ace-editor/mode-vala.js +554 -0
  339. package/js_ext/ace-editor/mode-vbscript.js +731 -0
  340. package/js_ext/ace-editor/mode-velocity.js +2580 -0
  341. package/js_ext/ace-editor/mode-verilog.js +98 -0
  342. package/js_ext/ace-editor/mode-vhdl.js +94 -0
  343. package/js_ext/ace-editor/mode-visualforce.js +2454 -0
  344. package/js_ext/ace-editor/mode-vue.js +3834 -0
  345. package/js_ext/ace-editor/mode-wollok.js +1329 -0
  346. package/js_ext/ace-editor/mode-xml.js +477 -0
  347. package/js_ext/ace-editor/mode-xquery.js +2589 -0
  348. package/js_ext/ace-editor/mode-yaml.js +395 -0
  349. package/js_ext/ace-editor/mode-zeek.js +502 -0
  350. package/js_ext/ace-editor/mode-zig.js +585 -0
  351. package/js_ext/ace-editor/snippets/abap.js +9 -0
  352. package/js_ext/ace-editor/snippets/abc.js +16 -0
  353. package/js_ext/ace-editor/snippets/actionscript.js +16 -0
  354. package/js_ext/ace-editor/snippets/ada.js +9 -0
  355. package/js_ext/ace-editor/snippets/alda.js +9 -0
  356. package/js_ext/ace-editor/snippets/apache_conf.js +9 -0
  357. package/js_ext/ace-editor/snippets/apex.js +9 -0
  358. package/js_ext/ace-editor/snippets/applescript.js +9 -0
  359. package/js_ext/ace-editor/snippets/aql.js +9 -0
  360. package/js_ext/ace-editor/snippets/asciidoc.js +9 -0
  361. package/js_ext/ace-editor/snippets/asl.js +9 -0
  362. package/js_ext/ace-editor/snippets/assembly_arm32.js +9 -0
  363. package/js_ext/ace-editor/snippets/assembly_x86.js +9 -0
  364. package/js_ext/ace-editor/snippets/astro.js +9 -0
  365. package/js_ext/ace-editor/snippets/autohotkey.js +9 -0
  366. package/js_ext/ace-editor/snippets/basic.js +9 -0
  367. package/js_ext/ace-editor/snippets/batchfile.js +9 -0
  368. package/js_ext/ace-editor/snippets/bibtex.js +9 -0
  369. package/js_ext/ace-editor/snippets/c9search.js +9 -0
  370. package/js_ext/ace-editor/snippets/c_cpp.js +16 -0
  371. package/js_ext/ace-editor/snippets/cirru.js +9 -0
  372. package/js_ext/ace-editor/snippets/clojure.js +16 -0
  373. package/js_ext/ace-editor/snippets/clue.js +9 -0
  374. package/js_ext/ace-editor/snippets/cobol.js +9 -0
  375. package/js_ext/ace-editor/snippets/coffee.js +16 -0
  376. package/js_ext/ace-editor/snippets/coldfusion.js +9 -0
  377. package/js_ext/ace-editor/snippets/crystal.js +9 -0
  378. package/js_ext/ace-editor/snippets/csharp.js +9 -0
  379. package/js_ext/ace-editor/snippets/csound_document.js +16 -0
  380. package/js_ext/ace-editor/snippets/csound_orchestra.js +16 -0
  381. package/js_ext/ace-editor/snippets/csound_score.js +9 -0
  382. package/js_ext/ace-editor/snippets/csp.js +9 -0
  383. package/js_ext/ace-editor/snippets/css.js +16 -0
  384. package/js_ext/ace-editor/snippets/csv.js +9 -0
  385. package/js_ext/ace-editor/snippets/curly.js +9 -0
  386. package/js_ext/ace-editor/snippets/cuttlefish.js +9 -0
  387. package/js_ext/ace-editor/snippets/d.js +9 -0
  388. package/js_ext/ace-editor/snippets/dart.js +16 -0
  389. package/js_ext/ace-editor/snippets/diff.js +16 -0
  390. package/js_ext/ace-editor/snippets/django.js +16 -0
  391. package/js_ext/ace-editor/snippets/dockerfile.js +9 -0
  392. package/js_ext/ace-editor/snippets/dot.js +9 -0
  393. package/js_ext/ace-editor/snippets/drools.js +16 -0
  394. package/js_ext/ace-editor/snippets/edifact.js +16 -0
  395. package/js_ext/ace-editor/snippets/eiffel.js +9 -0
  396. package/js_ext/ace-editor/snippets/ejs.js +9 -0
  397. package/js_ext/ace-editor/snippets/elixir.js +9 -0
  398. package/js_ext/ace-editor/snippets/elm.js +9 -0
  399. package/js_ext/ace-editor/snippets/erlang.js +16 -0
  400. package/js_ext/ace-editor/snippets/flix.js +9 -0
  401. package/js_ext/ace-editor/snippets/forth.js +9 -0
  402. package/js_ext/ace-editor/snippets/fortran.js +9 -0
  403. package/js_ext/ace-editor/snippets/fsharp.js +9 -0
  404. package/js_ext/ace-editor/snippets/fsl.js +16 -0
  405. package/js_ext/ace-editor/snippets/ftl.js +9 -0
  406. package/js_ext/ace-editor/snippets/gcode.js +9 -0
  407. package/js_ext/ace-editor/snippets/gherkin.js +9 -0
  408. package/js_ext/ace-editor/snippets/gitignore.js +9 -0
  409. package/js_ext/ace-editor/snippets/glsl.js +9 -0
  410. package/js_ext/ace-editor/snippets/gobstones.js +16 -0
  411. package/js_ext/ace-editor/snippets/golang.js +9 -0
  412. package/js_ext/ace-editor/snippets/graphqlschema.js +16 -0
  413. package/js_ext/ace-editor/snippets/groovy.js +9 -0
  414. package/js_ext/ace-editor/snippets/haml.js +16 -0
  415. package/js_ext/ace-editor/snippets/handlebars.js +9 -0
  416. package/js_ext/ace-editor/snippets/haskell.js +16 -0
  417. package/js_ext/ace-editor/snippets/haskell_cabal.js +9 -0
  418. package/js_ext/ace-editor/snippets/haxe.js +9 -0
  419. package/js_ext/ace-editor/snippets/hjson.js +9 -0
  420. package/js_ext/ace-editor/snippets/html.js +16 -0
  421. package/js_ext/ace-editor/snippets/html_elixir.js +9 -0
  422. package/js_ext/ace-editor/snippets/html_ruby.js +9 -0
  423. package/js_ext/ace-editor/snippets/ini.js +9 -0
  424. package/js_ext/ace-editor/snippets/io.js +74 -0
  425. package/js_ext/ace-editor/snippets/ion.js +9 -0
  426. package/js_ext/ace-editor/snippets/jack.js +9 -0
  427. package/js_ext/ace-editor/snippets/jade.js +9 -0
  428. package/js_ext/ace-editor/snippets/java.js +16 -0
  429. package/js_ext/ace-editor/snippets/javascript.js +16 -0
  430. package/js_ext/ace-editor/snippets/jexl.js +9 -0
  431. package/js_ext/ace-editor/snippets/json.js +9 -0
  432. package/js_ext/ace-editor/snippets/json5.js +9 -0
  433. package/js_ext/ace-editor/snippets/jsoniq.js +78 -0
  434. package/js_ext/ace-editor/snippets/jsp.js +16 -0
  435. package/js_ext/ace-editor/snippets/jssm.js +9 -0
  436. package/js_ext/ace-editor/snippets/jsx.js +9 -0
  437. package/js_ext/ace-editor/snippets/julia.js +9 -0
  438. package/js_ext/ace-editor/snippets/kotlin.js +9 -0
  439. package/js_ext/ace-editor/snippets/latex.js +9 -0
  440. package/js_ext/ace-editor/snippets/latte.js +9 -0
  441. package/js_ext/ace-editor/snippets/less.js +9 -0
  442. package/js_ext/ace-editor/snippets/liquid.js +16 -0
  443. package/js_ext/ace-editor/snippets/lisp.js +9 -0
  444. package/js_ext/ace-editor/snippets/livescript.js +9 -0
  445. package/js_ext/ace-editor/snippets/logiql.js +9 -0
  446. package/js_ext/ace-editor/snippets/logtalk.js +9 -0
  447. package/js_ext/ace-editor/snippets/lsl.js +16 -0
  448. package/js_ext/ace-editor/snippets/lua.js +16 -0
  449. package/js_ext/ace-editor/snippets/luapage.js +9 -0
  450. package/js_ext/ace-editor/snippets/lucene.js +9 -0
  451. package/js_ext/ace-editor/snippets/makefile.js +16 -0
  452. package/js_ext/ace-editor/snippets/markdown.js +16 -0
  453. package/js_ext/ace-editor/snippets/mask.js +9 -0
  454. package/js_ext/ace-editor/snippets/matlab.js +9 -0
  455. package/js_ext/ace-editor/snippets/maze.js +16 -0
  456. package/js_ext/ace-editor/snippets/mediawiki.js +9 -0
  457. package/js_ext/ace-editor/snippets/mel.js +9 -0
  458. package/js_ext/ace-editor/snippets/mips.js +9 -0
  459. package/js_ext/ace-editor/snippets/mixal.js +9 -0
  460. package/js_ext/ace-editor/snippets/mushcode.js +9 -0
  461. package/js_ext/ace-editor/snippets/mysql.js +9 -0
  462. package/js_ext/ace-editor/snippets/nasal.js +9 -0
  463. package/js_ext/ace-editor/snippets/nginx.js +9 -0
  464. package/js_ext/ace-editor/snippets/nim.js +9 -0
  465. package/js_ext/ace-editor/snippets/nix.js +9 -0
  466. package/js_ext/ace-editor/snippets/nsis.js +9 -0
  467. package/js_ext/ace-editor/snippets/nunjucks.js +9 -0
  468. package/js_ext/ace-editor/snippets/objectivec.js +9 -0
  469. package/js_ext/ace-editor/snippets/ocaml.js +9 -0
  470. package/js_ext/ace-editor/snippets/odin.js +9 -0
  471. package/js_ext/ace-editor/snippets/partiql.js +9 -0
  472. package/js_ext/ace-editor/snippets/pascal.js +9 -0
  473. package/js_ext/ace-editor/snippets/perl.js +16 -0
  474. package/js_ext/ace-editor/snippets/pgsql.js +9 -0
  475. package/js_ext/ace-editor/snippets/php.js +16 -0
  476. package/js_ext/ace-editor/snippets/php_laravel_blade.js +9 -0
  477. package/js_ext/ace-editor/snippets/pig.js +9 -0
  478. package/js_ext/ace-editor/snippets/plain_text.js +9 -0
  479. package/js_ext/ace-editor/snippets/plsql.js +9 -0
  480. package/js_ext/ace-editor/snippets/powershell.js +9 -0
  481. package/js_ext/ace-editor/snippets/praat.js +9 -0
  482. package/js_ext/ace-editor/snippets/prisma.js +9 -0
  483. package/js_ext/ace-editor/snippets/prolog.js +9 -0
  484. package/js_ext/ace-editor/snippets/properties.js +9 -0
  485. package/js_ext/ace-editor/snippets/protobuf.js +9 -0
  486. package/js_ext/ace-editor/snippets/prql.js +9 -0
  487. package/js_ext/ace-editor/snippets/puppet.js +9 -0
  488. package/js_ext/ace-editor/snippets/python.js +16 -0
  489. package/js_ext/ace-editor/snippets/qml.js +9 -0
  490. package/js_ext/ace-editor/snippets/r.js +16 -0
  491. package/js_ext/ace-editor/snippets/raku.js +9 -0
  492. package/js_ext/ace-editor/snippets/razor.js +16 -0
  493. package/js_ext/ace-editor/snippets/rdoc.js +9 -0
  494. package/js_ext/ace-editor/snippets/red.js +9 -0
  495. package/js_ext/ace-editor/snippets/redshift.js +9 -0
  496. package/js_ext/ace-editor/snippets/rhtml.js +9 -0
  497. package/js_ext/ace-editor/snippets/robot.js +16 -0
  498. package/js_ext/ace-editor/snippets/rst.js +16 -0
  499. package/js_ext/ace-editor/snippets/ruby.js +16 -0
  500. package/js_ext/ace-editor/snippets/rust.js +9 -0
  501. package/js_ext/ace-editor/snippets/sac.js +9 -0
  502. package/js_ext/ace-editor/snippets/sass.js +9 -0
  503. package/js_ext/ace-editor/snippets/scad.js +9 -0
  504. package/js_ext/ace-editor/snippets/scala.js +9 -0
  505. package/js_ext/ace-editor/snippets/scheme.js +9 -0
  506. package/js_ext/ace-editor/snippets/scrypt.js +9 -0
  507. package/js_ext/ace-editor/snippets/scss.js +9 -0
  508. package/js_ext/ace-editor/snippets/sh.js +16 -0
  509. package/js_ext/ace-editor/snippets/sjs.js +9 -0
  510. package/js_ext/ace-editor/snippets/slim.js +9 -0
  511. package/js_ext/ace-editor/snippets/smarty.js +9 -0
  512. package/js_ext/ace-editor/snippets/smithy.js +9 -0
  513. package/js_ext/ace-editor/snippets/snippets.js +16 -0
  514. package/js_ext/ace-editor/snippets/soy_template.js +9 -0
  515. package/js_ext/ace-editor/snippets/space.js +9 -0
  516. package/js_ext/ace-editor/snippets/sparql.js +9 -0
  517. package/js_ext/ace-editor/snippets/sql.js +16 -0
  518. package/js_ext/ace-editor/snippets/sqlserver.js +16 -0
  519. package/js_ext/ace-editor/snippets/stylus.js +9 -0
  520. package/js_ext/ace-editor/snippets/svg.js +9 -0
  521. package/js_ext/ace-editor/snippets/swift.js +9 -0
  522. package/js_ext/ace-editor/snippets/tcl.js +16 -0
  523. package/js_ext/ace-editor/snippets/terraform.js +9 -0
  524. package/js_ext/ace-editor/snippets/tex.js +16 -0
  525. package/js_ext/ace-editor/snippets/text.js +9 -0
  526. package/js_ext/ace-editor/snippets/textile.js +16 -0
  527. package/js_ext/ace-editor/snippets/toml.js +9 -0
  528. package/js_ext/ace-editor/snippets/tsv.js +9 -0
  529. package/js_ext/ace-editor/snippets/tsx.js +9 -0
  530. package/js_ext/ace-editor/snippets/turtle.js +9 -0
  531. package/js_ext/ace-editor/snippets/twig.js +9 -0
  532. package/js_ext/ace-editor/snippets/typescript.js +9 -0
  533. package/js_ext/ace-editor/snippets/vala.js +199 -0
  534. package/js_ext/ace-editor/snippets/vbscript.js +9 -0
  535. package/js_ext/ace-editor/snippets/velocity.js +17 -0
  536. package/js_ext/ace-editor/snippets/verilog.js +9 -0
  537. package/js_ext/ace-editor/snippets/vhdl.js +9 -0
  538. package/js_ext/ace-editor/snippets/visualforce.js +9 -0
  539. package/js_ext/ace-editor/snippets/vue.js +9 -0
  540. package/js_ext/ace-editor/snippets/wollok.js +16 -0
  541. package/js_ext/ace-editor/snippets/xml.js +9 -0
  542. package/js_ext/ace-editor/snippets/xquery.js +78 -0
  543. package/js_ext/ace-editor/snippets/yaml.js +9 -0
  544. package/js_ext/ace-editor/snippets/zeek.js +9 -0
  545. package/js_ext/ace-editor/snippets/zig.js +9 -0
  546. package/js_ext/ace-editor/theme-ambiance.js +18 -0
  547. package/js_ext/ace-editor/theme-chaos.js +18 -0
  548. package/js_ext/ace-editor/theme-chrome.js +18 -0
  549. package/js_ext/ace-editor/theme-cloud9_day.js +19 -0
  550. package/js_ext/ace-editor/theme-cloud9_night.js +18 -0
  551. package/js_ext/ace-editor/theme-cloud9_night_low_color.js +18 -0
  552. package/js_ext/ace-editor/theme-cloud_editor.js +19 -0
  553. package/js_ext/ace-editor/theme-cloud_editor_dark.js +19 -0
  554. package/js_ext/ace-editor/theme-clouds.js +18 -0
  555. package/js_ext/ace-editor/theme-clouds_midnight.js +18 -0
  556. package/js_ext/ace-editor/theme-cobalt.js +18 -0
  557. package/js_ext/ace-editor/theme-crimson_editor.js +18 -0
  558. package/js_ext/ace-editor/theme-dawn.js +18 -0
  559. package/js_ext/ace-editor/theme-dracula.js +19 -0
  560. package/js_ext/ace-editor/theme-dreamweaver.js +18 -0
  561. package/js_ext/ace-editor/theme-eclipse.js +19 -0
  562. package/js_ext/ace-editor/theme-github.js +18 -0
  563. package/js_ext/ace-editor/theme-github_dark.js +18 -0
  564. package/js_ext/ace-editor/theme-github_light_default.js +18 -0
  565. package/js_ext/ace-editor/theme-gob.js +18 -0
  566. package/js_ext/ace-editor/theme-gruvbox.js +18 -0
  567. package/js_ext/ace-editor/theme-gruvbox_dark_hard.js +18 -0
  568. package/js_ext/ace-editor/theme-gruvbox_light_hard.js +18 -0
  569. package/js_ext/ace-editor/theme-idle_fingers.js +18 -0
  570. package/js_ext/ace-editor/theme-iplastic.js +18 -0
  571. package/js_ext/ace-editor/theme-katzenmilch.js +18 -0
  572. package/js_ext/ace-editor/theme-kr_theme.js +18 -0
  573. package/js_ext/ace-editor/theme-kuroir.js +18 -0
  574. package/js_ext/ace-editor/theme-merbivore.js +18 -0
  575. package/js_ext/ace-editor/theme-merbivore_soft.js +18 -0
  576. package/js_ext/ace-editor/theme-mono_industrial.js +18 -0
  577. package/js_ext/ace-editor/theme-monokai.js +18 -0
  578. package/js_ext/ace-editor/theme-nord_dark.js +19 -0
  579. package/js_ext/ace-editor/theme-one_dark.js +18 -0
  580. package/js_ext/ace-editor/theme-pastel_on_dark.js +18 -0
  581. package/js_ext/ace-editor/theme-solarized_dark.js +18 -0
  582. package/js_ext/ace-editor/theme-solarized_light.js +18 -0
  583. package/js_ext/ace-editor/theme-sqlserver.js +18 -0
  584. package/js_ext/ace-editor/theme-terminal.js +18 -0
  585. package/js_ext/ace-editor/theme-textmate.js +16 -0
  586. package/js_ext/ace-editor/theme-tomorrow.js +18 -0
  587. package/js_ext/ace-editor/theme-tomorrow_night.js +18 -0
  588. package/js_ext/ace-editor/theme-tomorrow_night_blue.js +18 -0
  589. package/js_ext/ace-editor/theme-tomorrow_night_bright.js +18 -0
  590. package/js_ext/ace-editor/theme-tomorrow_night_eighties.js +18 -0
  591. package/js_ext/ace-editor/theme-twilight.js +18 -0
  592. package/js_ext/ace-editor/theme-vibrant_ink.js +18 -0
  593. package/js_ext/ace-editor/theme-xcode.js +18 -0
  594. package/js_ext/ace-editor/worker-base.js +1332 -0
  595. package/js_ext/ace-editor/worker-coffee.js +1381 -0
  596. package/js_ext/ace-editor/worker-css.js +8913 -0
  597. package/js_ext/ace-editor/worker-html.js +10843 -0
  598. package/js_ext/ace-editor/worker-javascript.js +15353 -0
  599. package/js_ext/ace-editor/worker-json.js +1626 -0
  600. package/js_ext/ace-editor/worker-lua.js +3519 -0
  601. package/js_ext/ace-editor/worker-php.js +3788 -0
  602. package/js_ext/ace-editor/worker-xml.js +3122 -0
  603. package/js_ext/ace-editor/worker-xquery.js +57579 -0
  604. package/js_ext/ace-editor/worker-yaml.js +5819 -0
  605. package/js_ext/bootstrap.bundle.min.js +7 -0
  606. package/js_ext/highlight/default.min.css +9 -0
  607. package/js_ext/highlight/go.min.js +14 -0
  608. package/js_ext/highlight/highlight.min.js +1207 -0
  609. package/js_ext/highlight/stackoverflow-dark.min.css +13 -0
  610. package/js_ext/idb-keyval-6.2.2.mjs +7 -0
  611. package/js_ext/json-viewer.bundle.js +52 -0
  612. package/js_ext/loglevel-plugin-prefix.min.js +1 -0
  613. package/js_ext/loglevel.min.js +2 -0
  614. package/js_ext/markdown/auto-render.min.js +1 -0
  615. package/js_ext/markdown/auto-render.mjs +245 -0
  616. package/js_ext/markdown/fonts/KaTeX_AMS-Regular.woff +0 -0
  617. package/js_ext/markdown/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  618. package/js_ext/markdown/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  619. package/js_ext/markdown/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  620. package/js_ext/markdown/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  621. package/js_ext/markdown/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  622. package/js_ext/markdown/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  623. package/js_ext/markdown/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  624. package/js_ext/markdown/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  625. package/js_ext/markdown/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  626. package/js_ext/markdown/fonts/KaTeX_Main-Bold.woff +0 -0
  627. package/js_ext/markdown/fonts/KaTeX_Main-Bold.woff2 +0 -0
  628. package/js_ext/markdown/fonts/KaTeX_Main-Italic.woff +0 -0
  629. package/js_ext/markdown/fonts/KaTeX_Main-Italic.woff2 +0 -0
  630. package/js_ext/markdown/fonts/KaTeX_Main-Regular.woff +0 -0
  631. package/js_ext/markdown/fonts/KaTeX_Main-Regular.woff2 +0 -0
  632. package/js_ext/markdown/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  633. package/js_ext/markdown/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  634. package/js_ext/markdown/fonts/KaTeX_Math-Italic.woff +0 -0
  635. package/js_ext/markdown/fonts/KaTeX_Math-Italic.woff2 +0 -0
  636. package/js_ext/markdown/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  637. package/js_ext/markdown/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  638. package/js_ext/markdown/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  639. package/js_ext/markdown/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  640. package/js_ext/markdown/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  641. package/js_ext/markdown/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  642. package/js_ext/markdown/fonts/KaTeX_Script-Regular.ttf +0 -0
  643. package/js_ext/markdown/fonts/KaTeX_Script-Regular.woff +0 -0
  644. package/js_ext/markdown/fonts/KaTeX_Script-Regular.woff2 +0 -0
  645. package/js_ext/markdown/fonts/KaTeX_Size1-Regular.ttf +0 -0
  646. package/js_ext/markdown/fonts/KaTeX_Size1-Regular.woff +0 -0
  647. package/js_ext/markdown/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  648. package/js_ext/markdown/fonts/KaTeX_Size2-Regular.woff +0 -0
  649. package/js_ext/markdown/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  650. package/js_ext/markdown/fonts/KaTeX_Size3-Regular.woff +0 -0
  651. package/js_ext/markdown/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  652. package/js_ext/markdown/fonts/KaTeX_Size4-Regular.ttf +0 -0
  653. package/js_ext/markdown/fonts/KaTeX_Size4-Regular.woff +0 -0
  654. package/js_ext/markdown/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  655. package/js_ext/markdown/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  656. package/js_ext/markdown/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  657. package/js_ext/markdown/katex.min.css +1 -0
  658. package/js_ext/markdown/katex.min.js +1 -0
  659. package/js_ext/markdown/katex.mjs +18416 -0
  660. package/js_ext/markdown/markdown-it.min.js +3 -0
  661. package/js_ext/markdown/markdownItAnchor.umd.js +2 -0
  662. package/js_ext/mitt.mjs +2 -0
  663. package/js_ext/moment.min.js +1 -0
  664. package/js_ext/msgpack.mjs +1612 -0
  665. package/js_ext/rxjs.umd.min.js +195 -0
  666. package/js_ext/rxjs.umd.min.js.map +1 -0
  667. package/js_ext/vue-router.esm-browser.prod.js +6 -0
  668. package/js_ext/vue.esm-browser.min.js +18 -0
  669. package/js_ext/vue.esm-browser.prod.min.js +3 -0
  670. package/js_ext/vue3-sfc-loader.esm.js +1840 -0
  671. package/js_ext/vue3-sfc-loader.esm.js.map +4 -0
  672. package/js_ext/vue3-sfc-loader.js +1839 -0
  673. package/js_ext/wavesurfer.esm.mjs +1 -0
  674. package/js_ext/xstate.web.mjs +15 -0
  675. package/package.json +50 -0
  676. package/style.css +31 -0
@@ -0,0 +1,1612 @@
1
+ // node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs
2
+ function utf8Count(str) {
3
+ var strLength = str.length;
4
+ var byteLength = 0;
5
+ var pos = 0;
6
+ while (pos < strLength) {
7
+ var value = str.charCodeAt(pos++);
8
+ if ((value & 4294967168) === 0) {
9
+ byteLength++;
10
+ continue;
11
+ } else if ((value & 4294965248) === 0) {
12
+ byteLength += 2;
13
+ } else {
14
+ if (value >= 55296 && value <= 56319) {
15
+ if (pos < strLength) {
16
+ var extra = str.charCodeAt(pos);
17
+ if ((extra & 64512) === 56320) {
18
+ ++pos;
19
+ value = ((value & 1023) << 10) + (extra & 1023) + 65536;
20
+ }
21
+ }
22
+ }
23
+ if ((value & 4294901760) === 0) {
24
+ byteLength += 3;
25
+ } else {
26
+ byteLength += 4;
27
+ }
28
+ }
29
+ }
30
+ return byteLength;
31
+ }
32
+ function utf8EncodeJs(str, output, outputOffset) {
33
+ var strLength = str.length;
34
+ var offset = outputOffset;
35
+ var pos = 0;
36
+ while (pos < strLength) {
37
+ var value = str.charCodeAt(pos++);
38
+ if ((value & 4294967168) === 0) {
39
+ output[offset++] = value;
40
+ continue;
41
+ } else if ((value & 4294965248) === 0) {
42
+ output[offset++] = value >> 6 & 31 | 192;
43
+ } else {
44
+ if (value >= 55296 && value <= 56319) {
45
+ if (pos < strLength) {
46
+ var extra = str.charCodeAt(pos);
47
+ if ((extra & 64512) === 56320) {
48
+ ++pos;
49
+ value = ((value & 1023) << 10) + (extra & 1023) + 65536;
50
+ }
51
+ }
52
+ }
53
+ if ((value & 4294901760) === 0) {
54
+ output[offset++] = value >> 12 & 15 | 224;
55
+ output[offset++] = value >> 6 & 63 | 128;
56
+ } else {
57
+ output[offset++] = value >> 18 & 7 | 240;
58
+ output[offset++] = value >> 12 & 63 | 128;
59
+ output[offset++] = value >> 6 & 63 | 128;
60
+ }
61
+ }
62
+ output[offset++] = value & 63 | 128;
63
+ }
64
+ }
65
+ var sharedTextEncoder = new TextEncoder();
66
+ var TEXT_ENCODER_THRESHOLD = 50;
67
+ function utf8EncodeTE(str, output, outputOffset) {
68
+ sharedTextEncoder.encodeInto(str, output.subarray(outputOffset));
69
+ }
70
+ function utf8Encode(str, output, outputOffset) {
71
+ if (str.length > TEXT_ENCODER_THRESHOLD) {
72
+ utf8EncodeTE(str, output, outputOffset);
73
+ } else {
74
+ utf8EncodeJs(str, output, outputOffset);
75
+ }
76
+ }
77
+ var CHUNK_SIZE = 4096;
78
+ function utf8DecodeJs(bytes, inputOffset, byteLength) {
79
+ var offset = inputOffset;
80
+ var end = offset + byteLength;
81
+ var units = [];
82
+ var result = "";
83
+ while (offset < end) {
84
+ var byte1 = bytes[offset++];
85
+ if ((byte1 & 128) === 0) {
86
+ units.push(byte1);
87
+ } else if ((byte1 & 224) === 192) {
88
+ var byte2 = bytes[offset++] & 63;
89
+ units.push((byte1 & 31) << 6 | byte2);
90
+ } else if ((byte1 & 240) === 224) {
91
+ var byte2 = bytes[offset++] & 63;
92
+ var byte3 = bytes[offset++] & 63;
93
+ units.push((byte1 & 31) << 12 | byte2 << 6 | byte3);
94
+ } else if ((byte1 & 248) === 240) {
95
+ var byte2 = bytes[offset++] & 63;
96
+ var byte3 = bytes[offset++] & 63;
97
+ var byte4 = bytes[offset++] & 63;
98
+ var unit = (byte1 & 7) << 18 | byte2 << 12 | byte3 << 6 | byte4;
99
+ if (unit > 65535) {
100
+ unit -= 65536;
101
+ units.push(unit >>> 10 & 1023 | 55296);
102
+ unit = 56320 | unit & 1023;
103
+ }
104
+ units.push(unit);
105
+ } else {
106
+ units.push(byte1);
107
+ }
108
+ if (units.length >= CHUNK_SIZE) {
109
+ result += String.fromCharCode.apply(String, units);
110
+ units.length = 0;
111
+ }
112
+ }
113
+ if (units.length > 0) {
114
+ result += String.fromCharCode.apply(String, units);
115
+ }
116
+ return result;
117
+ }
118
+ var sharedTextDecoder = new TextDecoder();
119
+ var TEXT_DECODER_THRESHOLD = 200;
120
+ function utf8DecodeTD(bytes, inputOffset, byteLength) {
121
+ var stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength);
122
+ return sharedTextDecoder.decode(stringBytes);
123
+ }
124
+ function utf8Decode(bytes, inputOffset, byteLength) {
125
+ if (byteLength > TEXT_DECODER_THRESHOLD) {
126
+ return utf8DecodeTD(bytes, inputOffset, byteLength);
127
+ } else {
128
+ return utf8DecodeJs(bytes, inputOffset, byteLength);
129
+ }
130
+ }
131
+
132
+ // node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs
133
+ var ExtData = (
134
+ /** @class */
135
+ function() {
136
+ function ExtData2(type, data) {
137
+ this.type = type;
138
+ this.data = data;
139
+ }
140
+ return ExtData2;
141
+ }()
142
+ );
143
+
144
+ // node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs
145
+ var __extends = function() {
146
+ var extendStatics = function(d, b) {
147
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
148
+ d2.__proto__ = b2;
149
+ } || function(d2, b2) {
150
+ for (var p in b2)
151
+ if (Object.prototype.hasOwnProperty.call(b2, p))
152
+ d2[p] = b2[p];
153
+ };
154
+ return extendStatics(d, b);
155
+ };
156
+ return function(d, b) {
157
+ if (typeof b !== "function" && b !== null)
158
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
159
+ extendStatics(d, b);
160
+ function __() {
161
+ this.constructor = d;
162
+ }
163
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
164
+ };
165
+ }();
166
+ var DecodeError = (
167
+ /** @class */
168
+ function(_super) {
169
+ __extends(DecodeError2, _super);
170
+ function DecodeError2(message) {
171
+ var _this = _super.call(this, message) || this;
172
+ var proto = Object.create(DecodeError2.prototype);
173
+ Object.setPrototypeOf(_this, proto);
174
+ Object.defineProperty(_this, "name", {
175
+ configurable: true,
176
+ enumerable: false,
177
+ value: DecodeError2.name
178
+ });
179
+ return _this;
180
+ }
181
+ return DecodeError2;
182
+ }(Error)
183
+ );
184
+
185
+ // node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs
186
+ var UINT32_MAX = 4294967295;
187
+ function setUint64(view, offset, value) {
188
+ var high = value / 4294967296;
189
+ var low = value;
190
+ view.setUint32(offset, high);
191
+ view.setUint32(offset + 4, low);
192
+ }
193
+ function setInt64(view, offset, value) {
194
+ var high = Math.floor(value / 4294967296);
195
+ var low = value;
196
+ view.setUint32(offset, high);
197
+ view.setUint32(offset + 4, low);
198
+ }
199
+ function getInt64(view, offset) {
200
+ var high = view.getInt32(offset);
201
+ var low = view.getUint32(offset + 4);
202
+ return high * 4294967296 + low;
203
+ }
204
+ function getUint64(view, offset) {
205
+ var high = view.getUint32(offset);
206
+ var low = view.getUint32(offset + 4);
207
+ return high * 4294967296 + low;
208
+ }
209
+
210
+ // node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs
211
+ var EXT_TIMESTAMP = -1;
212
+ var TIMESTAMP32_MAX_SEC = 4294967296 - 1;
213
+ var TIMESTAMP64_MAX_SEC = 17179869184 - 1;
214
+ function encodeTimeSpecToTimestamp(_a) {
215
+ var sec = _a.sec, nsec = _a.nsec;
216
+ if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
217
+ if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
218
+ var rv = new Uint8Array(4);
219
+ var view = new DataView(rv.buffer);
220
+ view.setUint32(0, sec);
221
+ return rv;
222
+ } else {
223
+ var secHigh = sec / 4294967296;
224
+ var secLow = sec & 4294967295;
225
+ var rv = new Uint8Array(8);
226
+ var view = new DataView(rv.buffer);
227
+ view.setUint32(0, nsec << 2 | secHigh & 3);
228
+ view.setUint32(4, secLow);
229
+ return rv;
230
+ }
231
+ } else {
232
+ var rv = new Uint8Array(12);
233
+ var view = new DataView(rv.buffer);
234
+ view.setUint32(0, nsec);
235
+ setInt64(view, 4, sec);
236
+ return rv;
237
+ }
238
+ }
239
+ function encodeDateToTimeSpec(date) {
240
+ var msec = date.getTime();
241
+ var sec = Math.floor(msec / 1e3);
242
+ var nsec = (msec - sec * 1e3) * 1e6;
243
+ var nsecInSec = Math.floor(nsec / 1e9);
244
+ return {
245
+ sec: sec + nsecInSec,
246
+ nsec: nsec - nsecInSec * 1e9
247
+ };
248
+ }
249
+ function encodeTimestampExtension(object) {
250
+ if (object instanceof Date) {
251
+ var timeSpec = encodeDateToTimeSpec(object);
252
+ return encodeTimeSpecToTimestamp(timeSpec);
253
+ } else {
254
+ return null;
255
+ }
256
+ }
257
+ function decodeTimestampToTimeSpec(data) {
258
+ var view = new DataView(data.buffer, data.byteOffset, data.byteLength);
259
+ switch (data.byteLength) {
260
+ case 4: {
261
+ var sec = view.getUint32(0);
262
+ var nsec = 0;
263
+ return { sec, nsec };
264
+ }
265
+ case 8: {
266
+ var nsec30AndSecHigh2 = view.getUint32(0);
267
+ var secLow32 = view.getUint32(4);
268
+ var sec = (nsec30AndSecHigh2 & 3) * 4294967296 + secLow32;
269
+ var nsec = nsec30AndSecHigh2 >>> 2;
270
+ return { sec, nsec };
271
+ }
272
+ case 12: {
273
+ var sec = getInt64(view, 4);
274
+ var nsec = view.getUint32(0);
275
+ return { sec, nsec };
276
+ }
277
+ default:
278
+ throw new DecodeError("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(data.length));
279
+ }
280
+ }
281
+ function decodeTimestampExtension(data) {
282
+ var timeSpec = decodeTimestampToTimeSpec(data);
283
+ return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6);
284
+ }
285
+ var timestampExtension = {
286
+ type: EXT_TIMESTAMP,
287
+ encode: encodeTimestampExtension,
288
+ decode: decodeTimestampExtension
289
+ };
290
+
291
+ // node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs
292
+ var ExtensionCodec = (
293
+ /** @class */
294
+ function() {
295
+ function ExtensionCodec2() {
296
+ this.builtInEncoders = [];
297
+ this.builtInDecoders = [];
298
+ this.encoders = [];
299
+ this.decoders = [];
300
+ this.register(timestampExtension);
301
+ }
302
+ ExtensionCodec2.prototype.register = function(_a) {
303
+ var type = _a.type, encode2 = _a.encode, decode2 = _a.decode;
304
+ if (type >= 0) {
305
+ this.encoders[type] = encode2;
306
+ this.decoders[type] = decode2;
307
+ } else {
308
+ var index = 1 + type;
309
+ this.builtInEncoders[index] = encode2;
310
+ this.builtInDecoders[index] = decode2;
311
+ }
312
+ };
313
+ ExtensionCodec2.prototype.tryToEncode = function(object, context) {
314
+ for (var i = 0; i < this.builtInEncoders.length; i++) {
315
+ var encodeExt = this.builtInEncoders[i];
316
+ if (encodeExt != null) {
317
+ var data = encodeExt(object, context);
318
+ if (data != null) {
319
+ var type = -1 - i;
320
+ return new ExtData(type, data);
321
+ }
322
+ }
323
+ }
324
+ for (var i = 0; i < this.encoders.length; i++) {
325
+ var encodeExt = this.encoders[i];
326
+ if (encodeExt != null) {
327
+ var data = encodeExt(object, context);
328
+ if (data != null) {
329
+ var type = i;
330
+ return new ExtData(type, data);
331
+ }
332
+ }
333
+ }
334
+ if (object instanceof ExtData) {
335
+ return object;
336
+ }
337
+ return null;
338
+ };
339
+ ExtensionCodec2.prototype.decode = function(data, type, context) {
340
+ var decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type];
341
+ if (decodeExt) {
342
+ return decodeExt(data, type, context);
343
+ } else {
344
+ return new ExtData(type, data);
345
+ }
346
+ };
347
+ ExtensionCodec2.defaultCodec = new ExtensionCodec2();
348
+ return ExtensionCodec2;
349
+ }()
350
+ );
351
+
352
+ // node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs
353
+ function ensureUint8Array(buffer) {
354
+ if (buffer instanceof Uint8Array) {
355
+ return buffer;
356
+ } else if (ArrayBuffer.isView(buffer)) {
357
+ return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
358
+ } else if (buffer instanceof ArrayBuffer) {
359
+ return new Uint8Array(buffer);
360
+ } else {
361
+ return Uint8Array.from(buffer);
362
+ }
363
+ }
364
+ function createDataView(buffer) {
365
+ if (buffer instanceof ArrayBuffer) {
366
+ return new DataView(buffer);
367
+ }
368
+ var bufferView = ensureUint8Array(buffer);
369
+ return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength);
370
+ }
371
+
372
+ // node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs
373
+ var DEFAULT_MAX_DEPTH = 100;
374
+ var DEFAULT_INITIAL_BUFFER_SIZE = 2048;
375
+ var Encoder = (
376
+ /** @class */
377
+ function() {
378
+ function Encoder2(options) {
379
+ var _a, _b, _c, _d, _e, _f, _g, _h;
380
+ this.extensionCodec = (_a = options === null || options === void 0 ? void 0 : options.extensionCodec) !== null && _a !== void 0 ? _a : ExtensionCodec.defaultCodec;
381
+ this.context = options === null || options === void 0 ? void 0 : options.context;
382
+ this.useBigInt64 = (_b = options === null || options === void 0 ? void 0 : options.useBigInt64) !== null && _b !== void 0 ? _b : false;
383
+ this.maxDepth = (_c = options === null || options === void 0 ? void 0 : options.maxDepth) !== null && _c !== void 0 ? _c : DEFAULT_MAX_DEPTH;
384
+ this.initialBufferSize = (_d = options === null || options === void 0 ? void 0 : options.initialBufferSize) !== null && _d !== void 0 ? _d : DEFAULT_INITIAL_BUFFER_SIZE;
385
+ this.sortKeys = (_e = options === null || options === void 0 ? void 0 : options.sortKeys) !== null && _e !== void 0 ? _e : false;
386
+ this.forceFloat32 = (_f = options === null || options === void 0 ? void 0 : options.forceFloat32) !== null && _f !== void 0 ? _f : false;
387
+ this.ignoreUndefined = (_g = options === null || options === void 0 ? void 0 : options.ignoreUndefined) !== null && _g !== void 0 ? _g : false;
388
+ this.forceIntegerToFloat = (_h = options === null || options === void 0 ? void 0 : options.forceIntegerToFloat) !== null && _h !== void 0 ? _h : false;
389
+ this.pos = 0;
390
+ this.view = new DataView(new ArrayBuffer(this.initialBufferSize));
391
+ this.bytes = new Uint8Array(this.view.buffer);
392
+ }
393
+ Encoder2.prototype.reinitializeState = function() {
394
+ this.pos = 0;
395
+ };
396
+ Encoder2.prototype.encodeSharedRef = function(object) {
397
+ this.reinitializeState();
398
+ this.doEncode(object, 1);
399
+ return this.bytes.subarray(0, this.pos);
400
+ };
401
+ Encoder2.prototype.encode = function(object) {
402
+ this.reinitializeState();
403
+ this.doEncode(object, 1);
404
+ return this.bytes.slice(0, this.pos);
405
+ };
406
+ Encoder2.prototype.doEncode = function(object, depth) {
407
+ if (depth > this.maxDepth) {
408
+ throw new Error("Too deep objects in depth ".concat(depth));
409
+ }
410
+ if (object == null) {
411
+ this.encodeNil();
412
+ } else if (typeof object === "boolean") {
413
+ this.encodeBoolean(object);
414
+ } else if (typeof object === "number") {
415
+ if (!this.forceIntegerToFloat) {
416
+ this.encodeNumber(object);
417
+ } else {
418
+ this.encodeNumberAsFloat(object);
419
+ }
420
+ } else if (typeof object === "string") {
421
+ this.encodeString(object);
422
+ } else if (this.useBigInt64 && typeof object === "bigint") {
423
+ this.encodeBigInt64(object);
424
+ } else {
425
+ this.encodeObject(object, depth);
426
+ }
427
+ };
428
+ Encoder2.prototype.ensureBufferSizeToWrite = function(sizeToWrite) {
429
+ var requiredSize = this.pos + sizeToWrite;
430
+ if (this.view.byteLength < requiredSize) {
431
+ this.resizeBuffer(requiredSize * 2);
432
+ }
433
+ };
434
+ Encoder2.prototype.resizeBuffer = function(newSize) {
435
+ var newBuffer = new ArrayBuffer(newSize);
436
+ var newBytes = new Uint8Array(newBuffer);
437
+ var newView = new DataView(newBuffer);
438
+ newBytes.set(this.bytes);
439
+ this.view = newView;
440
+ this.bytes = newBytes;
441
+ };
442
+ Encoder2.prototype.encodeNil = function() {
443
+ this.writeU8(192);
444
+ };
445
+ Encoder2.prototype.encodeBoolean = function(object) {
446
+ if (object === false) {
447
+ this.writeU8(194);
448
+ } else {
449
+ this.writeU8(195);
450
+ }
451
+ };
452
+ Encoder2.prototype.encodeNumber = function(object) {
453
+ if (!this.forceIntegerToFloat && Number.isSafeInteger(object)) {
454
+ if (object >= 0) {
455
+ if (object < 128) {
456
+ this.writeU8(object);
457
+ } else if (object < 256) {
458
+ this.writeU8(204);
459
+ this.writeU8(object);
460
+ } else if (object < 65536) {
461
+ this.writeU8(205);
462
+ this.writeU16(object);
463
+ } else if (object < 4294967296) {
464
+ this.writeU8(206);
465
+ this.writeU32(object);
466
+ } else if (!this.useBigInt64) {
467
+ this.writeU8(207);
468
+ this.writeU64(object);
469
+ } else {
470
+ this.encodeNumberAsFloat(object);
471
+ }
472
+ } else {
473
+ if (object >= -32) {
474
+ this.writeU8(224 | object + 32);
475
+ } else if (object >= -128) {
476
+ this.writeU8(208);
477
+ this.writeI8(object);
478
+ } else if (object >= -32768) {
479
+ this.writeU8(209);
480
+ this.writeI16(object);
481
+ } else if (object >= -2147483648) {
482
+ this.writeU8(210);
483
+ this.writeI32(object);
484
+ } else if (!this.useBigInt64) {
485
+ this.writeU8(211);
486
+ this.writeI64(object);
487
+ } else {
488
+ this.encodeNumberAsFloat(object);
489
+ }
490
+ }
491
+ } else {
492
+ this.encodeNumberAsFloat(object);
493
+ }
494
+ };
495
+ Encoder2.prototype.encodeNumberAsFloat = function(object) {
496
+ if (this.forceFloat32) {
497
+ this.writeU8(202);
498
+ this.writeF32(object);
499
+ } else {
500
+ this.writeU8(203);
501
+ this.writeF64(object);
502
+ }
503
+ };
504
+ Encoder2.prototype.encodeBigInt64 = function(object) {
505
+ if (object >= BigInt(0)) {
506
+ this.writeU8(207);
507
+ this.writeBigUint64(object);
508
+ } else {
509
+ this.writeU8(211);
510
+ this.writeBigInt64(object);
511
+ }
512
+ };
513
+ Encoder2.prototype.writeStringHeader = function(byteLength) {
514
+ if (byteLength < 32) {
515
+ this.writeU8(160 + byteLength);
516
+ } else if (byteLength < 256) {
517
+ this.writeU8(217);
518
+ this.writeU8(byteLength);
519
+ } else if (byteLength < 65536) {
520
+ this.writeU8(218);
521
+ this.writeU16(byteLength);
522
+ } else if (byteLength < 4294967296) {
523
+ this.writeU8(219);
524
+ this.writeU32(byteLength);
525
+ } else {
526
+ throw new Error("Too long string: ".concat(byteLength, " bytes in UTF-8"));
527
+ }
528
+ };
529
+ Encoder2.prototype.encodeString = function(object) {
530
+ var maxHeaderSize = 1 + 4;
531
+ var byteLength = utf8Count(object);
532
+ this.ensureBufferSizeToWrite(maxHeaderSize + byteLength);
533
+ this.writeStringHeader(byteLength);
534
+ utf8Encode(object, this.bytes, this.pos);
535
+ this.pos += byteLength;
536
+ };
537
+ Encoder2.prototype.encodeObject = function(object, depth) {
538
+ var ext = this.extensionCodec.tryToEncode(object, this.context);
539
+ if (ext != null) {
540
+ this.encodeExtension(ext);
541
+ } else if (Array.isArray(object)) {
542
+ this.encodeArray(object, depth);
543
+ } else if (ArrayBuffer.isView(object)) {
544
+ this.encodeBinary(object);
545
+ } else if (typeof object === "object") {
546
+ this.encodeMap(object, depth);
547
+ } else {
548
+ throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(object)));
549
+ }
550
+ };
551
+ Encoder2.prototype.encodeBinary = function(object) {
552
+ var size = object.byteLength;
553
+ if (size < 256) {
554
+ this.writeU8(196);
555
+ this.writeU8(size);
556
+ } else if (size < 65536) {
557
+ this.writeU8(197);
558
+ this.writeU16(size);
559
+ } else if (size < 4294967296) {
560
+ this.writeU8(198);
561
+ this.writeU32(size);
562
+ } else {
563
+ throw new Error("Too large binary: ".concat(size));
564
+ }
565
+ var bytes = ensureUint8Array(object);
566
+ this.writeU8a(bytes);
567
+ };
568
+ Encoder2.prototype.encodeArray = function(object, depth) {
569
+ var size = object.length;
570
+ if (size < 16) {
571
+ this.writeU8(144 + size);
572
+ } else if (size < 65536) {
573
+ this.writeU8(220);
574
+ this.writeU16(size);
575
+ } else if (size < 4294967296) {
576
+ this.writeU8(221);
577
+ this.writeU32(size);
578
+ } else {
579
+ throw new Error("Too large array: ".concat(size));
580
+ }
581
+ for (var _i = 0, object_1 = object; _i < object_1.length; _i++) {
582
+ var item = object_1[_i];
583
+ this.doEncode(item, depth + 1);
584
+ }
585
+ };
586
+ Encoder2.prototype.countWithoutUndefined = function(object, keys) {
587
+ var count = 0;
588
+ for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
589
+ var key = keys_1[_i];
590
+ if (object[key] !== void 0) {
591
+ count++;
592
+ }
593
+ }
594
+ return count;
595
+ };
596
+ Encoder2.prototype.encodeMap = function(object, depth) {
597
+ var keys = Object.keys(object);
598
+ if (this.sortKeys) {
599
+ keys.sort();
600
+ }
601
+ var size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length;
602
+ if (size < 16) {
603
+ this.writeU8(128 + size);
604
+ } else if (size < 65536) {
605
+ this.writeU8(222);
606
+ this.writeU16(size);
607
+ } else if (size < 4294967296) {
608
+ this.writeU8(223);
609
+ this.writeU32(size);
610
+ } else {
611
+ throw new Error("Too large map object: ".concat(size));
612
+ }
613
+ for (var _i = 0, keys_2 = keys; _i < keys_2.length; _i++) {
614
+ var key = keys_2[_i];
615
+ var value = object[key];
616
+ if (!(this.ignoreUndefined && value === void 0)) {
617
+ this.encodeString(key);
618
+ this.doEncode(value, depth + 1);
619
+ }
620
+ }
621
+ };
622
+ Encoder2.prototype.encodeExtension = function(ext) {
623
+ var size = ext.data.length;
624
+ if (size === 1) {
625
+ this.writeU8(212);
626
+ } else if (size === 2) {
627
+ this.writeU8(213);
628
+ } else if (size === 4) {
629
+ this.writeU8(214);
630
+ } else if (size === 8) {
631
+ this.writeU8(215);
632
+ } else if (size === 16) {
633
+ this.writeU8(216);
634
+ } else if (size < 256) {
635
+ this.writeU8(199);
636
+ this.writeU8(size);
637
+ } else if (size < 65536) {
638
+ this.writeU8(200);
639
+ this.writeU16(size);
640
+ } else if (size < 4294967296) {
641
+ this.writeU8(201);
642
+ this.writeU32(size);
643
+ } else {
644
+ throw new Error("Too large extension object: ".concat(size));
645
+ }
646
+ this.writeI8(ext.type);
647
+ this.writeU8a(ext.data);
648
+ };
649
+ Encoder2.prototype.writeU8 = function(value) {
650
+ this.ensureBufferSizeToWrite(1);
651
+ this.view.setUint8(this.pos, value);
652
+ this.pos++;
653
+ };
654
+ Encoder2.prototype.writeU8a = function(values) {
655
+ var size = values.length;
656
+ this.ensureBufferSizeToWrite(size);
657
+ this.bytes.set(values, this.pos);
658
+ this.pos += size;
659
+ };
660
+ Encoder2.prototype.writeI8 = function(value) {
661
+ this.ensureBufferSizeToWrite(1);
662
+ this.view.setInt8(this.pos, value);
663
+ this.pos++;
664
+ };
665
+ Encoder2.prototype.writeU16 = function(value) {
666
+ this.ensureBufferSizeToWrite(2);
667
+ this.view.setUint16(this.pos, value);
668
+ this.pos += 2;
669
+ };
670
+ Encoder2.prototype.writeI16 = function(value) {
671
+ this.ensureBufferSizeToWrite(2);
672
+ this.view.setInt16(this.pos, value);
673
+ this.pos += 2;
674
+ };
675
+ Encoder2.prototype.writeU32 = function(value) {
676
+ this.ensureBufferSizeToWrite(4);
677
+ this.view.setUint32(this.pos, value);
678
+ this.pos += 4;
679
+ };
680
+ Encoder2.prototype.writeI32 = function(value) {
681
+ this.ensureBufferSizeToWrite(4);
682
+ this.view.setInt32(this.pos, value);
683
+ this.pos += 4;
684
+ };
685
+ Encoder2.prototype.writeF32 = function(value) {
686
+ this.ensureBufferSizeToWrite(4);
687
+ this.view.setFloat32(this.pos, value);
688
+ this.pos += 4;
689
+ };
690
+ Encoder2.prototype.writeF64 = function(value) {
691
+ this.ensureBufferSizeToWrite(8);
692
+ this.view.setFloat64(this.pos, value);
693
+ this.pos += 8;
694
+ };
695
+ Encoder2.prototype.writeU64 = function(value) {
696
+ this.ensureBufferSizeToWrite(8);
697
+ setUint64(this.view, this.pos, value);
698
+ this.pos += 8;
699
+ };
700
+ Encoder2.prototype.writeI64 = function(value) {
701
+ this.ensureBufferSizeToWrite(8);
702
+ setInt64(this.view, this.pos, value);
703
+ this.pos += 8;
704
+ };
705
+ Encoder2.prototype.writeBigUint64 = function(value) {
706
+ this.ensureBufferSizeToWrite(8);
707
+ this.view.setBigUint64(this.pos, value);
708
+ this.pos += 8;
709
+ };
710
+ Encoder2.prototype.writeBigInt64 = function(value) {
711
+ this.ensureBufferSizeToWrite(8);
712
+ this.view.setBigInt64(this.pos, value);
713
+ this.pos += 8;
714
+ };
715
+ return Encoder2;
716
+ }()
717
+ );
718
+
719
+ // node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs
720
+ function encode(value, options) {
721
+ var encoder = new Encoder(options);
722
+ return encoder.encodeSharedRef(value);
723
+ }
724
+
725
+ // node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs
726
+ function prettyByte(byte) {
727
+ return "".concat(byte < 0 ? "-" : "", "0x").concat(Math.abs(byte).toString(16).padStart(2, "0"));
728
+ }
729
+
730
+ // node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs
731
+ var DEFAULT_MAX_KEY_LENGTH = 16;
732
+ var DEFAULT_MAX_LENGTH_PER_KEY = 16;
733
+ var CachedKeyDecoder = (
734
+ /** @class */
735
+ function() {
736
+ function CachedKeyDecoder2(maxKeyLength, maxLengthPerKey) {
737
+ if (maxKeyLength === void 0) {
738
+ maxKeyLength = DEFAULT_MAX_KEY_LENGTH;
739
+ }
740
+ if (maxLengthPerKey === void 0) {
741
+ maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY;
742
+ }
743
+ this.maxKeyLength = maxKeyLength;
744
+ this.maxLengthPerKey = maxLengthPerKey;
745
+ this.hit = 0;
746
+ this.miss = 0;
747
+ this.caches = [];
748
+ for (var i = 0; i < this.maxKeyLength; i++) {
749
+ this.caches.push([]);
750
+ }
751
+ }
752
+ CachedKeyDecoder2.prototype.canBeCached = function(byteLength) {
753
+ return byteLength > 0 && byteLength <= this.maxKeyLength;
754
+ };
755
+ CachedKeyDecoder2.prototype.find = function(bytes, inputOffset, byteLength) {
756
+ var records = this.caches[byteLength - 1];
757
+ FIND_CHUNK:
758
+ for (var _i = 0, records_1 = records; _i < records_1.length; _i++) {
759
+ var record = records_1[_i];
760
+ var recordBytes = record.bytes;
761
+ for (var j = 0; j < byteLength; j++) {
762
+ if (recordBytes[j] !== bytes[inputOffset + j]) {
763
+ continue FIND_CHUNK;
764
+ }
765
+ }
766
+ return record.str;
767
+ }
768
+ return null;
769
+ };
770
+ CachedKeyDecoder2.prototype.store = function(bytes, value) {
771
+ var records = this.caches[bytes.length - 1];
772
+ var record = { bytes, str: value };
773
+ if (records.length >= this.maxLengthPerKey) {
774
+ records[Math.random() * records.length | 0] = record;
775
+ } else {
776
+ records.push(record);
777
+ }
778
+ };
779
+ CachedKeyDecoder2.prototype.decode = function(bytes, inputOffset, byteLength) {
780
+ var cachedValue = this.find(bytes, inputOffset, byteLength);
781
+ if (cachedValue != null) {
782
+ this.hit++;
783
+ return cachedValue;
784
+ }
785
+ this.miss++;
786
+ var str = utf8DecodeJs(bytes, inputOffset, byteLength);
787
+ var slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength);
788
+ this.store(slicedCopyOfBytes, str);
789
+ return str;
790
+ };
791
+ return CachedKeyDecoder2;
792
+ }()
793
+ );
794
+
795
+ // node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs
796
+ var __awaiter = function(thisArg, _arguments, P, generator) {
797
+ function adopt(value) {
798
+ return value instanceof P ? value : new P(function(resolve) {
799
+ resolve(value);
800
+ });
801
+ }
802
+ return new (P || (P = Promise))(function(resolve, reject) {
803
+ function fulfilled(value) {
804
+ try {
805
+ step(generator.next(value));
806
+ } catch (e) {
807
+ reject(e);
808
+ }
809
+ }
810
+ function rejected(value) {
811
+ try {
812
+ step(generator["throw"](value));
813
+ } catch (e) {
814
+ reject(e);
815
+ }
816
+ }
817
+ function step(result) {
818
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
819
+ }
820
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
821
+ });
822
+ };
823
+ var __generator = function(thisArg, body) {
824
+ var _ = { label: 0, sent: function() {
825
+ if (t[0] & 1)
826
+ throw t[1];
827
+ return t[1];
828
+ }, trys: [], ops: [] }, f, y, t, g;
829
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
830
+ return this;
831
+ }), g;
832
+ function verb(n) {
833
+ return function(v) {
834
+ return step([n, v]);
835
+ };
836
+ }
837
+ function step(op) {
838
+ if (f)
839
+ throw new TypeError("Generator is already executing.");
840
+ while (g && (g = 0, op[0] && (_ = 0)), _)
841
+ try {
842
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
843
+ return t;
844
+ if (y = 0, t)
845
+ op = [op[0] & 2, t.value];
846
+ switch (op[0]) {
847
+ case 0:
848
+ case 1:
849
+ t = op;
850
+ break;
851
+ case 4:
852
+ _.label++;
853
+ return { value: op[1], done: false };
854
+ case 5:
855
+ _.label++;
856
+ y = op[1];
857
+ op = [0];
858
+ continue;
859
+ case 7:
860
+ op = _.ops.pop();
861
+ _.trys.pop();
862
+ continue;
863
+ default:
864
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
865
+ _ = 0;
866
+ continue;
867
+ }
868
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
869
+ _.label = op[1];
870
+ break;
871
+ }
872
+ if (op[0] === 6 && _.label < t[1]) {
873
+ _.label = t[1];
874
+ t = op;
875
+ break;
876
+ }
877
+ if (t && _.label < t[2]) {
878
+ _.label = t[2];
879
+ _.ops.push(op);
880
+ break;
881
+ }
882
+ if (t[2])
883
+ _.ops.pop();
884
+ _.trys.pop();
885
+ continue;
886
+ }
887
+ op = body.call(thisArg, _);
888
+ } catch (e) {
889
+ op = [6, e];
890
+ y = 0;
891
+ } finally {
892
+ f = t = 0;
893
+ }
894
+ if (op[0] & 5)
895
+ throw op[1];
896
+ return { value: op[0] ? op[1] : void 0, done: true };
897
+ }
898
+ };
899
+ var __asyncValues = function(o) {
900
+ if (!Symbol.asyncIterator)
901
+ throw new TypeError("Symbol.asyncIterator is not defined.");
902
+ var m = o[Symbol.asyncIterator], i;
903
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
904
+ return this;
905
+ }, i);
906
+ function verb(n) {
907
+ i[n] = o[n] && function(v) {
908
+ return new Promise(function(resolve, reject) {
909
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
910
+ });
911
+ };
912
+ }
913
+ function settle(resolve, reject, d, v) {
914
+ Promise.resolve(v).then(function(v2) {
915
+ resolve({ value: v2, done: d });
916
+ }, reject);
917
+ }
918
+ };
919
+ var __await = function(v) {
920
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
921
+ };
922
+ var __asyncGenerator = function(thisArg, _arguments, generator) {
923
+ if (!Symbol.asyncIterator)
924
+ throw new TypeError("Symbol.asyncIterator is not defined.");
925
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
926
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
927
+ return this;
928
+ }, i;
929
+ function verb(n) {
930
+ if (g[n])
931
+ i[n] = function(v) {
932
+ return new Promise(function(a, b) {
933
+ q.push([n, v, a, b]) > 1 || resume(n, v);
934
+ });
935
+ };
936
+ }
937
+ function resume(n, v) {
938
+ try {
939
+ step(g[n](v));
940
+ } catch (e) {
941
+ settle(q[0][3], e);
942
+ }
943
+ }
944
+ function step(r) {
945
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
946
+ }
947
+ function fulfill(value) {
948
+ resume("next", value);
949
+ }
950
+ function reject(value) {
951
+ resume("throw", value);
952
+ }
953
+ function settle(f, v) {
954
+ if (f(v), q.shift(), q.length)
955
+ resume(q[0][0], q[0][1]);
956
+ }
957
+ };
958
+ var STATE_ARRAY = "array";
959
+ var STATE_MAP_KEY = "map_key";
960
+ var STATE_MAP_VALUE = "map_value";
961
+ var isValidMapKeyType = function(key) {
962
+ return typeof key === "string" || typeof key === "number";
963
+ };
964
+ var HEAD_BYTE_REQUIRED = -1;
965
+ var EMPTY_VIEW = new DataView(new ArrayBuffer(0));
966
+ var EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer);
967
+ try {
968
+ EMPTY_VIEW.getInt8(0);
969
+ } catch (e) {
970
+ if (!(e instanceof RangeError)) {
971
+ throw new Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access");
972
+ }
973
+ }
974
+ var DataViewIndexOutOfBoundsError = RangeError;
975
+ var MORE_DATA = new DataViewIndexOutOfBoundsError("Insufficient data");
976
+ var sharedCachedKeyDecoder = new CachedKeyDecoder();
977
+ var Decoder = (
978
+ /** @class */
979
+ function() {
980
+ function Decoder2(options) {
981
+ var _a, _b, _c, _d, _e, _f, _g;
982
+ this.totalPos = 0;
983
+ this.pos = 0;
984
+ this.view = EMPTY_VIEW;
985
+ this.bytes = EMPTY_BYTES;
986
+ this.headByte = HEAD_BYTE_REQUIRED;
987
+ this.stack = [];
988
+ this.extensionCodec = (_a = options === null || options === void 0 ? void 0 : options.extensionCodec) !== null && _a !== void 0 ? _a : ExtensionCodec.defaultCodec;
989
+ this.context = options === null || options === void 0 ? void 0 : options.context;
990
+ this.useBigInt64 = (_b = options === null || options === void 0 ? void 0 : options.useBigInt64) !== null && _b !== void 0 ? _b : false;
991
+ this.maxStrLength = (_c = options === null || options === void 0 ? void 0 : options.maxStrLength) !== null && _c !== void 0 ? _c : UINT32_MAX;
992
+ this.maxBinLength = (_d = options === null || options === void 0 ? void 0 : options.maxBinLength) !== null && _d !== void 0 ? _d : UINT32_MAX;
993
+ this.maxArrayLength = (_e = options === null || options === void 0 ? void 0 : options.maxArrayLength) !== null && _e !== void 0 ? _e : UINT32_MAX;
994
+ this.maxMapLength = (_f = options === null || options === void 0 ? void 0 : options.maxMapLength) !== null && _f !== void 0 ? _f : UINT32_MAX;
995
+ this.maxExtLength = (_g = options === null || options === void 0 ? void 0 : options.maxExtLength) !== null && _g !== void 0 ? _g : UINT32_MAX;
996
+ this.keyDecoder = (options === null || options === void 0 ? void 0 : options.keyDecoder) !== void 0 ? options.keyDecoder : sharedCachedKeyDecoder;
997
+ }
998
+ Decoder2.prototype.reinitializeState = function() {
999
+ this.totalPos = 0;
1000
+ this.headByte = HEAD_BYTE_REQUIRED;
1001
+ this.stack.length = 0;
1002
+ };
1003
+ Decoder2.prototype.setBuffer = function(buffer) {
1004
+ this.bytes = ensureUint8Array(buffer);
1005
+ this.view = createDataView(this.bytes);
1006
+ this.pos = 0;
1007
+ };
1008
+ Decoder2.prototype.appendBuffer = function(buffer) {
1009
+ if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) {
1010
+ this.setBuffer(buffer);
1011
+ } else {
1012
+ var remainingData = this.bytes.subarray(this.pos);
1013
+ var newData = ensureUint8Array(buffer);
1014
+ var newBuffer = new Uint8Array(remainingData.length + newData.length);
1015
+ newBuffer.set(remainingData);
1016
+ newBuffer.set(newData, remainingData.length);
1017
+ this.setBuffer(newBuffer);
1018
+ }
1019
+ };
1020
+ Decoder2.prototype.hasRemaining = function(size) {
1021
+ return this.view.byteLength - this.pos >= size;
1022
+ };
1023
+ Decoder2.prototype.createExtraByteError = function(posToShow) {
1024
+ var _a = this, view = _a.view, pos = _a.pos;
1025
+ return new RangeError("Extra ".concat(view.byteLength - pos, " of ").concat(view.byteLength, " byte(s) found at buffer[").concat(posToShow, "]"));
1026
+ };
1027
+ Decoder2.prototype.decode = function(buffer) {
1028
+ this.reinitializeState();
1029
+ this.setBuffer(buffer);
1030
+ var object = this.doDecodeSync();
1031
+ if (this.hasRemaining(1)) {
1032
+ throw this.createExtraByteError(this.pos);
1033
+ }
1034
+ return object;
1035
+ };
1036
+ Decoder2.prototype.decodeMulti = function(buffer) {
1037
+ return __generator(this, function(_a) {
1038
+ switch (_a.label) {
1039
+ case 0:
1040
+ this.reinitializeState();
1041
+ this.setBuffer(buffer);
1042
+ _a.label = 1;
1043
+ case 1:
1044
+ if (!this.hasRemaining(1))
1045
+ return [3, 3];
1046
+ return [4, this.doDecodeSync()];
1047
+ case 2:
1048
+ _a.sent();
1049
+ return [3, 1];
1050
+ case 3:
1051
+ return [
1052
+ 2
1053
+ /*return*/
1054
+ ];
1055
+ }
1056
+ });
1057
+ };
1058
+ Decoder2.prototype.decodeAsync = function(stream) {
1059
+ var _a, stream_1, stream_1_1;
1060
+ var _b, e_1, _c, _d;
1061
+ return __awaiter(this, void 0, void 0, function() {
1062
+ var decoded, object, buffer, e_1_1, _e, headByte, pos, totalPos;
1063
+ return __generator(this, function(_f) {
1064
+ switch (_f.label) {
1065
+ case 0:
1066
+ decoded = false;
1067
+ _f.label = 1;
1068
+ case 1:
1069
+ _f.trys.push([1, 6, 7, 12]);
1070
+ _a = true, stream_1 = __asyncValues(stream);
1071
+ _f.label = 2;
1072
+ case 2:
1073
+ return [4, stream_1.next()];
1074
+ case 3:
1075
+ if (!(stream_1_1 = _f.sent(), _b = stream_1_1.done, !_b))
1076
+ return [3, 5];
1077
+ _d = stream_1_1.value;
1078
+ _a = false;
1079
+ try {
1080
+ buffer = _d;
1081
+ if (decoded) {
1082
+ throw this.createExtraByteError(this.totalPos);
1083
+ }
1084
+ this.appendBuffer(buffer);
1085
+ try {
1086
+ object = this.doDecodeSync();
1087
+ decoded = true;
1088
+ } catch (e) {
1089
+ if (!(e instanceof DataViewIndexOutOfBoundsError)) {
1090
+ throw e;
1091
+ }
1092
+ }
1093
+ this.totalPos += this.pos;
1094
+ } finally {
1095
+ _a = true;
1096
+ }
1097
+ _f.label = 4;
1098
+ case 4:
1099
+ return [3, 2];
1100
+ case 5:
1101
+ return [3, 12];
1102
+ case 6:
1103
+ e_1_1 = _f.sent();
1104
+ e_1 = { error: e_1_1 };
1105
+ return [3, 12];
1106
+ case 7:
1107
+ _f.trys.push([7, , 10, 11]);
1108
+ if (!(!_a && !_b && (_c = stream_1.return)))
1109
+ return [3, 9];
1110
+ return [4, _c.call(stream_1)];
1111
+ case 8:
1112
+ _f.sent();
1113
+ _f.label = 9;
1114
+ case 9:
1115
+ return [3, 11];
1116
+ case 10:
1117
+ if (e_1)
1118
+ throw e_1.error;
1119
+ return [
1120
+ 7
1121
+ /*endfinally*/
1122
+ ];
1123
+ case 11:
1124
+ return [
1125
+ 7
1126
+ /*endfinally*/
1127
+ ];
1128
+ case 12:
1129
+ if (decoded) {
1130
+ if (this.hasRemaining(1)) {
1131
+ throw this.createExtraByteError(this.totalPos);
1132
+ }
1133
+ return [2, object];
1134
+ }
1135
+ _e = this, headByte = _e.headByte, pos = _e.pos, totalPos = _e.totalPos;
1136
+ throw new RangeError("Insufficient data in parsing ".concat(prettyByte(headByte), " at ").concat(totalPos, " (").concat(pos, " in the current buffer)"));
1137
+ }
1138
+ });
1139
+ });
1140
+ };
1141
+ Decoder2.prototype.decodeArrayStream = function(stream) {
1142
+ return this.decodeMultiAsync(stream, true);
1143
+ };
1144
+ Decoder2.prototype.decodeStream = function(stream) {
1145
+ return this.decodeMultiAsync(stream, false);
1146
+ };
1147
+ Decoder2.prototype.decodeMultiAsync = function(stream, isArray) {
1148
+ return __asyncGenerator(this, arguments, function decodeMultiAsync_1() {
1149
+ var isArrayHeaderRequired, arrayItemsLeft, _a, stream_2, stream_2_1, buffer, e_2, e_3_1;
1150
+ var _b, e_3, _c, _d;
1151
+ return __generator(this, function(_e) {
1152
+ switch (_e.label) {
1153
+ case 0:
1154
+ isArrayHeaderRequired = isArray;
1155
+ arrayItemsLeft = -1;
1156
+ _e.label = 1;
1157
+ case 1:
1158
+ _e.trys.push([1, 15, 16, 21]);
1159
+ _a = true, stream_2 = __asyncValues(stream);
1160
+ _e.label = 2;
1161
+ case 2:
1162
+ return [4, __await(stream_2.next())];
1163
+ case 3:
1164
+ if (!(stream_2_1 = _e.sent(), _b = stream_2_1.done, !_b))
1165
+ return [3, 14];
1166
+ _d = stream_2_1.value;
1167
+ _a = false;
1168
+ _e.label = 4;
1169
+ case 4:
1170
+ _e.trys.push([4, , 12, 13]);
1171
+ buffer = _d;
1172
+ if (isArray && arrayItemsLeft === 0) {
1173
+ throw this.createExtraByteError(this.totalPos);
1174
+ }
1175
+ this.appendBuffer(buffer);
1176
+ if (isArrayHeaderRequired) {
1177
+ arrayItemsLeft = this.readArraySize();
1178
+ isArrayHeaderRequired = false;
1179
+ this.complete();
1180
+ }
1181
+ _e.label = 5;
1182
+ case 5:
1183
+ _e.trys.push([5, 10, , 11]);
1184
+ _e.label = 6;
1185
+ case 6:
1186
+ if (false)
1187
+ return [3, 9];
1188
+ return [4, __await(this.doDecodeSync())];
1189
+ case 7:
1190
+ return [4, _e.sent()];
1191
+ case 8:
1192
+ _e.sent();
1193
+ if (--arrayItemsLeft === 0) {
1194
+ return [3, 9];
1195
+ }
1196
+ return [3, 6];
1197
+ case 9:
1198
+ return [3, 11];
1199
+ case 10:
1200
+ e_2 = _e.sent();
1201
+ if (!(e_2 instanceof DataViewIndexOutOfBoundsError)) {
1202
+ throw e_2;
1203
+ }
1204
+ return [3, 11];
1205
+ case 11:
1206
+ this.totalPos += this.pos;
1207
+ return [3, 13];
1208
+ case 12:
1209
+ _a = true;
1210
+ return [
1211
+ 7
1212
+ /*endfinally*/
1213
+ ];
1214
+ case 13:
1215
+ return [3, 2];
1216
+ case 14:
1217
+ return [3, 21];
1218
+ case 15:
1219
+ e_3_1 = _e.sent();
1220
+ e_3 = { error: e_3_1 };
1221
+ return [3, 21];
1222
+ case 16:
1223
+ _e.trys.push([16, , 19, 20]);
1224
+ if (!(!_a && !_b && (_c = stream_2.return)))
1225
+ return [3, 18];
1226
+ return [4, __await(_c.call(stream_2))];
1227
+ case 17:
1228
+ _e.sent();
1229
+ _e.label = 18;
1230
+ case 18:
1231
+ return [3, 20];
1232
+ case 19:
1233
+ if (e_3)
1234
+ throw e_3.error;
1235
+ return [
1236
+ 7
1237
+ /*endfinally*/
1238
+ ];
1239
+ case 20:
1240
+ return [
1241
+ 7
1242
+ /*endfinally*/
1243
+ ];
1244
+ case 21:
1245
+ return [
1246
+ 2
1247
+ /*return*/
1248
+ ];
1249
+ }
1250
+ });
1251
+ });
1252
+ };
1253
+ Decoder2.prototype.doDecodeSync = function() {
1254
+ DECODE:
1255
+ while (true) {
1256
+ var headByte = this.readHeadByte();
1257
+ var object = void 0;
1258
+ if (headByte >= 224) {
1259
+ object = headByte - 256;
1260
+ } else if (headByte < 192) {
1261
+ if (headByte < 128) {
1262
+ object = headByte;
1263
+ } else if (headByte < 144) {
1264
+ var size = headByte - 128;
1265
+ if (size !== 0) {
1266
+ this.pushMapState(size);
1267
+ this.complete();
1268
+ continue DECODE;
1269
+ } else {
1270
+ object = {};
1271
+ }
1272
+ } else if (headByte < 160) {
1273
+ var size = headByte - 144;
1274
+ if (size !== 0) {
1275
+ this.pushArrayState(size);
1276
+ this.complete();
1277
+ continue DECODE;
1278
+ } else {
1279
+ object = [];
1280
+ }
1281
+ } else {
1282
+ var byteLength = headByte - 160;
1283
+ object = this.decodeUtf8String(byteLength, 0);
1284
+ }
1285
+ } else if (headByte === 192) {
1286
+ object = null;
1287
+ } else if (headByte === 194) {
1288
+ object = false;
1289
+ } else if (headByte === 195) {
1290
+ object = true;
1291
+ } else if (headByte === 202) {
1292
+ object = this.readF32();
1293
+ } else if (headByte === 203) {
1294
+ object = this.readF64();
1295
+ } else if (headByte === 204) {
1296
+ object = this.readU8();
1297
+ } else if (headByte === 205) {
1298
+ object = this.readU16();
1299
+ } else if (headByte === 206) {
1300
+ object = this.readU32();
1301
+ } else if (headByte === 207) {
1302
+ if (this.useBigInt64) {
1303
+ object = this.readU64AsBigInt();
1304
+ } else {
1305
+ object = this.readU64();
1306
+ }
1307
+ } else if (headByte === 208) {
1308
+ object = this.readI8();
1309
+ } else if (headByte === 209) {
1310
+ object = this.readI16();
1311
+ } else if (headByte === 210) {
1312
+ object = this.readI32();
1313
+ } else if (headByte === 211) {
1314
+ if (this.useBigInt64) {
1315
+ object = this.readI64AsBigInt();
1316
+ } else {
1317
+ object = this.readI64();
1318
+ }
1319
+ } else if (headByte === 217) {
1320
+ var byteLength = this.lookU8();
1321
+ object = this.decodeUtf8String(byteLength, 1);
1322
+ } else if (headByte === 218) {
1323
+ var byteLength = this.lookU16();
1324
+ object = this.decodeUtf8String(byteLength, 2);
1325
+ } else if (headByte === 219) {
1326
+ var byteLength = this.lookU32();
1327
+ object = this.decodeUtf8String(byteLength, 4);
1328
+ } else if (headByte === 220) {
1329
+ var size = this.readU16();
1330
+ if (size !== 0) {
1331
+ this.pushArrayState(size);
1332
+ this.complete();
1333
+ continue DECODE;
1334
+ } else {
1335
+ object = [];
1336
+ }
1337
+ } else if (headByte === 221) {
1338
+ var size = this.readU32();
1339
+ if (size !== 0) {
1340
+ this.pushArrayState(size);
1341
+ this.complete();
1342
+ continue DECODE;
1343
+ } else {
1344
+ object = [];
1345
+ }
1346
+ } else if (headByte === 222) {
1347
+ var size = this.readU16();
1348
+ if (size !== 0) {
1349
+ this.pushMapState(size);
1350
+ this.complete();
1351
+ continue DECODE;
1352
+ } else {
1353
+ object = {};
1354
+ }
1355
+ } else if (headByte === 223) {
1356
+ var size = this.readU32();
1357
+ if (size !== 0) {
1358
+ this.pushMapState(size);
1359
+ this.complete();
1360
+ continue DECODE;
1361
+ } else {
1362
+ object = {};
1363
+ }
1364
+ } else if (headByte === 196) {
1365
+ var size = this.lookU8();
1366
+ object = this.decodeBinary(size, 1);
1367
+ } else if (headByte === 197) {
1368
+ var size = this.lookU16();
1369
+ object = this.decodeBinary(size, 2);
1370
+ } else if (headByte === 198) {
1371
+ var size = this.lookU32();
1372
+ object = this.decodeBinary(size, 4);
1373
+ } else if (headByte === 212) {
1374
+ object = this.decodeExtension(1, 0);
1375
+ } else if (headByte === 213) {
1376
+ object = this.decodeExtension(2, 0);
1377
+ } else if (headByte === 214) {
1378
+ object = this.decodeExtension(4, 0);
1379
+ } else if (headByte === 215) {
1380
+ object = this.decodeExtension(8, 0);
1381
+ } else if (headByte === 216) {
1382
+ object = this.decodeExtension(16, 0);
1383
+ } else if (headByte === 199) {
1384
+ var size = this.lookU8();
1385
+ object = this.decodeExtension(size, 1);
1386
+ } else if (headByte === 200) {
1387
+ var size = this.lookU16();
1388
+ object = this.decodeExtension(size, 2);
1389
+ } else if (headByte === 201) {
1390
+ var size = this.lookU32();
1391
+ object = this.decodeExtension(size, 4);
1392
+ } else {
1393
+ throw new DecodeError("Unrecognized type byte: ".concat(prettyByte(headByte)));
1394
+ }
1395
+ this.complete();
1396
+ var stack = this.stack;
1397
+ while (stack.length > 0) {
1398
+ var state = stack[stack.length - 1];
1399
+ if (state.type === STATE_ARRAY) {
1400
+ state.array[state.position] = object;
1401
+ state.position++;
1402
+ if (state.position === state.size) {
1403
+ stack.pop();
1404
+ object = state.array;
1405
+ } else {
1406
+ continue DECODE;
1407
+ }
1408
+ } else if (state.type === STATE_MAP_KEY) {
1409
+ if (!isValidMapKeyType(object)) {
1410
+ throw new DecodeError("The type of key must be string or number but " + typeof object);
1411
+ }
1412
+ if (object === "__proto__") {
1413
+ throw new DecodeError("The key __proto__ is not allowed");
1414
+ }
1415
+ state.key = object;
1416
+ state.type = STATE_MAP_VALUE;
1417
+ continue DECODE;
1418
+ } else {
1419
+ state.map[state.key] = object;
1420
+ state.readCount++;
1421
+ if (state.readCount === state.size) {
1422
+ stack.pop();
1423
+ object = state.map;
1424
+ } else {
1425
+ state.key = null;
1426
+ state.type = STATE_MAP_KEY;
1427
+ continue DECODE;
1428
+ }
1429
+ }
1430
+ }
1431
+ return object;
1432
+ }
1433
+ };
1434
+ Decoder2.prototype.readHeadByte = function() {
1435
+ if (this.headByte === HEAD_BYTE_REQUIRED) {
1436
+ this.headByte = this.readU8();
1437
+ }
1438
+ return this.headByte;
1439
+ };
1440
+ Decoder2.prototype.complete = function() {
1441
+ this.headByte = HEAD_BYTE_REQUIRED;
1442
+ };
1443
+ Decoder2.prototype.readArraySize = function() {
1444
+ var headByte = this.readHeadByte();
1445
+ switch (headByte) {
1446
+ case 220:
1447
+ return this.readU16();
1448
+ case 221:
1449
+ return this.readU32();
1450
+ default: {
1451
+ if (headByte < 160) {
1452
+ return headByte - 144;
1453
+ } else {
1454
+ throw new DecodeError("Unrecognized array type byte: ".concat(prettyByte(headByte)));
1455
+ }
1456
+ }
1457
+ }
1458
+ };
1459
+ Decoder2.prototype.pushMapState = function(size) {
1460
+ if (size > this.maxMapLength) {
1461
+ throw new DecodeError("Max length exceeded: map length (".concat(size, ") > maxMapLengthLength (").concat(this.maxMapLength, ")"));
1462
+ }
1463
+ this.stack.push({
1464
+ type: STATE_MAP_KEY,
1465
+ size,
1466
+ key: null,
1467
+ readCount: 0,
1468
+ map: {}
1469
+ });
1470
+ };
1471
+ Decoder2.prototype.pushArrayState = function(size) {
1472
+ if (size > this.maxArrayLength) {
1473
+ throw new DecodeError("Max length exceeded: array length (".concat(size, ") > maxArrayLength (").concat(this.maxArrayLength, ")"));
1474
+ }
1475
+ this.stack.push({
1476
+ type: STATE_ARRAY,
1477
+ size,
1478
+ array: new Array(size),
1479
+ position: 0
1480
+ });
1481
+ };
1482
+ Decoder2.prototype.decodeUtf8String = function(byteLength, headerOffset) {
1483
+ var _a;
1484
+ if (byteLength > this.maxStrLength) {
1485
+ throw new DecodeError("Max length exceeded: UTF-8 byte length (".concat(byteLength, ") > maxStrLength (").concat(this.maxStrLength, ")"));
1486
+ }
1487
+ if (this.bytes.byteLength < this.pos + headerOffset + byteLength) {
1488
+ throw MORE_DATA;
1489
+ }
1490
+ var offset = this.pos + headerOffset;
1491
+ var object;
1492
+ if (this.stateIsMapKey() && ((_a = this.keyDecoder) === null || _a === void 0 ? void 0 : _a.canBeCached(byteLength))) {
1493
+ object = this.keyDecoder.decode(this.bytes, offset, byteLength);
1494
+ } else {
1495
+ object = utf8Decode(this.bytes, offset, byteLength);
1496
+ }
1497
+ this.pos += headerOffset + byteLength;
1498
+ return object;
1499
+ };
1500
+ Decoder2.prototype.stateIsMapKey = function() {
1501
+ if (this.stack.length > 0) {
1502
+ var state = this.stack[this.stack.length - 1];
1503
+ return state.type === STATE_MAP_KEY;
1504
+ }
1505
+ return false;
1506
+ };
1507
+ Decoder2.prototype.decodeBinary = function(byteLength, headOffset) {
1508
+ if (byteLength > this.maxBinLength) {
1509
+ throw new DecodeError("Max length exceeded: bin length (".concat(byteLength, ") > maxBinLength (").concat(this.maxBinLength, ")"));
1510
+ }
1511
+ if (!this.hasRemaining(byteLength + headOffset)) {
1512
+ throw MORE_DATA;
1513
+ }
1514
+ var offset = this.pos + headOffset;
1515
+ var object = this.bytes.subarray(offset, offset + byteLength);
1516
+ this.pos += headOffset + byteLength;
1517
+ return object;
1518
+ };
1519
+ Decoder2.prototype.decodeExtension = function(size, headOffset) {
1520
+ if (size > this.maxExtLength) {
1521
+ throw new DecodeError("Max length exceeded: ext length (".concat(size, ") > maxExtLength (").concat(this.maxExtLength, ")"));
1522
+ }
1523
+ var extType = this.view.getInt8(this.pos + headOffset);
1524
+ var data = this.decodeBinary(
1525
+ size,
1526
+ headOffset + 1
1527
+ /* extType */
1528
+ );
1529
+ return this.extensionCodec.decode(data, extType, this.context);
1530
+ };
1531
+ Decoder2.prototype.lookU8 = function() {
1532
+ return this.view.getUint8(this.pos);
1533
+ };
1534
+ Decoder2.prototype.lookU16 = function() {
1535
+ return this.view.getUint16(this.pos);
1536
+ };
1537
+ Decoder2.prototype.lookU32 = function() {
1538
+ return this.view.getUint32(this.pos);
1539
+ };
1540
+ Decoder2.prototype.readU8 = function() {
1541
+ var value = this.view.getUint8(this.pos);
1542
+ this.pos++;
1543
+ return value;
1544
+ };
1545
+ Decoder2.prototype.readI8 = function() {
1546
+ var value = this.view.getInt8(this.pos);
1547
+ this.pos++;
1548
+ return value;
1549
+ };
1550
+ Decoder2.prototype.readU16 = function() {
1551
+ var value = this.view.getUint16(this.pos);
1552
+ this.pos += 2;
1553
+ return value;
1554
+ };
1555
+ Decoder2.prototype.readI16 = function() {
1556
+ var value = this.view.getInt16(this.pos);
1557
+ this.pos += 2;
1558
+ return value;
1559
+ };
1560
+ Decoder2.prototype.readU32 = function() {
1561
+ var value = this.view.getUint32(this.pos);
1562
+ this.pos += 4;
1563
+ return value;
1564
+ };
1565
+ Decoder2.prototype.readI32 = function() {
1566
+ var value = this.view.getInt32(this.pos);
1567
+ this.pos += 4;
1568
+ return value;
1569
+ };
1570
+ Decoder2.prototype.readU64 = function() {
1571
+ var value = getUint64(this.view, this.pos);
1572
+ this.pos += 8;
1573
+ return value;
1574
+ };
1575
+ Decoder2.prototype.readI64 = function() {
1576
+ var value = getInt64(this.view, this.pos);
1577
+ this.pos += 8;
1578
+ return value;
1579
+ };
1580
+ Decoder2.prototype.readU64AsBigInt = function() {
1581
+ var value = this.view.getBigUint64(this.pos);
1582
+ this.pos += 8;
1583
+ return value;
1584
+ };
1585
+ Decoder2.prototype.readI64AsBigInt = function() {
1586
+ var value = this.view.getBigInt64(this.pos);
1587
+ this.pos += 8;
1588
+ return value;
1589
+ };
1590
+ Decoder2.prototype.readF32 = function() {
1591
+ var value = this.view.getFloat32(this.pos);
1592
+ this.pos += 4;
1593
+ return value;
1594
+ };
1595
+ Decoder2.prototype.readF64 = function() {
1596
+ var value = this.view.getFloat64(this.pos);
1597
+ this.pos += 8;
1598
+ return value;
1599
+ };
1600
+ return Decoder2;
1601
+ }()
1602
+ );
1603
+
1604
+ // node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs
1605
+ function decode(buffer, options) {
1606
+ var decoder = new Decoder(options);
1607
+ return decoder.decode(buffer);
1608
+ }
1609
+ export {
1610
+ decode,
1611
+ encode
1612
+ };