adminforth 1.1.78 → 1.1.80

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 (206) hide show
  1. package/dist/modules/codeInjector.js +51 -23
  2. package/dist/plugins/AuditLog/index.js +13 -0
  3. package/dist/plugins/AuditLog/types.js +1 -0
  4. package/dist/plugins/S3UploadPlugin/custom/s3uploader.vue +4 -1
  5. package/dist/spa/index.html +1 -1
  6. package/dist/spa/package-lock.json +0 -111
  7. package/dist/spa/package.json +0 -1
  8. package/dist/spa/src/App.vue +133 -178
  9. package/dist/spa/src/components/MenuLink.vue +3 -3
  10. package/dist/spa/src/components/ResourceForm.vue +96 -96
  11. package/dist/spa/src/components/ResourceListTable.vue +84 -69
  12. package/dist/spa/src/components/ValueRenderer.vue +3 -2
  13. package/dist/spa/src/composables/useStores.ts +11 -24
  14. package/dist/spa/src/main.ts +1 -1
  15. package/dist/spa/src/router/index.ts +1 -0
  16. package/dist/spa/src/utils.ts +1 -1
  17. package/dist/spa/src/views/CreateView.vue +9 -1
  18. package/dist/spa/src/views/EditView.vue +9 -1
  19. package/dist/spa/src/views/ListView.vue +3 -12
  20. package/dist/spa/src/views/LoginView.vue +1 -6
  21. package/dist/spa/src/views/ResourceParent.vue +2 -1
  22. package/dist/spa/src/views/ShowView.vue +14 -6
  23. package/dist/spa/tailwind.config.js +1 -3
  24. package/modules/codeInjector.ts +56 -26
  25. package/package.json +1 -1
  26. package/plugins/S3UploadPlugin/custom/s3uploader.vue +4 -1
  27. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +0 -61
  28. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +0 -21
  29. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +0 -15
  30. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +0 -217
  31. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +0 -21
  32. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +0 -15
  33. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +0 -21
  34. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +0 -201
  35. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +0 -68
  36. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +0 -51
  37. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +0 -2
  38. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +0 -58
  39. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +0 -6
  40. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +0 -22
  41. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +0 -135
  42. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +0 -33
  43. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +0 -15
  44. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +0 -221
  45. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +0 -22
  46. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +0 -1
  47. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +0 -217
  48. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +0 -19
  49. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +0 -24
  50. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +0 -15
  51. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +0 -23
  52. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +0 -26
  53. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +0 -128
  54. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +0 -15
  55. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +0 -63
  56. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +0 -15
  57. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +0 -12
  58. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +0 -164
  59. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +0 -41
  60. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +0 -68
  61. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +0 -3
  62. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +0 -47
  63. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +0 -1
  64. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +0 -374
  65. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +0 -373
  66. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +0 -1
  67. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +0 -424
  68. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +0 -6
  69. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +0 -55
  70. package/dist/spa/src/components/SkeleteLoader.vue +0 -23
  71. package/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +0 -61
  72. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +0 -21
  73. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +0 -15
  74. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert/strict.d.ts +0 -8
  75. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert.d.ts +0 -1040
  76. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/async_hooks.d.ts +0 -541
  77. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/buffer.d.ts +0 -2363
  78. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/child_process.d.ts +0 -1544
  79. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/cluster.d.ts +0 -578
  80. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/console.d.ts +0 -452
  81. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/constants.d.ts +0 -19
  82. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/crypto.d.ts +0 -4523
  83. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dgram.d.ts +0 -596
  84. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  85. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns/promises.d.ts +0 -476
  86. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns.d.ts +0 -864
  87. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dom-events.d.ts +0 -124
  88. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/domain.d.ts +0 -170
  89. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/events.d.ts +0 -931
  90. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs/promises.d.ts +0 -1245
  91. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs.d.ts +0 -4317
  92. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.d.ts +0 -412
  93. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.global.d.ts +0 -1
  94. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http.d.ts +0 -1908
  95. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http2.d.ts +0 -2418
  96. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/https.d.ts +0 -550
  97. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/index.d.ts +0 -89
  98. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/inspector.d.ts +0 -2746
  99. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/module.d.ts +0 -315
  100. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/net.d.ts +0 -999
  101. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/os.d.ts +0 -495
  102. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +0 -217
  103. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/path.d.ts +0 -191
  104. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/perf_hooks.d.ts +0 -905
  105. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/process.d.ts +0 -1754
  106. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/punycode.d.ts +0 -117
  107. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/querystring.d.ts +0 -153
  108. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline/promises.d.ts +0 -150
  109. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline.d.ts +0 -540
  110. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/repl.d.ts +0 -430
  111. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/sea.d.ts +0 -153
  112. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/consumers.d.ts +0 -12
  113. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/promises.d.ts +0 -83
  114. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/web.d.ts +0 -367
  115. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream.d.ts +0 -1707
  116. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/string_decoder.d.ts +0 -67
  117. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/test.d.ts +0 -1718
  118. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers/promises.d.ts +0 -97
  119. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers.d.ts +0 -240
  120. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tls.d.ts +0 -1217
  121. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/trace_events.d.ts +0 -197
  122. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tty.d.ts +0 -208
  123. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/url.d.ts +0 -952
  124. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/util.d.ts +0 -2292
  125. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/v8.d.ts +0 -808
  126. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/vm.d.ts +0 -924
  127. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/wasi.d.ts +0 -181
  128. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/worker_threads.d.ts +0 -694
  129. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/zlib.d.ts +0 -530
  130. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +0 -21
  131. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +0 -15
  132. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/index.d.ts +0 -127
  133. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +0 -21
  134. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +0 -201
  135. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +0 -68
  136. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.d.ts +0 -11
  137. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +0 -51
  138. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.d.ts +0 -4
  139. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +0 -2
  140. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +0 -58
  141. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +0 -6
  142. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +0 -22
  143. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +0 -135
  144. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +0 -33
  145. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +0 -15
  146. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +0 -221
  147. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +0 -22
  148. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +0 -1
  149. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +0 -217
  150. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +0 -19
  151. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +0 -24
  152. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +0 -15
  153. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +0 -23
  154. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +0 -26
  155. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +0 -128
  156. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +0 -15
  157. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +0 -63
  158. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +0 -15
  159. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +0 -12
  160. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +0 -164
  161. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +0 -41
  162. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.d.ts +0 -37
  163. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +0 -68
  164. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +0 -3
  165. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +0 -47
  166. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.d.ts +0 -453
  167. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +0 -1
  168. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +0 -374
  169. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +0 -373
  170. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +0 -1
  171. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +0 -424
  172. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +0 -6
  173. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/agent.d.ts +0 -31
  174. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/api.d.ts +0 -43
  175. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/balanced-pool.d.ts +0 -18
  176. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cache.d.ts +0 -36
  177. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/client.d.ts +0 -97
  178. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/connector.d.ts +0 -34
  179. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/content-type.d.ts +0 -21
  180. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cookies.d.ts +0 -28
  181. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  182. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/dispatcher.d.ts +0 -241
  183. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/errors.d.ts +0 -128
  184. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/fetch.d.ts +0 -209
  185. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/file.d.ts +0 -39
  186. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/filereader.d.ts +0 -54
  187. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/formdata.d.ts +0 -108
  188. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  189. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-origin.d.ts +0 -7
  190. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/handlers.d.ts +0 -9
  191. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/header.d.ts +0 -4
  192. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/index.d.ts +0 -63
  193. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/interceptors.d.ts +0 -5
  194. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-agent.d.ts +0 -50
  195. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-client.d.ts +0 -25
  196. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-errors.d.ts +0 -12
  197. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  198. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-pool.d.ts +0 -25
  199. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +0 -55
  200. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/patch.d.ts +0 -71
  201. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool-stats.d.ts +0 -19
  202. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool.d.ts +0 -28
  203. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/proxy-agent.d.ts +0 -30
  204. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/readable.d.ts +0 -61
  205. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/webidl.d.ts +0 -220
  206. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/websocket.d.ts +0 -131
