@jsenv/cli 0.3.204 → 0.3.208

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 (90) hide show
  1. package/package.json +3 -3
  2. package/template-node-package/package.json +3 -3
  3. package/template-web/package.json +5 -5
  4. package/template-web-components/package.json +5 -5
  5. package/template-web-preact/package.json +6 -6
  6. package/template-web-react/package.json +6 -6
  7. package/template-web/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  8. package/template-web/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  9. package/template-web/.jsenv/entry_index/craft/app/counter.js +0 -11
  10. package/template-web/.jsenv/entry_index/craft/index.html +0 -27
  11. package/template-web/.jsenv/entry_index/craft/jsenv_logo.svg +0 -140
  12. package/template-web/.jsenv/entry_index/craft/main.css +0 -4
  13. package/template-web/.jsenv/entry_index/craft/main.css7as_css_module=.js +0 -10
  14. package/template-web/.jsenv/entry_index/craft/main.js +0 -25
  15. package/template-web/.jsenv/entry_index/shape/index.html +0 -24
  16. package/template-web/.jsenv/entry_index/shape/jsenv_logo.svg +0 -91
  17. package/template-web/.jsenv/entry_index/shape/main.js +0 -1
  18. package/template-web/dist/index.html +0 -24
  19. package/template-web/dist/js/main.js +0 -1
  20. package/template-web/dist/other/jsenv_logo.svg +0 -91
  21. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  22. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/frontend/custom-elements-redefine/src/custom-elements-redefine_main.js +0 -217
  23. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  24. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css +0 -4
  25. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css7as_css_module=.js +0 -10
  26. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.js +0 -31
  27. package/template-web-components/.jsenv/entry_index/craft/app/counter.js +0 -11
  28. package/template-web-components/.jsenv/entry_index/craft/app/custom_elements_redefine.js +0 -5
  29. package/template-web-components/.jsenv/entry_index/craft/index.html +0 -27
  30. package/template-web-components/.jsenv/entry_index/craft/jsenv_logo.svg +0 -140
  31. package/template-web-components/.jsenv/entry_index/craft/main.js +0 -11
  32. package/template-web-components/.jsenv/entry_index/shape/index.html +0 -24
  33. package/template-web-components/.jsenv/entry_index/shape/jsenv_logo.svg +0 -91
  34. package/template-web-components/.jsenv/entry_index/shape/main.js +0 -1
  35. package/template-web-components/dist/index.html +0 -24
  36. package/template-web-components/dist/js/main.js +0 -1
  37. package/template-web-components/dist/other/jsenv_logo.svg +0 -91
  38. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  39. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  40. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/dist/preact.mjs +0 -2
  41. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/hooks/dist/hooks.mjs +0 -2
  42. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +0 -2
  43. package/template-web-preact/.jsenv/entry_index/craft/app/app.css +0 -43
  44. package/template-web-preact/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +0 -10
  45. package/template-web-preact/.jsenv/entry_index/craft/app/app.jsx +0 -46
  46. package/template-web-preact/.jsenv/entry_index/craft/app/counter.jsx +0 -17
  47. package/template-web-preact/.jsenv/entry_index/craft/index.html +0 -25
  48. package/template-web-preact/.jsenv/entry_index/craft/main.jsx +0 -4
  49. package/template-web-preact/.jsenv/entry_index/craft/preact_logo.svg +0 -6
  50. package/template-web-preact/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +0 -1
  51. package/template-web-preact/.jsenv/entry_index/shape/index.html +0 -31
  52. package/template-web-preact/.jsenv/entry_index/shape/main.jsx +0 -1
  53. package/template-web-preact/.jsenv/entry_index/shape/preact_logo.svg +0 -6
  54. package/template-web-preact/dist/index.html +0 -31
  55. package/template-web-preact/dist/js/main.js +0 -1
  56. package/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +0 -1
  57. package/template-web-preact/dist/other/preact_logo.svg +0 -6
  58. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/dist/client/inline_content/inline_content.js +0 -15
  59. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/internal/plugin-transpilation/src/babel/new_stylesheet/client/new_stylesheet.js +0 -381
  60. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.js +0 -7
  61. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.js +0 -7
  62. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +0 -69
  63. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/react7cjs_as_js_module=.jsx +0 -626
  64. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.js +0 -38
  65. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +0 -16726
  66. package/template-web-react/.jsenv/entry_index/craft/app/app.css +0 -43
  67. package/template-web-react/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +0 -10
  68. package/template-web-react/.jsenv/entry_index/craft/app/app.jsx +0 -46
  69. package/template-web-react/.jsenv/entry_index/craft/app/counter.jsx +0 -16
  70. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.production.js +0 -626
  71. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.production.js__compile_info__.json +0 -18
  72. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/index.production.map +0 -1
  73. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.production.js +0 -69
  74. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.production.js__compile_info__.json +0 -18
  75. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react/jsx-runtime.production.map +0 -1
  76. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.production.js +0 -16726
  77. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.production.js__compile_info__.json +0 -34
  78. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/node_modules/react-dom/client.production.map +0 -1
  79. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/__compile_context__.json +0 -3
  80. package/template-web-react/.jsenv/entry_index/craft/index.html +0 -25
  81. package/template-web-react/.jsenv/entry_index/craft/main.jsx +0 -10
  82. package/template-web-react/.jsenv/entry_index/craft/react_logo.svg +0 -7
  83. package/template-web-react/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-react/dist/jsenv_template_web_react_node_modules.js +0 -1
  84. package/template-web-react/.jsenv/entry_index/shape/index.html +0 -31
  85. package/template-web-react/.jsenv/entry_index/shape/main.jsx +0 -1
  86. package/template-web-react/.jsenv/entry_index/shape/react_logo.svg +0 -7
  87. package/template-web-react/dist/index.html +0 -31
  88. package/template-web-react/dist/js/main.js +0 -1
  89. package/template-web-react/dist/jsenv_template_web_react_node_modules.js +0 -1
  90. package/template-web-react/dist/other/react_logo.svg +0 -7
