@jsenv/cli 0.2.12 → 0.2.14

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 (71) hide show
  1. package/package.json +2 -2
  2. package/template-node-package/package.json +4 -4
  3. package/template-web/.jsenv/craft/index.html +2 -2
  4. package/template-web/.jsenv/craft/main.css.js +2 -2
  5. package/template-web/.jsenv/craft/main.js +4 -4
  6. package/template-web/.jsenv/shape/index.html +1 -1
  7. package/template-web/package.json +7 -7
  8. package/template-web-components/.jsenv/craft/app/app_custom_element.css.js +2 -2
  9. package/template-web-components/.jsenv/craft/app/app_custom_element.js +3 -3
  10. package/template-web-components/.jsenv/craft/app/custom_elements_redefine.js +1 -1
  11. package/template-web-components/.jsenv/craft/index.html +2 -2
  12. package/template-web-components/.jsenv/craft/main.js +2 -2
  13. package/template-web-components/.jsenv/shape/index.html +1 -1
  14. package/template-web-components/package.json +7 -7
  15. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/preact/dist/preact.module.js +16 -16
  16. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/preact/hooks/dist/hooks.module.js +3 -3
  17. package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -2
  18. package/template-web-preact/.jsenv/craft/app/app.css.js +2 -2
  19. package/template-web-preact/.jsenv/craft/app/app.jsx +6 -6
  20. package/template-web-preact/.jsenv/craft/app/counter.jsx +3 -3
  21. package/template-web-preact/.jsenv/craft/index.html +2 -2
  22. package/template-web-preact/.jsenv/craft/main.jsx +3 -3
  23. package/template-web-preact/.jsenv/shape/index.html +3 -3
  24. package/template-web-preact/.jsenv/shape/main.jsx +1 -1
  25. package/template-web-preact/.jsenv/shape/main.nomodule.jsx +1 -1
  26. package/template-web-preact/.jsenv/shape/vendors.js +1 -1
  27. package/template-web-preact/.jsenv/shape/vendors.nomodule.js +1 -1
  28. package/template-web-preact/dist/index.html +2 -2
  29. package/template-web-preact/dist/js/main.nomodule.js +1 -1
  30. package/template-web-preact/dist/js/vendors.nomodule.js +1 -1
  31. package/template-web-preact/package.json +10 -10
  32. package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react-dom/react-dom/client.jsx +1 -1
  33. package/template-web-react/.jsenv/craft/app/app.css.js +2 -2
  34. package/template-web-react/.jsenv/craft/app/app.jsx +6 -6
  35. package/template-web-react/.jsenv/craft/app/counter.jsx +2 -2
  36. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/index.production.js__compile_info__.json +3 -3
  37. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/index.production.map +1 -1
  38. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +3 -3
  39. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/jsx-runtime.production.map +1 -1
  40. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react-dom/client.production.js__compile_info__.json +3 -3
  41. package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react-dom/client.production.map +1 -1
  42. package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
  43. package/template-web-react/.jsenv/craft/index.html +2 -2
  44. package/template-web-react/.jsenv/craft/main.jsx +4 -4
  45. package/template-web-react/.jsenv/shape/index.html +1 -1
  46. package/template-web-react/package.json +8 -8
  47. /package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/inline_content.js +0 -0
  48. /package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/new_stylesheet.js +0 -0
  49. /package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  50. /package/template-web/.jsenv/shape/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  51. /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/inline_content.js +0 -0
  52. /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/new_stylesheet.js +0 -0
  53. /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/independent/custom-elements-redefine/src/main.js +0 -0
  54. /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  55. /package/template-web-components/.jsenv/shape/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  56. /package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/inline_content.js +0 -0
  57. /package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/new_stylesheet.js +0 -0
  58. /package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  59. /package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  60. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/inline_content.js +0 -0
  61. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/dist/js/new_stylesheet.js +0 -0
  62. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/index.js +0 -0
  63. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/jsx-runtime.js +0 -0
  64. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/react/jsx-runtime.jsx +0 -0
  65. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/react.jsx +0 -0
  66. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react-dom/client.js +0 -0
  67. /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
  68. /package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/index.production.js +0 -0
  69. /package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react/jsx-runtime.production.js +0 -0
  70. /package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/{Dev → dev}/core/node_modules/react-dom/client.production.js +0 -0
  71. /package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/{Dev → dev}/core/packages/internal/js-module-fallback/dist/js/s.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/cli",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Command Line Interface for jsenv",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@jsenv/humanize": "1.2.8",
