@yelon/util 16.2.4 → 16.2.5-68d194e

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +22 -22
  3. package/analysis/global-event.subject.d.ts +7 -7
  4. package/analysis/index.d.ts +1 -1
  5. package/array/array-type.service.d.ts +68 -68
  6. package/array/array.service.d.ts +78 -78
  7. package/array/index.d.ts +2 -2
  8. package/browser/cookie.service.d.ts +67 -67
  9. package/browser/copy.d.ts +6 -6
  10. package/browser/index.d.ts +5 -5
  11. package/browser/is-empty.d.ts +6 -6
  12. package/browser/scroll.service.d.ts +37 -37
  13. package/browser/style.d.ts +21 -21
  14. package/config/abc/cell.type.d.ts +118 -0
  15. package/config/abc/date-picker.type.d.ts +52 -52
  16. package/config/abc/error-collect.type.d.ts +10 -10
  17. package/config/abc/exception.type.d.ts +9 -9
  18. package/config/abc/image.type.d.ts +15 -15
  19. package/config/abc/index.d.ts +18 -17
  20. package/config/abc/loading.type.d.ts +31 -31
  21. package/config/abc/lodop.type.d.ts +33 -33
  22. package/config/abc/media.type.d.ts +11 -11
  23. package/config/abc/onboarding.type.d.ts +4 -4
  24. package/config/abc/page-header.type.d.ts +39 -39
  25. package/config/abc/pdf.type.d.ts +35 -35
  26. package/config/abc/qr.type.d.ts +25 -25
  27. package/config/abc/se.type.d.ts +32 -32
  28. package/config/abc/sg.type.d.ts +10 -10
  29. package/config/abc/st.type.d.ts +465 -465
  30. package/config/abc/sv.type.d.ts +14 -14
  31. package/config/abc/xlsx.type.d.ts +12 -12
  32. package/config/abc/zip.type.d.ts +10 -10
  33. package/config/acl/acl.type.d.ts +32 -32
  34. package/config/auth/auth.type.d.ts +55 -55
  35. package/config/bis/bis.type.d.ts +11 -11
  36. package/config/cache/cache.type.d.ts +40 -40
  37. package/config/chart/chart.type.d.ts +33 -33
  38. package/config/config.service.d.ts +13 -13
  39. package/config/config.types.d.ts +49 -48
  40. package/config/index.d.ts +14 -14
  41. package/config/mock/mock.type.d.ts +18 -18
  42. package/config/sf/sf.type.d.ts +133 -133
  43. package/config/socket/socket.type.d.ts +4 -4
  44. package/config/theme/http.type.d.ts +14 -14
  45. package/config/theme/i18n.type.d.ts +14 -14
  46. package/config/theme/index.d.ts +3 -3
  47. package/config/theme/responsive.type.d.ts +12 -12
  48. package/config/util/array.type.d.ts +22 -22
  49. package/config/util/currency.type.d.ts +39 -39
  50. package/date-time/index.d.ts +2 -2
  51. package/date-time/picker.d.ts +68 -68
  52. package/date-time/time.d.ts +31 -29
  53. package/decorator/convert.d.ts +24 -24
  54. package/decorator/index.d.ts +2 -2
  55. package/decorator/zone-outside.d.ts +35 -35
  56. package/esm2022/analysis/analysis.mjs +4 -4
  57. package/esm2022/analysis/global-event.subject.mjs +16 -16
  58. package/esm2022/analysis/index.mjs +1 -1
  59. package/esm2022/array/array-type.service.mjs +1 -1
  60. package/esm2022/array/array.mjs +4 -4
  61. package/esm2022/array/array.service.mjs +276 -276
  62. package/esm2022/array/index.mjs +2 -2
  63. package/esm2022/browser/browser.mjs +4 -4
  64. package/esm2022/browser/cookie.service.mjs +102 -102
  65. package/esm2022/browser/copy.mjs +27 -27
  66. package/esm2022/browser/index.mjs +5 -5
  67. package/esm2022/browser/is-empty.mjs +18 -18
  68. package/esm2022/browser/scroll.service.mjs +87 -87
  69. package/esm2022/browser/style.mjs +37 -37
  70. package/esm2022/config/abc/cell.type.mjs +2 -0
  71. package/esm2022/config/abc/date-picker.type.mjs +1 -1
  72. package/esm2022/config/abc/error-collect.type.mjs +1 -1
  73. package/esm2022/config/abc/exception.type.mjs +1 -1
  74. package/esm2022/config/abc/image.type.mjs +1 -1
  75. package/esm2022/config/abc/index.mjs +19 -18
  76. package/esm2022/config/abc/loading.type.mjs +1 -1
  77. package/esm2022/config/abc/lodop.type.mjs +1 -1
  78. package/esm2022/config/abc/media.type.mjs +1 -1
  79. package/esm2022/config/abc/onboarding.type.mjs +1 -1
  80. package/esm2022/config/abc/page-header.type.mjs +1 -1
  81. package/esm2022/config/abc/pdf.type.mjs +1 -1
  82. package/esm2022/config/abc/qr.type.mjs +1 -1
  83. package/esm2022/config/abc/se.type.mjs +1 -1
  84. package/esm2022/config/abc/sg.type.mjs +1 -1
  85. package/esm2022/config/abc/st.type.mjs +1 -1
  86. package/esm2022/config/abc/sv.type.mjs +2 -2
  87. package/esm2022/config/abc/xlsx.type.mjs +1 -1
  88. package/esm2022/config/abc/zip.type.mjs +1 -1
  89. package/esm2022/config/acl/acl.type.mjs +1 -1
  90. package/esm2022/config/auth/auth.type.mjs +1 -1
  91. package/esm2022/config/bis/bis.type.mjs +1 -1
  92. package/esm2022/config/cache/cache.type.mjs +1 -1
  93. package/esm2022/config/chart/chart.type.mjs +1 -1
  94. package/esm2022/config/config.mjs +4 -4
  95. package/esm2022/config/config.service.mjs +36 -36
  96. package/esm2022/config/config.types.mjs +9 -9
  97. package/esm2022/config/index.mjs +14 -14
  98. package/esm2022/config/mock/mock.type.mjs +1 -1
  99. package/esm2022/config/sf/sf.type.mjs +1 -1
  100. package/esm2022/config/socket/socket.type.mjs +1 -1
  101. package/esm2022/config/theme/http.type.mjs +1 -1
  102. package/esm2022/config/theme/i18n.type.mjs +1 -1
  103. package/esm2022/config/theme/index.mjs +3 -3
  104. package/esm2022/config/theme/responsive.type.mjs +1 -1
  105. package/esm2022/config/util/array.type.mjs +1 -1
  106. package/esm2022/config/util/currency.type.mjs +1 -1
  107. package/esm2022/date-time/date-time.mjs +4 -4
  108. package/esm2022/date-time/index.mjs +2 -2
  109. package/esm2022/date-time/picker.mjs +115 -115
  110. package/esm2022/date-time/time.mjs +96 -89
  111. package/esm2022/decorator/convert.mjs +57 -57
  112. package/esm2022/decorator/decorator.mjs +4 -4
  113. package/esm2022/decorator/index.mjs +2 -2
  114. package/esm2022/decorator/zone-outside.mjs +56 -56
  115. package/esm2022/form/form.mjs +4 -4
  116. package/esm2022/form/index.mjs +2 -2
  117. package/esm2022/form/match-control.mjs +29 -29
  118. package/esm2022/form/validators.mjs +80 -80
  119. package/esm2022/format/currency.service.mjs +237 -237
  120. package/esm2022/format/currency.types.mjs +8 -8
  121. package/esm2022/format/format.mjs +4 -4
  122. package/esm2022/format/index.mjs +4 -4
  123. package/esm2022/format/string.mjs +84 -84
  124. package/esm2022/format/validate.mjs +93 -93
  125. package/esm2022/index.mjs +14 -14
  126. package/esm2022/math/in-range.mjs +24 -24
  127. package/esm2022/math/index.mjs +2 -2
  128. package/esm2022/math/math.mjs +4 -4
  129. package/esm2022/math/round.mjs +52 -52
  130. package/esm2022/mcache/index.mjs +1 -1
  131. package/esm2022/mcache/localStorageUtils.mjs +59 -69
  132. package/esm2022/mcache/mcache.mjs +4 -4
  133. package/esm2022/mtypes/authority.type.mjs +1 -1
  134. package/esm2022/mtypes/header-menu.type.mjs +1 -1
  135. package/esm2022/mtypes/index.mjs +9 -9
  136. package/esm2022/mtypes/menu.type.mjs +1 -1
  137. package/esm2022/mtypes/mtypes.mjs +4 -4
  138. package/esm2022/mtypes/nav.types.mjs +6 -6
  139. package/esm2022/mtypes/page.mjs +41 -41
  140. package/esm2022/mtypes/project-info.types.mjs +1 -1
  141. package/esm2022/mtypes/response.mjs +1 -1
  142. package/esm2022/mtypes/role.type.mjs +1 -1
  143. package/esm2022/mtypes/user.types.mjs +1 -1
  144. package/esm2022/other/assert.mjs +66 -66
  145. package/esm2022/other/deep.mjs +77 -77
  146. package/esm2022/other/favicon.mjs +28 -28
  147. package/esm2022/other/index.mjs +7 -7
  148. package/esm2022/other/lazy.service.mjs +131 -131
  149. package/esm2022/other/logger.mjs +32 -32
  150. package/esm2022/other/other.mjs +4 -4
  151. package/esm2022/other/path-to-regexp.service.mjs +238 -238
  152. package/esm2022/other/resize.mjs +3 -3
  153. package/esm2022/pipes/currency/cny.pipe.mjs +22 -22
  154. package/esm2022/pipes/currency/index.mjs +4 -4
  155. package/esm2022/pipes/currency/mega.pipe.mjs +28 -28
  156. package/esm2022/pipes/currency/module.mjs +18 -18
  157. package/esm2022/pipes/currency/pipe-currency.mjs +4 -4
  158. package/esm2022/pipes/currency/price.pipe.mjs +26 -26
  159. package/esm2022/pipes/filter/filter.pipe.mjs +18 -18
  160. package/esm2022/pipes/filter/index.mjs +2 -2
  161. package/esm2022/pipes/filter/module.mjs +16 -16
  162. package/esm2022/pipes/filter/pipe-filter.mjs +4 -4
  163. package/esm2022/pipes/format/index.mjs +2 -2
  164. package/esm2022/pipes/format/mask.pipe.mjs +33 -33
  165. package/esm2022/pipes/format/module.mjs +16 -16
  166. package/esm2022/pipes/format/pipe-format.mjs +4 -4
  167. package/esm2022/pipes/index.mjs +3 -3
  168. package/esm2022/pipes/pipes.mjs +4 -4
  169. package/esm2022/token/index.mjs +2 -2
  170. package/esm2022/token/page-visibility.mjs +14 -14
  171. package/esm2022/token/token.mjs +4 -4
  172. package/esm2022/token/window.mjs +16 -16
  173. package/esm2022/yelon-util.mjs +4 -4
  174. package/fesm2022/analysis.mjs +24 -24
  175. package/fesm2022/array.mjs +284 -284
  176. package/fesm2022/browser.mjs +279 -279
  177. package/fesm2022/config.mjs +54 -54
  178. package/fesm2022/config.mjs.map +1 -1
  179. package/fesm2022/date-time.mjs +218 -211
  180. package/fesm2022/date-time.mjs.map +1 -1
  181. package/fesm2022/decorator.mjs +121 -121
  182. package/fesm2022/form.mjs +118 -118
  183. package/fesm2022/format.mjs +431 -431
  184. package/fesm2022/format.mjs.map +1 -1
  185. package/fesm2022/math.mjs +85 -85
  186. package/fesm2022/mcache.mjs +65 -75
  187. package/fesm2022/mcache.mjs.map +1 -1
  188. package/fesm2022/mtypes.mjs +55 -55
  189. package/fesm2022/other.mjs +586 -586
  190. package/fesm2022/pipe-currency.mjs +94 -94
  191. package/fesm2022/pipe-filter.mjs +40 -40
  192. package/fesm2022/pipe-format.mjs +55 -55
  193. package/fesm2022/pipes.mjs +8 -8
  194. package/fesm2022/token.mjs +37 -37
  195. package/fesm2022/yelon-util.mjs +19 -19
  196. package/form/index.d.ts +2 -2
  197. package/form/match-control.d.ts +15 -15
  198. package/form/validators.d.ts +62 -62
  199. package/format/currency.service.d.ts +37 -37
  200. package/format/currency.types.d.ts +82 -77
  201. package/format/index.d.ts +4 -4
  202. package/format/string.d.ts +44 -44
  203. package/format/validate.d.ts +72 -72
  204. package/index.d.ts +14 -14
  205. package/math/in-range.d.ts +14 -14
  206. package/math/index.d.ts +2 -2
  207. package/math/round.d.ts +33 -33
  208. package/mcache/index.d.ts +1 -1
  209. package/mcache/localStorageUtils.d.ts +18 -31
  210. package/mtypes/authority.type.d.ts +3 -3
  211. package/mtypes/header-menu.type.d.ts +12 -12
  212. package/mtypes/index.d.ts +9 -9
  213. package/mtypes/menu.type.d.ts +40 -40
  214. package/mtypes/nav.types.d.ts +27 -27
  215. package/mtypes/page.d.ts +46 -46
  216. package/mtypes/project-info.types.d.ts +21 -21
  217. package/mtypes/response.d.ts +7 -7
  218. package/mtypes/role.type.d.ts +10 -10
  219. package/mtypes/user.types.d.ts +22 -22
  220. package/other/assert.d.ts +36 -36
  221. package/other/deep.d.ts +35 -35
  222. package/other/favicon.d.ts +2 -2
  223. package/other/index.d.ts +7 -7
  224. package/other/lazy.service.d.ts +48 -48
  225. package/other/logger.d.ts +5 -5
  226. package/other/path-to-regexp.service.d.ts +26 -26
  227. package/other/resize.d.ts +1 -1
  228. package/package.json +141 -141
  229. package/pipes/currency/cny.pipe.d.ts +15 -15
  230. package/pipes/currency/index.d.ts +4 -4
  231. package/pipes/currency/mega.pipe.d.ts +16 -16
  232. package/pipes/currency/module.d.ts +9 -9
  233. package/pipes/currency/price.pipe.d.ts +19 -19
  234. package/pipes/filter/filter.pipe.d.ts +13 -13
  235. package/pipes/filter/index.d.ts +2 -2
  236. package/pipes/filter/module.d.ts +7 -7
  237. package/pipes/format/index.d.ts +2 -2
  238. package/pipes/format/mask.pipe.d.ts +27 -27
  239. package/pipes/format/module.d.ts +7 -7
  240. package/pipes/index.d.ts +3 -3
  241. package/token/index.d.ts +2 -2
  242. package/token/page-visibility.d.ts +8 -8
  243. package/token/window.d.ts +7 -7
