@rindo/core 2.16.0-beta.0

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 (229) hide show
  1. package/LICENSE.md +27 -0
  2. package/bin/rindo +57 -0
  3. package/cli/index.cjs +1784 -0
  4. package/cli/index.d.ts +15 -0
  5. package/cli/index.js +1758 -0
  6. package/cli/package.json +14 -0
  7. package/compiler/lib.d.ts +24 -0
  8. package/compiler/lib.dom.d.ts +17791 -0
  9. package/compiler/lib.dom.iterable.d.ts +323 -0
  10. package/compiler/lib.es2015.collection.d.ts +89 -0
  11. package/compiler/lib.es2015.core.d.ts +559 -0
  12. package/compiler/lib.es2015.d.ts +30 -0
  13. package/compiler/lib.es2015.generator.d.ts +79 -0
  14. package/compiler/lib.es2015.iterable.d.ts +497 -0
  15. package/compiler/lib.es2015.promise.d.ts +78 -0
  16. package/compiler/lib.es2015.proxy.d.ts +41 -0
  17. package/compiler/lib.es2015.reflect.d.ts +123 -0
  18. package/compiler/lib.es2015.symbol.d.ts +48 -0
  19. package/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
  20. package/compiler/lib.es2016.array.include.d.ts +118 -0
  21. package/compiler/lib.es2016.d.ts +22 -0
  22. package/compiler/lib.es2016.full.d.ts +25 -0
  23. package/compiler/lib.es2017.d.ts +26 -0
  24. package/compiler/lib.es2017.full.d.ts +25 -0
  25. package/compiler/lib.es2017.intl.d.ts +32 -0
  26. package/compiler/lib.es2017.object.d.ts +51 -0
  27. package/compiler/lib.es2017.sharedmemory.d.ts +137 -0
  28. package/compiler/lib.es2017.string.d.ts +47 -0
  29. package/compiler/lib.es2017.typedarrays.d.ts +55 -0
  30. package/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
  31. package/compiler/lib.es2018.asynciterable.d.ts +45 -0
  32. package/compiler/lib.es2018.d.ts +26 -0
  33. package/compiler/lib.es2018.full.d.ts +25 -0
  34. package/compiler/lib.es2018.intl.d.ts +73 -0
  35. package/compiler/lib.es2018.promise.d.ts +32 -0
  36. package/compiler/lib.es2018.regexp.d.ts +39 -0
  37. package/compiler/lib.es2019.array.d.ts +85 -0
  38. package/compiler/lib.es2019.d.ts +25 -0
  39. package/compiler/lib.es2019.full.d.ts +25 -0
  40. package/compiler/lib.es2019.object.d.ts +35 -0
  41. package/compiler/lib.es2019.string.d.ts +39 -0
  42. package/compiler/lib.es2019.symbol.d.ts +26 -0
  43. package/compiler/lib.es2020.bigint.d.ts +728 -0
  44. package/compiler/lib.es2020.d.ts +27 -0
  45. package/compiler/lib.es2020.full.d.ts +25 -0
  46. package/compiler/lib.es2020.intl.d.ts +368 -0
  47. package/compiler/lib.es2020.promise.d.ts +49 -0
  48. package/compiler/lib.es2020.sharedmemory.d.ts +99 -0
  49. package/compiler/lib.es2020.string.d.ts +30 -0
  50. package/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
  51. package/compiler/lib.es2021.d.ts +25 -0
  52. package/compiler/lib.es2021.full.d.ts +25 -0
  53. package/compiler/lib.es2021.intl.d.ts +44 -0
  54. package/compiler/lib.es2021.promise.d.ts +50 -0
  55. package/compiler/lib.es2021.string.d.ts +35 -0
  56. package/compiler/lib.es2021.weakref.d.ts +75 -0
  57. package/compiler/lib.es5.d.ts +4495 -0
  58. package/compiler/lib.es6.d.ts +25 -0
  59. package/compiler/lib.esnext.d.ts +22 -0
  60. package/compiler/lib.esnext.full.d.ts +25 -0
  61. package/compiler/lib.esnext.intl.d.ts +23 -0
  62. package/compiler/lib.esnext.promise.d.ts +43 -0
  63. package/compiler/lib.esnext.string.d.ts +35 -0
  64. package/compiler/lib.esnext.weakref.d.ts +75 -0
  65. package/compiler/lib.scripthost.d.ts +327 -0
  66. package/compiler/lib.webworker.d.ts +5733 -0
  67. package/compiler/lib.webworker.importscripts.d.ts +26 -0
  68. package/compiler/lib.webworker.iterable.d.ts +160 -0
  69. package/compiler/package.json +8 -0
  70. package/compiler/rindo.d.ts +95 -0
  71. package/compiler/rindo.js +67222 -0
  72. package/compiler/rindo.min.js +4 -0
  73. package/dependencies.json +109 -0
  74. package/dev-server/client/app-error.d.ts +18 -0
  75. package/dev-server/client/events.d.ts +6 -0
  76. package/dev-server/client/hmr-components.d.ts +1 -0
  77. package/dev-server/client/hmr-external-styles.d.ts +1 -0
  78. package/dev-server/client/hmr-images.d.ts +1 -0
  79. package/dev-server/client/hmr-inline-styles.d.ts +1 -0
  80. package/dev-server/client/hmr-util.d.ts +9 -0
  81. package/dev-server/client/hmr-window.d.ts +10 -0
  82. package/dev-server/client/index.d.ts +6 -0
  83. package/dev-server/client/index.js +808 -0
  84. package/dev-server/client/logger.d.ts +5 -0
  85. package/dev-server/client/package.json +8 -0
  86. package/dev-server/client/progress.d.ts +3 -0
  87. package/dev-server/client/status.d.ts +4 -0
  88. package/dev-server/connector.html +6 -0
  89. package/dev-server/index.d.ts +3 -0
  90. package/dev-server/index.js +264 -0
  91. package/dev-server/open-in-editor-api.js +1 -0
  92. package/dev-server/package.json +8 -0
  93. package/dev-server/server-process.js +1763 -0
  94. package/dev-server/server-worker-thread.js +39 -0
  95. package/dev-server/static/favicon.ico +0 -0
  96. package/dev-server/templates/directory-index.html +132 -0
  97. package/dev-server/templates/initial-load.html +160 -0
  98. package/dev-server/visualstudio.vbs +82 -0
  99. package/dev-server/ws.js +1 -0
  100. package/dev-server/xdg-open +1066 -0
  101. package/internal/app-data/index.cjs +92 -0
  102. package/internal/app-data/index.d.ts +4 -0
  103. package/internal/app-data/index.js +88 -0
  104. package/internal/app-data/package.json +15 -0
  105. package/internal/client/css-shim.js +4 -0
  106. package/internal/client/dom.js +73 -0
  107. package/internal/client/index.js +3059 -0
  108. package/internal/client/package.json +8 -0
  109. package/internal/client/patch-browser.js +124 -0
  110. package/internal/client/patch-esm.js +23 -0
  111. package/internal/client/polyfills/core-js.js +11 -0
  112. package/internal/client/polyfills/css-shim.js +1 -0
  113. package/internal/client/polyfills/dom.js +79 -0
  114. package/internal/client/polyfills/es5-html-element.js +1 -0
  115. package/internal/client/polyfills/index.js +34 -0
  116. package/internal/client/polyfills/system.js +6 -0
  117. package/internal/client/shadow-css.js +387 -0
  118. package/internal/hydrate/index.js +1132 -0
  119. package/internal/hydrate/package.json +7 -0
  120. package/internal/hydrate/runner.d.ts +217 -0
  121. package/internal/hydrate/runner.js +777 -0
  122. package/internal/hydrate/shadow-css.js +143 -0
  123. package/internal/index.d.ts +4 -0
  124. package/internal/index.js +2 -0
  125. package/internal/package.json +9 -0
  126. package/internal/rindo-core/index.cjs +1 -0
  127. package/internal/rindo-core/index.d.ts +52 -0
  128. package/internal/rindo-core/index.js +16 -0
  129. package/internal/rindo-ext-modules.d.ts +41 -0
  130. package/internal/rindo-private.d.ts +2289 -0
  131. package/internal/rindo-public-compiler.d.ts +2273 -0
  132. package/internal/rindo-public-docs.d.ts +116 -0
  133. package/internal/rindo-public-runtime.d.ts +1565 -0
  134. package/internal/testing/index.js +1093 -0
  135. package/internal/testing/package.json +7 -0
  136. package/internal/testing/shadow-css.js +143 -0
  137. package/mock-doc/index.cjs +4658 -0
  138. package/mock-doc/index.d.ts +928 -0
  139. package/mock-doc/index.js +4622 -0
  140. package/mock-doc/package.json +15 -0
  141. package/package.json +151 -0
  142. package/readme.md +74 -0
  143. package/screenshot/compare/assets/favicon.ico +0 -0
  144. package/screenshot/compare/assets/logo.png +0 -0
  145. package/screenshot/compare/build/app.css +1 -0
  146. package/screenshot/compare/build/app.esm.js +1 -0
  147. package/screenshot/compare/build/app.js +33 -0
  148. package/screenshot/compare/build/index.esm.js +0 -0
  149. package/screenshot/compare/build/p-081b0641.js +1 -0
  150. package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  151. package/screenshot/compare/build/p-2c298727.entry.js +1 -0
  152. package/screenshot/compare/build/p-5479268c.entry.js +1 -0
  153. package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  154. package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  155. package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  156. package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  157. package/screenshot/compare/build/p-7b4e3ba7.js +1 -0
  158. package/screenshot/compare/build/p-988eb362.css +1 -0
  159. package/screenshot/compare/build/p-9b6a9315.js +1 -0
  160. package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  161. package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  162. package/screenshot/compare/build/p-e2efe0df.js +1 -0
  163. package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  164. package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  165. package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  166. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  167. package/screenshot/compare/build/p-fbbae598.js +1 -0
  168. package/screenshot/compare/host.config.json +15 -0
  169. package/screenshot/compare/index.html +1 -0
  170. package/screenshot/compare/manifest.json +13 -0
  171. package/screenshot/connector-base.d.ts +42 -0
  172. package/screenshot/connector-local.d.ts +7 -0
  173. package/screenshot/connector.js +2 -0
  174. package/screenshot/index.d.ts +3 -0
  175. package/screenshot/index.js +659 -0
  176. package/screenshot/local-connector.js +2 -0
  177. package/screenshot/package.json +15 -0
  178. package/screenshot/pixel-match.d.ts +1 -0
  179. package/screenshot/pixel-match.js +2673 -0
  180. package/screenshot/screenshot-compare.d.ts +3 -0
  181. package/screenshot/screenshot-fs.d.ts +15 -0
  182. package/sys/node/autoprefixer.js +8 -0
  183. package/sys/node/glob.js +1 -0
  184. package/sys/node/graceful-fs.js +1 -0
  185. package/sys/node/index.d.ts +18 -0
  186. package/sys/node/index.js +6124 -0
  187. package/sys/node/node-fetch.js +1 -0
  188. package/sys/node/package.json +8 -0
  189. package/sys/node/prompts.js +1 -0
  190. package/sys/node/worker.js +52 -0
  191. package/testing/index.d.ts +12 -0
  192. package/testing/index.js +4232 -0
  193. package/testing/jest/jest-config.d.ts +16 -0
  194. package/testing/jest/jest-environment.d.ts +15 -0
  195. package/testing/jest/jest-preprocessor.d.ts +59 -0
  196. package/testing/jest/jest-runner.d.ts +9 -0
  197. package/testing/jest/jest-screenshot.d.ts +2 -0
  198. package/testing/jest/jest-serializer.d.ts +5 -0
  199. package/testing/jest/jest-setup-test-framework.d.ts +1 -0
  200. package/testing/jest-environment.js +3 -0
  201. package/testing/jest-preprocessor.js +3 -0
  202. package/testing/jest-preset.js +37 -0
  203. package/testing/jest-runner.js +3 -0
  204. package/testing/jest-setuptestframework.js +3 -0
  205. package/testing/matchers/attributes.d.ts +14 -0
  206. package/testing/matchers/class-list.d.ts +12 -0
  207. package/testing/matchers/events.d.ts +21 -0
  208. package/testing/matchers/html.d.ts +12 -0
  209. package/testing/matchers/index.d.ts +23 -0
  210. package/testing/matchers/screenshot.d.ts +5 -0
  211. package/testing/matchers/text.d.ts +4 -0
  212. package/testing/mock-fetch.d.ts +11 -0
  213. package/testing/mocks.d.ts +10 -0
  214. package/testing/package.json +8 -0
  215. package/testing/puppeteer/index.d.ts +2 -0
  216. package/testing/puppeteer/puppeteer-browser.d.ts +6 -0
  217. package/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
  218. package/testing/puppeteer/puppeteer-element.d.ts +67 -0
  219. package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  220. package/testing/puppeteer/puppeteer-events.d.ts +21 -0
  221. package/testing/puppeteer/puppeteer-page.d.ts +2 -0
  222. package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  223. package/testing/reset-build-conditionals.d.ts +2 -0
  224. package/testing/spec-page.d.ts +2 -0
  225. package/testing/test-transpile.d.ts +2 -0
  226. package/testing/testing-logger.d.ts +25 -0
  227. package/testing/testing-sys.d.ts +6 -0
  228. package/testing/testing-utils.d.ts +6 -0
  229. package/testing/testing.d.ts +2 -0
