@jsenv/cli 0.3.2 → 0.3.4

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 (104) hide show
  1. package/package.json +3 -3
  2. package/template-node-package/package.json +4 -4
  3. package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/inline_content.js +19 -0
  4. package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +320 -0
  5. package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +553 -0
  6. package/template-web/.jsenv/craft/app/counter.js +10 -0
  7. package/template-web/.jsenv/craft/index.html +26 -0
  8. package/template-web/.jsenv/craft/jsenv_logo.svg +140 -0
  9. package/template-web/.jsenv/craft/main.css +4 -0
  10. package/template-web/.jsenv/craft/main.css7as_css_module=.js +8 -0
  11. package/template-web/.jsenv/craft/main.js +14 -0
  12. package/template-web/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +1 -0
  13. package/template-web/.jsenv/shape/index.html +27 -0
  14. package/template-web/.jsenv/shape/jsenv_logo.svg +91 -0
  15. package/template-web/.jsenv/shape/main.js +1 -0
  16. package/template-web/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -0
  17. package/template-web/dist/index.html +27 -0
  18. package/template-web/dist/js/main.nomodule.js +1 -0
  19. package/template-web/dist/other/jsenv_logo.svg +91 -0
  20. package/template-web/package.json +5 -5
  21. package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/inline_content.js +19 -0
  22. package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +320 -0
  23. package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +154 -0
  24. package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +553 -0
  25. package/template-web-components/.jsenv/craft/app/app_custom_element.css +4 -0
  26. package/template-web-components/.jsenv/craft/app/app_custom_element.css7as_css_module=.js +8 -0
  27. package/template-web-components/.jsenv/craft/app/app_custom_element.js +15 -0
  28. package/template-web-components/.jsenv/craft/app/counter.js +10 -0
  29. package/template-web-components/.jsenv/craft/app/custom_elements_redefine.js +4 -0
  30. package/template-web-components/.jsenv/craft/index.html +26 -0
  31. package/template-web-components/.jsenv/craft/jsenv_logo.svg +140 -0
  32. package/template-web-components/.jsenv/craft/main.js +9 -0
  33. package/template-web-components/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +1 -0
  34. package/template-web-components/.jsenv/shape/index.html +27 -0
  35. package/template-web-components/.jsenv/shape/jsenv_logo.svg +91 -0
  36. package/template-web-components/.jsenv/shape/main.js +1 -0
  37. package/template-web-components/.jsenv/shape/main.nomodule7js_module_fallback=.js +1 -0
  38. package/template-web-components/dist/index.html +27 -0
  39. package/template-web-components/dist/js/main.nomodule.js +1 -0
  40. package/template-web-components/dist/other/jsenv_logo.svg +91 -0
  41. package/template-web-components/package.json +5 -5
  42. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/inline_content.js +19 -0
  43. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +320 -0
  44. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +357 -0
  45. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +198 -0
  46. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +93 -0
  47. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +553 -0
  48. package/template-web-preact/.jsenv/craft/app/app.css +43 -0
  49. package/template-web-preact/.jsenv/craft/app/app.css7as_css_module=.js +8 -0
  50. package/template-web-preact/.jsenv/craft/app/app.jsx +46 -0
  51. package/template-web-preact/.jsenv/craft/app/counter.jsx +17 -0
  52. package/template-web-preact/.jsenv/craft/index.html +24 -0
  53. package/template-web-preact/.jsenv/craft/main.jsx +4 -0
  54. package/template-web-preact/.jsenv/craft/preact_logo.svg +6 -0
  55. package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +1 -0
  56. package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/vendors.js +1 -0
  57. package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/vendors.nomodule7js_module_fallback=.js +1 -0
  58. package/template-web-preact/.jsenv/shape/index.html +28 -0
  59. package/template-web-preact/.jsenv/shape/main.jsx +1 -0
  60. package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -0
  61. package/template-web-preact/.jsenv/shape/preact_logo.svg +6 -0
  62. package/template-web-preact/dist/index.html +28 -0
  63. package/template-web-preact/dist/js/main.nomodule.js +1 -0
  64. package/template-web-preact/dist/js/vendors.nomodule.js +1 -0
  65. package/template-web-preact/dist/other/preact_logo.svg +6 -0
  66. package/template-web-preact/package.json +6 -6
  67. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/inline_content.js +19 -0
  68. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js +320 -0
  69. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +7 -0
  70. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +7 -0
  71. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +61 -0
  72. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +438 -0
  73. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +34 -0
  74. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +9650 -0
  75. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +553 -0
  76. package/template-web-react/.jsenv/craft/app/app.css +43 -0
  77. package/template-web-react/.jsenv/craft/app/app.css7as_css_module=.js +8 -0
  78. package/template-web-react/.jsenv/craft/app/app.jsx +46 -0
  79. package/template-web-react/.jsenv/craft/app/counter.jsx +16 -0
  80. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +617 -0
  81. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +26 -0
  82. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +1 -0
  83. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +69 -0
  84. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +18 -0
  85. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +1 -0
  86. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +15859 -0
  87. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +42 -0
  88. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +1 -0
  89. package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +3 -0
  90. package/template-web-react/.jsenv/craft/index.html +24 -0
  91. package/template-web-react/.jsenv/craft/main.jsx +10 -0
  92. package/template-web-react/.jsenv/craft/react_logo.svg +7 -0
  93. package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/js/s.js +1 -0
  94. package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/vendors.js +1 -0
  95. package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/vendors.nomodule7js_module_fallback=.js +1 -0
  96. package/template-web-react/.jsenv/shape/index.html +28 -0
  97. package/template-web-react/.jsenv/shape/main.jsx +1 -0
  98. package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -0
  99. package/template-web-react/.jsenv/shape/react_logo.svg +7 -0
  100. package/template-web-react/dist/index.html +28 -0
  101. package/template-web-react/dist/js/main.nomodule.js +1 -0
  102. package/template-web-react/dist/js/vendors.nomodule.js +1 -0
  103. package/template-web-react/dist/other/react_logo.svg +7 -0
  104. package/template-web-react/package.json +6 -6