@@ -1,31 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" original-position-stored="">
3
- <head>
4
- <meta charset="UTF-8">
5
- <link rel="icon" type="image/svg+xml" href="/other/preact_logo.svg?v=7aea73c3" original-href-position="5:43;5:67">
6
- <meta name="viewport" content="width=device-width,initial-scale=1">
7
- <script type="importmap" jsenv-injected-by="jsenv:versioning" content-indented="">
8
- {
9
- "imports": {
10
- "/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=af801a91"
11
- }
12
- }
13
- </script>
14
- <script jsenv-injected-by="jsenv:core" content-indented="">
15
- ;(function() {
16
- var __versionMappings__ = {
17
- "/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
18
- };
19
- window.__v__ = function (specifier) {
20
- return __versionMappings__[specifier] || specifier
21
- };
22
- })();
23
- </script>
24
- <style original-position="7:5;22:13" content-indented="" 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>
25
- <title>Jsenv App</title>
26
- </head>
27
- <body>
28
- <div id="root"></div>
29
- <script type="module" src="/js/main.js?v=459b0fda" original-src-position="27:27;27:43"></script>
30
- </body>
31
- </html>
@@ -1 +0,0 @@
1
- import{h as e,u as t,k as n,A as o,F as r}from"/jsenv_template_web_preact_node_modules.js";!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,p=new WeakMap,d=M.prototype;d.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},d.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),p.set(t,[]),l.get(t).forEach(function(e){e.isConnected()&&x(t,_(t,e))})}},r(d,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(d,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach(function(e){d[e]=function(){var t=this;k(t);var n=arguments;p.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&&(d.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,p.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),p.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({baseUrl:"/app/app.css"});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(__v__("/other/preact_logo.svg"),import.meta.url).href;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('/internal/open_file/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,6 +0,0 @@
1
- <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
- <path fill="#673ab8" d="M16 2l12.12 7v14L16 30 3.88 23V9z"/>
3
- <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="10.72" ry="4.1" transform="rotate(-37.5 16.007 15.996)"/>
4
- <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="4.1" ry="10.72" transform="rotate(-52.5 15.998 15.994)"/>
5
- <circle fill="#fff" cx="16" cy="16" r="1.86"/>
6
- </svg>
@@ -1,31 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <link rel="icon" type="image/svg+xml" href="/other/preact_logo.svg?v=7aea73c3">
6
- <meta name="viewport" content="width=device-width,initial-scale=1">
7
- <script type="importmap">
8
- {
9
- "imports": {
10
- "/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=af801a91"
11
- }
12
- }
13
- </script>
14
- <script>
15
- ;(function() {
16
- var __versionMappings__ = {
17
- "/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
18
- };
19
- window.__v__ = function (specifier) {
20
- return __versionMappings__[specifier] || specifier
21
- };
22
- })();
23
- </script>
24
- <style>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>
25
- <title>Jsenv App</title>
26
- </head>
27
- <body>
28
- <div id="root"></div>
29
- <script type="module" src="/js/main.js?v=459b0fda"></script>
30
- </body>
31
- </html>
@@ -1 +0,0 @@
1
- import{h as e,u as t,k as n,A as o,F as r}from"/jsenv_template_web_preact_node_modules.js";!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,p=new WeakMap,d=M.prototype;d.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},d.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),p.set(t,[]),l.get(t).forEach(function(e){e.isConnected()&&x(t,_(t,e))})}},r(d,"cssRules",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.cssRules}}),r(d,"media",{configurable:!0,enumerable:!0,get:function(){return k(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach(function(e){d[e]=function(){var t=this;k(t);var n=arguments;p.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&&(d.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,p.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),p.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({baseUrl:"/app/app.css"});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(__v__("/other/preact_logo.svg"),import.meta.url).href;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('/internal/open_file/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 +0,0 @@
1
- var _,n,e,t,l,o,r,u,i,c,f={},s=[],a=Array.isArray,p=s.slice,h=Object.assign;function v(_){_&&_.parentNode&&_.remove()}function d(e,t,l,o,r){var u={type:e,props:t,key:l,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++n:r,__i:-1,__u:0};return null==r&&null!=_.vnode&&_.vnode(u),u}function g(_){return _.children}function m(_,n){this.props=_,this.context=n,this.__g=0}function y(_,n){if(null==n)return _.__?y(_.__,_.__i+1):null;for(var e;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof _.type?y(_):null}function k(_){var n,e;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=null,n=0;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e){_.__e=e.__e;break}return k(_)}}function b(n){(8&n.__g||!(n.__g|=8)||!e.push(n)||l++)&&t==_.debounceRendering||((t=_.debounceRendering)||queueMicrotask)(w)}function w(){for(var n,t,r,u,i,c,f,s,a=1;e.length;)e.length>a&&e.sort(o),n=e.shift(),a=e.length,8&n.__g&&(r=void 0,i=(u=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((r=h({},u)).__v=u.__v+1,_.vnode&&_.vnode(r),U(s,r,u,t.__n,s.namespaceURI,32&u.__u?[i]:null,c,null==i?y(u):i,!!(32&u.__u),f,s.ownerDocument),r.__v=u.__v,r.__.__k[r.__i]=r,D(c,r,f),r.__e!=i&&k(r)));l=0}function H(_,n,e,t,l,o,r,u,i,c,p,h){var v,m,k,b,w,H,N,C=t&&t.__k||s,T=n.length;for(i=function(_,n,e,t,l){var o,r,u,i,c,f=e.length,s=f,p=0;for(_.__k=new Array(l),o=0;o<l;o++)null!=(r=n[o])&&"boolean"!=typeof r&&"function"!=typeof r?(i=o+p,(r=_.__k[o]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?d(null,r,null,null,null):a(r)?d(g,{children:r},null,null,null):null==r.constructor&&r.__b>0?d(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=_,r.__b=_.__b+1,u=null,-1!=(c=r.__i=S(r,e,i,s))&&(s--,(u=e[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>f?p--:l<f&&p++),"function"!=typeof r.type&&(r.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,r.__u|=4))):_.__k[o]=null;if(s)for(o=0;o<f;o++)null!=(u=e[o])&&!(2&u.__u)&&(u.__e==t&&(t=y(u)),F(u,u));return t}(e,n,C,i,T),v=0;v<T;v++)null!=(k=e.__k[v])&&(m=-1==k.__i?f:C[k.__i]||f,k.__i=v,H=U(_,k,m,l,o,r,u,i,c,p,h),b=k.__e,k.ref&&m.ref!=k.ref&&(m.ref&&P(m.ref,null,k),p.push(k.ref,k.__c||b,k)),null==w&&null!=b&&(w=b),(N=!!(4&k.__u))||m.__k===k.__k?i=x(k,i,_,N):"function"==typeof k.type&&void 0!==H?i=H:b&&(i=b.nextSibling),k.__u&=-7);return e.__e=w,i}function x(_,n,e,t){var l,o;if("function"==typeof _.type){for(l=_.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=_,n=x(l[o],n,e,t));return n}_.__e!=n&&(t&&(n&&_.type&&!n.parentNode&&(n=y(_)),e.insertBefore(_.__e,n||null)),n=_.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function S(_,n,e,t){var l,o,r,u=_.key,i=_.type,c=n[e],f=null!=c&&!(2&c.__u);if(null===c&&null==_.key||f&&u==c.key&&i==c.type)return e;if(t>(f?1:0))for(l=e-1,o=e+1;l>=0||o<n.length;)if(null!=(c=n[r=l>=0?l--:o++])&&!(2&c.__u)&&u==c.key&&i==c.type)return r;return-1}function N(_,n,e){"-"==n[0]?_.setProperty(n,null==e?"":e):_[n]=null==e?"":e}function C(_,n,e,t,l){var o;_:if("style"==n)if("string"==typeof e)_.style.cssText=e;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(n in t)e&&n in e||N(_.style,n,"");if(e)for(n in e)t&&e[n]==t[n]||N(_.style,n,e[n])}else if("o"==n[0]&&"n"==n[1])o=n!=(n=n.replace(r,"$1")),(n=n.slice(2))[0].toLowerCase()!=n[0]&&(n=n.toLowerCase()),_.__l||(_.__l={}),_.__l[n+o]=e,e?t?e.l=t.l:(e.l=u,_.addEventListener(n,o?c:i,o)):_.removeEventListener(n,o?c:i,o);else{if("http://www.w3.org/2000/svg"==l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in _)try{_[n]=null==e?"":e;break _}catch(_){}"function"==typeof e||(null==e||!1===e&&"-"!=n[4]?_.removeAttribute(n):_.setAttribute(n,"popover"==n&&1==e?"":e))}}function T(n){return function(e){if(this.__l){var t=this.__l[e.type+n];if(null==e.u)e.u=u++;else if(e.u<t.l)return;return t(_.event?_.event(e):e)}}}function U(n,e,t,l,o,r,u,i,c,f,s){var p,d,y,k,b,w,x,S,N,C,T,U,D,P,F,W,z,R,$,q,I,j=e.type;if(null!=e.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(i=e.__e=t.__e=(r=t.__c.__z)[0],t.__c.__z=null)),(p=_.__b)&&p(e);_:if("function"==typeof j)try{if(S=e.props,N="prototype"in j&&j.prototype.render,C=(p=j.contextType)&&l[p.__c],T=p?C?C.props.value:p.__:l,t.__c?2&(d=e.__c=t.__c).__g&&(d.__g|=1,x=!0):(N?e.__c=d=new j(S,T):(e.__c=d=new m(S,T),d.constructor=j,d.render=L),C&&C.sub(d),d.props=S,d.state||(d.state={}),d.context=T,d.__n=l,y=!0,d.__g|=8,d.__h=[],d._sb=[]),N&&null==d.__s&&(d.__s=d.state),N&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,j.getDerivedStateFromProps(S,d.__s))),k=d.props,b=d.state,d.__v=e,y)N&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),N&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(N&&null==j.getDerivedStateFromProps&&S!==k&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,T),!(4&d.__g)&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,T)||e.__v==t.__v){for(e.__v!=t.__v&&(d.props=S,d.state=d.__s,d.__g&=-9),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(_){_&&(_.__=e)}),U=0;U<d._sb.length;U++)d.__h.push(d._sb[U]);d._sb=[],d.__h.length&&u.push(d);break _}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,T),N&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(k,b,w)})}if(d.context=T,d.props=S,d.__P=n,d.__g&=-5,D=_.__r,P=0,N){for(d.state=d.__s,d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do{d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(8&d.__g&&++P<25);d.state=d.__s,null!=d.getChildContext&&(l=h({},l,d.getChildContext())),N&&!y&&null!=d.getSnapshotBeforeUpdate&&(w=d.getSnapshotBeforeUpdate(k,b)),W=p,null!=p&&p.type===g&&null==p.key&&(W=M(p.props.children)),i=H(n,a(W)?W:[W],e,t,l,o,r,u,i,c,f,s),e.__u&=-161,d.__h.length&&u.push(d),x&&(d.__g&=-4)}catch(n){if(e.__v=null,c||null!=r)if(n.then){for(z=0,R=!1,e.__u|=c?160:128,e.__c.__z=[],$=0;$<r.length;$++)null==(q=r[$])||R||(8==q.nodeType&&"$s"==q.data?(z>0&&e.__c.__z.push(q),z++,r[$]=null):8==q.nodeType&&"/$s"==q.data?(--z>0&&e.__c.__z.push(q),R=0===z,i=r[$],r[$]=null):z>0&&(e.__c.__z.push(q),r[$]=null));if(!R){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;r[r.indexOf(i)]=null,e.__c.__z=[i]}e.__e=i}else{for(I=r.length;I--;)v(r[I]);E(e)}else e.__e=t.__e,e.__k=t.__k,n.then||E(e);_.__e(n,e,t)}else i=e.__e=A(t.__e,e,t,l,o,r,u,c,f,s);return(p=_.diffed)&&p(e),128&e.__u?void 0:i}function E(_){_&&_.__c&&(_.__c.__g|=4),_&&_.__k&&_.__k.forEach(E)}function D(n,e,t){for(var l=0;l<t.length;l++)P(t[l],t[++l],t[++l]);_.__c&&_.__c(e,n),n.some(function(e){try{n=e.__h,e.__h=[],n.some(function(_){_.call(e)})}catch(n){_.__e(n,e.__v)}})}function M(_){return"object"!=typeof _||null==_||_.__b&&_.__b>0?_:a(_)?_.map(M):h({},_)}function A(n,e,t,l,o,r,u,i,c,s){var h,d,g,m,k,b,w,x,S=t.props,N=e.props,T=e.type;if("svg"==T?o="http://www.w3.org/2000/svg":"math"==T?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(h=0;h<r.length;h++)if((k=r[h])&&"setAttribute"in k==!!T&&(T?k.localName==T:3==k.nodeType)){n=k,r[h]=null;break}if(null==n){if(null==T)return s.createTextNode(N);n=s.createElementNS(o,T,N.is&&N),i&&(_.__m&&_.__m(e,r),i=!1),r=null}if(null==T)S===N||i&&n.data==N||(n.data=N);else{if(r=r&&p.call(n.childNodes),S=t.props||f,!i&&null!=r)for(S={},h=0;h<n.attributes.length;h++)S[(k=n.attributes[h]).name]=k.value;for(h in S)if(k=S[h],"children"==h);else if("dangerouslySetInnerHTML"==h)g=k;else if(!(h in N)){if("value"==h&&"defaultValue"in N||"checked"==h&&"defaultChecked"in N)continue;C(n,h,null,k,o)}for(h in x=1&t.__u,N)k=N[h],"children"==h?m=k:"dangerouslySetInnerHTML"==h?d=k:"value"==h?b=k:"checked"==h?w=k:i&&"function"!=typeof k||S[h]===k&&!x||C(n,h,k,S[h],o);if(d)i||g&&(d.__html==g.__html||d.__html==n.innerHTML)||(n.innerHTML=d.__html),e.__k=[];else if(g&&(n.innerHTML=""),H("template"==T?n.content:n,a(m)?m:[m],e,t,l,"foreignObject"==T?"http://www.w3.org/1999/xhtml":o,r,u,r?r[0]:t.__k&&y(t,0),i,c,s),null!=r)for(h=r.length;h--;)v(r[h]);i||(h="value","progress"==T&&null==b?n.removeAttribute("value"):null==b||b===n[h]&&("progress"!==T||b)||C(n,h,b,S[h],o),h="checked",null!=w&&w!=n[h]&&C(n,h,w,S[h],o))}return n}function P(n,e,t){try{if("function"==typeof n){var l="function"==typeof n.__u;l&&n.__u(),l&&null==e||(n.__u=n(e))}else n.current=e}catch(n){_.__e(n,t)}}function F(n,e,t){var l,o;if(_.unmount&&_.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||P(l,null,e)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){_.__e(n,e)}l.__P=null}if(l=n.__k)for(o=0;o<l.length;o++)l[o]&&F(l[o],e,t||"function"!=typeof n.type);t||v(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function L(_,n,e){return this.constructor(_,e)}function W(n,e){var t,l,o,r;e==document&&(e=document.documentElement),_.__&&_.__(n,e),l=(t=!!(n&&32&n.__u))?null:e.__k,n=e.__k=function(_,n,e){var t,l,o,r={};for(o in n)"key"==o?t=n[o]:"ref"==o&&"function"!=typeof _?l=n[o]:r[o]=n[o];return arguments.length>2&&(r.children=arguments.length>3?p.call(arguments,2):e),d(_,r,t,l,null)}(g,null,[n]),o=[],r=[],U(e,n,l||f,f,e.namespaceURI,l?null:e.firstChild?p.call(e.childNodes):null,o,l?l.__e:e.firstChild,t,r,e.ownerDocument),D(o,n,r)}_={__e:function(_,n,e,t){for(var o,r,u;n=n.__;)if((o=n.__c)&&!(1&o.__g)){o.__g|=4;try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),u=8&o.__g),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),u=8&o.__g),u)return void(o.__g|=2)}catch(n){_=n}}throw l=0,_}},n=0,m.prototype.setState=function(_,n){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=h({},this.state),"function"==typeof _&&(_=_(h({},e),this.props)),_&&h(e,_),null!=_&&this.__v&&(n&&this._sb.push(n),b(this))},m.prototype.forceUpdate=function(_){this.__v&&(this.__g|=4,_&&this.__h.push(_),b(this))},m.prototype.render=g,e=[],l=0,o=function(_,n){return _.__v.__b-n.__v.__b},r=/(PointerCapture)$|Capture$/i,u=0,i=T(!1),c=T(!0);var z,R,$,q,I=Object.is,j=0,O=[],B=_,V=B.__b,G=B.__r,J=B.diffed,K=B.__c,Q=B.unmount,X=B.__;function Y(_,n){B.__h&&B.__h(R,_,j||n),j=0;var e=R.__H||(R.__H={__:[],__h:[]});return _>=e.__.length&&e.__.push({}),e.__[_]}function Z(_){return j=1,function(_,n){var e=Y(z++,2);if(e.t=_,!e.__c&&(e.__=[r_(void 0,n),function(_){var n=e.__N?e.__N[0]:e.__[0],t=e.t(n,_);I(n,t)||(e.__N=[t,e.__[1]],e.__c.setState({}))}],e.__c=R,!R.__f)){var t=function(_,n,t){if(!e.__c.__H)return!0;var o=e.__c.__H.__.filter(function(_){return!!_.__c});if(o.every(function(_){return!_.__N}))return!l||l.call(this,_,n,t);var r=e.__c.props!==_;return o.forEach(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,I(n,_.__[0])||(r=!0)}}),l&&l.call(this,_,n,t)||r};R.__f=!0;var l=R.shouldComponentUpdate,o=R.componentWillUpdate;R.componentWillUpdate=function(_,n,e){if(4&this.__g){var r=l;l=void 0,t(_,n,e),l=r}o&&o.call(this,_,n,e)},R.shouldComponentUpdate=t}return e.__N||e.__}(r_,_)}function __(_,n){var e=Y(z++,4);!B.__s&&function(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!I(n,_[e])})}(e.__H,n)&&(e.__=_,e.u=n,R.__h.push(e))}function n_(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(l_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(n){_.__H.__h=[],B.__e(n,_.__v)}}B.__b=function(_){R=null,V&&V(_)},B.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),X&&X(_,n)},B.__r=function(_){G&&G(_),z=0;var n=(R=_.__c).__H;n&&($===R?(n.__h=[],R.__h=[],n.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(n.__h.forEach(l_),n.__h.forEach(o_),n.__h=[],z=0)),$=R},B.diffed=function(_){J&&J(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==O.push(n)&&q===B.requestAnimationFrame||((q=B.requestAnimationFrame)||t_)(n_)),n.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),$=R=null},B.__c=function(_,n){n.some(function(_){try{_.__h.forEach(l_),_.__h=_.__h.filter(function(_){return!_.__||o_(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],B.__e(e,_.__v)}}),K&&K(_,n)},B.unmount=function(_){Q&&Q(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.forEach(function(_){try{l_(_)}catch(_){n=_}}),e.__H=void 0,n&&B.__e(n,e.__v))};var e_="function"==typeof requestAnimationFrame;function t_(_){var n,e=function(){clearTimeout(t),e_&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);e_&&(n=requestAnimationFrame(e))}function l_(_){var n=R,e=_.__c;"function"==typeof e&&(_.__c=void 0,e()),R=n}function o_(_){var n=R;_.__c=_.__(),R=n}function r_(_,n){return"function"==typeof n?n(_):n}var u_=0;function i_(n,e,t,l,o,r){e||(e={});var u,i,c=e;if("ref"in c&&"function"!=typeof n)for(i in c={},e)"ref"==i?u=e[i]:c[i]=e[i];var f={type:n,props:c,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--u_,__i:-1,__u:0,__source:o,__self:r};return _.vnode&&_.vnode(f),f}export{__ as A,W as F,Z as h,g as k,i_ as u};
@@ -1,6 +0,0 @@
1
- <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
- <path fill="#673ab8" d="M16 2l12.12 7v14L16 30 3.88 23V9z"/>
3
- <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="10.72" ry="4.1" transform="rotate(-37.5 16.007 15.996)"/>
4
- <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="4.1" ry="10.72" transform="rotate(-52.5 15.998 15.994)"/>
5
- <circle fill="#fff" cx="16" cy="16" r="1.86"/>
6
- </svg>
@@ -1,15 +0,0 @@
1
- /*
2
- * This file does not use export const InlineContent = function() {} on purpose:
3
- * - An export would be renamed by rollup,
4
- * making it harder to statically detect new InlineContent() calls
5
- * - An export would be renamed by terser
6
- * here again it becomes hard to detect new InlineContent() calls
7
- * Instead it sets "__InlineContent__" on the global object and terser is configured by jsenv
8
- * to preserve the __InlineContent__ global variable name
9
- */
10
-
11
- const globalObject = typeof self === "object" ? self : process;
12
- globalObject.__InlineContent__ = function (content, { type = "text/plain" }) {
13
- this.text = content;
14
- this.type = type;
15
- };
@@ -1,381 +0,0 @@
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
- "use strict";
7
-
8
- if (typeof document === "undefined" || "adoptedStyleSheets" in document) {
9
- return;
10
- }
11
-
12
- var hasShadyCss = "ShadyCSS" in window && !ShadyCSS.nativeShadow;
13
- var bootstrapper = document.implementation.createHTMLDocument("");
14
- var closedShadowRootRegistry = new WeakMap();
15
- var _DOMException = typeof DOMException === "object" ? Error : DOMException;
16
- var defineProperty = Object.defineProperty;
17
- var forEach = Array.prototype.forEach;
18
-
19
- var importPattern = /@import.+?;?$/gm;
20
- function rejectImports(contents) {
21
- var _contents = contents.replace(importPattern, "");
22
- if (_contents !== contents) {
23
- console.warn(
24
- "@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418",
25
- );
26
- }
27
- return _contents.trim();
28
- }
29
- function isElementConnected(element) {
30
- return "isConnected" in element
31
- ? element.isConnected
32
- : document.contains(element);
33
- }
34
- function unique(arr) {
35
- return arr.filter(function (value, index) {
36
- return arr.indexOf(value) === index;
37
- });
38
- }
39
- function diff(arr1, arr2) {
40
- return arr1.filter(function (value) {
41
- return arr2.indexOf(value) === -1;
42
- });
43
- }
44
- function removeNode(node) {
45
- node.parentNode.removeChild(node);
46
- }
47
- function getShadowRoot(element) {
48
- return element.shadowRoot || closedShadowRootRegistry.get(element);
49
- }
50
-
51
- var cssStyleSheetMethods = [
52
- "addRule",
53
- "deleteRule",
54
- "insertRule",
55
- "removeRule",
56
- ];
57
- var NonConstructedStyleSheet = CSSStyleSheet;
58
- var nonConstructedProto = NonConstructedStyleSheet.prototype;
59
- nonConstructedProto.replace = function () {
60
- return Promise.reject(
61
- new _DOMException(
62
- "Can't call replace on non-constructed CSSStyleSheets.",
63
- ),
64
- );
65
- };
66
- nonConstructedProto.replaceSync = function () {
67
- throw new _DOMException(
68
- "Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.",
69
- );
70
- };
71
- function isCSSStyleSheetInstance(instance) {
72
- return typeof instance === "object"
73
- ? proto$1.isPrototypeOf(instance) ||
74
- nonConstructedProto.isPrototypeOf(instance)
75
- : false;
76
- }
77
- function isNonConstructedStyleSheetInstance(instance) {
78
- return typeof instance === "object"
79
- ? nonConstructedProto.isPrototypeOf(instance)
80
- : false;
81
- }
82
- var $basicStyleElement = new WeakMap();
83
- var $locations = new WeakMap();
84
- var $adoptersByLocation = new WeakMap();
85
- var $appliedMethods = new WeakMap();
86
- function addAdopterLocation(sheet, location) {
87
- var adopter = document.createElement("style");
88
- $adoptersByLocation.get(sheet).set(location, adopter);
89
- $locations.get(sheet).push(location);
90
- return adopter;
91
- }
92
- function getAdopterByLocation(sheet, location) {
93
- return $adoptersByLocation.get(sheet).get(location);
94
- }
95
- function removeAdopterLocation(sheet, location) {
96
- $adoptersByLocation.get(sheet).delete(location);
97
- $locations.set(
98
- sheet,
99
- $locations.get(sheet).filter(function (_location) {
100
- return _location !== location;
101
- }),
102
- );
103
- }
104
- function restyleAdopter(sheet, adopter) {
105
- requestAnimationFrame(function () {
106
- adopter.textContent = $basicStyleElement.get(sheet).textContent;
107
- $appliedMethods.get(sheet).forEach(function (command) {
108
- return adopter.sheet[command.method].apply(adopter.sheet, command.args);
109
- });
110
- });
111
- }
112
- function checkInvocationCorrectness(self) {
113
- if (!$basicStyleElement.has(self)) {
114
- throw new TypeError("Illegal invocation");
115
- }
116
- }
117
- function ConstructedStyleSheet() {
118
- var self = this;
119
- var style = document.createElement("style");
120
- bootstrapper.body.appendChild(style);
121
- $basicStyleElement.set(self, style);
122
- $locations.set(self, []);
123
- $adoptersByLocation.set(self, new WeakMap());
124
- $appliedMethods.set(self, []);
125
- }
126
- var proto$1 = ConstructedStyleSheet.prototype;
127
- proto$1.replace = function replace(contents) {
128
- try {
129
- this.replaceSync(contents);
130
- return Promise.resolve(this);
131
- } catch (e) {
132
- return Promise.reject(e);
133
- }
134
- };
135
- proto$1.replaceSync = function replaceSync(contents) {
136
- checkInvocationCorrectness(this);
137
- if (typeof contents === "string") {
138
- var self_1 = this;
139
- $basicStyleElement.get(self_1).textContent = rejectImports(contents);
140
- $appliedMethods.set(self_1, []);
141
- $locations.get(self_1).forEach(function (location) {
142
- if (location.isConnected()) {
143
- restyleAdopter(self_1, getAdopterByLocation(self_1, location));
144
- }
145
- });
146
- }
147
- };
148
- defineProperty(proto$1, "cssRules", {
149
- configurable: true,
150
- enumerable: true,
151
- get: function cssRules() {
152
- checkInvocationCorrectness(this);
153
- return $basicStyleElement.get(this).sheet.cssRules;
154
- },
155
- });
156
- defineProperty(proto$1, "media", {
157
- configurable: true,
158
- enumerable: true,
159
- get: function media() {
160
- checkInvocationCorrectness(this);
161
- return $basicStyleElement.get(this).sheet.media;
162
- },
163
- });
164
- cssStyleSheetMethods.forEach(function (method) {
165
- proto$1[method] = function () {
166
- var self = this;
167
- checkInvocationCorrectness(self);
168
- var args = arguments;
169
- $appliedMethods.get(self).push({ method: method, args: args });
170
- $locations.get(self).forEach(function (location) {
171
- if (location.isConnected()) {
172
- var sheet = getAdopterByLocation(self, location).sheet;
173
- sheet[method].apply(sheet, args);
174
- }
175
- });
176
- var basicSheet = $basicStyleElement.get(self).sheet;
177
- return basicSheet[method].apply(basicSheet, args);
178
- };
179
- });
180
- defineProperty(ConstructedStyleSheet, Symbol.hasInstance, {
181
- configurable: true,
182
- value: isCSSStyleSheetInstance,
183
- });
184
-
185
- var defaultObserverOptions = {
186
- childList: true,
187
- subtree: true,
188
- };
189
- var locations = new WeakMap();
190
- function getAssociatedLocation(element) {
191
- var location = locations.get(element);
192
- if (!location) {
193
- location = new Location(element);
194
- locations.set(element, location);
195
- }
196
- return location;
197
- }
198
- function attachAdoptedStyleSheetProperty(constructor) {
199
- defineProperty(constructor.prototype, "adoptedStyleSheets", {
200
- configurable: true,
201
- enumerable: true,
202
- get: function () {
203
- return getAssociatedLocation(this).sheets;
204
- },
205
- set: function (sheets) {
206
- getAssociatedLocation(this).update(sheets);
207
- },
208
- });
209
- }
210
- function traverseWebComponents(node, callback) {
211
- var iter = document.createNodeIterator(
212
- node,
213
- NodeFilter.SHOW_ELEMENT,
214
- function (foundNode) {
215
- return getShadowRoot(foundNode)
216
- ? NodeFilter.FILTER_ACCEPT
217
- : NodeFilter.FILTER_REJECT;
218
- },
219
- null,
220
- false,
221
- );
222
- for (var next = void 0; (next = iter.nextNode()); ) {
223
- callback(getShadowRoot(next));
224
- }
225
- }
226
- var $element = new WeakMap();
227
- var $uniqueSheets = new WeakMap();
228
- var $observer = new WeakMap();
229
- function isExistingAdopter(self, element) {
230
- return (
231
- element instanceof HTMLStyleElement &&
232
- $uniqueSheets.get(self).some(function (sheet) {
233
- return getAdopterByLocation(sheet, self);
234
- })
235
- );
236
- }
237
- function getAdopterContainer(self) {
238
- var element = $element.get(self);
239
- return element instanceof Document ? element.body : element;
240
- }
241
- function adopt(self) {
242
- var styleList = document.createDocumentFragment();
243
- var sheets = $uniqueSheets.get(self);
244
- var observer = $observer.get(self);
245
- var container = getAdopterContainer(self);
246
- observer.disconnect();
247
- sheets.forEach(function (sheet) {
248
- styleList.appendChild(
249
- getAdopterByLocation(sheet, self) || addAdopterLocation(sheet, self),
250
- );
251
- });
252
- container.insertBefore(styleList, null);
253
- observer.observe(container, defaultObserverOptions);
254
- sheets.forEach(function (sheet) {
255
- restyleAdopter(sheet, getAdopterByLocation(sheet, self));
256
- });
257
- }
258
- function Location(element) {
259
- var self = this;
260
- self.sheets = [];
261
- $element.set(self, element);
262
- $uniqueSheets.set(self, []);
263
- $observer.set(
264
- self,
265
- new MutationObserver(function (mutations, observer) {
266
- if (!document) {
267
- observer.disconnect();
268
- return;
269
- }
270
- mutations.forEach(function (mutation) {
271
- if (!hasShadyCss) {
272
- forEach.call(mutation.addedNodes, function (node) {
273
- if (!(node instanceof Element)) {
274
- return;
275
- }
276
- traverseWebComponents(node, function (root) {
277
- getAssociatedLocation(root).connect();
278
- });
279
- });
280
- }
281
- forEach.call(mutation.removedNodes, function (node) {
282
- if (!(node instanceof Element)) {
283
- return;
284
- }
285
- if (isExistingAdopter(self, node)) {
286
- adopt(self);
287
- }
288
- if (!hasShadyCss) {
289
- traverseWebComponents(node, function (root) {
290
- getAssociatedLocation(root).disconnect();
291
- });
292
- }
293
- });
294
- });
295
- }),
296
- );
297
- }
298
- Location.prototype = {
299
- isConnected: function () {
300
- var element = $element.get(this);
301
- return element instanceof Document
302
- ? element.readyState !== "loading"
303
- : isElementConnected(element.host);
304
- },
305
- connect: function () {
306
- var container = getAdopterContainer(this);
307
- $observer.get(this).observe(container, defaultObserverOptions);
308
- if ($uniqueSheets.get(this).length > 0) {
309
- adopt(this);
310
- }
311
- traverseWebComponents(container, function (root) {
312
- getAssociatedLocation(root).connect();
313
- });
314
- },
315
- disconnect: function () {
316
- $observer.get(this).disconnect();
317
- },
318
- update: function (sheets) {
319
- var self = this;
320
- var locationType =
321
- $element.get(self) === document ? "Document" : "ShadowRoot";
322
- if (!Array.isArray(sheets)) {
323
- throw new TypeError(
324
- "Failed to set the 'adoptedStyleSheets' property on " +
325
- locationType +
326
- ": Iterator getter is not callable.",
327
- );
328
- }
329
- if (!sheets.every(isCSSStyleSheetInstance)) {
330
- throw new TypeError(
331
- "Failed to set the 'adoptedStyleSheets' property on " +
332
- locationType +
333
- ": Failed to convert value to 'CSSStyleSheet'",
334
- );
335
- }
336
- if (sheets.some(isNonConstructedStyleSheetInstance)) {
337
- throw new TypeError(
338
- "Failed to set the 'adoptedStyleSheets' property on " +
339
- locationType +
340
- ": Can't adopt non-constructed stylesheets",
341
- );
342
- }
343
- self.sheets = sheets;
344
- var oldUniqueSheets = $uniqueSheets.get(self);
345
- var uniqueSheets = unique(sheets);
346
- var removedSheets = diff(oldUniqueSheets, uniqueSheets);
347
- removedSheets.forEach(function (sheet) {
348
- removeNode(getAdopterByLocation(sheet, self));
349
- removeAdopterLocation(sheet, self);
350
- });
351
- $uniqueSheets.set(self, uniqueSheets);
352
- if (self.isConnected() && uniqueSheets.length > 0) {
353
- adopt(self);
354
- }
355
- },
356
- };
357
-
358
- window.CSSStyleSheet = ConstructedStyleSheet;
359
- attachAdoptedStyleSheetProperty(Document);
360
- if ("ShadowRoot" in window) {
361
- attachAdoptedStyleSheetProperty(ShadowRoot);
362
- var proto = Element.prototype;
363
- var attach_1 = proto.attachShadow;
364
- proto.attachShadow = function attachShadow(init) {
365
- var root = attach_1.call(this, init);
366
- if (init.mode === "closed") {
367
- closedShadowRootRegistry.set(this, root);
368
- }
369
- return root;
370
- };
371
- }
372
- var documentLocation = getAssociatedLocation(document);
373
- if (documentLocation.isConnected()) {
374
- documentLocation.connect();
375
- } else {
376
- document.addEventListener(
377
- "DOMContentLoaded",
378
- documentLocation.connect.bind(documentLocation),
379
- );
380
- }
381
- })();
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (("production") === 'production') {
4
- module.exports = require('./cjs/react.production.js');
5
- } else {
6
- module.exports = require('./cjs/react.development.js');
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (("production") === 'production') {
4
- module.exports = require('./cjs/react-jsx-runtime.production.js');
5
- } else {
6
- module.exports = require('./cjs/react-jsx-runtime.development.js');
7
- }
@@ -1,69 +0,0 @@
1
- function getDefaultExportFromCjs (x) {
2
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
- }
4
-
5
- var jsxRuntime = {exports: {}};
6
-
7
- var reactJsxRuntime_production = {};
8
-
9
- /**
10
- * @license React
11
- * react-jsx-runtime.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
-
19
- var hasRequiredReactJsxRuntime_production;
20
-
21
- function requireReactJsxRuntime_production () {
22
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
23
- hasRequiredReactJsxRuntime_production = 1;
24
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
25
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
26
- function jsxProd(type, config, maybeKey) {
27
- var key = null;
28
- void 0 !== maybeKey && (key = "" + maybeKey);
29
- void 0 !== config.key && (key = "" + config.key);
30
- if ("key" in config) {
31
- maybeKey = {};
32
- for (var propName in config)
33
- "key" !== propName && (maybeKey[propName] = config[propName]);
34
- } else maybeKey = config;
35
- config = maybeKey.ref;
36
- return {
37
- $$typeof: REACT_ELEMENT_TYPE,
38
- type: type,
39
- key: key,
40
- ref: void 0 !== config ? config : null,
41
- props: maybeKey
42
- };
43
- }
44
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
45
- reactJsxRuntime_production.jsx = jsxProd;
46
- reactJsxRuntime_production.jsxs = jsxProd;
47
- return reactJsxRuntime_production;
48
- }
49
-
50
- var hasRequiredJsxRuntime;
51
-
52
- function requireJsxRuntime () {
53
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
54
- hasRequiredJsxRuntime = 1;
55
-
56
- {
57
- jsxRuntime.exports = requireReactJsxRuntime_production();
58
- }
59
- return jsxRuntime.exports;
60
- }
61
-
62
- var jsxRuntimeExports = requireJsxRuntime();
63
- var __jsenv_default_import__ = /*@__PURE__*/getDefaultExportFromCjs(jsxRuntimeExports);
64
-
65
- var Fragment = jsxRuntimeExports.Fragment;
66
- var jsx = jsxRuntimeExports.jsx;
67
- var jsxs = jsxRuntimeExports.jsxs;
68
- export { Fragment, __jsenv_default_import__ as default, jsx, jsxs };
69
-