@yelon/util 17.3.2 → 18.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +27 -27
  3. package/array/array-type.service.d.ts +68 -68
  4. package/array/array.service.d.ts +78 -78
  5. package/array/index.d.ts +2 -2
  6. package/browser/cookie.service.d.ts +64 -64
  7. package/browser/copy.d.ts +6 -6
  8. package/browser/index.d.ts +5 -5
  9. package/browser/is-empty.d.ts +6 -6
  10. package/browser/scroll.service.d.ts +34 -34
  11. package/browser/style.d.ts +21 -21
  12. package/config/abc/cell.type.d.ts +118 -118
  13. package/config/abc/date-picker.type.d.ts +52 -52
  14. package/config/abc/error-collect.type.d.ts +10 -10
  15. package/config/abc/exception.type.d.ts +9 -9
  16. package/config/abc/image.type.d.ts +15 -15
  17. package/config/abc/index.d.ts +17 -18
  18. package/config/abc/loading.type.d.ts +31 -31
  19. package/config/abc/lodop.type.d.ts +33 -33
  20. package/config/abc/media.type.d.ts +11 -11
  21. package/config/abc/onboarding.type.d.ts +4 -4
  22. package/config/abc/page-header.type.d.ts +39 -39
  23. package/config/abc/pdf.type.d.ts +35 -35
  24. package/config/abc/se.type.d.ts +32 -32
  25. package/config/abc/sg.type.d.ts +10 -10
  26. package/config/abc/st.type.d.ts +465 -465
  27. package/config/abc/sv.type.d.ts +14 -14
  28. package/config/abc/xlsx.type.d.ts +12 -12
  29. package/config/abc/zip.type.d.ts +10 -10
  30. package/config/acl/acl.type.d.ts +32 -32
  31. package/config/auth/auth.type.d.ts +51 -51
  32. package/config/bis/bis.type.d.ts +11 -11
  33. package/config/cache/cache.type.d.ts +66 -66
  34. package/config/chart/chart.type.d.ts +33 -33
  35. package/config/config.service.d.ts +13 -13
  36. package/config/config.types.d.ts +51 -52
  37. package/config/index.d.ts +14 -14
  38. package/config/mock/mock.type.d.ts +14 -14
  39. package/config/sf/sf.type.d.ts +133 -133
  40. package/config/socket/socket.type.d.ts +4 -4
  41. package/config/theme/http.type.d.ts +15 -15
  42. package/config/theme/i18n.type.d.ts +14 -14
  43. package/config/theme/index.d.ts +3 -3
  44. package/config/theme/pipe.type.d.ts +3 -3
  45. package/config/theme/responsive.type.d.ts +12 -12
  46. package/config/util/array.type.d.ts +22 -22
  47. package/config/util/currency.type.d.ts +39 -39
  48. package/date-time/index.d.ts +2 -2
  49. package/date-time/picker.d.ts +68 -68
  50. package/date-time/time.d.ts +39 -39
  51. package/decorator/convert.d.ts +32 -32
  52. package/decorator/index.d.ts +2 -2
  53. package/decorator/zone-outside.d.ts +35 -35
  54. package/esm2022/array/array-type.service.mjs +1 -1
  55. package/esm2022/array/array.mjs +4 -4
  56. package/esm2022/array/array.service.mjs +277 -277
  57. package/esm2022/array/index.mjs +2 -2
  58. package/esm2022/browser/browser.mjs +4 -4
  59. package/esm2022/browser/cookie.service.mjs +99 -99
  60. package/esm2022/browser/copy.mjs +27 -27
  61. package/esm2022/browser/index.mjs +5 -5
  62. package/esm2022/browser/is-empty.mjs +18 -18
  63. package/esm2022/browser/scroll.service.mjs +84 -84
  64. package/esm2022/browser/style.mjs +37 -37
  65. package/esm2022/config/abc/cell.type.mjs +1 -1
  66. package/esm2022/config/abc/date-picker.type.mjs +1 -1
  67. package/esm2022/config/abc/error-collect.type.mjs +1 -1
  68. package/esm2022/config/abc/exception.type.mjs +1 -1
  69. package/esm2022/config/abc/image.type.mjs +1 -1
  70. package/esm2022/config/abc/index.mjs +18 -19
  71. package/esm2022/config/abc/loading.type.mjs +1 -1
  72. package/esm2022/config/abc/lodop.type.mjs +1 -1
  73. package/esm2022/config/abc/media.type.mjs +1 -1
  74. package/esm2022/config/abc/onboarding.type.mjs +1 -1
  75. package/esm2022/config/abc/page-header.type.mjs +1 -1
  76. package/esm2022/config/abc/pdf.type.mjs +1 -1
  77. package/esm2022/config/abc/se.type.mjs +1 -1
  78. package/esm2022/config/abc/sg.type.mjs +1 -1
  79. package/esm2022/config/abc/st.type.mjs +1 -1
  80. package/esm2022/config/abc/sv.type.mjs +2 -2
  81. package/esm2022/config/abc/xlsx.type.mjs +1 -1
  82. package/esm2022/config/abc/zip.type.mjs +1 -1
  83. package/esm2022/config/acl/acl.type.mjs +1 -1
  84. package/esm2022/config/auth/auth.type.mjs +1 -1
  85. package/esm2022/config/bis/bis.type.mjs +1 -1
  86. package/esm2022/config/cache/cache.type.mjs +1 -1
  87. package/esm2022/config/chart/chart.type.mjs +1 -1
  88. package/esm2022/config/config.mjs +4 -4
  89. package/esm2022/config/config.service.mjs +37 -37
  90. package/esm2022/config/config.types.mjs +12 -12
  91. package/esm2022/config/index.mjs +14 -14
  92. package/esm2022/config/mock/mock.type.mjs +1 -1
  93. package/esm2022/config/sf/sf.type.mjs +1 -1
  94. package/esm2022/config/socket/socket.type.mjs +1 -1
  95. package/esm2022/config/theme/http.type.mjs +1 -1
  96. package/esm2022/config/theme/i18n.type.mjs +1 -1
  97. package/esm2022/config/theme/index.mjs +3 -3
  98. package/esm2022/config/theme/pipe.type.mjs +1 -1
  99. package/esm2022/config/theme/responsive.type.mjs +1 -1
  100. package/esm2022/config/util/array.type.mjs +1 -1
  101. package/esm2022/config/util/currency.type.mjs +1 -1
  102. package/esm2022/date-time/date-time.mjs +4 -4
  103. package/esm2022/date-time/index.mjs +2 -2
  104. package/esm2022/date-time/picker.mjs +115 -115
  105. package/esm2022/date-time/time.mjs +100 -100
  106. package/esm2022/decorator/convert.mjs +65 -65
  107. package/esm2022/decorator/decorator.mjs +4 -4
  108. package/esm2022/decorator/index.mjs +2 -2
  109. package/esm2022/decorator/zone-outside.mjs +56 -56
  110. package/esm2022/form/form.mjs +4 -4
  111. package/esm2022/form/index.mjs +2 -2
  112. package/esm2022/form/match-control.mjs +29 -29
  113. package/esm2022/form/validators.mjs +80 -80
  114. package/esm2022/format/currency.service.mjs +232 -232
  115. package/esm2022/format/currency.types.mjs +7 -7
  116. package/esm2022/format/format.mjs +4 -4
  117. package/esm2022/format/index.mjs +4 -4
  118. package/esm2022/format/string.mjs +84 -84
  119. package/esm2022/format/validate.mjs +93 -93
  120. package/esm2022/index.mjs +13 -13
  121. package/esm2022/math/in-range.mjs +24 -24
  122. package/esm2022/math/index.mjs +2 -2
  123. package/esm2022/math/math.mjs +4 -4
  124. package/esm2022/math/round.mjs +52 -52
  125. package/esm2022/mcache/index.mjs +1 -1
  126. package/esm2022/mcache/localStorageUtils.mjs +58 -58
  127. package/esm2022/mcache/mcache.mjs +4 -4
  128. package/esm2022/mtypes/authority.type.mjs +1 -1
  129. package/esm2022/mtypes/header-menu.type.mjs +1 -1
  130. package/esm2022/mtypes/index.mjs +9 -9
  131. package/esm2022/mtypes/menu.type.mjs +1 -1
  132. package/esm2022/mtypes/mtypes.mjs +4 -4
  133. package/esm2022/mtypes/nav.types.mjs +8 -8
  134. package/esm2022/mtypes/page.mjs +41 -41
  135. package/esm2022/mtypes/project-info.types.mjs +1 -1
  136. package/esm2022/mtypes/response.mjs +1 -1
  137. package/esm2022/mtypes/role.type.mjs +1 -1
  138. package/esm2022/mtypes/user.types.mjs +1 -1
  139. package/esm2022/other/assert.mjs +66 -66
  140. package/esm2022/other/deep.mjs +77 -77
  141. package/esm2022/other/favicon.mjs +28 -28
  142. package/esm2022/other/index.mjs +7 -7
  143. package/esm2022/other/lazy.service.mjs +128 -128
  144. package/esm2022/other/logger.mjs +32 -32
  145. package/esm2022/other/other.mjs +4 -4
  146. package/esm2022/other/path-to-regexp.service.mjs +238 -238
  147. package/esm2022/other/resize.mjs +3 -3
  148. package/esm2022/pipes/currency/cny.pipe.mjs +22 -22
  149. package/esm2022/pipes/currency/index.mjs +4 -4
  150. package/esm2022/pipes/currency/mega.pipe.mjs +24 -24
  151. package/esm2022/pipes/currency/module.mjs +18 -18
  152. package/esm2022/pipes/currency/pipe-currency.mjs +4 -4
  153. package/esm2022/pipes/currency/price.pipe.mjs +26 -26
  154. package/esm2022/pipes/filter/filter.pipe.mjs +19 -19
  155. package/esm2022/pipes/filter/index.mjs +2 -2
  156. package/esm2022/pipes/filter/module.mjs +16 -16
  157. package/esm2022/pipes/filter/pipe-filter.mjs +4 -4
  158. package/esm2022/pipes/format/index.mjs +2 -2
  159. package/esm2022/pipes/format/mask.pipe.mjs +33 -33
  160. package/esm2022/pipes/format/module.mjs +16 -16
  161. package/esm2022/pipes/format/pipe-format.mjs +4 -4
  162. package/esm2022/pipes/index.mjs +3 -3
  163. package/esm2022/pipes/pipes.mjs +4 -4
  164. package/esm2022/token/index.mjs +2 -2
  165. package/esm2022/token/page-visibility.mjs +14 -14
  166. package/esm2022/token/token.mjs +4 -4
  167. package/esm2022/token/window.mjs +16 -16
  168. package/esm2022/yelon-util.mjs +4 -4
  169. package/fesm2022/array.mjs +285 -285
  170. package/fesm2022/browser.mjs +273 -273
  171. package/fesm2022/config.mjs +58 -58
  172. package/fesm2022/config.mjs.map +1 -1
  173. package/fesm2022/date-time.mjs +223 -223
  174. package/fesm2022/decorator.mjs +129 -129
  175. package/fesm2022/form.mjs +118 -118
  176. package/fesm2022/format.mjs +426 -426
  177. package/fesm2022/math.mjs +85 -85
  178. package/fesm2022/mcache.mjs +65 -65
  179. package/fesm2022/mtypes.mjs +57 -57
  180. package/fesm2022/other.mjs +583 -583
  181. package/fesm2022/pipe-currency.mjs +90 -90
  182. package/fesm2022/pipe-filter.mjs +41 -41
  183. package/fesm2022/pipe-format.mjs +55 -55
  184. package/fesm2022/pipes.mjs +8 -8
  185. package/fesm2022/token.mjs +37 -37
  186. package/fesm2022/yelon-util.mjs +18 -18
  187. package/form/index.d.ts +2 -2
  188. package/form/match-control.d.ts +15 -15
  189. package/form/validators.d.ts +62 -62
  190. package/format/currency.service.d.ts +38 -38
  191. package/format/currency.types.d.ts +82 -82
  192. package/format/index.d.ts +4 -4
  193. package/format/string.d.ts +44 -44
  194. package/format/validate.d.ts +72 -72
  195. package/index.d.ts +13 -13
  196. package/math/in-range.d.ts +14 -14
  197. package/math/index.d.ts +2 -2
  198. package/math/round.d.ts +33 -33
  199. package/mcache/index.d.ts +1 -1
  200. package/mcache/localStorageUtils.d.ts +18 -18
  201. package/mtypes/authority.type.d.ts +3 -3
  202. package/mtypes/header-menu.type.d.ts +13 -13
  203. package/mtypes/index.d.ts +9 -9
  204. package/mtypes/menu.type.d.ts +41 -41
  205. package/mtypes/nav.types.d.ts +29 -29
  206. package/mtypes/page.d.ts +47 -47
  207. package/mtypes/project-info.types.d.ts +22 -22
  208. package/mtypes/response.d.ts +7 -7
  209. package/mtypes/role.type.d.ts +10 -10
  210. package/mtypes/user.types.d.ts +22 -22
  211. package/other/assert.d.ts +36 -36
  212. package/other/deep.d.ts +35 -35
  213. package/other/favicon.d.ts +2 -2
  214. package/other/index.d.ts +7 -7
  215. package/other/lazy.service.d.ts +47 -47
  216. package/other/logger.d.ts +5 -5
  217. package/other/path-to-regexp.service.d.ts +27 -27
  218. package/other/resize.d.ts +1 -1
  219. package/package.json +135 -135
  220. package/pipes/currency/cny.pipe.d.ts +14 -14
  221. package/pipes/currency/index.d.ts +4 -4
  222. package/pipes/currency/mega.pipe.d.ts +15 -15
  223. package/pipes/currency/module.d.ts +9 -9
  224. package/pipes/currency/price.pipe.d.ts +18 -18
  225. package/pipes/filter/filter.pipe.d.ts +13 -13
  226. package/pipes/filter/index.d.ts +2 -2
  227. package/pipes/filter/module.d.ts +7 -7
  228. package/pipes/format/index.d.ts +2 -2
  229. package/pipes/format/mask.pipe.d.ts +27 -27
  230. package/pipes/format/module.d.ts +7 -7
  231. package/pipes/index.d.ts +3 -3
  232. package/token/index.d.ts +2 -2
  233. package/token/page-visibility.d.ts +8 -8
  234. package/token/window.d.ts +7 -7
  235. package/config/abc/qr.type.d.ts +0 -25
  236. package/esm2022/config/abc/qr.type.mjs +0 -2
