@toa.io/extensions.exposition 1.0.0-alpha.271 → 1.0.0-alpha.273

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 (151) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/components/{exposition.stash → exposition.atom}/manifest.toa.yaml +4 -4
  3. package/components/{exposition.stash → exposition.atom}/operations/meter.js +1 -1
  4. package/components/exposition.octets/manifest.toa.yaml +28 -10
  5. package/components/exposition.octets/operations/put.js +20 -5
  6. package/components/identity.bans/manifest.toa.yaml +26 -7
  7. package/components/identity.bans/operations/tsconfig.tsbuildinfo +1 -1
  8. package/components/identity.basic/manifest.toa.yaml +106 -30
  9. package/components/identity.basic/operations/authenticate.js +6 -3
  10. package/components/identity.basic/operations/authenticate.js.map +1 -1
  11. package/components/identity.basic/operations/incept.js +3 -2
  12. package/components/identity.basic/operations/incept.js.map +1 -1
  13. package/components/identity.basic/operations/transit.js +16 -5
  14. package/components/identity.basic/operations/transit.js.map +1 -1
  15. package/components/identity.basic/operations/tsconfig.tsbuildinfo +1 -1
  16. package/components/identity.basic/source/authenticate.ts +7 -3
  17. package/components/identity.basic/source/incept.ts +3 -2
  18. package/components/identity.basic/source/transit.ts +19 -5
  19. package/components/identity.credentials/manifest.toa.yaml +34 -13
  20. package/components/identity.credentials/operations/tsconfig.tsbuildinfo +1 -1
  21. package/components/identity.federation/manifest.toa.yaml +120 -28
  22. package/components/identity.federation/operations/authenticate.js +3 -2
  23. package/components/identity.federation/operations/authenticate.js.map +1 -1
  24. package/components/identity.federation/operations/create.js +4 -2
  25. package/components/identity.federation/operations/create.js.map +1 -1
  26. package/components/identity.federation/operations/lib/errors.d.ts +70 -11
  27. package/components/identity.federation/operations/lib/errors.js +40 -11
  28. package/components/identity.federation/operations/lib/errors.js.map +1 -1
  29. package/components/identity.federation/operations/tsconfig.tsbuildinfo +1 -1
  30. package/components/identity.federation/source/authenticate.ts +3 -2
  31. package/components/identity.federation/source/create.ts +4 -2
  32. package/components/identity.federation/source/lib/errors.ts +49 -12
  33. package/components/identity.keys/manifest.toa.yaml +14 -6
  34. package/components/identity.keys/operations/tsconfig.tsbuildinfo +1 -1
  35. package/components/identity.otp/manifest.toa.yaml +44 -15
  36. package/components/identity.otp/operations/authenticate.js +9 -4
  37. package/components/identity.otp/operations/authenticate.js.map +1 -1
  38. package/components/identity.otp/operations/tsconfig.tsbuildinfo +1 -1
  39. package/components/identity.otp/source/authenticate.ts +11 -4
  40. package/components/identity.passkeys/manifest.toa.yaml +38 -8
  41. package/components/identity.passkeys/operations/authenticate.js +3 -2
  42. package/components/identity.passkeys/operations/authenticate.js.map +1 -1
  43. package/components/identity.passkeys/operations/create.js +6 -3
  44. package/components/identity.passkeys/operations/create.js.map +1 -1
  45. package/components/identity.passkeys/operations/tsconfig.tsbuildinfo +1 -1
  46. package/components/identity.passkeys/operations/use.js +6 -3
  47. package/components/identity.passkeys/operations/use.js.map +1 -1
  48. package/components/identity.passkeys/source/authenticate.ts +3 -2
  49. package/components/identity.passkeys/source/create.ts +7 -3
  50. package/components/identity.passkeys/source/use.ts +7 -3
  51. package/components/identity.roles/manifest.toa.yaml +41 -10
  52. package/components/identity.roles/operations/grant.js +3 -2
  53. package/components/identity.roles/operations/grant.js.map +1 -1
  54. package/components/identity.roles/operations/tsconfig.tsbuildinfo +1 -1
  55. package/components/identity.roles/source/grant.ts +3 -2
  56. package/components/identity.tokens/manifest.toa.yaml +99 -39
  57. package/components/identity.tokens/operations/authenticate.js +6 -3
  58. package/components/identity.tokens/operations/authenticate.js.map +1 -1
  59. package/components/identity.tokens/operations/decrypt.js +9 -4
  60. package/components/identity.tokens/operations/decrypt.js.map +1 -1
  61. package/components/identity.tokens/operations/encrypt.js +3 -2
  62. package/components/identity.tokens/operations/encrypt.js.map +1 -1
  63. package/components/identity.tokens/operations/tsconfig.tsbuildinfo +1 -1
  64. package/components/identity.tokens/source/authenticate.ts +7 -3
  65. package/components/identity.tokens/source/decrypt.ts +11 -4
  66. package/components/identity.tokens/source/encrypt.ts +3 -2
  67. package/documentation/identity.md +4 -1
  68. package/documentation/notes/throttling.md +1 -1
  69. package/features/cors.feature +1 -1
  70. package/features/dev.feature +1 -1
  71. package/features/identity.federation.feature +3 -2
  72. package/features/{identtiy.tokens.custom.feature → identity.tokens.custom.feature} +39 -0
  73. package/features/introspection.feature +27 -34
  74. package/features/map.feature +1 -1
  75. package/features/octets.download.feature +1 -1
  76. package/features/octets.meta.feature +1 -1
  77. package/features/passkeys.feature +8 -8
  78. package/features/query.feature +27 -0
  79. package/features/require.feature +2 -2
  80. package/features/response.feature +3 -3
  81. package/features/steps/Components.ts +12 -4
  82. package/features/steps/Database.ts +9 -0
  83. package/features/steps/Gateway.ts +13 -13
  84. package/features/steps/HTTP.ts +3 -5
  85. package/features/steps/Parameters.ts +2 -3
  86. package/features/steps/Realtime.ts +4 -4
  87. package/features/steps/Workspace.ts +8 -3
  88. package/features/steps/components/audit/manifest.toa.yaml +12 -5
  89. package/features/steps/components/echo/manifest.toa.yaml +33 -8
  90. package/features/steps/components/notify/manifest.toa.yaml +12 -5
  91. package/features/steps/components/octets.tester/manifest.toa.yaml +43 -14
  92. package/features/steps/components/orders/manifest.toa.yaml +22 -5
  93. package/features/steps/components/pots/manifest.toa.yaml +71 -17
  94. package/features/steps/components/pricing/manifest.toa.yaml +8 -2
  95. package/features/steps/components/sequences/manifest.toa.yaml +3 -1
  96. package/features/steps/components/users/manifest.toa.yaml +18 -3
  97. package/features/steps/components/users.properties/manifest.toa.yaml +12 -2
  98. package/package.json +6 -7
  99. package/schemas/annotation.cos.yaml +37 -17
  100. package/schemas/directive.cos.yaml +7 -3
  101. package/schemas/io/throttle.cos.yaml +47 -8
  102. package/schemas/method.cos.yaml +21 -9
  103. package/schemas/node.cos.yaml +22 -7
  104. package/schemas/octets/delete.cos.yaml +15 -2
  105. package/schemas/octets/get.cos.yaml +5 -2
  106. package/schemas/octets/put.cos.yaml +6 -3
  107. package/schemas/octets/workflow.cos.yaml +0 -1
  108. package/schemas/query.cos.yaml +31 -14
  109. package/schemas/querystring.cos.yaml +19 -7
  110. package/schemas/range.cos.yaml +10 -2
  111. package/schemas/route.cos.yaml +6 -2
  112. package/source/Branch.test.ts +37 -0
  113. package/source/Branch.ts +37 -0
  114. package/source/Factory.ts +5 -5
  115. package/source/Gateway.ts +29 -14
  116. package/source/HTTP/formats/yaml.test.ts +4 -2
  117. package/source/RTD/Tree.ts +4 -1
  118. package/source/Tenant.ts +15 -4
  119. package/source/deployment.ts +3 -4
  120. package/source/directives/io/IO.ts +2 -2
  121. package/source/directives/io/lib/throttle/Sync.ts +4 -4
  122. package/source/directives/map/Headers.ts +8 -1
  123. package/source/directives/octets/Put.ts +6 -3
  124. package/source/root.ts +2 -2
  125. package/transpiled/Branch.d.ts +23 -0
  126. package/transpiled/Branch.js +16 -0
  127. package/transpiled/Branch.js.map +1 -1
  128. package/transpiled/Factory.js +4 -4
  129. package/transpiled/Factory.js.map +1 -1
  130. package/transpiled/Gateway.d.ts +7 -0
  131. package/transpiled/Gateway.js +26 -8
  132. package/transpiled/Gateway.js.map +1 -1
  133. package/transpiled/RTD/Tree.js +4 -1
  134. package/transpiled/RTD/Tree.js.map +1 -1
  135. package/transpiled/Tenant.d.ts +8 -2
  136. package/transpiled/Tenant.js +12 -2
  137. package/transpiled/Tenant.js.map +1 -1
  138. package/transpiled/deployment.js +3 -4
  139. package/transpiled/deployment.js.map +1 -1
  140. package/transpiled/directives/io/IO.d.ts +1 -1
  141. package/transpiled/directives/io/IO.js +2 -2
  142. package/transpiled/directives/io/IO.js.map +1 -1
  143. package/transpiled/directives/io/lib/throttle/Sync.d.ts +2 -2
  144. package/transpiled/directives/io/lib/throttle/Sync.js +4 -4
  145. package/transpiled/directives/io/lib/throttle/Sync.js.map +1 -1
  146. package/transpiled/directives/map/Headers.js +7 -1
  147. package/transpiled/directives/map/Headers.js.map +1 -1
  148. package/transpiled/directives/octets/Put.js.map +1 -1
  149. package/transpiled/root.js +1 -1
  150. package/transpiled/root.js.map +1 -1
  151. package/transpiled/tsconfig.tsbuildinfo +1 -1