@@ -1,69 +1,59 @@
1
- export const YZ_USER_KEY = '_yz_user';
2
- export const YZ_PROJECT_INFO_KEY = '_yz_project_info';
3
- export const YZ_CURRENT_KEY = '_yz_current';
4
- export const YZ_HEADER_KEY = '_yz_header';
5
- export const YZ_HEADER_TYPE_KEY = '_yz_header_type';
6
- export const YZ_DEFAULT_ROUTE_KEY = '_yz_default_route';
7
- export const YZ_TENANT_KEY = '_yz_tenant';
8
- export const YZ_LANGS_KEY = '_yz_langs';
9
- export const YZ_LANG_KEY = '_yz_lang';
10
- function get(key) {
11
- if (key === YZ_HEADER_TYPE_KEY) {
12
- return localStorage.getItem(key);
13
- }
14
- const item = localStorage.getItem(key);
15
- return item ? JSON.parse(item) : null;
16
- }
17
- function set(key, data) {
18
- if (key === YZ_HEADER_TYPE_KEY) {
19
- localStorage.setItem(YZ_HEADER_TYPE_KEY, data);
20
- return;
21
- }
22
- localStorage.setItem(key, JSON.stringify(data));
23
- }
24
- export function useLocalStorageUser() {
25
- const setFn = user => set(YZ_USER_KEY, user);
26
- const getFn = () => get(YZ_USER_KEY);
27
- return [setFn, getFn];
28
- }
29
- export function useLocalStorageProjectInfo() {
30
- const setFn = data => set(YZ_PROJECT_INFO_KEY, data);
31
- const getFn = () => get(YZ_PROJECT_INFO_KEY);
32
- return [setFn, getFn];
33
- }
34
- export function useLocalStorageCurrent() {
35
- const setFn = data => set(YZ_CURRENT_KEY, data);
36
- const getFn = () => get(YZ_CURRENT_KEY);
37
- return [setFn, getFn];
38
- }
39
- export function useLocalStorageHeaderType() {
40
- const setFn = data => set(YZ_HEADER_TYPE_KEY, data);
41
- const getFn = () => get(YZ_HEADER_TYPE_KEY);
42
- return [setFn, getFn];
43
- }
44
- export function useLocalStorageHeader() {
45
- const setFn = data => set(YZ_HEADER_KEY, data);
46
- const getFn = () => get(YZ_HEADER_KEY);
47
- return [setFn, getFn];
48
- }
49
- export function useLocalStorageDefaultRoute() {
50
- const setFn = data => set(YZ_DEFAULT_ROUTE_KEY, data);
51
- const getFn = () => get(YZ_DEFAULT_ROUTE_KEY);
52
- return [setFn, getFn];
53
- }
54
- export function useLocalStorageTenant() {
55
- const setFn = data => set(YZ_TENANT_KEY, data);
56
- const getFn = () => get(YZ_TENANT_KEY);
57
- return [setFn, getFn];
58
- }
59
- export function useLocalStorageLangs() {
60
- const setFn = data => set(YZ_LANGS_KEY, data);
61
- const getFn = () => get(YZ_LANGS_KEY);
62
- return [setFn, getFn];
63
- }
64
- export function useLocalStorageLang() {
65
- const setFn = (key, data) => set(`${YZ_LANG_KEY}_${key}`, data);
66
- const getFn = (key) => get(`${YZ_LANG_KEY}_${key}`);
67
- return [setFn, getFn];
68
- }
69
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxTdG9yYWdlVXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL21jYWNoZS9sb2NhbFN0b3JhZ2VVdGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsVUFBVSxDQUFDO0FBQ3RDLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLGtCQUFrQixDQUFDO0FBQ3RELE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxhQUFhLENBQUM7QUFDNUMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLFlBQVksQ0FBQztBQUMxQyxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxpQkFBaUIsQ0FBQztBQUNwRCxNQUFNLENBQUMsTUFBTSxvQkFBb0IsR0FBRyxtQkFBbUIsQ0FBQztBQUN4RCxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsWUFBWSxDQUFDO0FBQzFDLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBRyxXQUFXLENBQUM7QUFDeE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2V0Rm4sIGdldEZuXTtcbn1cbiJdfQ==
1
+ export const YZ_USER_KEY = '_yz_user';
2
+ export const YZ_PROJECT_INFO_KEY = '_yz_project_info';
3
+ export const YZ_CURRENT_KEY = '_yz_current';
4
+ export const YZ_HEADER_KEY = '_yz_header';
5
+ export const YZ_HEADER_TYPE_KEY = '_yz_header_type';
6
+ export const YZ_DEFAULT_ROUTE_KEY = '_yz_default_route';
7
+ export const YZ_TENANT_KEY = '_yz_tenant';
8
+ // export const YZ_LANGS_KEY = '_yz_langs';
9
+ // export const YZ_LANG_KEY = '_yz_lang';
10
+ function get(key) {
11
+ if (key === YZ_HEADER_TYPE_KEY) {
12
+ return localStorage.getItem(key);
13
+ }
14
+ const item = localStorage.getItem(key);
15
+ return item ? JSON.parse(item) : null;
16
+ }
17
+ function set(key, data) {
18
+ if (key === YZ_HEADER_TYPE_KEY) {
19
+ localStorage.setItem(YZ_HEADER_TYPE_KEY, data);
20
+ return;
21
+ }
22
+ localStorage.setItem(key, JSON.stringify(data));
23
+ }
24
+ export function useLocalStorageUser() {
25
+ const setFn = user => set(YZ_USER_KEY, user);
26
+ const getFn = () => get(YZ_USER_KEY);
27
+ return [setFn, getFn];
28
+ }
29
+ export function useLocalStorageProjectInfo() {
30
+ const setFn = data => set(YZ_PROJECT_INFO_KEY, data);
31
+ const getFn = () => get(YZ_PROJECT_INFO_KEY);
32
+ return [setFn, getFn];
33
+ }
34
+ export function useLocalStorageCurrent() {
35
+ const setFn = data => set(YZ_CURRENT_KEY, data);
36
+ const getFn = () => get(YZ_CURRENT_KEY);
37
+ return [setFn, getFn];
38
+ }
39
+ export function useLocalStorageHeaderType() {
40
+ const setFn = data => set(YZ_HEADER_TYPE_KEY, data);
41
+ const getFn = () => get(YZ_HEADER_TYPE_KEY);
42
+ return [setFn, getFn];
43
+ }
44
+ export function useLocalStorageHeader() {
45
+ const setFn = data => set(YZ_HEADER_KEY, data);
46
+ const getFn = () => get(YZ_HEADER_KEY);
47
+ return [setFn, getFn];
48
+ }
49
+ export function useLocalStorageDefaultRoute() {
50
+ const setFn = data => set(YZ_DEFAULT_ROUTE_KEY, data);
51
+ const getFn = () => get(YZ_DEFAULT_ROUTE_KEY);
52
+ return [setFn, getFn];
53
+ }
54
+ export function useLocalStorageTenant() {
55
+ const setFn = data => set(YZ_TENANT_KEY, data);
56
+ const getFn = () => get(YZ_TENANT_KEY);
57
+ return [setFn, getFn];
58
+ }
59
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxTdG9yYWdlVXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL21jYWNoZS9sb2NhbFN0b3JhZ2VVdGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsVUFBVSxDQUFDO0FBQ3RDLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLGtCQUFrQixDQUFDO0FBQ3RELE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxhQUFhLENBQUM7QUFDNUMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLFlBQVksQ0FBQztBQUMxQyxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxpQkFBaUIsQ0FBQztBQUNwRCxNQUFNLENBQUMsTUFBTSxvQkFBb0IsR0FBRyxtQkFBbUIsQ0FBQztBQUN4RCxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsWUFBWSxDQUFDO0FBQzFDLDJDQUEyQztBQUMzQyx5Q0FBeUM7QUFFekMsU0FBUyxHQUFHLENBQUksR0FBVztJQUN6QixJQUFJLEdBQUcsS0FBSyxrQkFBa0IsRUFBRTtRQUM5QixPQUFPLFlBQVksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFRLENBQUM7S0FDekM7SUFDRCxNQUFNLElBQUks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c+LCByZXR1cm5HZXQ8c3RyaW5nPl0ge1xuICBjb25zdCBzZXRGbjogcmV0dXJuU2V0PHN0cmluZz4gPSBkYXRhID0+IHNldChZWl9URU5BTlRfS0VZLCBkYXRhKTtcbiAgY29uc3QgZ2V0Rm46IHJldHVybkdldDxzdHJpbmc+ID0gKCkgPT4gZ2V0PHN0cmluZz4oWVpfVEVOQU5UX0tFWSk7XG4gIHJldHVybiBbc2V0Rm4sIGdldEZuXTtcbn1cblxuIl19
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWNhY2hlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tY2FjaGUvbWNhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXR5LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL210eXBlcy9hdXRob3JpdHkudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBZdW56YWlBdXRob3JpdHkge1xuICBhdXRob3JpdHk6IHN0cmluZztcbn1cbiJdfQ==
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGVyLW1lbnUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvbXR5cGVzL2hlYWRlci1tZW51LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpTmF2VG9waWMge1xuICAvLyDmianlsZXpoblcbiAgYXR0cmlidXRlOiBhbnk7XG4gIC8vIOWbvuagh1xuICBpY29uOiBhbnk7XG4gIC8vIOWtkOiPnOWNlVxuICBjaGlsZHJlbjogWXVuemFpTmF2VG9waWNbXTtcbiAgLy8g5o+P6L+wXG4gIGludHJvOiBzdHJpbmc7XG4gIC8vIGtleVxuICBrZXk6IHN0cmluZztcbiAgLy8g5ZCN56ewXG4gIG5hbWU6IHN0cmluZztcbiAgLy8g5omT5byA5pa55byPXG4gIHRhcmdldDogc3RyaW5nO1xuICAvLyDmmK/lkKbmnInmnYPpmZDmiZPlvIBcbiAgYXV0aDogYm9vbGVhbjtcbiAgLy8g6Lev5b6EXG4gIHVybDogc3RyaW5nO1xuICAvLyDniYjmnKxcbiAgdmVyc2lvbjogc3RyaW5nO1xufVxuIl19
@@ -1,10 +1,10 @@
1
- export * from './authority.type';
2
- export * from './menu.type';
3
- export * from './user.types';
4
- export * from './role.type';
5
- export * from './project-info.types';
6
- export * from './header-menu.type';
7
- export * from './nav.types';
8
- export * from './page';
9
- export * from './response';
1
+ export * from './authority.type';
2
+ export * from './menu.type';
3
+ export * from './user.types';
4
+ export * from './role.type';
5
+ export * from './project-info.types';
6
+ export * from './header-menu.type';
7
+ export * from './nav.types';
8
+ export * from './page';
9
+ export * from './response';
10
10
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL210eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFlBQVksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXV0aG9yaXR5LnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9tZW51LnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vcm9sZS50eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vcHJvamVjdC1pbmZvLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vaGVhZGVyLW1lbnUudHlwZSc7XG5leHBvcnQgKiBmcm9tICcuL25hdi50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL3BhZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9yZXNwb25zZSc7XG4iXX0=
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbWVudS50eX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xuICBkYXRhUGxhdGZvcm06IGFueTtcbiAgdGFyZ2V0VXNlcjogYW55O1xuICBzdGFyQ29uZmlnOiBhbnk7XG59XG4iXX0=
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbXR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -1,7 +1,7 @@
1
- export var NavType;
2
- (function (NavType) {
3
- NavType["APPLICATION"] = "application";
4
- NavType["GROUP"] = "group";
5
- NavType["TILE"] = "tile";
6
- })(NavType || (NavType = {}));
1
+ export var NavType;
2
+ (function (NavType) {
3
+ NavType["APPLICATION"] = "application";
4
+ NavType["GROUP"] = "group";
5
+ NavType["TILE"] = "tile";
6
+ })(NavType || (NavType = {}));
7
7
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbmF2LnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE1BQU0sQ0FBTixJQUFZLE9BSVg7QUFKRCxXQUFZLE9BQU87SUFDakIs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der {
6
- constructor() {
7
- this.page = {};
8
- }
9
- pageNum(pageNum) {
10
- this.page.pageNum = pageNum;
11
- return this;
12
- }
13
- pageSize(pageSize) {
14
- this.page.pageSize = pageSize;
15
- return this;
16
- }
17
- pageParam(param) {
18
- this.page.pageParam = param;
19
- return this;
20
- }
21
- default() {
22
- this.page.pageNum = YUNZAI_PAGE.PAGE_NUM;
23
- this.page.pageSize = YUNZAI_PAGE.PAGE_SIZE;
24
- return this;
25
- }
26
- build() {
27
- return this.page;
28
- }
29
- }
30
- export class Page {
31
- constructor(pageNum, pageSize, param) {
32
- this.pageNum = 1;
33
- this.pageSize = 30;
34
- this.pageNum = pageNum;
35
- this.pageSize = pageSize;
36
- this.param = param;
37
- }
38
- static create() {
39
- return new Page(1, 30);
40
- }
41
- }
1
+ const YUNZAI_PAGE = {
2
+ PAGE_NUM: 1,
3
+ PAGE_SIZE: 1000
4
+ };
5
+ export class YunzaiPageBuilder {
6
+ constructor() {
7
+ this.page = {};
8
+ }
9
+ pageNum(pageNum) {
10
+ this.page.pageNum = pageNum;
11
+ return this;
12
+ }
13
+ pageSize(pageSize) {
14
+ this.page.pageSize = pageSize;
15
+ return this;
16
+ }
17
+ pageParam(param) {
18
+ this.page.pageParam = param;
19
+ return this;
20
+ }
21
+ default() {
22
+ this.page.pageNum = YUNZAI_PAGE.PAGE_NUM;
23
+ this.page.pageSize = YUNZAI_PAGE.PAGE_SIZE;
24
+ return this;
25
+ }
26
+ build() {
27
+ return this.page;
28
+ }
29
+ }
30
+ export class Page {
31
+ constructor(pageNum, pageSize, param) {
32
+ this.pageNum = 1;
33
+ this.pageSize = 30;
34
+ this.pageNum = pageNum;
35
+ this.pageSize = pageSize;
36
+ this.param = param;
37
+ }
38
+ static create() {
39
+ return new Page(1, 30);
40
+ }
41
+ }
42
42
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIj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G4gIGhlYWRlclN0eWxlOiBZdW56YWlIZWFkZXJTdHlsZVtdO1xuICBtYXhMb2dvVXJsOiBzdHJpbmc7XG4gIG1pbmlMb2dvVXJsOiBzdHJpbmc7XG4gIHByb2ZpbGVMaXN0OiBZdW56YWlQcm9maWxlW107XG4gIHByb2plY3ROYW1lOiBzdHJpbmc7XG4gIHNob3dBbGxNZW51OiBib29sZWFuO1xuICB0dWNhb1VybDogc3RyaW5nO1xufVxuIl19
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL210eXBlcy9yZXNwb25zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgWXVuemFpUGFnZVJlc3VsdCB9IGZyb20gJy4vcGFnZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgWXVuemFpUmVzcG9uc2U8VD4ge1xuICBkYXRhOiBUO1xuICBlcnJvck1lc3NhZ2U6IHN0cmluZztcbiAgbWVzc2FnZTogc3RyaW5nO1xufVxuXG5leHBvcnQgdHlwZSBZdW56YWlQYWdlUmVzcG9uc2U8VD4gPSBZdW56YWlSZXNwb25zZTxZdW56YWlQYWdlUmVzdWx0PFQ+PjtcbiJdfQ==
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvcm9sZS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVJvbGUge1xuICBpZDogc3RyaW5nO1xuICBvbmx5RGVwdE9uZTogYm9vbGVhbjtcbiAgb25seU9uZTogYm9vbGVhbjtcbiAgcm9sZURlc2M6IHN0cmluZztcbiAgcm9sZU5hbWU6IHN0cmluZztcbiAgcm9sZVZhbHVlOiBzdHJpbmc7XG4gIHN0YXR1czogbnVtYmVyO1xuICB0aGlzRGVwYXJ0bWVudDogYm9vbGVhbjtcbn1cbiJdfQ==
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvbXR5cGVzL3VzZXIudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFl1bnphaUF1dGhvcml0eSB9IGZyb20gJy4vYXV0aG9yaXR5LnR5cGUnO1xuaW1wb3J0IHsgWXVuemFpTWVudSB9IGZyb20gJy4vbWVudS50eXBlJztcbmltcG9ydCB7IFl1bnphaVJvbGUgfSBmcm9tICcuL3JvbGUudHlwZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgWXVuemFpVXNlciB7XG4gIGVtYWlsOiBzdHJpbmc7XG4gIGFjY291bnROb25FeHBpcmVkOiBib29sZWFuO1xuICBhY2NvdW50Tm9uTG9ja2VkOiBib29sZWFuO1xuICBhdXRob3JpdGllczogWXVuemFpQXV0aG9yaXR5W107XG4gIGF2YXRhcklkOiBzdHJpbmc7XG4gIGNyZWRlbnRpYWxzTm9uRXhwaXJlZDogYm9vbGVhbjtcbiAgZGVwdElkOiBzdHJpbmc7XG4gIGRlcHROYW1lOiBzdHJpbmc7XG4gIGVuYWJsZWQ6IGJvb2xlYW47XG4gIGlkOiBzdHJpbmc7XG4gIG1lbnU6IFl1bnphaU1lbnVbXTtcbiAgcmVhbG5hbWU6IHN0cmluZztcbiAgcm9sZXM6IFl1bnphaVJvbGVbXTtcbiAgdXNlckNvZGU6IHN0cmluZztcbiAgdXNlcklkOiBzdHJpbmc7XG4gIHVzZXJUeXBlOiBudW1iZXI7XG4gIHVzZXJuYW1lOiBzdHJpbmc7XG59XG4iXX0=
@@ -1,67 +1,67 @@
1
- import { isObservable } from 'rxjs';
2
- function throwError(msg, actual, expected, comparison) {
3
- if (ngDevMode) {
4
- throw new Error(`ASSERTION ERROR: ${msg}${comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`}`);
5
- }
6
- }
7
- /**
8
- * Assert whether the expression and throw an error into console in dev mode
9
- *
10
- * 断言表达式是否符合预期,并在开发模式下会在控制台抛出一个错误
11
- */
12
- export function assert(expression, msg) {
13
- if (!expression) {
14
- throwError(msg);
15
- }
16
- }
17
- /**
18
- * Assert whether empty (`null` or `undefined`)
19
- *
20
- * 断言是否空值(`null` 或 `undefined`)
21
- */
22
- export function assertEmpty(actual, msg) {
23
- if (actual == null) {
24
- throwError(msg, typeof actual, 'NULL', '==');
25
- }
26
- }
27
- /**
28
- * Assert whether `number` type
29
- *
30
- * 断言是否 `number` 类型
31
- */
32
- export function assertNumber(actual, msg) {
33
- if (!(typeof actual === 'number')) {
34
- throwError(msg, typeof actual, 'number', '===');
35
- }
36
- }
37
- /**
38
- * Assert whether `string` type
39
- *
40
- * 断言是否 `string` 类型
41
- */
42
- export function assertString(actual, msg) {
43
- if (!(typeof actual === 'string')) {
44
- throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
45
- }
46
- }
47
- /**
48
- * Assert whether `array` type
49
- *
50
- * 断言是否 `array` 类型
51
- */
52
- export function assertArray(actual, msg) {
53
- if (!Array.isArray(actual)) {
54
- throwError(msg, actual === null ? 'null' : typeof actual, 'array', '===');
55
- }
56
- }
57
- /**
58
- * Assert whether `Observable` type
59
- *
60
- * 断言是否 `Observable` 类型
61
- */
62
- export function assertObservable(obj, msg) {
63
- if (!isObservable(obj)) {
64
- throwError(msg, obj === null ? 'null' : typeof obj, 'Observable', '===');
65
- }
66
- }
1
+ import { isObservable } from 'rxjs';
2
+ function throwError(msg, actual, expected, comparison) {
3
+ if (ngDevMode) {
4
+ throw new Error(`ASSERTION ERROR: ${msg}${comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`}`);
5
+ }
6
+ }
7
+ /**
8
+ * Assert whether the expression and throw an error into console in dev mode
9
+ *
10
+ * 断言表达式是否符合预期,并在开发模式下会在控制台抛出一个错误
11
+ */
12
+ export function assert(expression, msg) {
13
+ if (!expression) {
14
+ throwError(msg);
15
+ }
16
+ }
17
+ /**
18
+ * Assert whether empty (`null` or `undefined`)
19
+ *
20
+ * 断言是否空值(`null` 或 `undefined`)
21
+ */
22
+ export function assertEmpty(actual, msg) {
23
+ if (actual == null) {
24
+ throwError(msg, typeof actual, 'NULL', '==');
25
+ }
26
+ }
27
+ /**
28
+ * Assert whether `number` type
29
+ *
30
+ * 断言是否 `number` 类型
31
+ */
32
+ export function assertNumber(actual, msg) {
33
+ if (!(typeof actual === 'number')) {
34
+ throwError(msg, typeof actual, 'number', '===');
35
+ }
36
+ }
37
+ /**
38
+ * Assert whether `string` type
39
+ *
40
+ * 断言是否 `string` 类型
41
+ */
42
+ export function assertString(actual, msg) {
43
+ if (!(typeof actual === 'string')) {
44
+ throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
45
+ }
46
+ }
47
+ /**
48
+ * Assert whether `array` type
49
+ *
50
+ * 断言是否 `array` 类型
51
+ */
52
+ export function assertArray(actual, msg) {
53
+ if (!Array.isArray(actual)) {
54
+ throwError(msg, actual === null ? 'null' : typeof actual, 'array', '===');
55
+ }
56
+ }
57
+ /**
58
+ * Assert whether `Observable` type
59
+ *
60
+ * 断言是否 `Observable` 类型
61
+ */
62
+ export function assertObservable(obj, msg) {
63
+ if (!isObservable(obj)) {
64
+ throwError(msg, obj === null ? 'null' : typeof obj, 'Observable', '===');
65
+ }
66
+ }
67
67
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9hc3NlcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0sQ0FBQztBQU1wQyxTQUFTLFVBQVUsQ0FBQyxHQUE4QixFQUFFLE1BQWdCLEVBQUUsUUFBa0IsRUFBRSxVQUFtQjtJQUMzRyxJQUFJLFNBQVMsRUFBRTtRQUNiLE1BQU0sSUFBSSxLQUFLLENBQ2Isb0JBQW9CLEdBQUcsR0FBRyxVQUFVLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGdCQUFnQixRQUFRLElBQUksVUFBVSxJQUFJLE1BQU0sWUFBWSxFQUFFLENBQ25ILENBQUM7S0FDSDtBQUNILENBQUM7QUFFRDs7OztHQUlHO0FBQ0gsTUFBTSxVQUFVLE1BQU0sQ0FBQyxVQUFtQixFQUFFLEdBQVk7SUFDdEQsSUFBSSxDQUFDLFVBQVUsRUFBRTtRQUNmLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztLQUNqQjtBQUNILENBQUM7QUFFRDs7OztHQUlHO0FBQ0gsTUFBTSxVQUFVLFdBQVcsQ0FBQyxNQUFlLEVBQUUsR0FBWTtJQUN2RCxJQUFJLE1BQU0sSUFBSSxJQUFJLEVBQUU7UUFDbEIsVUFBVSxDQUFDLEdBQUcsRUFBRSxPQUFPLE1BQU0sRUFBRSxNQUFNLEVBQUUsSUFBSSxDQUFDLENBQUM7S0FDOUM7QUFDSCxDQUFDO0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