@@ -1,374 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol */
16
-
17
- var extendStatics = function(d, b) {
18
- extendStatics = Object.setPrototypeOf ||
19
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21
- return extendStatics(d, b);
22
- };
23
-
24
- export function __extends(d, b) {
25
- if (typeof b !== "function" && b !== null)
26
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
27
- extendStatics(d, b);
28
- function __() { this.constructor = d; }
29
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30
- }
31
-
32
- export var __assign = function() {
33
- __assign = Object.assign || function __assign(t) {
34
- for (var s, i = 1, n = arguments.length; i < n; i++) {
35
- s = arguments[i];
36
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
37
- }
38
- return t;
39
- }
40
- return __assign.apply(this, arguments);
41
- }
42
-
43
- export function __rest(s, e) {
44
- var t = {};
45
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
46
- t[p] = s[p];
47
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
48
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
49
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
50
- t[p[i]] = s[p[i]];
51
- }
52
- return t;
53
- }
54
-
55
- export function __decorate(decorators, target, key, desc) {
56
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
57
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
58
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59
- return c > 3 && r && Object.defineProperty(target, key, r), r;
60
- }
61
-
62
- export function __param(paramIndex, decorator) {
63
- return function (target, key) { decorator(target, key, paramIndex); }
64
- }
65
-
66
- export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
67
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
68
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
69
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
70
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
71
- var _, done = false;
72
- for (var i = decorators.length - 1; i >= 0; i--) {
73
- var context = {};
74
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
75
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
76
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
77
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
78
- if (kind === "accessor") {
79
- if (result === void 0) continue;
80
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
81
- if (_ = accept(result.get)) descriptor.get = _;
82
- if (_ = accept(result.set)) descriptor.set = _;
83
- if (_ = accept(result.init)) initializers.unshift(_);
84
- }
85
- else if (_ = accept(result)) {
86
- if (kind === "field") initializers.unshift(_);
87
- else descriptor[key] = _;
88
- }
89
- }
90
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
91
- done = true;
92
- };
93
-
94
- export function __runInitializers(thisArg, initializers, value) {
95
- var useValue = arguments.length > 2;
96
- for (var i = 0; i < initializers.length; i++) {
97
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
98
- }
99
- return useValue ? value : void 0;
100
- };
101
-
102
- export function __propKey(x) {
103
- return typeof x === "symbol" ? x : "".concat(x);
104
- };
105
-
106
- export function __setFunctionName(f, name, prefix) {
107
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
108
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
109
- };
110
-
111
- export function __metadata(metadataKey, metadataValue) {
112
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
113
- }
114
-
115
- export function __awaiter(thisArg, _arguments, P, generator) {
116
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
117
- return new (P || (P = Promise))(function (resolve, reject) {
118
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
119
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
120
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
121
- step((generator = generator.apply(thisArg, _arguments || [])).next());
122
- });
123
- }
124
-
125
- export function __generator(thisArg, body) {
126
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
128
- function verb(n) { return function (v) { return step([n, v]); }; }
129
- function step(op) {
130
- if (f) throw new TypeError("Generator is already executing.");
131
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
132
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
133
- if (y = 0, t) op = [op[0] & 2, t.value];
134
- switch (op[0]) {
135
- case 0: case 1: t = op; break;
136
- case 4: _.label++; return { value: op[1], done: false };
137
- case 5: _.label++; y = op[1]; op = [0]; continue;
138
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
139
- default:
140
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
141
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
142
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
143
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
144
- if (t[2]) _.ops.pop();
145
- _.trys.pop(); continue;
146
- }
147
- op = body.call(thisArg, _);
148
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
149
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
150
- }
151
- }
152
-
153
- export var __createBinding = Object.create ? (function(o, m, k, k2) {
154
- if (k2 === undefined) k2 = k;
155
- var desc = Object.getOwnPropertyDescriptor(m, k);
156
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
157
- desc = { enumerable: true, get: function() { return m[k]; } };
158
- }
159
- Object.defineProperty(o, k2, desc);
160
- }) : (function(o, m, k, k2) {
161
- if (k2 === undefined) k2 = k;
162
- o[k2] = m[k];
163
- });
164
-
165
- export function __exportStar(m, o) {
166
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
167
- }
168
-
169
- export function __values(o) {
170
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
171
- if (m) return m.call(o);
172
- if (o && typeof o.length === "number") return {
173
- next: function () {
174
- if (o && i >= o.length) o = void 0;
175
- return { value: o && o[i++], done: !o };
176
- }
177
- };
178
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
179
- }
180
-
181
- export function __read(o, n) {
182
- var m = typeof Symbol === "function" && o[Symbol.iterator];
183
- if (!m) return o;
184
- var i = m.call(o), r, ar = [], e;
185
- try {
186
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
187
- }
188
- catch (error) { e = { error: error }; }
189
- finally {
190
- try {
191
- if (r && !r.done && (m = i["return"])) m.call(i);
192
- }
193
- finally { if (e) throw e.error; }
194
- }
195
- return ar;
196
- }
197
-
198
- /** @deprecated */
199
- export function __spread() {
200
- for (var ar = [], i = 0; i < arguments.length; i++)
201
- ar = ar.concat(__read(arguments[i]));
202
- return ar;
203
- }
204
-
205
- /** @deprecated */
206
- export function __spreadArrays() {
207
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
208
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
209
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
210
- r[k] = a[j];
211
- return r;
212
- }
213
-
214
- export function __spreadArray(to, from, pack) {
215
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
216
- if (ar || !(i in from)) {
217
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
218
- ar[i] = from[i];
219
- }
220
- }
221
- return to.concat(ar || Array.prototype.slice.call(from));
222
- }
223
-
224
- export function __await(v) {
225
- return this instanceof __await ? (this.v = v, this) : new __await(v);
226
- }
227
-
228
- export function __asyncGenerator(thisArg, _arguments, generator) {
229
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
230
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
231
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
232
- function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
233
- function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
234
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
235
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
236
- function fulfill(value) { resume("next", value); }
237
- function reject(value) { resume("throw", value); }
238
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
239
- }
240
-
241
- export function __asyncDelegator(o) {
242
- var i, p;
243
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
244
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
245
- }
246
-
247
- export function __asyncValues(o) {
248
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
249
- var m = o[Symbol.asyncIterator], i;
250
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
251
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
252
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
253
- }
254
-
255
- export function __makeTemplateObject(cooked, raw) {
256
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
257
- return cooked;
258
- };
259
-
260
- var __setModuleDefault = Object.create ? (function(o, v) {
261
- Object.defineProperty(o, "default", { enumerable: true, value: v });
262
- }) : function(o, v) {
263
- o["default"] = v;
264
- };
265
-
266
- export function __importStar(mod) {
267
- if (mod && mod.__esModule) return mod;
268
- var result = {};
269
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
270
- __setModuleDefault(result, mod);
271
- return result;
272
- }
273
-
274
- export function __importDefault(mod) {
275
- return (mod && mod.__esModule) ? mod : { default: mod };
276
- }
277
-
278
- export function __classPrivateFieldGet(receiver, state, kind, f) {
279
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
280
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
281
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
282
- }
283
-
284
- export function __classPrivateFieldSet(receiver, state, value, kind, f) {
285
- if (kind === "m") throw new TypeError("Private method is not writable");
286
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
287
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
288
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
289
- }
290
-
291
- export function __classPrivateFieldIn(state, receiver) {
292
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
293
- return typeof state === "function" ? receiver === state : state.has(receiver);
294
- }
295
-
296
- export function __addDisposableResource(env, value, async) {
297
- if (value !== null && value !== void 0) {
298
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
299
- var dispose, inner;
300
- if (async) {
301
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
302
- dispose = value[Symbol.asyncDispose];
303
- }
304
- if (dispose === void 0) {
305
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
306
- dispose = value[Symbol.dispose];
307
- if (async) inner = dispose;
308
- }
309
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
310
- if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
311
- env.stack.push({ value: value, dispose: dispose, async: async });
312
- }
313
- else if (async) {
314
- env.stack.push({ async: true });
315
- }
316
- return value;
317
-
318
- }
319
-
320
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
321
- var e = new Error(message);
322
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
323
- };
324
-
325
- export function __disposeResources(env) {
326
- function fail(e) {
327
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
328
- env.hasError = true;
329
- }
330
- function next() {
331
- while (env.stack.length) {
332
- var rec = env.stack.pop();
333
- try {
334
- var result = rec.dispose && rec.dispose.call(rec.value);
335
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
336
- }
337
- catch (e) {
338
- fail(e);
339
- }
340
- }
341
- if (env.hasError) throw env.error;
342
- }
343
- return next();
344
- }
345
-
346
- export default {
347
- __extends: __extends,
348
- __assign: __assign,
349
- __rest: __rest,
350
- __decorate: __decorate,
351
- __param: __param,
352
- __metadata: __metadata,
353
- __awaiter: __awaiter,
354
- __generator: __generator,
355
- __createBinding: __createBinding,
356
- __exportStar: __exportStar,
357
- __values: __values,
358
- __read: __read,
359
- __spread: __spread,
360
- __spreadArrays: __spreadArrays,
361
- __spreadArray: __spreadArray,
362
- __await: __await,
363
- __asyncGenerator: __asyncGenerator,
364
- __asyncDelegator: __asyncDelegator,
365
- __asyncValues: __asyncValues,
366
- __makeTemplateObject: __makeTemplateObject,
367
- __importStar: __importStar,
368
- __importDefault: __importDefault,
369
- __classPrivateFieldGet: __classPrivateFieldGet,
370
- __classPrivateFieldSet: __classPrivateFieldSet,
371
- __classPrivateFieldIn: __classPrivateFieldIn,
372
- __addDisposableResource: __addDisposableResource,
373
- __disposeResources: __disposeResources,
374
- };