@@ -0,0 +1,320 @@
1
+ /* eslint-disable */
2
+ // construct-style-sheets-polyfill@3.1.0
3
+ // to keep in sync with https://github.com/calebdwilliams/construct-style-sheets
4
+ // copy pasted into jsenv codebase to inject this code with more ease
5
+ (function () {
6
+ if (typeof document === "undefined" || "adoptedStyleSheets" in document) {
7
+ return;
8
+ }
9
+ var hasShadyCss = "ShadyCSS" in window && !ShadyCSS.nativeShadow;
10
+ var bootstrapper = document.implementation.createHTMLDocument("");
11
+ var closedShadowRootRegistry = new WeakMap();
12
+ var _DOMException = typeof DOMException === "object" ? Error : DOMException;
13
+ var defineProperty = Object.defineProperty;
14
+ var forEach = Array.prototype.forEach;
15
+ var importPattern = /@import.+?;?$/gm;
16
+ function rejectImports(contents) {
17
+ var _contents = contents.replace(importPattern, "");
18
+ if (_contents !== contents) {
19
+ console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418");
20
+ }
21
+ return _contents.trim();
22
+ }
23
+ function isElementConnected(element) {
24
+ return "isConnected" in element ? element.isConnected : document.contains(element);
25
+ }
26
+ function unique(arr) {
27
+ return arr.filter(function (value, index) {
28
+ return arr.indexOf(value) === index;
29
+ });
30
+ }
31
+ function diff(arr1, arr2) {
32
+ return arr1.filter(function (value) {
33
+ return arr2.indexOf(value) === -1;
34
+ });
35
+ }
36
+ function removeNode(node) {
37
+ node.parentNode.removeChild(node);
38
+ }
39
+ function getShadowRoot(element) {
40
+ return element.shadowRoot || closedShadowRootRegistry.get(element);
41
+ }
42
+ var cssStyleSheetMethods = ["addRule", "deleteRule", "insertRule", "removeRule"];
43
+ var NonConstructedStyleSheet = CSSStyleSheet;
44
+ var nonConstructedProto = NonConstructedStyleSheet.prototype;
45
+ nonConstructedProto.replace = function () {
46
+ return Promise.reject(new _DOMException("Can't call replace on non-constructed CSSStyleSheets."));
47
+ };
48
+ nonConstructedProto.replaceSync = function () {
49
+ throw new _DOMException("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.");
50
+ };
51
+ function isCSSStyleSheetInstance(instance) {
52
+ return typeof instance === "object" ? proto$1.isPrototypeOf(instance) || nonConstructedProto.isPrototypeOf(instance) : false;
53
+ }
54
+ function isNonConstructedStyleSheetInstance(instance) {
55
+ return typeof instance === "object" ? nonConstructedProto.isPrototypeOf(instance) : false;
56
+ }
57
+ var $basicStyleElement = new WeakMap();
58
+ var $locations = new WeakMap();
59
+ var $adoptersByLocation = new WeakMap();
60
+ var $appliedMethods = new WeakMap();
61
+ function addAdopterLocation(sheet, location) {
62
+ var adopter = document.createElement("style");
63
+ $adoptersByLocation.get(sheet).set(location, adopter);
64
+ $locations.get(sheet).push(location);
65
+ return adopter;
66
+ }
67
+ function getAdopterByLocation(sheet, location) {
68
+ return $adoptersByLocation.get(sheet).get(location);
69
+ }
70
+ function removeAdopterLocation(sheet, location) {
71
+ $adoptersByLocation.get(sheet).delete(location);
72
+ $locations.set(sheet, $locations.get(sheet).filter(function (_location) {
73
+ return _location !== location;
74
+ }));
75
+ }
76
+ function restyleAdopter(sheet, adopter) {
77
+ requestAnimationFrame(function () {
78
+ adopter.textContent = $basicStyleElement.get(sheet).textContent;
79
+ $appliedMethods.get(sheet).forEach(function (command) {
80
+ return adopter.sheet[command.method].apply(adopter.sheet, command.args);
81
+ });
82
+ });
83
+ }
84
+ function checkInvocationCorrectness(self) {
85
+ if (!$basicStyleElement.has(self)) {
86
+ throw new TypeError("Illegal invocation");
87
+ }
88
+ }
89
+ function ConstructedStyleSheet() {
90
+ var self = this;
91
+ var style = document.createElement("style");
92
+ bootstrapper.body.appendChild(style);
93
+ $basicStyleElement.set(self, style);
94
+ $locations.set(self, []);
95
+ $adoptersByLocation.set(self, new WeakMap());
96
+ $appliedMethods.set(self, []);
97
+ }
98
+ var proto$1 = ConstructedStyleSheet.prototype;
99
+ proto$1.replace = function replace(contents) {
100
+ try {
101
+ this.replaceSync(contents);
102
+ return Promise.resolve(this);
103
+ } catch (e) {
104
+ return Promise.reject(e);
105
+ }
106
+ };
107
+ proto$1.replaceSync = function replaceSync(contents) {
108
+ checkInvocationCorrectness(this);
109
+ if (typeof contents === "string") {
110
+ var self_1 = this;
111
+ $basicStyleElement.get(self_1).textContent = rejectImports(contents);
112
+ $appliedMethods.set(self_1, []);
113
+ $locations.get(self_1).forEach(function (location) {
114
+ if (location.isConnected()) {
115
+ restyleAdopter(self_1, getAdopterByLocation(self_1, location));
116
+ }
117
+ });
118
+ }
119
+ };
120
+ defineProperty(proto$1, "cssRules", {
121
+ configurable: true,
122
+ enumerable: true,
123
+ get: function cssRules() {
124
+ checkInvocationCorrectness(this);
125
+ return $basicStyleElement.get(this).sheet.cssRules;
126
+ }
127
+ });
128
+ defineProperty(proto$1, "media", {
129
+ configurable: true,
130
+ enumerable: true,
131
+ get: function media() {
132
+ checkInvocationCorrectness(this);
133
+ return $basicStyleElement.get(this).sheet.media;
134
+ }
135
+ });
136
+ cssStyleSheetMethods.forEach(function (method) {
137
+ proto$1[method] = function () {
138
+ var self = this;
139
+ checkInvocationCorrectness(self);
140
+ var args = arguments;
141
+ $appliedMethods.get(self).push({
142
+ method: method,
143
+ args: args
144
+ });
145
+ $locations.get(self).forEach(function (location) {
146
+ if (location.isConnected()) {
147
+ var sheet = getAdopterByLocation(self, location).sheet;
148
+ sheet[method].apply(sheet, args);
149
+ }
150
+ });
151
+ var basicSheet = $basicStyleElement.get(self).sheet;
152
+ return basicSheet[method].apply(basicSheet, args);
153
+ };
154
+ });
155
+ defineProperty(ConstructedStyleSheet, Symbol.hasInstance, {
156
+ configurable: true,
157
+ value: isCSSStyleSheetInstance
158
+ });
159
+ var defaultObserverOptions = {
160
+ childList: true,
161
+ subtree: true
162
+ };
163
+ var locations = new WeakMap();
164
+ function getAssociatedLocation(element) {
165
+ var location = locations.get(element);
166
+ if (!location) {
167
+ location = new Location(element);
168
+ locations.set(element, location);
169
+ }
170
+ return location;
171
+ }
172
+ function attachAdoptedStyleSheetProperty(constructor) {
173
+ defineProperty(constructor.prototype, "adoptedStyleSheets", {
174
+ configurable: true,
175
+ enumerable: true,
176
+ get: function () {
177
+ return getAssociatedLocation(this).sheets;
178
+ },
179
+ set: function (sheets) {
180
+ getAssociatedLocation(this).update(sheets);
181
+ }
182
+ });
183
+ }
184
+ function traverseWebComponents(node, callback) {
185
+ var iter = document.createNodeIterator(node, NodeFilter.SHOW_ELEMENT, function (foundNode) {
186
+ return getShadowRoot(foundNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
187
+ }, null, false);
188
+ for (var next = void 0; next = iter.nextNode();) {
189
+ callback(getShadowRoot(next));
190
+ }
191
+ }
192
+ var $element = new WeakMap();
193
+ var $uniqueSheets = new WeakMap();
194
+ var $observer = new WeakMap();
195
+ function isExistingAdopter(self, element) {
196
+ return element instanceof HTMLStyleElement && $uniqueSheets.get(self).some(function (sheet) {
197
+ return getAdopterByLocation(sheet, self);
198
+ });
199
+ }
200
+ function getAdopterContainer(self) {
201
+ var element = $element.get(self);
202
+ return element instanceof Document ? element.body : element;
203
+ }
204
+ function adopt(self) {
205
+ var styleList = document.createDocumentFragment();
206
+ var sheets = $uniqueSheets.get(self);
207
+ var observer = $observer.get(self);
208
+ var container = getAdopterContainer(self);
209
+ observer.disconnect();
210
+ sheets.forEach(function (sheet) {
211
+ styleList.appendChild(getAdopterByLocation(sheet, self) || addAdopterLocation(sheet, self));
212
+ });
213
+ container.insertBefore(styleList, null);
214
+ observer.observe(container, defaultObserverOptions);
215
+ sheets.forEach(function (sheet) {
216
+ restyleAdopter(sheet, getAdopterByLocation(sheet, self));
217
+ });
218
+ }
219
+ function Location(element) {
220
+ var self = this;
221
+ self.sheets = [];
222
+ $element.set(self, element);
223
+ $uniqueSheets.set(self, []);
224
+ $observer.set(self, new MutationObserver(function (mutations, observer) {
225
+ if (!document) {
226
+ observer.disconnect();
227
+ return;
228
+ }
229
+ mutations.forEach(function (mutation) {
230
+ if (!hasShadyCss) {
231
+ forEach.call(mutation.addedNodes, function (node) {
232
+ if (!(node instanceof Element)) {
233
+ return;
234
+ }
235
+ traverseWebComponents(node, function (root) {
236
+ getAssociatedLocation(root).connect();
237
+ });
238
+ });
239
+ }
240
+ forEach.call(mutation.removedNodes, function (node) {
241
+ if (!(node instanceof Element)) {
242
+ return;
243
+ }
244
+ if (isExistingAdopter(self, node)) {
245
+ adopt(self);
246
+ }
247
+ if (!hasShadyCss) {
248
+ traverseWebComponents(node, function (root) {
249
+ getAssociatedLocation(root).disconnect();
250
+ });
251
+ }
252
+ });
253
+ });
254
+ }));
255
+ }
256
+ Location.prototype = {
257
+ isConnected: function () {
258
+ var element = $element.get(this);
259
+ return element instanceof Document ? element.readyState !== "loading" : isElementConnected(element.host);
260
+ },
261
+ connect: function () {
262
+ var container = getAdopterContainer(this);
263
+ $observer.get(this).observe(container, defaultObserverOptions);
264
+ if ($uniqueSheets.get(this).length > 0) {
265
+ adopt(this);
266
+ }
267
+ traverseWebComponents(container, function (root) {
268
+ getAssociatedLocation(root).connect();
269
+ });
270
+ },
271
+ disconnect: function () {
272
+ $observer.get(this).disconnect();
273
+ },
274
+ update: function (sheets) {
275
+ var self = this;
276
+ var locationType = $element.get(self) === document ? "Document" : "ShadowRoot";
277
+ if (!Array.isArray(sheets)) {
278
+ throw new TypeError("Failed to set the 'adoptedStyleSheets' property on " + locationType + ": Iterator getter is not callable.");
279
+ }
280
+ if (!sheets.every(isCSSStyleSheetInstance)) {
281
+ throw new TypeError("Failed to set the 'adoptedStyleSheets' property on " + locationType + ": Failed to convert value to 'CSSStyleSheet'");
282
+ }
283
+ if (sheets.some(isNonConstructedStyleSheetInstance)) {
284
+ throw new TypeError("Failed to set the 'adoptedStyleSheets' property on " + locationType + ": Can't adopt non-constructed stylesheets");
285
+ }
286
+ self.sheets = sheets;
287
+ var oldUniqueSheets = $uniqueSheets.get(self);
288
+ var uniqueSheets = unique(sheets);
289
+ var removedSheets = diff(oldUniqueSheets, uniqueSheets);
290
+ removedSheets.forEach(function (sheet) {
291
+ removeNode(getAdopterByLocation(sheet, self));
292
+ removeAdopterLocation(sheet, self);
293
+ });
294
+ $uniqueSheets.set(self, uniqueSheets);
295
+ if (self.isConnected() && uniqueSheets.length > 0) {
296
+ adopt(self);
297
+ }
298
+ }
299
+ };
300
+ window.CSSStyleSheet = ConstructedStyleSheet;
301
+ attachAdoptedStyleSheetProperty(Document);
302
+ if ("ShadowRoot" in window) {
303
+ attachAdoptedStyleSheetProperty(ShadowRoot);
304
+ var proto = Element.prototype;
305
+ var attach_1 = proto.attachShadow;
306
+ proto.attachShadow = function attachShadow(init) {
307
+ var root = attach_1.call(this, init);
308
+ if (init.mode === "closed") {
309
+ closedShadowRootRegistry.set(this, root);
310
+ }
311
+ return root;
312
+ };
313
+ }
314
+ var documentLocation = getAssociatedLocation(document);
315
+ if (documentLocation.isConnected()) {
316
+ documentLocation.connect();
317
+ } else {
318
+ document.addEventListener("DOMContentLoaded", documentLocation.connect.bind(documentLocation));
319
+ }
320
+ })();
@@ -0,0 +1,357 @@
1
+ var n,
2
+ l,
3
+ t,
4
+ u,
5
+ i,
6
+ r,
7
+ o,
8
+ e,
9
+ f,
10
+ c,
11
+ s,
12
+ a,
13
+ h,
14
+ p = {},
15
+ v = [],
16
+ y = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
17
+ d = Array.isArray;
18
+ function w(n, l) {
19
+ for (var t in l) n[t] = l[t];
20
+ return n;
21
+ }
22
+ function g(n) {
23
+ n && n.parentNode && n.parentNode.removeChild(n);
24
+ }
25
+ function _(l, t, u) {
26
+ var i,
27
+ r,
28
+ o,
29
+ e = {};
30
+ for (o in t) "key" == o ? i = t[o] : "ref" == o ? r = t[o] : e[o] = t[o];
31
+ if (arguments.length > 2 && (e.children = arguments.length > 3 ? n.call(arguments, 2) : u), "function" == typeof l && null != l.defaultProps) for (o in l.defaultProps) void 0 === e[o] && (e[o] = l.defaultProps[o]);
32
+ return m(l, e, i, r, null);
33
+ }
34
+ function m(n, u, i, r, o) {
35
+ var e = {
36
+ type: n,
37
+ props: u,
38
+ key: i,
39
+ ref: r,
40
+ __k: null,
41
+ __: null,
42
+ __b: 0,
43
+ __e: null,
44
+ __c: null,
45
+ constructor: void 0,
46
+ __v: null == o ? ++t : o,
47
+ __i: -1,
48
+ __u: 0
49
+ };
50
+ return null == o && null != l.vnode && l.vnode(e), e;
51
+ }
52
+ function b() {
53
+ return {
54
+ current: null
55
+ };
56
+ }
57
+ function k(n) {
58
+ return n.children;
59
+ }
60
+ function x(n, l) {
61
+ this.props = n, this.context = l;
62
+ }
63
+ function S(n, l) {
64
+ if (null == l) return n.__ ? S(n.__, n.__i + 1) : null;
65
+ for (var t; l < n.__k.length; l++) if (null != (t = n.__k[l]) && null != t.__e) return t.__e;
66
+ return "function" == typeof n.type ? S(n) : null;
67
+ }
68
+ function C(n) {
69
+ var l, t;
70
+ if (null != (n = n.__) && null != n.__c) {
71
+ for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (t = n.__k[l]) && null != t.__e) {
72
+ n.__e = n.__c.base = t.__e;
73
+ break;
74
+ }
75
+ return C(n);
76
+ }
77
+ }
78
+ function M(n) {
79
+ (!n.__d && (n.__d = !0) && i.push(n) && !$.__r++ || r !== l.debounceRendering) && ((r = l.debounceRendering) || o)($);
80
+ }
81
+ function $() {
82
+ for (var n, t, u, r, o, f, c, s = 1; i.length;) i.length > s && i.sort(e), n = i.shift(), s = i.length, n.__d && (u = void 0, o = (r = (t = n).__v).__e, f = [], c = [], t.__P && ((u = w({}, r)).__v = r.__v + 1, l.vnode && l.vnode(u), O(t.__P, u, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, f, null == o ? S(r) : o, !!(32 & r.__u), c), u.__v = r.__v, u.__.__k[u.__i] = u, z(f, u, c), u.__e != o && C(u)));
83
+ $.__r = 0;
84
+ }
85
+ function I(n, l, t, u, i, r, o, e, f, c, s) {
86
+ var a,
87
+ h,
88
+ y,
89
+ d,
90
+ w,
91
+ g,
92
+ _ = u && u.__k || v,
93
+ m = l.length;
94
+ for (f = P(t, l, _, f, m), a = 0; a < m; a++) null != (y = t.__k[a]) && (h = -1 === y.__i ? p : _[y.__i] || p, y.__i = a, g = O(n, y, h, i, r, o, e, f, c, s), d = y.__e, y.ref && h.ref != y.ref && (h.ref && q(h.ref, null, y), s.push(y.ref, y.__c || d, y)), null == w && null != d && (w = d), 4 & y.__u || h.__k === y.__k ? f = A(y, f, n) : "function" == typeof y.type && void 0 !== g ? f = g : d && (f = d.nextSibling), y.__u &= -7);
95
+ return t.__e = w, f;
96
+ }
97
+ function P(n, l, t, u, i) {
98
+ var r,
99
+ o,
100
+ e,
101
+ f,
102
+ c,
103
+ s = t.length,
104
+ a = s,
105
+ h = 0;
106
+ for (n.__k = new Array(i), r = 0; r < i; r++) null != (o = l[r]) && "boolean" != typeof o && "function" != typeof o ? (f = r + h, (o = n.__k[r] = "string" == typeof o || "number" == typeof o || "bigint" == typeof o || o.constructor == String ? m(null, o, null, null, null) : d(o) ? m(k, {
107
+ children: o
108
+ }, null, null, null) : void 0 === o.constructor && o.__b > 0 ? m(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = n, o.__b = n.__b + 1, e = null, -1 !== (c = o.__i = L(o, t, f, a)) && (a--, (e = t[c]) && (e.__u |= 2)), null == e || null === e.__v ? (-1 == c && (i > s ? h-- : i < s && h++), "function" != typeof o.type && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null;
109
+ if (a) for (r = 0; r < s; r++) null != (e = t[r]) && 0 == (2 & e.__u) && (e.__e == u && (u = S(e)), B(e, e));
110
+ return u;
111
+ }
112
+ function A(n, l, t) {
113
+ var u, i;
114
+ if ("function" == typeof n.type) {
115
+ for (u = n.__k, i = 0; u && i < u.length; i++) u[i] && (u[i].__ = n, l = A(u[i], l, t));
116
+ return l;
117
+ }
118
+ n.__e != l && (l && n.type && !t.contains(l) && (l = S(n)), t.insertBefore(n.__e, l || null), l = n.__e);
119
+ do {
120
+ l = l && l.nextSibling;
121
+ } while (null != l && 8 == l.nodeType);
122
+ return l;
123
+ }
124
+ function H(n, l) {
125
+ return l = l || [], null == n || "boolean" == typeof n || (d(n) ? n.some(function (n) {
126
+ H(n, l);
127
+ }) : l.push(n)), l;
128
+ }
129
+ function L(n, l, t, u) {
130
+ var i,
131
+ r,
132
+ o = n.key,
133
+ e = n.type,
134
+ f = l[t];
135
+ if (null === f && null == n.key || f && o == f.key && e === f.type && 0 == (2 & f.__u)) return t;
136
+ if (u > (null != f && 0 == (2 & f.__u) ? 1 : 0)) for (i = t - 1, r = t + 1; i >= 0 || r < l.length;) {
137
+ if (i >= 0) {
138
+ if ((f = l[i]) && 0 == (2 & f.__u) && o == f.key && e === f.type) return i;
139
+ i--;
140
+ }
141
+ if (r < l.length) {
142
+ if ((f = l[r]) && 0 == (2 & f.__u) && o == f.key && e === f.type) return r;
143
+ r++;
144
+ }
145
+ }
146
+ return -1;
147
+ }
148
+ function T(n, l, t) {
149
+ "-" == l[0] ? n.setProperty(l, null == t ? "" : t) : n[l] = null == t ? "" : "number" != typeof t || y.test(l) ? t : t + "px";
150
+ }
151
+ function j(n, l, t, u, i) {
152
+ var r;
153
+ n: if ("style" == l) {
154
+ if ("string" == typeof t) n.style.cssText = t;else {
155
+ if ("string" == typeof u && (n.style.cssText = u = ""), u) for (l in u) t && l in t || T(n.style, l, "");
156
+ if (t) for (l in t) u && t[l] === u[l] || T(n.style, l, t[l]);
157
+ }
158
+ } else if ("o" == l[0] && "n" == l[1]) r = l != (l = l.replace(f, "$1")), l = l.toLowerCase() in n || "onFocusOut" == l || "onFocusIn" == l ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + r] = t, t ? u ? t.t = u.t : (t.t = c, n.addEventListener(l, r ? a : s, r)) : n.removeEventListener(l, r ? a : s, r);else {
159
+ if ("http://www.w3.org/2000/svg" == i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" != l && "height" != l && "href" != l && "list" != l && "form" != l && "tabIndex" != l && "download" != l && "rowSpan" != l && "colSpan" != l && "role" != l && "popover" != l && l in n) try {
160
+ n[l] = null == t ? "" : t;
161
+ break n;
162
+ } catch (n) {}
163
+ "function" == typeof t || (null == t || !1 === t && "-" != l[4] ? n.removeAttribute(l) : n.setAttribute(l, "popover" == l && 1 == t ? "" : t));
164
+ }
165
+ }
166
+ function F(n) {
167
+ return function (t) {
168
+ if (this.l) {
169
+ var u = this.l[t.type + n];
170
+ if (null == t.u) t.u = c++;else if (t.u < u.t) return;
171
+ return u(l.event ? l.event(t) : t);
172
+ }
173
+ };
174
+ }
175
+ function O(n, t, u, i, r, o, e, f, c, s) {
176
+ var a,
177
+ h,
178
+ p,
179
+ v,
180
+ y,
181
+ _,
182
+ m,
183
+ b,
184
+ S,
185
+ C,
186
+ M,
187
+ $,
188
+ P,
189
+ A,
190
+ H,
191
+ L,
192
+ T,
193
+ j = t.type;
194
+ if (void 0 !== t.constructor) return null;
195
+ 128 & u.__u && (c = !!(32 & u.__u), o = [f = t.__e = u.__e]), (a = l.__b) && a(t);
196
+ n: if ("function" == typeof j) try {
197
+ if (b = t.props, S = "prototype" in j && j.prototype.render, C = (a = j.contextType) && i[a.__c], M = a ? C ? C.props.value : a.__ : i, u.__c ? m = (h = t.__c = u.__c).__ = h.__E : (S ? t.__c = h = new j(b, M) : (t.__c = h = new x(b, M), h.constructor = j, h.render = D), C && C.sub(h), h.props = b, h.state || (h.state = {}), h.context = M, h.__n = i, p = h.__d = !0, h.__h = [], h._sb = []), S && null == h.__s && (h.__s = h.state), S && null != j.getDerivedStateFromProps && (h.__s == h.state && (h.__s = w({}, h.__s)), w(h.__s, j.getDerivedStateFromProps(b, h.__s))), v = h.props, y = h.state, h.__v = t, p) S && null == j.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), S && null != h.componentDidMount && h.__h.push(h.componentDidMount);else {
198
+ if (S && null == j.getDerivedStateFromProps && b !== v && null != h.componentWillReceiveProps && h.componentWillReceiveProps(b, M), !h.__e && (null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(b, h.__s, M) || t.__v == u.__v)) {
199
+ for (t.__v != u.__v && (h.props = b, h.state = h.__s, h.__d = !1), t.__e = u.__e, t.__k = u.__k, t.__k.some(function (n) {
200
+ n && (n.__ = t);
201
+ }), $ = 0; $ < h._sb.length; $++) h.__h.push(h._sb[$]);
202
+ h._sb = [], h.__h.length && e.push(h);
203
+ break n;
204
+ }
205
+ null != h.componentWillUpdate && h.componentWillUpdate(b, h.__s, M), S && null != h.componentDidUpdate && h.__h.push(function () {
206
+ h.componentDidUpdate(v, y, _);
207
+ });
208
+ }
209
+ if (h.context = M, h.props = b, h.__P = n, h.__e = !1, P = l.__r, A = 0, S) {
210
+ for (h.state = h.__s, h.__d = !1, P && P(t), a = h.render(h.props, h.state, h.context), H = 0; H < h._sb.length; H++) h.__h.push(h._sb[H]);
211
+ h._sb = [];
212
+ } else do {
213
+ h.__d = !1, P && P(t), a = h.render(h.props, h.state, h.context), h.state = h.__s;
214
+ } while (h.__d && ++A < 25);
215
+ h.state = h.__s, null != h.getChildContext && (i = w(w({}, i), h.getChildContext())), S && !p && null != h.getSnapshotBeforeUpdate && (_ = h.getSnapshotBeforeUpdate(v, y)), L = a, null != a && a.type === k && null == a.key && (L = N(a.props.children)), f = I(n, d(L) ? L : [L], t, u, i, r, o, e, f, c, s), h.base = t.__e, t.__u &= -161, h.__h.length && e.push(h), m && (h.__E = h.__ = null);
216
+ } catch (n) {
217
+ if (t.__v = null, c || null != o) {
218
+ if (n.then) {
219
+ for (t.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;) f = f.nextSibling;
220
+ o[o.indexOf(f)] = null, t.__e = f;
221
+ } else for (T = o.length; T--;) g(o[T]);
222
+ } else t.__e = u.__e, t.__k = u.__k;
223
+ l.__e(n, t, u);
224
+ } else null == o && t.__v == u.__v ? (t.__k = u.__k, t.__e = u.__e) : f = t.__e = V(u.__e, t, u, i, r, o, e, c, s);
225
+ return (a = l.diffed) && a(t), 128 & t.__u ? void 0 : f;
226
+ }
227
+ function z(n, t, u) {
228
+ for (var i = 0; i < u.length; i++) q(u[i], u[++i], u[++i]);
229
+ l.__c && l.__c(t, n), n.some(function (t) {
230
+ try {
231
+ n = t.__h, t.__h = [], n.some(function (n) {
232
+ n.call(t);
233
+ });
234
+ } catch (n) {
235
+ l.__e(n, t.__v);
236
+ }
237
+ });
238
+ }
239
+ function N(n) {
240
+ return "object" != typeof n || null == n ? n : d(n) ? n.map(N) : w({}, n);
241
+ }
242
+ function V(t, u, i, r, o, e, f, c, s) {
243
+ var a,
244
+ h,
245
+ v,
246
+ y,
247
+ w,
248
+ _,
249
+ m,
250
+ b = i.props,
251
+ k = u.props,
252
+ x = u.type;
253
+ if ("svg" == x ? o = "http://www.w3.org/2000/svg" : "math" == x ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), null != e) for (a = 0; a < e.length; a++) if ((w = e[a]) && "setAttribute" in w == !!x && (x ? w.localName == x : 3 == w.nodeType)) {
254
+ t = w, e[a] = null;
255
+ break;
256
+ }
257
+ if (null == t) {
258
+ if (null == x) return document.createTextNode(k);
259
+ t = document.createElementNS(o, x, k.is && k), c && (l.__m && l.__m(u, e), c = !1), e = null;
260
+ }
261
+ if (null === x) b === k || c && t.data === k || (t.data = k);else {
262
+ if (e = e && n.call(t.childNodes), b = i.props || p, !c && null != e) for (b = {}, a = 0; a < t.attributes.length; a++) b[(w = t.attributes[a]).name] = w.value;
263
+ for (a in b) if (w = b[a], "children" == a) ;else if ("dangerouslySetInnerHTML" == a) v = w;else if (!(a in k)) {
264
+ if ("value" == a && "defaultValue" in k || "checked" == a && "defaultChecked" in k) continue;
265
+ j(t, a, null, w, o);
266
+ }
267
+ for (a in k) w = k[a], "children" == a ? y = w : "dangerouslySetInnerHTML" == a ? h = w : "value" == a ? _ = w : "checked" == a ? m = w : c && "function" != typeof w || b[a] === w || j(t, a, w, b[a], o);
268
+ if (h) c || v && (h.__html === v.__html || h.__html === t.innerHTML) || (t.innerHTML = h.__html), u.__k = [];else if (v && (t.innerHTML = ""), I("template" === u.type ? t.content : t, d(y) ? y : [y], u, i, r, "foreignObject" == x ? "http://www.w3.org/1999/xhtml" : o, e, f, e ? e[0] : i.__k && S(i, 0), c, s), null != e) for (a = e.length; a--;) g(e[a]);
269
+ c || (a = "value", "progress" == x && null == _ ? t.removeAttribute("value") : void 0 !== _ && (_ !== t[a] || "progress" == x && !_ || "option" == x && _ !== b[a]) && j(t, a, _, b[a], o), a = "checked", void 0 !== m && m !== t[a] && j(t, a, m, b[a], o));
270
+ }
271
+ return t;
272
+ }
273
+ function q(n, t, u) {
274
+ try {
275
+ if ("function" == typeof n) {
276
+ var i = "function" == typeof n.__u;
277
+ i && n.__u(), i && null == t || (n.__u = n(t));
278
+ } else n.current = t;
279
+ } catch (n) {
280
+ l.__e(n, u);
281
+ }
282
+ }
283
+ function B(n, t, u) {
284
+ var i, r;
285
+ if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || q(i, null, t)), null != (i = n.__c)) {
286
+ if (i.componentWillUnmount) try {
287
+ i.componentWillUnmount();
288
+ } catch (n) {
289
+ l.__e(n, t);
290
+ }
291
+ i.base = i.__P = null;
292
+ }
293
+ if (i = n.__k) for (r = 0; r < i.length; r++) i[r] && B(i[r], t, u || "function" != typeof n.type);
294
+ u || g(n.__e), n.__c = n.__ = n.__e = void 0;
295
+ }
296
+ function D(n, l, t) {
297
+ return this.constructor(n, t);
298
+ }
299
+ function E(t, u, i) {
300
+ var r, o, e, f;
301
+ u == document && (u = document.documentElement), l.__ && l.__(t, u), o = (r = "function" == typeof i) ? null : i && i.__k || u.__k, e = [], f = [], O(u, t = (!r && i || u).__k = _(k, null, [t]), o || p, p, u.namespaceURI, !r && i ? [i] : o ? null : u.firstChild ? n.call(u.childNodes) : null, e, !r && i ? i : o ? o.__e : u.firstChild, r, f), z(e, t, f);
302
+ }
303
+ function G(n, l) {
304
+ E(n, l, G);
305
+ }
306
+ function J(l, t, u) {
307
+ var i,
308
+ r,
309
+ o,
310
+ e,
311
+ f = w({}, l.props);
312
+ for (o in l.type && l.type.defaultProps && (e = l.type.defaultProps), t) "key" == o ? i = t[o] : "ref" == o ? r = t[o] : f[o] = void 0 === t[o] && void 0 !== e ? e[o] : t[o];
313
+ return arguments.length > 2 && (f.children = arguments.length > 3 ? n.call(arguments, 2) : u), m(l.type, f, i || l.key, r || l.ref, null);
314
+ }
315
+ function K(n) {
316
+ function l(n) {
317
+ var t, u;
318
+ return this.getChildContext || (t = new Set(), (u = {})[l.__c] = this, this.getChildContext = function () {
319
+ return u;
320
+ }, this.componentWillUnmount = function () {
321
+ t = null;
322
+ }, this.shouldComponentUpdate = function (n) {
323
+ this.props.value !== n.value && t.forEach(function (n) {
324
+ n.__e = !0, M(n);
325
+ });
326
+ }, this.sub = function (n) {
327
+ t.add(n);
328
+ var l = n.componentWillUnmount;
329
+ n.componentWillUnmount = function () {
330
+ t && t.delete(n), l && l.call(n);
331
+ };
332
+ }), n.children;
333
+ }
334
+ return l.__c = "__cC" + h++, l.__ = n, l.Provider = l.__l = (l.Consumer = function (n, l) {
335
+ return n.children(l);
336
+ }).contextType = l, l;
337
+ }
338
+ n = v.slice, l = {
339
+ __e: function (n, l, t, u) {
340
+ for (var i, r, o; l = l.__;) if ((i = l.__c) && !i.__) try {
341
+ if ((r = i.constructor) && null != r.getDerivedStateFromError && (i.setState(r.getDerivedStateFromError(n)), o = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, u || {}), o = i.__d), o) return i.__E = i;
342
+ } catch (l) {
343
+ n = l;
344
+ }
345
+ throw n;
346
+ }
347
+ }, t = 0, u = function (n) {
348
+ return null != n && null == n.constructor;
349
+ }, x.prototype.setState = function (n, l) {
350
+ var t;
351
+ t = null != this.__s && this.__s !== this.state ? this.__s : this.__s = w({}, this.state), "function" == typeof n && (n = n(w({}, t), this.props)), n && w(t, n), null != n && this.__v && (l && this._sb.push(l), M(this));
352
+ }, x.prototype.forceUpdate = function (n) {
353
+ this.__v && (this.__e = !0, n && this.__h.push(n), M(this));
354
+ }, x.prototype.render = k, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function (n, l) {
355
+ return n.__v.__b - l.__v.__b;
356
+ }, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(!1), a = F(!0), h = 0;
357
+ export { x as Component, k as Fragment, J as cloneElement, K as createContext, _ as createElement, b as createRef, _ as h, G as hydrate, u as isValidElement, l as options, E as render, H as toChildArray };