web-core-tcm 0.0.25 → 0.0.26

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 (308) hide show
  1. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +134 -0
  2. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +70 -0
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +14 -0
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +6 -0
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +10 -0
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +136 -0
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +7 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +164 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +6 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +75 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +8 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +35 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +42 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +17 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +156 -0
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +349 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +39 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +72 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +551 -0
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +159 -0
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +58 -0
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +350 -0
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +25 -0
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +145 -0
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +110 -0
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +107 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +24 -0
  28. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +556 -0
  29. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +36 -0
  30. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +26 -0
  31. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +55 -0
  32. package/dist/node_modules/alova/dist/alova.esm.js +414 -0
  33. package/dist/node_modules/alova/dist/clienthook/index.esm.js +89 -0
  34. package/dist/node_modules/builder-pattern/dist/index.js +22 -0
  35. package/dist/node_modules/jwt-decode/build/esm/index.js +52 -0
  36. package/dist/node_modules/pinyin/lib/esm/pinyin.js +242260 -0
  37. package/dist/node_modules/punycode/punycode.es6.js +139 -0
  38. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
  39. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +4 -0
  40. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +4 -0
  41. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +16 -0
  42. package/dist/src/api/algorithm/index.d.ts +10 -0
  43. package/dist/src/api/algorithm/index.js +62 -0
  44. package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +13 -0
  45. package/dist/src/api/algorithm/inquiriesAlgorithm.js +9 -0
  46. package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +2 -0
  47. package/dist/src/api/algorithm/inspectionsAlgorithm.js +10 -0
  48. package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +2 -0
  49. package/dist/src/api/algorithm/lisemsAlgorithm.js +15 -0
  50. package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +4 -0
  51. package/dist/src/api/algorithm/pulsationsAlgorithm.js +8 -0
  52. package/dist/src/api/authorization/alova/apiDefinitions.d.ts +21 -0
  53. package/dist/src/api/authorization/alova/apiDefinitions.js +9 -0
  54. package/dist/src/api/authorization/alova/createApis.d.ts +10 -0
  55. package/dist/src/api/authorization/alova/createApis.js +51 -0
  56. package/dist/src/api/authorization/alova/implement/authorization.d.ts +4 -0
  57. package/dist/src/api/authorization/alova/implement/authorization.js +15 -0
  58. package/dist/src/api/authorization/alova/index.d.ts +5 -0
  59. package/dist/src/api/authorization/alova/index.js +18 -0
  60. package/dist/src/api/authorization/authorization.d.ts +8 -0
  61. package/dist/src/api/authorization/authorization.js +16 -0
  62. package/dist/src/api/authorization/index.js +9 -0
  63. package/dist/src/api/check/alova/apiDefinitions.d.ts +28 -0
  64. package/dist/src/api/check/alova/apiDefinitions.js +16 -0
  65. package/dist/src/api/check/alova/createApis.d.ts +10 -0
  66. package/dist/src/api/check/alova/createApis.js +51 -0
  67. package/dist/src/api/check/alova/implement/check.d.ts +27 -0
  68. package/dist/src/api/check/alova/implement/check.js +119 -0
  69. package/dist/src/api/check/alova/index.d.ts +5 -0
  70. package/dist/src/api/check/alova/index.js +21 -0
  71. package/dist/src/api/check/check.d.ts +54 -0
  72. package/dist/src/api/check/check.js +131 -0
  73. package/dist/src/api/check/index.js +11 -0
  74. package/dist/src/api/config/alova/index.d.ts +5 -0
  75. package/dist/src/api/config/alova/index.js +55 -0
  76. package/dist/src/api/config/index.d.ts +23 -0
  77. package/dist/src/api/config/index.js +106 -0
  78. package/dist/src/api/device/device.d.ts +5 -0
  79. package/dist/src/api/device/device.js +46 -0
  80. package/dist/src/api/doctor/alova/apiDefinitions.d.ts +26 -0
  81. package/dist/src/api/doctor/alova/apiDefinitions.js +14 -0
  82. package/dist/src/api/doctor/alova/createApis.d.ts +10 -0
  83. package/dist/src/api/doctor/alova/createApis.js +51 -0
  84. package/dist/src/api/doctor/alova/implement/doctor.d.ts +7 -0
  85. package/dist/src/api/doctor/alova/implement/doctor.js +42 -0
  86. package/dist/src/api/doctor/alova/index.d.ts +5 -0
  87. package/dist/src/api/doctor/alova/index.js +20 -0
  88. package/dist/src/api/doctor/doctor.d.ts +22 -0
  89. package/dist/src/api/doctor/doctor.js +29 -0
  90. package/dist/src/api/doctor/index.js +9 -0
  91. package/dist/src/api/metric/implement/metric.d.ts +24 -0
  92. package/dist/src/api/metric/implement/metric.js +80 -0
  93. package/dist/src/api/metric/index.js +6 -0
  94. package/dist/src/api/metric/metric.d.ts +28 -0
  95. package/dist/src/api/metric/metric.js +75 -0
  96. package/dist/src/api/oauth/alova/apiDefinitions.d.ts +24 -0
  97. package/dist/src/api/oauth/alova/apiDefinitions.js +12 -0
  98. package/dist/src/api/oauth/alova/createApis.d.ts +10 -0
  99. package/dist/src/api/oauth/alova/createApis.js +51 -0
  100. package/dist/src/api/oauth/alova/implement/oauth.d.ts +4 -0
  101. package/dist/src/api/oauth/alova/implement/oauth.js +15 -0
  102. package/dist/src/api/oauth/alova/index.d.ts +5 -0
  103. package/dist/src/api/oauth/alova/index.js +17 -0
  104. package/dist/src/api/oauth/index.js +9 -0
  105. package/dist/src/api/oauth/oauth.d.ts +7 -0
  106. package/dist/src/api/oauth/oauth.js +16 -0
  107. package/dist/src/api/outpatient/alova/apiDefinitions.d.ts +25 -0
  108. package/dist/src/api/outpatient/alova/apiDefinitions.js +13 -0
  109. package/dist/src/api/outpatient/alova/createApis.d.ts +10 -0
  110. package/dist/src/api/outpatient/alova/createApis.js +51 -0
  111. package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +10 -0
  112. package/dist/src/api/outpatient/alova/implement/outpatient.js +71 -0
  113. package/dist/src/api/outpatient/alova/index.d.ts +5 -0
  114. package/dist/src/api/outpatient/alova/index.js +21 -0
  115. package/dist/src/api/outpatient/index.js +11 -0
  116. package/dist/src/api/outpatient/outpatient.d.ts +39 -0
  117. package/dist/src/api/outpatient/outpatient.js +45 -0
  118. package/dist/src/api/patient/alova/apiDefinitions.d.ts +39 -0
  119. package/dist/src/api/patient/alova/apiDefinitions.js +27 -0
  120. package/dist/src/api/patient/alova/createApis.d.ts +10 -0
  121. package/dist/src/api/patient/alova/createApis.js +51 -0
  122. package/dist/src/api/patient/alova/implement/meta.d.ts +113 -0
  123. package/dist/src/api/patient/alova/implement/meta.js +404 -0
  124. package/dist/src/api/patient/alova/implement/patient.d.ts +22 -0
  125. package/dist/src/api/patient/alova/implement/patient.js +72 -0
  126. package/dist/src/api/patient/alova/index.d.ts +5 -0
  127. package/dist/src/api/patient/alova/index.js +22 -0
  128. package/dist/src/api/patient/core.d.ts +50 -0
  129. package/dist/src/api/patient/core.js +109 -0
  130. package/dist/src/api/patient/index.js +46 -0
  131. package/dist/src/api/patient/meta.d.ts +238 -0
  132. package/dist/src/api/patient/meta.js +454 -0
  133. package/dist/src/api/patient/patient.d.ts +43 -0
  134. package/dist/src/api/patient/patient.js +42 -0
  135. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +27 -0
  136. package/dist/src/api/prescription/alova/apiDefinitions.js +15 -0
  137. package/dist/src/api/prescription/alova/createApis.d.ts +10 -0
  138. package/dist/src/api/prescription/alova/createApis.js +51 -0
  139. package/dist/src/api/prescription/alova/implement/herbal.d.ts +15 -0
  140. package/dist/src/api/prescription/alova/implement/herbal.js +54 -0
  141. package/dist/src/api/prescription/alova/implement/prescription.d.ts +15 -0
  142. package/dist/src/api/prescription/alova/implement/prescription.js +49 -0
  143. package/dist/src/api/prescription/alova/index.d.ts +5 -0
  144. package/dist/src/api/prescription/alova/index.js +20 -0
  145. package/dist/src/api/prescription/herbal.d.ts +19 -0
  146. package/dist/src/api/prescription/herbal.js +34 -0
  147. package/dist/src/api/prescription/index.js +13 -0
  148. package/dist/src/api/prescription/prescription.d.ts +26 -0
  149. package/dist/src/api/prescription/prescription.js +49 -0
  150. package/dist/src/api/scientist/alova/apiDefinitions.d.ts +25 -0
  151. package/dist/src/api/scientist/alova/apiDefinitions.js +13 -0
  152. package/dist/src/api/scientist/alova/createApis.d.ts +10 -0
  153. package/dist/src/api/scientist/alova/createApis.js +51 -0
  154. package/dist/src/api/scientist/alova/implement/scientist.d.ts +6 -0
  155. package/dist/src/api/scientist/alova/implement/scientist.js +35 -0
  156. package/dist/src/api/scientist/alova/index.d.ts +6 -0
  157. package/dist/src/api/scientist/alova/index.js +21 -0
  158. package/dist/src/api/scientist/index.js +9 -0
  159. package/dist/src/api/scientist/scientist.d.ts +20 -0
  160. package/dist/src/api/scientist/scientist.js +37 -0
  161. package/dist/src/components/models.d.ts +7 -0
  162. package/dist/src/index.js +36 -0
  163. package/dist/src/pages/LoginPage.vue.d.ts +2 -0
  164. package/dist/src/proto/types/Images_pb.d.ts +34 -0
  165. package/dist/src/proto/types/Images_pb.js +10 -0
  166. package/dist/src/proto/types/WaveMap_pb.d.ts +48 -0
  167. package/dist/src/proto/types/WaveMap_pb.js +10 -0
  168. package/dist/src/router/index.d.ts +2 -0
  169. package/dist/src/router/routes.d.ts +3 -0
  170. package/dist/src/util/RichTextUtil.d.ts +1 -0
  171. package/dist/src/util/RichTextUtil.js +6 -0
  172. package/dist/src/util/datetime.d.ts +5 -0
  173. package/dist/src/util/export.d.ts +4 -0
  174. package/dist/src/util/helper.d.ts +65 -0
  175. package/dist/src/util/helper.js +46 -0
  176. package/dist/src/util/image.d.ts +2 -0
  177. package/dist/src/util/image.js +17 -0
  178. package/dist/src/util/number.d.ts +12 -0
  179. package/dist/src/util/s256.d.ts +2 -0
  180. package/dist/src/util/secret.d.ts +10 -0
  181. package/dist/src/util/string.d.ts +21 -0
  182. package/dist/src/util/string.js +10 -0
  183. package/package.json +4 -1
  184. package/.editorconfig +0 -7
  185. package/.github/workflows/test.yml +0 -29
  186. package/.prettierrc.json +0 -5
  187. package/.vscode/extensions.json +0 -15
  188. package/.vscode/settings.json +0 -9
  189. package/eslint.config.js +0 -83
  190. package/index.html +0 -24
  191. package/postcss.config.js +0 -29
  192. package/quasar.config.ts +0 -233
  193. package/src/App.vue +0 -7
  194. package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
  195. package/src/api/algorithm/index.ts +0 -50
  196. package/src/api/algorithm/inquiriesAlgorithm.ts +0 -16
  197. package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
  198. package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
  199. package/src/api/algorithm/pulsationsAlgorithm.ts +0 -8
  200. package/src/api/authorization/alova/apiDefinitions.ts +0 -23
  201. package/src/api/authorization/alova/createApis.ts +0 -114
  202. package/src/api/authorization/alova/globals.d.ts +0 -394
  203. package/src/api/authorization/alova/implement/authorization.ts +0 -14
  204. package/src/api/authorization/alova/index.ts +0 -22
  205. package/src/api/authorization/authorization.ts +0 -16
  206. package/src/api/check/alova/apiDefinitions.ts +0 -30
  207. package/src/api/check/alova/createApis.ts +0 -114
  208. package/src/api/check/alova/globals.d.ts +0 -1257
  209. package/src/api/check/alova/implement/check.ts +0 -165
  210. package/src/api/check/alova/index.ts +0 -22
  211. package/src/api/check/check.ts +0 -217
  212. package/src/api/config/alova/index.ts +0 -71
  213. package/src/api/config/index.ts +0 -132
  214. package/src/api/device/device.js +0 -58
  215. package/src/api/doctor/alova/apiDefinitions.ts +0 -28
  216. package/src/api/doctor/alova/createApis.ts +0 -114
  217. package/src/api/doctor/alova/globals.d.ts +0 -559
  218. package/src/api/doctor/alova/implement/doctor.ts +0 -51
  219. package/src/api/doctor/alova/index.ts +0 -23
  220. package/src/api/doctor/doctor.ts +0 -53
  221. package/src/api/metric/implement/metric.ts +0 -108
  222. package/src/api/metric/metric.ts +0 -114
  223. package/src/api/oauth/alova/apiDefinitions.ts +0 -26
  224. package/src/api/oauth/alova/createApis.ts +0 -114
  225. package/src/api/oauth/alova/globals.d.ts +0 -460
  226. package/src/api/oauth/alova/implement/oauth.ts +0 -24
  227. package/src/api/oauth/alova/index.ts +0 -21
  228. package/src/api/oauth/oauth.ts +0 -19
  229. package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
  230. package/src/api/outpatient/alova/createApis.ts +0 -114
  231. package/src/api/outpatient/alova/globals.d.ts +0 -685
  232. package/src/api/outpatient/alova/implement/outpatient.ts +0 -91
  233. package/src/api/outpatient/alova/index.ts +0 -22
  234. package/src/api/outpatient/outpatient.ts +0 -67
  235. package/src/api/patient/alova/apiDefinitions.ts +0 -41
  236. package/src/api/patient/alova/createApis.ts +0 -114
  237. package/src/api/patient/alova/globals.d.ts +0 -1690
  238. package/src/api/patient/alova/implement/meta.ts +0 -517
  239. package/src/api/patient/alova/implement/patient.ts +0 -99
  240. package/src/api/patient/alova/index.ts +0 -22
  241. package/src/api/patient/core.ts +0 -133
  242. package/src/api/patient/meta.ts +0 -570
  243. package/src/api/patient/patient.ts +0 -98
  244. package/src/api/prescription/alova/apiDefinitions.ts +0 -29
  245. package/src/api/prescription/alova/createApis.ts +0 -114
  246. package/src/api/prescription/alova/globals.d.ts +0 -968
  247. package/src/api/prescription/alova/implement/herbal.ts +0 -68
  248. package/src/api/prescription/alova/implement/prescription.ts +0 -62
  249. package/src/api/prescription/alova/index.ts +0 -22
  250. package/src/api/prescription/herbal.ts +0 -51
  251. package/src/api/prescription/prescription.ts +0 -76
  252. package/src/api/scientist/alova/apiDefinitions.ts +0 -27
  253. package/src/api/scientist/alova/createApis.ts +0 -114
  254. package/src/api/scientist/alova/globals.d.ts +0 -447
  255. package/src/api/scientist/alova/implement/scientist.ts +0 -40
  256. package/src/api/scientist/alova/index.ts +0 -24
  257. package/src/api/scientist/scientist.ts +0 -49
  258. package/src/assets/quasar-logo-vertical.svg +0 -15
  259. package/src/boot/.gitkeep +0 -0
  260. package/src/components/ExampleComponent.vue +0 -37
  261. package/src/components/models.ts +0 -8
  262. package/src/css/app.scss +0 -1
  263. package/src/css/quasar.variables.scss +0 -25
  264. package/src/env.d.ts +0 -7
  265. package/src/layouts/UserLayout.vue +0 -108
  266. package/src/pages/LoginPage.vue +0 -29
  267. package/src/proto/Images.proto +0 -7
  268. package/src/proto/WaveMap.proto +0 -10
  269. package/src/proto/types/Images_pb.ts +0 -48
  270. package/src/proto/types/WaveMap_pb.ts +0 -59
  271. package/src/router/index.ts +0 -37
  272. package/src/router/routes.ts +0 -14
  273. package/src/util/RichTextUtil.ts +0 -5
  274. package/src/util/datetime.ts +0 -43
  275. package/src/util/export.ts +0 -46
  276. package/src/util/helper.ts +0 -159
  277. package/src/util/image.ts +0 -28
  278. package/src/util/number.ts +0 -146
  279. package/src/util/s256.js +0 -27
  280. package/src/util/secret.ts +0 -60
  281. package/src/util/string.ts +0 -121
  282. package/tsconfig.json +0 -7
  283. /package/{public → dist}/favicon.ico +0 -0
  284. /package/{public → dist}/icons/favicon-128x128.png +0 -0
  285. /package/{public → dist}/icons/favicon-16x16.png +0 -0
  286. /package/{public → dist}/icons/favicon-32x32.png +0 -0
  287. /package/{public → dist}/icons/favicon-96x96.png +0 -0
  288. /package/{src/api/authorization/alova/implement/index.ts → dist/src/api/authorization/alova/implement/index.d.ts} +0 -0
  289. /package/{src/api/authorization/index.ts → dist/src/api/authorization/index.d.ts} +0 -0
  290. /package/{src/api/check/alova/implement/index.ts → dist/src/api/check/alova/implement/index.d.ts} +0 -0
  291. /package/{src/api/check/index.ts → dist/src/api/check/index.d.ts} +0 -0
  292. /package/{src/api/doctor/alova/implement/index.ts → dist/src/api/doctor/alova/implement/index.d.ts} +0 -0
  293. /package/{src/api/doctor/index.ts → dist/src/api/doctor/index.d.ts} +0 -0
  294. /package/{src/api/index.ts → dist/src/api/index.d.ts} +0 -0
  295. /package/{src/api/metric/implement/index.ts → dist/src/api/metric/implement/index.d.ts} +0 -0
  296. /package/{src/api/metric/index.ts → dist/src/api/metric/index.d.ts} +0 -0
  297. /package/{src/api/oauth/alova/implement/index.ts → dist/src/api/oauth/alova/implement/index.d.ts} +0 -0
  298. /package/{src/api/oauth/index.ts → dist/src/api/oauth/index.d.ts} +0 -0
  299. /package/{src/api/outpatient/alova/implement/index.ts → dist/src/api/outpatient/alova/implement/index.d.ts} +0 -0
  300. /package/{src/api/outpatient/index.ts → dist/src/api/outpatient/index.d.ts} +0 -0
  301. /package/{src/api/patient/alova/implement/index.ts → dist/src/api/patient/alova/implement/index.d.ts} +0 -0
  302. /package/{src/api/patient/index.ts → dist/src/api/patient/index.d.ts} +0 -0
  303. /package/{src/api/prescription/alova/implement/index.ts → dist/src/api/prescription/alova/implement/index.d.ts} +0 -0
  304. /package/{src/api/prescription/index.ts → dist/src/api/prescription/index.d.ts} +0 -0
  305. /package/{src/api/scientist/alova/implement/index.ts → dist/src/api/scientist/alova/implement/index.d.ts} +0 -0
  306. /package/{src/api/scientist/index.ts → dist/src/api/scientist/index.d.ts} +0 -0
  307. /package/{src/index.ts → dist/src/index.d.ts} +0 -0
  308. /package/{src/proto/index.ts → dist/src/proto/index.d.ts} +0 -0