31
- "@jsenv/urls": "2.5.3",
31
+ "@jsenv/urls": "2.5.4",
32
32
  "prompts": "2.4.2"
33
33
  }
34
34
  }
@@ -12,10 +12,10 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@jsenv/assert": "4.4.2",
15
- "@jsenv/core": "39.5.25",
16
- "@jsenv/eslint-config-relax": "1.3.1",
17
- "@jsenv/test": "3.5.27",
18
- "eslint": "9.14.0",
15
+ "@jsenv/core": "39.5.26",
16
+ "@jsenv/eslint-config-relax": "1.3.4",
17
+ "@jsenv/test": "3.5.28",
18
+ "eslint": "9.15.0",
19
19
  "prettier": "3.3.3"
20
20
  }
21
21
  }
@@ -2,7 +2,7 @@
2
2
  <html lang="en" original-position-stored="">
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
- <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web/src/jsenv_logo.svg" original-href-position="5:43;5:66">
5
+ <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/jsenv_logo.svg" original-href-position="5:43;5:66">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <style original-position="7:5;20:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body {
8
8
  background: #add8e6;
@@ -21,6 +21,6 @@
21
21
  </head>
22
22
  <body>
23
23
  <div id="root"></div>
24
- <script type="module" src="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web/src/main.js" original-src-position="25:27;25:42"></script>
24
+ <script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/main.js" original-src-position="25:27;25:42"></script>
25
25
  </body>
26
26
  </html>
@@ -1,5 +1,5 @@
1
- import "file:///Users/dmail/Documents/Dev/core/dist/js/new_stylesheet.js";
2
- import "file:///Users/dmail/Documents/Dev/core/dist/js/inline_content.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js";
2
+ import "file:///Users/dmail/Documents/dev/core/dist/js/inline_content.js";
3
3
  const inlineContent = new __InlineContent__(".logo {\n pointer-events: none;\n height: 40vmin;\n}\n", {
4
4
  type: "text/css"
5
5
  });
@@ -1,8 +1,8 @@
1
- import "file:///Users/dmail/Documents/Dev/core/dist/js/new_stylesheet.js";
2
- import mainStyleSheet from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web/src/main.css?as_css_module";
3
- import { initCounter } from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web/src/app/counter.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js";
2
+ import mainStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/main.css?as_css_module";
3
+ import { initCounter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/app/counter.js";
4
4
  document.adoptedStyleSheets = [...document.adoptedStyleSheets, mainStyleSheet];
5
- const jsenvLogoUrl = new URL("file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web/src/jsenv_logo.svg", import.meta.url);
5
+ const jsenvLogoUrl = new URL("file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/jsenv_logo.svg", import.meta.url);
6
6
  document.querySelector("#root").innerHTML = "<h1>Hello world!</h1>\n<img class=\"logo\" src=".concat(jsenvLogoUrl, " alt=\"logo\" />\n<p>\n <button id=\"counter_button\">Click me!</button>\n <p>\n Number of clicks: <span id=\"counter_output\"></span>\n </p>\n</p>\n<p>\n Edit <a href=\"javascript:window.fetch('/__open_in_editor__/jsenv_logo.svg')\">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href=\"https://github.com/jsenv/core\" target=\"_blank\">Documentation</a>");
7
7
  initCounter();
8
8
  if (undefined) {
@@ -7,7 +7,7 @@
7
7
  <script jsenv-injected-by="jsenv:core" content-indented="">
8
8
  ;(function(){var m = {"/other/jsenv_logo.svg":"/other/jsenv_logo.svg?v=0ad5d0f8"}; window.__v__ = function (s) { return m[s] || s }; })();
9
9
  </script>
10
- <script inlined-from-src="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
10
+ <script inlined-from-src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
11
  !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
12
12
  </script>
13
13
  <style original-position="7:5;20:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{background:#add8e6}#root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px;font-family:Avenir,Helvetica,Arial,sans-serif}</style>
@@ -16,14 +16,14 @@
16
16
  "devDependencies": {
17
17
  "@babel/plugin-syntax-import-attributes": "7.26.0",
18
18
  "@jsenv/assert": "4.4.2",
19
- "@jsenv/core": "39.5.25",
20
- "@jsenv/eslint-config-relax": "1.3.1",
21
- "@jsenv/plugin-bundling": "2.7.17",
22
- "@jsenv/plugin-minification": "1.5.10",
23
- "@jsenv/test": "3.5.27",
24
- "eslint": "9.14.0",
19
+ "@jsenv/core": "39.5.26",
20
+ "@jsenv/eslint-config-relax": "1.3.4",
21
+ "@jsenv/plugin-bundling": "2.7.19",
22
+ "@jsenv/plugin-minification": "1.5.11",
23
+ "@jsenv/test": "3.5.28",
24
+ "eslint": "9.15.0",
25
25
  "open": "10.1.0",
26
- "@playwright/browser-chromium": "1.48.2",
26
+ "@playwright/browser-chromium": "1.49.0",
27
27
  "prettier": "3.3.3"
28
28
  }
29
29
  }
@@ -1,5 +1,5 @@
1
- import "file:///Users/dmail/Documents/Dev/core/dist/js/new_stylesheet.js";
2
- import "file:///Users/dmail/Documents/Dev/core/dist/js/inline_content.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js";
2
+ import "file:///Users/dmail/Documents/dev/core/dist/js/inline_content.js";
3
3
  const inlineContent = new __InlineContent__(".logo {\n pointer-events: none;\n height: 40vmin;\n}\n", {
4
4
  type: "text/css"
5
5
  });
@@ -1,6 +1,6 @@
1
- import AppCustomElementStyleSheet from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/app/app_custom_element.css?as_css_module";
2
- import { initCounter } from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/app/counter.js";
3
- const jsenvLogoUrl = new URL("file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/jsenv_logo.svg", import.meta.url);
1
+ import AppCustomElementStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/app/app_custom_element.css?as_css_module";
2
+ import { initCounter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/app/counter.js";
3
+ const jsenvLogoUrl = new URL("file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/jsenv_logo.svg", import.meta.url);
4
4
  class AppCustomElement extends HTMLElement {
5
5
  constructor() {
6
6
  super();
@@ -1,4 +1,4 @@
1
- import { allowCustomElementsRedefine } from "file:///Users/dmail/Documents/Dev/core/packages/independent/custom-elements-redefine/src/main.js";
1
+ import { allowCustomElementsRedefine } from "file:///Users/dmail/Documents/dev/core/packages/independent/custom-elements-redefine/src/main.js";
2
2
  if (undefined) {
3
3
  allowCustomElementsRedefine();
4
4
  }
@@ -2,7 +2,7 @@
2
2
  <html lang="en" original-position-stored="">
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
- <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/jsenv_logo.svg" original-href-position="5:43;5:66">
5
+ <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/jsenv_logo.svg" original-href-position="5:43;5:66">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <style original-position="7:5;20:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body {
8
8
  background: #add8e6;
@@ -21,6 +21,6 @@
21
21
  </head>
22
22
  <body>
23
23
  <div id="root"></div>
24
- <script type="module" src="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/main.js" original-src-position="25:27;25:42"></script>
24
+ <script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/main.js" original-src-position="25:27;25:42"></script>
25
25
  </body>
26
26
  </html>
@@ -1,5 +1,5 @@
1
- import "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/app/custom_elements_redefine.js";
2
- import "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/app/app_custom_element.js";
1
+ import "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/app/custom_elements_redefine.js";
2
+ import "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/app/app_custom_element.js";
3
3
  document.querySelector("#root").innerHTML = "<my-app></my-app>";
4
4
  if (undefined) {
5
5
  undefined.accept();
@@ -7,7 +7,7 @@
7
7
  <script jsenv-injected-by="jsenv:core" content-indented="">
8
8
  ;(function(){var m = {"/other/jsenv_logo.svg":"/other/jsenv_logo.svg?v=0ad5d0f8"}; window.__v__ = function (s) { return m[s] || s }; })();
9
9
  </script>
10
- <script inlined-from-src="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-components/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
10
+ <script inlined-from-src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-components/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
11
  !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
12
12
  </script>
13
13
  <style original-position="7:5;20:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{background:#add8e6}#root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px;font-family:Avenir,Helvetica,Arial,sans-serif}</style>
@@ -18,14 +18,14 @@
18
18
  "@babel/plugin-syntax-import-attributes": "7.26.0",
19
19
  "@jsenv/custom-elements-redefine": "0.0.1",
20
20
  "@jsenv/assert": "4.4.2",
21
- "@jsenv/core": "39.5.25",
22
- "@jsenv/plugin-bundling": "2.7.17",
23
- "@jsenv/plugin-minification": "1.5.10",
24
- "@jsenv/eslint-config-relax": "1.3.1",
25
- "@jsenv/test": "3.5.27",
26
- "eslint": "9.14.0",
21
+ "@jsenv/core": "39.5.26",
22
+ "@jsenv/plugin-bundling": "2.7.19",
23
+ "@jsenv/plugin-minification": "1.5.11",
24
+ "@jsenv/eslint-config-relax": "1.3.4",
25
+ "@jsenv/test": "3.5.28",
26
+ "eslint": "9.15.0",
27
27
  "open": "10.1.0",
28
- "@playwright/browser-chromium": "1.48.2",
28
+ "@playwright/browser-chromium": "1.49.0",
29
29
  "prettier": "3.3.3"
30
30
  }
31
31
  }
@@ -91,7 +91,7 @@ function P(n, l, u, t, i, o, r, f, e, c, s) {
91
91
  w,
92
92
  _ = t && t.__k || v,
93
93
  g = l.length;
94
- for (u.__d = e, $(u, l, _), e = u.__d, a = 0; a < g; a++) null != (y = u.__k[a]) && (p = -1 === y.__i ? h : _[y.__i] || h, y.__i = a, O(n, y, p, i, o, r, f, e, c, s), d = y.__e, y.ref && p.ref != y.ref && (p.ref && N(p.ref, null, y), s.push(y.ref, y.__c || d, y)), null == w && null != d && (w = d), 65536 & y.__u || p.__k === y.__k ? e = I(y, e, n) : "function" == typeof y.type && void 0 !== y.__d ? e = y.__d : d && (e = d.nextSibling), y.__d = void 0, y.__u &= -196609);
94
+ for (u.__d = e, $(u, l, _), e = u.__d, a = 0; a < g; a++) null != (y = u.__k[a]) && (p = -1 === y.__i ? h : _[y.__i] || h, y.__i = a, O(n, y, p, i, o, r, f, e, c, s), d = y.__e, y.ref && p.ref != y.ref && (p.ref && E(p.ref, null, y), s.push(y.ref, y.__c || d, y)), null == w && null != d && (w = d), 65536 & y.__u || p.__k === y.__k ? e = I(y, e, n) : "function" == typeof y.type && void 0 !== y.__d ? e = y.__d : d && (e = d.nextSibling), y.__d = void 0, y.__u &= -196609);
95
95
  u.__d = e, u.__e = w;
96
96
  }
97
97
  function $(n, l, u) {
@@ -107,7 +107,7 @@ function $(n, l, u) {
107
107
  for (n.__k = [], t = 0; t < e; t++) null != (i = l[t]) && "boolean" != typeof i && "function" != typeof i ? (r = t + a, (i = n.__k[t] = "string" == typeof i || "number" == typeof i || "bigint" == typeof i || i.constructor == String ? g(null, i, null, null, null) : y(i) ? g(b, {
108
108
  children: i
109
109
  }, null, null, null) : void 0 === i.constructor && i.__b > 0 ? g(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = n, i.__b = n.__b + 1, o = null, -1 !== (f = i.__i = L(i, u, r, s)) && (s--, (o = u[f]) && (o.__u |= 131072)), null == o || null === o.__v ? (-1 == f && a--, "function" != typeof i.type && (i.__u |= 65536)) : f !== r && (f == r - 1 ? a-- : f == r + 1 ? a++ : (f > r ? a-- : a++, i.__u |= 65536))) : i = n.__k[t] = null;
110
- if (s) for (t = 0; t < c; t++) null != (o = u[t]) && 0 == (131072 & o.__u) && (o.__e == n.__d && (n.__d = x(o)), V(o, o));
110
+ if (s) for (t = 0; t < c; t++) null != (o = u[t]) && 0 == (131072 & o.__u) && (o.__e == n.__d && (n.__d = x(o)), N(o, o));
111
111
  }
112
112
  function I(n, l, u) {
113
113
  var t, i;
@@ -133,7 +133,7 @@ function L(n, l, u, t) {
133
133
  f = u + 1,
134
134
  e = l[u];
135
135
  if (null === e || e && i == e.key && o === e.type && 0 == (131072 & e.__u)) return u;
136
- if (t > (null != e && 0 == (131072 & e.__u) ? 1 : 0)) for (; r >= 0 || f < l.length;) {
136
+ if (("function" != typeof o || o === b || i) && t > (null != e && 0 == (131072 & e.__u) ? 1 : 0)) for (; r >= 0 || f < l.length;) {
137
137
  if (r >= 0) {
138
138
  if ((e = l[r]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return r;
139
139
  r--;
@@ -168,7 +168,7 @@ function F(n) {
168
168
  if (this.l) {
169
169
  var t = this.l[u.type + n];
170
170
  if (null == u.t) u.t = e++;else if (u.t < t.u) return;
171
- return t(l.event ? l.event(u) : u);
171
+ return l.event && (u = l.event(u)), "handleEvent" in t ? t.handleEvent(u) : t(u);
172
172
  }
173
173
  };
174
174
  }
@@ -193,7 +193,7 @@ function O(n, u, t, i, o, r, f, e, c, s) {
193
193
  if (void 0 !== u.constructor) return null;
194
194
  128 & t.__u && (c = !!(32 & t.__u), r = [e = u.__e = t.__e]), (a = l.__b) && a(u);
195
195
  n: if ("function" == typeof T) try {
196
- if (m = u.props, x = "prototype" in T && T.prototype.render, C = (a = T.contextType) && i[a.__c], S = a ? C ? C.props.value : a.__ : i, t.__c ? g = (h = u.__c = t.__c).__ = h.__E : (x ? u.__c = h = new T(m, S) : (u.__c = h = new k(m, S), h.constructor = T, h.render = q), C && C.sub(h), h.props = m, h.state || (h.state = {}), h.context = S, h.__n = i, v = h.__d = !0, h.__h = [], h._sb = []), x && null == h.__s && (h.__s = h.state), x && null != T.getDerivedStateFromProps && (h.__s == h.state && (h.__s = d({}, h.__s)), d(h.__s, T.getDerivedStateFromProps(m, h.__s))), p = h.props, w = h.state, h.__v = u, v) x && null == T.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), x && null != h.componentDidMount && h.__h.push(h.componentDidMount);else {
196
+ if (m = u.props, x = "prototype" in T && T.prototype.render, C = (a = T.contextType) && i[a.__c], S = a ? C ? C.props.value : a.__ : i, t.__c ? g = (h = u.__c = t.__c).__ = h.__E : (x ? u.__c = h = new T(m, S) : (u.__c = h = new k(m, S), h.constructor = T, h.render = V), C && C.sub(h), h.props = m, h.state || (h.state = {}), h.context = S, h.__n = i, v = h.__d = !0, h.__h = [], h._sb = []), x && null == h.__s && (h.__s = h.state), x && null != T.getDerivedStateFromProps && (h.__s == h.state && (h.__s = d({}, h.__s)), d(h.__s, T.getDerivedStateFromProps(m, h.__s))), p = h.props, w = h.state, h.__v = u, v) x && null == T.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), x && null != h.componentDidMount && h.__h.push(h.componentDidMount);else {
197
197
  if (x && null == T.getDerivedStateFromProps && m !== p && null != h.componentWillReceiveProps && h.componentWillReceiveProps(m, S), !h.__e && (null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(m, h.__s, S) || u.__v === t.__v)) {
198
198
  for (u.__v !== t.__v && (h.props = m, h.state = h.__s, h.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.some(function (n) {
199
199
  n && (n.__ = u);
@@ -223,7 +223,7 @@ function O(n, u, t, i, o, r, f, e, c, s) {
223
223
  }
224
224
  function j(n, u, t) {
225
225
  u.__d = void 0;
226
- for (var i = 0; i < t.length; i++) N(t[i], t[++i], t[++i]);
226
+ for (var i = 0; i < t.length; i++) E(t[i], t[++i], t[++i]);
227
227
  l.__c && l.__c(u, n), n.some(function (u) {
228
228
  try {
229
229
  n = u.__h, u.__h = [], n.some(function (n) {
@@ -265,7 +265,7 @@ function z(u, t, i, o, r, f, e, c, s) {
265
265
  }
266
266
  return u;
267
267
  }
268
- function N(n, u, t) {
268
+ function E(n, u, t) {
269
269
  try {
270
270
  if ("function" == typeof n) {
271
271
  var i = "function" == typeof n.__u;
@@ -275,9 +275,9 @@ function N(n, u, t) {
275
275
  l.__e(n, t);
276
276
  }
277
277
  }
278
- function V(n, u, t) {
278
+ function N(n, u, t) {
279
279
  var i, o;
280
- if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || N(i, null, u)), null != (i = n.__c)) {
280
+ if (l.unmount && l.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || E(i, null, u)), null != (i = n.__c)) {
281
281
  if (i.componentWillUnmount) try {
282
282
  i.componentWillUnmount();
283
283
  } catch (n) {
@@ -285,20 +285,20 @@ function V(n, u, t) {
285
285
  }
286
286
  i.base = i.__P = null;
287
287
  }
288
- if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && V(i[o], u, t || "function" != typeof n.type);
288
+ if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && N(i[o], u, t || "function" != typeof n.type);
289
289
  t || w(n.__e), n.__c = n.__ = n.__e = n.__d = void 0;
290
290
  }
291
- function q(n, l, u) {
291
+ function V(n, l, u) {
292
292
  return this.constructor(n, u);
293
293
  }
294
- function B(u, t, i) {
294
+ function q(u, t, i) {
295
295
  var o, r, f, e;
296
296
  l.__ && l.__(u, t), r = (o = "function" == typeof i) ? null : i && i.__k || t.__k, f = [], e = [], O(t, u = (!o && i || t).__k = _(b, null, [u]), r || h, h, t.namespaceURI, !o && i ? [i] : r ? null : t.firstChild ? n.call(t.childNodes) : null, f, !o && i ? i : r ? r.__e : t.firstChild, o, e), j(f, u, e);
297
297
  }
298
- function D(n, l) {
299
- B(n, l, D);
298
+ function B(n, l) {
299
+ q(n, l, B);
300
300
  }
301
- function E(l, u, t) {
301
+ function D(l, u, t) {
302
302
  var i,
303
303
  o,
304
304
  r,
@@ -354,4 +354,4 @@ n = v.slice, l = {
354
354
  }, k.prototype.render = b, i = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function (n, l) {
355
355
  return n.__v.__b - l.__v.__b;
356
356
  }, M.__r = 0, e = 0, c = F(!1), s = F(!0), a = 0;
357
- export { k as Component, b as Fragment, E as cloneElement, G as createContext, _ as createElement, m as createRef, _ as h, D as hydrate, t as isValidElement, l as options, B as render, H as toChildArray };
357
+ export { k as Component, b as Fragment, D as cloneElement, G as createContext, _ as createElement, m as createRef, _ as h, B as hydrate, t as isValidElement, l as options, q as render, H as toChildArray };
@@ -1,4 +1,4 @@
1
- import { options as n } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/dist/preact.module.js";
1
+ import { options as n } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
2
2
  var t,
3
3
  r,
4
4
  u,
@@ -38,13 +38,13 @@ function p(n, u, i) {
38
38
  if (u.every(function (n) {
39
39
  return !n.__N;
40
40
  })) return !c || c.call(this, n, t, r);
41
- var i = !1;
41
+ var i = o.__c.props !== n;
42
42
  return u.forEach(function (n) {
43
43
  if (n.__N) {
44
44
  var t = n.__[0];
45
45
  n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);
46
46
  }
47
- }), !(!i && o.__c.props === n) && (!c || c.call(this, n, t, r));
47
+ }), c && c.call(this, n, t, r) || i;
48
48
  };
49
49
  r.u = !0;
50
50
  var c = r.shouldComponentUpdate,
@@ -1,5 +1,5 @@
1
- import { options as r, Fragment as e } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/dist/preact.module.js";
2
- export { Fragment } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/dist/preact.module.js";
1
+ import { options as r, Fragment as e } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
2
+ export { Fragment } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
3
3
  var t = /["&<]/;
4
4
  function n(r) {
5
5
  if (0 === r.length || !1 === t.test(r)) return r;
@@ -1,5 +1,5 @@
1
- import "file:///Users/dmail/Documents/Dev/core/dist/js/new_stylesheet.js";
2
- import "file:///Users/dmail/Documents/Dev/core/dist/js/inline_content.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js";
2
+ import "file:///Users/dmail/Documents/dev/core/dist/js/inline_content.js";
3
3
  const inlineContent = new __InlineContent__(".app {\n text-align: center;\n}\n\n.app_logo {\n pointer-events: none;\n height: 40vmin;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .app_logo {\n animation: 20s linear infinite app_logo_spin;\n }\n}\n\n.app_header {\n color: #fff;\n background-color: #282c34;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n font-size: calc(10px + 2vmin);\n display: flex;\n}\n\n.app_link {\n color: #61dafb;\n}\n\n@keyframes app_logo_spin {\n from {\n transform: rotate(0);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n\nbutton {\n font-size: calc(10px + 2vmin);\n}\n", {
4
4
  type: "text/css"
5
5
  });
@@ -1,9 +1,9 @@
1
- import "file:///Users/dmail/Documents/Dev/core/dist/js/new_stylesheet.js";
2
- import { useLayoutEffect } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/hooks/dist/hooks.module.js";
3
- import appStyleSheet from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/app/app.css?as_css_module";
4
- import { Counter } from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/app/counter.jsx";
5
- import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
6
- const preactLogoUrl = new URL("file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/preact_logo.svg", import.meta.url);
1
+ import "file:///Users/dmail/Documents/dev/core/dist/js/new_stylesheet.js";
2
+ import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js";
3
+ import appStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/app.css?as_css_module";
4
+ import { Counter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/counter.jsx";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
6
+ const preactLogoUrl = new URL("file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/preact_logo.svg", import.meta.url);
7
7
  export const App = () => {
8
8
  useLayoutEffect(() => {
9
9
  document.adoptedStyleSheets = [...document.adoptedStyleSheets, appStyleSheet];
@@ -1,6 +1,6 @@
1
- import { Fragment } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/dist/preact.module.js";
2
- import { useState } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/hooks/dist/hooks.module.js";
3
- import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
1
+ import { Fragment } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
2
+ import { useState } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
4
4
  export const Counter = () => {
5
5
  const [count, setCount] = useState(0);
6
6
  return _jsxs(Fragment, {
@@ -2,7 +2,7 @@
2
2
  <html lang="en" original-position-stored="">
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
- <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/preact_logo.svg" original-href-position="5:43;5:67">
5
+ <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/preact_logo.svg" original-href-position="5:43;5:67">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <style original-position="7:5;21:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body {
8
8
  -webkit-font-smoothing: antialiased;
@@ -19,6 +19,6 @@ code {
19
19
  </head>
20
20
  <body>
21
21
  <div id="root"></div>
22
- <script type="module" src="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/main.jsx" original-src-position="26:27;26:43"></script>
22
+ <script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/main.jsx" original-src-position="26:27;26:43"></script>
23
23
  </body>
24
24
  </html>
@@ -1,4 +1,4 @@
1
- import { render } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/dist/preact.module.js";
2
- import { App } from "file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/app/app.jsx";
3
- import { jsx as _jsx } from "file:///Users/dmail/Documents/Dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
1
+ import { render } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js";
2
+ import { App } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/app.jsx";
3
+ import { jsx as _jsx } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
4
4
  render(_jsx(App, {}), document.querySelector("#root"));
@@ -5,9 +5,9 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/other/preact_logo.svg?v=7aea73c3" original-href-position="5:43;5:67">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <script jsenv-injected-by="jsenv:core" content-indented="">
8
- ;(function(){var m = {"/js/vendors.nomodule.js":"/js/vendors.nomodule.js?v=e0cad7a0","/other/preact_logo.svg":"/other/preact_logo.svg?v=7aea73c3"}; window.__v__ = function (s) { return m[s] || s }; })();
8
+ ;(function(){var m = {"/js/vendors.nomodule.js":"/js/vendors.nomodule.js?v=75949087","/other/preact_logo.svg":"/other/preact_logo.svg?v=7aea73c3"}; window.__v__ = function (s) { return m[s] || s }; })();
9
9
  </script>
10
- <script inlined-from-src="file:///Users/dmail/Documents/Dev/core/packages/related/cli/template-web-preact/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
10
+ <script inlined-from-src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/index.html@s.js" jsenv-injected-by="jsenv:core" content-indented="">
11
11
  !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
12
12
  </script>
13
13
  <style original-position="7:5;21:13" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
@@ -15,6 +15,6 @@
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
18
- <script src="/js/main.nomodule.js?v=0f7200d7" original-src-position="26:27;26:43"></script>
18
+ <script src="/js/main.nomodule.js?v=20701152" original-src-position="26:27;26:43"></script>
19
19
  </body>
20
20
  </html>
@@ -1 +1 @@
1
- import{h as e,u as t,b as n,_ as o,B as r}from"!~{005}~";!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),l.get(t).forEach((function(e){e.isConnected()&&x(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),l.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){u.get(e).delete(t),l.set(e,l.get(e).filter((function(e){return e!==t})))}(e,t)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return u.get(e).get(t)}function x(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),l.set(e,[]),u.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return u.get(e).set(t,n),l.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){x(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}();("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const c=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),i=new CSSStyleSheet;i.replaceSync(c.text);const a=()=>{const[o,r]=e(0);return t(n,{children:[t("button",{id:"counter_button",type:"button",onClick:()=>r((e=>e+1)),children:"Click me"}),t("br",{}),"number of click: ",t("span",{id:"counter_output",children:o})]})},s=new URL("!~{007}~",import.meta.url);r(t((()=>(o((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==i))})),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:s,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(a,{})}),t("p",{children:["Edit"," ",t("a",{className:"app_link",href:"javascript:window.fetch('/__open_in_editor__/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),t("p",{children:t("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"));
1
+ import{h as e,u as t,b as n,_ as o,q as r}from"!~{005}~";!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),l.get(t).forEach((function(e){e.isConnected()&&x(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),l.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){u.get(e).delete(t),l.set(e,l.get(e).filter((function(e){return e!==t})))}(e,t)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return u.get(e).get(t)}function x(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),l.set(e,[]),u.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return u.get(e).set(t,n),l.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){x(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}();("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const c=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),i=new CSSStyleSheet;i.replaceSync(c.text);const a=()=>{const[o,r]=e(0);return t(n,{children:[t("button",{id:"counter_button",type:"button",onClick:()=>r((e=>e+1)),children:"Click me"}),t("br",{}),"number of click: ",t("span",{id:"counter_output",children:o})]})},s=new URL("!~{007}~",import.meta.url);r(t((()=>(o((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==i))})),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:s,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(a,{})}),t("p",{children:["Edit"," ",t("a",{className:"app_link",href:"javascript:window.fetch('/__open_in_editor__/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),t("p",{children:t("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"));
@@ -1 +1 @@
1
- System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.h,o=e.u,r=e.b,c=e._,i=e.B}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&x(t,E(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=E(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:C});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(_))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=E(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function b(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function _(e){return"object"==typeof e&&a.isPrototypeOf(e)}function E(e,t){return l.get(e).get(t)}function x(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return b(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(b(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(E(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){x(t,E(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return E(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},a=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),(s=new CSSStyleSheet).replaceSync(a.text),u=()=>{const[e,t]=n(0);return o(r,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:e})]})},l=new URL(__v__("/other/preact_logo.svg"),t.meta.url),i(o((()=>(c((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:o("header",{className:"app_header",children:[o("img",{src:l,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + preact!"}),o("p",{children:o(u,{})}),o("p",{children:["Edit"," ",o("a",{className:"app_link",href:"javascript:window.fetch('/__open_in_editor__/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"))}}}));
1
+ System.register([__v__("/js/vendors.nomodule.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.h,o=e.u,r=e.b,c=e._,i=e.q}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(k(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&x(t,E(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;k(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=E(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:C});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,y=new WeakMap,S=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);S.get(this).observe(e,f),y.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){S.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(_))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=y.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=E(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),y.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function b(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function _(e){return"object"==typeof e&&a.isPrototypeOf(e)}function E(e,t){return l.get(e).get(t)}function x(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function k(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return b(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(b(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=y.get(e),o=S.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(E(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){x(t,E(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),y.set(n,[]),S.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&y.get(e).some((function(t){return E(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t},a=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),(s=new CSSStyleSheet).replaceSync(a.text),u=()=>{const[e,t]=n(0);return o(r,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:e})]})},l=new URL(__v__("/other/preact_logo.svg"),t.meta.url),i(o((()=>(c((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:o("header",{className:"app_header",children:[o("img",{src:l,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + preact!"}),o("p",{children:o(u,{})}),o("p",{children:["Edit"," ",o("a",{className:"app_link",href:"javascript:window.fetch('/__open_in_editor__/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"))}}}));