web-core-tcm 0.0.52 → 0.0.54

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 (113) hide show
  1. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +249 -101
  2. package/dist/node_modules/@bufbuild/protobuf/dist/esm/clone.js +35 -0
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +109 -0
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +16 -0
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +9 -0
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +9 -10
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +28 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +48 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +8 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +49 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +1 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/equals.js +127 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +86 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/fields.js +11 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +60 -56
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +434 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/index.js +49 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/merge.js +33 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +12 -3
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +14 -10
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +32 -12
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +42 -6
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +58 -50
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +26 -4
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +130 -99
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +279 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/types.js +1 -0
  28. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +48 -27
  29. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +24 -0
  30. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +123 -0
  31. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +9 -5
  32. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +40 -0
  33. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +18 -0
  34. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +7 -0
  35. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +11 -0
  36. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +19 -0
  37. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +18 -0
  38. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +134 -60
  39. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +7 -0
  40. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +7 -0
  41. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +7 -0
  42. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +25 -0
  43. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +26 -0
  44. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +7 -0
  45. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +17 -0
  46. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +7 -0
  47. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +35 -0
  48. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +15 -0
  49. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +180 -0
  50. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +29 -0
  51. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +10 -10
  52. package/dist/node_modules/alova/dist/alova.esm.js +263 -211
  53. package/dist/node_modules/alova/dist/clienthook/index.esm.js +2110 -70
  54. package/dist/node_modules/builder-pattern/dist/index.js +25 -13
  55. package/dist/node_modules/pinyin/lib/esm/pinyin.js +2 -2
  56. package/dist/node_modules/punycode/punycode.es6.js +17 -17
  57. package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +4 -7
  58. package/dist/src/api/algorithm/alova/implement/index.js +12 -0
  59. package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +4 -7
  60. package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +7 -10
  61. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +6 -9
  62. package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +7 -10
  63. package/dist/src/api/algorithm/alova/index.js +11 -15
  64. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +5 -6
  65. package/dist/src/api/authorization/alova/globals.js +1 -0
  66. package/dist/src/api/authorization/alova/implement/index.js +4 -0
  67. package/dist/src/api/authorization/alova/index.js +10 -8
  68. package/dist/src/api/check/alova/globals.js +1 -0
  69. package/dist/src/api/check/alova/implement/index.js +5 -0
  70. package/dist/src/api/check/alova/index.js +5 -6
  71. package/dist/src/api/check/check.js +2 -2
  72. package/dist/src/api/config/index.d.ts +1 -1
  73. package/dist/src/api/config/index.js +2 -2
  74. package/dist/src/api/core/index.js +9 -0
  75. package/dist/src/api/device/device.d.ts +4 -5
  76. package/dist/src/api/device/device.js +20 -29
  77. package/dist/src/api/doctor/alova/globals.js +1 -0
  78. package/dist/src/api/doctor/alova/implement/index.js +4 -0
  79. package/dist/src/api/doctor/alova/index.js +10 -9
  80. package/dist/src/api/index.d.ts +12 -11
  81. package/dist/src/api/index.js +28 -0
  82. package/dist/src/api/metric/alova/implement/index.js +4 -0
  83. package/dist/src/api/metric/alova/index.js +1 -0
  84. package/dist/src/api/metric/index.js +5 -4
  85. package/dist/src/api/oauth/alova/globals.js +1 -0
  86. package/dist/src/api/oauth/alova/implement/index.js +4 -0
  87. package/dist/src/api/oauth/alova/index.js +13 -11
  88. package/dist/src/api/outpatient/alova/globals.js +1 -0
  89. package/dist/src/api/outpatient/alova/implement/index.js +4 -0
  90. package/dist/src/api/outpatient/alova/index.js +5 -5
  91. package/dist/src/api/patient/alova/globals.js +1 -0
  92. package/dist/src/api/patient/alova/implement/index.js +16 -0
  93. package/dist/src/api/patient/alova/index.js +9 -12
  94. package/dist/src/api/patient/meta.js +1 -0
  95. package/dist/src/api/prescription/alova/globals.js +1 -0
  96. package/dist/src/api/prescription/alova/implement/index.js +6 -0
  97. package/dist/src/api/prescription/alova/index.js +8 -7
  98. package/dist/src/api/scientist/alova/globals.js +1 -0
  99. package/dist/src/api/scientist/alova/implement/index.js +4 -0
  100. package/dist/src/api/scientist/alova/index.js +5 -5
  101. package/dist/src/index.d.ts +0 -1
  102. package/dist/src/index.js +34 -32
  103. package/dist/src/proto/index.js +10 -0
  104. package/dist/src/proto/types/Images_pb.js +7 -6
  105. package/dist/src/proto/types/WaveMap_pb.js +4 -3
  106. package/dist/src/util/helper.js +38 -2
  107. package/dist/src/util/string.js +47 -5
  108. package/package.json +66 -14
  109. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -556
  110. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -36
  111. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -26
  112. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +0 -8
  113. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +0 -4
