intlayer-editor 4.0.4 → 4.0.5

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 (311) hide show
  1. package/bin/intlayer-editor.mjs +2 -2
  2. package/{dist/assets/cobol-BT52btWN.js → client/dist/assets/cobol-PTqiYgYu.js} +1 -1
  3. package/{dist/assets/index-BoH7Xogx.js → client/dist/assets/index-BtdGSFJh.js} +102 -98
  4. package/client/dist/assets/index-C4F8qLwg.css +1 -0
  5. package/{dist/assets/razor-iKTp_yOP.js → client/dist/assets/razor-CNLDkMZG.js} +1 -1
  6. package/client/dist/assets/scala-DQVVAn-B.js +1 -0
  7. package/client/dist/assets/swift-BSxZ-RaX.js +1 -0
  8. package/{dist → client/dist}/index.html +2 -2
  9. package/package.json +43 -25
  10. package/server/dist/controllers/dictionary.controller.cjs +57 -0
  11. package/server/dist/controllers/dictionary.controller.cjs.map +1 -0
  12. package/server/dist/controllers/dictionary.controller.mjs +35 -0
  13. package/server/dist/controllers/dictionary.controller.mjs.map +1 -0
  14. package/server/dist/export.cjs +23 -0
  15. package/server/dist/export.cjs.map +1 -0
  16. package/server/dist/export.mjs +2 -0
  17. package/server/dist/export.mjs.map +1 -0
  18. package/server/dist/index.cjs +72 -0
  19. package/server/dist/index.cjs.map +1 -0
  20. package/server/dist/index.mjs +48 -0
  21. package/server/dist/index.mjs.map +1 -0
  22. package/server/dist/routes/dictionary.routes.cjs +47 -0
  23. package/server/dist/routes/dictionary.routes.cjs.map +1 -0
  24. package/server/dist/routes/dictionary.routes.mjs +22 -0
  25. package/server/dist/routes/dictionary.routes.mjs.map +1 -0
  26. package/server/dist/types/Routes.cjs +17 -0
  27. package/server/dist/types/Routes.cjs.map +1 -0
  28. package/server/dist/types/Routes.mjs +1 -0
  29. package/server/dist/types/Routes.mjs.map +1 -0
  30. package/server/dist/utils/httpStatusCodes.cjs +93 -0
  31. package/server/dist/utils/httpStatusCodes.cjs.map +1 -0
  32. package/server/dist/utils/httpStatusCodes.mjs +69 -0
  33. package/server/dist/utils/httpStatusCodes.mjs.map +1 -0
  34. package/server/dist/utils/responseData.cjs +74 -0
  35. package/server/dist/utils/responseData.cjs.map +1 -0
  36. package/server/dist/utils/responseData.mjs +49 -0
  37. package/server/dist/utils/responseData.mjs.map +1 -0
  38. package/dist/assets/index-MH9z7Tro.css +0 -1
  39. package/dist/assets/scala-B_49xXYf.js +0 -1
  40. package/dist/assets/swift-Ye_uPAM8.js +0 -1
  41. /package/{dist → client/dist}/assets/Inter-VariableFont-c8O0ljhh.ttf +0 -0
  42. /package/{dist → client/dist}/assets/abap-DsBKuouk.js +0 -0
  43. /package/{dist → client/dist}/assets/actionscript-3-D_z4Izcz.js +0 -0
  44. /package/{dist → client/dist}/assets/ada-727ZlQH0.js +0 -0
  45. /package/{dist → client/dist}/assets/andromeeda-C3khCPGq.js +0 -0
  46. /package/{dist → client/dist}/assets/angular-html-LfdN0zeE.js +0 -0
  47. /package/{dist → client/dist}/assets/angular-ts-CKsD7JZE.js +0 -0
  48. /package/{dist → client/dist}/assets/apache-Dn00JSTd.js +0 -0
  49. /package/{dist → client/dist}/assets/apex-COJ4H7py.js +0 -0
  50. /package/{dist → client/dist}/assets/apl-BBq3IX1j.js +0 -0
  51. /package/{dist → client/dist}/assets/applescript-Bu5BbsvL.js +0 -0
  52. /package/{dist → client/dist}/assets/ara-7O62HKoU.js +0 -0
  53. /package/{dist → client/dist}/assets/asciidoc-BPT9niGB.js +0 -0
  54. /package/{dist → client/dist}/assets/asm-Dhn9LcZ4.js +0 -0
  55. /package/{dist → client/dist}/assets/astro-CqkE3fuf.js +0 -0
  56. /package/{dist → client/dist}/assets/aurora-x-D-2ljcwZ.js +0 -0
  57. /package/{dist → client/dist}/assets/awk-eg146-Ew.js +0 -0
  58. /package/{dist → client/dist}/assets/ayu-dark-Cv9koXgw.js +0 -0
  59. /package/{dist → client/dist}/assets/ballerina-Du268qiB.js +0 -0
  60. /package/{dist → client/dist}/assets/bat-fje9CFhw.js +0 -0
  61. /package/{dist → client/dist}/assets/beancount-BwXTMy5W.js +0 -0
  62. /package/{dist → client/dist}/assets/berry-3xVqZejG.js +0 -0
  63. /package/{dist → client/dist}/assets/bibtex-xW4inM5L.js +0 -0
  64. /package/{dist → client/dist}/assets/bicep-DHo0CJ0O.js +0 -0
  65. /package/{dist → client/dist}/assets/blade-a8OxSdnT.js +0 -0
  66. /package/{dist → client/dist}/assets/bsl-Dgyn0ogV.js +0 -0
  67. /package/{dist → client/dist}/assets/c-C3t2pwGQ.js +0 -0
  68. /package/{dist → client/dist}/assets/cadence-DNquZEk8.js +0 -0
  69. /package/{dist → client/dist}/assets/cairo--RitsXJZ.js +0 -0
  70. /package/{dist → client/dist}/assets/catppuccin-frappe-CD_QflpE.js +0 -0
  71. /package/{dist → client/dist}/assets/catppuccin-latte-DRW-0cLl.js +0 -0
  72. /package/{dist → client/dist}/assets/catppuccin-macchiato-C-_shW-Y.js +0 -0
  73. /package/{dist → client/dist}/assets/catppuccin-mocha-LGGdnPYs.js +0 -0
  74. /package/{dist → client/dist}/assets/clarity-BHOwM8T6.js +0 -0
  75. /package/{dist → client/dist}/assets/clojure-DxSadP1t.js +0 -0
  76. /package/{dist → client/dist}/assets/cmake-DbXoA79R.js +0 -0
  77. /package/{dist → client/dist}/assets/codeowners-Bp6g37R7.js +0 -0
  78. /package/{dist → client/dist}/assets/codeql-sacFqUAJ.js +0 -0
  79. /package/{dist → client/dist}/assets/coffee-dyiR41kL.js +0 -0
  80. /package/{dist → client/dist}/assets/common-lisp-C7gG9l05.js +0 -0
  81. /package/{dist → client/dist}/assets/coq-Dsg_Bt_b.js +0 -0
  82. /package/{dist → client/dist}/assets/cpp-BksuvNSY.js +0 -0
  83. /package/{dist → client/dist}/assets/crystal-DtDmRg-F.js +0 -0
  84. /package/{dist → client/dist}/assets/csharp-D9R-vmeu.js +0 -0
  85. /package/{dist → client/dist}/assets/css-BPhBrDlE.js +0 -0
  86. /package/{dist → client/dist}/assets/csv-B0qRVHPH.js +0 -0
  87. /package/{dist → client/dist}/assets/cue-DtFQj3wx.js +0 -0
  88. /package/{dist → client/dist}/assets/cypher-m2LEI-9-.js +0 -0
  89. /package/{dist → client/dist}/assets/d-BoXegm-a.js +0 -0
  90. /package/{dist → client/dist}/assets/dark-plus-C3mMm8J8.js +0 -0
  91. /package/{dist → client/dist}/assets/dart-B9wLZaAG.js +0 -0
  92. /package/{dist → client/dist}/assets/dax-ClGRhx96.js +0 -0
  93. /package/{dist → client/dist}/assets/desktop-DEIpsLCJ.js +0 -0
  94. /package/{dist → client/dist}/assets/diff-BgYniUM_.js +0 -0
  95. /package/{dist → client/dist}/assets/docker-COcR7UxN.js +0 -0
  96. /package/{dist → client/dist}/assets/dotenv-BjQB5zDj.js +0 -0
  97. /package/{dist → client/dist}/assets/dracula-BzJJZx-M.js +0 -0
  98. /package/{dist → client/dist}/assets/dracula-soft-BXkSAIEj.js +0 -0
  99. /package/{dist → client/dist}/assets/dream-maker-C-nORZOA.js +0 -0
  100. /package/{dist → client/dist}/assets/edge-D5gP-w-T.js +0 -0
  101. /package/{dist → client/dist}/assets/elixir-CLiX3zqd.js +0 -0
  102. /package/{dist → client/dist}/assets/elm-CmHSxxaM.js +0 -0
  103. /package/{dist → client/dist}/assets/emacs-lisp-BX77sIaO.js +0 -0
  104. /package/{dist → client/dist}/assets/erb-BYTLMnw6.js +0 -0
  105. /package/{dist → client/dist}/assets/erlang-B-DoSBHF.js +0 -0
  106. /package/{dist → client/dist}/assets/everforest-dark-BgDCqdQA.js +0 -0
  107. /package/{dist → client/dist}/assets/everforest-light-C8M2exoo.js +0 -0
  108. /package/{dist → client/dist}/assets/fennel-bCA53EVm.js +0 -0
  109. /package/{dist → client/dist}/assets/fish-w-ucz2PV.js +0 -0
  110. /package/{dist → client/dist}/assets/fluent-Dayu4EKP.js +0 -0
  111. /package/{dist → client/dist}/assets/fortran-fixed-form-TqA4NnZg.js +0 -0
  112. /package/{dist → client/dist}/assets/fortran-free-form-DKXYxT9g.js +0 -0
  113. /package/{dist → client/dist}/assets/fsharp-XplgxFYe.js +0 -0
  114. /package/{dist → client/dist}/assets/gdresource-BHYsBjWJ.js +0 -0
  115. /package/{dist → client/dist}/assets/gdscript-DfxzS6Rs.js +0 -0
  116. /package/{dist → client/dist}/assets/gdshader-SKMF96pI.js +0 -0
  117. /package/{dist → client/dist}/assets/genie-ajMbGru0.js +0 -0
  118. /package/{dist → client/dist}/assets/gherkin--30QC5Em.js +0 -0
  119. /package/{dist → client/dist}/assets/git-commit-i4q6IMui.js +0 -0
  120. /package/{dist → client/dist}/assets/git-rebase-B-v9cOL2.js +0 -0
  121. /package/{dist → client/dist}/assets/github-dark-DHJKELXO.js +0 -0
  122. /package/{dist → client/dist}/assets/github-dark-default-Cuk6v7N8.js +0 -0
  123. /package/{dist → client/dist}/assets/github-dark-dimmed-DH5Ifo-i.js +0 -0
  124. /package/{dist → client/dist}/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -0
  125. /package/{dist → client/dist}/assets/github-light-DAi9KRSo.js +0 -0
  126. /package/{dist → client/dist}/assets/github-light-default-D7oLnXFd.js +0 -0
  127. /package/{dist → client/dist}/assets/github-light-high-contrast-BfjtVDDH.js +0 -0
  128. /package/{dist → client/dist}/assets/gleam-B430Bg39.js +0 -0
  129. /package/{dist → client/dist}/assets/glimmer-js-D-cwc0-E.js +0 -0
  130. /package/{dist → client/dist}/assets/glimmer-ts-pgjy16dm.js +0 -0
  131. /package/{dist → client/dist}/assets/glsl-DBO2IWDn.js +0 -0
  132. /package/{dist → client/dist}/assets/gnuplot-CM8KxXT1.js +0 -0
  133. /package/{dist → client/dist}/assets/go-B1SYOhNW.js +0 -0
  134. /package/{dist → client/dist}/assets/graphql-cDcHW_If.js +0 -0
  135. /package/{dist → client/dist}/assets/groovy-DkBy-JyN.js +0 -0
  136. /package/{dist → client/dist}/assets/hack-D1yCygmZ.js +0 -0
  137. /package/{dist → client/dist}/assets/haml-B2EZWmdv.js +0 -0
  138. /package/{dist → client/dist}/assets/handlebars-BQGss363.js +0 -0
  139. /package/{dist → client/dist}/assets/haskell-BILxekzW.js +0 -0
  140. /package/{dist → client/dist}/assets/haxe-C5wWYbrZ.js +0 -0
  141. /package/{dist → client/dist}/assets/hcl-HzYwdGDm.js +0 -0
  142. /package/{dist → client/dist}/assets/hjson-T-Tgc4AT.js +0 -0
  143. /package/{dist → client/dist}/assets/hlsl-ifBTmRxC.js +0 -0
  144. /package/{dist → client/dist}/assets/houston-DnULxvSX.js +0 -0
  145. /package/{dist → client/dist}/assets/html-C2L_23MC.js +0 -0
  146. /package/{dist → client/dist}/assets/html-derivative-CSfWNPLT.js +0 -0
  147. /package/{dist → client/dist}/assets/http-FRrOvY1W.js +0 -0
  148. /package/{dist → client/dist}/assets/hxml-TIA70rKU.js +0 -0
  149. /package/{dist → client/dist}/assets/hy-BMj5Y0dO.js +0 -0
  150. /package/{dist → client/dist}/assets/imba-bv_oIlVt.js +0 -0
  151. /package/{dist → client/dist}/assets/ini-BjABl1g7.js +0 -0
  152. /package/{dist → client/dist}/assets/java-xI-RfyKK.js +0 -0
  153. /package/{dist → client/dist}/assets/javascript-ySlJ1b_l.js +0 -0
  154. /package/{dist → client/dist}/assets/jinja-DGy0s7-h.js +0 -0
  155. /package/{dist → client/dist}/assets/jison-BqZprYcd.js +0 -0
  156. /package/{dist → client/dist}/assets/json-BQoSv7ci.js +0 -0
  157. /package/{dist → client/dist}/assets/json5-w8dY5SsB.js +0 -0
  158. /package/{dist → client/dist}/assets/jsonc-TU54ms6u.js +0 -0
  159. /package/{dist → client/dist}/assets/jsonl-DREVFZK8.js +0 -0
  160. /package/{dist → client/dist}/assets/jsonnet-BfivnA6A.js +0 -0
  161. /package/{dist → client/dist}/assets/jssm-P4WzXJd0.js +0 -0
  162. /package/{dist → client/dist}/assets/jsx-BAng5TT0.js +0 -0
  163. /package/{dist → client/dist}/assets/julia-BBuGR-5E.js +0 -0
  164. /package/{dist → client/dist}/assets/kanagawa-dragon-CkXjmgJE.js +0 -0
  165. /package/{dist → client/dist}/assets/kanagawa-lotus-CfQXZHmo.js +0 -0
  166. /package/{dist → client/dist}/assets/kanagawa-wave-DWedfzmr.js +0 -0
  167. /package/{dist → client/dist}/assets/kotlin-B5lbUyaz.js +0 -0
  168. /package/{dist → client/dist}/assets/kusto-mebxcVVE.js +0 -0
  169. /package/{dist → client/dist}/assets/laserwave-DUszq2jm.js +0 -0
  170. /package/{dist → client/dist}/assets/latex-C-cWTeAZ.js +0 -0
  171. /package/{dist → client/dist}/assets/lean-XBlWyCtg.js +0 -0
  172. /package/{dist → client/dist}/assets/less-BfCpw3nA.js +0 -0
  173. /package/{dist → client/dist}/assets/light-plus-B7mTdjB0.js +0 -0
  174. /package/{dist → client/dist}/assets/liquid-D3W5UaiH.js +0 -0
  175. /package/{dist → client/dist}/assets/log-Cc5clBb7.js +0 -0
  176. /package/{dist → client/dist}/assets/logo-IuBKFhSY.js +0 -0
  177. /package/{dist → client/dist}/assets/lua-CvWAzNxB.js +0 -0
  178. /package/{dist → client/dist}/assets/luau-Du5NY7AG.js +0 -0
  179. /package/{dist → client/dist}/assets/make-Bvotw-X0.js +0 -0
  180. /package/{dist → client/dist}/assets/markdown-UIAJJxZW.js +0 -0
  181. /package/{dist → client/dist}/assets/marko-z0MBrx5-.js +0 -0
  182. /package/{dist → client/dist}/assets/material-theme-D5KoaKCx.js +0 -0
  183. /package/{dist → client/dist}/assets/material-theme-darker-BfHTSMKl.js +0 -0
  184. /package/{dist → client/dist}/assets/material-theme-lighter-B0m2ddpp.js +0 -0
  185. /package/{dist → client/dist}/assets/material-theme-ocean-CyktbL80.js +0 -0
  186. /package/{dist → client/dist}/assets/material-theme-palenight-Csfq5Kiy.js +0 -0
  187. /package/{dist → client/dist}/assets/matlab-D9-PGadD.js +0 -0
  188. /package/{dist → client/dist}/assets/mdc-DB_EDNY_.js +0 -0
  189. /package/{dist → client/dist}/assets/mdx-sdHcTMYB.js +0 -0
  190. /package/{dist → client/dist}/assets/mermaid-Ci6OQyBP.js +0 -0
  191. /package/{dist → client/dist}/assets/min-dark-CafNBF8u.js +0 -0
  192. /package/{dist → client/dist}/assets/min-light-CTRr51gU.js +0 -0
  193. /package/{dist → client/dist}/assets/mipsasm-BC5c_5Pe.js +0 -0
  194. /package/{dist → client/dist}/assets/mojo-Tz6hzZYG.js +0 -0
  195. /package/{dist → client/dist}/assets/monokai-D4h5O-jR.js +0 -0
  196. /package/{dist → client/dist}/assets/move-DB_GagMm.js +0 -0
  197. /package/{dist → client/dist}/assets/narrat-DLbgOhZU.js +0 -0
  198. /package/{dist → client/dist}/assets/nextflow-B0XVJmRM.js +0 -0
  199. /package/{dist → client/dist}/assets/nginx-D_VnBJ67.js +0 -0
  200. /package/{dist → client/dist}/assets/night-owl-C39BiMTA.js +0 -0
  201. /package/{dist → client/dist}/assets/nim-ZlGxZxc3.js +0 -0
  202. /package/{dist → client/dist}/assets/nix-shcSOmrb.js +0 -0
  203. /package/{dist → client/dist}/assets/nord-Ddv68eIx.js +0 -0
  204. /package/{dist → client/dist}/assets/nushell-D4Tzg5kh.js +0 -0
  205. /package/{dist → client/dist}/assets/objective-c-Deuh7S70.js +0 -0
  206. /package/{dist → client/dist}/assets/objective-cpp-BUEGK8hf.js +0 -0
  207. /package/{dist → client/dist}/assets/ocaml-BNioltXt.js +0 -0
  208. /package/{dist → client/dist}/assets/one-dark-pro-GBQ2dnAY.js +0 -0
  209. /package/{dist → client/dist}/assets/one-light-PoHY5YXO.js +0 -0
  210. /package/{dist → client/dist}/assets/pascal-JqZropPD.js +0 -0
  211. /package/{dist → client/dist}/assets/perl-CHQXSrWU.js +0 -0
  212. /package/{dist → client/dist}/assets/php-B5ebYQev.js +0 -0
  213. /package/{dist → client/dist}/assets/plastic-3e1v2bzS.js +0 -0
  214. /package/{dist → client/dist}/assets/plsql-LKU2TuZ1.js +0 -0
  215. /package/{dist → client/dist}/assets/po-BFLt1xDp.js +0 -0
  216. /package/{dist → client/dist}/assets/poimandres-CS3Unz2-.js +0 -0
  217. /package/{dist → client/dist}/assets/polar-DKykz6zU.js +0 -0
  218. /package/{dist → client/dist}/assets/postcss-B3ZDOciz.js +0 -0
  219. /package/{dist → client/dist}/assets/powerquery-CSHBycmS.js +0 -0
  220. /package/{dist → client/dist}/assets/powershell-BIEUsx6d.js +0 -0
  221. /package/{dist → client/dist}/assets/prisma-B48N-Iqd.js +0 -0
  222. /package/{dist → client/dist}/assets/prolog-BY-TUvya.js +0 -0
  223. /package/{dist → client/dist}/assets/proto-zocC4JxJ.js +0 -0
  224. /package/{dist → client/dist}/assets/pug-CM9l7STV.js +0 -0
  225. /package/{dist → client/dist}/assets/puppet-Cza_XSSt.js +0 -0
  226. /package/{dist → client/dist}/assets/purescript-Bg-kzb6g.js +0 -0
  227. /package/{dist → client/dist}/assets/python-DhUJRlN_.js +0 -0
  228. /package/{dist → client/dist}/assets/qml-D8XfuvdV.js +0 -0
  229. /package/{dist → client/dist}/assets/qmldir-C8lEn-DE.js +0 -0
  230. /package/{dist → client/dist}/assets/qss-DhMKtDLN.js +0 -0
  231. /package/{dist → client/dist}/assets/r-CwjWoCRV.js +0 -0
  232. /package/{dist → client/dist}/assets/racket-CzouJOBO.js +0 -0
  233. /package/{dist → client/dist}/assets/raku-B1bQXN8T.js +0 -0
  234. /package/{dist → client/dist}/assets/red-bN70gL4F.js +0 -0
  235. /package/{dist → client/dist}/assets/reg-5LuOXUq_.js +0 -0
  236. /package/{dist → client/dist}/assets/regexp-DWJ3fJO_.js +0 -0
  237. /package/{dist → client/dist}/assets/rel-DJlmqQ1C.js +0 -0
  238. /package/{dist → client/dist}/assets/riscv-QhoSD0DR.js +0 -0
  239. /package/{dist → client/dist}/assets/rose-pine-CmCqftbK.js +0 -0
  240. /package/{dist → client/dist}/assets/rose-pine-dawn-Ds-gbosJ.js +0 -0
  241. /package/{dist → client/dist}/assets/rose-pine-moon-CjDtw9vr.js +0 -0
  242. /package/{dist → client/dist}/assets/rst-4NLicBqY.js +0 -0
  243. /package/{dist → client/dist}/assets/ruby-DeZ3UC14.js +0 -0
  244. /package/{dist → client/dist}/assets/rust-Be6lgOlo.js +0 -0
  245. /package/{dist → client/dist}/assets/sas-BmTFh92c.js +0 -0
  246. /package/{dist → client/dist}/assets/sass-BJ4Li9vH.js +0 -0
  247. /package/{dist → client/dist}/assets/scheme-BJGe-b2p.js +0 -0
  248. /package/{dist → client/dist}/assets/scss-C31hgJw-.js +0 -0
  249. /package/{dist → client/dist}/assets/sdbl-BLhTXw86.js +0 -0
  250. /package/{dist → client/dist}/assets/shaderlab-B7qAK45m.js +0 -0
  251. /package/{dist → client/dist}/assets/shellscript-atvbtKCR.js +0 -0
  252. /package/{dist → client/dist}/assets/shellsession-C_rIy8kc.js +0 -0
  253. /package/{dist → client/dist}/assets/slack-dark-BthQWCQV.js +0 -0
  254. /package/{dist → client/dist}/assets/slack-ochin-DqwNpetd.js +0 -0
  255. /package/{dist → client/dist}/assets/smalltalk-DkLiglaE.js +0 -0
  256. /package/{dist → client/dist}/assets/snazzy-light-Bw305WKR.js +0 -0
  257. /package/{dist → client/dist}/assets/solarized-dark-DXbdFlpD.js +0 -0
  258. /package/{dist → client/dist}/assets/solarized-light-L9t79GZl.js +0 -0
  259. /package/{dist → client/dist}/assets/solidity-C1w2a3ep.js +0 -0
  260. /package/{dist → client/dist}/assets/soy-C-lX7w71.js +0 -0
  261. /package/{dist → client/dist}/assets/sparql-bYkjHRlG.js +0 -0
  262. /package/{dist → client/dist}/assets/splunk-Cf8iN4DR.js +0 -0
  263. /package/{dist → client/dist}/assets/sql-COK4E0Yg.js +0 -0
  264. /package/{dist → client/dist}/assets/ssh-config-BknIz3MU.js +0 -0
  265. /package/{dist → client/dist}/assets/stata-DorPZHa4.js +0 -0
  266. /package/{dist → client/dist}/assets/stylus-BeQkCIfX.js +0 -0
  267. /package/{dist → client/dist}/assets/svelte-MSaWC3Je.js +0 -0
  268. /package/{dist → client/dist}/assets/synthwave-84-CbfX1IO0.js +0 -0
  269. /package/{dist → client/dist}/assets/system-verilog-C7L56vO4.js +0 -0
  270. /package/{dist → client/dist}/assets/systemd-CUnW07Te.js +0 -0
  271. /package/{dist → client/dist}/assets/talonscript-C1XDQQGZ.js +0 -0
  272. /package/{dist → client/dist}/assets/tasl-CQjiPCtT.js +0 -0
  273. /package/{dist → client/dist}/assets/tcl-DQ1-QYvQ.js +0 -0
  274. /package/{dist → client/dist}/assets/templ-dwX3ZSMB.js +0 -0
  275. /package/{dist → client/dist}/assets/terraform-BbSNqyBO.js +0 -0
  276. /package/{dist → client/dist}/assets/tex-rYs2v40G.js +0 -0
  277. /package/{dist → client/dist}/assets/tokyo-night-DBQeEorK.js +0 -0
  278. /package/{dist → client/dist}/assets/toml-CB2ApiWb.js +0 -0
  279. /package/{dist → client/dist}/assets/ts-tags-CipyTH0X.js +0 -0
  280. /package/{dist → client/dist}/assets/tsv-B_m7g4N7.js +0 -0
  281. /package/{dist → client/dist}/assets/tsx-B6W0miNI.js +0 -0
  282. /package/{dist → client/dist}/assets/turtle-BMR_PYu6.js +0 -0
  283. /package/{dist → client/dist}/assets/twig-NC5TFiHP.js +0 -0
  284. /package/{dist → client/dist}/assets/typescript-Dj6nwHGl.js +0 -0
  285. /package/{dist → client/dist}/assets/typespec-BpWG_bgh.js +0 -0
  286. /package/{dist → client/dist}/assets/typst-BVUVsWT6.js +0 -0
  287. /package/{dist → client/dist}/assets/v-CAQ2eGtk.js +0 -0
  288. /package/{dist → client/dist}/assets/vala-BFOHcciG.js +0 -0
  289. /package/{dist → client/dist}/assets/vb-CdO5JTpU.js +0 -0
  290. /package/{dist → client/dist}/assets/verilog-CJaU5se_.js +0 -0
  291. /package/{dist → client/dist}/assets/vesper-BEBZ7ncR.js +0 -0
  292. /package/{dist → client/dist}/assets/vhdl-DYoNaHQp.js +0 -0
  293. /package/{dist → client/dist}/assets/viml-m4uW47V2.js +0 -0
  294. /package/{dist → client/dist}/assets/vitesse-black-Bkuqu6BP.js +0 -0
  295. /package/{dist → client/dist}/assets/vitesse-dark-D0r3Knsf.js +0 -0
  296. /package/{dist → client/dist}/assets/vitesse-light-CVO1_9PV.js +0 -0
  297. /package/{dist → client/dist}/assets/vue-BuYVFjOK.js +0 -0
  298. /package/{dist → client/dist}/assets/vue-html-xdeiXROB.js +0 -0
  299. /package/{dist → client/dist}/assets/vyper-nyqBNV6O.js +0 -0
  300. /package/{dist → client/dist}/assets/wasm-C6j12Q_x.js +0 -0
  301. /package/{dist → client/dist}/assets/wasm-CG6Dc4jp.js +0 -0
  302. /package/{dist → client/dist}/assets/wenyan-7A4Fjokl.js +0 -0
  303. /package/{dist → client/dist}/assets/wgsl-CB0Krxn9.js +0 -0
  304. /package/{dist → client/dist}/assets/wikitext-DCE3LsBG.js +0 -0
  305. /package/{dist → client/dist}/assets/wolfram-C3FkfJm5.js +0 -0
  306. /package/{dist → client/dist}/assets/xml-e3z08dGr.js +0 -0
  307. /package/{dist → client/dist}/assets/xsl-Dd0NUgwM.js +0 -0
  308. /package/{dist → client/dist}/assets/yaml-CVw76BM1.js +0 -0
  309. /package/{dist → client/dist}/assets/zenscript-HnGAYVZD.js +0 -0
  310. /package/{dist → client/dist}/assets/zig-BVz_zdnA.js +0 -0
  311. /package/{dist → client/dist}/favicon.ico +0 -0
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var import_node_fs = require("node:fs");
25
+ var import_node_path = __toESM(require("node:path"), 1);
26
+ var import_node_url = require("node:url");
27
+ var import_dictionary = require('./routes/dictionary.routes.cjs');
28
+ var import_compression = __toESM(require("compression"), 1);
29
+ var import_cookie_parser = __toESM(require("cookie-parser"), 1);
30
+ var import_cors = __toESM(require("cors"), 1);
31
+ var import_express = __toESM(require("express"), 1);
32
+ var import_helmet = __toESM(require("helmet"), 1);
33
+ var import_mime = __toESM(require("mime"), 1);
34
+ const import_meta = {};
35
+ const app = (0, import_express.default)();
36
+ const PORT = 8e3;
37
+ const __dirname = (0, import_node_path.dirname)((0, import_node_url.fileURLToPath)(import_meta.url));
38
+ const clientDistPath = (0, import_node_path.resolve)(__dirname, "../../client/dist");
39
+ const corsOptions = {
40
+ origin: "*",
41
+ credentials: true
42
+ };
43
+ const startServer = async (app2) => {
44
+ app2.disable("x-powered-by");
45
+ app2.use(
46
+ (0, import_helmet.default)({
47
+ contentSecurityPolicy: false
48
+ })
49
+ );
50
+ app2.use((0, import_cors.default)(corsOptions));
51
+ app2.use((0, import_compression.default)());
52
+ app2.use(import_express.default.json());
53
+ app2.use((0, import_cookie_parser.default)());
54
+ app2.use(import_express.default.urlencoded({ extended: true }));
55
+ app2.use("/api/dictionary", import_dictionary.dictionaryRouter);
56
+ app2.use(import_express.default.static(clientDistPath));
57
+ app2.get(/(.*)/, (req, res) => {
58
+ const requestedPath = import_node_path.default.join(clientDistPath, req.url);
59
+ if ((0, import_node_fs.existsSync)(requestedPath) && (0, import_node_fs.lstatSync)(requestedPath).isFile()) {
60
+ const mimeType = import_mime.default.getType(requestedPath) || "application/octet-stream";
61
+ res.setHeader("Content-Type", mimeType);
62
+ res.sendFile(requestedPath);
63
+ } else {
64
+ res.sendFile((0, import_node_path.resolve)(clientDistPath, "index.html"));
65
+ }
66
+ });
67
+ app2.listen(PORT, () => {
68
+ console.log(`Intlayer editor running at http://localhost:${PORT}`);
69
+ });
70
+ };
71
+ startServer(app);
72
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { existsSync, lstatSync } from 'node:fs';\nimport path, { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { dictionaryRouter } from '@routes/dictionary.routes';\nimport compression from 'compression';\nimport cookieParser from 'cookie-parser';\nimport cors, { type CorsOptions } from 'cors';\nimport express, { type Express } from 'express';\nimport helmet from 'helmet';\nimport mime from 'mime';\n\nconst app: Express = express();\n\nconst PORT = 8000;\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst clientDistPath = resolve(__dirname, '../../client/dist');\n\nconst corsOptions: CorsOptions = {\n origin: '*',\n credentials: true,\n};\n\nconst startServer = async (app: Express) => {\n app.disable('x-powered-by'); // Disabled to prevent attackers from knowing that the app is running Express\n app.use(\n helmet({\n contentSecurityPolicy: false,\n })\n );\n\n app.use(cors(corsOptions));\n\n // Compress all HTTP responses\n app.use(compression());\n\n app.use(express.json());\n\n app.use(cookieParser());\n\n // Parse incoming requests with urlencoded payloads\n app.use(express.urlencoded({ extended: true }));\n\n app.use('/api/dictionary', dictionaryRouter);\n\n app.use(express.static(clientDistPath));\n\n // For single-page applications, redirect all unmatched routes to index.html\n app.get(/(.*)/, (req, res) => {\n const requestedPath = path.join(clientDistPath, req.url); // Full path of the requested file\n\n if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {\n // If the requested file exists, determine its MIME type and serve it\n const mimeType =\n mime.getType(requestedPath) || 'application/octet-stream';\n res.setHeader('Content-Type', mimeType);\n res.sendFile(requestedPath);\n } else {\n // Otherwise, serve the index.html for React Router fallback\n res.sendFile(resolve(clientDistPath, 'index.html'));\n }\n });\n\n app.listen(PORT, () => {\n console.log(`Intlayer editor running at http://localhost:${PORT}`);\n });\n};\n\n// Start it up!\nstartServer(app);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAsC;AACtC,uBAAuC;AACvC,sBAA8B;AAC9B,wBAAiC;AACjC,yBAAwB;AACxB,2BAAyB;AACzB,kBAAuC;AACvC,qBAAsC;AACtC,oBAAmB;AACnB,kBAAiB;AATjB;AAWA,MAAM,UAAe,eAAAA,SAAQ;AAE7B,MAAM,OAAO;AAEb,MAAM,gBAAY,8BAAQ,+BAAc,YAAY,GAAG,CAAC;AACxD,MAAM,qBAAiB,0BAAQ,WAAW,mBAAmB;AAE7D,MAAM,cAA2B;AAAA,EAC/B,QAAQ;AAAA,EACR,aAAa;AACf;AAEA,MAAM,cAAc,OAAOC,SAAiB;AAC1C,EAAAA,KAAI,QAAQ,cAAc;AAC1B,EAAAA,KAAI;AAAA,QACF,cAAAC,SAAO;AAAA,MACL,uBAAuB;AAAA,IACzB,CAAC;AAAA,EACH;AAEA,EAAAD,KAAI,QAAI,YAAAE,SAAK,WAAW,CAAC;AAGzB,EAAAF,KAAI,QAAI,mBAAAG,SAAY,CAAC;AAErB,EAAAH,KAAI,IAAI,eAAAD,QAAQ,KAAK,CAAC;AAEtB,EAAAC,KAAI,QAAI,qBAAAI,SAAa,CAAC;AAGtB,EAAAJ,KAAI,IAAI,eAAAD,QAAQ,WAAW,EAAE,UAAU,KAAK,CAAC,CAAC;AAE9C,EAAAC,KAAI,IAAI,mBAAmB,kCAAgB;AAE3C,EAAAA,KAAI,IAAI,eAAAD,QAAQ,OAAO,cAAc,CAAC;AAGtC,EAAAC,KAAI,IAAI,QAAQ,CAAC,KAAK,QAAQ;AAC5B,UAAM,gBAAgB,iBAAAK,QAAK,KAAK,gBAAgB,IAAI,GAAG;AAEvD,YAAI,2BAAW,aAAa,SAAK,0BAAU,aAAa,EAAE,OAAO,GAAG;AAElE,YAAM,WACJ,YAAAC,QAAK,QAAQ,aAAa,KAAK;AACjC,UAAI,UAAU,gBAAgB,QAAQ;AACtC,UAAI,SAAS,aAAa;AAAA,IAC5B,OAAO;AAEL,UAAI,aAAS,0BAAQ,gBAAgB,YAAY,CAAC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,EAAAN,KAAI,OAAO,MAAM,MAAM;AACrB,YAAQ,IAAI,+CAA+C,IAAI,EAAE;AAAA,EACnE,CAAC;AACH;AAGA,YAAY,GAAG;","names":["express","app","helmet","cors","compression","cookieParser","path","mime"]}
@@ -0,0 +1,48 @@
1
+ import { existsSync, lstatSync } from "node:fs";
2
+ import path, { dirname, resolve } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import { dictionaryRouter } from "./routes/dictionary.routes.mjs";
5
+ import compression from "compression";
6
+ import cookieParser from "cookie-parser";
7
+ import cors from "cors";
8
+ import express from "express";
9
+ import helmet from "helmet";
10
+ import mime from "mime";
11
+ const app = express();
12
+ const PORT = 8e3;
13
+ const __dirname = dirname(fileURLToPath(import.meta.url));
14
+ const clientDistPath = resolve(__dirname, "../../client/dist");
15
+ const corsOptions = {
16
+ origin: "*",
17
+ credentials: true
18
+ };
19
+ const startServer = async (app2) => {
20
+ app2.disable("x-powered-by");
21
+ app2.use(
22
+ helmet({
23
+ contentSecurityPolicy: false
24
+ })
25
+ );
26
+ app2.use(cors(corsOptions));
27
+ app2.use(compression());
28
+ app2.use(express.json());
29
+ app2.use(cookieParser());
30
+ app2.use(express.urlencoded({ extended: true }));
31
+ app2.use("/api/dictionary", dictionaryRouter);
32
+ app2.use(express.static(clientDistPath));
33
+ app2.get(/(.*)/, (req, res) => {
34
+ const requestedPath = path.join(clientDistPath, req.url);
35
+ if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {
36
+ const mimeType = mime.getType(requestedPath) || "application/octet-stream";
37
+ res.setHeader("Content-Type", mimeType);
38
+ res.sendFile(requestedPath);
39
+ } else {
40
+ res.sendFile(resolve(clientDistPath, "index.html"));
41
+ }
42
+ });
43
+ app2.listen(PORT, () => {
44
+ console.log(`Intlayer editor running at http://localhost:${PORT}`);
45
+ });
46
+ };
47
+ startServer(app);
48
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { existsSync, lstatSync } from 'node:fs';\nimport path, { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { dictionaryRouter } from '@routes/dictionary.routes';\nimport compression from 'compression';\nimport cookieParser from 'cookie-parser';\nimport cors, { type CorsOptions } from 'cors';\nimport express, { type Express } from 'express';\nimport helmet from 'helmet';\nimport mime from 'mime';\n\nconst app: Express = express();\n\nconst PORT = 8000;\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst clientDistPath = resolve(__dirname, '../../client/dist');\n\nconst corsOptions: CorsOptions = {\n origin: '*',\n credentials: true,\n};\n\nconst startServer = async (app: Express) => {\n app.disable('x-powered-by'); // Disabled to prevent attackers from knowing that the app is running Express\n app.use(\n helmet({\n contentSecurityPolicy: false,\n })\n );\n\n app.use(cors(corsOptions));\n\n // Compress all HTTP responses\n app.use(compression());\n\n app.use(express.json());\n\n app.use(cookieParser());\n\n // Parse incoming requests with urlencoded payloads\n app.use(express.urlencoded({ extended: true }));\n\n app.use('/api/dictionary', dictionaryRouter);\n\n app.use(express.static(clientDistPath));\n\n // For single-page applications, redirect all unmatched routes to index.html\n app.get(/(.*)/, (req, res) => {\n const requestedPath = path.join(clientDistPath, req.url); // Full path of the requested file\n\n if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {\n // If the requested file exists, determine its MIME type and serve it\n const mimeType =\n mime.getType(requestedPath) || 'application/octet-stream';\n res.setHeader('Content-Type', mimeType);\n res.sendFile(requestedPath);\n } else {\n // Otherwise, serve the index.html for React Router fallback\n res.sendFile(resolve(clientDistPath, 'index.html'));\n }\n });\n\n app.listen(PORT, () => {\n console.log(`Intlayer editor running at http://localhost:${PORT}`);\n });\n};\n\n// Start it up!\nstartServer(app);\n"],"mappings":"AAAA,SAAS,YAAY,iBAAiB;AACtC,OAAO,QAAQ,SAAS,eAAe;AACvC,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;AACzB,OAAO,UAAgC;AACvC,OAAO,aAA+B;AACtC,OAAO,YAAY;AACnB,OAAO,UAAU;AAEjB,MAAM,MAAe,QAAQ;AAE7B,MAAM,OAAO;AAEb,MAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,MAAM,iBAAiB,QAAQ,WAAW,mBAAmB;AAE7D,MAAM,cAA2B;AAAA,EAC/B,QAAQ;AAAA,EACR,aAAa;AACf;AAEA,MAAM,cAAc,OAAOA,SAAiB;AAC1C,EAAAA,KAAI,QAAQ,cAAc;AAC1B,EAAAA,KAAI;AAAA,IACF,OAAO;AAAA,MACL,uBAAuB;AAAA,IACzB,CAAC;AAAA,EACH;AAEA,EAAAA,KAAI,IAAI,KAAK,WAAW,CAAC;AAGzB,EAAAA,KAAI,IAAI,YAAY,CAAC;AAErB,EAAAA,KAAI,IAAI,QAAQ,KAAK,CAAC;AAEtB,EAAAA,KAAI,IAAI,aAAa,CAAC;AAGtB,EAAAA,KAAI,IAAI,QAAQ,WAAW,EAAE,UAAU,KAAK,CAAC,CAAC;AAE9C,EAAAA,KAAI,IAAI,mBAAmB,gBAAgB;AAE3C,EAAAA,KAAI,IAAI,QAAQ,OAAO,cAAc,CAAC;AAGtC,EAAAA,KAAI,IAAI,QAAQ,CAAC,KAAK,QAAQ;AAC5B,UAAM,gBAAgB,KAAK,KAAK,gBAAgB,IAAI,GAAG;AAEvD,QAAI,WAAW,aAAa,KAAK,UAAU,aAAa,EAAE,OAAO,GAAG;AAElE,YAAM,WACJ,KAAK,QAAQ,aAAa,KAAK;AACjC,UAAI,UAAU,gBAAgB,QAAQ;AACtC,UAAI,SAAS,aAAa;AAAA,IAC5B,OAAO;AAEL,UAAI,SAAS,QAAQ,gBAAgB,YAAY,CAAC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,EAAAA,KAAI,OAAO,MAAM,MAAM;AACrB,YAAQ,IAAI,+CAA+C,IAAI,EAAE;AAAA,EACnE,CAAC;AACH;AAGA,YAAY,GAAG;","names":["app"]}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var dictionary_routes_exports = {};
20
+ __export(dictionary_routes_exports, {
21
+ dictionaryRouter: () => dictionaryRouter,
22
+ dictionaryRoutes: () => dictionaryRoutes
23
+ });
24
+ module.exports = __toCommonJS(dictionary_routes_exports);
25
+ var import_dictionary = require('./../controllers/dictionary.controller.cjs');
26
+ var import_client = require("@intlayer/config/client");
27
+ var import_express = require("express");
28
+ const dictionaryRouter = (0, import_express.Router)();
29
+ const { editor } = (0, import_client.getConfiguration)();
30
+ const baseURL = `${editor.applicationURL}/api/dictionary`;
31
+ const dictionaryRoutes = {
32
+ writeContentDeclaration: {
33
+ urlModel: "/",
34
+ url: baseURL,
35
+ method: "PATCH"
36
+ }
37
+ };
38
+ dictionaryRouter.post(
39
+ dictionaryRoutes.writeContentDeclaration.urlModel,
40
+ import_dictionary.writeContentDeclaration
41
+ );
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ dictionaryRouter,
45
+ dictionaryRoutes
46
+ });
47
+ //# sourceMappingURL=dictionary.routes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import { writeContentDeclaration } from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config/client';\nimport { Router } from 'express';\nimport { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst baseURL = `${editor.applicationURL}/api/dictionary`;\n\nexport const dictionaryRoutes = {\n writeContentDeclaration: {\n urlModel: '/',\n url: baseURL,\n method: 'PATCH',\n },\n} satisfies Routes;\n\ndictionaryRouter.post(\n dictionaryRoutes.writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAwC;AACxC,oBAAiC;AACjC,qBAAuB;AAGhB,MAAM,uBAA2B,uBAAO;AAE/C,MAAM,EAAE,OAAO,QAAI,gCAAiB;AAEpC,MAAM,UAAU,GAAG,OAAO,cAAc;AAEjC,MAAM,mBAAmB;AAAA,EAC9B,yBAAyB;AAAA,IACvB,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF;AAEA,iBAAiB;AAAA,EACf,iBAAiB,wBAAwB;AAAA,EACzC;AACF;","names":[]}
@@ -0,0 +1,22 @@
1
+ import { writeContentDeclaration } from "./../controllers/dictionary.controller.mjs";
2
+ import { getConfiguration } from "@intlayer/config/client";
3
+ import { Router } from "express";
4
+ const dictionaryRouter = Router();
5
+ const { editor } = getConfiguration();
6
+ const baseURL = `${editor.applicationURL}/api/dictionary`;
7
+ const dictionaryRoutes = {
8
+ writeContentDeclaration: {
9
+ urlModel: "/",
10
+ url: baseURL,
11
+ method: "PATCH"
12
+ }
13
+ };
14
+ dictionaryRouter.post(
15
+ dictionaryRoutes.writeContentDeclaration.urlModel,
16
+ writeContentDeclaration
17
+ );
18
+ export {
19
+ dictionaryRouter,
20
+ dictionaryRoutes
21
+ };
22
+ //# sourceMappingURL=dictionary.routes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import { writeContentDeclaration } from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config/client';\nimport { Router } from 'express';\nimport { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst baseURL = `${editor.applicationURL}/api/dictionary`;\n\nexport const dictionaryRoutes = {\n writeContentDeclaration: {\n urlModel: '/',\n url: baseURL,\n method: 'PATCH',\n },\n} satisfies Routes;\n\ndictionaryRouter.post(\n dictionaryRoutes.writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":"AAAA,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,cAAc;AAGhB,MAAM,mBAA2B,OAAO;AAE/C,MAAM,EAAE,OAAO,IAAI,iBAAiB;AAEpC,MAAM,UAAU,GAAG,OAAO,cAAc;AAEjC,MAAM,mBAAmB;AAAA,EAC9B,yBAAyB;AAAA,IACvB,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF;AAEA,iBAAiB;AAAA,EACf,iBAAiB,wBAAwB;AAAA,EACzC;AACF;","names":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var Routes_exports = {};
16
+ module.exports = __toCommonJS(Routes_exports);
17
+ //# sourceMappingURL=Routes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/types/Routes.ts"],"sourcesContent":["export type Route = {\n urlModel: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n url: string | ((args: any) => string);\n method: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';\n};\n\nexport type Routes = Record<string, Route>;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=Routes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var httpStatusCodes_exports = {};
20
+ __export(httpStatusCodes_exports, {
21
+ HttpStatusCodes: () => HttpStatusCodes
22
+ });
23
+ module.exports = __toCommonJS(httpStatusCodes_exports);
24
+ var HttpStatusCodes = /* @__PURE__ */ ((HttpStatusCodes2) => {
25
+ HttpStatusCodes2[HttpStatusCodes2["CONTINUE_100"] = 100] = "CONTINUE_100";
26
+ HttpStatusCodes2[HttpStatusCodes2["SWITCHING_PROTOCOLS_101"] = 101] = "SWITCHING_PROTOCOLS_101";
27
+ HttpStatusCodes2[HttpStatusCodes2["PROCESSING_102"] = 102] = "PROCESSING_102";
28
+ HttpStatusCodes2[HttpStatusCodes2["EARLY_HINTS_103"] = 103] = "EARLY_HINTS_103";
29
+ HttpStatusCodes2[HttpStatusCodes2["OK_200"] = 200] = "OK_200";
30
+ HttpStatusCodes2[HttpStatusCodes2["CREATED_201"] = 201] = "CREATED_201";
31
+ HttpStatusCodes2[HttpStatusCodes2["ACCEPTED_202"] = 202] = "ACCEPTED_202";
32
+ HttpStatusCodes2[HttpStatusCodes2["NON_AUTHORITATIVE_INFORMATION_203"] = 203] = "NON_AUTHORITATIVE_INFORMATION_203";
33
+ HttpStatusCodes2[HttpStatusCodes2["NO_CONTENT_204"] = 204] = "NO_CONTENT_204";
34
+ HttpStatusCodes2[HttpStatusCodes2["RESET_CONTENT_205"] = 205] = "RESET_CONTENT_205";
35
+ HttpStatusCodes2[HttpStatusCodes2["PARTIAL_CONTENT_206"] = 206] = "PARTIAL_CONTENT_206";
36
+ HttpStatusCodes2[HttpStatusCodes2["MULTI_STATUS_207"] = 207] = "MULTI_STATUS_207";
37
+ HttpStatusCodes2[HttpStatusCodes2["ALREADY_REPORTED_208"] = 208] = "ALREADY_REPORTED_208";
38
+ HttpStatusCodes2[HttpStatusCodes2["IM_USED_226"] = 226] = "IM_USED_226";
39
+ HttpStatusCodes2[HttpStatusCodes2["MULTIPLE_CHOICES_300"] = 300] = "MULTIPLE_CHOICES_300";
40
+ HttpStatusCodes2[HttpStatusCodes2["MOVED_PERMANENTLY_301"] = 301] = "MOVED_PERMANENTLY_301";
41
+ HttpStatusCodes2[HttpStatusCodes2["FOUND_302"] = 302] = "FOUND_302";
42
+ HttpStatusCodes2[HttpStatusCodes2["SEE_OTHER_303"] = 303] = "SEE_OTHER_303";
43
+ HttpStatusCodes2[HttpStatusCodes2["NOT_MODIFIED_304"] = 304] = "NOT_MODIFIED_304";
44
+ HttpStatusCodes2[HttpStatusCodes2["USE_PROXY_305"] = 305] = "USE_PROXY_305";
45
+ HttpStatusCodes2[HttpStatusCodes2["SWITCH_PROXY_306"] = 306] = "SWITCH_PROXY_306";
46
+ HttpStatusCodes2[HttpStatusCodes2["TEMPORARY_REDIRECT_307"] = 307] = "TEMPORARY_REDIRECT_307";
47
+ HttpStatusCodes2[HttpStatusCodes2["PERMANENT_REDIRECT_308"] = 308] = "PERMANENT_REDIRECT_308";
48
+ HttpStatusCodes2[HttpStatusCodes2["BAD_REQUEST_400"] = 400] = "BAD_REQUEST_400";
49
+ HttpStatusCodes2[HttpStatusCodes2["UNAUTHORIZED_401"] = 401] = "UNAUTHORIZED_401";
50
+ HttpStatusCodes2[HttpStatusCodes2["FORBIDDEN_403"] = 403] = "FORBIDDEN_403";
51
+ HttpStatusCodes2[HttpStatusCodes2["NOT_FOUND_404"] = 404] = "NOT_FOUND_404";
52
+ HttpStatusCodes2[HttpStatusCodes2["METHOD_NOT_ALLOWED_405"] = 405] = "METHOD_NOT_ALLOWED_405";
53
+ HttpStatusCodes2[HttpStatusCodes2["NOT_ACCEPTABLE_406"] = 406] = "NOT_ACCEPTABLE_406";
54
+ HttpStatusCodes2[HttpStatusCodes2["PROXY_AUTHENTICATION_REQUIRED_407"] = 407] = "PROXY_AUTHENTICATION_REQUIRED_407";
55
+ HttpStatusCodes2[HttpStatusCodes2["REQUEST_TIMEOUT_408"] = 408] = "REQUEST_TIMEOUT_408";
56
+ HttpStatusCodes2[HttpStatusCodes2["CONFLICT_409"] = 409] = "CONFLICT_409";
57
+ HttpStatusCodes2[HttpStatusCodes2["GONE_410"] = 410] = "GONE_410";
58
+ HttpStatusCodes2[HttpStatusCodes2["LENGTH_REQUIRED_411"] = 411] = "LENGTH_REQUIRED_411";
59
+ HttpStatusCodes2[HttpStatusCodes2["PRECONDITION_FAILED_412"] = 412] = "PRECONDITION_FAILED_412";
60
+ HttpStatusCodes2[HttpStatusCodes2["PAYLOAD_TOO_LARGE_413"] = 413] = "PAYLOAD_TOO_LARGE_413";
61
+ HttpStatusCodes2[HttpStatusCodes2["URI_TOO_LONG_414"] = 414] = "URI_TOO_LONG_414";
62
+ HttpStatusCodes2[HttpStatusCodes2["UNSUPPORTED_MEDIA_TYPE_415"] = 415] = "UNSUPPORTED_MEDIA_TYPE_415";
63
+ HttpStatusCodes2[HttpStatusCodes2["RANGE_NOT_SATISFIABLE_416"] = 416] = "RANGE_NOT_SATISFIABLE_416";
64
+ HttpStatusCodes2[HttpStatusCodes2["EXPECTATION_FAILED_417"] = 417] = "EXPECTATION_FAILED_417";
65
+ HttpStatusCodes2[HttpStatusCodes2["IM_A_TEAPOT_418"] = 418] = "IM_A_TEAPOT_418";
66
+ HttpStatusCodes2[HttpStatusCodes2["MISDIRECTED_REQUEST_421"] = 421] = "MISDIRECTED_REQUEST_421";
67
+ HttpStatusCodes2[HttpStatusCodes2["UNPROCESSABLE_ENTITY_422"] = 422] = "UNPROCESSABLE_ENTITY_422";
68
+ HttpStatusCodes2[HttpStatusCodes2["LOCKED_423"] = 423] = "LOCKED_423";
69
+ HttpStatusCodes2[HttpStatusCodes2["FAILED_DEPENDENCY_424"] = 424] = "FAILED_DEPENDENCY_424";
70
+ HttpStatusCodes2[HttpStatusCodes2["TOO_EARLY_425"] = 425] = "TOO_EARLY_425";
71
+ HttpStatusCodes2[HttpStatusCodes2["UPGRADE_REQUIRED_426"] = 426] = "UPGRADE_REQUIRED_426";
72
+ HttpStatusCodes2[HttpStatusCodes2["PRECONDITION_REQUIRED_428"] = 428] = "PRECONDITION_REQUIRED_428";
73
+ HttpStatusCodes2[HttpStatusCodes2["TOO_MANY_REQUESTS_429"] = 429] = "TOO_MANY_REQUESTS_429";
74
+ HttpStatusCodes2[HttpStatusCodes2["REQUEST_HEADER_FIELDS_TOO_LARGE_431"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE_431";
75
+ HttpStatusCodes2[HttpStatusCodes2["UNAVAILABLE_FOR_LEGAL_REASONS_451"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS_451";
76
+ HttpStatusCodes2[HttpStatusCodes2["INTERNAL_SERVER_ERROR_500"] = 500] = "INTERNAL_SERVER_ERROR_500";
77
+ HttpStatusCodes2[HttpStatusCodes2["NOT_IMPLEMENTED_501"] = 501] = "NOT_IMPLEMENTED_501";
78
+ HttpStatusCodes2[HttpStatusCodes2["BAD_GATEWAY_502"] = 502] = "BAD_GATEWAY_502";
79
+ HttpStatusCodes2[HttpStatusCodes2["SERVICE_UNAVAILABLE_503"] = 503] = "SERVICE_UNAVAILABLE_503";
80
+ HttpStatusCodes2[HttpStatusCodes2["GATEWAY_TIMEOUT_504"] = 504] = "GATEWAY_TIMEOUT_504";
81
+ HttpStatusCodes2[HttpStatusCodes2["HTTP_VERSION_NOT_SUPPORTED_505"] = 505] = "HTTP_VERSION_NOT_SUPPORTED_505";
82
+ HttpStatusCodes2[HttpStatusCodes2["VARIANT_ALSO_NEGOTIATES_506"] = 506] = "VARIANT_ALSO_NEGOTIATES_506";
83
+ HttpStatusCodes2[HttpStatusCodes2["INSUFFICIENT_STORAGE_507"] = 507] = "INSUFFICIENT_STORAGE_507";
84
+ HttpStatusCodes2[HttpStatusCodes2["LOOP_DETECTED_508"] = 508] = "LOOP_DETECTED_508";
85
+ HttpStatusCodes2[HttpStatusCodes2["NOT_EXTENDED_510"] = 510] = "NOT_EXTENDED_510";
86
+ HttpStatusCodes2[HttpStatusCodes2["NETWORK_AUTHENTICATION_REQUIRED_511"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED_511";
87
+ return HttpStatusCodes2;
88
+ })(HttpStatusCodes || {});
89
+ // Annotate the CommonJS export names for ESM import in node:
90
+ 0 && (module.exports = {
91
+ HttpStatusCodes
92
+ });
93
+ //# sourceMappingURL=httpStatusCodes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/httpStatusCodes.ts"],"sourcesContent":["/**\n * Enum for HTTP response status codes.\n * Contains all the possible HTTP response codes according to the standard.\n *\n *\n * 1xx: Informational responses\n *\n *\n * 100 - CONTINUE - The server has received the request headers and the client should proceed to send the request body.\n *\n * 101 - SWITCHING_PROTOCOLS - The requester has asked the server to switch protocols and the server has agreed to do so.\n *\n * 102 - PROCESSING - Used to return some response headers before final HTTP message.\n *\n * 103 - EARLY_HINTS - Early hints - part of optimization to improve page load time.\n *\n *\n * 2xx: Successful responses\n *\n *\n * 200 - OK - The request has succeeded.\n *\n * 201 - CREATED - The request has been fulfilled and has resulted in one or more new resources being created.\n *\n * 202 - ACCEPTED - The request has been accepted for processing, but the processing has not been completed.\n *\n * 203 - NON_AUTHORITATIVE_INFORMATION - The server successfully processed the request, but is returning information that may be from another source.\n *\n * 204 - NO_CONTENT - The server successfully processed the request and is not returning any content.\n *\n * 205 - RESET_CONTENT - The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.\n *\n * 206 - PARTIAL_CONTENT - The server is delivering only part of the resource due to a range header sent by the client.\n *\n * 207 - MULTI_STATUS - Multi-status response providing status for multiple independent operations.\n *\n * 208 - ALREADY_REPORTED - The members of a DAV binding have already been enumerated in a preceding part of the request.\n *\n * 226 - IM_USED - The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.\n *\n *\n * 3xx: Redirection messages\n *\n *\n * 300 - MULTIPLE_CHOICES - The request has more than one possible response. The user-agent or user should choose one of them.\n *\n * 301 - MOVED_PERMANENTLY - The URL of the requested resource has been changed permanently.\n *\n * 302 - FOUND - The requested resource is available at a different URI.\n *\n * 303 - SEE_OTHER - The response to the request can be found under another URI using a GET method.\n *\n * 304 - NOT_MODIFIED - Indicates that the resource has not been modified since the version specified by the request headers.\n *\n * 305 - USE_PROXY - The requested resource must be accessed through the proxy given by the Location field.\n *\n * 306 - SWITCH_PROXY - No longer used. Originally meant to direct the client to switch to a different proxy.\n *\n * 307 - TEMPORARY_REDIRECT - The requested resource resides temporarily under a different URI.\n *\n * 308 - PERMANENT_REDIRECT - The request should be repeated with another URI, but future requests should still use the original URI.\n *\n *\n * 4xx: Client error responses\n *\n *\n * 400 - BAD_REQUEST - The server cannot or will not process the request due to something perceived to be a client error.\n *\n * 401 - UNAUTHORIZED - The client must authenticate itself to get the requested response.\n *\n * 403 - FORBIDDEN - The client does not have access rights to the content.\n *\n * 404 - NOT_FOUND - The server can not find the requested resource.\n *\n * 405 - METHOD_NOT_ALLOWED - The request method is known by the server but is not supported by the target resource.\n *\n * 406 - NOT_ACCEPTABLE - This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n *\n * 407 - PROXY_AUTHENTICATION_REQUIRED - This is similar to 401 but authentication is needed to be done by a proxy.\n *\n * 408 - REQUEST_TIMEOUT - This response is sent on an idle connection by some servers, even without any previous request by the client.\n *\n * 409 - CONFLICT - This response is sent when a request conflicts with the current state of the server.\n *\n * 410 - GONE - This response is sent when the requested resource is no longer available and will not be available again.\n *\n * 411 - LENGTH_REQUIRED - The request did not specify the length of its content, which is required by the requested resource.\n *\n * 412 - PRECONDITION_FAILED - The server does not meet one of the preconditions that the requester put on the request.\n *\n * 413 - PAYLOAD_TOO_LARGE - The request is larger than the server is willing or able to process.\n *\n * 414 - URI_TOO_LONG - The URI requested by the client is longer than the server is willing to interpret.\n *\n * 415 - UNSUPPORTED_MEDIA_TYPE - The media format of the requested data is not supported by the server.\n *\n * 416 - RANGE_NOT_SATISFIABLE - The range specified by the Range header field in the request can't be fulfilled.\n *\n * 417 - EXPECTATION_FAILED - The expectation indicated by the Expect request header field can't be met by the server.\n *\n * 418 - IM_A_TEAPOT - The server refuses the attempt to brew coffee with a teapot.\n *\n * 421 - MISDIRECTED_REQUEST - The request was directed at a server that is not able to produce a response.\n *\n * 422 - UNPROCESSABLE_ENTITY - The request was well-formed but was unable to be followed due to semantic errors.\n *\n * 423 - LOCKED - The resource that is being accessed is locked.\n *\n * 424 - FAILED_DEPENDENCY - The request failed due to failure of a previous request.\n *\n * 425 - TOO_EARLY - Indicates that the server is unwilling to risk processing a request that might be replayed.\n *\n * 426 - UPGRADE_REQUIRED - The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\n *\n * 428 - PRECONDITION_REQUIRED - The origin server requires the request to be conditional.\n *\n * 429 - TOO_MANY_REQUESTS - The user has sent too many requests in a given amount of time.\n *\n * 431 - REQUEST_HEADER_FIELDS_TOO_LARGE - The server is unwilling to process the request because its header fields are too large.\n *\n * 451 - UNAVAILABLE_FOR_LEGAL_REASONS - The user-agent requested a resource that cannot legally be provided, such as a censored resource.\n *\n *\n * 5xx: Server error responses\n *\n *\n * 500 - INTERNAL_SERVER_ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.\n *\n * 501 - NOT_IMPLEMENTED - The server does not support the functionality required to fulfill the request.\n *\n * 502 - BAD_GATEWAY - The server, while acting as a gateway or proxy, received an invalid response from the upstream server.\n *\n * 503 - SERVICE_UNAVAILABLE - The server is currently unavailable (because it is overloaded or down for maintenance).\n *\n * 504 - GATEWAY_TIMEOUT - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n *\n * 505 - HTTP_VERSION_NOT_SUPPORTED - The server does not support the HTTP protocol version used in the request.\n *\n * 506 - VARIANT_ALSO_NEGOTIATES - The server has an internal configuration error, such as a misconfigured gateway.\n *\n * 507 - INSUFFICIENT_STORAGE - The server is unable to store the representation needed to complete the request.\n *\n * 508 - LOOP_DETECTED - The server detected an infinite loop while processing a request.\n */\nexport enum HttpStatusCodes {\n //* ********************************\n // 1xx: Informational responses\n //* ********************************\n\n /**\n * The server has received the request headers and the client should proceed to send the request body.\n */\n CONTINUE_100 = 100,\n\n /**\n * The requester has asked the server to switch protocols and the server has agreed to do so.\n */\n SWITCHING_PROTOCOLS_101 = 101,\n\n /**\n * Used to return some response headers before final HTTP message.\n */\n PROCESSING_102 = 102, // WebDAV\n\n /**\n * Early hints - part of optimization to improve page load time.\n */\n EARLY_HINTS_103 = 103,\n\n //* ********************************\n // 2xx: Successful responses\n //* ********************************\n\n /**\n * The request has succeeded.\n */\n OK_200 = 200,\n\n /**\n * The request has been fulfilled and has resulted in one or more new resources being created.\n */\n CREATED_201 = 201,\n\n /**\n * The request has been accepted for processing, but the processing has not been completed.\n */\n ACCEPTED_202 = 202,\n\n /**\n * The server successfully processed the request, but is returning information that may be from another source.\n */\n NON_AUTHORITATIVE_INFORMATION_203 = 203,\n\n /**\n * The server successfully processed the request and is not returning any content.\n */\n NO_CONTENT_204 = 204,\n\n /**\n * The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.\n */\n RESET_CONTENT_205 = 205,\n\n /**\n * The server is delivering only part of the resource due to a range header sent by the client.\n */\n PARTIAL_CONTENT_206 = 206,\n\n /**\n * Multi-status response providing status for multiple independent operations.\n */\n MULTI_STATUS_207 = 207, // WebDAV\n\n /**\n * The members of a DAV binding have already been enumerated in a preceding part of the request.\n */\n ALREADY_REPORTED_208 = 208, // WebDAV\n\n /**\n * The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.\n */\n IM_USED_226 = 226,\n\n //* ********************************\n // 3xx: Redirection messages\n //* ********************************\n\n /**\n * The request has more than one possible response. The user-agent or user should choose one of them.\n */\n MULTIPLE_CHOICES_300 = 300,\n\n /**\n * The URL of the requested resource has been changed permanently.\n */\n MOVED_PERMANENTLY_301 = 301,\n\n /**\n * The requested resource is available at a different URI.\n */\n FOUND_302 = 302,\n\n /**\n * The response to the request can be found under another URI using a GET method.\n */\n SEE_OTHER_303 = 303,\n\n /**\n * Indicates that the resource has not been modified since the version specified by the request headers.\n */\n NOT_MODIFIED_304 = 304,\n\n /**\n * The requested resource must be accessed through the proxy given by the Location field.\n */\n USE_PROXY_305 = 305,\n\n /**\n * No longer used. Originally meant to direct the client to switch to a different proxy.\n */\n SWITCH_PROXY_306 = 306,\n\n /**\n * The requested resource resides temporarily under a different URI.\n */\n TEMPORARY_REDIRECT_307 = 307,\n\n /**\n * The request should be repeated with another URI, but future requests should still use the original URI.\n */\n PERMANENT_REDIRECT_308 = 308,\n\n //* ********************************\n // 4xx: Client error responses\n //* ********************************\n\n /**\n * The server cannot or will not process the request due to something perceived to be a client error.\n */\n BAD_REQUEST_400 = 400,\n\n /**\n * The client must authenticate itself to get the requested response.\n */\n UNAUTHORIZED_401 = 401,\n\n /**\n * The client does not have access rights to the content.\n */\n FORBIDDEN_403 = 403,\n\n /**\n * The server can not find the requested resource.\n */\n NOT_FOUND_404 = 404,\n\n /**\n * The request method is known by the server but is not supported by the target resource.\n */\n METHOD_NOT_ALLOWED_405 = 405,\n\n /**\n * This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n */\n NOT_ACCEPTABLE_406 = 406,\n\n /**\n * This is similar to 401 but authentication is needed to be done by a proxy.\n */\n PROXY_AUTHENTICATION_REQUIRED_407 = 407,\n\n /**\n * This response is sent on an idle connection by some servers, even without any previous request by the client.\n */\n REQUEST_TIMEOUT_408 = 408,\n\n /**\n * This response is sent when a request conflicts with the current state of the server.\n */\n CONFLICT_409 = 409,\n\n /**\n * This response is sent when the requested resource is no longer available and will not be available again.\n */\n GONE_410 = 410,\n\n /**\n * The request did not specify the length of its content, which is required by the requested resource.\n */\n LENGTH_REQUIRED_411 = 411,\n\n /**\n * The server does not meet one of the preconditions that the requester put on the request.\n */\n PRECONDITION_FAILED_412 = 412,\n\n /**\n * The request is larger than the server is willing or able to process.\n */\n PAYLOAD_TOO_LARGE_413 = 413,\n\n /**\n * The URI requested by the client is longer than the server is willing to interpret.\n */\n URI_TOO_LONG_414 = 414,\n\n /**\n * The media format of the requested data is not supported by the server.\n */\n UNSUPPORTED_MEDIA_TYPE_415 = 415,\n\n /**\n * The range specified by the Range header field in the request can't be fulfilled.\n */\n RANGE_NOT_SATISFIABLE_416 = 416,\n\n /**\n * The expectation indicated by the Expect request header field can't be met by the server.\n */\n EXPECTATION_FAILED_417 = 417,\n\n /**\n * The server refuses the attempt to brew coffee with a teapot.\n */\n IM_A_TEAPOT_418 = 418, // Easter egg from the HTCPCP/1.0 protocol.\n\n /**\n * The request was directed at a server that is not able to produce a response.\n */\n MISDIRECTED_REQUEST_421 = 421,\n\n /**\n * The request was well-formed but was unable to be followed due to semantic errors.\n */\n UNPROCESSABLE_ENTITY_422 = 422, // WebDAV\n\n /**\n * The resource that is being accessed is locked.\n */\n LOCKED_423 = 423, // WebDAV\n\n /**\n * The request failed due to failure of a previous request.\n */\n FAILED_DEPENDENCY_424 = 424, // WebDAV\n\n /**\n * Indicates that the server is unwilling to risk processing a request that might be replayed.\n */\n TOO_EARLY_425 = 425,\n\n /**\n * The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\n */\n UPGRADE_REQUIRED_426 = 426,\n\n /**\n * The origin server requires the request to be conditional.\n */\n PRECONDITION_REQUIRED_428 = 428,\n\n /**\n * The user has sent too many requests in a given amount of time.\n */\n TOO_MANY_REQUESTS_429 = 429,\n\n /**\n * The server is unwilling to process the request because its header fields are too large.\n */\n REQUEST_HEADER_FIELDS_TOO_LARGE_431 = 431,\n\n /**\n * The user-agent requested a resource that cannot legally be provided, such as a censored resource.\n */\n UNAVAILABLE_FOR_LEGAL_REASONS_451 = 451,\n\n //* ********************************\n // 5xx: Server error responses\n //* ********************************\n\n /**\n * The server encountered an unexpected condition that prevented it from fulfilling the request.\n */\n INTERNAL_SERVER_ERROR_500 = 500,\n\n /**\n * The server does not support the functionality required to fulfill the request.\n */\n NOT_IMPLEMENTED_501 = 501,\n\n /**\n * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.\n */\n BAD_GATEWAY_502 = 502,\n\n /**\n * The server is currently unavailable (because it is overloaded or down for maintenance).\n */\n SERVICE_UNAVAILABLE_503 = 503,\n\n /**\n * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n */\n GATEWAY_TIMEOUT_504 = 504,\n\n /**\n * The server does not support the HTTP protocol version used in the request.\n */\n HTTP_VERSION_NOT_SUPPORTED_505 = 505,\n\n /**\n * The server has an internal configuration error, such as a misconfigured gateway.\n */\n VARIANT_ALSO_NEGOTIATES_506 = 506,\n\n /**\n * The server is unable to store the representation needed to complete the request.\n */\n INSUFFICIENT_STORAGE_507 = 507, // WebDAV\n\n /**\n * The server detected an infinite loop while processing a request.\n */\n LOOP_DETECTED_508 = 508, // WebDAV\n\n /**\n * Further extensions to the request are required for the server to fulfill it.\n */\n NOT_EXTENDED_510 = 510,\n\n /**\n * The client needs to authenticate to gain network access.\n */\n NETWORK_AUTHENTICATION_REQUIRED_511 = 511,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgJO,IAAK,kBAAL,kBAAKA,qBAAL;AAQL,EAAAA,kCAAA,kBAAe,OAAf;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,oBAAiB,OAAjB;AAKA,EAAAA,kCAAA,qBAAkB,OAAlB;AASA,EAAAA,kCAAA,YAAS,OAAT;AAKA,EAAAA,kCAAA,iBAAc,OAAd;AAKA,EAAAA,kCAAA,kBAAe,OAAf;AAKA,EAAAA,kCAAA,uCAAoC,OAApC;AAKA,EAAAA,kCAAA,oBAAiB,OAAjB;AAKA,EAAAA,kCAAA,uBAAoB,OAApB;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,0BAAuB,OAAvB;AAKA,EAAAA,kCAAA,iBAAc,OAAd;AASA,EAAAA,kCAAA,0BAAuB,OAAvB;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,eAAY,OAAZ;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AASA,EAAAA,kCAAA,qBAAkB,OAAlB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AAKA,EAAAA,kCAAA,wBAAqB,OAArB;AAKA,EAAAA,kCAAA,uCAAoC,OAApC;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,kBAAe,OAAf;AAKA,EAAAA,kCAAA,cAAW,OAAX;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,gCAA6B,OAA7B;AAKA,EAAAA,kCAAA,+BAA4B,OAA5B;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AAKA,EAAAA,kCAAA,qBAAkB,OAAlB;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,8BAA2B,OAA3B;AAKA,EAAAA,kCAAA,gBAAa,OAAb;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,0BAAuB,OAAvB;AAKA,EAAAA,kCAAA,+BAA4B,OAA5B;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,yCAAsC,OAAtC;AAKA,EAAAA,kCAAA,uCAAoC,OAApC;AASA,EAAAA,kCAAA,+BAA4B,OAA5B;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,qBAAkB,OAAlB;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,oCAAiC,OAAjC;AAKA,EAAAA,kCAAA,iCAA8B,OAA9B;AAKA,EAAAA,kCAAA,8BAA2B,OAA3B;AAKA,EAAAA,kCAAA,uBAAoB,OAApB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,yCAAsC,OAAtC;AAzUU,SAAAA;AAAA,GAAA;","names":["HttpStatusCodes"]}
@@ -0,0 +1,69 @@
1
+ var HttpStatusCodes = /* @__PURE__ */ ((HttpStatusCodes2) => {
2
+ HttpStatusCodes2[HttpStatusCodes2["CONTINUE_100"] = 100] = "CONTINUE_100";
3
+ HttpStatusCodes2[HttpStatusCodes2["SWITCHING_PROTOCOLS_101"] = 101] = "SWITCHING_PROTOCOLS_101";
4
+ HttpStatusCodes2[HttpStatusCodes2["PROCESSING_102"] = 102] = "PROCESSING_102";
5
+ HttpStatusCodes2[HttpStatusCodes2["EARLY_HINTS_103"] = 103] = "EARLY_HINTS_103";
6
+ HttpStatusCodes2[HttpStatusCodes2["OK_200"] = 200] = "OK_200";
7
+ HttpStatusCodes2[HttpStatusCodes2["CREATED_201"] = 201] = "CREATED_201";
8
+ HttpStatusCodes2[HttpStatusCodes2["ACCEPTED_202"] = 202] = "ACCEPTED_202";
9
+ HttpStatusCodes2[HttpStatusCodes2["NON_AUTHORITATIVE_INFORMATION_203"] = 203] = "NON_AUTHORITATIVE_INFORMATION_203";
10
+ HttpStatusCodes2[HttpStatusCodes2["NO_CONTENT_204"] = 204] = "NO_CONTENT_204";
11
+ HttpStatusCodes2[HttpStatusCodes2["RESET_CONTENT_205"] = 205] = "RESET_CONTENT_205";
12
+ HttpStatusCodes2[HttpStatusCodes2["PARTIAL_CONTENT_206"] = 206] = "PARTIAL_CONTENT_206";
13
+ HttpStatusCodes2[HttpStatusCodes2["MULTI_STATUS_207"] = 207] = "MULTI_STATUS_207";
14
+ HttpStatusCodes2[HttpStatusCodes2["ALREADY_REPORTED_208"] = 208] = "ALREADY_REPORTED_208";
15
+ HttpStatusCodes2[HttpStatusCodes2["IM_USED_226"] = 226] = "IM_USED_226";
16
+ HttpStatusCodes2[HttpStatusCodes2["MULTIPLE_CHOICES_300"] = 300] = "MULTIPLE_CHOICES_300";
17
+ HttpStatusCodes2[HttpStatusCodes2["MOVED_PERMANENTLY_301"] = 301] = "MOVED_PERMANENTLY_301";
18
+ HttpStatusCodes2[HttpStatusCodes2["FOUND_302"] = 302] = "FOUND_302";
19
+ HttpStatusCodes2[HttpStatusCodes2["SEE_OTHER_303"] = 303] = "SEE_OTHER_303";
20
+ HttpStatusCodes2[HttpStatusCodes2["NOT_MODIFIED_304"] = 304] = "NOT_MODIFIED_304";
21
+ HttpStatusCodes2[HttpStatusCodes2["USE_PROXY_305"] = 305] = "USE_PROXY_305";
22
+ HttpStatusCodes2[HttpStatusCodes2["SWITCH_PROXY_306"] = 306] = "SWITCH_PROXY_306";
23
+ HttpStatusCodes2[HttpStatusCodes2["TEMPORARY_REDIRECT_307"] = 307] = "TEMPORARY_REDIRECT_307";
24
+ HttpStatusCodes2[HttpStatusCodes2["PERMANENT_REDIRECT_308"] = 308] = "PERMANENT_REDIRECT_308";
25
+ HttpStatusCodes2[HttpStatusCodes2["BAD_REQUEST_400"] = 400] = "BAD_REQUEST_400";
26
+ HttpStatusCodes2[HttpStatusCodes2["UNAUTHORIZED_401"] = 401] = "UNAUTHORIZED_401";
27
+ HttpStatusCodes2[HttpStatusCodes2["FORBIDDEN_403"] = 403] = "FORBIDDEN_403";
28
+ HttpStatusCodes2[HttpStatusCodes2["NOT_FOUND_404"] = 404] = "NOT_FOUND_404";
29
+ HttpStatusCodes2[HttpStatusCodes2["METHOD_NOT_ALLOWED_405"] = 405] = "METHOD_NOT_ALLOWED_405";
30
+ HttpStatusCodes2[HttpStatusCodes2["NOT_ACCEPTABLE_406"] = 406] = "NOT_ACCEPTABLE_406";
31
+ HttpStatusCodes2[HttpStatusCodes2["PROXY_AUTHENTICATION_REQUIRED_407"] = 407] = "PROXY_AUTHENTICATION_REQUIRED_407";
32
+ HttpStatusCodes2[HttpStatusCodes2["REQUEST_TIMEOUT_408"] = 408] = "REQUEST_TIMEOUT_408";
33
+ HttpStatusCodes2[HttpStatusCodes2["CONFLICT_409"] = 409] = "CONFLICT_409";
34
+ HttpStatusCodes2[HttpStatusCodes2["GONE_410"] = 410] = "GONE_410";
35
+ HttpStatusCodes2[HttpStatusCodes2["LENGTH_REQUIRED_411"] = 411] = "LENGTH_REQUIRED_411";
36
+ HttpStatusCodes2[HttpStatusCodes2["PRECONDITION_FAILED_412"] = 412] = "PRECONDITION_FAILED_412";
37
+ HttpStatusCodes2[HttpStatusCodes2["PAYLOAD_TOO_LARGE_413"] = 413] = "PAYLOAD_TOO_LARGE_413";
38
+ HttpStatusCodes2[HttpStatusCodes2["URI_TOO_LONG_414"] = 414] = "URI_TOO_LONG_414";
39
+ HttpStatusCodes2[HttpStatusCodes2["UNSUPPORTED_MEDIA_TYPE_415"] = 415] = "UNSUPPORTED_MEDIA_TYPE_415";
40
+ HttpStatusCodes2[HttpStatusCodes2["RANGE_NOT_SATISFIABLE_416"] = 416] = "RANGE_NOT_SATISFIABLE_416";
41
+ HttpStatusCodes2[HttpStatusCodes2["EXPECTATION_FAILED_417"] = 417] = "EXPECTATION_FAILED_417";
42
+ HttpStatusCodes2[HttpStatusCodes2["IM_A_TEAPOT_418"] = 418] = "IM_A_TEAPOT_418";
43
+ HttpStatusCodes2[HttpStatusCodes2["MISDIRECTED_REQUEST_421"] = 421] = "MISDIRECTED_REQUEST_421";
44
+ HttpStatusCodes2[HttpStatusCodes2["UNPROCESSABLE_ENTITY_422"] = 422] = "UNPROCESSABLE_ENTITY_422";
45
+ HttpStatusCodes2[HttpStatusCodes2["LOCKED_423"] = 423] = "LOCKED_423";
46
+ HttpStatusCodes2[HttpStatusCodes2["FAILED_DEPENDENCY_424"] = 424] = "FAILED_DEPENDENCY_424";
47
+ HttpStatusCodes2[HttpStatusCodes2["TOO_EARLY_425"] = 425] = "TOO_EARLY_425";
48
+ HttpStatusCodes2[HttpStatusCodes2["UPGRADE_REQUIRED_426"] = 426] = "UPGRADE_REQUIRED_426";
49
+ HttpStatusCodes2[HttpStatusCodes2["PRECONDITION_REQUIRED_428"] = 428] = "PRECONDITION_REQUIRED_428";
50
+ HttpStatusCodes2[HttpStatusCodes2["TOO_MANY_REQUESTS_429"] = 429] = "TOO_MANY_REQUESTS_429";
51
+ HttpStatusCodes2[HttpStatusCodes2["REQUEST_HEADER_FIELDS_TOO_LARGE_431"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE_431";
52
+ HttpStatusCodes2[HttpStatusCodes2["UNAVAILABLE_FOR_LEGAL_REASONS_451"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS_451";
53
+ HttpStatusCodes2[HttpStatusCodes2["INTERNAL_SERVER_ERROR_500"] = 500] = "INTERNAL_SERVER_ERROR_500";
54
+ HttpStatusCodes2[HttpStatusCodes2["NOT_IMPLEMENTED_501"] = 501] = "NOT_IMPLEMENTED_501";
55
+ HttpStatusCodes2[HttpStatusCodes2["BAD_GATEWAY_502"] = 502] = "BAD_GATEWAY_502";
56
+ HttpStatusCodes2[HttpStatusCodes2["SERVICE_UNAVAILABLE_503"] = 503] = "SERVICE_UNAVAILABLE_503";
57
+ HttpStatusCodes2[HttpStatusCodes2["GATEWAY_TIMEOUT_504"] = 504] = "GATEWAY_TIMEOUT_504";
58
+ HttpStatusCodes2[HttpStatusCodes2["HTTP_VERSION_NOT_SUPPORTED_505"] = 505] = "HTTP_VERSION_NOT_SUPPORTED_505";
59
+ HttpStatusCodes2[HttpStatusCodes2["VARIANT_ALSO_NEGOTIATES_506"] = 506] = "VARIANT_ALSO_NEGOTIATES_506";
60
+ HttpStatusCodes2[HttpStatusCodes2["INSUFFICIENT_STORAGE_507"] = 507] = "INSUFFICIENT_STORAGE_507";
61
+ HttpStatusCodes2[HttpStatusCodes2["LOOP_DETECTED_508"] = 508] = "LOOP_DETECTED_508";
62
+ HttpStatusCodes2[HttpStatusCodes2["NOT_EXTENDED_510"] = 510] = "NOT_EXTENDED_510";
63
+ HttpStatusCodes2[HttpStatusCodes2["NETWORK_AUTHENTICATION_REQUIRED_511"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED_511";
64
+ return HttpStatusCodes2;
65
+ })(HttpStatusCodes || {});
66
+ export {
67
+ HttpStatusCodes
68
+ };
69
+ //# sourceMappingURL=httpStatusCodes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/httpStatusCodes.ts"],"sourcesContent":["/**\n * Enum for HTTP response status codes.\n * Contains all the possible HTTP response codes according to the standard.\n *\n *\n * 1xx: Informational responses\n *\n *\n * 100 - CONTINUE - The server has received the request headers and the client should proceed to send the request body.\n *\n * 101 - SWITCHING_PROTOCOLS - The requester has asked the server to switch protocols and the server has agreed to do so.\n *\n * 102 - PROCESSING - Used to return some response headers before final HTTP message.\n *\n * 103 - EARLY_HINTS - Early hints - part of optimization to improve page load time.\n *\n *\n * 2xx: Successful responses\n *\n *\n * 200 - OK - The request has succeeded.\n *\n * 201 - CREATED - The request has been fulfilled and has resulted in one or more new resources being created.\n *\n * 202 - ACCEPTED - The request has been accepted for processing, but the processing has not been completed.\n *\n * 203 - NON_AUTHORITATIVE_INFORMATION - The server successfully processed the request, but is returning information that may be from another source.\n *\n * 204 - NO_CONTENT - The server successfully processed the request and is not returning any content.\n *\n * 205 - RESET_CONTENT - The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.\n *\n * 206 - PARTIAL_CONTENT - The server is delivering only part of the resource due to a range header sent by the client.\n *\n * 207 - MULTI_STATUS - Multi-status response providing status for multiple independent operations.\n *\n * 208 - ALREADY_REPORTED - The members of a DAV binding have already been enumerated in a preceding part of the request.\n *\n * 226 - IM_USED - The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.\n *\n *\n * 3xx: Redirection messages\n *\n *\n * 300 - MULTIPLE_CHOICES - The request has more than one possible response. The user-agent or user should choose one of them.\n *\n * 301 - MOVED_PERMANENTLY - The URL of the requested resource has been changed permanently.\n *\n * 302 - FOUND - The requested resource is available at a different URI.\n *\n * 303 - SEE_OTHER - The response to the request can be found under another URI using a GET method.\n *\n * 304 - NOT_MODIFIED - Indicates that the resource has not been modified since the version specified by the request headers.\n *\n * 305 - USE_PROXY - The requested resource must be accessed through the proxy given by the Location field.\n *\n * 306 - SWITCH_PROXY - No longer used. Originally meant to direct the client to switch to a different proxy.\n *\n * 307 - TEMPORARY_REDIRECT - The requested resource resides temporarily under a different URI.\n *\n * 308 - PERMANENT_REDIRECT - The request should be repeated with another URI, but future requests should still use the original URI.\n *\n *\n * 4xx: Client error responses\n *\n *\n * 400 - BAD_REQUEST - The server cannot or will not process the request due to something perceived to be a client error.\n *\n * 401 - UNAUTHORIZED - The client must authenticate itself to get the requested response.\n *\n * 403 - FORBIDDEN - The client does not have access rights to the content.\n *\n * 404 - NOT_FOUND - The server can not find the requested resource.\n *\n * 405 - METHOD_NOT_ALLOWED - The request method is known by the server but is not supported by the target resource.\n *\n * 406 - NOT_ACCEPTABLE - This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n *\n * 407 - PROXY_AUTHENTICATION_REQUIRED - This is similar to 401 but authentication is needed to be done by a proxy.\n *\n * 408 - REQUEST_TIMEOUT - This response is sent on an idle connection by some servers, even without any previous request by the client.\n *\n * 409 - CONFLICT - This response is sent when a request conflicts with the current state of the server.\n *\n * 410 - GONE - This response is sent when the requested resource is no longer available and will not be available again.\n *\n * 411 - LENGTH_REQUIRED - The request did not specify the length of its content, which is required by the requested resource.\n *\n * 412 - PRECONDITION_FAILED - The server does not meet one of the preconditions that the requester put on the request.\n *\n * 413 - PAYLOAD_TOO_LARGE - The request is larger than the server is willing or able to process.\n *\n * 414 - URI_TOO_LONG - The URI requested by the client is longer than the server is willing to interpret.\n *\n * 415 - UNSUPPORTED_MEDIA_TYPE - The media format of the requested data is not supported by the server.\n *\n * 416 - RANGE_NOT_SATISFIABLE - The range specified by the Range header field in the request can't be fulfilled.\n *\n * 417 - EXPECTATION_FAILED - The expectation indicated by the Expect request header field can't be met by the server.\n *\n * 418 - IM_A_TEAPOT - The server refuses the attempt to brew coffee with a teapot.\n *\n * 421 - MISDIRECTED_REQUEST - The request was directed at a server that is not able to produce a response.\n *\n * 422 - UNPROCESSABLE_ENTITY - The request was well-formed but was unable to be followed due to semantic errors.\n *\n * 423 - LOCKED - The resource that is being accessed is locked.\n *\n * 424 - FAILED_DEPENDENCY - The request failed due to failure of a previous request.\n *\n * 425 - TOO_EARLY - Indicates that the server is unwilling to risk processing a request that might be replayed.\n *\n * 426 - UPGRADE_REQUIRED - The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\n *\n * 428 - PRECONDITION_REQUIRED - The origin server requires the request to be conditional.\n *\n * 429 - TOO_MANY_REQUESTS - The user has sent too many requests in a given amount of time.\n *\n * 431 - REQUEST_HEADER_FIELDS_TOO_LARGE - The server is unwilling to process the request because its header fields are too large.\n *\n * 451 - UNAVAILABLE_FOR_LEGAL_REASONS - The user-agent requested a resource that cannot legally be provided, such as a censored resource.\n *\n *\n * 5xx: Server error responses\n *\n *\n * 500 - INTERNAL_SERVER_ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.\n *\n * 501 - NOT_IMPLEMENTED - The server does not support the functionality required to fulfill the request.\n *\n * 502 - BAD_GATEWAY - The server, while acting as a gateway or proxy, received an invalid response from the upstream server.\n *\n * 503 - SERVICE_UNAVAILABLE - The server is currently unavailable (because it is overloaded or down for maintenance).\n *\n * 504 - GATEWAY_TIMEOUT - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n *\n * 505 - HTTP_VERSION_NOT_SUPPORTED - The server does not support the HTTP protocol version used in the request.\n *\n * 506 - VARIANT_ALSO_NEGOTIATES - The server has an internal configuration error, such as a misconfigured gateway.\n *\n * 507 - INSUFFICIENT_STORAGE - The server is unable to store the representation needed to complete the request.\n *\n * 508 - LOOP_DETECTED - The server detected an infinite loop while processing a request.\n */\nexport enum HttpStatusCodes {\n //* ********************************\n // 1xx: Informational responses\n //* ********************************\n\n /**\n * The server has received the request headers and the client should proceed to send the request body.\n */\n CONTINUE_100 = 100,\n\n /**\n * The requester has asked the server to switch protocols and the server has agreed to do so.\n */\n SWITCHING_PROTOCOLS_101 = 101,\n\n /**\n * Used to return some response headers before final HTTP message.\n */\n PROCESSING_102 = 102, // WebDAV\n\n /**\n * Early hints - part of optimization to improve page load time.\n */\n EARLY_HINTS_103 = 103,\n\n //* ********************************\n // 2xx: Successful responses\n //* ********************************\n\n /**\n * The request has succeeded.\n */\n OK_200 = 200,\n\n /**\n * The request has been fulfilled and has resulted in one or more new resources being created.\n */\n CREATED_201 = 201,\n\n /**\n * The request has been accepted for processing, but the processing has not been completed.\n */\n ACCEPTED_202 = 202,\n\n /**\n * The server successfully processed the request, but is returning information that may be from another source.\n */\n NON_AUTHORITATIVE_INFORMATION_203 = 203,\n\n /**\n * The server successfully processed the request and is not returning any content.\n */\n NO_CONTENT_204 = 204,\n\n /**\n * The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.\n */\n RESET_CONTENT_205 = 205,\n\n /**\n * The server is delivering only part of the resource due to a range header sent by the client.\n */\n PARTIAL_CONTENT_206 = 206,\n\n /**\n * Multi-status response providing status for multiple independent operations.\n */\n MULTI_STATUS_207 = 207, // WebDAV\n\n /**\n * The members of a DAV binding have already been enumerated in a preceding part of the request.\n */\n ALREADY_REPORTED_208 = 208, // WebDAV\n\n /**\n * The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.\n */\n IM_USED_226 = 226,\n\n //* ********************************\n // 3xx: Redirection messages\n //* ********************************\n\n /**\n * The request has more than one possible response. The user-agent or user should choose one of them.\n */\n MULTIPLE_CHOICES_300 = 300,\n\n /**\n * The URL of the requested resource has been changed permanently.\n */\n MOVED_PERMANENTLY_301 = 301,\n\n /**\n * The requested resource is available at a different URI.\n */\n FOUND_302 = 302,\n\n /**\n * The response to the request can be found under another URI using a GET method.\n */\n SEE_OTHER_303 = 303,\n\n /**\n * Indicates that the resource has not been modified since the version specified by the request headers.\n */\n NOT_MODIFIED_304 = 304,\n\n /**\n * The requested resource must be accessed through the proxy given by the Location field.\n */\n USE_PROXY_305 = 305,\n\n /**\n * No longer used. Originally meant to direct the client to switch to a different proxy.\n */\n SWITCH_PROXY_306 = 306,\n\n /**\n * The requested resource resides temporarily under a different URI.\n */\n TEMPORARY_REDIRECT_307 = 307,\n\n /**\n * The request should be repeated with another URI, but future requests should still use the original URI.\n */\n PERMANENT_REDIRECT_308 = 308,\n\n //* ********************************\n // 4xx: Client error responses\n //* ********************************\n\n /**\n * The server cannot or will not process the request due to something perceived to be a client error.\n */\n BAD_REQUEST_400 = 400,\n\n /**\n * The client must authenticate itself to get the requested response.\n */\n UNAUTHORIZED_401 = 401,\n\n /**\n * The client does not have access rights to the content.\n */\n FORBIDDEN_403 = 403,\n\n /**\n * The server can not find the requested resource.\n */\n NOT_FOUND_404 = 404,\n\n /**\n * The request method is known by the server but is not supported by the target resource.\n */\n METHOD_NOT_ALLOWED_405 = 405,\n\n /**\n * This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n */\n NOT_ACCEPTABLE_406 = 406,\n\n /**\n * This is similar to 401 but authentication is needed to be done by a proxy.\n */\n PROXY_AUTHENTICATION_REQUIRED_407 = 407,\n\n /**\n * This response is sent on an idle connection by some servers, even without any previous request by the client.\n */\n REQUEST_TIMEOUT_408 = 408,\n\n /**\n * This response is sent when a request conflicts with the current state of the server.\n */\n CONFLICT_409 = 409,\n\n /**\n * This response is sent when the requested resource is no longer available and will not be available again.\n */\n GONE_410 = 410,\n\n /**\n * The request did not specify the length of its content, which is required by the requested resource.\n */\n LENGTH_REQUIRED_411 = 411,\n\n /**\n * The server does not meet one of the preconditions that the requester put on the request.\n */\n PRECONDITION_FAILED_412 = 412,\n\n /**\n * The request is larger than the server is willing or able to process.\n */\n PAYLOAD_TOO_LARGE_413 = 413,\n\n /**\n * The URI requested by the client is longer than the server is willing to interpret.\n */\n URI_TOO_LONG_414 = 414,\n\n /**\n * The media format of the requested data is not supported by the server.\n */\n UNSUPPORTED_MEDIA_TYPE_415 = 415,\n\n /**\n * The range specified by the Range header field in the request can't be fulfilled.\n */\n RANGE_NOT_SATISFIABLE_416 = 416,\n\n /**\n * The expectation indicated by the Expect request header field can't be met by the server.\n */\n EXPECTATION_FAILED_417 = 417,\n\n /**\n * The server refuses the attempt to brew coffee with a teapot.\n */\n IM_A_TEAPOT_418 = 418, // Easter egg from the HTCPCP/1.0 protocol.\n\n /**\n * The request was directed at a server that is not able to produce a response.\n */\n MISDIRECTED_REQUEST_421 = 421,\n\n /**\n * The request was well-formed but was unable to be followed due to semantic errors.\n */\n UNPROCESSABLE_ENTITY_422 = 422, // WebDAV\n\n /**\n * The resource that is being accessed is locked.\n */\n LOCKED_423 = 423, // WebDAV\n\n /**\n * The request failed due to failure of a previous request.\n */\n FAILED_DEPENDENCY_424 = 424, // WebDAV\n\n /**\n * Indicates that the server is unwilling to risk processing a request that might be replayed.\n */\n TOO_EARLY_425 = 425,\n\n /**\n * The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\n */\n UPGRADE_REQUIRED_426 = 426,\n\n /**\n * The origin server requires the request to be conditional.\n */\n PRECONDITION_REQUIRED_428 = 428,\n\n /**\n * The user has sent too many requests in a given amount of time.\n */\n TOO_MANY_REQUESTS_429 = 429,\n\n /**\n * The server is unwilling to process the request because its header fields are too large.\n */\n REQUEST_HEADER_FIELDS_TOO_LARGE_431 = 431,\n\n /**\n * The user-agent requested a resource that cannot legally be provided, such as a censored resource.\n */\n UNAVAILABLE_FOR_LEGAL_REASONS_451 = 451,\n\n //* ********************************\n // 5xx: Server error responses\n //* ********************************\n\n /**\n * The server encountered an unexpected condition that prevented it from fulfilling the request.\n */\n INTERNAL_SERVER_ERROR_500 = 500,\n\n /**\n * The server does not support the functionality required to fulfill the request.\n */\n NOT_IMPLEMENTED_501 = 501,\n\n /**\n * The server, while acting as a gateway or proxy, received an invalid response from the upstream server.\n */\n BAD_GATEWAY_502 = 502,\n\n /**\n * The server is currently unavailable (because it is overloaded or down for maintenance).\n */\n SERVICE_UNAVAILABLE_503 = 503,\n\n /**\n * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n */\n GATEWAY_TIMEOUT_504 = 504,\n\n /**\n * The server does not support the HTTP protocol version used in the request.\n */\n HTTP_VERSION_NOT_SUPPORTED_505 = 505,\n\n /**\n * The server has an internal configuration error, such as a misconfigured gateway.\n */\n VARIANT_ALSO_NEGOTIATES_506 = 506,\n\n /**\n * The server is unable to store the representation needed to complete the request.\n */\n INSUFFICIENT_STORAGE_507 = 507, // WebDAV\n\n /**\n * The server detected an infinite loop while processing a request.\n */\n LOOP_DETECTED_508 = 508, // WebDAV\n\n /**\n * Further extensions to the request are required for the server to fulfill it.\n */\n NOT_EXTENDED_510 = 510,\n\n /**\n * The client needs to authenticate to gain network access.\n */\n NETWORK_AUTHENTICATION_REQUIRED_511 = 511,\n}\n"],"mappings":"AAgJO,IAAK,kBAAL,kBAAKA,qBAAL;AAQL,EAAAA,kCAAA,kBAAe,OAAf;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,oBAAiB,OAAjB;AAKA,EAAAA,kCAAA,qBAAkB,OAAlB;AASA,EAAAA,kCAAA,YAAS,OAAT;AAKA,EAAAA,kCAAA,iBAAc,OAAd;AAKA,EAAAA,kCAAA,kBAAe,OAAf;AAKA,EAAAA,kCAAA,uCAAoC,OAApC;AAKA,EAAAA,kCAAA,oBAAiB,OAAjB;AAKA,EAAAA,kCAAA,uBAAoB,OAApB;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,0BAAuB,OAAvB;AAKA,EAAAA,kCAAA,iBAAc,OAAd;AASA,EAAAA,kCAAA,0BAAuB,OAAvB;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,eAAY,OAAZ;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AASA,EAAAA,kCAAA,qBAAkB,OAAlB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AAKA,EAAAA,kCAAA,wBAAqB,OAArB;AAKA,EAAAA,kCAAA,uCAAoC,OAApC;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,kBAAe,OAAf;AAKA,EAAAA,kCAAA,cAAW,OAAX;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,gCAA6B,OAA7B;AAKA,EAAAA,kCAAA,+BAA4B,OAA5B;AAKA,EAAAA,kCAAA,4BAAyB,OAAzB;AAKA,EAAAA,kCAAA,qBAAkB,OAAlB;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,8BAA2B,OAA3B;AAKA,EAAAA,kCAAA,gBAAa,OAAb;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,mBAAgB,OAAhB;AAKA,EAAAA,kCAAA,0BAAuB,OAAvB;AAKA,EAAAA,kCAAA,+BAA4B,OAA5B;AAKA,EAAAA,kCAAA,2BAAwB,OAAxB;AAKA,EAAAA,kCAAA,yCAAsC,OAAtC;AAKA,EAAAA,kCAAA,uCAAoC,OAApC;AASA,EAAAA,kCAAA,+BAA4B,OAA5B;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,qBAAkB,OAAlB;AAKA,EAAAA,kCAAA,6BAA0B,OAA1B;AAKA,EAAAA,kCAAA,yBAAsB,OAAtB;AAKA,EAAAA,kCAAA,oCAAiC,OAAjC;AAKA,EAAAA,kCAAA,iCAA8B,OAA9B;AAKA,EAAAA,kCAAA,8BAA2B,OAA3B;AAKA,EAAAA,kCAAA,uBAAoB,OAApB;AAKA,EAAAA,kCAAA,sBAAmB,OAAnB;AAKA,EAAAA,kCAAA,yCAAsC,OAAtC;AAzUU,SAAAA;AAAA,GAAA;","names":["HttpStatusCodes"]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var responseData_exports = {};
20
+ __export(responseData_exports, {
21
+ formatPaginatedResponse: () => formatPaginatedResponse,
22
+ formatResponse: () => formatResponse
23
+ });
24
+ module.exports = __toCommonJS(responseData_exports);
25
+ var import_httpStatusCodes = require('./httpStatusCodes.cjs');
26
+ const isSuccessStatus = (status) => status === import_httpStatusCodes.HttpStatusCodes.OK_200 || status === import_httpStatusCodes.HttpStatusCodes.CREATED_201 || status === import_httpStatusCodes.HttpStatusCodes.ACCEPTED_202 || status === import_httpStatusCodes.HttpStatusCodes.NON_AUTHORITATIVE_INFORMATION_203 || status === import_httpStatusCodes.HttpStatusCodes.NO_CONTENT_204 || status === import_httpStatusCodes.HttpStatusCodes.RESET_CONTENT_205 || status === import_httpStatusCodes.HttpStatusCodes.PARTIAL_CONTENT_206 || status === import_httpStatusCodes.HttpStatusCodes.MULTI_STATUS_207 || status === import_httpStatusCodes.HttpStatusCodes.ALREADY_REPORTED_208 || status === import_httpStatusCodes.HttpStatusCodes.IM_USED_226;
27
+ function formatResponse({
28
+ message,
29
+ description,
30
+ data,
31
+ error,
32
+ status = import_httpStatusCodes.HttpStatusCodes.OK_200
33
+ }) {
34
+ const success = isSuccessStatus(status);
35
+ return {
36
+ success,
37
+ message: message ?? void 0,
38
+ description: description ?? void 0,
39
+ data: data ?? null,
40
+ error: error ?? void 0,
41
+ status
42
+ };
43
+ }
44
+ function formatPaginatedResponse({
45
+ status = import_httpStatusCodes.HttpStatusCodes.OK_200,
46
+ message,
47
+ description,
48
+ data,
49
+ error,
50
+ page,
51
+ pageSize,
52
+ totalPages,
53
+ totalItems
54
+ }) {
55
+ const success = isSuccessStatus(status);
56
+ return {
57
+ success,
58
+ message: message ?? void 0,
59
+ description: description ?? void 0,
60
+ data: data ?? null,
61
+ error: error ?? void 0,
62
+ status,
63
+ page: page ?? null,
64
+ page_size: pageSize ?? null,
65
+ total_pages: totalPages ?? null,
66
+ total_items: totalItems ?? null
67
+ };
68
+ }
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ formatPaginatedResponse,
72
+ formatResponse
73
+ });
74
+ //# sourceMappingURL=responseData.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/responseData.ts"],"sourcesContent":["import { HttpStatusCodes } from './httpStatusCodes';\n\ntype ErrorData = {\n code: string;\n title: string;\n message: string;\n} & object;\n\nexport type ResponseData<T = null> = {\n message?: string;\n description?: string;\n success: boolean;\n status: HttpStatusCodes;\n data: T | null;\n error?: ErrorData | ErrorData[];\n};\n\ntype ValidResponseStatus =\n | HttpStatusCodes.OK_200\n | HttpStatusCodes.CREATED_201\n | HttpStatusCodes.ACCEPTED_202\n | HttpStatusCodes.NON_AUTHORITATIVE_INFORMATION_203\n | HttpStatusCodes.NO_CONTENT_204\n | HttpStatusCodes.RESET_CONTENT_205\n | HttpStatusCodes.PARTIAL_CONTENT_206\n | HttpStatusCodes.MULTI_STATUS_207\n | HttpStatusCodes.ALREADY_REPORTED_208\n | HttpStatusCodes.IM_USED_226;\n\ntype SuccessResponseArgs<T = undefined> = {\n message?: string;\n description?: string;\n data: T;\n status?: ValidResponseStatus;\n error?: null;\n};\n\ntype ErrorResponseArgs = {\n error: ErrorData | ErrorData[];\n status: HttpStatusCodes;\n data?: null;\n message?: null;\n description?: null;\n};\n\nconst isSuccessStatus = (\n status: HttpStatusCodes\n): status is HttpStatusCodes.OK_200 =>\n status === HttpStatusCodes.OK_200 ||\n status === HttpStatusCodes.CREATED_201 ||\n status === HttpStatusCodes.ACCEPTED_202 ||\n status === HttpStatusCodes.NON_AUTHORITATIVE_INFORMATION_203 ||\n status === HttpStatusCodes.NO_CONTENT_204 ||\n status === HttpStatusCodes.RESET_CONTENT_205 ||\n status === HttpStatusCodes.PARTIAL_CONTENT_206 ||\n status === HttpStatusCodes.MULTI_STATUS_207 ||\n status === HttpStatusCodes.ALREADY_REPORTED_208 ||\n status === HttpStatusCodes.IM_USED_226;\n\nexport function formatResponse<T>({\n message,\n description,\n data,\n status,\n}: SuccessResponseArgs<T>): ResponseData<T>;\nexport function formatResponse<T>({\n error,\n status,\n}: ErrorResponseArgs): ResponseData<T>;\nexport function formatResponse<T>({\n message,\n description,\n data,\n error,\n status = HttpStatusCodes.OK_200,\n}: SuccessResponseArgs<T> | ErrorResponseArgs): ResponseData<T> {\n const success = isSuccessStatus(status);\n\n return {\n success,\n message: message ?? undefined,\n description: description ?? undefined,\n data: data ?? null,\n error: error ?? undefined,\n status,\n };\n}\n\nexport type PaginatedResponse<T = undefined> = Omit<ResponseData<T>, 'data'> & {\n data: T[] | null;\n page: number | null;\n page_size: number | null;\n total_pages: number | null;\n total_items: number | null;\n};\n\ntype SuccessPaginatedResponseArgs<T = undefined> = {\n message?: string;\n description?: string;\n data: T[];\n status?: ValidResponseStatus;\n page: number;\n pageSize: number;\n totalPages: number;\n totalItems: number;\n\n error?: null;\n};\n\ntype ErrorPaginatedResponseArgs = {\n error: ErrorData | ErrorData[];\n status: HttpStatusCodes;\n\n message?: null;\n description?: null;\n data?: null;\n\n page?: null;\n pageSize?: null;\n totalPages?: null;\n totalItems?: null;\n};\n\nexport function formatPaginatedResponse<T>({\n message,\n description,\n data,\n status,\n page,\n pageSize,\n totalPages,\n totalItems,\n}: SuccessPaginatedResponseArgs<T>): PaginatedResponse<T>;\nexport function formatPaginatedResponse<T>({\n error,\n status,\n}: ErrorPaginatedResponseArgs): PaginatedResponse<T>;\nexport function formatPaginatedResponse<T>({\n status = HttpStatusCodes.OK_200,\n message,\n description,\n data,\n error,\n page,\n pageSize,\n totalPages,\n totalItems,\n}:\n | SuccessPaginatedResponseArgs<T>\n | ErrorPaginatedResponseArgs): PaginatedResponse<T> {\n const success = isSuccessStatus(status);\n\n return {\n success,\n message: message ?? undefined,\n description: description ?? undefined,\n data: data ?? null,\n error: error ?? undefined,\n status,\n page: page ?? null,\n page_size: pageSize ?? null,\n total_pages: totalPages ?? null,\n total_items: totalItems ?? null,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAgC;AA6ChC,MAAM,kBAAkB,CACtB,WAEA,WAAW,uCAAgB,UAC3B,WAAW,uCAAgB,eAC3B,WAAW,uCAAgB,gBAC3B,WAAW,uCAAgB,qCAC3B,WAAW,uCAAgB,kBAC3B,WAAW,uCAAgB,qBAC3B,WAAW,uCAAgB,uBAC3B,WAAW,uCAAgB,oBAC3B,WAAW,uCAAgB,wBAC3B,WAAW,uCAAgB;AAYtB,SAAS,eAAkB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,uCAAgB;AAC3B,GAAgE;AAC9D,QAAM,UAAU,gBAAgB,MAAM;AAEtC,SAAO;AAAA,IACL;AAAA,IACA,SAAS,WAAW;AAAA,IACpB,aAAa,eAAe;AAAA,IAC5B,MAAM,QAAQ;AAAA,IACd,OAAO,SAAS;AAAA,IAChB;AAAA,EACF;AACF;AAmDO,SAAS,wBAA2B;AAAA,EACzC,SAAS,uCAAgB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEsD;AACpD,QAAM,UAAU,gBAAgB,MAAM;AAEtC,SAAO;AAAA,IACL;AAAA,IACA,SAAS,WAAW;AAAA,IACpB,aAAa,eAAe;AAAA,IAC5B,MAAM,QAAQ;AAAA,IACd,OAAO,SAAS;AAAA,IAChB;AAAA,IACA,MAAM,QAAQ;AAAA,IACd,WAAW,YAAY;AAAA,IACvB,aAAa,cAAc;AAAA,IAC3B,aAAa,cAAc;AAAA,EAC7B;AACF;","names":[]}