@@ -4,9 +4,18 @@ name: basic
4
4
  entity:
5
5
  associated: true
6
6
  schema:
7
- authority*: string
8
- username*: string
9
- password*: string
7
+ properties:
8
+ authority:
9
+ type: string
10
+ username:
11
+ type: string
12
+ password:
13
+ type: string
14
+ type: object
15
+ required:
16
+ - authority
17
+ - username
18
+ - password
10
19
  unique:
11
20
  authority_username: [authority, username]
12
21
  index:
@@ -18,9 +27,14 @@ operations:
18
27
  transit:
19
28
  concurrency: retry
20
29
  input:
21
- username: string
22
- password: string
23
- authority: string
30
+ properties:
31
+ username:
32
+ type: string
33
+ password:
34
+ type: string
35
+ authority:
36
+ type: string
37
+ type: object
24
38
  errors: &transit.errors
25
39
  - PRINCIPAL_LOCKED
26
40
  - INVALID_USERNAME
@@ -30,33 +44,77 @@ operations:
30
44
  forward: transit
31
45
  query: false
32
46
  input:
33
- authority*: string
34
- username*: string
35
- password*: string
47
+ properties:
48
+ authority:
49
+ type: string
50
+ username:
51
+ type: string
52
+ password:
53
+ type: string
54
+ type: object
55
+ required:
56
+ - authority
57
+ - username
58
+ - password
36
59
  errors: *transit.errors