@@ -1,22 +1,34 @@
1
- function f(r, o, l) {
2
- let u, n, e;
3
- r instanceof Function ? (u = r, n = o, e = l) : (n = r, e = o);
4
- const t = n ? Object.assign({}, n) : {}, c = new Proxy(
1
+ function b(t, i, o) {
2
+ let n, e, u;
3
+ t instanceof Function ? (n = t, e = i, u = o) : (e = t, u = i);
4
+ const r = e ? Object.assign({}, e) : {}, s = new Proxy(
5
5
  {},
6
6
  {
7
- get(b, s) {
8
- if (s === "build")
9
- if (e && Object.assign(t, e), u) {
10
- const i = new u();
11
- return () => Object.assign(i, { ...t });
7
+ get(g, l) {
8
+ if (l === "build")
9
+ if (u && Object.assign(r, u), n) {
10
+ const c = new n();
11
+ return () => Object.assign(c, { ...r });
12
12
  } else
13
- return () => t;
14
- return (...i) => i.length === 0 ? t[s.toString()] : (t[s.toString()] = i[0], c);
13
+ return () => r;
14
+ return (...c) => c.length === 0 ? r[l.toString()] : (r[l.toString()] = c[0], s);
15
15
  }
16
16
  }
17
17
  );
18
- return c;
18
+ return s;
19
+ }
20
+ function f() {
21
+ const t = {}, i = new Proxy(
22
+ {},
23
+ {
24
+ get(o, n) {
25
+ return n === "build" ? () => t : (...e) => e.length === 0 ? t[n.toString()] : (t[n.toString()] = e[0], i);
26
+ }
27
+ }
28
+ );
29
+ return i;
19
30
  }
20
31
  export {
21
- f as Builder
32
+ b as Builder,
33
+ f as StrictBuilder
22
34
  };
@@ -242250,11 +242250,11 @@ class tn extends ln {
242250
242250
  return an(x, b);
242251
242251
  }
242252
242252
  }
242253
- const qn = en(new tn());
242254
- qn.compare;
242253
+ const qn = en(new tn()), mn = qn.compare;
242255
242254
  export {
242256
242255
  tn as Pinyin,
242257
242256
  m0 as compact,
242257
+ mn as compare,
242258
242258
  qn as default,
242259
242259
  qn as pinyin
242260
242260
  };
@@ -2,7 +2,7 @@ const k = /^xn--/, B = /[^\0-\x7F]/, S = /[\x2E\u3002\uFF0E\uFF61]/g, T = {
2
2
  overflow: "Overflow: input needs wider integers to process",
3
3
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
4
4
  "invalid-input": "Invalid input"
5
- }, C = 35, l = Math.floor, g = String.fromCharCode;
5
+ }, C = 35, u = Math.floor, g = String.fromCharCode;
6
6
  function d(t) {
7
7
  throw new RangeError(T[t]);
8
8
  }
@@ -40,29 +40,29 @@ const E = (t) => String.fromCodePoint(...t), L = function(t) {
40
40
  return t + 22 + 75 * (t < 26) - ((n != 0) << 5);
41
41
  }, v = function(t, n, o) {
42
42
  let e = 0;
43
- for (t = o ? l(t / 700) : t >> 1, t += l(t / n); t > C * 26 >> 1; e += 36)
44
- t = l(t / C);
45
- return l(e + (C + 1) * t / (t + 38));
43
+ for (t = o ? u(t / 700) : t >> 1, t += u(t / n); t > C * 26 >> 1; e += 36)
44
+ t = u(t / C);
45
+ return u(e + (C + 1) * t / (t + 38));
46
46
  }, F = function(t) {
47
47
  const n = [], o = t.length;
48
- let e = 0, s = 128, i = 72, u = t.lastIndexOf("-");
49
- u < 0 && (u = 0);
50
- for (let c = 0; c < u; ++c)
48
+ let e = 0, s = 128, i = 72, l = t.lastIndexOf("-");
49
+ l < 0 && (l = 0);
50
+ for (let c = 0; c < l; ++c)
51
51
  t.charCodeAt(c) >= 128 && d("not-basic"), n.push(t.charCodeAt(c));
52
- for (let c = u > 0 ? u + 1 : 0; c < o; ) {
52
+ for (let c = l > 0 ? l + 1 : 0; c < o; ) {
53
53
  const r = e;
54
54
  for (let a = 1, f = 36; ; f += 36) {
55
55
  c >= o && d("invalid-input");
56
56
  const x = L(t.charCodeAt(c++));
57
- x >= 36 && d("invalid-input"), x > l((2147483647 - e) / a) && d("overflow"), e += x * a;
57
+ x >= 36 && d("invalid-input"), x > u((2147483647 - e) / a) && d("overflow"), e += x * a;
58
58
  const b = f <= i ? 1 : f >= i + 26 ? 26 : f - i;
59
59
  if (x < b)
60
60
  break;
61
61
  const p = 36 - b;
62
- a > l(2147483647 / p) && d("overflow"), a *= p;
62
+ a > u(2147483647 / p) && d("overflow"), a *= p;
63
63
  }
64
64
  const h = n.length + 1;
65
- i = v(e - r, h, r == 0), l(e / h) > 2147483647 - s && d("overflow"), s += l(e / h), e %= h, n.splice(e++, 0, s);
65
+ i = v(e - r, h, r == 0), u(e / h) > 2147483647 - s && d("overflow"), s += u(e / h), e %= h, n.splice(e++, 0, s);
66
66
  }
67
67
  return String.fromCodePoint(...n);
68
68
  }, A = function(t) {
@@ -72,14 +72,14 @@ const E = (t) => String.fromCodePoint(...t), L = function(t) {
72
72
  let e = 128, s = 0, i = 72;
73
73
  for (const r of t)
74
74
  r < 128 && n.push(g(r));
75
- const u = n.length;
76
- let c = u;
77
- for (u && n.push("-"); c < o; ) {
75
+ const l = n.length;
76
+ let c = l;
77
+ for (l && n.push("-"); c < o; ) {
78
78
  let r = 2147483647;
79
79
  for (const a of t)
80
80
  a >= e && a < r && (r = a);
81
81
  const h = c + 1;
82
- r - e > l((2147483647 - s) / h) && d("overflow"), s += (r - e) * h, e = r;
82
+ r - e > u((2147483647 - s) / h) && d("overflow"), s += (r - e) * h, e = r;
83
83
  for (const a of t)
84
84
  if (a < e && ++s > 2147483647 && d("overflow"), a === e) {
85
85
  let f = s;
@@ -90,9 +90,9 @@ const E = (t) => String.fromCodePoint(...t), L = function(t) {
90
90
  const p = f - b, w = 36 - b;
91
91
  n.push(
92
92
  g(m(b + p % w, 0))
93
- ), f = l(p / w);
93
+ ), f = u(p / w);
94
94
  }
95
- n.push(g(m(f, 0))), i = v(s, h, c === u), s = 0, ++c;
95
+ n.push(g(m(f, 0))), i = v(s, h, c === l), s = 0, ++c;
96
96
  }
97
97
  ++s, ++e;
98
98
  }
@@ -1,10 +1,7 @@
1
- import { comprehensiveAlgorithmService as t } from "../index.js";
1
+ import "../../index.js";
2
2
  import { ComprehensiveAlgorithm as o } from "../../comprehensiveAlgorithm.js";
3
- import "../../inquiriesAlgorithm.js";
4
- import "../../inspectionsAlgorithm.js";
5
- import "../../lisemsAlgorithm.js";
6
- import "../../pulsationsAlgorithm.js";
7
- class h extends o {
3
+ import { comprehensiveAlgorithmService as t } from "../index.js";
4
+ class n extends o {
8
5
  static comprehensiveDeepSeekR1Algorithm(e) {
9
6
  return t.Post("/千问大模型分析", e, {
10
7
  timeout: 3e4
@@ -27,5 +24,5 @@ class h extends o {
27
24
  }
28
25
  }
29
26
  export {
30
- h as AlovaComprehensiveAlgorithm
27
+ n as AlovaComprehensiveAlgorithm
31
28
  };
@@ -0,0 +1,12 @@
1
+ import { AlovaComprehensiveAlgorithm as m } from "./comprehensiveAlgorithm.js";
2
+ import { AlovaInquiriesAlgorithm as e } from "./inquiriesAlgorithm.js";
3
+ import { AlovaInspectionsAlgorithm as l } from "./inspectionsAlgorithm.js";
4
+ import { AlovaLisemsAlgorithm as s } from "./lisemsAlgorithm.js";
5
+ import { AlovaPulsationsAlgorithm as a } from "./pulsationsAlgorithm.js";
6
+ export {
7
+ m as AlovaComprehensiveAlgorithm,
8
+ e as AlovaInquiriesAlgorithm,
9
+ l as AlovaInspectionsAlgorithm,
10
+ s as AlovaLisemsAlgorithm,
11
+ a as AlovaPulsationsAlgorithm
12
+ };
@@ -1,10 +1,7 @@
1
+ import "../../index.js";
2
+ import { InquiriesAlgorithm as s } from "../../inquiriesAlgorithm.js";
1
3
  import { inquiriesAlgorithmService as i } from "../index.js";
2
- import "../../comprehensiveAlgorithm.js";
3
- import { InquiriesAlgorithm as o } from "../../inquiriesAlgorithm.js";
4
- import "../../inspectionsAlgorithm.js";
5
- import "../../lisemsAlgorithm.js";
6
- import "../../pulsationsAlgorithm.js";
7
- class p extends o {
4
+ class a extends s {
8
5
  static complaintsRecognition(t) {
9
6
  return i.Post("/主诉/识别", { symptomDescription: t }).send();
10
7
  }
@@ -22,5 +19,5 @@ class p extends o {
22
19
  }
23
20
  }
24
21
  export {
25
- p as AlovaInquiriesAlgorithm
22
+ a as AlovaInquiriesAlgorithm
26
23
  };
@@ -1,21 +1,18 @@
1
- import { inspectionAlgorithmService as o } from "../index.js";
2
- import "../../comprehensiveAlgorithm.js";
3
- import "../../inquiriesAlgorithm.js";
4
- import { InspectionsAlgorithm as e } from "../../inspectionsAlgorithm.js";
5
- import "../../lisemsAlgorithm.js";
6
- import "../../pulsationsAlgorithm.js";
7
- class a extends e {
1
+ import "../../index.js";
2
+ import { InspectionsAlgorithm as o } from "../../inspectionsAlgorithm.js";
3
+ import { inspectionAlgorithmService as e } from "../index.js";
4
+ class m extends o {
8
5
  static tongueAnalyze(t) {
9
- return o.Post("/舌象", t, {
6
+ return e.Post("/舌象", t, {
10
7
  timeout: 3e4
11
8
  }).send();
12
9
  }
13
10
  static faceAnalyze(t) {
14
- return o.Post("/面象", t, {
11
+ return e.Post("/面象", t, {
15
12
  timeout: 3e4
16
13
  }).send();
17
14
  }
18
15
  }
19
16
  export {
20
- a as AlovaInspectionsAlgorithm
17
+ m as AlovaInspectionsAlgorithm
21
18
  };
@@ -1,10 +1,7 @@
1
+ import "../../index.js";
2
+ import { LisemsAlgorithm as i } from "../../lisemsAlgorithm.js";
1
3
  import { lisemsAlgorithmService as s } from "../index.js";
2
- import "../../comprehensiveAlgorithm.js";
3
- import "../../inquiriesAlgorithm.js";
4
- import "../../inspectionsAlgorithm.js";
5
- import { LisemsAlgorithm as o } from "../../lisemsAlgorithm.js";
6
- import "../../pulsationsAlgorithm.js";
7
- class g extends o {
4
+ class c extends i {
8
5
  static analysisLisems(r) {
9
6
  return s.Post("/特征参数", r, {
10
7
  transform(t) {
@@ -15,12 +12,12 @@ class g extends o {
15
12
  static getFrequencyDomainDiagram(r) {
16
13
  return s.Post("/频域图", JSON.stringify(r), {
17
14
  async transform(t) {
18
- const i = await t.blob();
19
- return URL.createObjectURL(i);
15
+ const e = await t.blob();
16
+ return URL.createObjectURL(e);
20
17
  }
21
18
  }).send();
22
19
  }
23
20
  }
24
21
  export {
25
- g as AlovaLisemsAlgorithm
22
+ c as AlovaLisemsAlgorithm
26
23
  };
@@ -1,19 +1,16 @@
1
- import { pulsationsAlgorithmService as o } from "../index.js";
2
- import "../../comprehensiveAlgorithm.js";
3
- import "../../inquiriesAlgorithm.js";
4
- import "../../inspectionsAlgorithm.js";
5
- import "../../lisemsAlgorithm.js";
6
- import { PulsationsAlgorithm as s } from "../../pulsationsAlgorithm.js";
7
- class a extends s {
1
+ import "../../index.js";
2
+ import { PulsationsAlgorithm as o } from "../../pulsationsAlgorithm.js";
3
+ import { pulsationsAlgorithmService as s } from "../index.js";
4
+ class l extends o {
8
5
  static pulsationPreprocessing(t) {
9
- return o.Post("/预处理", t, {}).send();
6
+ return s.Post("/预处理", t, {}).send();
10
7
  }
11
8
  static pulsationAnalysis(t) {
12
- return o.Post("/特征参数", t, {
9
+ return s.Post("/特征参数", t, {
13
10
  timeout: 3e4
14
11
  }).send();
15
12
  }
16
13
  }
17
14
  export {
18
- a as AlovaPulsationsAlgorithm
15
+ l as AlovaPulsationsAlgorithm
19
16
  };
@@ -1,37 +1,33 @@
1
1
  import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import { getServiceEndpoint as t, ServiceType as r } from "../../config/index.js";
3
3
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
4
- import "../comprehensiveAlgorithm.js";
5
- import "../inquiriesAlgorithm.js";
6
- import "../inspectionsAlgorithm.js";
7
- import "../lisemsAlgorithm.js";
8
- import "../pulsationsAlgorithm.js";
4
+ import "./implement/index.js";
9
5
  import { responded as i } from "../../config/alova/index.js";
10
- const A = e({
6
+ const a = e({
11
7
  baseURL: t(r.InspectionsAlgorithm),
12
8
  timeout: 3e4,
13
9
  cacheFor: null,
14
10
  requestAdapter: o(),
15
11
  responded: i
16
- }), g = e({
12
+ }), p = e({
17
13
  baseURL: t(r.InquiriesAlgorithm),
18
14
  timeout: 3e4,
19
15
  cacheFor: null,
20
16
  requestAdapter: o(),
21
17
  responded: i
22
- }), v = e({
18
+ }), u = e({
23
19
  baseURL: t(r.LisemsAlgorithm),
24
20
  timeout: 3e4,
25
21
  cacheFor: null,
26
22
  requestAdapter: o(),
27
23
  responded: i
28
- }), d = e({
24
+ }), h = e({
29
25
  baseURL: t(r.PulsationsAlgorithm),
30
26
  timeout: 3e4,
31
27
  cacheFor: null,
32
28
  requestAdapter: o(),
33
29
  responded: i
34
- }), q = e({
30
+ }), A = e({
35
31
  baseURL: t(r.ComprehensiveAlgorithm),
36
32
  timeout: 3e4,
37
33
  cacheFor: null,
@@ -39,9 +35,9 @@ const A = e({
39
35
  responded: i
40
36
  });
41
37
  export {
42
- q as comprehensiveAlgorithmService,
43
- g as inquiriesAlgorithmService,
44
- A as inspectionAlgorithmService,
45
- v as lisemsAlgorithmService,
46
- d as pulsationsAlgorithmService
38
+ A as comprehensiveAlgorithmService,
39
+ p as inquiriesAlgorithmService,
40
+ a as inspectionAlgorithmService,
41
+ u as lisemsAlgorithmService,
42
+ h as pulsationsAlgorithmService
47
43
  };
@@ -1,11 +1,10 @@
1
- import { BaseObject as r } from "../core/core.js";
2
- import { Builder as i } from "../../../node_modules/builder-pattern/dist/index.js";
3
- import "../../../node_modules/pinyin/lib/esm/pinyin.js";
4
- import "../patient/alova/index.js";
5
- class t extends r {
1
+ import "../patient/index.js";
2
+ import { Builder as r } from "../../../node_modules/builder-pattern/dist/index.js";
3
+ import { BaseObject as i } from "../core/core.js";
4
+ class t extends i {
6
5
  static _default = t;
7
6
  static builder() {
8
- return i(this._default);
7
+ return r(this._default);
9
8
  }
10
9
  static default() {
11
10
  return t;
@@ -0,0 +1,4 @@
1
+ import { AlovaAuthorization as t } from "./authorization.js";
2
+ export {
3
+ t as AlovaAuthorization
4
+ };
@@ -1,18 +1,20 @@
1
1
  import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
- import { createApis as t, mountApis as r, withConfigType as i } from "./createApis.js";
3
+ import { withConfigType as t, createApis as r, mountApis as i } from "./createApis.js";
4
4
  import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
6
- const c = e({
7
- baseURL: n(s.Authorization),
5
+ import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
6
+ import "./implement/index.js";
7
+ import "./globals.js";
8
+ const s = e({
9
+ baseURL: n(m.Authorization),
8
10
  requestAdapter: o(),
9
11
  beforeRequest: a(),
10
12
  cacheFor: null,
11
13
  responded: p
12
- }), m = i({}), f = t(c, m);
13
- r(f);
14
+ }), c = t({}), f = r(s, c);
15
+ i(f);
14
16
  export {
15
- m as $$userConfigMap,
16
- c as alovaInstance,
17
+ c as $$userConfigMap,
18
+ s as alovaInstance,
17
19
  f as default
18
20
  };
@@ -0,0 +1,5 @@
1
+ import { AlovaCheck as e, AlovaPayment as l } from "./check.js";
2
+ export {
3
+ e as AlovaCheck,
4
+ l as AlovaPayment
5
+ };
@@ -1,19 +1,18 @@
1
1
  import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
- import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
3
+ import { withConfigType as r, createApis as t, mountApis as p } from "./createApis.js";
4
4
  import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
5
5
  import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
6
- import "../../core/core.js";
7
- import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
8
- import "../../prescription/alova/index.js";
6
+ import "./implement/index.js";
7
+ import "./globals.js";
9
8
  const s = e({
10
9
  baseURL: m(n.Check),
11
10
  requestAdapter: o(),
12
11
  beforeRequest: a(),
13
12
  cacheFor: null,
14
13
  responded: i
15
- }), c = p({}), f = r(s, c);
16
- t(f);
14
+ }), c = r({}), f = t(s, c);
15
+ p(f);
17
16
  export {
18
17
  c as $$userConfigMap,
19
18
  s as alovaInstance,
@@ -4,9 +4,9 @@ import { Metas as m } from "../patient/meta.js";
4
4
  import { Prescription as s } from "../prescription/prescription.js";
5
5
  import { extractPlainText as c } from "../../util/RichTextUtil.js";
6
6
  import { Doctor as f } from "../doctor/doctor.js";
7
- import { Herbal as g } from "../prescription/herbal.js";
8
- import "../prescription/alova/index.js";
7
+ import "../prescription/index.js";
9
8
  import { Builder as S } from "../../../node_modules/builder-pattern/dist/index.js";
9
+ import { Herbal as g } from "../prescription/herbal.js";
10
10
  class n extends l {
11
11
  static builder() {
12
12
  return S(this._default);
@@ -19,5 +19,5 @@ export declare enum EnvironmentType {
19
19
  Prod = "Prod",
20
20
  Local = "Local"
21
21
  }
22
- export declare const getServiceEndpoint: (serviceType: ServiceType, env?: EnvironmentType) => "https://用户.仪联中.中国" | "https://用户.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile" | "https://中医.仪联中.中国" | "https://中医.仪联中.中国/望诊/算法" | "https://中医.仪联中.中国/切诊/算法" | "https://中医.仪联中.中国/问诊/算法" | "https://中医.仪联中.中国/闻诊/算法" | "https://中医.仪联中.中国/四诊合参/算法" | "https://用户测试.仪联中.中国" | "https://用户测试.仪联中.中国/互联/服务/互联/授权?response_type=code&state=1223&client_id=tcm&scope=profile" | "https://中医测试.仪联中.中国" | "https://中医测试.仪联中.中国/望诊/算法" | "https://中医测试.仪联中.中国/切诊/算法" | "https://中医测试.仪联中.中国/问诊/算法" | "https://中医测试.仪联中.中国/闻诊/算法" | "https://中医测试.仪联中.中国/四诊合参/算法" | "http://localhost:8080";
22
+ export declare function getServiceEndpoint(serviceType: ServiceType, env?: EnvironmentType): string;
23
23
  export * from './alova';
@@ -1,7 +1,7 @@
1
1
  import r from "../../../node_modules/punycode/punycode.es6.js";
2
2
  import { onAuthRequired as a, responded as u } from "./alova/index.js";
3
3
  var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
4
- const h = (t, s) => {
4
+ function h(t, s) {
5
5
  if (s == null && (r.toUnicode(window.location.hostname).includes("测试") ? s = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), s = "Prod")), s == "Prod")
6
6
  switch (t) {
7
7
  case "OAuth":
@@ -96,7 +96,7 @@ const h = (t, s) => {
96
96
  return "http://localhost:8080";
97
97
  }
98
98
  throw new Error("环境错误");
99
- };
99
+ }
100
100
  export {
101
101
  o as EnvironmentType,
102
102
  e as ServiceType,
@@ -0,0 +1,9 @@
1
+ import { Annotation as o, BaseObject as a, NetworkObject as n, Page as c, Sequence as r, Tag as b } from "./core.js";
2
+ export {
3
+ o as Annotation,
4
+ a as BaseObject,
5
+ n as NetworkObject,
6
+ c as Page,
7
+ r as Sequence,
8
+ b as Tag
9
+ };
@@ -1,5 +1,4 @@
1
- export function connectToSerialPort(): Promise<boolean>;
2
- export function getPortInfo(): any;
3
- export function disconnectToSerialPort(): Promise<void>;
4
- export function sendText(text: any): Promise<void>;
5
- export const port: import('vue').Ref<any, any>;
1
+ export function connectToSerialPort(): Promise<any>;
2
+ export function getPortInfo(port: any): any;
3
+ export function disconnectToSerialPort(port: any): Promise<void>;
4
+ export function sendText(port: any, text: any): Promise<void>;
@@ -1,46 +1,37 @@
1
- import a from "../../../node_modules/quasar/src/composables/use-quasar/use-quasar.js";
2
- import { ref as n } from "../../../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
3
- const r = a(), e = n();
4
- async function s() {
1
+ async function t() {
5
2
  try {
6
- const o = {
3
+ const e = {
7
4
  baudRate: 115200,
8
5
  dataBits: 8,
9
6
  stopBits: 1,
10
7
  bufferSize: 1024
11
- };
12
- return e.value = await navigator.serial.requestPort(), e.value ? (await e.value.open(o), console.log("port", e.value.getInfo()), !0) : (r.dialog({
13
- title: "错误",
14
- message: "未选择串口"
15
- }), !1);
16
- } catch (o) {
17
- return console.error("Error connecting to serial port:", o), r.dialog({
18
- title: "错误",
19
- message: "连接串口失败"
20
- }), !1;
8
+ }, o = await navigator.serial.requestPort();
9
+ return o ? (await o.open(e), console.log("port", o.getInfo()), o) : void 0;
10
+ } catch (e) {
11
+ console.error("Error connecting to serial port:", e);
12
+ return;
21
13
  }
22
14
  }
23
- function c() {
24
- return e.value?.getInfo();
15
+ function n(e) {
16
+ return e?.getInfo();
25
17
  }
26
- async function u() {
27
- if (!e.value) {
18
+ async function i(e) {
19
+ if (!e) {
28
20
  console.error("Serial port not available");
29
21
  return;
30
22
  }
31
- await e.value.close(), e.value = null, console.log("Serial port disconnected");
23
+ await e.close(), e = null, console.log("Serial port disconnected");
32
24
  }
33
- async function f(o) {
34
- if (e.value) {
35
- const t = e.value.writable.getWriter();
36
- console.log("text", o), await t.write(new TextEncoder().encode(o)), await t.close();
25
+ async function a(e, o) {
26
+ if (e) {
27
+ const r = e.writable.getWriter();
28
+ console.log("text", o), await r.write(new TextEncoder().encode(o)), await r.close();
37
29
  } else
38
30
  console.error("Serial port not available");
39
31
  }
40
32
  export {
41
- s as connectToSerialPort,
42
- u as disconnectToSerialPort,
43
- c as getPortInfo,
44
- e as port,
45
- f as sendText
33
+ t as connectToSerialPort,
34
+ i as disconnectToSerialPort,
35
+ n as getPortInfo,
36
+ a as sendText
46
37
  };
@@ -0,0 +1,4 @@
1
+ import { AlovaDoctor as t } from "./doctor.js";
2
+ export {
3
+ t as AlovaDoctor
4
+ };
@@ -1,20 +1,21 @@
1
1
  import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
- import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
3
+ import { withConfigType as r, createApis as t, mountApis as p } from "./createApis.js";
4
4
  import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
6
- import "../../core/core.js";
7
- const c = e({
8
- baseURL: n(s.Doctor),
5
+ import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
6
+ import "./implement/index.js";
7
+ import "./globals.js";
8
+ const s = e({
9
+ baseURL: m(n.Doctor),
9
10
  requestAdapter: o(),
10
11
  beforeRequest: a(() => {
11
12
  }),
12
13
  cacheFor: null,
13
14
  responded: i
14
- }), m = p({}), f = r(c, m);
15
- t(f);
15
+ }), c = r({}), f = t(s, c);
16
+ p(f);
16
17
  export {
17
- m as $$userConfigMap,
18
- c as alovaInstance,
18
+ c as $$userConfigMap,
19
+ s as alovaInstance,
19
20
  f as default
20
21
  };
@@ -1,12 +1,13 @@
1
- export * as AlgorithmApi from './algorithm/index';
2
- export * as AuthorizationApi from './authorization/index';
3
- export * as CheckApi from './check/index';
4
- export * as ConfigApi from './config/index';
5
- export * as DoctorApi from './doctor/index';
6
- export * as MetricApi from './metric/index';
7
- export * as OAuthApi from './oauth/index';
8
- export * as OutPatientApi from './outpatient/index';
9
- export * as PatientApi from './patient/index';
10
- export * as PrescriptionApi from './prescription/index';
11
- export * as ScientistApi from './scientist/index';
1
+ export * as AlgorithmApi from './algorithm';
2
+ export * as AuthorizationApi from './authorization';
3
+ export * as CheckApi from './check';
4
+ export * as ConfigApi from './config';
5
+ export * as DoctorApi from './doctor';
6
+ export * as MetricApi from './metric';
7
+ export * as OAuthApi from './oauth';
8
+ export * as OutPatientApi from './outpatient';
9
+ export * as PatientApi from './patient';
10
+ export * as PrescriptionApi from './prescription';
11
+ export * as ScientistApi from './scientist';
12
12
  export * as DeviceApi from './device/device';
13
+ export * as CoreApi from './core';