@@ -0,0 +1,134 @@
1
+ const u = "undefined", R = Promise, q = (t) => R.reject(t), f = Object, G = RegExp, a = void 0, P = null, Y = !0, T = !1, _ = (t, e, n) => t.then(e, n), z = (t, e) => t.catch(e), H = (t, e) => t.finally(e), b = (t, e, n) => JSON.stringify(t, e, n), L = (t) => JSON.parse(t), Q = (t, e = 0) => setTimeout(t, e), X = (t) => clearTimeout(t), C = (t) => f.keys(t), w = (t, e) => t.forEach(e), F = (t, ...e) => t.push(...e), m = (t, e) => t.map(e), $ = (t, e) => t.filter(e), Z = (t, e, n = 0, ...o) => t.splice(e, n, ...o), U = (t) => t.length, j = (t) => Array.isArray(t), tt = (t, e) => delete t[e], g = (t) => typeof t, et = typeof window === u && (typeof process !== u ? !process.browser : typeof Deno !== u), y = "memory", v = "restore", M = () => {
2
+ }, nt = (t) => t, p = (t) => g(t) === "function", J = (t) => g(t) === "number" && !Number.isNaN(t), K = (t) => g(t) === "string", x = (t) => f.prototype.toString.call(t), E = (t) => x(t) === "[object Object]", V = (t, e) => t instanceof e, S = (t) => t ? t.getTime() : Date.now(), B = (t) => t.context, A = (t) => t.config, D = (t) => t.options, ot = (t) => D(B(t)), st = (t) => {
3
+ const { params: e, headers: n } = A(t);
4
+ return b([t.type, t.url, e, t.data, n]);
5
+ }, ct = (t) => t.key, rt = (t) => {
6
+ const e = x(t);
7
+ return /^\[object (Blob|FormData|ReadableStream|URLSearchParams)\]$/i.test(e) || V(t, ArrayBuffer);
8
+ }, it = (t, ...e) => f.assign(t, ...e), lt = (t) => {
9
+ const { cacheFor: e } = A(t), n = (c) => J(c) ? S() + c : S(c || a);
10
+ let o = y, s = () => 0, i = T, r = a;
11
+ const d = p(e);
12
+ if (!d) {
13
+ let c = e;
14
+ if (E(e)) {
15
+ const { mode: l = y, expire: N, tag: h } = e || {};
16
+ o = l, i = l === v, r = h ? h.toString() : a, c = N;
17
+ }
18
+ s = (l) => n(p(c) ? c({ method: t, mode: l }) : c);
19
+ }
20
+ return {
21
+ f: e,
22
+ c: d,
23
+ e: s,
24
+ m: o,
25
+ s: i,
26
+ t: r
27
+ };
28
+ }, W = (t, ...e) => new t(...e), at = (t, e) => p(t) ? t : [T, P].includes(t) ? M : e, I = "$a.", ft = (t, e) => I + t + e, ut = (t, e, n) => {
29
+ const o = /^https?:\/\//i.test(e);
30
+ o || (t = t.endsWith("/") ? t.slice(0, -1) : t, e !== "" && (e = e.startsWith("/") ? e : `/${e}`));
31
+ const s = o ? e : t + e, i = K(n) ? n : m($(C(n), (r) => n[r] !== a), (r) => `${r}=${n[r]}`).join("&");
32
+ return i ? +s.includes("?") ? `${s}&${i}` : `${s}?${i}` : s;
33
+ }, O = (t) => {
34
+ if (j(t))
35
+ return m(t, O);
36
+ if (E(t) && t.constructor === f) {
37
+ const e = {};
38
+ return w(C(t), (n) => {
39
+ e[n] = O(t[n]);
40
+ }), e;
41
+ }
42
+ return t;
43
+ };
44
+ class k extends Error {
45
+ constructor(e, n, o) {
46
+ super(n + (o ? `
47
+
48
+ For detailed: https://alova.js.org/error#${o}` : "")), this.name = `[alova${e ? `/${e}` : ""}]`;
49
+ }
50
+ }
51
+ const pt = (t = "") => (e, n, o) => {
52
+ if (!e)
53
+ throw W(k, t, n, o);
54
+ }, mt = () => {
55
+ const t = {};
56
+ return {
57
+ eventMap: t,
58
+ on(e, n) {
59
+ const o = t[e] = t[e] || [];
60
+ return F(o, n), () => {
61
+ t[e] = $(o, (s) => s !== n);
62
+ };
63
+ },
64
+ off(e, n) {
65
+ const o = t[e];
66
+ if (o)
67
+ if (n) {
68
+ const s = o.indexOf(n);
69
+ s > -1 && o.splice(s, 1);
70
+ } else
71
+ delete t[e];
72
+ },
73
+ emit(e, n) {
74
+ const o = t[e] || [];
75
+ return m(o, (s) => s(n));
76
+ }
77
+ };
78
+ };
79
+ export {
80
+ nt as $self,
81
+ k as AlovaError,
82
+ L as JSONParse,
83
+ b as JSONStringify,
84
+ y as MEMORY,
85
+ f as ObjectCls,
86
+ R as PromiseCls,
87
+ G as RegExpCls,
88
+ v as STORAGE_RESTORE,
89
+ ut as buildCompletedURL,
90
+ ft as buildNamespacedCacheKey,
91
+ X as clearTimeoutTimer,
92
+ pt as createAssert,
93
+ mt as createEventManager,
94
+ O as deepClone,
95
+ tt as deleteAttr,
96
+ T as falseValue,
97
+ $ as filterItem,
98
+ w as forEach,
99
+ A as getConfig,
100
+ B as getContext,
101
+ D as getContextOptions,
102
+ lt as getLocalCacheConfigParam,
103
+ ct as getMethodInternalKey,
104
+ ot as getOptions,
105
+ S as getTime,
106
+ x as globalToString,
107
+ V as instanceOf,
108
+ j as isArray,
109
+ p as isFn,
110
+ J as isNumber,
111
+ E as isPlainObject,
112
+ et as isSSR,
113
+ rt as isSpecialRequestBody,
114
+ K as isString,
115
+ st as key,
116
+ U as len,
117
+ m as mapItem,
118
+ W as newInstance,
119
+ M as noop,
120
+ P as nullValue,
121
+ it as objAssign,
122
+ C as objectKeys,
123
+ z as promiseCatch,
124
+ H as promiseFinally,
125
+ q as promiseReject,
126
+ _ as promiseThen,
127
+ F as pushItem,
128
+ Q as setTimeoutFn,
129
+ at as sloughFunction,
130
+ Z as splice,
131
+ Y as trueValue,
132
+ g as typeOf,
133
+ a as undefinedValue
134
+ };
@@ -0,0 +1,70 @@
1
+ import { restoreJsonNames as u } from "./restore-json-names.js";
2
+ import { createFileRegistry as g } from "../registry.js";
3
+ function j(e) {
4
+ const o = b(e);
5
+ return o.messageType.forEach(u), g(o, () => {
6
+ }).getFile(o.name);
7
+ }
8
+ function b(e) {
9
+ return Object.assign(/* @__PURE__ */ Object.create({
10
+ syntax: "",
11
+ edition: 0
12
+ }), Object.assign(Object.assign({ $typeName: "google.protobuf.FileDescriptorProto", dependency: [], publicDependency: [], weakDependency: [], optionDependency: [], service: [], extension: [] }, e), { messageType: e.messageType.map(l), enumType: e.enumType.map(c) }));
13
+ }
14
+ function l(e) {
15
+ var o, t, n, s, r, a, p, i;
16
+ return Object.assign(/* @__PURE__ */ Object.create({
17
+ visibility: 0
18
+ }), {
19
+ $typeName: "google.protobuf.DescriptorProto",
20
+ name: e.name,
21
+ field: (t = (o = e.field) === null || o === void 0 ? void 0 : o.map(m)) !== null && t !== void 0 ? t : [],
22
+ extension: [],
23
+ nestedType: (s = (n = e.nestedType) === null || n === void 0 ? void 0 : n.map(l)) !== null && s !== void 0 ? s : [],
24
+ enumType: (a = (r = e.enumType) === null || r === void 0 ? void 0 : r.map(c)) !== null && a !== void 0 ? a : [],
25
+ extensionRange: (i = (p = e.extensionRange) === null || p === void 0 ? void 0 : p.map((d) => Object.assign({ $typeName: "google.protobuf.DescriptorProto.ExtensionRange" }, d))) !== null && i !== void 0 ? i : [],
26
+ oneofDecl: [],
27
+ reservedRange: [],
28
+ reservedName: []
29
+ });
30
+ }
31
+ function m(e) {
32
+ return Object.assign(/* @__PURE__ */ Object.create({
33
+ label: 1,
34
+ typeName: "",
35
+ extendee: "",
36
+ defaultValue: "",
37
+ oneofIndex: 0,
38
+ jsonName: "",
39
+ proto3Optional: !1
40
+ }), Object.assign(Object.assign({ $typeName: "google.protobuf.FieldDescriptorProto" }, e), { options: e.options ? f(e.options) : void 0 }));
41
+ }
42
+ function f(e) {
43
+ var o, t, n;
44
+ return Object.assign(/* @__PURE__ */ Object.create({
45
+ ctype: 0,
46
+ packed: !1,
47
+ jstype: 0,
48
+ lazy: !1,
49
+ unverifiedLazy: !1,
50
+ deprecated: !1,
51
+ weak: !1,
52
+ debugRedact: !1,
53
+ retention: 0
54
+ }), Object.assign(Object.assign({ $typeName: "google.protobuf.FieldOptions" }, e), { targets: (o = e.targets) !== null && o !== void 0 ? o : [], editionDefaults: (n = (t = e.editionDefaults) === null || t === void 0 ? void 0 : t.map((r) => Object.assign({ $typeName: "google.protobuf.FieldOptions.EditionDefault" }, r))) !== null && n !== void 0 ? n : [], uninterpretedOption: [] }));
55
+ }
56
+ function c(e) {
57
+ return Object.assign(/* @__PURE__ */ Object.create({
58
+ visibility: 0
59
+ }), {
60
+ $typeName: "google.protobuf.EnumDescriptorProto",
61
+ name: e.name,
62
+ reservedName: [],
63
+ reservedRange: [],
64
+ value: e.value.map((t) => Object.assign({ $typeName: "google.protobuf.EnumValueDescriptorProto" }, t))
65
+ });
66
+ }
67
+ export {
68
+ j as boot,
69
+ b as bootFileDescriptorProto
70
+ };
@@ -0,0 +1,14 @@
1
+ import { base64Decode as t } from "../wire/base64-encoding.js";
2
+ import { FileDescriptorProtoSchema as i } from "../wkt/gen/google/protobuf/descriptor_pb.js";
3
+ import { createFileRegistry as m } from "../registry.js";
4
+ import { restoreJsonNames as s } from "./restore-json-names.js";
5
+ import { fromBinary as a } from "../from-binary.js";
6
+ function y(r, n) {
7
+ var o;
8
+ const e = a(i, t(r));
9
+ return e.messageType.forEach(s), e.dependency = (o = void 0) !== null && o !== void 0 ? o : [], m(e, (c) => {
10
+ }).getFile(e.name);
11
+ }
12
+ export {
13
+ y as fileDesc
14
+ };
@@ -0,0 +1,6 @@
1
+ function a(e, s, ...n) {
2
+ return n.reduce((r, t) => r.nestedMessages[t], e.messages[s]);
3
+ }
4
+ export {
5
+ a as messageDesc
6
+ };
@@ -0,0 +1,10 @@
1
+ import { protoCamelCase as f } from "../reflect/names.js";
2
+ import { unsafeIsSetExplicit as r } from "../reflect/unsafe.js";
3
+ function t(e) {
4
+ for (const o of e.field)
5
+ r(o, "jsonName") || (o.jsonName = f(o.name));
6
+ e.nestedType.forEach(t);
7
+ }
8
+ export {
9
+ t as restoreJsonNames
10
+ };
@@ -0,0 +1,136 @@
1
+ import { isMessage as g } from "./is-message.js";
2
+ import { ScalarType as c } from "./descriptors.js";
3
+ import { scalarZeroValue as y } from "./reflect/scalar.js";
4
+ import { isObject as d } from "./reflect/guard.js";
5
+ import { unsafeOneofCase as K, unsafeGet as N, unsafeSet as S } from "./reflect/unsafe.js";
6
+ import { isWrapperDesc as k } from "./wkt/wrappers.js";
7
+ const O = 999, T = 998, i = 2;
8
+ function A(e, n) {
9
+ if (g(n, e))
10
+ return n;
11
+ const t = P(e);
12
+ return n !== void 0 && M(e, t, n), t;
13
+ }
14
+ function M(e, n, t) {
15
+ for (const s of e.members) {
16
+ let o = t[s.localName];
17
+ if (o == null)
18
+ continue;
19
+ let r;
20
+ if (s.kind == "oneof") {
21
+ const a = K(t, s);
22
+ if (!a)
23
+ continue;
24
+ r = a, o = N(t, a);
25
+ } else
26
+ r = s;
27
+ switch (r.fieldKind) {
28
+ case "message":
29
+ o = m(r, o);
30
+ break;
31
+ case "scalar":
32
+ o = b(r, o);
33
+ break;
34
+ case "list":
35
+ o = w(r, o);
36
+ break;
37
+ case "map":
38
+ o = I(r, o);
39
+ break;
40
+ }
41
+ S(n, r, o);
42
+ }
43
+ return n;
44
+ }
45
+ function b(e, n) {
46
+ return e.scalar == c.BYTES ? u(n) : n;
47
+ }
48
+ function I(e, n) {
49
+ if (d(n)) {
50
+ if (e.scalar == c.BYTES)
51
+ return l(n, u);
52
+ if (e.mapKind == "message")
53
+ return l(n, (t) => m(e, t));
54
+ }
55
+ return n;
56
+ }
57
+ function w(e, n) {
58
+ if (Array.isArray(n)) {
59
+ if (e.scalar == c.BYTES)
60
+ return n.map(u);
61
+ if (e.listKind == "message")
62
+ return n.map((t) => m(e, t));
63
+ }
64
+ return n;
65
+ }
66
+ function m(e, n) {
67
+ if (e.fieldKind == "message" && !e.oneof && k(e.message))
68
+ return b(e.message.fields[0], n);
69
+ if (d(n)) {
70
+ if (e.message.typeName == "google.protobuf.Struct" && e.parent.typeName !== "google.protobuf.Value")
71
+ return n;
72
+ if (!g(n, e.message))
73
+ return A(e.message, n);
74
+ }
75
+ return n;
76
+ }
77
+ function u(e) {
78
+ return Array.isArray(e) ? new Uint8Array(e) : e;
79
+ }
80
+ function l(e, n) {
81
+ const t = {};
82
+ for (const s of Object.entries(e))
83
+ t[s[0]] = n(s[1]);
84
+ return t;
85
+ }
86
+ const E = Symbol(), p = /* @__PURE__ */ new WeakMap();
87
+ function P(e) {
88
+ let n;
89
+ if (V(e)) {
90
+ const t = p.get(e);
91
+ let s, o;
92
+ if (t)
93
+ ({ prototype: s, members: o } = t);
94
+ else {
95
+ s = {}, o = /* @__PURE__ */ new Set();
96
+ for (const r of e.members)
97
+ r.kind != "oneof" && (r.fieldKind != "scalar" && r.fieldKind != "enum" || r.presence != i && (o.add(r), s[r.localName] = f(r)));
98
+ p.set(e, { prototype: s, members: o });
99
+ }
100
+ n = Object.create(s), n.$typeName = e.typeName;
101
+ for (const r of e.members)
102
+ o.has(r) || r.kind == "field" && (r.fieldKind == "message" || (r.fieldKind == "scalar" || r.fieldKind == "enum") && r.presence != i) || (n[r.localName] = f(r));
103
+ } else {
104
+ n = {
105
+ $typeName: e.typeName
106
+ };
107
+ for (const t of e.members)
108
+ (t.kind == "oneof" || t.presence == i) && (n[t.localName] = f(t));
109
+ }
110
+ return n;
111
+ }
112
+ function V(e) {
113
+ switch (e.file.edition) {
114
+ case O:
115
+ return !1;
116
+ case T:
117
+ return !0;
118
+ default:
119
+ return e.fields.some((n) => n.presence != i && n.fieldKind != "message" && !n.oneof);
120
+ }
121
+ }
122
+ function f(e) {
123
+ if (e.kind == "oneof")
124
+ return { case: void 0 };
125
+ if (e.fieldKind == "list")
126
+ return [];
127
+ if (e.fieldKind == "map")
128
+ return {};
129
+ if (e.fieldKind == "message")
130
+ return E;
131
+ const n = e.getDefaultValue();
132
+ return n !== void 0 ? e.fieldKind == "scalar" && e.longAsString ? n.toString() : n : e.fieldKind == "scalar" ? y(e.scalar, e.longAsString) : e.enum.values[0].number;
133
+ }
134
+ export {
135
+ A as create
136
+ };
@@ -0,0 +1,7 @@
1
+ var N;
2
+ (function(I) {
3
+ I[I.DOUBLE = 1] = "DOUBLE", I[I.FLOAT = 2] = "FLOAT", I[I.INT64 = 3] = "INT64", I[I.UINT64 = 4] = "UINT64", I[I.INT32 = 5] = "INT32", I[I.FIXED64 = 6] = "FIXED64", I[I.FIXED32 = 7] = "FIXED32", I[I.BOOL = 8] = "BOOL", I[I.STRING = 9] = "STRING", I[I.BYTES = 12] = "BYTES", I[I.UINT32 = 13] = "UINT32", I[I.SFIXED32 = 15] = "SFIXED32", I[I.SFIXED64 = 16] = "SFIXED64", I[I.SINT32 = 17] = "SINT32", I[I.SINT64 = 18] = "SINT64";
4
+ })(N || (N = {}));
5
+ export {
6
+ N as ScalarType
7
+ };
@@ -0,0 +1,164 @@
1
+ import { ScalarType as i } from "./descriptors.js";
2
+ import { scalarZeroValue as w } from "./reflect/scalar.js";
3
+ import { reflect as b } from "./reflect/reflect.js";
4
+ import { BinaryReader as h, WireType as k } from "./wire/binary-encoding.js";
5
+ import { varint32write as v } from "./wire/varint.js";
6
+ const d = {
7
+ readUnknownFields: !0
8
+ };
9
+ function y(n) {
10
+ return n ? Object.assign(Object.assign({}, d), n) : d;
11
+ }
12
+ function K(n, e, t) {
13
+ const s = b(n, void 0, !1);
14
+ return T(s, new h(e), y(t), !1, e.byteLength), s.message;
15
+ }
16
+ function T(n, e, t, s, c) {
17
+ var a;
18
+ const u = s ? e.len : e.pos + c;
19
+ let l, o;
20
+ const f = (a = n.getUnknown()) !== null && a !== void 0 ? a : [];
21
+ for (; e.pos < u && ([l, o] = e.tag(), !(s && o == k.EndGroup)); ) {
22
+ const m = n.findNumber(l);
23
+ if (!m) {
24
+ const I = e.skip(o, l);
25
+ t.readUnknownFields && f.push({ no: l, wireType: o, data: I });
26
+ continue;
27
+ }
28
+ E(n, e, m, o, t);
29
+ }
30
+ if (s && (o != k.EndGroup || l !== c))
31
+ throw new Error("invalid end group tag");
32
+ f.length > 0 && n.setUnknown(f);
33
+ }
34
+ function E(n, e, t, s, c) {
35
+ var a;
36
+ switch (t.fieldKind) {
37
+ case "scalar":
38
+ n.set(t, r(e, t.scalar));
39
+ break;
40
+ case "enum":
41
+ const u = r(e, i.INT32);
42
+ if (t.enum.open)
43
+ n.set(t, u);
44
+ else if (t.enum.values.some((o) => o.number === u))
45
+ n.set(t, u);
46
+ else if (c.readUnknownFields) {
47
+ const o = [];
48
+ v(u, o);
49
+ const f = (a = n.getUnknown()) !== null && a !== void 0 ? a : [];
50
+ f.push({
51
+ no: t.number,
52
+ wireType: s,
53
+ data: new Uint8Array(o)
54
+ }), n.setUnknown(f);
55
+ }
56
+ break;
57
+ case "message":
58
+ n.set(t, p(e, c, t, n.get(t)));
59
+ break;
60
+ case "list":
61
+ N(e, s, n.get(t), c);
62
+ break;
63
+ case "map":
64
+ F(e, n.get(t), c);
65
+ break;
66
+ }
67
+ }
68
+ function F(n, e, t) {
69
+ const s = e.field();
70
+ let c, a;
71
+ const u = n.uint32(), l = n.pos + u;
72
+ for (; n.pos < l; ) {
73
+ const [o] = n.tag();
74
+ switch (o) {
75
+ case 1:
76
+ c = r(n, s.mapKey);
77
+ break;
78
+ case 2:
79
+ switch (s.mapKind) {
80
+ case "scalar":
81
+ a = r(n, s.scalar);
82
+ break;
83
+ case "enum":
84
+ a = n.int32();
85
+ break;
86
+ case "message":
87
+ a = p(n, t, s);
88
+ break;
89
+ }
90
+ break;
91
+ }
92
+ }
93
+ if (c === void 0 && (c = w(s.mapKey, !1)), a === void 0)
94
+ switch (s.mapKind) {
95
+ case "scalar":
96
+ a = w(s.scalar, !1);
97
+ break;
98
+ case "enum":
99
+ a = s.enum.values[0].number;
100
+ break;
101
+ case "message":
102
+ a = b(s.message, void 0, !1);
103
+ break;
104
+ }
105
+ e.set(c, a);
106
+ }
107
+ function N(n, e, t, s) {
108
+ var c;
109
+ const a = t.field();
110
+ if (a.listKind === "message") {
111
+ t.add(p(n, s, a));
112
+ return;
113
+ }
114
+ const u = (c = a.scalar) !== null && c !== void 0 ? c : i.INT32;
115
+ if (!(e == k.LengthDelimited && u != i.STRING && u != i.BYTES)) {
116
+ t.add(r(n, u));
117
+ return;
118
+ }
119
+ const o = n.uint32() + n.pos;
120
+ for (; n.pos < o; )
121
+ t.add(r(n, u));
122
+ }
123
+ function p(n, e, t, s) {
124
+ const c = t.delimitedEncoding, a = s ?? b(t.message, void 0, !1);
125
+ return T(a, n, e, c, c ? t.number : n.uint32()), a;
126
+ }
127
+ function r(n, e) {
128
+ switch (e) {
129
+ case i.STRING:
130
+ return n.string();
131
+ case i.BOOL:
132
+ return n.bool();
133
+ case i.DOUBLE:
134
+ return n.double();
135
+ case i.FLOAT:
136
+ return n.float();
137
+ case i.INT32:
138
+ return n.int32();
139
+ case i.INT64:
140
+ return n.int64();
141
+ case i.UINT64:
142
+ return n.uint64();
143
+ case i.FIXED64:
144
+ return n.fixed64();
145
+ case i.BYTES:
146
+ return n.bytes();
147
+ case i.FIXED32:
148
+ return n.fixed32();
149
+ case i.SFIXED32:
150
+ return n.sfixed32();
151
+ case i.SFIXED64:
152
+ return n.sfixed64();
153
+ case i.SINT64:
154
+ return n.sint64();
155
+ case i.UINT32:
156
+ return n.uint32();
157
+ case i.SINT32:
158
+ return n.sint32();
159
+ }
160
+ }
161
+ export {
162
+ K as fromBinary,
163
+ E as readField
164
+ };
@@ -0,0 +1,6 @@
1
+ function s(e, t) {
2
+ return e !== null && typeof e == "object" && "$typeName" in e && typeof e.$typeName == "string" ? t === void 0 ? !0 : t.typeName === e.$typeName : !1;
3
+ }
4
+ export {
5
+ s as isMessage
6
+ };
@@ -0,0 +1,75 @@
1
+ import { uInt64ToString as c, int64ToString as p, int64FromString as o } from "./wire/varint.js";
2
+ const w = /* @__PURE__ */ u();
3
+ function u() {
4
+ const n = new DataView(new ArrayBuffer(8));
5
+ if (typeof BigInt == "function" && typeof n.getBigInt64 == "function" && typeof n.getBigUint64 == "function" && typeof n.setBigInt64 == "function" && typeof n.setBigUint64 == "function" && (!!globalThis.Deno || typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
6
+ const t = BigInt("-9223372036854775808"), e = BigInt("9223372036854775807"), f = BigInt("0"), I = BigInt("18446744073709551615");
7
+ return {
8
+ zero: BigInt(0),
9
+ supported: !0,
10
+ parse(r) {
11
+ const i = typeof r == "bigint" ? r : BigInt(r);
12
+ if (i > e || i < t)
13
+ throw new Error(`invalid int64: ${r}`);
14
+ return i;
15
+ },
16
+ uParse(r) {
17
+ const i = typeof r == "bigint" ? r : BigInt(r);
18
+ if (i > I || i < f)
19
+ throw new Error(`invalid uint64: ${r}`);
20
+ return i;
21
+ },
22
+ enc(r) {
23
+ return n.setBigInt64(0, this.parse(r), !0), {
24
+ lo: n.getInt32(0, !0),
25
+ hi: n.getInt32(4, !0)
26
+ };
27
+ },
28
+ uEnc(r) {
29
+ return n.setBigInt64(0, this.uParse(r), !0), {
30
+ lo: n.getInt32(0, !0),
31
+ hi: n.getInt32(4, !0)
32
+ };
33
+ },
34
+ dec(r, i) {
35
+ return n.setInt32(0, r, !0), n.setInt32(4, i, !0), n.getBigInt64(0, !0);
36
+ },
37
+ uDec(r, i) {
38
+ return n.setInt32(0, r, !0), n.setInt32(4, i, !0), n.getBigUint64(0, !0);
39
+ }
40
+ };
41
+ }
42
+ return {
43
+ zero: "0",
44
+ supported: !1,
45
+ parse(t) {
46
+ return typeof t != "string" && (t = t.toString()), s(t), t;
47
+ },
48
+ uParse(t) {
49
+ return typeof t != "string" && (t = t.toString()), g(t), t;
50
+ },
51
+ enc(t) {
52
+ return typeof t != "string" && (t = t.toString()), s(t), o(t);
53
+ },
54
+ uEnc(t) {
55
+ return typeof t != "string" && (t = t.toString()), g(t), o(t);
56
+ },
57
+ dec(t, e) {
58
+ return p(t, e);
59
+ },
60
+ uDec(t, e) {
61
+ return c(t, e);
62
+ }
63
+ };
64
+ }
65
+ function s(n) {
66
+ if (!/^-?[0-9]+$/.test(n))
67
+ throw new Error("invalid int64: " + n);
68
+ }
69
+ function g(n) {
70
+ if (!/^[0-9]+$/.test(n))
71
+ throw new Error("invalid uint64: " + n);
72
+ }
73
+ export {
74
+ w as protoInt64
75
+ };
@@ -0,0 +1,8 @@
1
+ class l extends Error {
2
+ constructor(r, e, s = "FieldValueInvalidError") {
3
+ super(e), this.name = s, this.field = () => r;
4
+ }
5
+ }
6
+ export {
7
+ l as FieldError
8
+ };
@@ -0,0 +1,35 @@
1
+ import { unsafeLocal as f } from "./unsafe.js";
2
+ function s(e) {
3
+ return e !== null && typeof e == "object" && !Array.isArray(e);
4
+ }
5
+ function c(e, t) {
6
+ var d, l, o, u;
7
+ if (s(e) && f in e && "add" in e && "field" in e && typeof e.field == "function") {
8
+ if (t !== void 0) {
9
+ const n = t, i = e.field();
10
+ return n.listKind == i.listKind && n.scalar === i.scalar && ((d = n.message) === null || d === void 0 ? void 0 : d.typeName) === ((l = i.message) === null || l === void 0 ? void 0 : l.typeName) && ((o = n.enum) === null || o === void 0 ? void 0 : o.typeName) === ((u = i.enum) === null || u === void 0 ? void 0 : u.typeName);
11
+ }
12
+ return !0;
13
+ }
14
+ return !1;
15
+ }
16
+ function m(e, t) {
17
+ var d, l, o, u;
18
+ if (s(e) && f in e && "has" in e && "field" in e && typeof e.field == "function") {
19
+ if (t !== void 0) {
20
+ const n = t, i = e.field();
21
+ return n.mapKey === i.mapKey && n.mapKind == i.mapKind && n.scalar === i.scalar && ((d = n.message) === null || d === void 0 ? void 0 : d.typeName) === ((l = i.message) === null || l === void 0 ? void 0 : l.typeName) && ((o = n.enum) === null || o === void 0 ? void 0 : o.typeName) === ((u = i.enum) === null || u === void 0 ? void 0 : u.typeName);
22
+ }
23
+ return !0;
24
+ }
25
+ return !1;
26
+ }
27
+ function p(e, t) {
28
+ return s(e) && f in e && "desc" in e && s(e.desc) && e.desc.kind === "message" && (t === void 0 || e.desc.typeName == t.typeName);
29
+ }
30
+ export {
31
+ s as isObject,
32
+ c as isReflectList,
33
+ m as isReflectMap,
34
+ p as isReflectMessage
35
+ };