37
60
  add:
38
61
  input:
39
- id*: string
40
- authority*: string
41
- username*: string
42
- password*: string
62
+ properties:
63
+ id:
64
+ type: string
65
+ authority:
66
+ type: string
67
+ username:
68
+ type: string
69
+ password:
70
+ type: string
71
+ type: object
72
+ required:
73
+ - id
74
+ - authority
75
+ - username
76
+ - password
43
77
  errors: *transit.errors
44
78
  incept:
45
79
  input:
46
- authority*: string
47
- id*: string
48
- credentials*: string
80
+ properties:
81
+ authority:
82
+ type: string
83
+ id:
84
+ type: string
85
+ credentials:
86
+ type: string
87
+ type: object
88
+ required:
89
+ - authority
90
+ - id
91
+ - credentials
49
92
  output:
50
- id: string
93
+ properties:
94
+ id:
95
+ type: string
96
+ type: object
51
97
  errors:
52
98
  - INVALID_CREDENTIALS
53
99
  authenticate:
54
100
  input:
55
- authority*: string
56
- credentials*: string
101
+ properties:
102
+ authority:
103
+ type: string
104
+ credentials:
105
+ type: string
106
+ type: object
107
+ required:
108
+ - authority
109
+ - credentials
57
110
  output:
58
- identity:
59
- id: string
111
+ properties:
112
+ identity:
113
+ properties:
114
+ id:
115
+ type: string
116
+ type: object
117
+ type: object
60
118
  errors:
61
119
  - NOT_FOUND
62
120
  - PASSWORD_MISMATCH
@@ -69,11 +127,19 @@ operations:
69
127
  minLength: 1
70
128
  required:
71
129
  - username
72
- output: null
130
+ output:
131
+ {}
73
132
  info:
74
133
  input:
75
- authority*: string
76
- identity*: string
134
+ properties:
135
+ authority:
136
+ type: string
137
+ identity:
138
+ type: string
139
+ type: object
140
+ required:
141
+ - authority
142
+ - identity
77
143
  output:
78
144
  type: object
79
145
  nullable: true
@@ -81,11 +147,19 @@ operations:
81
147
  properties:
82
148
  username:
83
149
  type: string
84
- required: [username]
150
+ required:
151
+ - username
85
152
  delete:
86
153
  input:
87
- authority*: string
88
- identity*: string
154
+ properties:
155
+ authority:
156
+ type: string
157
+ identity:
158
+ type: string
159
+ type: object
160
+ required:
161
+ - authority
162
+ - identity
89
163
 
90
164
  configuration:
91
165
  schema:
@@ -96,19 +170,21 @@ configuration:
96
170
  default: 10
97
171
  pepper:
98
172
  type: string
99
- default: ""
173
+ default: ''
100
174
  principal:
101
175
  type: string
102
176
  username:
103
177
  type: array
104
178
  items:
105
179
  type: string
106
- default: ["^.{1,128}$"]
180
+ default:
181
+ - ^.{1,128}$
107
182
  password:
108
183
  type: array
109
184
  items:
110
185
  type: string
111
- default: ["^.{8,32}$"]
186
+ default:
187
+ - ^.{8,32}$
112
188
 
113
189
  exposition:
114
190
  isolated: true
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.computation = void 0;
4
4
  const bcryptjs_1 = require("bcryptjs");
5
- const error_value_1 = require("error-value");
6
5
  async function computation(input, context) {
7
6
  const [username, password] = Buffer
8
7
  .from(input.credentials, 'base64')
@@ -22,6 +21,10 @@ async function computation(input, context) {
22
21
  return ERR_PASSWORD_MISMATCH;
23
22
  }
24
23
  exports.computation = computation;
25
- const ERR_NOT_FOUND = new error_value_1.Err('NOT_FOUND');
26
- const ERR_PASSWORD_MISMATCH = new error_value_1.Err('PASSWORD_MISMATCH');
24
+ const ERR_NOT_FOUND = new (class NotFoundError extends Error {
25
+ code = 'NOT_FOUND';
26
+ })();
27
+ const ERR_PASSWORD_MISMATCH = new (class PasswordMismatchError extends Error {
28
+ code = 'PASSWORD_MISMATCH';
29
+ })();
27
30
  //# sourceMappingURL=authenticate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate.js","sourceRoot":"","sources":["../source/authenticate.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC,6CAAiC;AAG1B,KAAK,UAAU,WAAW,CAAE,KAAY,EAAE,OAAgB;IAC/D,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM;SAChC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC;SACjC,QAAQ,EAAE;SACV,KAAK,CAAC,GAAG,CAAC,CAAA;IAEb,MAAM,KAAK,GAAU,EAAE,QAAQ,EAAE,cAAc,KAAK,CAAC,SAAS,eAAe,QAAQ,GAAG,EAAE,CAAA;IAC1F,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IAE1D,IAAI,WAAW,YAAY,KAAK;QAC9B,OAAO,WAAW,CAAA;IAEpB,IAAI,WAAW,KAAK,IAAI;QACtB,OAAO,aAAa,CAAA;IAEtB,MAAM,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAA;IACrD,MAAM,KAAK,GAAG,MAAM,IAAA,kBAAO,EAAC,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAA;IAExD,IAAI,KAAK;QACP,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CAAC,MAAM,aAAc,SAAQ,KAAK;IAC1C,IAAI,GAAG,WAAW,CAAA;CACnC,CAAC,EAAE,CAAA;AAEJ,MAAM,qBAAqB,GAAG,IAAI,CAAC,MAAM,qBAAsB,SAAQ,KAAK;IAC1D,IAAI,GAAG,mBAAmB,CAAA;CAC3C,CAAC,EAAE,CAAA"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.effect = void 0;
4
- const error_value_1 = require("error-value");
5
4
  async function effect(input, context) {
6
5
  const [username, password] = Buffer
7
6
  .from(input.credentials, 'base64')
@@ -22,5 +21,7 @@ async function effect(input, context) {
22
21
  return await context.local.transit(request);
23
22
  }
24
23
  exports.effect = effect;
25
- const INVALID_CREDENTIALS = new error_value_1.Err('INVALID_CREDENTIALS');
24
+ const INVALID_CREDENTIALS = new (class InvalidCredentialsError extends Error {
25
+ code = 'INVALID_CREDENTIALS';
26
+ })();
26
27
  //# sourceMappingURL=incept.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"incept.js","sourceRoot":"","sources":["../source/incept.ts"],"names":[],"mappings":";;;AAAA,6CAAiC;AAI1B,KAAK,UAAU,MAAM,CAAE,KAAY,EAAE,OAAgB;IAC1D,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM;SAChC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC;SACjC,QAAQ,EAAE;SACV,KAAK,CAAC,GAAG,CAAC,CAAA;IAEb,IAAI,OAAO,QAAQ,KAAK,QAAQ;QAC9B,OAAO,mBAAmB,CAAA;IAE5B,MAAM,OAAO,GAAG;QACd,KAAK,EAAE;YACL,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,QAAQ;YACR,QAAQ;SACT;QACD,KAAK,EAAE;YACL,EAAE,EAAE,KAAK,CAAC,EAAE;SACb;KACF,CAAA;IAED,OAAO,MAAM,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AAC7C,CAAC;AArBD,wBAqBC;AAED,MAAM,mBAAmB,GAAG,IAAI,iBAAG,CAAC,qBAAqB,CAAC,CAAA"}
1
+ {"version":3,"file":"incept.js","sourceRoot":"","sources":["../source/incept.ts"],"names":[],"mappings":";;;AAGO,KAAK,UAAU,MAAM,CAAE,KAAY,EAAE,OAAgB;IAC1D,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM;SAChC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC;SACjC,QAAQ,EAAE;SACV,KAAK,CAAC,GAAG,CAAC,CAAA;IAEb,IAAI,OAAO,QAAQ,KAAK,QAAQ;QAC9B,OAAO,mBAAmB,CAAA;IAE5B,MAAM,OAAO,GAAG;QACd,KAAK,EAAE;YACL,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,QAAQ;YACR,QAAQ;SACT;QACD,KAAK,EAAE;YACL,EAAE,EAAE,KAAK,CAAC,EAAE;SACb;KACF,CAAA;IAED,OAAO,MAAM,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;AAC7C,CAAC;AArBD,wBAqBC;AAED,MAAM,mBAAmB,GAAG,IAAI,CAAC,MAAM,uBAAwB,SAAQ,KAAK;IAC1D,IAAI,GAAG,qBAAqB,CAAA;CAC7C,CAAC,EAAE,CAAA"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Transition = void 0;
4
4
  const bcryptjs_1 = require("bcryptjs");
5
- const error_value_1 = require("error-value");
6
5
  class Transition {
7
6
  rounds = 10;
8
7
  pepper = '';
@@ -52,8 +51,20 @@ function toRx(expressions) {
52
51
  function invalid(value, expressions) {
53
52
  return expressions.some((expression) => !expression.test(value));
54
53
  }
55
- const ERR_PRINCIPAL_LOCKED = new error_value_1.Err('PRINCIPAL_LOCKED', 'Principal username cannot be changed');
56
- const ERR_INVALID_USERNAME = new error_value_1.Err('INVALID_USERNAME', 'Username is not meeting the requirements');
57
- const ERR_INVALID_PASSWORD = new error_value_1.Err('INVALID_PASSWORD', 'Password is not meeting the requirements');
58
- const ERR_EXISTS = new error_value_1.Err('EXISTS', 'Basic credentials already exist');
54
+ const ERR_PRINCIPAL_LOCKED = new (class PrincipalLockedError extends Error {
55
+ code = 'PRINCIPAL_LOCKED';
56
+ message = 'Principal username cannot be changed';
57
+ })();
58
+ const ERR_INVALID_USERNAME = new (class InvalidUsernameError extends Error {
59
+ code = 'INVALID_USERNAME';
60
+ message = 'Username is not meeting the requirements';
61
+ })();
62
+ const ERR_INVALID_PASSWORD = new (class InvalidPasswordError extends Error {
63
+ code = 'INVALID_PASSWORD';
64
+ message = 'Password is not meeting the requirements';
65
+ })();
66
+ const ERR_EXISTS = new (class ExistsError extends Error {
67
+ code = 'EXISTS';
68
+ message = 'Basic credentials already exist';
69
+ })();
59
70
  //# sourceMappingURL=transit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transit.js","sourceRoot":"","sources":["../source/transit.ts"],"names":[],"mappings":";;;AAAA,uCAAwC;AACxC,6CAAiC;AAIjC,MAAa,UAAU;IACb,MAAM,GAAW,EAAE,CAAA;IACnB,MAAM,GAAW,EAAE,CAAA;IACnB,SAAS,CAAS;IAClB,MAAM,GAAW,SAA8B,CAAA;IAC/C,UAAU,GAAa,EAAE,CAAA;IACzB,UAAU,GAAa,EAAE,CAAA;IAE1B,KAAK,CAAE,OAAgB;QAC5B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAA;QAC1C,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAA;QAC1C,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,SAAS,CAAA;QAChD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAA;QAE5C,IAAI,CAAC,UAAU,GAAG,IAAI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