@@ -1,100 +1,100 @@
1
- import { Platform } from '@angular/cdk/platform';
2
- import { DOCUMENT } from '@angular/common';
3
- import { Injectable, inject } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * A set of simple Cookie manipulation classes.
7
- *
8
- * 一组简单的 Cookie 操作类。
9
- */
10
- export class CookieService {
11
- constructor() {
12
- this._doc = inject(DOCUMENT);
13
- this.platform = inject(Platform);
14
- }
15
- get doc() {
16
- return this._doc || document;
17
- }
18
- /**
19
- * Original cookie value
20
- *
21
- * 原始Cookie值
22
- */
23
- get cookie() {
24
- return this.platform.isBrowser ? this.doc.cookie : '';
25
- }
26
- /**
27
- * Get all cookie key-value pairs
28
- *
29
- * 获取所有Cookie键值对
30
- */
31
- getAll() {
32
- const ret = {};
33
- const arr = this.cookie.split('; ');
34
- for (let i = 0; i < arr.length; i++) {
35
- const cookie = arr[i];
36
- const index = cookie.indexOf('=');
37
- if (index > 0) {
38
- const name = decodeURIComponent(cookie.substring(0, index));
39
- if (ret[name] == null) {
40
- ret[name] = decodeURIComponent(cookie.substring(index + 1));
41
- }
42
- }
43
- }
44
- return ret;
45
- }
46
- /**
47
- * Get the value of given cookie `key`
48
- *
49
- * 获取指定 `key` 的值
50
- */
51
- get(key) {
52
- return this.getAll()[key];
53
- }
54
- /**
55
- * Sets a value for given cookie key
56
- *
57
- * 设置指定 Cookie 键的值
58
- */
59
- put(key, value, options) {
60
- if (!this.platform.isBrowser) {
61
- return;
62
- }
63
- const opt = { path: '/', ...options };
64
- if (typeof opt.expires === 'number') {
65
- opt.expires = new Date(+new Date() + opt.expires * 1e3);
66
- }
67
- if (typeof opt.expires !== 'string') {
68
- opt.expires = opt.expires ? opt.expires.toUTCString() : '';
69
- }
70
- const optStr = opt;
71
- const attributes = Object.keys(optStr)
72
- .filter(k => optStr[k] && optStr[k] !== true)
73
- .map(k => `${k}=${optStr[k].split(';')[0]}`)
74
- .join(';');
75
- this.doc.cookie = `${encodeURIComponent(String(key))}=${encodeURIComponent(String(value))}${attributes ? `; ${attributes}` : ''}`;
76
- }
77
- /**
78
- * Remove given cookie
79
- *
80
- * 移除指定 Cookie
81
- */
82
- remove(key, options) {
83
- this.put(key, '', options);
84
- }
85
- /**
86
- * Remove all cookies
87
- *
88
- * 移除所有 Cookies
89
- */
90
- removeAll() {
91
- this.doc.cookie = '';
92
- }
93
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: CookieService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
94
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: CookieService, providedIn: 'root' }); }
95
- }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: CookieService, decorators: [{
97
- type: Injectable,
98
- args: [{ providedIn: 'root' }]
99
- }] });
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { DOCUMENT } from '@angular/common';
3
+ import { Injectable, inject } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * A set of simple Cookie manipulation classes.
7
+ *
8
+ * 一组简单的 Cookie 操作类。
9
+ */
10
+ export class CookieService {
11
+ constructor() {
12
+ this._doc = inject(DOCUMENT);
13
+ this.platform = inject(Platform);
14
+ }
15
+ get doc() {
16
+ return this._doc || document;
17
+ }
18
+ /**
19
+ * Original cookie value
20
+ *
21
+ * 原始Cookie值
22
+ */
23
+ get cookie() {
24
+ return this.platform.isBrowser ? this.doc.cookie : '';
25
+ }
26
+ /**
27
+ * Get all cookie key-value pairs
28
+ *
29
+ * 获取所有Cookie键值对
30
+ */
31
+ getAll() {
32
+ const ret = {};
33
+ const arr = this.cookie.split('; ');
34
+ for (let i = 0; i < arr.length; i++) {
35
+ const cookie = arr[i];
36
+ const index = cookie.indexOf('=');
37
+ if (index > 0) {
38
+ const name = decodeURIComponent(cookie.substring(0, index));
39
+ if (ret[name] == null) {
40
+ ret[name] = decodeURIComponent(cookie.substring(index + 1));
41
+ }
42
+ }
43
+ }
44
+ return ret;
45
+ }
46
+ /**
47
+ * Get the value of given cookie `key`
48
+ *
49
+ * 获取指定 `key` 的值
50
+ */
51
+ get(key) {
52
+ return this.getAll()[key];
53
+ }
54
+ /**
55
+ * Sets a value for given cookie key
56
+ *
57
+ * 设置指定 Cookie 键的值
58
+ */
59
+ put(key, value, options) {
60
+ if (!this.platform.isBrowser) {
61
+ return;
62
+ }
63
+ const opt = { path: '/', ...options };
64
+ if (typeof opt.expires === 'number') {
65
+ opt.expires = new Date(+new Date() + opt.expires * 1e3);
66
+ }
67
+ if (typeof opt.expires !== 'string') {
68
+ opt.expires = opt.expires ? opt.expires.toUTCString() : '';
69
+ }
70
+ const optStr = opt;
71
+ const attributes = Object.keys(optStr)
72
+ .filter(k => optStr[k] && optStr[k] !== true)
73
+ .map(k => `${k}=${optStr[k].split(';')[0]}`)
74
+ .join(';');
75
+ this.doc.cookie = `${encodeURIComponent(String(key))}=${encodeURIComponent(String(value))}${attributes ? `; ${attributes}` : ''}`;
76
+ }
77
+ /**
78
+ * Remove given cookie
79
+ *
80
+ * 移除指定 Cookie
81
+ */
82
+ remove(key, options) {
83
+ this.put(key, '', options);
84
+ }
85
+ /**
86
+ * Remove all cookies
87
+ *
88
+ * 移除所有 Cookies
89
+ */
90
+ removeAll() {
91
+ this.doc.cookie = '';
92
+ }
93
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: CookieService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
94
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: CookieService, providedIn: 'root' }); }
95
+ }
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: CookieService, decorators: [{
97
+ type: Injectable,
98
+ args: [{ providedIn: 'root' }]
99
+ }] });
100
100
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29va2llLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvY29va2llLnNlcnZpY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JlcyA9IG9wdC5leHBpcmVzID8gb3B0LmV4cGlyZXMudG9VVENTdHJpbmcoKSA6ICcnO1xuICAgIH1cbiAgICBjb25zdCBvcHRTdHI6IHsgW2tleTogc3RyaW5nXTogc3RyaW5nIHwgYm9vbGVhbiB9ID0gb3B0IGFzIE56U2FmZUFueTtcbiAgICBjb25zdCBhdHRyaWJ1dGVzID0gT2JqZWN0LmtleXMob3B0U3RyKVxuICAgICAgLmZpbHRlcihrID0+IG9wdFN0cltrXSAmJiBvcHRTdHJba10gIT09IHRydWUpXG4gICAgICAubWFwKGsgPT4gYCR7a309JHsob3B0U3RyW2tdIGFzIHN0cmluZykuc3BsaXQoJzsnKVswXX1gKVxuICAgICAgLmpvaW4oJzsnKTtcbiAgICB0aGlzLmRvYy5jb29raWUgPSBgJHtlbmNvZGVVUklDb21wb25lbnQoU3RyaW5nKGtleSkpfT0ke2VuY29kZVVSSUNvbXBvbmVudChTdHJpbmcodmFsdWUpKX0ke1xuICAgICAgYXR0cmlidXRlcyA/IGA7ICR7YXR0cmlidXRlc31gIDogJydcbiAgICB9YDtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZW1vdmUgZ2l2ZW4gY29va2llXG4gICAqXG4gICAqIOenu+mZpOaMh+WumiBDb29raWVcbiAgICovXG4gIHJlbW92ZShrZXk6IHN0cmluZywgb3B0aW9ucz86IENvb2tpZU9wdGlvbnMpOiB2b2lkIHtcbiAgICB0aGlzLnB1dChrZXksICcnLCBvcHRpb25zKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZW1vdmUgYWxsIGNvb2tpZXNcbiAgICpcbiAgICog56e76Zmk5omA5pyJIENvb2tpZXNcbiAgICovXG4gIHJlbW92ZUFsbCgpOiB2b2lkIHtcbiAgICB0aGlzLmRvYy5jb29raWUgPSAnJztcbiAgfVxufVxuIl19
@@ -1,28 +1,28 @@
1
- /**
2
- * Copy text to clipboard
3
- *
4
- * 复制字符串文档至剪贴板
5
- */
6
- export function copy(value) {
7
- return new Promise((resolve) => {
8
- let copyTextArea = null;
9
- try {
10
- copyTextArea = document.createElement('textarea');
11
- copyTextArea.style.height = '0px';
12
- copyTextArea.style.opacity = '0';
13
- copyTextArea.style.width = '0px';
14
- document.body.appendChild(copyTextArea);
15
- copyTextArea.value = value;
16
- copyTextArea.select();
17
- // eslint-disable-next-line deprecation/deprecation
18
- document.execCommand('copy');
19
- resolve(value);
20
- }
21
- finally {
22
- if (copyTextArea && copyTextArea.parentNode) {
23
- copyTextArea.parentNode.removeChild(copyTextArea);
24
- }
25
- }
26
- });
27
- }
1
+ /**
2
+ * Copy text to clipboard
3
+ *
4
+ * 复制字符串文档至剪贴板
5
+ */
6
+ export function copy(value) {
7
+ return new Promise((resolve) => {
8
+ let copyTextArea = null;
9
+ try {
10
+ copyTextArea = document.createElement('textarea');
11
+ copyTextArea.style.height = '0px';
12
+ copyTextArea.style.opacity = '0';
13
+ copyTextArea.style.width = '0px';
14
+ document.body.appendChild(copyTextArea);
15
+ copyTextArea.value = value;
16
+ copyTextArea.select();
17
+ // eslint-disable-next-line deprecation/deprecation
18
+ document.execCommand('copy');
19
+ resolve(value);
20
+ }
21
+ finally {
22
+ if (copyTextArea && copyTextArea.parentNode) {
23
+ copyTextArea.parentNode.removeChild(copyTextArea);
24
+ }
25
+ }
26
+ });
27
+ }
28
28
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29weS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvYnJvd3Nlci9jb3B5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsSUFBSSxDQUFDLEtBQWE7SUFDaEMsT0FBTyxJQUFJLE9BQU8sQ0FBUyxDQUFDLE9BQU8sRUFBUSxFQUFFO1FBQzNDLElBQUksWUFBWSxHQUErQixJQUFJLENBQU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ldCBjb3B5VGV4dEFyZWE6IEhUTUxUZXh0QXJlYUVsZW1lbnQgfCBudWxsID0gbnVsbDtcbiAgICB0cnkge1xuICAgICAgY29weVRleHRBcmVhID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgndGV4dGFyZWEnKTtcbiAgICAgIGNvcHlUZXh0QXJlYS5zdHlsZS5oZWlnaHQgPSAnMHB4JztcbiAgICAgIGNvcHlUZXh0QXJlYS5zdHlsZS5vcGFjaXR5ID0gJzAnO1xuICAgICAgY29weVRleHRBcmVhLnN0eWxlLndpZHRoID0gJzBweCc7XG4gICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGNvcHlUZXh0QXJlYSk7XG4gICAgICBjb3B5VGV4dEFyZWEudmFsdWUgPSB2YWx1ZTtcbiAgICAgIGNvcHlUZXh0QXJlYS5zZWxlY3QoKTtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBkZXByZWNhdGlvbi9kZXByZWNhdGlvblxuICAgICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoJ2NvcHknKTtcbiAgICAgIHJlc29sdmUodmFsdWUpO1xuICAgIH0gZmluYWxseSB7XG4gICAgICBpZiAoY29weVRleHRBcmVhICYmIGNvcHlUZXh0QXJlYS5wYXJlbnROb2RlKSB7XG4gICAgICAgIGNvcHlUZXh0QXJlYS5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGNvcHlUZXh0QXJlYSk7XG4gICAgICB9XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==
@@ -1,6 +1,6 @@
1
- export * from './cookie.service';
2
- export * from './copy';
3
- export * from './is-empty';
4
- export * from './scroll.service';
5
- export * from './style';
1
+ export * from './cookie.service';
2
+ export * from './copy';
3
+ export * from './is-empty';
4
+ export * from './scroll.service';
5
+ export * from './style';
6
6
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb29raWUuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2NvcHknO1xuZXhwb3J0ICogZnJvbSAnLi9pcy1lbXB0eSc7XG5leHBvcnQgKiBmcm9tICcuL3Njcm9sbC5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3R5bGUnO1xuIl19
@@ -1,19 +1,19 @@
1
- /**
2
- * Used to verify `<ng-content />` is empty, useful for custom components.
3
- *
4
- * 用于校验 `<ng-content />` 是否为空,自定义组件时蛮有用。
5
- */
6
- export function isEmpty(element) {
7
- const nodes = element.childNodes;
8
- for (let i = 0; i < nodes.length; i++) {
9
- const node = nodes.item(i);
10
- if (node.nodeType === 1 && node.outerHTML.toString().trim().length !== 0) {
11
- return false;
12
- }
13
- else if (node.nodeType === 3 && node.textContent.toString().trim().length !== 0) {
14
- return false;
15
- }
16
- }
17
- return true;
18
- }
1
+ /**
2
+ * Used to verify `<ng-content />` is empty, useful for custom components.
3
+ *
4
+ * 用于校验 `<ng-content />` 是否为空,自定义组件时蛮有用。
5
+ */
6
+ export function isEmpty(element) {
7
+ const nodes = element.childNodes;
8
+ for (let i = 0; i < nodes.length; i++) {
9
+ const node = nodes.item(i);
10
+ if (node.nodeType === 1 && node.outerHTML.toString().trim().length !== 0) {
11
+ return false;
12
+ }
13
+ else if (node.nodeType === 3 && node.textContent.toString().trim().length !== 0) {
14
+ return false;
15
+ }
16
+ }
17
+ return true;
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5LCB1c2VmdWwgZm9yIGN1c3RvbSBjb21wb25lbnRzLlxuICpcbiAqIOeUqOS6juagoemqjCBgPG5nLWNvbnRlbnQgLz5gIOaYr+WQpuS4uuepuu+8jOiHquWumuS5iee7hOS7tuaXtuibruacieeUqOOAglxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNFbXB0eShlbGVtZW50OiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xuICBjb25zdCBub2RlcyA9IGVsZW1lbnQuY2hpbGROb2RlcztcbiAgZm9yIChsZXQgaSA9IDA7IGkgPCBub2Rlcy5sZW5ndGg7IGkrKykge1xuICAgIGNvbnN0IG5vZGUgPSBub2Rlcy5pdGVtKGkpO1xuICAgIGlmIChub2RlLm5vZGVUeXBlID09PSAxICYmIChub2RlIGFzIEhUTUxFbGVtZW50KS5vdXRlckhUTUwudG9TdHJpbmcoKS50cmltKCkubGVuZ3RoICE9PSAwKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfSBlbHNlIGlmIChub2RlLm5vZGVUeXBlID09PSAzICYmIG5vZGUudGV4dENvbnRlbnQhLnRvU3RyaW5nKCkudHJpbSgpLmxlbmd0aCAhPT0gMCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxuICByZXR1cm4gdHJ1ZTtcbn1cbiJdfQ==
@@ -1,85 +1,85 @@
1
- import { Platform } from '@angular/cdk/platform';
2
- import { DOCUMENT } from '@angular/common';
3
- import { Injectable, inject } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- export class ScrollService {
6
- constructor() {
7
- this._doc = inject(DOCUMENT);
8
- this.platform = inject(Platform);
9
- }
10
- _getDoc() {
11
- return this._doc || document;
12
- }
13
- _getWin() {
14
- const doc = this._getDoc();
15
- return doc.defaultView || window;
16
- }
17
- /**
18
- * 获取滚动条位置
19
- *
20
- * @param element 指定元素,默认 `window`
21
- */
22
- getScrollPosition(element) {
23
- if (!this.platform.isBrowser) {
24
- return [0, 0];
25
- }
26
- const win = this._getWin();
27
- if (element && element !== win) {
28
- return [element.scrollLeft, element.scrollTop];
29
- }
30
- else {
31
- return [win.scrollX, win.scrollY];
32
- }
33
- }
34
- /**
35
- * 设置滚动条位置
36
- *
37
- * @param element 指定元素
38
- */
39
- scrollToPosition(element, position) {
40
- if (!this.platform.isBrowser) {
41
- return;
42
- }
43
- (element || this._getWin()).scrollTo(position[0], position[1]);
44
- }
45
- /**
46
- * 设置滚动条至指定元素
47
- *
48
- * @param element 指定元素,默认 `document.body`
49
- * @param topOffset 偏移值,默认 `0`
50
- */
51
- scrollToElement(element, topOffset = 0) {
52
- if (!this.platform.isBrowser) {
53
- return;
54
- }
55
- if (!element) {
56
- element = this._getDoc().body;
57
- }
58
- element.scrollIntoView();
59
- const win = this._getWin();
60
- if (win && win.scrollBy) {
61
- win.scrollBy(0, element.getBoundingClientRect().top - topOffset);
62
- if (win.scrollY < 20) {
63
- win.scrollBy(0, -win.scrollY);
64
- }
65
- }
66
- }
67
- /**
68
- * 滚动至顶部
69
- *
70
- * @param topOffset 偏移值,默认 `0`
71
- */
72
- scrollToTop(topOffset = 0) {
73
- if (!this.platform.isBrowser) {
74
- return;
75
- }
76
- this.scrollToElement(this._getDoc().body, topOffset);
77
- }
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: ScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
79
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
80
- }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: ScrollService, decorators: [{
82
- type: Injectable,
83
- args: [{ providedIn: 'root' }]
84
- }] });
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { DOCUMENT } from '@angular/common';
3
+ import { Injectable, inject } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ export class ScrollService {
6
+ constructor() {
7
+ this._doc = inject(DOCUMENT);
8
+ this.platform = inject(Platform);
9
+ }
10
+ _getDoc() {
11
+ return this._doc || document;
12
+ }
13
+ _getWin() {
14
+ const doc = this._getDoc();
15
+ return doc.defaultView || window;
16
+ }
17
+ /**
18
+ * 获取滚动条位置
19
+ *
20
+ * @param element 指定元素,默认 `window`
21
+ */
22
+ getScrollPosition(element) {
23
+ if (!this.platform.isBrowser) {
24
+ return [0, 0];
25
+ }
26
+ const win = this._getWin();
27
+ if (element && element !== win) {
28
+ return [element.scrollLeft, element.scrollTop];
29
+ }
30
+ else {
31
+ return [win.scrollX, win.scrollY];
32
+ }
33
+ }
34
+ /**
35
+ * 设置滚动条位置
36
+ *
37
+ * @param element 指定元素
38
+ */
39
+ scrollToPosition(element, position) {
40
+ if (!this.platform.isBrowser) {
41
+ return;
42
+ }
43
+ (element || this._getWin()).scrollTo(position[0], position[1]);
44
+ }
45
+ /**
46
+ * 设置滚动条至指定元素
47
+ *
48
+ * @param element 指定元素,默认 `document.body`
49
+ * @param topOffset 偏移值,默认 `0`
50
+ */
51
+ scrollToElement(element, topOffset = 0) {
52
+ if (!this.platform.isBrowser) {
53
+ return;
54
+ }
55
+ if (!element) {
56
+ element = this._getDoc().body;
57
+ }
58
+ element.scrollIntoView();
59
+ const win = this._getWin();
60
+ if (win && win.scrollBy) {
61
+ win.scrollBy(0, element.getBoundingClientRect().top - topOffset);
62
+ if (win.scrollY < 20) {
63
+ win.scrollBy(0, -win.scrollY);
64
+ }
65
+ }
66
+ }
67
+ /**
68
+ * 滚动至顶部
69
+ *
70
+ * @param topOffset 偏移值,默认 `0`
71
+ */
72
+ scrollToTop(topOffset = 0) {
73
+ if (!this.platform.isBrowser) {
74
+ return;
75
+ }
76
+ this.scrollToElement(this._getDoc().body, topOffset);
77
+ }
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: ScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
79
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: ScrollService, providedIn: 'root' }); }
80
+ }
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: ScrollService, decorators: [{
82
+ type: Injectable,
83
+ args: [{ providedIn: 'root' }]
84
+ }] });
85
85
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvc2Nyb2xsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2pELE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMzQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFHbkQsTUFBTSxPQUFPLGFBQWE7SUFEMUI7UUFFbUIsU0FBSSxHQUFHLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUN4QixhQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0tBNkU5QztJQTVFUyxPQUFPO1FBQ2IsT0FBTyxJQUFJLENBQUMsSUFBSSxJQUFJLFFBQVEsQ0FBQztJQUMvQixDQUFDO0lBRU8sT0FBTztRQUNiLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUMzQixPQUFPLEdBQUcsQ0FBQyxXQUFXLElBQUksTUFBTSxDQUFDO0lBQ25DLENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsaUJBQWl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mICh3aW4gJiYgd2luLnNjcm9sbEJ5KSB7XG4gICAgICB3aW4uc2Nyb2xsQnkoMCwgZWxlbWVudCEuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCkudG9wIC0gdG9wT2Zmc2V0KTtcblxuICAgICAgaWYgKHdpbi5zY3JvbGxZIDwgMjApIHtcbiAgICAgICAgd2luLnNjcm9sbEJ5KDAsIC13aW4uc2Nyb2xsWSk7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqIOa7muWKqOiHs+mhtumDqFxuICAgKlxuICAgKiBAcGFyYW0gdG9wT2Zmc2V0IOWBj+enu+WAvO+8jOm7mOiupCBgMGBcbiAgICovXG4gIHNjcm9sbFRvVG9wKHRvcE9mZnNldDogbnVtYmVyID0gMCk6IHZvaWQge1xuICAgIGlmICghdGhpcy5wbGF0Zm9ybS5pc0Jyb3dzZXIpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy5zY3JvbGxUb0VsZW1lbnQodGhpcy5fZ2V0RG9jKCkuYm9keSwgdG9wT2Zmc2V0KTtcbiAgfVxufVxuIl19
@@ -1,38 +1,38 @@
1
- function removeClass(el, classMap, renderer) {
2
- Object.keys(classMap).forEach(key => renderer.removeClass(el, key));
3
- }
4
- function addClass(el, classMap, renderer) {
5
- for (const i in classMap) {
6
- if (classMap[i]) {
7
- renderer.addClass(el, i);
8
- }
9
- }
10
- }
11
- /**
12
- * Update host component style `class`
13
- *
14
- * 更新宿主组件样式 `class`
15
- *
16
- * ```ts
17
- * updateHostClass(
18
- * this.el.nativeElement,
19
- * this.renderer,
20
- * {
21
- * [ 'classname' ]: true,
22
- * [ 'classname' ]: this.type === '1',
23
- * [ this.cls ]: true,
24
- * [ `a-${this.cls}` ]: true
25
- * })
26
- * ```
27
- */
28
- export function updateHostClass(el, renderer, classMap, preClean = false) {
29
- if (preClean === true) {
30
- renderer.removeAttribute(el, 'class');
31
- }
32
- else {
33
- removeClass(el, classMap, renderer);
34
- }
35
- classMap = { ...classMap };
36
- addClass(el, classMap, renderer);
37
- }
1
+ function removeClass(el, classMap, renderer) {
2
+ Object.keys(classMap).forEach(key => renderer.removeClass(el, key));
3
+ }
4
+ function addClass(el, classMap, renderer) {
5
+ for (const i in classMap) {
6
+ if (classMap[i]) {
7
+ renderer.addClass(el, i);
8
+ }
9
+ }
10
+ }
11
+ /**
12
+ * Update host component style `class`
13
+ *
14
+ * 更新宿主组件样式 `class`
15
+ *
16
+ * ```ts
17
+ * updateHostClass(
18
+ * this.el.nativeElement,
19
+ * this.renderer,
20
+ * {
21
+ * [ 'classname' ]: true,
22
+ * [ 'classname' ]: this.type === '1',
23
+ * [ this.cls ]: true,
24
+ * [ `a-${this.cls}` ]: true
25
+ * })
26
+ * ```
27
+ */
28
+ export function updateHostClass(el, renderer, classMap, preClean = false) {
29
+ if (preClean === true) {
30
+ renderer.removeAttribute(el, 'class');
31
+ }
32
+ else {
33
+ removeClass(el, classMap, renderer);
34
+ }
35
+ classMap = { ...classMap };
36
+ addClass(el, classMap, renderer);
37
+ }
38
38
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2Jyb3dzZXIvc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsU0FBUyxXQUFXLENBQUMsRUFBZSxFQUFFLFFBQXNDLEVBQUUsUUFBbUI7SUFDL0YsTUFBTSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLEVBQUUsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDO0FBQ3RFLENBQUM7QUFFRCxTQUFTLFFBQVEsQ0FBQyxFQUFlLEVBQUUsUUFBc0Ms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3NNYXAsIHJlbmRlcmVyKTtcbiAgfVxuICBjbGFzc01hcCA9IHsgLi4uY2xhc3NNYXAgfTtcbiAgYWRkQ2xhc3MoZWwsIGNsYXNzTWFwLCByZW5kZXJlcik7XG59XG4iXX0=
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvYWJjL2NlbGwudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBOekltYWdlUHJldmlld09wdGlvbnMgfSBmcm9tICduZy16b3Jyby1hbnRkL2ltYWdlJztcblxuZXhwb3J0IGludGVyZmFjZSBZdW56YWlDZWxsQ29uZmlnIHtcbiAgLyoqXG4gICAqIFNpemVcbiAgICpcbiAgICog5aSn5bCPXG4gICAqL1xuICBzaXplPzogJ2xhcmdlJyB8ICdzbWFsbCc7XG4gIC8qKlxuICAgKiBEZWZhdWx0IFRleHRcbiAgICpcbiAgICog6buY6K6k5paH5pysXG4gICAqL1xuICBkZWZhdWx0Pzoge1xuICAgIHRleHQ/OiBzdHJpbmc7XG4gICAgY29uZGl0aW9uPzogdW5rbm93bjtcbiAgfTtcbiAgLyoqXG4gICAqIOaXpeacn1xuICAgKi9cbiAgZGF0ZT86IHtcbiAgICAvKipcbiAgICAgKiDmoLzlvI/ljJblrZfnrKbvvIzpu5jorqTvvJpgeXl5eS1NTS1kZCBISDptbTpzc2BcbiAgICAgKi9cbiAgICBmb3JtYXQ/OiBzdHJpbmc7XG4gIH07XG5cbiAgLyoqXG4gICAqIOi0p+W4gVxuICAgKi9cbiAgY3VycmVuY3k/OiB7XG4gICAgLyoqXG4gICAgICogVGhlIHN0YXJ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cbiAgICog5biD5bCUXG4gICAqL1xuICBib29sZWFuPzoge1xuICAgIHllcz86IHN0cmluZztcbiAgICBubz86IHN0cmluZztcbiAgICBtb2RlPzogJ2Z1bGwnIHwgJ2ljb24nIHwgJ3RleHQnO1xuICB9O1xuXG4gIC8qKlxuICAgKiBJbWFnZSBjb25maWcsIHN1cHBvcnQgbGFyZ2UgaW1hZ2UgcHJldmlld1xuICAgKlxuICAgKiDlm77lg4/phY3nva7vvIzmlK/mjIHlpKflm77pooTop4hcbiAgICovXG4gIGltZz86IHtcbiAgICAvKipcbiAgICAgKiDlpKflsI/vvIzpu5jorqTvvJpgMzJgXG4gICAgICovXG4gICAgc2l6ZT86IG51bWJlcjtcbiAgICAvKipcbiAgICAgKiDmmK/lkKblhYHorrjngrnlh7vmn6XnnIvlpKflm77vvIzpu5jorqTvvJpgdHJ1ZWBcbiAgICAgKi9cbiAgICBiaWc/OiBib29sZWFuO1xuXG4gICAgcHJldmlld09wdGlvbnM/OiBOekltYWdlUHJldmlld09wdGlvbnM7XG4gIH07XG5cbiAgLyoqXG4gICAqIEhUTUwg6YWN572uXG4gICAqL1xuICBodG1sPzoge1xuICAgIHNhZmU/OiAndGV4dCcgfCAnaHRtbCcgfCAnc2FmZUh0bWwnO1xuICB9O1xufVxuIl19
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1waWNrZXIudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL2FiYy9kYXRlLXBpY2tlci50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IE56U2FmZUFueSB9IGZyb20gJ25nLXpvcnJvLWFudGQvY29yZS90eXBlcyc7XG5pbXBvcnQgdHlwZSB7IERpc2FibGVkVGltZUZuLCBOekRhdGVNb2RlLCBQcmVzZXRSYW5nZXMsIFN1cHBvcnRUaW1lT3B0aW9ucyB9IGZyb20gJ25nLXpvcnJvLWFudGQvZGF0ZS1waWNrZXInO1xuXG5leHBvcnQgaW50ZXJmYWNlIFl1bnphaURhdGVSYW5nZVBpY2tlckNvbmZpZyB7XG4gIC8qKlxuICAgKiDpu5jorqTvvJpgeXl5eS1NTS1kZGBcbiAgICovXG4gIG56Rm9ybWF0Pzogc3RyaW5nO1xuICBuekNsYXNzTmFtZT86IHN0cmluZztcbiAgbnpTaXplPzogc3RyaW5nO1xuICBuelN0eWxlPzogc3RyaW5nO1xuICAvKipcbiAgICog6buY6K6k77yaYHRydWVgXG4gICAqL1xuICBuekFsbG93Q2xlYXI/OiBib29sZWFuO1xuICAvKipcbiAgICog6buY6K6k77yaYGZhbHNlYFxuICAgKi9cbiAgbnpBdXRvRm9jdXM/OiBib29sZWFuO1xuICBuekRpc2FibGVkRGF0ZT86IChkOiBEYXRlKSA9PiBib29sZWFuO1xuICBuekRpc2FibGVkVGltZT86IERpc2FibGVkVGltZUZuO1xuICAvKipcbiAgICog6buY6K6k77yaYHsgcG9zaXRpb246ICdyZWxhdGl2ZScgfWBcbiAgICovXG4gIG56UG9wdXBTdHlsZT86IHsgW2tsYXNzOiBzdHJpbmddOiB1bmtub3duIH07XG4gIG56RHJvcGRvd25DbGFzc05hbWU/OiBzdHJpbmc7XG4gIG56UmVuZGVyRXh0cmFGb290ZXI/OiBzdHJpbmc7XG4gIG56U2hvd1RpbWU/OiBTdXBwb3J0VGltZU9wdGlvbnMgfCBib29sZWFuO1xuICAvKipcbiAgICog6buY6K6k77yaYHRydWVgXG4gICAqL1xuICBuelNob3dUb2RheT86IGJvb2xlYW47XG4gIG56TW9kZT86IE56RGF0ZU1vZGUgfCBOekRhdGVNb2RlW107XG4gIG56UmFuZ2VzPzogUHJlc2V0UmFuZ2VzO1xuICBzaG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bmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBZdW56YWlFcnJvckNvbGxlY3RDb25maWcge1xuICAvKipcbiAgICog55uR5ZCs6aKR546H77yM6buY6K6k77yaYDUwMGBcbiAgICovXG4gIGZyZXE/OiBudW1iZXI7XG4gIC8qKlxuICAgKiDpobbpg6jlgY/np7vlgLzvvIzpu5jorqTvvJpgMTQ1YFxuICAgKi9cbiAgb2Zmc2V0VG9wPzogbnVtYmVyO1xufVxuIl19
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2NvbmZpZy9hYmMvZXhjZXB0aW9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpRXhjZXB0aW9uVHlwZSB7XG4gIHR5cGVEaWN0PzogeyBba2V5OiBudW1iZXIgfCBzdHJpbmddOiB7IGltZzogc3RyaW5nOyB0aXRsZTogc3RyaW5nOyBkZXNjPzogc3RyaW5nIH0gfTtcbn1cbiJdfQ==
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL2FiYy9pbWFnZS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IE1vZGFsT3B0a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