@@ -0,0 +1,1093 @@
1
+ function writeTask(e) {
2
+ queuedWriteTasks.push(e);
3
+ }
4
+
5
+ function readTask(e) {
6
+ queuedReadTasks.push(e);
7
+ }
8
+
9
+ function flushQueue() {
10
+ return new Promise(((e, t) => {
11
+ process.nextTick((async function a() {
12
+ try {
13
+ if (queuedReadTasks.length > 0) {
14
+ const e = queuedReadTasks.slice();
15
+ let t;
16
+ for (queuedReadTasks.length = 0; t = e.shift(); ) {
17
+ const e = t(Date.now());
18
+ null != e && "function" == typeof e.then && await e;
19
+ }
20
+ }
21
+ if (queuedWriteTasks.length > 0) {
22
+ const e = queuedWriteTasks.slice();
23
+ let t;
24
+ for (queuedWriteTasks.length = 0; t = e.shift(); ) {
25
+ const e = t(Date.now());
26
+ null != e && "function" == typeof e.then && await e;
27
+ }
28
+ }
29
+ queuedReadTasks.length + queuedWriteTasks.length > 0 ? process.nextTick(a) : e();
30
+ } catch (e) {
31
+ t(`flushQueue: ${e}`);
32
+ }
33
+ }));
34
+ }));
35
+ }
36
+
37
+ async function flushAll() {
38
+ for (;queuedTicks.length + queuedLoadModules.length + queuedWriteTasks.length + queuedReadTasks.length > 0; ) await new Promise(((e, t) => {
39
+ process.nextTick((function a() {
40
+ try {
41
+ if (queuedTicks.length > 0) {
42
+ const e = queuedTicks.slice();
43
+ let t;
44
+ for (queuedTicks.length = 0; t = e.shift(); ) t(Date.now());
45
+ }
46
+ queuedTicks.length > 0 ? process.nextTick(a) : e();
47
+ } catch (e) {
48
+ t(`flushTicks: ${e}`);
49
+ }
50
+ }));
51
+ })), await flushLoadModule(), await flushQueue();
52
+ if (caughtErrors.length > 0) {
53
+ const e = caughtErrors[0];
54
+ if (null == e) throw new Error("Error!");
55
+ if ("string" == typeof e) throw new Error(e);
56
+ throw e;
57
+ }
58
+ return new Promise((e => process.nextTick(e)));
59
+ }
60
+
61
+ function loadModule(e, t, a) {
62
+ return new Promise((t => {
63
+ queuedLoadModules.push({
64
+ bundleId: e.$lazyBundleId$,
65
+ resolve: () => t(moduleLoaded.get(e.$lazyBundleId$))
66
+ });
67
+ }));
68
+ }
69
+
70
+ function flushLoadModule(e) {
71
+ return new Promise(((t, a) => {
72
+ try {
73
+ process.nextTick((() => {
74
+ if (null != e) for (let t = 0; t < queuedLoadModules.length; t++) queuedLoadModules[t].bundleId === e && (queuedLoadModules[t].resolve(),
75
+ queuedLoadModules.splice(t, 1), t--); else {
76
+ let e;
77
+ for (;e = queuedLoadModules.shift(); ) e.resolve();
78
+ }
79
+ t();
80
+ }));
81
+ } catch (e) {
82
+ a(`flushLoadModule: ${e}`);
83
+ }
84
+ }));
85
+ }
86
+
87
+ function stopAutoApplyChanges() {
88
+ isAutoApplyingChanges = !1, autoApplyTimer && (clearTimeout(autoApplyTimer), autoApplyTimer = void 0);
89
+ }
90
+
91
+ const appData = require("@rindo/core/internal/app-data"), mockDoc = require("@rindo/core/mock-doc"), styles = new Map, modeResolutionChain = [], cstrs = new Map, queuedTicks = [], queuedWriteTasks = [], queuedReadTasks = [], moduleLoaded = new Map, queuedLoadModules = [], caughtErrors = [], hostRefs = new Map;
92
+
93
+ let customError;
94
+
95
+ const defaultConsoleError = e => {
96
+ caughtErrors.push(e);
97
+ }, consoleError = (e, t) => (customError || defaultConsoleError)(e, t), consoleDevError = (...e) => {
98
+ caughtErrors.push(new Error(e.join(", ")));
99
+ }, consoleDevWarn = (...e) => {
100
+ const t = e.filter((e => "string" == typeof e || "number" == typeof e || "boolean" == typeof e));
101
+ console.warn.apply(console, t);
102
+ }, nextTick = e => {
103
+ queuedTicks.push(e);
104
+ }, win = mockDoc.setupGlobal(global), doc = win.document;
105
+
106
+ exports.supportsShadow = !0;
107
+
108
+ const plt = {
109
+ $flags$: 0,
110
+ $resourcesUrl$: "",
111
+ jmp: e => e(),
112
+ raf: e => requestAnimationFrame(e),
113
+ ael: (e, t, a, o) => e.addEventListener(t, a, o),
114
+ rel: (e, t, a, o) => e.removeEventListener(t, a, o),
115
+ ce: (e, t) => new win.CustomEvent(e, t)
116
+ }, Context = {};
117
+
118
+ let autoApplyTimer, isAutoApplyingChanges = !1;
119
+
120
+ const isMemberInElement = (e, t) => {
121
+ if (null != e) {
122
+ if (t in e) return !0;
123
+ const a = e.nodeName;
124
+ if (a) {
125
+ const e = cstrs.get(a.toLowerCase());
126
+ if (null != e && null != e.COMPILER_META && null != e.COMPILER_META.properties) return e.COMPILER_META.properties.some((e => e.name === t));
127
+ }
128
+ }
129
+ return !1;
130
+ }, addHostEventListeners = (e, t, a, o) => {
131
+ appData.BUILD.hostListener && a && (appData.BUILD.hostListenerTargetParent && (a = o ? a.filter((([e]) => 32 & e)) : a.filter((([e]) => !(32 & e)))),
132
+ a.map((([a, o, s]) => {
133
+ const n = appData.BUILD.hostListenerTarget ? getHostListenerTarget(e, a) : e, l = hostListenerProxy(t, s), r = hostListenerOpts(a);
134
+ plt.ael(n, o, l, r), (t.$rmListeners$ = t.$rmListeners$ || []).push((() => plt.rel(n, o, l, r)));
135
+ })));
136
+ }, hostListenerProxy = (e, t) => a => {
137
+ try {
138
+ appData.BUILD.lazyLoad ? 256 & e.$flags$ ? e.$lazyInstance$[t](a) : (e.$queuedListeners$ = e.$queuedListeners$ || []).push([ t, a ]) : e.$hostElement$[t](a);
139
+ } catch (e) {
140
+ consoleError(e);
141
+ }
142
+ }, getHostListenerTarget = (e, t) => appData.BUILD.hostListenerTargetDocument && 4 & t ? doc : appData.BUILD.hostListenerTargetWindow && 8 & t ? win : appData.BUILD.hostListenerTargetBody && 16 & t ? doc.body : appData.BUILD.hostListenerTargetParent && 32 & t ? e.parentElement : e, hostListenerOpts = e => ({
143
+ passive: 0 != (1 & e),
144
+ capture: 0 != (2 & e)
145
+ }), XLINK_NS = "http://www.w3.org/1999/xlink";
146
+
147
+ let i = 0;
148
+
149
+ const createTime = (e, t = "") => {
150
+ if (appData.BUILD.profile && performance.mark) {
151
+ const a = `st:${e}:${t}:${i++}`;
152
+ return performance.mark(a), () => performance.measure(`[Rindo] ${e}() <${t}>`, a);
153
+ }
154
+ return () => {};
155
+ }, rootAppliedStyles = new WeakMap, registerStyle = (e, t, a) => {
156
+ let o = styles.get(e);
157
+ o = t, styles.set(e, o);
158
+ }, addStyle = (e, t, a, o) => {
159
+ let s = getScopeId(t, a);
160
+ const n = styles.get(s);
161
+ if (!appData.BUILD.attachStyles) return s;
162
+ if (e = 11 === e.nodeType ? e : doc, n) if ("string" == typeof n) {
163
+ e = e.head || e;
164
+ let a, l = rootAppliedStyles.get(e);
165
+ if (l || rootAppliedStyles.set(e, l = new Set), !l.has(s)) {
166
+ if (appData.BUILD.hydrateClientSide && e.host && (a = e.querySelector(`[sty-id="${s}"]`))) a.innerHTML = n; else {
167
+ if (appData.BUILD.cssVarShim && plt.$cssShim$) {
168
+ a = plt.$cssShim$.createHostStyle(o, s, n, !!(10 & t.$flags$));
169
+ const e = a["s-sc"];
170
+ e && (s = e, l = null);
171
+ } else a = doc.createElement("style"), a.innerHTML = n;
172
+ (appData.BUILD.hydrateServerSide || appData.BUILD.hotModuleReplacement) && a.setAttribute("sty-id", s),
173
+ e.insertBefore(a, e.querySelector("link"));
174
+ }
175
+ l && l.add(s);
176
+ }
177
+ } else appData.BUILD.constructableCSS && !e.adoptedStyleSheets.includes(n) && (e.adoptedStyleSheets = [ ...e.adoptedStyleSheets, n ]);
178
+ return s;
179
+ }, attachStyles = e => {
180
+ const t = e.$cmpMeta$, a = e.$hostElement$, o = t.$flags$, s = createTime("attachStyles", t.$tagName$), n = addStyle(appData.BUILD.shadowDom && exports.supportsShadow && a.shadowRoot ? a.shadowRoot : a.getRootNode(), t, e.$modeName$, a);
181
+ (appData.BUILD.shadowDom || appData.BUILD.scoped) && appData.BUILD.cssAnnotations && 10 & o && (a["s-sc"] = n,
182
+ a.classList.add(n + "-h"), appData.BUILD.scoped && 2 & o && a.classList.add(n + "-s")),
183
+ s();
184
+ }, getScopeId = (e, t) => "sc-" + (appData.BUILD.mode && t && 32 & e.$flags$ ? e.$tagName$ + "-" + t : e.$tagName$), computeMode = e => modeResolutionChain.map((t => t(e))).find((e => !!e)), EMPTY_OBJ = {}, isComplexType = e => "object" == (e = typeof e) || "function" === e, h = (e, t, ...a) => {
185
+ let o = null, s = null, n = null, l = !1, r = !1;
186
+ const p = [], i = t => {
187
+ for (let a = 0; a < t.length; a++) o = t[a], Array.isArray(o) ? i(o) : null != o && "boolean" != typeof o && ((l = "function" != typeof e && !isComplexType(o)) ? o = String(o) : appData.BUILD.isDev && "function" != typeof e && void 0 === o.$flags$ && consoleDevError("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),
188
+ l && r ? p[p.length - 1].$text$ += o : p.push(l ? newVNode(null, o) : o), r = l);
189
+ };
190
+ if (i(a), t && (appData.BUILD.isDev && "input" === e && validateInputProperties(t),
191
+ appData.BUILD.vdomKey && t.key && (s = t.key), appData.BUILD.slotRelocation && t.name && (n = t.name),
192
+ appData.BUILD.vdomClass)) {
193
+ const e = t.className || t.class;
194
+ e && (t.class = "object" != typeof e ? e : Object.keys(e).filter((t => e[t])).join(" "));
195
+ }
196
+ if (appData.BUILD.isDev && p.some(isHost) && consoleDevError("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),
197
+ appData.BUILD.vdomFunctional && "function" == typeof e) return e(null === t ? {} : t, p, vdomFnUtils);
198
+ const d = newVNode(e, null);
199
+ return d.$attrs$ = t, p.length > 0 && (d.$children$ = p), appData.BUILD.vdomKey && (d.$key$ = s),
200
+ appData.BUILD.slotRelocation && (d.$name$ = n), d;
201
+ }, newVNode = (e, t) => {
202
+ const a = {
203
+ $flags$: 0,
204
+ $tag$: e,
205
+ $text$: t,
206
+ $elm$: null,
207
+ $children$: null
208
+ };
209
+ return appData.BUILD.vdomAttribute && (a.$attrs$ = null), appData.BUILD.vdomKey && (a.$key$ = null),
210
+ appData.BUILD.slotRelocation && (a.$name$ = null), a;
211
+ }, Host = {}, isHost = e => e && e.$tag$ === Host, vdomFnUtils = {
212
+ forEach: (e, t) => e.map(convertToPublic).forEach(t),
213
+ map: (e, t) => e.map(convertToPublic).map(t).map(convertToPrivate)
214
+ }, convertToPublic = e => ({
215
+ vattrs: e.$attrs$,
216
+ vchildren: e.$children$,
217
+ vkey: e.$key$,
218
+ vname: e.$name$,
219
+ vtag: e.$tag$,
220
+ vtext: e.$text$
221
+ }), convertToPrivate = e => {
222
+ if ("function" == typeof e.vtag) {
223
+ const t = {
224
+ ...e.vattrs
225
+ };
226
+ return e.vkey && (t.key = e.vkey), e.vname && (t.name = e.vname), h(e.vtag, t, ...e.vchildren || []);
227
+ }
228
+ const t = newVNode(e.vtag, e.vtext);
229
+ return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname,
230
+ t;
231
+ }, validateInputProperties = e => {
232
+ const t = Object.keys(e), a = t.indexOf("value");
233
+ if (-1 === a) return;
234
+ const o = t.indexOf("type"), s = t.indexOf("min"), n = t.indexOf("max"), l = t.indexOf("step");
235
+ (a < o || a < s || a < n || a < l) && consoleDevWarn('The "value" prop of <input> should be set after "min", "max", "type" and "step"');
236
+ }, setAccessor = (e, t, a, o, s, n) => {
237
+ if (a !== o) {
238
+ let l = isMemberInElement(e, t), r = t.toLowerCase();
239
+ if (appData.BUILD.vdomClass && "class" === t) {
240
+ const t = e.classList, s = parseClassList(a), n = parseClassList(o);
241
+ t.remove(...s.filter((e => e && !n.includes(e)))), t.add(...n.filter((e => e && !s.includes(e))));
242
+ } else if (appData.BUILD.vdomStyle && "style" === t) {
243
+ if (appData.BUILD.updatable) for (const t in a) o && null != o[t] || (!appData.BUILD.hydrateServerSide && t.includes("-") ? e.style.removeProperty(t) : e.style[t] = "");
244
+ for (const t in o) a && o[t] === a[t] || (!appData.BUILD.hydrateServerSide && t.includes("-") ? e.style.setProperty(t, o[t]) : e.style[t] = o[t]);
245
+ } else if (appData.BUILD.vdomKey && "key" === t) ; else if (appData.BUILD.vdomRef && "ref" === t) o && o(e); else if (!appData.BUILD.vdomListener || (appData.BUILD.lazyLoad ? l : e.__lookupSetter__(t)) || "o" !== t[0] || "n" !== t[1]) {
246
+ if (appData.BUILD.vdomPropOrAttr) {
247
+ const p = isComplexType(o);
248
+ if ((l || p && null !== o) && !s) try {
249
+ if (e.tagName.includes("-")) e[t] = o; else {
250
+ const s = null == o ? "" : o;
251
+ "list" === t ? l = !1 : null != a && e[t] == s || (e[t] = s);
252
+ }
253
+ } catch (e) {}
254
+ let i = !1;
255
+ appData.BUILD.vdomXlink && r !== (r = r.replace(/^xlink\:?/, "")) && (t = r, i = !0),
256
+ null == o || !1 === o ? !1 === o && "" !== e.getAttribute(t) || (appData.BUILD.vdomXlink && i ? e.removeAttributeNS(XLINK_NS, t) : e.removeAttribute(t)) : (!l || 4 & n || s) && !p && (o = !0 === o ? "" : o,
257
+ appData.BUILD.vdomXlink && i ? e.setAttributeNS(XLINK_NS, t, o) : e.setAttribute(t, o));
258
+ }
259
+ } else t = "-" === t[2] ? t.slice(3) : isMemberInElement(win, r) ? r.slice(2) : r[2] + t.slice(3),
260
+ a && plt.rel(e, t, a, !1), o && plt.ael(e, t, o, !1);
261
+ }
262
+ }, parseClassListRegex = /\s/, parseClassList = e => e ? e.split(parseClassListRegex) : [], updateElement = (e, t, a, o) => {
263
+ const s = 11 === t.$elm$.nodeType && t.$elm$.host ? t.$elm$.host : t.$elm$, n = e && e.$attrs$ || EMPTY_OBJ, l = t.$attrs$ || EMPTY_OBJ;
264
+ if (appData.BUILD.updatable) for (o in n) o in l || setAccessor(s, o, n[o], void 0, a, t.$flags$);
265
+ for (o in l) setAccessor(s, o, n[o], l[o], a, t.$flags$);
266
+ };
267
+
268
+ let scopeId, contentRef, hostTagName, useNativeShadowDom = !1, checkSlotFallbackVisibility = !1, checkSlotRelocate = !1, isSvgMode = !1;
269
+
270
+ const createElm = (e, t, a, o) => {
271
+ const s = t.$children$[a];
272
+ let n, l, r, p = 0;
273
+ if (appData.BUILD.slotRelocation && !useNativeShadowDom && (checkSlotRelocate = !0,
274
+ "slot" === s.$tag$ && (scopeId && o.classList.add(scopeId + "-s"), s.$flags$ |= s.$children$ ? 2 : 1)),
275
+ appData.BUILD.isDev && s.$elm$ && consoleDevError(`The JSX ${null !== s.$text$ ? `"${s.$text$}" text` : `"${s.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://rindojs.web.app/docs/templating-jsx#avoid-shared-jsx-nodes`),
276
+ appData.BUILD.vdomText && null !== s.$text$) n = s.$elm$ = doc.createTextNode(s.$text$); else if (appData.BUILD.slotRelocation && 1 & s.$flags$) n = s.$elm$ = appData.BUILD.isDebug || appData.BUILD.hydrateServerSide ? slotReferenceDebugNode(s) : doc.createTextNode(""); else {
277
+ if (appData.BUILD.svg && !isSvgMode && (isSvgMode = "svg" === s.$tag$), n = s.$elm$ = appData.BUILD.svg ? doc.createElementNS(isSvgMode ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", appData.BUILD.slotRelocation && 2 & s.$flags$ ? "slot-fb" : s.$tag$) : doc.createElement(appData.BUILD.slotRelocation && 2 & s.$flags$ ? "slot-fb" : s.$tag$),
278
+ appData.BUILD.svg && isSvgMode && "foreignObject" === s.$tag$ && (isSvgMode = !1),
279
+ appData.BUILD.vdomAttribute && updateElement(null, s, isSvgMode), (appData.BUILD.shadowDom || appData.BUILD.scoped) && null != scopeId && n["s-si"] !== scopeId && n.classList.add(n["s-si"] = scopeId),
280
+ s.$children$) for (p = 0; p < s.$children$.length; ++p) l = createElm(e, s, p, n),
281
+ l && n.appendChild(l);
282
+ appData.BUILD.svg && ("svg" === s.$tag$ ? isSvgMode = !1 : "foreignObject" === n.tagName && (isSvgMode = !0));
283
+ }
284
+ return appData.BUILD.slotRelocation && (n["s-hn"] = hostTagName, 3 & s.$flags$ && (n["s-sr"] = !0,
285
+ n["s-cr"] = contentRef, n["s-sn"] = s.$name$ || "", r = e && e.$children$ && e.$children$[a],
286
+ r && r.$tag$ === s.$tag$ && e.$elm$ && putBackInOriginalLocation(e.$elm$, !1))),
287
+ n;
288
+ }, putBackInOriginalLocation = (e, t) => {
289
+ plt.$flags$ |= 1;
290
+ const a = e.childNodes;
291
+ for (let e = a.length - 1; e >= 0; e--) {
292
+ const o = a[e];
293
+ o["s-hn"] !== hostTagName && o["s-ol"] && (parentReferenceNode(o).insertBefore(o, referenceNode(o)),
294
+ o["s-ol"].remove(), o["s-ol"] = void 0, checkSlotRelocate = !0), t && putBackInOriginalLocation(o, t);
295
+ }
296
+ plt.$flags$ &= -2;
297
+ }, addVnodes = (e, t, a, o, s, n) => {
298
+ let l, r = appData.BUILD.slotRelocation && e["s-cr"] && e["s-cr"].parentNode || e;
299
+ for (appData.BUILD.shadowDom && r.shadowRoot && r.tagName === hostTagName && (r = r.shadowRoot); s <= n; ++s) o[s] && (l = createElm(null, a, s, e),
300
+ l && (o[s].$elm$ = l, r.insertBefore(l, appData.BUILD.slotRelocation ? referenceNode(t) : t)));
301
+ }, removeVnodes = (e, t, a, o, s) => {
302
+ for (;t <= a; ++t) (o = e[t]) && (s = o.$elm$, callNodeRefs(o), appData.BUILD.slotRelocation && (checkSlotFallbackVisibility = !0,
303
+ s["s-ol"] ? s["s-ol"].remove() : putBackInOriginalLocation(s, !0)), s.remove());
304
+ }, isSameVnode = (e, t) => e.$tag$ === t.$tag$ && (appData.BUILD.slotRelocation && "slot" === e.$tag$ ? e.$name$ === t.$name$ : !appData.BUILD.vdomKey || e.$key$ === t.$key$), referenceNode = e => e && e["s-ol"] || e, parentReferenceNode = e => (e["s-ol"] ? e["s-ol"] : e).parentNode, patch = (e, t) => {
305
+ const a = t.$elm$ = e.$elm$, o = e.$children$, s = t.$children$, n = t.$tag$, l = t.$text$;
306
+ let r;
307
+ appData.BUILD.vdomText && null !== l ? appData.BUILD.vdomText && appData.BUILD.slotRelocation && (r = a["s-cr"]) ? r.parentNode.textContent = l : appData.BUILD.vdomText && e.$text$ !== l && (a.data = l) : (appData.BUILD.svg && (isSvgMode = "svg" === n || "foreignObject" !== n && isSvgMode),
308
+ (appData.BUILD.vdomAttribute || appData.BUILD.reflect) && (appData.BUILD.slot && "slot" === n || updateElement(e, t, isSvgMode)),
309
+ appData.BUILD.updatable && null !== o && null !== s ? ((e, t, a, o) => {
310
+ let s, n, l = 0, r = 0, p = 0, i = 0, d = t.length - 1, c = t[0], $ = t[d], u = o.length - 1, m = o[0], h = o[u];
311
+ for (;l <= d && r <= u; ) if (null == c) c = t[++l]; else if (null == $) $ = t[--d]; else if (null == m) m = o[++r]; else if (null == h) h = o[--u]; else if (isSameVnode(c, m)) patch(c, m),
312
+ c = t[++l], m = o[++r]; else if (isSameVnode($, h)) patch($, h), $ = t[--d], h = o[--u]; else if (isSameVnode(c, h)) !appData.BUILD.slotRelocation || "slot" !== c.$tag$ && "slot" !== h.$tag$ || putBackInOriginalLocation(c.$elm$.parentNode, !1),
313
+ patch(c, h), e.insertBefore(c.$elm$, $.$elm$.nextSibling), c = t[++l], h = o[--u]; else if (isSameVnode($, m)) !appData.BUILD.slotRelocation || "slot" !== c.$tag$ && "slot" !== h.$tag$ || putBackInOriginalLocation($.$elm$.parentNode, !1),
314
+ patch($, m), e.insertBefore($.$elm$, c.$elm$), $ = t[--d], m = o[++r]; else {
315
+ if (p = -1, appData.BUILD.vdomKey) for (i = l; i <= d; ++i) if (t[i] && null !== t[i].$key$ && t[i].$key$ === m.$key$) {
316
+ p = i;
317
+ break;
318
+ }
319
+ appData.BUILD.vdomKey && p >= 0 ? (n = t[p], n.$tag$ !== m.$tag$ ? s = createElm(t && t[r], a, p, e) : (patch(n, m),
320
+ t[p] = void 0, s = n.$elm$), m = o[++r]) : (s = createElm(t && t[r], a, r, e), m = o[++r]),
321
+ s && (appData.BUILD.slotRelocation ? parentReferenceNode(c.$elm$).insertBefore(s, referenceNode(c.$elm$)) : c.$elm$.parentNode.insertBefore(s, c.$elm$));
322
+ }
323
+ l > d ? addVnodes(e, null == o[u + 1] ? null : o[u + 1].$elm$, a, o, r, u) : appData.BUILD.updatable && r > u && removeVnodes(t, l, d);
324
+ })(a, o, t, s) : null !== s ? (appData.BUILD.updatable && appData.BUILD.vdomText && null !== e.$text$ && (a.textContent = ""),
325
+ addVnodes(a, null, t, s, 0, s.length - 1)) : appData.BUILD.updatable && null !== o && removeVnodes(o, 0, o.length - 1),
326
+ appData.BUILD.svg && isSvgMode && "svg" === n && (isSvgMode = !1));
327
+ }, updateFallbackSlotVisibility = e => {
328
+ const t = e.childNodes;
329
+ let a, o, s, n, l, r;
330
+ for (o = 0, s = t.length; o < s; o++) if (a = t[o], 1 === a.nodeType) {
331
+ if (a["s-sr"]) for (l = a["s-sn"], a.hidden = !1, n = 0; n < s; n++) if (r = t[n].nodeType,
332
+ t[n]["s-hn"] !== a["s-hn"] || "" !== l) {
333
+ if (1 === r && l === t[n].getAttribute("slot")) {
334
+ a.hidden = !0;
335
+ break;
336
+ }
337
+ } else if (1 === r || 3 === r && "" !== t[n].textContent.trim()) {
338
+ a.hidden = !0;
339
+ break;
340
+ }
341
+ updateFallbackSlotVisibility(a);
342
+ }
343
+ }, relocateNodes = [], relocateSlotContent = e => {
344
+ let t, a, o, s, n, l, r = 0;
345
+ const p = e.childNodes, i = p.length;
346
+ for (;r < i; r++) {
347
+ if (t = p[r], t["s-sr"] && (a = t["s-cr"]) && a.parentNode) for (o = a.parentNode.childNodes,
348
+ s = t["s-sn"], l = o.length - 1; l >= 0; l--) a = o[l], a["s-cn"] || a["s-nr"] || a["s-hn"] === t["s-hn"] || (isNodeLocatedInSlot(a, s) ? (n = relocateNodes.find((e => e.$nodeToRelocate$ === a)),
349
+ checkSlotFallbackVisibility = !0, a["s-sn"] = a["s-sn"] || s, n ? n.$slotRefNode$ = t : relocateNodes.push({
350
+ $slotRefNode$: t,
351
+ $nodeToRelocate$: a
352
+ }), a["s-sr"] && relocateNodes.map((e => {
353
+ isNodeLocatedInSlot(e.$nodeToRelocate$, a["s-sn"]) && (n = relocateNodes.find((e => e.$nodeToRelocate$ === a)),
354
+ n && !e.$slotRefNode$ && (e.$slotRefNode$ = n.$slotRefNode$));
355
+ }))) : relocateNodes.some((e => e.$nodeToRelocate$ === a)) || relocateNodes.push({
356
+ $nodeToRelocate$: a
357
+ }));
358
+ 1 === t.nodeType && relocateSlotContent(t);
359
+ }
360
+ }, isNodeLocatedInSlot = (e, t) => 1 === e.nodeType ? null === e.getAttribute("slot") && "" === t || e.getAttribute("slot") === t : e["s-sn"] === t || "" === t, callNodeRefs = e => {
361
+ appData.BUILD.vdomRef && (e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(callNodeRefs));
362
+ }, renderVdom = (e, t) => {
363
+ const a = e.$hostElement$, o = e.$cmpMeta$, s = e.$vnode$ || newVNode(null, null), n = isHost(t) ? t : h(null, null, t);
364
+ if (hostTagName = a.tagName, appData.BUILD.isDev && Array.isArray(t) && t.some(isHost)) throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);
365
+ if (appData.BUILD.reflect && o.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {},
366
+ o.$attrsToReflect$.map((([e, t]) => n.$attrs$[t] = a[e]))), n.$tag$ = null, n.$flags$ |= 4,
367
+ e.$vnode$ = n, n.$elm$ = s.$elm$ = appData.BUILD.shadowDom && a.shadowRoot || a,
368
+ (appData.BUILD.scoped || appData.BUILD.shadowDom) && (scopeId = a["s-sc"]), appData.BUILD.slotRelocation && (contentRef = a["s-cr"],
369
+ useNativeShadowDom = exports.supportsShadow && 0 != (1 & o.$flags$), checkSlotFallbackVisibility = !1),
370
+ patch(s, n), appData.BUILD.slotRelocation) {
371
+ if (plt.$flags$ |= 1, checkSlotRelocate) {
372
+ let e, t, a, o, s, l;
373
+ relocateSlotContent(n.$elm$);
374
+ let r = 0;
375
+ for (;r < relocateNodes.length; r++) e = relocateNodes[r], t = e.$nodeToRelocate$,
376
+ t["s-ol"] || (a = appData.BUILD.isDebug || appData.BUILD.hydrateServerSide ? originalLocationDebugNode(t) : doc.createTextNode(""),
377
+ a["s-nr"] = t, t.parentNode.insertBefore(t["s-ol"] = a, t));
378
+ for (r = 0; r < relocateNodes.length; r++) if (e = relocateNodes[r], t = e.$nodeToRelocate$,
379
+ e.$slotRefNode$) {
380
+ for (o = e.$slotRefNode$.parentNode, s = e.$slotRefNode$.nextSibling, a = t["s-ol"]; a = a.previousSibling; ) if (l = a["s-nr"],
381
+ l && l["s-sn"] === t["s-sn"] && o === l.parentNode && (l = l.nextSibling, !l || !l["s-nr"])) {
382
+ s = l;
383
+ break;
384
+ }
385
+ (!s && o !== t.parentNode || t.nextSibling !== s) && t !== s && (!t["s-hn"] && t["s-ol"] && (t["s-hn"] = t["s-ol"].parentNode.nodeName),
386
+ o.insertBefore(t, s));
387
+ } else 1 === t.nodeType && (t.hidden = !0);
388
+ }
389
+ checkSlotFallbackVisibility && updateFallbackSlotVisibility(n.$elm$), plt.$flags$ &= -2,
390
+ relocateNodes.length = 0;
391
+ }
392
+ }, slotReferenceDebugNode = e => doc.createComment(`<slot${e.$name$ ? ' name="' + e.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`), originalLocationDebugNode = e => doc.createComment("org-location for " + (e.localName ? `<${e.localName}> (host=${e["s-hn"]})` : `[${e.textContent}]`)), getElement = e => appData.BUILD.lazyLoad ? getHostRef(e).$hostElement$ : e, emitEvent = (e, t, a) => {
393
+ const o = plt.ce(t, a);
394
+ return e.dispatchEvent(o), o;
395
+ }, attachToAncestor = (e, t) => {
396
+ appData.BUILD.asyncLoading && t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((t => e.$onRenderResolve$ = t)));
397
+ }, scheduleUpdate = (e, t) => {
398
+ if (appData.BUILD.taskQueue && appData.BUILD.updatable && (e.$flags$ |= 16), appData.BUILD.asyncLoading && 4 & e.$flags$) return void (e.$flags$ |= 512);
399
+ attachToAncestor(e, e.$ancestorComponent$);
400
+ const a = () => dispatchHooks(e, t);
401
+ return appData.BUILD.taskQueue ? writeTask(a) : a();
402
+ }, dispatchHooks = (e, t) => {
403
+ const a = e.$hostElement$, o = createTime("scheduleUpdate", e.$cmpMeta$.$tagName$), s = appData.BUILD.lazyLoad ? e.$lazyInstance$ : a;
404
+ let n;
405
+ return t ? (appData.BUILD.lazyLoad && appData.BUILD.hostListener && (e.$flags$ |= 256,
406
+ e.$queuedListeners$ && (e.$queuedListeners$.map((([e, t]) => safeCall(s, e, t))),
407
+ e.$queuedListeners$ = null)), emitLifecycleEvent(a, "componentWillLoad"), appData.BUILD.cmpWillLoad && (n = safeCall(s, "componentWillLoad"))) : (emitLifecycleEvent(a, "componentWillUpdate"),
408
+ appData.BUILD.cmpWillUpdate && (n = safeCall(s, "componentWillUpdate"))), emitLifecycleEvent(a, "componentWillRender"),
409
+ appData.BUILD.cmpWillRender && (n = then(n, (() => safeCall(s, "componentWillRender")))),
410
+ o(), then(n, (() => updateComponent(e, s, t)));
411
+ }, updateComponent = async (e, t, a) => {
412
+ const o = e.$hostElement$, s = createTime("update", e.$cmpMeta$.$tagName$), n = o["s-rc"];
413
+ appData.BUILD.style && a && attachStyles(e);
414
+ const l = createTime("render", e.$cmpMeta$.$tagName$);
415
+ if (appData.BUILD.isDev && (e.$flags$ |= 1024), appData.BUILD.hydrateServerSide ? await callRender(e, t, o) : callRender(e, t, o),
416
+ appData.BUILD.cssVarShim && plt.$cssShim$ && plt.$cssShim$.updateHost(o), appData.BUILD.isDev && (e.$renderCount$++,
417
+ e.$flags$ &= -1025), appData.BUILD.hydrateServerSide) try {
418
+ serverSideConnected(o), a && (1 & e.$cmpMeta$.$flags$ ? o["s-en"] = "" : 2 & e.$cmpMeta$.$flags$ && (o["s-en"] = "c"));
419
+ } catch (e) {
420
+ consoleError(e, o);
421
+ }
422
+ if (appData.BUILD.asyncLoading && n && (n.map((e => e())), o["s-rc"] = void 0),
423
+ l(), s(), appData.BUILD.asyncLoading) {
424
+ const t = o["s-p"], a = () => postUpdateComponent(e);
425
+ 0 === t.length ? a() : (Promise.all(t).then(a), e.$flags$ |= 4, t.length = 0);
426
+ } else postUpdateComponent(e);
427
+ };
428
+
429
+ let renderingRef = null;
430
+
431
+ const callRender = (e, t, a) => {
432
+ const o = !!appData.BUILD.allRenderFn, s = !!appData.BUILD.lazyLoad, n = !!appData.BUILD.taskQueue, l = !!appData.BUILD.updatable;
433
+ try {
434
+ if (renderingRef = t, t = (o || t.render) && t.render(), l && n && (e.$flags$ &= -17),
435
+ (l || s) && (e.$flags$ |= 2), appData.BUILD.hasRenderFn || appData.BUILD.reflect) if (appData.BUILD.vdomRender || appData.BUILD.reflect) {
436
+ if (appData.BUILD.hydrateServerSide) return Promise.resolve(t).then((t => renderVdom(e, t)));
437
+ renderVdom(e, t);
438
+ } else a.textContent = t;
439
+ } catch (t) {
440
+ consoleError(t, e.$hostElement$);
441
+ }
442
+ return renderingRef = null, null;
443
+ }, postUpdateComponent = e => {
444
+ const t = e.$cmpMeta$.$tagName$, a = e.$hostElement$, o = createTime("postUpdate", t), s = appData.BUILD.lazyLoad ? e.$lazyInstance$ : a, n = e.$ancestorComponent$;
445
+ appData.BUILD.cmpDidRender && (appData.BUILD.isDev && (e.$flags$ |= 1024), safeCall(s, "componentDidRender"),
446
+ appData.BUILD.isDev && (e.$flags$ &= -1025)), emitLifecycleEvent(a, "componentDidRender"),
447
+ 64 & e.$flags$ ? (appData.BUILD.cmpDidUpdate && (appData.BUILD.isDev && (e.$flags$ |= 1024),
448
+ safeCall(s, "componentDidUpdate"), appData.BUILD.isDev && (e.$flags$ &= -1025)),
449
+ emitLifecycleEvent(a, "componentDidUpdate"), o()) : (e.$flags$ |= 64, appData.BUILD.asyncLoading && appData.BUILD.cssAnnotations && addHydratedFlag(a),
450
+ appData.BUILD.cmpDidLoad && (appData.BUILD.isDev && (e.$flags$ |= 2048), safeCall(s, "componentDidLoad"),
451
+ appData.BUILD.isDev && (e.$flags$ &= -2049)), emitLifecycleEvent(a, "componentDidLoad"),
452
+ o(), appData.BUILD.asyncLoading && (e.$onReadyResolve$(a), n || appDidLoad(t))),
453
+ appData.BUILD.hotModuleReplacement && a["s-hmr-load"] && a["s-hmr-load"](), appData.BUILD.method && appData.BUILD.lazyLoad && e.$onInstanceResolve$(a),
454
+ appData.BUILD.asyncLoading && (e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0),
455
+ 512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))), e.$flags$ &= -517);
456
+ }, forceUpdate = e => {
457
+ if (appData.BUILD.updatable) {
458
+ const t = getHostRef(e), a = t.$hostElement$.isConnected;
459
+ return a && 2 == (18 & t.$flags$) && scheduleUpdate(t, !1), a;
460
+ }
461
+ return !1;
462
+ }, appDidLoad = e => {
463
+ appData.BUILD.cssAnnotations && addHydratedFlag(doc.documentElement), appData.BUILD.asyncQueue && (plt.$flags$ |= 2),
464
+ nextTick((() => emitEvent(win, "appload", {
465
+ detail: {
466
+ namespace: appData.NAMESPACE
467
+ }
468
+ }))), appData.BUILD.profile && performance.measure && performance.measure(`[Rindo] ${appData.NAMESPACE} initial load (by ${e})`, "st:app:start");
469
+ }, safeCall = (e, t, a) => {
470
+ if (e && e[t]) try {
471
+ return e[t](a);
472
+ } catch (e) {
473
+ consoleError(e);
474
+ }
475
+ }, then = (e, t) => e && e.then ? e.then(t) : t(), emitLifecycleEvent = (e, t) => {
476
+ appData.BUILD.lifecycleDOMEvents && emitEvent(e, "rindo_" + t, {
477
+ bubbles: !0,
478
+ composed: !0,
479
+ detail: {
480
+ namespace: appData.NAMESPACE
481
+ }
482
+ });
483
+ }, addHydratedFlag = e => appData.BUILD.hydratedClass ? e.classList.add("hydrated") : appData.BUILD.hydratedAttribute ? e.setAttribute("hydrated", "") : void 0, serverSideConnected = e => {
484
+ const t = e.children;
485
+ if (null != t) for (let e = 0, a = t.length; e < a; e++) {
486
+ const a = t[e];
487
+ "function" == typeof a.connectedCallback && a.connectedCallback(), serverSideConnected(a);
488
+ }
489
+ }, clientHydrate = (e, t, a, o, s, n, l) => {
490
+ let r, p, i, d;
491
+ if (1 === n.nodeType) {
492
+ for (r = n.getAttribute("c-id"), r && (p = r.split("."), p[0] !== l && "0" !== p[0] || (i = {
493
+ $flags$: 0,
494
+ $hostId$: p[0],
495
+ $nodeId$: p[1],
496
+ $depth$: p[2],
497
+ $index$: p[3],
498
+ $tag$: n.tagName.toLowerCase(),
499
+ $elm$: n,
500
+ $attrs$: null,
501
+ $children$: null,
502
+ $key$: null,
503
+ $name$: null,
504
+ $text$: null
505
+ }, t.push(i), n.removeAttribute("c-id"), e.$children$ || (e.$children$ = []), e.$children$[i.$index$] = i,
506
+ e = i, o && "0" === i.$depth$ && (o[i.$index$] = i.$elm$))), d = n.childNodes.length - 1; d >= 0; d--) clientHydrate(e, t, a, o, s, n.childNodes[d], l);
507
+ if (n.shadowRoot) for (d = n.shadowRoot.childNodes.length - 1; d >= 0; d--) clientHydrate(e, t, a, o, s, n.shadowRoot.childNodes[d], l);
508
+ } else if (8 === n.nodeType) p = n.nodeValue.split("."), p[1] !== l && "0" !== p[1] || (r = p[0],
509
+ i = {
510
+ $flags$: 0,
511
+ $hostId$: p[1],
512
+ $nodeId$: p[2],
513
+ $depth$: p[3],
514
+ $index$: p[4],
515
+ $elm$: n,
516
+ $attrs$: null,
517
+ $children$: null,
518
+ $key$: null,
519
+ $name$: null,
520
+ $tag$: null,
521
+ $text$: null
522
+ }, "t" === r ? (i.$elm$ = n.nextSibling, i.$elm$ && 3 === i.$elm$.nodeType && (i.$text$ = i.$elm$.textContent,
523
+ t.push(i), n.remove(), e.$children$ || (e.$children$ = []), e.$children$[i.$index$] = i,
524
+ o && "0" === i.$depth$ && (o[i.$index$] = i.$elm$))) : i.$hostId$ === l && ("s" === r ? (i.$tag$ = "slot",
525
+ p[5] ? n["s-sn"] = i.$name$ = p[5] : n["s-sn"] = "", n["s-sr"] = !0, appData.BUILD.shadowDom && o && (i.$elm$ = doc.createElement(i.$tag$),
526
+ i.$name$ && i.$elm$.setAttribute("name", i.$name$), n.parentNode.insertBefore(i.$elm$, n),
527
+ n.remove(), "0" === i.$depth$ && (o[i.$index$] = i.$elm$)), a.push(i), e.$children$ || (e.$children$ = []),
528
+ e.$children$[i.$index$] = i) : "r" === r && (appData.BUILD.shadowDom && o ? n.remove() : appData.BUILD.slotRelocation && (s["s-cr"] = n,
529
+ n["s-cn"] = !0)))); else if (e && "style" === e.$tag$) {
530
+ const t = newVNode(null, n.textContent);
531
+ t.$elm$ = n, t.$index$ = "0", e.$children$ = [ t ];
532
+ }
533
+ }, initializeDocumentHydrate = (e, t) => {
534
+ if (1 === e.nodeType) {
535
+ let a = 0;
536
+ for (;a < e.childNodes.length; a++) initializeDocumentHydrate(e.childNodes[a], t);
537
+ if (e.shadowRoot) for (a = 0; a < e.shadowRoot.childNodes.length; a++) initializeDocumentHydrate(e.shadowRoot.childNodes[a], t);
538
+ } else if (8 === e.nodeType) {
539
+ const a = e.nodeValue.split(".");
540
+ "o" === a[0] && (t.set(a[1] + "." + a[2], e), e.nodeValue = "", e["s-en"] = a[3]);
541
+ }
542
+ }, parsePropertyValue = (e, t) => null == e || isComplexType(e) ? e : appData.BUILD.propBoolean && 4 & t ? "false" !== e && ("" === e || !!e) : appData.BUILD.propNumber && 2 & t ? parseFloat(e) : appData.BUILD.propString && 1 & t ? String(e) : e, getValue = (e, t) => getHostRef(e).$instanceValues$.get(t), setValue = (e, t, a, o) => {
543
+ const s = getHostRef(e), n = appData.BUILD.lazyLoad ? s.$hostElement$ : e, l = s.$instanceValues$.get(t), r = s.$flags$, p = appData.BUILD.lazyLoad ? s.$lazyInstance$ : n;
544
+ a = parsePropertyValue(a, o.$members$[t][0]);
545
+ const i = Number.isNaN(l) && Number.isNaN(a), d = a !== l && !i;
546
+ if ((!appData.BUILD.lazyLoad || !(8 & r) || void 0 === l) && d && (s.$instanceValues$.set(t, a),
547
+ appData.BUILD.isDev && (1024 & s.$flags$ ? consoleDevWarn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`, "\nElement", n, "\nNew value", a, "\nOld value", l) : 2048 & s.$flags$ && consoleDevWarn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`, "\nElement", n, "\nNew value", a, "\nOld value", l)),
548
+ !appData.BUILD.lazyLoad || p)) {
549
+ if (appData.BUILD.watchCallback && o.$watchers$ && 128 & r) {
550
+ const e = o.$watchers$[t];
551
+ e && e.map((e => {
552
+ try {
553
+ p[e](a, l, t);
554
+ } catch (e) {
555
+ consoleError(e, n);
556
+ }
557
+ }));
558
+ }
559
+ if (appData.BUILD.updatable && 2 == (18 & r)) {
560
+ if (appData.BUILD.cmpShouldUpdate && p.componentShouldUpdate && !1 === p.componentShouldUpdate(a, l, t)) return;
561
+ scheduleUpdate(s, !1);
562
+ }
563
+ }
564
+ }, proxyComponent = (e, t, a) => {
565
+ if (appData.BUILD.member && t.$members$) {
566
+ appData.BUILD.watchCallback && e.watchers && (t.$watchers$ = e.watchers);
567
+ const o = Object.entries(t.$members$), s = e.prototype;
568
+ if (o.map((([e, [o]]) => {
569
+ (appData.BUILD.prop || appData.BUILD.state) && (31 & o || (!appData.BUILD.lazyLoad || 2 & a) && 32 & o) ? Object.defineProperty(s, e, {
570
+ get() {
571
+ return getValue(this, e);
572
+ },
573
+ set(s) {
574
+ if (appData.BUILD.isDev) {
575
+ const s = getHostRef(this);
576
+ 0 == (1 & a) && 0 == (8 & s.$flags$) && 0 != (31 & o) && 0 == (1024 & o) && consoleDevWarn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://rindojs.web.app/docs/properties#prop-mutability`);
577
+ }
578
+ setValue(this, e, s, t);
579
+ },
580
+ configurable: !0,
581
+ enumerable: !0
582
+ }) : appData.BUILD.lazyLoad && appData.BUILD.method && 1 & a && 64 & o && Object.defineProperty(s, e, {
583
+ value(...t) {
584
+ const a = getHostRef(this);
585
+ return a.$onInstancePromise$.then((() => a.$lazyInstance$[e](...t)));
586
+ }
587
+ });
588
+ })), appData.BUILD.observeAttribute && (!appData.BUILD.lazyLoad || 1 & a)) {
589
+ const a = new Map;
590
+ s.attributeChangedCallback = function(e, t, o) {
591
+ plt.jmp((() => {
592
+ const t = a.get(e);
593
+ if (this.hasOwnProperty(t)) o = this[t], delete this[t]; else if (s.hasOwnProperty(t) && "number" == typeof this[t] && this[t] == o) return;
594
+ this[t] = (null !== o || "boolean" != typeof this[t]) && o;
595
+ }));
596
+ }, e.observedAttributes = o.filter((([e, t]) => 15 & t[0])).map((([e, o]) => {
597
+ const s = o[1] || e;
598
+ return a.set(s, e), appData.BUILD.reflect && 512 & o[0] && t.$attrsToReflect$.push([ e, s ]),
599
+ s;
600
+ }));
601
+ }
602
+ }
603
+ return e;
604
+ }, initializeComponent = async (e, t, a, o, s) => {
605
+ if ((appData.BUILD.lazyLoad || appData.BUILD.hydrateServerSide || appData.BUILD.style) && 0 == (32 & t.$flags$)) {
606
+ if (appData.BUILD.lazyLoad || appData.BUILD.hydrateClientSide) {
607
+ if (t.$flags$ |= 32, (s = loadModule(a)).then) {
608
+ const e = (n = `st:load:${a.$tagName$}:${t.$modeName$}`, l = `[Rindo] Load module for <${a.$tagName$}>`,
609
+ appData.BUILD.profile && performance.mark ? (0 === performance.getEntriesByName(n).length && performance.mark(n),
610
+ () => {
611
+ 0 === performance.getEntriesByName(l).length && performance.measure(l, n);
612
+ }) : () => {});
613
+ s = await s, e();
614
+ }
615
+ if ((appData.BUILD.isDev || appData.BUILD.isDebug) && !s) throw new Error(`Constructor for "${a.$tagName$}#${t.$modeName$}" was not found`);
616
+ appData.BUILD.member && !s.isProxied && (appData.BUILD.watchCallback && (a.$watchers$ = s.watchers),
617
+ proxyComponent(s, a, 2), s.isProxied = !0);
618
+ const e = createTime("createInstance", a.$tagName$);
619
+ appData.BUILD.member && (t.$flags$ |= 8);
620
+ try {
621
+ new s(t);
622
+ } catch (e) {
623
+ consoleError(e);
624
+ }
625
+ appData.BUILD.member && (t.$flags$ &= -9), appData.BUILD.watchCallback && (t.$flags$ |= 128),
626
+ e(), fireConnectedCallback(t.$lazyInstance$);
627
+ } else s = e.constructor, t.$flags$ |= 32, customElements.whenDefined(a.$tagName$).then((() => t.$flags$ |= 128));
628
+ if (appData.BUILD.style && s.style) {
629
+ let o = s.style;
630
+ appData.BUILD.mode && "string" != typeof o && (o = o[t.$modeName$ = computeMode(e)],
631
+ appData.BUILD.hydrateServerSide && t.$modeName$ && e.setAttribute("s-mode", t.$modeName$));
632
+ const n = getScopeId(a, t.$modeName$);
633
+ if (!styles.has(n)) {
634
+ const e = createTime("registerStyles", a.$tagName$);
635
+ !appData.BUILD.hydrateServerSide && appData.BUILD.shadowDom && appData.BUILD.shadowDomShim && 8 & a.$flags$ && (o = await Promise.resolve().then((function() {
636
+ return require("./shadow-css.js");
637
+ })).then((e => e.scopeCss(o, n, !1)))), registerStyle(n, o, a.$flags$), e();
638
+ }
639
+ }
640
+ }
641
+ var n, l;
642
+ const r = t.$ancestorComponent$, p = () => scheduleUpdate(t, !0);
643
+ appData.BUILD.asyncLoading && r && r["s-rc"] ? r["s-rc"].push(p) : p();
644
+ }, fireConnectedCallback = e => {
645
+ appData.BUILD.lazyLoad && appData.BUILD.connectedCallback && safeCall(e, "connectedCallback");
646
+ }, connectedCallback = e => {
647
+ if (0 == (1 & plt.$flags$)) {
648
+ const t = getHostRef(e), a = t.$cmpMeta$, o = createTime("connectedCallback", a.$tagName$);
649
+ if (appData.BUILD.hostListenerTargetParent && addHostEventListeners(e, t, a.$listeners$, !0),
650
+ 1 & t.$flags$) addHostEventListeners(e, t, a.$listeners$, !1), fireConnectedCallback(t.$lazyInstance$); else {
651
+ let o;
652
+ if (t.$flags$ |= 1, appData.BUILD.hydrateClientSide && (o = e.getAttribute("s-id"),
653
+ o)) {
654
+ if (appData.BUILD.shadowDom && exports.supportsShadow && 1 & a.$flags$) {
655
+ const t = appData.BUILD.mode ? addStyle(e.shadowRoot, a, e.getAttribute("s-mode")) : addStyle(e.shadowRoot, a);
656
+ e.classList.remove(t + "-h", t + "-s");
657
+ }
658
+ ((e, t, a, o) => {
659
+ const s = createTime("hydrateClient", t), n = e.shadowRoot, l = [], r = appData.BUILD.shadowDom && n ? [] : null, p = o.$vnode$ = newVNode(t, null);
660
+ plt.$orgLocNodes$ || initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = new Map),
661
+ e["s-id"] = a, e.removeAttribute("s-id"), clientHydrate(p, l, [], r, e, e, a), l.map((e => {
662
+ const a = e.$hostId$ + "." + e.$nodeId$, o = plt.$orgLocNodes$.get(a), s = e.$elm$;
663
+ o && exports.supportsShadow && "" === o["s-en"] && o.parentNode.insertBefore(s, o.nextSibling),
664
+ n || (s["s-hn"] = t, o && (s["s-ol"] = o, s["s-ol"]["s-nr"] = s)), plt.$orgLocNodes$.delete(a);
665
+ })), appData.BUILD.shadowDom && n && r.map((e => {
666
+ e && n.appendChild(e);
667
+ })), s();
668
+ })(e, a.$tagName$, o, t);
669
+ }
670
+ if (appData.BUILD.slotRelocation && !o && (appData.BUILD.hydrateServerSide || (appData.BUILD.slot || appData.BUILD.shadowDom) && 12 & a.$flags$) && setContentReference(e),
671
+ appData.BUILD.asyncLoading) {
672
+ let a = e;
673
+ for (;a = a.parentNode || a.host; ) if (appData.BUILD.hydrateClientSide && 1 === a.nodeType && a.hasAttribute("s-id") && a["s-p"] || a["s-p"]) {
674
+ attachToAncestor(t, t.$ancestorComponent$ = a);
675
+ break;
676
+ }
677
+ }
678
+ appData.BUILD.prop && !appData.BUILD.hydrateServerSide && a.$members$ && Object.entries(a.$members$).map((([t, [a]]) => {
679
+ if (31 & a && e.hasOwnProperty(t)) {
680
+ const a = e[t];
681
+ delete e[t], e[t] = a;
682
+ }
683
+ })), appData.BUILD.initializeNextTick ? nextTick((() => initializeComponent(e, t, a))) : initializeComponent(e, t, a);
684
+ }
685
+ o();
686
+ }
687
+ }, setContentReference = e => {
688
+ const t = e["s-cr"] = doc.createComment(appData.BUILD.isDebug ? `content-ref (host=${e.localName})` : "");
689
+ t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
690
+ }, disconnectedCallback = e => {
691
+ if (0 == (1 & plt.$flags$)) {
692
+ const t = getHostRef(e), a = appData.BUILD.lazyLoad ? t.$lazyInstance$ : e;
693
+ appData.BUILD.hostListener && t.$rmListeners$ && (t.$rmListeners$.map((e => e())),
694
+ t.$rmListeners$ = void 0), appData.BUILD.cssVarShim && plt.$cssShim$ && plt.$cssShim$.removeHost(e),
695
+ appData.BUILD.lazyLoad && appData.BUILD.disconnectedCallback && safeCall(a, "disconnectedCallback"),
696
+ appData.BUILD.cmpDidUnload && safeCall(a, "componentDidUnload");
697
+ }
698
+ }, proxyCustomElement = (e, t) => {
699
+ const a = {
700
+ $flags$: t[0],
701
+ $tagName$: t[1]
702
+ };
703
+ appData.BUILD.member && (a.$members$ = t[2]), appData.BUILD.hostListener && (a.$listeners$ = t[3]),
704
+ appData.BUILD.watchCallback && (a.$watchers$ = e.$watchers$), appData.BUILD.reflect && (a.$attrsToReflect$ = []),
705
+ appData.BUILD.shadowDom && !exports.supportsShadow && 1 & a.$flags$ && (a.$flags$ |= 8);
706
+ const o = e.prototype.connectedCallback, s = e.prototype.disconnectedCallback;
707
+ return Object.assign(e.prototype, {
708
+ __registerHost() {
709
+ registerHost(this, a);
710
+ },
711
+ connectedCallback() {
712
+ connectedCallback(this), appData.BUILD.connectedCallback && o && o.call(this);
713
+ },
714
+ disconnectedCallback() {
715
+ disconnectedCallback(this), appData.BUILD.disconnectedCallback && s && s.call(this);
716
+ },
717
+ __attachShadow() {
718
+ exports.supportsShadow ? appData.BUILD.shadowDelegatesFocus ? this.attachShadow({
719
+ mode: "open",
720
+ delegatesFocus: !!(16 & a.$flags$)
721
+ }) : this.attachShadow({
722
+ mode: "open"
723
+ }) : this.shadowRoot = this;
724
+ }
725
+ }), e.is = a.$tagName$, proxyComponent(e, a, 3);
726
+ }, patchCloneNode = e => {
727
+ const t = e.cloneNode;
728
+ e.cloneNode = function(e) {
729
+ const a = this, o = !!appData.BUILD.shadowDom && a.shadowRoot && exports.supportsShadow, s = t.call(a, !!o && e);
730
+ if (appData.BUILD.slot && !o && e) {
731
+ let e, t, o = 0;
732
+ const n = [ "s-id", "s-cr", "s-lr", "s-rc", "s-sc", "s-p", "s-cn", "s-sr", "s-sn", "s-hn", "s-ol", "s-nr", "s-si" ];
733
+ for (;o < a.childNodes.length; o++) e = a.childNodes[o]["s-nr"], t = n.every((e => !a.childNodes[o][e])),
734
+ e && (appData.BUILD.appendChildSlotFix && s.__appendChild ? s.__appendChild(e.cloneNode(!0)) : s.appendChild(e.cloneNode(!0))),
735
+ t && s.appendChild(a.childNodes[o].cloneNode(!0));
736
+ }
737
+ return s;
738
+ };
739
+ }, patchSlotAppendChild = e => {
740
+ e.__appendChild = e.appendChild, e.appendChild = function(e) {
741
+ const t = e["s-sn"] = getSlotName(e), a = getHostSlotNode(this.childNodes, t);
742
+ if (a) {
743
+ const o = getHostSlotChildNodes(a, t), s = o[o.length - 1];
744
+ return s.parentNode.insertBefore(e, s.nextSibling);
745
+ }
746
+ return this.__appendChild(e);
747
+ };
748
+ }, patchTextContent = (e, t) => {
749
+ if (appData.BUILD.scoped && 2 & t.$flags$) {
750
+ const t = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
751
+ Object.defineProperty(e, "__textContent", t), Object.defineProperty(e, "textContent", {
752
+ get() {
753
+ var e;
754
+ const t = getHostSlotNode(this.childNodes, "");
755
+ return 3 === (null === (e = null == t ? void 0 : t.nextSibling) || void 0 === e ? void 0 : e.nodeType) ? t.nextSibling.textContent : t ? t.textContent : this.__textContent;
756
+ },
757
+ set(e) {
758
+ var t;
759
+ const a = getHostSlotNode(this.childNodes, "");
760
+ if (3 === (null === (t = null == a ? void 0 : a.nextSibling) || void 0 === t ? void 0 : t.nodeType)) a.nextSibling.textContent = e; else if (a) a.textContent = e; else {
761
+ this.__textContent = e;
762
+ const t = this["s-cr"];
763
+ t && this.insertBefore(t, this.firstChild);
764
+ }
765
+ }
766
+ });
767
+ }
768
+ }, patchChildSlotNodes = (e, t) => {
769
+ class a extends Array {
770
+ item(e) {
771
+ return this[e];
772
+ }
773
+ }
774
+ if (8 & t.$flags$) {
775
+ const t = e.__lookupGetter__("childNodes");
776
+ Object.defineProperty(e, "children", {
777
+ get() {
778
+ return this.childNodes.map((e => 1 === e.nodeType));
779
+ }
780
+ }), Object.defineProperty(e, "childElementCount", {
781
+ get: () => e.children.length
782
+ }), Object.defineProperty(e, "childNodes", {
783
+ get() {
784
+ const e = t.call(this);
785
+ if (0 == (1 & plt.$flags$) && 2 & getHostRef(this).$flags$) {
786
+ const t = new a;
787
+ for (let a = 0; a < e.length; a++) {
788
+ const o = e[a]["s-nr"];
789
+ o && t.push(o);
790
+ }
791
+ return t;
792
+ }
793
+ return a.from(e);
794
+ }
795
+ });
796
+ }
797
+ }, getSlotName = e => e["s-sn"] || 1 === e.nodeType && e.getAttribute("slot") || "", getHostSlotNode = (e, t) => {
798
+ let a, o = 0;
799
+ for (;o < e.length; o++) {
800
+ if (a = e[o], a["s-sr"] && a["s-sn"] === t) return a;
801
+ if (a = getHostSlotNode(a.childNodes, t), a) return a;
802
+ }
803
+ return null;
804
+ }, getHostSlotChildNodes = (e, t) => {
805
+ const a = [ e ];
806
+ for (;(e = e.nextSibling) && e["s-sn"] === t; ) a.push(e);
807
+ return a;
808
+ }, getAssetPath = e => {
809
+ const t = new URL(e, plt.$resourcesUrl$);
810
+ return t.origin !== win.location.origin ? t.href : t.pathname;
811
+ }, parseVNodeAnnotations = (e, t, a, o) => {
812
+ null != t && (null != t["s-nr"] && o.push(t), 1 === t.nodeType && t.childNodes.forEach((t => {
813
+ const s = getHostRef(t);
814
+ if (null != s && !a.staticComponents.has(t.nodeName.toLowerCase())) {
815
+ const o = {
816
+ nodeIds: 0
817
+ };
818
+ insertVNodeAnnotations(e, t, s.$vnode$, a, o);
819
+ }
820
+ parseVNodeAnnotations(e, t, a, o);
821
+ })));
822
+ }, insertVNodeAnnotations = (e, t, a, o, s) => {
823
+ if (null != a) {
824
+ const n = ++o.hostIds;
825
+ if (t.setAttribute("s-id", n), null != t["s-cr"] && (t["s-cr"].nodeValue = `r.${n}`),
826
+ null != a.$children$) {
827
+ const t = 0;
828
+ a.$children$.forEach(((a, o) => {
829
+ insertChildVNodeAnnotations(e, a, s, n, t, o);
830
+ }));
831
+ }
832
+ if (t && a && a.$elm$ && !t.hasAttribute("c-id")) {
833
+ const e = t.parentElement;
834
+ if (e && e.childNodes) {
835
+ const o = Array.from(e.childNodes), s = o.find((e => 8 === e.nodeType && e["s-sr"]));
836
+ if (s) {
837
+ const e = o.indexOf(t) - 1;
838
+ a.$elm$.setAttribute("c-id", `${s["s-host-id"]}.${s["s-node-id"]}.0.${e}`);
839
+ }
840
+ }
841
+ }
842
+ }
843
+ }, insertChildVNodeAnnotations = (e, t, a, o, s, n) => {
844
+ const l = t.$elm$;
845
+ if (null == l) return;
846
+ const r = a.nodeIds++, p = `${o}.${r}.${s}.${n}`;
847
+ if (l["s-host-id"] = o, l["s-node-id"] = r, 1 === l.nodeType) l.setAttribute("c-id", p); else if (3 === l.nodeType) {
848
+ const t = l.parentNode, a = t.nodeName;
849
+ if ("STYLE" !== a && "SCRIPT" !== a) {
850
+ const a = `t.${p}`, o = e.createComment(a);
851
+ t.insertBefore(o, l);
852
+ }
853
+ } else if (8 === l.nodeType && l["s-sr"]) {
854
+ const e = `s.${p}.${l["s-sn"] || ""}`;
855
+ l.nodeValue = e;
856
+ }
857
+ if (null != t.$children$) {
858
+ const n = s + 1;
859
+ t.$children$.forEach(((t, s) => {
860
+ insertChildVNodeAnnotations(e, t, a, o, n, s);
861
+ }));
862
+ }
863
+ }, getHostRef = e => hostRefs.get(e), registerHost = (e, t) => {
864
+ const a = {
865
+ $flags$: 0,
866
+ $hostElement$: e,
867
+ $cmpMeta$: t,
868
+ $instanceValues$: new Map,
869
+ $renderCount$: 0
870
+ };
871
+ a.$onInstancePromise$ = new Promise((e => a.$onInstanceResolve$ = e)), a.$onReadyPromise$ = new Promise((e => a.$onReadyResolve$ = e)),
872
+ e["s-p"] = [], e["s-rc"] = [], addHostEventListeners(e, a, t.$listeners$, !1), hostRefs.set(e, a);
873
+ };
874
+
875
+ Object.defineProperty(exports, "Env", {
876
+ enumerable: !0,
877
+ get: function() {
878
+ return appData.Env;
879
+ }
880
+ }), exports.Build = {
881
+ isDev: !0,
882
+ isBrowser: !1,
883
+ isServer: !0,
884
+ isTesting: !0
885
+ }, exports.Context = Context, exports.Fragment = (e, t) => t, exports.Host = Host,
886
+ exports.addHostEventListeners = addHostEventListeners, exports.bootstrapLazy = (e, t = {}) => {
887
+ appData.BUILD.profile && performance.mark && performance.mark("st:app:start"), (() => {
888
+ if (appData.BUILD.devTools) {
889
+ const e = win.rindo = win.rindo || {}, t = e.inspect;
890
+ e.inspect = e => {
891
+ let a = (e => {
892
+ const t = getHostRef(e);
893
+ if (!t) return;
894
+ const a = t.$flags$, o = t.$hostElement$;
895
+ return {
896
+ renderCount: t.$renderCount$,
897
+ flags: {
898
+ hasRendered: !!(2 & a),
899
+ hasConnected: !!(1 & a),
900
+ isWaitingForChildren: !!(4 & a),
901
+ isConstructingInstance: !!(8 & a),
902
+ isQueuedForUpdate: !!(16 & a),
903
+ hasInitializedComponent: !!(32 & a),
904
+ hasLoadedComponent: !!(64 & a),
905
+ isWatchReady: !!(128 & a),
906
+ isListenReady: !!(256 & a),
907
+ needsRerender: !!(512 & a)
908
+ },
909
+ instanceValues: t.$instanceValues$,
910
+ ancestorComponent: t.$ancestorComponent$,
911
+ hostElement: o,
912
+ lazyInstance: t.$lazyInstance$,
913
+ vnode: t.$vnode$,
914
+ modeName: t.$modeName$,
915
+ onReadyPromise: t.$onReadyPromise$,
916
+ onReadyResolve: t.$onReadyResolve$,
917
+ onInstancePromise: t.$onInstancePromise$,
918
+ onInstanceResolve: t.$onInstanceResolve$,
919
+ onRenderResolve: t.$onRenderResolve$,
920
+ queuedListeners: t.$queuedListeners$,
921
+ rmListeners: t.$rmListeners$,
922
+ "s-id": o["s-id"],
923
+ "s-cr": o["s-cr"],
924
+ "s-lr": o["s-lr"],
925
+ "s-p": o["s-p"],
926
+ "s-rc": o["s-rc"],
927
+ "s-sc": o["s-sc"]
928
+ };
929
+ })(e);
930
+ return a || "function" != typeof t || (a = t(e)), a;
931
+ };
932
+ }
933
+ })();
934
+ const a = createTime("bootstrapLazy"), o = [], s = t.exclude || [], n = win.customElements, l = doc.head, r = l.querySelector("meta[charset]"), p = doc.createElement("style"), i = [], d = doc.querySelectorAll("[sty-id]");
935
+ let c, $ = !0, u = 0;
936
+ if (Object.assign(plt, t), plt.$resourcesUrl$ = new URL(t.resourcesUrl || "./", doc.baseURI).href,
937
+ appData.BUILD.asyncQueue && t.syncQueue && (plt.$flags$ |= 4), appData.BUILD.hydrateClientSide && (plt.$flags$ |= 2),
938
+ appData.BUILD.hydrateClientSide && appData.BUILD.shadowDom) for (;u < d.length; u++) registerStyle(d[u].getAttribute("sty-id"), d[u].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{"));
939
+ e.map((e => {
940
+ e[1].map((a => {
941
+ const l = {
942
+ $flags$: a[0],
943
+ $tagName$: a[1],
944
+ $members$: a[2],
945
+ $listeners$: a[3]
946
+ };
947
+ appData.BUILD.member && (l.$members$ = a[2]), appData.BUILD.hostListener && (l.$listeners$ = a[3]),
948
+ appData.BUILD.reflect && (l.$attrsToReflect$ = []), appData.BUILD.watchCallback && (l.$watchers$ = {}),
949
+ appData.BUILD.shadowDom && !exports.supportsShadow && 1 & l.$flags$ && (l.$flags$ |= 8);
950
+ const r = appData.BUILD.transformTagName && t.transformTagName ? t.transformTagName(l.$tagName$) : l.$tagName$, p = class extends HTMLElement {
951
+ constructor(e) {
952
+ super(e), registerHost(e = this, l), appData.BUILD.shadowDom && 1 & l.$flags$ && (exports.supportsShadow ? appData.BUILD.shadowDelegatesFocus ? e.attachShadow({
953
+ mode: "open",
954
+ delegatesFocus: !!(16 & l.$flags$)
955
+ }) : e.attachShadow({
956
+ mode: "open"
957
+ }) : appData.BUILD.hydrateServerSide || "shadowRoot" in e || (e.shadowRoot = e)),
958
+ appData.BUILD.slotChildNodesFix && patchChildSlotNodes(e, l);
959
+ }
960
+ connectedCallback() {
961
+ c && (clearTimeout(c), c = null), $ ? i.push(this) : plt.jmp((() => connectedCallback(this)));
962
+ }
963
+ disconnectedCallback() {
964
+ plt.jmp((() => disconnectedCallback(this)));
965
+ }
966
+ componentOnReady() {
967
+ return getHostRef(this).$onReadyPromise$;
968
+ }
969
+ };
970
+ appData.BUILD.cloneNodeFix && patchCloneNode(p.prototype), appData.BUILD.appendChildSlotFix && patchSlotAppendChild(p.prototype),
971
+ appData.BUILD.hotModuleReplacement && (p.prototype["s-hmr"] = function(e) {
972
+ ((e, t, a) => {
973
+ const o = getHostRef(e);
974
+ o.$flags$ = 1, e["s-hmr-load"] = () => {
975
+ delete e["s-hmr-load"];
976
+ }, initializeComponent(e, o, t);
977
+ })(this, l);
978
+ }), appData.BUILD.scopedSlotTextContentFix && patchTextContent(p.prototype, l),
979
+ l.$lazyBundleId$ = e[0], s.includes(r) || n.get(r) || (o.push(r), n.define(r, proxyComponent(p, l, 1)));
980
+ }));
981
+ })), appData.BUILD.invisiblePrehydration && (appData.BUILD.hydratedClass || appData.BUILD.hydratedAttribute) && (p.innerHTML = o + "{visibility:hidden}.hydrated{visibility:inherit}",
982
+ p.setAttribute("data-styles", ""), l.insertBefore(p, r ? r.nextSibling : l.firstChild)),
983
+ $ = !1, i.length ? i.map((e => e.connectedCallback())) : appData.BUILD.profile ? plt.jmp((() => c = setTimeout(appDidLoad, 30, "timeout"))) : plt.jmp((() => c = setTimeout(appDidLoad, 30))),
984
+ a();
985
+ }, exports.connectedCallback = connectedCallback, exports.consoleDevError = consoleDevError,
986
+ exports.consoleDevInfo = (...e) => {}, exports.consoleDevWarn = consoleDevWarn,
987
+ exports.consoleError = consoleError, exports.createEvent = (e, t, a) => {
988
+ const o = getElement(e);
989
+ return {
990
+ emit: e => (appData.BUILD.isDev && !o.isConnected && consoleDevWarn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),
991
+ emitEvent(o, t, {
992
+ bubbles: !!(4 & a),
993
+ composed: !!(2 & a),
994
+ cancelable: !!(1 & a),
995
+ detail: e
996
+ }))
997
+ };
998
+ }, exports.defineCustomElement = (e, t) => {
999
+ customElements.define(t[1], proxyCustomElement(e, t));
1000
+ }, exports.disconnectedCallback = disconnectedCallback, exports.doc = doc, exports.flushAll = flushAll,
1001
+ exports.flushLoadModule = flushLoadModule, exports.flushQueue = flushQueue, exports.forceModeUpdate = e => {
1002
+ if (appData.BUILD.style && appData.BUILD.mode && !appData.BUILD.lazyLoad) {
1003
+ const t = computeMode(e), a = getHostRef(e);
1004
+ if (a.$modeName$ !== t) {
1005
+ const o = a.$cmpMeta$, s = e["s-sc"], n = getScopeId(o, t), l = e.constructor.style[t];
1006
+ o.$flags$, l && (styles.has(n) || registerStyle(n, l), a.$modeName$ = t, e.classList.remove(s + "-h", s + "-s"),
1007
+ attachStyles(a), forceUpdate(e));
1008
+ }
1009
+ }
1010
+ }, exports.forceUpdate = forceUpdate, exports.getAssetPath = getAssetPath, exports.getConnect = (e, t) => {
1011
+ const a = () => {
1012
+ let e = doc.querySelector(t);
1013
+ return e || (e = doc.createElement(t), doc.body.appendChild(e)), "function" == typeof e.componentOnReady ? e.componentOnReady() : Promise.resolve(e);
1014
+ };
1015
+ return {
1016
+ create: (...e) => a().then((t => t.create(...e))),
1017
+ componentOnReady: a
1018
+ };
1019
+ }, exports.getContext = (e, t) => t in Context ? Context[t] : "window" === t ? win : "document" === t ? doc : "isServer" === t || "isPrerender" === t ? !!appData.BUILD.hydrateServerSide : "isClient" === t ? !appData.BUILD.hydrateServerSide : "resourcesUrl" === t || "publicPath" === t ? getAssetPath(".") : "queue" === t ? {
1020
+ write: writeTask,
1021
+ read: readTask,
1022
+ tick: {
1023
+ then: e => nextTick(e)
1024
+ }
1025
+ } : void 0, exports.getElement = getElement, exports.getHostRef = getHostRef, exports.getMode = e => getHostRef(e).$modeName$,
1026
+ exports.getRenderingRef = () => renderingRef, exports.getValue = getValue, exports.h = h,
1027
+ exports.insertVdomAnnotations = (e, t) => {
1028
+ if (null != e) {
1029
+ const a = {
1030
+ hostIds: 0,
1031
+ rootLevelIds: 0,
1032
+ staticComponents: new Set(t)
1033
+ }, o = [];
1034
+ parseVNodeAnnotations(e, e.body, a, o), o.forEach((t => {
1035
+ if (null != t) {
1036
+ const o = t["s-nr"];
1037
+ let s = o["s-host-id"], n = o["s-node-id"], l = `${s}.${n}`;
1038
+ if (null == s) if (s = 0, a.rootLevelIds++, n = a.rootLevelIds, l = `${s}.${n}`,
1039
+ 1 === o.nodeType) o.setAttribute("c-id", l); else if (3 === o.nodeType) {
1040
+ if (0 === s && "" === o.nodeValue.trim()) return void t.remove();
1041
+ const a = e.createComment(l);
1042
+ a.nodeValue = `t.${l}`, o.parentNode.insertBefore(a, o);
1043
+ }
1044
+ let r = `o.${l}`;
1045
+ const p = t.parentElement;
1046
+ p && ("" === p["s-en"] ? r += "." : "c" === p["s-en"] && (r += ".c")), t.nodeValue = r;
1047
+ }
1048
+ }));
1049
+ }
1050
+ }, exports.isMemberInElement = isMemberInElement, exports.loadModule = loadModule,
1051
+ exports.modeResolutionChain = modeResolutionChain, exports.nextTick = nextTick,
1052
+ exports.parsePropertyValue = parsePropertyValue, exports.plt = plt, exports.postUpdateComponent = postUpdateComponent,
1053
+ exports.proxyComponent = proxyComponent, exports.proxyCustomElement = proxyCustomElement,
1054
+ exports.readTask = readTask, exports.registerComponents = e => {
1055
+ e.forEach((e => {
1056
+ cstrs.set(e.COMPILER_META.tagName, e);
1057
+ }));
1058
+ }, exports.registerContext = function registerContext(e) {
1059
+ e && Object.assign(Context, e);
1060
+ }, exports.registerHost = registerHost, exports.registerInstance = (e, t) => {
1061
+ if (null == e || null == e.constructor) throw new Error("Invalid component constructor");
1062
+ if (null == t) {
1063
+ const a = e.constructor, o = a.COMPILER_META && a.COMPILER_META.tagName ? a.COMPILER_META.tagName : "div", s = document.createElement(o);
1064
+ registerHost(s, {
1065
+ $flags$: 0,
1066
+ $tagName$: o
1067
+ }), t = getHostRef(s);
1068
+ }
1069
+ return t.$lazyInstance$ = e, hostRefs.set(e, t);
1070
+ }, exports.registerModule = function registerModule(e, t) {
1071
+ moduleLoaded.set(e, t);
1072
+ }, exports.renderVdom = renderVdom, exports.resetPlatform = function resetPlatform() {
1073
+ win && "function" == typeof win.close && win.close(), hostRefs.clear(), styles.clear(),
1074
+ plt.$flags$ = 0, Object.keys(Context).forEach((e => delete Context[e])), null != plt.$orgLocNodes$ && (plt.$orgLocNodes$.clear(),
1075
+ plt.$orgLocNodes$ = void 0), win.location.href = plt.$resourcesUrl$ = "http://testing-rindojs.web.app/",
1076
+ function e() {
1077
+ queuedTicks.length = 0, queuedWriteTasks.length = 0, queuedReadTasks.length = 0,
1078
+ moduleLoaded.clear(), queuedLoadModules.length = 0, caughtErrors.length = 0;
1079
+ }(), stopAutoApplyChanges(), cstrs.clear();
1080
+ }, exports.setAssetPath = e => plt.$resourcesUrl$ = e, exports.setErrorHandler = e => customError = e,
1081
+ exports.setMode = e => modeResolutionChain.push(e), exports.setPlatformHelpers = e => {
1082
+ Object.assign(plt, e);
1083
+ }, exports.setPlatformOptions = e => Object.assign(plt, e), exports.setSupportsShadowDom = e => {
1084
+ exports.supportsShadow = e;
1085
+ }, exports.setValue = setValue, exports.startAutoApplyChanges = async function e() {
1086
+ isAutoApplyingChanges = !0, flushAll().then((() => {
1087
+ isAutoApplyingChanges && (autoApplyTimer = setTimeout((() => {
1088
+ e();
1089
+ }), 100));
1090
+ }));
1091
+ }, exports.stopAutoApplyChanges = stopAutoApplyChanges, exports.styles = styles,
1092
+ exports.supportsConstructibleStylesheets = !1, exports.supportsListenerOptions = !0,
1093
+ exports.win = win, exports.writeTask = writeTask;